0.2 snapshot
[himkr] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21   setopt NO_GLOB_SUBST
22 else
23   case `(set -o) 2>/dev/null` in
24   *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42   echo "#! /bin/sh" >conf$$.sh
43   echo  "exit 0"   >>conf$$.sh
44   chmod +x conf$$.sh
45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46     PATH_SEPARATOR=';'
47   else
48     PATH_SEPARATOR=:
49   fi
50   rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55   as_unset=unset
56 else
57   as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order.  Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" ""        $as_nl"
69
70 # Find who we are.  Look in the path if we contain no directory separator.
71 case $0 in
72   *[\\/]* ) as_myself=$0 ;;
73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76   IFS=$as_save_IFS
77   test -z "$as_dir" && as_dir=.
78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82      ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87   as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91   { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106   LC_TELEPHONE LC_TIME
107 do
108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109     eval $as_var=C; export $as_var
110   else
111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112   fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
118   as_expr=expr
119 else
120   as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124   as_basename=basename
125 else
126   as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133          X"$0" : 'X\(//\)$' \| \
134          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136     sed '/^.*\/\([^/][^/]*\)\/*$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\/\)$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\).*/{
145             s//\1/
146             q
147           }
148           s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155   if (eval ":") 2>/dev/null; then
156   as_have_required=yes
157 else
158   as_have_required=no
159 fi
160
161   if test $as_have_required = yes &&     (eval ":
162 (as_func_return () {
163   (exit \$1)
164 }
165 as_func_success () {
166   as_func_return 0
167 }
168 as_func_failure () {
169   as_func_return 1
170 }
171 as_func_ret_success () {
172   return 0
173 }
174 as_func_ret_failure () {
175   return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180   :
181 else
182   exitcode=1
183   echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187   exitcode=1
188   echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192   :
193 else
194   exitcode=1
195   echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199   exitcode=1
200   echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204   :
205 else
206   exitcode=1
207   echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213   as_lineno_1=\$LINENO
214   as_lineno_2=\$LINENO
215   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218   :
219 else
220   as_candidate_shells=
221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224   IFS=$as_save_IFS
225   test -z "$as_dir" && as_dir=.
226   case $as_dir in
227          /*)
228            for as_base in sh bash ksh sh5; do
229              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230            done;;
231        esac
232 done
233 IFS=$as_save_IFS
234
235
236       for as_shell in $as_candidate_shells $SHELL; do
237          # Try only shells that exist, to save several forks.
238          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239                 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241   emulate sh
242   NULLCMD=:
243   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244   # is contrary to our usage.  Disable this feature.
245   alias -g '${1+"$@"}'='"$@"'
246   setopt NO_GLOB_SUBST
247 else
248   case `(set -o) 2>/dev/null` in
249   *posix*) set -o posix ;;
250 esac
251
252 fi
253
254
255 :
256 _ASEOF
257 }; then
258   CONFIG_SHELL=$as_shell
259                as_have_required=yes
260                if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in
270   *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 (as_func_return () {
278   (exit $1)
279 }
280 as_func_success () {
281   as_func_return 0
282 }
283 as_func_failure () {
284   as_func_return 1
285 }
286 as_func_ret_success () {
287   return 0
288 }
289 as_func_ret_failure () {
290   return 1
291 }
292
293 exitcode=0
294 if as_func_success; then
295   :
296 else
297   exitcode=1
298   echo as_func_success failed.
299 fi
300
301 if as_func_failure; then
302   exitcode=1
303   echo as_func_failure succeeded.
304 fi
305
306 if as_func_ret_success; then
307   :
308 else
309   exitcode=1
310   echo as_func_ret_success failed.
311 fi
312
313 if as_func_ret_failure; then
314   exitcode=1
315   echo as_func_ret_failure succeeded.
316 fi
317
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
319   :
320 else
321   exitcode=1
322   echo positional parameters were not saved.
323 fi
324
325 test $exitcode = 0) || { (exit 1); exit 1; }
326
327 (
328   as_lineno_1=$LINENO
329   as_lineno_2=$LINENO
330   test "x$as_lineno_1" != "x$as_lineno_2" &&
331   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333 _ASEOF
334 }; then
335   break
336 fi
337
338 fi
339
340       done
341
342       if test "x$CONFIG_SHELL" != x; then
343   for as_var in BASH_ENV ENV
344         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345         done
346         export CONFIG_SHELL
347         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348 fi
349
350
351     if test $as_have_required = no; then
352   echo This script requires a shell more modern than all the
353       echo shells that I found on your system.  Please install a
354       echo modern shell, or manually run the script under such a
355       echo shell if you do have one.
356       { (exit 1); exit 1; }
357 fi
358
359
360 fi
361
362 fi
363
364
365
366 (eval "as_func_return () {
367   (exit \$1)
368 }
369 as_func_success () {
370   as_func_return 0
371 }
372 as_func_failure () {
373   as_func_return 1
374 }
375 as_func_ret_success () {
376   return 0
377 }
378 as_func_ret_failure () {
379   return 1
380 }
381
382 exitcode=0
383 if as_func_success; then
384   :
385 else
386   exitcode=1
387   echo as_func_success failed.
388 fi
389
390 if as_func_failure; then
391   exitcode=1
392   echo as_func_failure succeeded.
393 fi
394
395 if as_func_ret_success; then
396   :
397 else
398   exitcode=1
399   echo as_func_ret_success failed.
400 fi
401
402 if as_func_ret_failure; then
403   exitcode=1
404   echo as_func_ret_failure succeeded.
405 fi
406
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408   :
409 else
410   exitcode=1
411   echo positional parameters were not saved.
412 fi
413
414 test \$exitcode = 0") || {
415   echo No shell found that supports shell functions.
416   echo Please tell autoconf@gnu.org about your system,
417   echo including any error possibly output before this
418   echo message
419 }
420
421
422
423   as_lineno_1=$LINENO
424   as_lineno_2=$LINENO
425   test "x$as_lineno_1" != "x$as_lineno_2" &&
426   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429   # uniformly replaced by the line number.  The first 'sed' inserts a
430   # line-number line after each line using $LINENO; the second 'sed'
431   # does the real work.  The second script uses 'N' to pair each
432   # line-number line with the line containing $LINENO, and appends
433   # trailing '-' during substitution so that $LINENO is not a special
434   # case at line end.
435   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436   # scripts with optimization help from Paolo Bonzini.  Blame Lee
437   # E. McMahon (1931-1989) for sed's syntax.  :-)
438   sed -n '
439     p
440     /[$]LINENO/=
441   ' <$as_myself |
442     sed '
443       s/[$]LINENO.*/&-/
444       t lineno
445       b
446       :lineno
447       N
448       :loop
449       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450       t loop
451       s/-\n.*//
452     ' >$as_me.lineno &&
453   chmod +x "$as_me.lineno" ||
454     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455    { (exit 1); exit 1; }; }
456
457   # Don't try to exec as it changes $[0], causing all sort of problems
458   # (the dirname of $[0] is not the place where we might find the
459   # original and so on.  Autoconf is especially sensitive to this).
460   . "./$as_me.lineno"
461   # Exit status is that of the last command.
462   exit
463 }
464
465
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467   as_dirname=dirname
468 else
469   as_dirname=false
470 fi
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475   case `echo 'x\c'` in
476   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
477   *)   ECHO_C='\c';;
478   esac;;
479 *)
480   ECHO_N='-n';;
481 esac
482
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484    test "X`expr 00001 : '.*\(...\)'`" = X001; then
485   as_expr=expr
486 else
487   as_expr=false
488 fi
489
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492   rm -f conf$$.dir/conf$$.file
493 else
494   rm -f conf$$.dir
495   mkdir conf$$.dir
496 fi
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499   as_ln_s='ln -s'
500   # ... but there are two gotchas:
501   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503   # In both cases, we have to default to `cp -p'.
504   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505     as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507   as_ln_s=ln
508 else
509   as_ln_s='cp -p'
510 fi
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
513
514 if mkdir -p . 2>/dev/null; then
515   as_mkdir_p=:
516 else
517   test -d ./-p && rmdir ./-p
518   as_mkdir_p=false
519 fi
520
521 if test -x / >/dev/null 2>&1; then
522   as_test_x='test -x'
523 else
524   if ls -dL / >/dev/null 2>&1; then
525     as_ls_L_option=L
526   else
527     as_ls_L_option=
528   fi
529   as_test_x='
530     eval sh -c '\''
531       if test -d "$1"; then
532         test -d "$1/.";
533       else
534         case $1 in
535         -*)set "./$1";;
536         esac;
537         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538         ???[sx]*):;;*)false;;esac;fi
539     '\'' sh
540   '
541 fi
542 as_executable_p=$as_test_x
543
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552
553 # Check that we are running under the correct shell.
554 SHELL=${CONFIG_SHELL-/bin/sh}
555
556 case X$ECHO in
557 X*--fallback-echo)
558   # Remove one level of quotation (which was required for Make).
559   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
560   ;;
561 esac
562
563 echo=${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 <<EOF
582 $*
583 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 "$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        echo_test_string=`eval $cmd` &&
598        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
599     then
600       break
601     fi
602   done
603 fi
604
605 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
606    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
607    test "X$echo_testing_string" = "X$echo_test_string"; then
608   :
609 else
610   # The Solaris, AIX, and Digital Unix default echo programs unquote
611   # backslashes.  This makes it impossible to quote backslashes using
612   #   echo "$something" | sed 's/\\/\\\\/g'
613   #
614   # So, first we look for a working echo in the user's PATH.
615
616   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
617   for dir in $PATH /usr/ucb; do
618     IFS="$lt_save_ifs"
619     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
620        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
621        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
622        test "X$echo_testing_string" = "X$echo_test_string"; then
623       echo="$dir/echo"
624       break
625     fi
626   done
627   IFS="$lt_save_ifs"
628
629   if test "X$echo" = Xecho; then
630     # We didn't find a better echo, so look for alternatives.
631     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
632        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
633        test "X$echo_testing_string" = "X$echo_test_string"; then
634       # This shell has a builtin print -r that does the trick.
635       echo='print -r'
636     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
637          test "X$CONFIG_SHELL" != X/bin/ksh; then
638       # If we have ksh, try running configure again with it.
639       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
640       export ORIGINAL_CONFIG_SHELL
641       CONFIG_SHELL=/bin/ksh
642       export CONFIG_SHELL
643       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
644     else
645       # Try using printf.
646       echo='printf %s\n'
647       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
648          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
649          test "X$echo_testing_string" = "X$echo_test_string"; then
650         # Cool, printf works
651         :
652       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
653            test "X$echo_testing_string" = 'X\t' &&
654            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
655            test "X$echo_testing_string" = "X$echo_test_string"; then
656         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
657         export CONFIG_SHELL
658         SHELL="$CONFIG_SHELL"
659         export SHELL
660         echo="$CONFIG_SHELL $0 --fallback-echo"
661       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
662            test "X$echo_testing_string" = 'X\t' &&
663            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
664            test "X$echo_testing_string" = "X$echo_test_string"; then
665         echo="$CONFIG_SHELL $0 --fallback-echo"
666       else
667         # maybe with a smaller string...
668         prev=:
669
670         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
671           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
672           then
673             break
674           fi
675           prev="$cmd"
676         done
677
678         if test "$prev" != 'sed 50q "$0"'; then
679           echo_test_string=`eval $prev`
680           export echo_test_string
681           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
682         else
683           # Oops.  We lost completely, so just stick with echo.
684           echo=echo
685         fi
686       fi
687     fi
688   fi
689 fi
690 fi
691
692 # Copy echo and quote the copy suitably for passing to libtool from
693 # the Makefile, instead of quoting the original, which is used later.
694 ECHO=$echo
695 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
696    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
697 fi
698
699
700
701
702 tagnames=${tagnames+${tagnames},}CXX
703
704 tagnames=${tagnames+${tagnames},}F77
705
706 exec 7<&0 </dev/null 6>&1
707
708 # Name of the host.
709 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
710 # so uname gets run too.
711 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
712
713 #
714 # Initializations.
715 #
716 ac_default_prefix=/usr/local
717 ac_clean_files=
718 ac_config_libobj_dir=.
719 LIBOBJS=
720 cross_compiling=no
721 subdirs=
722 MFLAGS=
723 MAKEFLAGS=
724 SHELL=${CONFIG_SHELL-/bin/sh}
725
726 # Identity of this package.
727 PACKAGE_NAME=
728 PACKAGE_TARNAME=
729 PACKAGE_VERSION=
730 PACKAGE_STRING=
731 PACKAGE_BUGREPORT=
732
733 ac_unique_file="configure.ac"
734 # Factoring default headers for most tests.
735 ac_includes_default="\
736 #include <stdio.h>
737 #ifdef HAVE_SYS_TYPES_H
738 # include <sys/types.h>
739 #endif
740 #ifdef HAVE_SYS_STAT_H
741 # include <sys/stat.h>
742 #endif
743 #ifdef STDC_HEADERS
744 # include <stdlib.h>
745 # include <stddef.h>
746 #else
747 # ifdef HAVE_STDLIB_H
748 #  include <stdlib.h>
749 # endif
750 #endif
751 #ifdef HAVE_STRING_H
752 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
753 #  include <memory.h>
754 # endif
755 # include <string.h>
756 #endif
757 #ifdef HAVE_STRINGS_H
758 # include <strings.h>
759 #endif
760 #ifdef HAVE_INTTYPES_H
761 # include <inttypes.h>
762 #endif
763 #ifdef HAVE_STDINT_H
764 # include <stdint.h>
765 #endif
766 #ifdef HAVE_UNISTD_H
767 # include <unistd.h>
768 #endif"
769
770 ac_subst_vars='SHELL
771 PATH_SEPARATOR
772 PACKAGE_NAME
773 PACKAGE_TARNAME
774 PACKAGE_VERSION
775 PACKAGE_STRING
776 PACKAGE_BUGREPORT
777 exec_prefix
778 prefix
779 program_transform_name
780 bindir
781 sbindir
782 libexecdir
783 datarootdir
784 datadir
785 sysconfdir
786 sharedstatedir
787 localstatedir
788 includedir
789 oldincludedir
790 docdir
791 infodir
792 htmldir
793 dvidir
794 pdfdir
795 psdir
796 libdir
797 localedir
798 mandir
799 DEFS
800 ECHO_C
801 ECHO_N
802 ECHO_T
803 LIBS
804 build_alias
805 host_alias
806 target_alias
807 INSTALL_PROGRAM
808 INSTALL_SCRIPT
809 INSTALL_DATA
810 CYGPATH_W
811 PACKAGE
812 VERSION
813 ACLOCAL
814 AUTOCONF
815 AUTOMAKE
816 AUTOHEADER
817 MAKEINFO
818 AMTAR
819 install_sh
820 STRIP
821 INSTALL_STRIP_PROGRAM
822 mkdir_p
823 AWK
824 SET_MAKE
825 am__leading_dot
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 build
843 build_cpu
844 build_vendor
845 build_os
846 host
847 host_cpu
848 host_vendor
849 host_os
850 GREP
851 EGREP
852 LN_S
853 ECHO
854 AR
855 RANLIB
856 CPP
857 CXX
858 CXXFLAGS
859 ac_ct_CXX
860 CXXDEPMODE
861 am__fastdepCXX_TRUE
862 am__fastdepCXX_FALSE
863 CXXCPP
864 F77
865 FFLAGS
866 ac_ct_F77
867 LIBTOOL
868 PKG_CONFIG
869 GTK_CFLAGS
870 GTK_LIBS
871 HIM_CFLAGS
872 HIM_LIBS
873 DBUS_CFLAGS
874 DBUS_LIBS
875 LIBOBJS
876 LTLIBOBJS'
877 ac_subst_files=''
878       ac_precious_vars='build_alias
879 host_alias
880 target_alias
881 CC
882 CFLAGS
883 LDFLAGS
884 LIBS
885 CPPFLAGS
886 CPP
887 CXX
888 CXXFLAGS
889 CCC
890 CXXCPP
891 F77
892 FFLAGS
893 PKG_CONFIG
894 GTK_CFLAGS
895 GTK_LIBS
896 HIM_CFLAGS
897 HIM_LIBS
898 DBUS_CFLAGS
899 DBUS_LIBS'
900
901
902 # Initialize some variables set by options.
903 ac_init_help=
904 ac_init_version=false
905 # The variables have the same names as the options, with
906 # dashes changed to underlines.
907 cache_file=/dev/null
908 exec_prefix=NONE
909 no_create=
910 no_recursion=
911 prefix=NONE
912 program_prefix=NONE
913 program_suffix=NONE
914 program_transform_name=s,x,x,
915 silent=
916 site=
917 srcdir=
918 verbose=
919 x_includes=NONE
920 x_libraries=NONE
921
922 # Installation directory options.
923 # These are left unexpanded so users can "make install exec_prefix=/foo"
924 # and all the variables that are supposed to be based on exec_prefix
925 # by default will actually change.
926 # Use braces instead of parens because sh, perl, etc. also accept them.
927 # (The list follows the same order as the GNU Coding Standards.)
928 bindir='${exec_prefix}/bin'
929 sbindir='${exec_prefix}/sbin'
930 libexecdir='${exec_prefix}/libexec'
931 datarootdir='${prefix}/share'
932 datadir='${datarootdir}'
933 sysconfdir='${prefix}/etc'
934 sharedstatedir='${prefix}/com'
935 localstatedir='${prefix}/var'
936 includedir='${prefix}/include'
937 oldincludedir='/usr/include'
938 docdir='${datarootdir}/doc/${PACKAGE}'
939 infodir='${datarootdir}/info'
940 htmldir='${docdir}'
941 dvidir='${docdir}'
942 pdfdir='${docdir}'
943 psdir='${docdir}'
944 libdir='${exec_prefix}/lib'
945 localedir='${datarootdir}/locale'
946 mandir='${datarootdir}/man'
947
948 ac_prev=
949 ac_dashdash=
950 for ac_option
951 do
952   # If the previous option needs an argument, assign it.
953   if test -n "$ac_prev"; then
954     eval $ac_prev=\$ac_option
955     ac_prev=
956     continue
957   fi
958
959   case $ac_option in
960   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
961   *)    ac_optarg=yes ;;
962   esac
963
964   # Accept the important Cygnus configure options, so we can diagnose typos.
965
966   case $ac_dashdash$ac_option in
967   --)
968     ac_dashdash=yes ;;
969
970   -bindir | --bindir | --bindi | --bind | --bin | --bi)
971     ac_prev=bindir ;;
972   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
973     bindir=$ac_optarg ;;
974
975   -build | --build | --buil | --bui | --bu)
976     ac_prev=build_alias ;;
977   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
978     build_alias=$ac_optarg ;;
979
980   -cache-file | --cache-file | --cache-fil | --cache-fi \
981   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
982     ac_prev=cache_file ;;
983   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
984   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
985     cache_file=$ac_optarg ;;
986
987   --config-cache | -C)
988     cache_file=config.cache ;;
989
990   -datadir | --datadir | --datadi | --datad)
991     ac_prev=datadir ;;
992   -datadir=* | --datadir=* | --datadi=* | --datad=*)
993     datadir=$ac_optarg ;;
994
995   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
996   | --dataroo | --dataro | --datar)
997     ac_prev=datarootdir ;;
998   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
999   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1000     datarootdir=$ac_optarg ;;
1001
1002   -disable-* | --disable-*)
1003     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1004     # Reject names that are not valid shell variable names.
1005     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1006       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1007    { (exit 1); exit 1; }; }
1008     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1009     eval enable_$ac_feature=no ;;
1010
1011   -docdir | --docdir | --docdi | --doc | --do)
1012     ac_prev=docdir ;;
1013   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1014     docdir=$ac_optarg ;;
1015
1016   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1017     ac_prev=dvidir ;;
1018   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1019     dvidir=$ac_optarg ;;
1020
1021   -enable-* | --enable-*)
1022     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1023     # Reject names that are not valid shell variable names.
1024     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1025       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1026    { (exit 1); exit 1; }; }
1027     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1028     eval enable_$ac_feature=\$ac_optarg ;;
1029
1030   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1031   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1032   | --exec | --exe | --ex)
1033     ac_prev=exec_prefix ;;
1034   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1035   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1036   | --exec=* | --exe=* | --ex=*)
1037     exec_prefix=$ac_optarg ;;
1038
1039   -gas | --gas | --ga | --g)
1040     # Obsolete; use --with-gas.
1041     with_gas=yes ;;
1042
1043   -help | --help | --hel | --he | -h)
1044     ac_init_help=long ;;
1045   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1046     ac_init_help=recursive ;;
1047   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1048     ac_init_help=short ;;
1049
1050   -host | --host | --hos | --ho)
1051     ac_prev=host_alias ;;
1052   -host=* | --host=* | --hos=* | --ho=*)
1053     host_alias=$ac_optarg ;;
1054
1055   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1056     ac_prev=htmldir ;;
1057   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1058   | --ht=*)
1059     htmldir=$ac_optarg ;;
1060
1061   -includedir | --includedir | --includedi | --included | --include \
1062   | --includ | --inclu | --incl | --inc)
1063     ac_prev=includedir ;;
1064   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1065   | --includ=* | --inclu=* | --incl=* | --inc=*)
1066     includedir=$ac_optarg ;;
1067
1068   -infodir | --infodir | --infodi | --infod | --info | --inf)
1069     ac_prev=infodir ;;
1070   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1071     infodir=$ac_optarg ;;
1072
1073   -libdir | --libdir | --libdi | --libd)
1074     ac_prev=libdir ;;
1075   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1076     libdir=$ac_optarg ;;
1077
1078   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1079   | --libexe | --libex | --libe)
1080     ac_prev=libexecdir ;;
1081   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1082   | --libexe=* | --libex=* | --libe=*)
1083     libexecdir=$ac_optarg ;;
1084
1085   -localedir | --localedir | --localedi | --localed | --locale)
1086     ac_prev=localedir ;;
1087   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1088     localedir=$ac_optarg ;;
1089
1090   -localstatedir | --localstatedir | --localstatedi | --localstated \
1091   | --localstate | --localstat | --localsta | --localst | --locals)
1092     ac_prev=localstatedir ;;
1093   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1094   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1095     localstatedir=$ac_optarg ;;
1096
1097   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1098     ac_prev=mandir ;;
1099   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1100     mandir=$ac_optarg ;;
1101
1102   -nfp | --nfp | --nf)
1103     # Obsolete; use --without-fp.
1104     with_fp=no ;;
1105
1106   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1107   | --no-cr | --no-c | -n)
1108     no_create=yes ;;
1109
1110   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1111   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1112     no_recursion=yes ;;
1113
1114   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1115   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1116   | --oldin | --oldi | --old | --ol | --o)
1117     ac_prev=oldincludedir ;;
1118   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1119   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1120   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1121     oldincludedir=$ac_optarg ;;
1122
1123   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1124     ac_prev=prefix ;;
1125   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1126     prefix=$ac_optarg ;;
1127
1128   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1129   | --program-pre | --program-pr | --program-p)
1130     ac_prev=program_prefix ;;
1131   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1132   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1133     program_prefix=$ac_optarg ;;
1134
1135   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1136   | --program-suf | --program-su | --program-s)
1137     ac_prev=program_suffix ;;
1138   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1139   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1140     program_suffix=$ac_optarg ;;
1141
1142   -program-transform-name | --program-transform-name \
1143   | --program-transform-nam | --program-transform-na \
1144   | --program-transform-n | --program-transform- \
1145   | --program-transform | --program-transfor \
1146   | --program-transfo | --program-transf \
1147   | --program-trans | --program-tran \
1148   | --progr-tra | --program-tr | --program-t)
1149     ac_prev=program_transform_name ;;
1150   -program-transform-name=* | --program-transform-name=* \
1151   | --program-transform-nam=* | --program-transform-na=* \
1152   | --program-transform-n=* | --program-transform-=* \
1153   | --program-transform=* | --program-transfor=* \
1154   | --program-transfo=* | --program-transf=* \
1155   | --program-trans=* | --program-tran=* \
1156   | --progr-tra=* | --program-tr=* | --program-t=*)
1157     program_transform_name=$ac_optarg ;;
1158
1159   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1160     ac_prev=pdfdir ;;
1161   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1162     pdfdir=$ac_optarg ;;
1163
1164   -psdir | --psdir | --psdi | --psd | --ps)
1165     ac_prev=psdir ;;
1166   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1167     psdir=$ac_optarg ;;
1168
1169   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1170   | -silent | --silent | --silen | --sile | --sil)
1171     silent=yes ;;
1172
1173   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1174     ac_prev=sbindir ;;
1175   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1176   | --sbi=* | --sb=*)
1177     sbindir=$ac_optarg ;;
1178
1179   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1180   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1181   | --sharedst | --shareds | --shared | --share | --shar \
1182   | --sha | --sh)
1183     ac_prev=sharedstatedir ;;
1184   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1185   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1186   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1187   | --sha=* | --sh=*)
1188     sharedstatedir=$ac_optarg ;;
1189
1190   -site | --site | --sit)
1191     ac_prev=site ;;
1192   -site=* | --site=* | --sit=*)
1193     site=$ac_optarg ;;
1194
1195   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1196     ac_prev=srcdir ;;
1197   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1198     srcdir=$ac_optarg ;;
1199
1200   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1201   | --syscon | --sysco | --sysc | --sys | --sy)
1202     ac_prev=sysconfdir ;;
1203   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1204   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1205     sysconfdir=$ac_optarg ;;
1206
1207   -target | --target | --targe | --targ | --tar | --ta | --t)
1208     ac_prev=target_alias ;;
1209   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1210     target_alias=$ac_optarg ;;
1211
1212   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1213     verbose=yes ;;
1214
1215   -version | --version | --versio | --versi | --vers | -V)
1216     ac_init_version=: ;;
1217
1218   -with-* | --with-*)
1219     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1220     # Reject names that are not valid shell variable names.
1221     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1222       { echo "$as_me: error: invalid package name: $ac_package" >&2
1223    { (exit 1); exit 1; }; }
1224     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1225     eval with_$ac_package=\$ac_optarg ;;
1226
1227   -without-* | --without-*)
1228     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1229     # Reject names that are not valid shell variable names.
1230     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1231       { echo "$as_me: error: invalid package name: $ac_package" >&2
1232    { (exit 1); exit 1; }; }
1233     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1234     eval with_$ac_package=no ;;
1235
1236   --x)
1237     # Obsolete; use --with-x.
1238     with_x=yes ;;
1239
1240   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1241   | --x-incl | --x-inc | --x-in | --x-i)
1242     ac_prev=x_includes ;;
1243   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1244   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1245     x_includes=$ac_optarg ;;
1246
1247   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1248   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1249     ac_prev=x_libraries ;;
1250   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1251   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1252     x_libraries=$ac_optarg ;;
1253
1254   -*) { echo "$as_me: error: unrecognized option: $ac_option
1255 Try \`$0 --help' for more information." >&2
1256    { (exit 1); exit 1; }; }
1257     ;;
1258
1259   *=*)
1260     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1261     # Reject names that are not valid shell variable names.
1262     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1263       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1264    { (exit 1); exit 1; }; }
1265     eval $ac_envvar=\$ac_optarg
1266     export $ac_envvar ;;
1267
1268   *)
1269     # FIXME: should be removed in autoconf 3.0.
1270     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1271     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1272       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1273     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1274     ;;
1275
1276   esac
1277 done
1278
1279 if test -n "$ac_prev"; then
1280   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1281   { echo "$as_me: error: missing argument to $ac_option" >&2
1282    { (exit 1); exit 1; }; }
1283 fi
1284
1285 # Be sure to have absolute directory names.
1286 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1287                 datadir sysconfdir sharedstatedir localstatedir includedir \
1288                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1289                 libdir localedir mandir
1290 do
1291   eval ac_val=\$$ac_var
1292   case $ac_val in
1293     [\\/$]* | ?:[\\/]* )  continue;;
1294     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1295   esac
1296   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1297    { (exit 1); exit 1; }; }
1298 done
1299
1300 # There might be people who depend on the old broken behavior: `$host'
1301 # used to hold the argument of --host etc.
1302 # FIXME: To remove some day.
1303 build=$build_alias
1304 host=$host_alias
1305 target=$target_alias
1306
1307 # FIXME: To remove some day.
1308 if test "x$host_alias" != x; then
1309   if test "x$build_alias" = x; then
1310     cross_compiling=maybe
1311     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1312     If a cross compiler is detected then cross compile mode will be used." >&2
1313   elif test "x$build_alias" != "x$host_alias"; then
1314     cross_compiling=yes
1315   fi
1316 fi
1317
1318 ac_tool_prefix=
1319 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1320
1321 test "$silent" = yes && exec 6>/dev/null
1322
1323
1324 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1325 ac_ls_di=`ls -di .` &&
1326 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1327   { echo "$as_me: error: Working directory cannot be determined" >&2
1328    { (exit 1); exit 1; }; }
1329 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1330   { echo "$as_me: error: pwd does not report name of working directory" >&2
1331    { (exit 1); exit 1; }; }
1332
1333
1334 # Find the source files, if location was not specified.
1335 if test -z "$srcdir"; then
1336   ac_srcdir_defaulted=yes
1337   # Try the directory containing this script, then the parent directory.
1338   ac_confdir=`$as_dirname -- "$0" ||
1339 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1340          X"$0" : 'X\(//\)[^/]' \| \
1341          X"$0" : 'X\(//\)$' \| \
1342          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1343 echo X"$0" |
1344     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1345             s//\1/
1346             q
1347           }
1348           /^X\(\/\/\)[^/].*/{
1349             s//\1/
1350             q
1351           }
1352           /^X\(\/\/\)$/{
1353             s//\1/
1354             q
1355           }
1356           /^X\(\/\).*/{
1357             s//\1/
1358             q
1359           }
1360           s/.*/./; q'`
1361   srcdir=$ac_confdir
1362   if test ! -r "$srcdir/$ac_unique_file"; then
1363     srcdir=..
1364   fi
1365 else
1366   ac_srcdir_defaulted=no
1367 fi
1368 if test ! -r "$srcdir/$ac_unique_file"; then
1369   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1370   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1371    { (exit 1); exit 1; }; }
1372 fi
1373 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1374 ac_abs_confdir=`(
1375         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1376    { (exit 1); exit 1; }; }
1377         pwd)`
1378 # When building in place, set srcdir=.
1379 if test "$ac_abs_confdir" = "$ac_pwd"; then
1380   srcdir=.
1381 fi
1382 # Remove unnecessary trailing slashes from srcdir.
1383 # Double slashes in file names in object file debugging info
1384 # mess up M-x gdb in Emacs.
1385 case $srcdir in
1386 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1387 esac
1388 for ac_var in $ac_precious_vars; do
1389   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1390   eval ac_env_${ac_var}_value=\$${ac_var}
1391   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1392   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1393 done
1394
1395 #
1396 # Report the --help message.
1397 #
1398 if test "$ac_init_help" = "long"; then
1399   # Omit some internal or obsolete options to make the list less imposing.
1400   # This message is too long to be a string in the A/UX 3.1 sh.
1401   cat <<_ACEOF
1402 \`configure' configures this package to adapt to many kinds of systems.
1403
1404 Usage: $0 [OPTION]... [VAR=VALUE]...
1405
1406 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1407 VAR=VALUE.  See below for descriptions of some of the useful variables.
1408
1409 Defaults for the options are specified in brackets.
1410
1411 Configuration:
1412   -h, --help              display this help and exit
1413       --help=short        display options specific to this package
1414       --help=recursive    display the short help of all the included packages
1415   -V, --version           display version information and exit
1416   -q, --quiet, --silent   do not print \`checking...' messages
1417       --cache-file=FILE   cache test results in FILE [disabled]
1418   -C, --config-cache      alias for \`--cache-file=config.cache'
1419   -n, --no-create         do not create output files
1420       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1421
1422 Installation directories:
1423   --prefix=PREFIX         install architecture-independent files in PREFIX
1424                           [$ac_default_prefix]
1425   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1426                           [PREFIX]
1427
1428 By default, \`make install' will install all the files in
1429 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1430 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1431 for instance \`--prefix=\$HOME'.
1432
1433 For better control, use the options below.
1434
1435 Fine tuning of the installation directories:
1436   --bindir=DIR           user executables [EPREFIX/bin]
1437   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1438   --libexecdir=DIR       program executables [EPREFIX/libexec]
1439   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1440   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1441   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1442   --libdir=DIR           object code libraries [EPREFIX/lib]
1443   --includedir=DIR       C header files [PREFIX/include]
1444   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1445   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1446   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1447   --infodir=DIR          info documentation [DATAROOTDIR/info]
1448   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1449   --mandir=DIR           man documentation [DATAROOTDIR/man]
1450   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1451   --htmldir=DIR          html documentation [DOCDIR]
1452   --dvidir=DIR           dvi documentation [DOCDIR]
1453   --pdfdir=DIR           pdf documentation [DOCDIR]
1454   --psdir=DIR            ps documentation [DOCDIR]
1455 _ACEOF
1456
1457   cat <<\_ACEOF
1458
1459 Program names:
1460   --program-prefix=PREFIX            prepend PREFIX to installed program names
1461   --program-suffix=SUFFIX            append SUFFIX to installed program names
1462   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1463
1464 System types:
1465   --build=BUILD     configure for building on BUILD [guessed]
1466   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1467 _ACEOF
1468 fi
1469
1470 if test -n "$ac_init_help"; then
1471
1472   cat <<\_ACEOF
1473
1474 Optional Features:
1475   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1476   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1477   --disable-dependency-tracking  speeds up one-time build
1478   --enable-dependency-tracking   do not reject slow dependency extractors
1479   --enable-shared[=PKGS]  build shared libraries [default=yes]
1480   --enable-static[=PKGS]  build static libraries [default=yes]
1481   --enable-fast-install[=PKGS]
1482                           optimize for fast installation [default=yes]
1483   --disable-libtool-lock  avoid locking (might break parallel builds)
1484
1485 Optional Packages:
1486   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1487   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1488   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1489   --with-pic              try to use only PIC/non-PIC objects [default=use
1490                           both]
1491   --with-tags[=TAGS]      include additional configurations [automatic]
1492
1493 Some influential environment variables:
1494   CC          C compiler command
1495   CFLAGS      C compiler flags
1496   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1497               nonstandard directory <lib dir>
1498   LIBS        libraries to pass to the linker, e.g. -l<library>
1499   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1500               you have headers in a nonstandard directory <include dir>
1501   CPP         C preprocessor
1502   CXX         C++ compiler command
1503   CXXFLAGS    C++ compiler flags
1504   CXXCPP      C++ preprocessor
1505   F77         Fortran 77 compiler command
1506   FFLAGS      Fortran 77 compiler flags
1507   PKG_CONFIG  path to pkg-config utility
1508   GTK_CFLAGS  C compiler flags for GTK, overriding pkg-config
1509   GTK_LIBS    linker flags for GTK, overriding pkg-config
1510   HIM_CFLAGS  C compiler flags for HIM, overriding pkg-config
1511   HIM_LIBS    linker flags for HIM, overriding pkg-config
1512   DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
1513   DBUS_LIBS   linker flags for DBUS, overriding pkg-config
1514
1515 Use these variables to override the choices made by `configure' or to help
1516 it to find libraries and programs with nonstandard names/locations.
1517
1518 _ACEOF
1519 ac_status=$?
1520 fi
1521
1522 if test "$ac_init_help" = "recursive"; then
1523   # If there are subdirs, report their specific --help.
1524   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1525     test -d "$ac_dir" || continue
1526     ac_builddir=.
1527
1528 case "$ac_dir" in
1529 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1530 *)
1531   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1532   # A ".." for each directory in $ac_dir_suffix.
1533   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1534   case $ac_top_builddir_sub in
1535   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1536   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1537   esac ;;
1538 esac
1539 ac_abs_top_builddir=$ac_pwd
1540 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1541 # for backward compatibility:
1542 ac_top_builddir=$ac_top_build_prefix
1543
1544 case $srcdir in
1545   .)  # We are building in place.
1546     ac_srcdir=.
1547     ac_top_srcdir=$ac_top_builddir_sub
1548     ac_abs_top_srcdir=$ac_pwd ;;
1549   [\\/]* | ?:[\\/]* )  # Absolute name.
1550     ac_srcdir=$srcdir$ac_dir_suffix;
1551     ac_top_srcdir=$srcdir
1552     ac_abs_top_srcdir=$srcdir ;;
1553   *) # Relative name.
1554     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1555     ac_top_srcdir=$ac_top_build_prefix$srcdir
1556     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1557 esac
1558 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1559
1560     cd "$ac_dir" || { ac_status=$?; continue; }
1561     # Check for guested configure.
1562     if test -f "$ac_srcdir/configure.gnu"; then
1563       echo &&
1564       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1565     elif test -f "$ac_srcdir/configure"; then
1566       echo &&
1567       $SHELL "$ac_srcdir/configure" --help=recursive
1568     else
1569       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1570     fi || ac_status=$?
1571     cd "$ac_pwd" || { ac_status=$?; break; }
1572   done
1573 fi
1574
1575 test -n "$ac_init_help" && exit $ac_status
1576 if $ac_init_version; then
1577   cat <<\_ACEOF
1578 configure
1579 generated by GNU Autoconf 2.61
1580
1581 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1582 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1583 This configure script is free software; the Free Software Foundation
1584 gives unlimited permission to copy, distribute and modify it.
1585 _ACEOF
1586   exit
1587 fi
1588 cat >config.log <<_ACEOF
1589 This file contains any messages produced by compilers while
1590 running configure, to aid debugging if configure makes a mistake.
1591
1592 It was created by $as_me, which was
1593 generated by GNU Autoconf 2.61.  Invocation command line was
1594
1595   $ $0 $@
1596
1597 _ACEOF
1598 exec 5>>config.log
1599 {
1600 cat <<_ASUNAME
1601 ## --------- ##
1602 ## Platform. ##
1603 ## --------- ##
1604
1605 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1606 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1607 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1608 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1609 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1610
1611 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1612 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1613
1614 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1615 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1616 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1617 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1618 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1619 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1620 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1621
1622 _ASUNAME
1623
1624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1625 for as_dir in $PATH
1626 do
1627   IFS=$as_save_IFS
1628   test -z "$as_dir" && as_dir=.
1629   echo "PATH: $as_dir"
1630 done
1631 IFS=$as_save_IFS
1632
1633 } >&5
1634
1635 cat >&5 <<_ACEOF
1636
1637
1638 ## ----------- ##
1639 ## Core tests. ##
1640 ## ----------- ##
1641
1642 _ACEOF
1643
1644
1645 # Keep a trace of the command line.
1646 # Strip out --no-create and --no-recursion so they do not pile up.
1647 # Strip out --silent because we don't want to record it for future runs.
1648 # Also quote any args containing shell meta-characters.
1649 # Make two passes to allow for proper duplicate-argument suppression.
1650 ac_configure_args=
1651 ac_configure_args0=
1652 ac_configure_args1=
1653 ac_must_keep_next=false
1654 for ac_pass in 1 2
1655 do
1656   for ac_arg
1657   do
1658     case $ac_arg in
1659     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1660     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1661     | -silent | --silent | --silen | --sile | --sil)
1662       continue ;;
1663     *\'*)
1664       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1665     esac
1666     case $ac_pass in
1667     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1668     2)
1669       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1670       if test $ac_must_keep_next = true; then
1671         ac_must_keep_next=false # Got value, back to normal.
1672       else
1673         case $ac_arg in
1674           *=* | --config-cache | -C | -disable-* | --disable-* \
1675           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1676           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1677           | -with-* | --with-* | -without-* | --without-* | --x)
1678             case "$ac_configure_args0 " in
1679               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1680             esac
1681             ;;
1682           -* ) ac_must_keep_next=true ;;
1683         esac
1684       fi
1685       ac_configure_args="$ac_configure_args '$ac_arg'"
1686       ;;
1687     esac
1688   done
1689 done
1690 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1691 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1692
1693 # When interrupted or exit'd, cleanup temporary files, and complete
1694 # config.log.  We remove comments because anyway the quotes in there
1695 # would cause problems or look ugly.
1696 # WARNING: Use '\'' to represent an apostrophe within the trap.
1697 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1698 trap 'exit_status=$?
1699   # Save into config.log some information that might help in debugging.
1700   {
1701     echo
1702
1703     cat <<\_ASBOX
1704 ## ---------------- ##
1705 ## Cache variables. ##
1706 ## ---------------- ##
1707 _ASBOX
1708     echo
1709     # The following way of writing the cache mishandles newlines in values,
1710 (
1711   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1712     eval ac_val=\$$ac_var
1713     case $ac_val in #(
1714     *${as_nl}*)
1715       case $ac_var in #(
1716       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1717 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1718       esac
1719       case $ac_var in #(
1720       _ | IFS | as_nl) ;; #(
1721       *) $as_unset $ac_var ;;
1722       esac ;;
1723     esac
1724   done
1725   (set) 2>&1 |
1726     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1727     *${as_nl}ac_space=\ *)
1728       sed -n \
1729         "s/'\''/'\''\\\\'\'''\''/g;
1730           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1731       ;; #(
1732     *)
1733       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1734       ;;
1735     esac |
1736     sort
1737 )
1738     echo
1739
1740     cat <<\_ASBOX
1741 ## ----------------- ##
1742 ## Output variables. ##
1743 ## ----------------- ##
1744 _ASBOX
1745     echo
1746     for ac_var in $ac_subst_vars
1747     do
1748       eval ac_val=\$$ac_var
1749       case $ac_val in
1750       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1751       esac
1752       echo "$ac_var='\''$ac_val'\''"
1753     done | sort
1754     echo
1755
1756     if test -n "$ac_subst_files"; then
1757       cat <<\_ASBOX
1758 ## ------------------- ##
1759 ## File substitutions. ##
1760 ## ------------------- ##
1761 _ASBOX
1762       echo
1763       for ac_var in $ac_subst_files
1764       do
1765         eval ac_val=\$$ac_var
1766         case $ac_val in
1767         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1768         esac
1769         echo "$ac_var='\''$ac_val'\''"
1770       done | sort
1771       echo
1772     fi
1773
1774     if test -s confdefs.h; then
1775       cat <<\_ASBOX
1776 ## ----------- ##
1777 ## confdefs.h. ##
1778 ## ----------- ##
1779 _ASBOX
1780       echo
1781       cat confdefs.h
1782       echo
1783     fi
1784     test "$ac_signal" != 0 &&
1785       echo "$as_me: caught signal $ac_signal"
1786     echo "$as_me: exit $exit_status"
1787   } >&5
1788   rm -f core *.core core.conftest.* &&
1789     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1790     exit $exit_status
1791 ' 0
1792 for ac_signal in 1 2 13 15; do
1793   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1794 done
1795 ac_signal=0
1796
1797 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1798 rm -f -r conftest* confdefs.h
1799
1800 # Predefined preprocessor variables.
1801
1802 cat >>confdefs.h <<_ACEOF
1803 #define PACKAGE_NAME "$PACKAGE_NAME"
1804 _ACEOF
1805
1806
1807 cat >>confdefs.h <<_ACEOF
1808 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1809 _ACEOF
1810
1811
1812 cat >>confdefs.h <<_ACEOF
1813 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1814 _ACEOF
1815
1816
1817 cat >>confdefs.h <<_ACEOF
1818 #define PACKAGE_STRING "$PACKAGE_STRING"
1819 _ACEOF
1820
1821
1822 cat >>confdefs.h <<_ACEOF
1823 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1824 _ACEOF
1825
1826
1827 # Let the site file select an alternate cache file if it wants to.
1828 # Prefer explicitly selected file to automatically selected ones.
1829 if test -n "$CONFIG_SITE"; then
1830   set x "$CONFIG_SITE"
1831 elif test "x$prefix" != xNONE; then
1832   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1833 else
1834   set x "$ac_default_prefix/share/config.site" \
1835         "$ac_default_prefix/etc/config.site"
1836 fi
1837 shift
1838 for ac_site_file
1839 do
1840   if test -r "$ac_site_file"; then
1841     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1842 echo "$as_me: loading site script $ac_site_file" >&6;}
1843     sed 's/^/| /' "$ac_site_file" >&5
1844     . "$ac_site_file"
1845   fi
1846 done
1847
1848 if test -r "$cache_file"; then
1849   # Some versions of bash will fail to source /dev/null (special
1850   # files actually), so we avoid doing that.
1851   if test -f "$cache_file"; then
1852     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1853 echo "$as_me: loading cache $cache_file" >&6;}
1854     case $cache_file in
1855       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1856       *)                      . "./$cache_file";;
1857     esac
1858   fi
1859 else
1860   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1861 echo "$as_me: creating cache $cache_file" >&6;}
1862   >$cache_file
1863 fi
1864
1865 # Check that the precious variables saved in the cache have kept the same
1866 # value.
1867 ac_cache_corrupted=false
1868 for ac_var in $ac_precious_vars; do
1869   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1870   eval ac_new_set=\$ac_env_${ac_var}_set
1871   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1872   eval ac_new_val=\$ac_env_${ac_var}_value
1873   case $ac_old_set,$ac_new_set in
1874     set,)
1875       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1876 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1877       ac_cache_corrupted=: ;;
1878     ,set)
1879       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1880 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1881       ac_cache_corrupted=: ;;
1882     ,);;
1883     *)
1884       if test "x$ac_old_val" != "x$ac_new_val"; then
1885         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1886 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1887         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1888 echo "$as_me:   former value:  $ac_old_val" >&2;}
1889         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1890 echo "$as_me:   current value: $ac_new_val" >&2;}
1891         ac_cache_corrupted=:
1892       fi;;
1893   esac
1894   # Pass precious variables to config.status.
1895   if test "$ac_new_set" = set; then
1896     case $ac_new_val in
1897     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1898     *) ac_arg=$ac_var=$ac_new_val ;;
1899     esac
1900     case " $ac_configure_args " in
1901       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1902       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1903     esac
1904   fi
1905 done
1906 if $ac_cache_corrupted; then
1907   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1908 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1909   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1910 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1911    { (exit 1); exit 1; }; }
1912 fi
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930 ac_ext=c
1931 ac_cpp='$CPP $CPPFLAGS'
1932 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1933 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1934 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1935
1936
1937 am__api_version="1.8"
1938 ac_aux_dir=
1939 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1940   if test -f "$ac_dir/install-sh"; then
1941     ac_aux_dir=$ac_dir
1942     ac_install_sh="$ac_aux_dir/install-sh -c"
1943     break
1944   elif test -f "$ac_dir/install.sh"; then
1945     ac_aux_dir=$ac_dir
1946     ac_install_sh="$ac_aux_dir/install.sh -c"
1947     break
1948   elif test -f "$ac_dir/shtool"; then
1949     ac_aux_dir=$ac_dir
1950     ac_install_sh="$ac_aux_dir/shtool install -c"
1951     break
1952   fi
1953 done
1954 if test -z "$ac_aux_dir"; then
1955   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1956 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1957    { (exit 1); exit 1; }; }
1958 fi
1959
1960 # These three variables are undocumented and unsupported,
1961 # and are intended to be withdrawn in a future Autoconf release.
1962 # They can cause serious problems if a builder's source tree is in a directory
1963 # whose full name contains unusual characters.
1964 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1965 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1966 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1967
1968
1969 # Find a good install program.  We prefer a C program (faster),
1970 # so one script is as good as another.  But avoid the broken or
1971 # incompatible versions:
1972 # SysV /etc/install, /usr/sbin/install
1973 # SunOS /usr/etc/install
1974 # IRIX /sbin/install
1975 # AIX /bin/install
1976 # AmigaOS /C/install, which installs bootblocks on floppy discs
1977 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1978 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1979 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1980 # OS/2's system install, which has a completely different semantic
1981 # ./install, which can be erroneously created by make from ./install.sh.
1982 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1983 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1984 if test -z "$INSTALL"; then
1985 if test "${ac_cv_path_install+set}" = set; then
1986   echo $ECHO_N "(cached) $ECHO_C" >&6
1987 else
1988   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1989 for as_dir in $PATH
1990 do
1991   IFS=$as_save_IFS
1992   test -z "$as_dir" && as_dir=.
1993   # Account for people who put trailing slashes in PATH elements.
1994 case $as_dir/ in
1995   ./ | .// | /cC/* | \
1996   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1997   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1998   /usr/ucb/* ) ;;
1999   *)
2000     # OSF1 and SCO ODT 3.0 have their own names for install.
2001     # Don't use installbsd from OSF since it installs stuff as root
2002     # by default.
2003     for ac_prog in ginstall scoinst install; do
2004       for ac_exec_ext in '' $ac_executable_extensions; do
2005         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2006           if test $ac_prog = install &&
2007             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2008             # AIX install.  It has an incompatible calling convention.
2009             :
2010           elif test $ac_prog = install &&
2011             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2012             # program-specific install script used by HP pwplus--don't use.
2013             :
2014           else
2015             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2016             break 3
2017           fi
2018         fi
2019       done
2020     done
2021     ;;
2022 esac
2023 done
2024 IFS=$as_save_IFS
2025
2026
2027 fi
2028   if test "${ac_cv_path_install+set}" = set; then
2029     INSTALL=$ac_cv_path_install
2030   else
2031     # As a last resort, use the slow shell script.  Don't cache a
2032     # value for INSTALL within a source directory, because that will
2033     # break other packages using the cache if that directory is
2034     # removed, or if the value is a relative name.
2035     INSTALL=$ac_install_sh
2036   fi
2037 fi
2038 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2039 echo "${ECHO_T}$INSTALL" >&6; }
2040
2041 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2042 # It thinks the first close brace ends the variable substitution.
2043 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2044
2045 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2046
2047 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2048
2049 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2050 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2051 # Just in case
2052 sleep 1
2053 echo timestamp > conftest.file
2054 # Do `set' in a subshell so we don't clobber the current shell's
2055 # arguments.  Must try -L first in case configure is actually a
2056 # symlink; some systems play weird games with the mod time of symlinks
2057 # (eg FreeBSD returns the mod time of the symlink's containing
2058 # directory).
2059 if (
2060    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2061    if test "$*" = "X"; then
2062       # -L didn't work.
2063       set X `ls -t $srcdir/configure conftest.file`
2064    fi
2065    rm -f conftest.file
2066    if test "$*" != "X $srcdir/configure conftest.file" \
2067       && test "$*" != "X conftest.file $srcdir/configure"; then
2068
2069       # If neither matched, then we have a broken ls.  This can happen
2070       # if, for instance, CONFIG_SHELL is bash and it inherits a
2071       # broken ls alias from the environment.  This has actually
2072       # happened.  Such a system could not be considered "sane".
2073       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2074 alias in your environment" >&5
2075 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2076 alias in your environment" >&2;}
2077    { (exit 1); exit 1; }; }
2078    fi
2079
2080    test "$2" = conftest.file
2081    )
2082 then
2083    # Ok.
2084    :
2085 else
2086    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2087 Check your system clock" >&5
2088 echo "$as_me: error: newly created file is older than distributed files!
2089 Check your system clock" >&2;}
2090    { (exit 1); exit 1; }; }
2091 fi
2092 { echo "$as_me:$LINENO: result: yes" >&5
2093 echo "${ECHO_T}yes" >&6; }
2094 test "$program_prefix" != NONE &&
2095   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2096 # Use a double $ so make ignores it.
2097 test "$program_suffix" != NONE &&
2098   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2099 # Double any \ or $.  echo might interpret backslashes.
2100 # By default was `s,x,x', remove it if useless.
2101 cat <<\_ACEOF >conftest.sed
2102 s/[\\$]/&&/g;s/;s,x,x,$//
2103 _ACEOF
2104 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2105 rm -f conftest.sed
2106
2107 # expand $ac_aux_dir to an absolute path
2108 am_aux_dir=`cd $ac_aux_dir && pwd`
2109
2110 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2111 # Use eval to expand $SHELL
2112 if eval "$MISSING --run true"; then
2113   am_missing_run="$MISSING --run "
2114 else
2115   am_missing_run=
2116   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2117 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2118 fi
2119
2120 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2121   # Keeping the `.' argument allows $(mkdir_p) to be used without
2122   # argument.  Indeed, we sometimes output rules like
2123   #   $(mkdir_p) $(somedir)
2124   # where $(somedir) is conditionally defined.
2125   # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
2126   # expensive solution, as it forces Make to start a sub-shell.)
2127   mkdir_p='mkdir -p -- .'
2128 else
2129   # On NextStep and OpenStep, the `mkdir' command does not
2130   # recognize any option.  It will interpret all options as
2131   # directories to create, and then abort because `.' already
2132   # exists.
2133   for d in ./-p ./--version;
2134   do
2135     test -d $d && rmdir $d
2136   done
2137   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2138   if test -f "$ac_aux_dir/mkinstalldirs"; then
2139     mkdir_p='$(mkinstalldirs)'
2140   else
2141     mkdir_p='$(install_sh) -d'
2142   fi
2143 fi
2144
2145 for ac_prog in gawk mawk nawk awk
2146 do
2147   # Extract the first word of "$ac_prog", so it can be a program name with args.
2148 set dummy $ac_prog; ac_word=$2
2149 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2150 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2151 if test "${ac_cv_prog_AWK+set}" = set; then
2152   echo $ECHO_N "(cached) $ECHO_C" >&6
2153 else
2154   if test -n "$AWK"; then
2155   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2156 else
2157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2158 for as_dir in $PATH
2159 do
2160   IFS=$as_save_IFS
2161   test -z "$as_dir" && as_dir=.
2162   for ac_exec_ext in '' $ac_executable_extensions; do
2163   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2164     ac_cv_prog_AWK="$ac_prog"
2165     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2166     break 2
2167   fi
2168 done
2169 done
2170 IFS=$as_save_IFS
2171
2172 fi
2173 fi
2174 AWK=$ac_cv_prog_AWK
2175 if test -n "$AWK"; then
2176   { echo "$as_me:$LINENO: result: $AWK" >&5
2177 echo "${ECHO_T}$AWK" >&6; }
2178 else
2179   { echo "$as_me:$LINENO: result: no" >&5
2180 echo "${ECHO_T}no" >&6; }
2181 fi
2182
2183
2184   test -n "$AWK" && break
2185 done
2186
2187 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2188 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2189 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2190 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2191   echo $ECHO_N "(cached) $ECHO_C" >&6
2192 else
2193   cat >conftest.make <<\_ACEOF
2194 SHELL = /bin/sh
2195 all:
2196         @echo '@@@%%%=$(MAKE)=@@@%%%'
2197 _ACEOF
2198 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2199 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2200   *@@@%%%=?*=@@@%%%*)
2201     eval ac_cv_prog_make_${ac_make}_set=yes;;
2202   *)
2203     eval ac_cv_prog_make_${ac_make}_set=no;;
2204 esac
2205 rm -f conftest.make
2206 fi
2207 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2208   { echo "$as_me:$LINENO: result: yes" >&5
2209 echo "${ECHO_T}yes" >&6; }
2210   SET_MAKE=
2211 else
2212   { echo "$as_me:$LINENO: result: no" >&5
2213 echo "${ECHO_T}no" >&6; }
2214   SET_MAKE="MAKE=${MAKE-make}"
2215 fi
2216
2217 rm -rf .tst 2>/dev/null
2218 mkdir .tst 2>/dev/null
2219 if test -d .tst; then
2220   am__leading_dot=.
2221 else
2222   am__leading_dot=_
2223 fi
2224 rmdir .tst 2>/dev/null
2225
2226 # test to see if srcdir already configured
2227 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2228    test -f $srcdir/config.status; then
2229   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2230 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2231    { (exit 1); exit 1; }; }
2232 fi
2233
2234 # test whether we have cygpath
2235 if test -z "$CYGPATH_W"; then
2236   if (cygpath --version) >/dev/null 2>/dev/null; then
2237     CYGPATH_W='cygpath -w'
2238   else
2239     CYGPATH_W=echo
2240   fi
2241 fi
2242
2243
2244 # Define the identity of the package.
2245  PACKAGE=hildon-im-vkb-korean
2246  VERSION=0.0.1
2247
2248
2249 cat >>confdefs.h <<_ACEOF
2250 #define PACKAGE "$PACKAGE"
2251 _ACEOF
2252
2253
2254 cat >>confdefs.h <<_ACEOF
2255 #define VERSION "$VERSION"
2256 _ACEOF
2257
2258 # Some tools Automake needs.
2259
2260 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2261
2262
2263 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2264
2265
2266 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2267
2268
2269 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2270
2271
2272 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2273
2274
2275 AMTAR=${AMTAR-"${am_missing_run}tar"}
2276
2277 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2278
2279 # Installed binaries are usually stripped using `strip' when the user
2280 # run `make install-strip'.  However `strip' might not be the right
2281 # tool to use in cross-compilation environments, therefore Automake
2282 # will honor the `STRIP' environment variable to overrule this program.
2283 if test "$cross_compiling" != no; then
2284   if test -n "$ac_tool_prefix"; then
2285   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2286 set dummy ${ac_tool_prefix}strip; ac_word=$2
2287 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2288 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2289 if test "${ac_cv_prog_STRIP+set}" = set; then
2290   echo $ECHO_N "(cached) $ECHO_C" >&6
2291 else
2292   if test -n "$STRIP"; then
2293   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2294 else
2295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2296 for as_dir in $PATH
2297 do
2298   IFS=$as_save_IFS
2299   test -z "$as_dir" && as_dir=.
2300   for ac_exec_ext in '' $ac_executable_extensions; do
2301   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2302     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2303     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2304     break 2
2305   fi
2306 done
2307 done
2308 IFS=$as_save_IFS
2309
2310 fi
2311 fi
2312 STRIP=$ac_cv_prog_STRIP
2313 if test -n "$STRIP"; then
2314   { echo "$as_me:$LINENO: result: $STRIP" >&5
2315 echo "${ECHO_T}$STRIP" >&6; }
2316 else
2317   { echo "$as_me:$LINENO: result: no" >&5
2318 echo "${ECHO_T}no" >&6; }
2319 fi
2320
2321
2322 fi
2323 if test -z "$ac_cv_prog_STRIP"; then
2324   ac_ct_STRIP=$STRIP
2325   # Extract the first word of "strip", so it can be a program name with args.
2326 set dummy strip; ac_word=$2
2327 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2329 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2330   echo $ECHO_N "(cached) $ECHO_C" >&6
2331 else
2332   if test -n "$ac_ct_STRIP"; then
2333   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2334 else
2335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2336 for as_dir in $PATH
2337 do
2338   IFS=$as_save_IFS
2339   test -z "$as_dir" && as_dir=.
2340   for ac_exec_ext in '' $ac_executable_extensions; do
2341   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2342     ac_cv_prog_ac_ct_STRIP="strip"
2343     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2344     break 2
2345   fi
2346 done
2347 done
2348 IFS=$as_save_IFS
2349
2350 fi
2351 fi
2352 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2353 if test -n "$ac_ct_STRIP"; then
2354   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2355 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2356 else
2357   { echo "$as_me:$LINENO: result: no" >&5
2358 echo "${ECHO_T}no" >&6; }
2359 fi
2360
2361   if test "x$ac_ct_STRIP" = x; then
2362     STRIP=":"
2363   else
2364     case $cross_compiling:$ac_tool_warned in
2365 yes:)
2366 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2367 whose name does not start with the host triplet.  If you think this
2368 configuration is useful to you, please write to autoconf@gnu.org." >&5
2369 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2370 whose name does not start with the host triplet.  If you think this
2371 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2372 ac_tool_warned=yes ;;
2373 esac
2374     STRIP=$ac_ct_STRIP
2375   fi
2376 else
2377   STRIP="$ac_cv_prog_STRIP"
2378 fi
2379
2380 fi
2381 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2382
2383 # We need awk for the "check" target.  The system "awk" is bad on
2384 # some platforms.
2385
2386
2387
2388
2389 DEPDIR="${am__leading_dot}deps"
2390
2391 ac_config_commands="$ac_config_commands depfiles"
2392
2393
2394 am_make=${MAKE-make}
2395 cat > confinc << 'END'
2396 am__doit:
2397         @echo done
2398 .PHONY: am__doit
2399 END
2400 # If we don't find an include directive, just comment out the code.
2401 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2402 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2403 am__include="#"
2404 am__quote=
2405 _am_result=none
2406 # First try GNU make style include.
2407 echo "include confinc" > confmf
2408 # We grep out `Entering directory' and `Leaving directory'
2409 # messages which can occur if `w' ends up in MAKEFLAGS.
2410 # In particular we don't look at `^make:' because GNU make might
2411 # be invoked under some other name (usually "gmake"), in which
2412 # case it prints its new name instead of `make'.
2413 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2414    am__include=include
2415    am__quote=
2416    _am_result=GNU
2417 fi
2418 # Now try BSD make style include.
2419 if test "$am__include" = "#"; then
2420    echo '.include "confinc"' > confmf
2421    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2422       am__include=.include
2423       am__quote="\""
2424       _am_result=BSD
2425    fi
2426 fi
2427
2428
2429 { echo "$as_me:$LINENO: result: $_am_result" >&5
2430 echo "${ECHO_T}$_am_result" >&6; }
2431 rm -f confinc confmf
2432
2433 # Check whether --enable-dependency-tracking was given.
2434 if test "${enable_dependency_tracking+set}" = set; then
2435   enableval=$enable_dependency_tracking;
2436 fi
2437
2438 if test "x$enable_dependency_tracking" != xno; then
2439   am_depcomp="$ac_aux_dir/depcomp"
2440   AMDEPBACKSLASH='\'
2441 fi
2442
2443
2444 if test "x$enable_dependency_tracking" != xno; then
2445   AMDEP_TRUE=
2446   AMDEP_FALSE='#'
2447 else
2448   AMDEP_TRUE='#'
2449   AMDEP_FALSE=
2450 fi
2451
2452
2453
2454 ac_ext=c
2455 ac_cpp='$CPP $CPPFLAGS'
2456 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2457 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2458 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2459 if test -n "$ac_tool_prefix"; then
2460   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2461 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2462 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2463 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2464 if test "${ac_cv_prog_CC+set}" = set; then
2465   echo $ECHO_N "(cached) $ECHO_C" >&6
2466 else
2467   if test -n "$CC"; then
2468   ac_cv_prog_CC="$CC" # Let the user override the test.
2469 else
2470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2471 for as_dir in $PATH
2472 do
2473   IFS=$as_save_IFS
2474   test -z "$as_dir" && as_dir=.
2475   for ac_exec_ext in '' $ac_executable_extensions; do
2476   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2477     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2478     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2479     break 2
2480   fi
2481 done
2482 done
2483 IFS=$as_save_IFS
2484
2485 fi
2486 fi
2487 CC=$ac_cv_prog_CC
2488 if test -n "$CC"; then
2489   { echo "$as_me:$LINENO: result: $CC" >&5
2490 echo "${ECHO_T}$CC" >&6; }
2491 else
2492   { echo "$as_me:$LINENO: result: no" >&5
2493 echo "${ECHO_T}no" >&6; }
2494 fi
2495
2496
2497 fi
2498 if test -z "$ac_cv_prog_CC"; then
2499   ac_ct_CC=$CC
2500   # Extract the first word of "gcc", so it can be a program name with args.
2501 set dummy gcc; ac_word=$2
2502 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2503 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2504 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2505   echo $ECHO_N "(cached) $ECHO_C" >&6
2506 else
2507   if test -n "$ac_ct_CC"; then
2508   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2509 else
2510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2511 for as_dir in $PATH
2512 do
2513   IFS=$as_save_IFS
2514   test -z "$as_dir" && as_dir=.
2515   for ac_exec_ext in '' $ac_executable_extensions; do
2516   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2517     ac_cv_prog_ac_ct_CC="gcc"
2518     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2519     break 2
2520   fi
2521 done
2522 done
2523 IFS=$as_save_IFS
2524
2525 fi
2526 fi
2527 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2528 if test -n "$ac_ct_CC"; then
2529   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2530 echo "${ECHO_T}$ac_ct_CC" >&6; }
2531 else
2532   { echo "$as_me:$LINENO: result: no" >&5
2533 echo "${ECHO_T}no" >&6; }
2534 fi
2535
2536   if test "x$ac_ct_CC" = x; then
2537     CC=""
2538   else
2539     case $cross_compiling:$ac_tool_warned in
2540 yes:)
2541 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2542 whose name does not start with the host triplet.  If you think this
2543 configuration is useful to you, please write to autoconf@gnu.org." >&5
2544 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2545 whose name does not start with the host triplet.  If you think this
2546 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2547 ac_tool_warned=yes ;;
2548 esac
2549     CC=$ac_ct_CC
2550   fi
2551 else
2552   CC="$ac_cv_prog_CC"
2553 fi
2554
2555 if test -z "$CC"; then
2556           if test -n "$ac_tool_prefix"; then
2557     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2558 set dummy ${ac_tool_prefix}cc; ac_word=$2
2559 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2560 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2561 if test "${ac_cv_prog_CC+set}" = set; then
2562   echo $ECHO_N "(cached) $ECHO_C" >&6
2563 else
2564   if test -n "$CC"; then
2565   ac_cv_prog_CC="$CC" # Let the user override the test.
2566 else
2567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2568 for as_dir in $PATH
2569 do
2570   IFS=$as_save_IFS
2571   test -z "$as_dir" && as_dir=.
2572   for ac_exec_ext in '' $ac_executable_extensions; do
2573   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2574     ac_cv_prog_CC="${ac_tool_prefix}cc"
2575     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2576     break 2
2577   fi
2578 done
2579 done
2580 IFS=$as_save_IFS
2581
2582 fi
2583 fi
2584 CC=$ac_cv_prog_CC
2585 if test -n "$CC"; then
2586   { echo "$as_me:$LINENO: result: $CC" >&5
2587 echo "${ECHO_T}$CC" >&6; }
2588 else
2589   { echo "$as_me:$LINENO: result: no" >&5
2590 echo "${ECHO_T}no" >&6; }
2591 fi
2592
2593
2594   fi
2595 fi
2596 if test -z "$CC"; then
2597   # Extract the first word of "cc", so it can be a program name with args.
2598 set dummy cc; ac_word=$2
2599 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2600 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2601 if test "${ac_cv_prog_CC+set}" = set; then
2602   echo $ECHO_N "(cached) $ECHO_C" >&6
2603 else
2604   if test -n "$CC"; then
2605   ac_cv_prog_CC="$CC" # Let the user override the test.
2606 else
2607   ac_prog_rejected=no
2608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2609 for as_dir in $PATH
2610 do
2611   IFS=$as_save_IFS
2612   test -z "$as_dir" && as_dir=.
2613   for ac_exec_ext in '' $ac_executable_extensions; do
2614   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2615     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2616        ac_prog_rejected=yes
2617        continue
2618      fi
2619     ac_cv_prog_CC="cc"
2620     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2621     break 2
2622   fi
2623 done
2624 done
2625 IFS=$as_save_IFS
2626
2627 if test $ac_prog_rejected = yes; then
2628   # We found a bogon in the path, so make sure we never use it.
2629   set dummy $ac_cv_prog_CC
2630   shift
2631   if test $# != 0; then
2632     # We chose a different compiler from the bogus one.
2633     # However, it has the same basename, so the bogon will be chosen
2634     # first if we set CC to just the basename; use the full file name.
2635     shift
2636     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2637   fi
2638 fi
2639 fi
2640 fi
2641 CC=$ac_cv_prog_CC
2642 if test -n "$CC"; then
2643   { echo "$as_me:$LINENO: result: $CC" >&5
2644 echo "${ECHO_T}$CC" >&6; }
2645 else
2646   { echo "$as_me:$LINENO: result: no" >&5
2647 echo "${ECHO_T}no" >&6; }
2648 fi
2649
2650
2651 fi
2652 if test -z "$CC"; then
2653   if test -n "$ac_tool_prefix"; then
2654   for ac_prog in cl.exe
2655   do
2656     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2657 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2658 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2660 if test "${ac_cv_prog_CC+set}" = set; then
2661   echo $ECHO_N "(cached) $ECHO_C" >&6
2662 else
2663   if test -n "$CC"; then
2664   ac_cv_prog_CC="$CC" # Let the user override the test.
2665 else
2666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2667 for as_dir in $PATH
2668 do
2669   IFS=$as_save_IFS
2670   test -z "$as_dir" && as_dir=.
2671   for ac_exec_ext in '' $ac_executable_extensions; do
2672   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2673     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2674     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2675     break 2
2676   fi
2677 done
2678 done
2679 IFS=$as_save_IFS
2680
2681 fi
2682 fi
2683 CC=$ac_cv_prog_CC
2684 if test -n "$CC"; then
2685   { echo "$as_me:$LINENO: result: $CC" >&5
2686 echo "${ECHO_T}$CC" >&6; }
2687 else
2688   { echo "$as_me:$LINENO: result: no" >&5
2689 echo "${ECHO_T}no" >&6; }
2690 fi
2691
2692
2693     test -n "$CC" && break
2694   done
2695 fi
2696 if test -z "$CC"; then
2697   ac_ct_CC=$CC
2698   for ac_prog in cl.exe
2699 do
2700   # Extract the first word of "$ac_prog", so it can be a program name with args.
2701 set dummy $ac_prog; ac_word=$2
2702 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2703 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2704 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2705   echo $ECHO_N "(cached) $ECHO_C" >&6
2706 else
2707   if test -n "$ac_ct_CC"; then
2708   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2709 else
2710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2711 for as_dir in $PATH
2712 do
2713   IFS=$as_save_IFS
2714   test -z "$as_dir" && as_dir=.
2715   for ac_exec_ext in '' $ac_executable_extensions; do
2716   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2717     ac_cv_prog_ac_ct_CC="$ac_prog"
2718     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2719     break 2
2720   fi
2721 done
2722 done
2723 IFS=$as_save_IFS
2724
2725 fi
2726 fi
2727 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2728 if test -n "$ac_ct_CC"; then
2729   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2730 echo "${ECHO_T}$ac_ct_CC" >&6; }
2731 else
2732   { echo "$as_me:$LINENO: result: no" >&5
2733 echo "${ECHO_T}no" >&6; }
2734 fi
2735
2736
2737   test -n "$ac_ct_CC" && break
2738 done
2739
2740   if test "x$ac_ct_CC" = x; then
2741     CC=""
2742   else
2743     case $cross_compiling:$ac_tool_warned in
2744 yes:)
2745 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2746 whose name does not start with the host triplet.  If you think this
2747 configuration is useful to you, please write to autoconf@gnu.org." >&5
2748 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2749 whose name does not start with the host triplet.  If you think this
2750 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2751 ac_tool_warned=yes ;;
2752 esac
2753     CC=$ac_ct_CC
2754   fi
2755 fi
2756
2757 fi
2758
2759
2760 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2761 See \`config.log' for more details." >&5
2762 echo "$as_me: error: no acceptable C compiler found in \$PATH
2763 See \`config.log' for more details." >&2;}
2764    { (exit 1); exit 1; }; }
2765
2766 # Provide some information about the compiler.
2767 echo "$as_me:$LINENO: checking for C compiler version" >&5
2768 ac_compiler=`set X $ac_compile; echo $2`
2769 { (ac_try="$ac_compiler --version >&5"
2770 case "(($ac_try" in
2771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2772   *) ac_try_echo=$ac_try;;
2773 esac
2774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2775   (eval "$ac_compiler --version >&5") 2>&5
2776   ac_status=$?
2777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2778   (exit $ac_status); }
2779 { (ac_try="$ac_compiler -v >&5"
2780 case "(($ac_try" in
2781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2782   *) ac_try_echo=$ac_try;;
2783 esac
2784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2785   (eval "$ac_compiler -v >&5") 2>&5
2786   ac_status=$?
2787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2788   (exit $ac_status); }
2789 { (ac_try="$ac_compiler -V >&5"
2790 case "(($ac_try" in
2791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2792   *) ac_try_echo=$ac_try;;
2793 esac
2794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2795   (eval "$ac_compiler -V >&5") 2>&5
2796   ac_status=$?
2797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2798   (exit $ac_status); }
2799
2800 cat >conftest.$ac_ext <<_ACEOF
2801 /* confdefs.h.  */
2802 _ACEOF
2803 cat confdefs.h >>conftest.$ac_ext
2804 cat >>conftest.$ac_ext <<_ACEOF
2805 /* end confdefs.h.  */
2806
2807 int
2808 main ()
2809 {
2810
2811   ;
2812   return 0;
2813 }
2814 _ACEOF
2815 ac_clean_files_save=$ac_clean_files
2816 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2817 # Try to create an executable without -o first, disregard a.out.
2818 # It will help us diagnose broken compilers, and finding out an intuition
2819 # of exeext.
2820 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2821 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2822 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2823 #
2824 # List of possible output files, starting from the most likely.
2825 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2826 # only as a last resort.  b.out is created by i960 compilers.
2827 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2828 #
2829 # The IRIX 6 linker writes into existing files which may not be
2830 # executable, retaining their permissions.  Remove them first so a
2831 # subsequent execution test works.
2832 ac_rmfiles=
2833 for ac_file in $ac_files
2834 do
2835   case $ac_file in
2836     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2837     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2838   esac
2839 done
2840 rm -f $ac_rmfiles
2841
2842 if { (ac_try="$ac_link_default"
2843 case "(($ac_try" in
2844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2845   *) ac_try_echo=$ac_try;;
2846 esac
2847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2848   (eval "$ac_link_default") 2>&5
2849   ac_status=$?
2850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2851   (exit $ac_status); }; then
2852   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2853 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2854 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2855 # so that the user can short-circuit this test for compilers unknown to
2856 # Autoconf.
2857 for ac_file in $ac_files ''
2858 do
2859   test -f "$ac_file" || continue
2860   case $ac_file in
2861     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2862         ;;
2863     [ab].out )
2864         # We found the default executable, but exeext='' is most
2865         # certainly right.
2866         break;;
2867     *.* )
2868         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2869         then :; else
2870            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2871         fi
2872         # We set ac_cv_exeext here because the later test for it is not
2873         # safe: cross compilers may not add the suffix if given an `-o'
2874         # argument, so we may need to know it at that point already.
2875         # Even if this section looks crufty: it has the advantage of
2876         # actually working.
2877         break;;
2878     * )
2879         break;;
2880   esac
2881 done
2882 test "$ac_cv_exeext" = no && ac_cv_exeext=
2883
2884 else
2885   ac_file=''
2886 fi
2887
2888 { echo "$as_me:$LINENO: result: $ac_file" >&5
2889 echo "${ECHO_T}$ac_file" >&6; }
2890 if test -z "$ac_file"; then
2891   echo "$as_me: failed program was:" >&5
2892 sed 's/^/| /' conftest.$ac_ext >&5
2893
2894 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2895 See \`config.log' for more details." >&5
2896 echo "$as_me: error: C compiler cannot create executables
2897 See \`config.log' for more details." >&2;}
2898    { (exit 77); exit 77; }; }
2899 fi
2900
2901 ac_exeext=$ac_cv_exeext
2902
2903 # Check that the compiler produces executables we can run.  If not, either
2904 # the compiler is broken, or we cross compile.
2905 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2906 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2907 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2908 # If not cross compiling, check that we can run a simple program.
2909 if test "$cross_compiling" != yes; then
2910   if { ac_try='./$ac_file'
2911   { (case "(($ac_try" in
2912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2913   *) ac_try_echo=$ac_try;;
2914 esac
2915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2916   (eval "$ac_try") 2>&5
2917   ac_status=$?
2918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2919   (exit $ac_status); }; }; then
2920     cross_compiling=no
2921   else
2922     if test "$cross_compiling" = maybe; then
2923         cross_compiling=yes
2924     else
2925         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2926 If you meant to cross compile, use \`--host'.
2927 See \`config.log' for more details." >&5
2928 echo "$as_me: error: cannot run C compiled programs.
2929 If you meant to cross compile, use \`--host'.
2930 See \`config.log' for more details." >&2;}
2931    { (exit 1); exit 1; }; }
2932     fi
2933   fi
2934 fi
2935 { echo "$as_me:$LINENO: result: yes" >&5
2936 echo "${ECHO_T}yes" >&6; }
2937
2938 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2939 ac_clean_files=$ac_clean_files_save
2940 # Check that the compiler produces executables we can run.  If not, either
2941 # the compiler is broken, or we cross compile.
2942 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2943 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2944 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2945 echo "${ECHO_T}$cross_compiling" >&6; }
2946
2947 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2948 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2949 if { (ac_try="$ac_link"
2950 case "(($ac_try" in
2951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2952   *) ac_try_echo=$ac_try;;
2953 esac
2954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2955   (eval "$ac_link") 2>&5
2956   ac_status=$?
2957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2958   (exit $ac_status); }; then
2959   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2960 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2961 # work properly (i.e., refer to `conftest.exe'), while it won't with
2962 # `rm'.
2963 for ac_file in conftest.exe conftest conftest.*; do
2964   test -f "$ac_file" || continue
2965   case $ac_file in
2966     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2967     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2968           break;;
2969     * ) break;;
2970   esac
2971 done
2972 else
2973   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2974 See \`config.log' for more details." >&5
2975 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2976 See \`config.log' for more details." >&2;}
2977    { (exit 1); exit 1; }; }
2978 fi
2979
2980 rm -f conftest$ac_cv_exeext
2981 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2982 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2983
2984 rm -f conftest.$ac_ext
2985 EXEEXT=$ac_cv_exeext
2986 ac_exeext=$EXEEXT
2987 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2988 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2989 if test "${ac_cv_objext+set}" = set; then
2990   echo $ECHO_N "(cached) $ECHO_C" >&6
2991 else
2992   cat >conftest.$ac_ext <<_ACEOF
2993 /* confdefs.h.  */
2994 _ACEOF
2995 cat confdefs.h >>conftest.$ac_ext
2996 cat >>conftest.$ac_ext <<_ACEOF
2997 /* end confdefs.h.  */
2998
2999 int
3000 main ()
3001 {
3002
3003   ;
3004   return 0;
3005 }
3006 _ACEOF
3007 rm -f conftest.o conftest.obj
3008 if { (ac_try="$ac_compile"
3009 case "(($ac_try" in
3010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3011   *) ac_try_echo=$ac_try;;
3012 esac
3013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3014   (eval "$ac_compile") 2>&5
3015   ac_status=$?
3016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3017   (exit $ac_status); }; then
3018   for ac_file in conftest.o conftest.obj conftest.*; do
3019   test -f "$ac_file" || continue;
3020   case $ac_file in
3021     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3022     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3023        break;;
3024   esac
3025 done
3026 else
3027   echo "$as_me: failed program was:" >&5
3028 sed 's/^/| /' conftest.$ac_ext >&5
3029
3030 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3031 See \`config.log' for more details." >&5
3032 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3033 See \`config.log' for more details." >&2;}
3034    { (exit 1); exit 1; }; }
3035 fi
3036
3037 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3038 fi
3039 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3040 echo "${ECHO_T}$ac_cv_objext" >&6; }
3041 OBJEXT=$ac_cv_objext
3042 ac_objext=$OBJEXT
3043 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3044 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3045 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3046   echo $ECHO_N "(cached) $ECHO_C" >&6
3047 else
3048   cat >conftest.$ac_ext <<_ACEOF
3049 /* confdefs.h.  */
3050 _ACEOF
3051 cat confdefs.h >>conftest.$ac_ext
3052 cat >>conftest.$ac_ext <<_ACEOF
3053 /* end confdefs.h.  */
3054
3055 int
3056 main ()
3057 {
3058 #ifndef __GNUC__
3059        choke me
3060 #endif
3061
3062   ;
3063   return 0;
3064 }
3065 _ACEOF
3066 rm -f conftest.$ac_objext
3067 if { (ac_try="$ac_compile"
3068 case "(($ac_try" in
3069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3070   *) ac_try_echo=$ac_try;;
3071 esac
3072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3073   (eval "$ac_compile") 2>conftest.er1
3074   ac_status=$?
3075   grep -v '^ *+' conftest.er1 >conftest.err
3076   rm -f conftest.er1
3077   cat conftest.err >&5
3078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3079   (exit $ac_status); } && {
3080          test -z "$ac_c_werror_flag" ||
3081          test ! -s conftest.err
3082        } && test -s conftest.$ac_objext; then
3083   ac_compiler_gnu=yes
3084 else
3085   echo "$as_me: failed program was:" >&5
3086 sed 's/^/| /' conftest.$ac_ext >&5
3087
3088         ac_compiler_gnu=no
3089 fi
3090
3091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3092 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3093
3094 fi
3095 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3096 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3097 GCC=`test $ac_compiler_gnu = yes && echo yes`
3098 ac_test_CFLAGS=${CFLAGS+set}
3099 ac_save_CFLAGS=$CFLAGS
3100 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3101 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3102 if test "${ac_cv_prog_cc_g+set}" = set; then
3103   echo $ECHO_N "(cached) $ECHO_C" >&6
3104 else
3105   ac_save_c_werror_flag=$ac_c_werror_flag
3106    ac_c_werror_flag=yes
3107    ac_cv_prog_cc_g=no
3108    CFLAGS="-g"
3109    cat >conftest.$ac_ext <<_ACEOF
3110 /* confdefs.h.  */
3111 _ACEOF
3112 cat confdefs.h >>conftest.$ac_ext
3113 cat >>conftest.$ac_ext <<_ACEOF
3114 /* end confdefs.h.  */
3115
3116 int
3117 main ()
3118 {
3119
3120   ;
3121   return 0;
3122 }
3123 _ACEOF
3124 rm -f conftest.$ac_objext
3125 if { (ac_try="$ac_compile"
3126 case "(($ac_try" in
3127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3128   *) ac_try_echo=$ac_try;;
3129 esac
3130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3131   (eval "$ac_compile") 2>conftest.er1
3132   ac_status=$?
3133   grep -v '^ *+' conftest.er1 >conftest.err
3134   rm -f conftest.er1
3135   cat conftest.err >&5
3136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3137   (exit $ac_status); } && {
3138          test -z "$ac_c_werror_flag" ||
3139          test ! -s conftest.err
3140        } && test -s conftest.$ac_objext; then
3141   ac_cv_prog_cc_g=yes
3142 else
3143   echo "$as_me: failed program was:" >&5
3144 sed 's/^/| /' conftest.$ac_ext >&5
3145
3146         CFLAGS=""
3147       cat >conftest.$ac_ext <<_ACEOF
3148 /* confdefs.h.  */
3149 _ACEOF
3150 cat confdefs.h >>conftest.$ac_ext
3151 cat >>conftest.$ac_ext <<_ACEOF
3152 /* end confdefs.h.  */
3153
3154 int
3155 main ()
3156 {
3157
3158   ;
3159   return 0;
3160 }
3161 _ACEOF
3162 rm -f conftest.$ac_objext
3163 if { (ac_try="$ac_compile"
3164 case "(($ac_try" in
3165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3166   *) ac_try_echo=$ac_try;;
3167 esac
3168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3169   (eval "$ac_compile") 2>conftest.er1
3170   ac_status=$?
3171   grep -v '^ *+' conftest.er1 >conftest.err
3172   rm -f conftest.er1
3173   cat conftest.err >&5
3174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3175   (exit $ac_status); } && {
3176          test -z "$ac_c_werror_flag" ||
3177          test ! -s conftest.err
3178        } && test -s conftest.$ac_objext; then
3179   :
3180 else
3181   echo "$as_me: failed program was:" >&5
3182 sed 's/^/| /' conftest.$ac_ext >&5
3183
3184         ac_c_werror_flag=$ac_save_c_werror_flag
3185          CFLAGS="-g"
3186          cat >conftest.$ac_ext <<_ACEOF
3187 /* confdefs.h.  */
3188 _ACEOF
3189 cat confdefs.h >>conftest.$ac_ext
3190 cat >>conftest.$ac_ext <<_ACEOF
3191 /* end confdefs.h.  */
3192
3193 int
3194 main ()
3195 {
3196
3197   ;
3198   return 0;
3199 }
3200 _ACEOF
3201 rm -f conftest.$ac_objext
3202 if { (ac_try="$ac_compile"
3203 case "(($ac_try" in
3204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3205   *) ac_try_echo=$ac_try;;
3206 esac
3207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3208   (eval "$ac_compile") 2>conftest.er1
3209   ac_status=$?
3210   grep -v '^ *+' conftest.er1 >conftest.err
3211   rm -f conftest.er1
3212   cat conftest.err >&5
3213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3214   (exit $ac_status); } && {
3215          test -z "$ac_c_werror_flag" ||
3216          test ! -s conftest.err
3217        } && test -s conftest.$ac_objext; then
3218   ac_cv_prog_cc_g=yes
3219 else
3220   echo "$as_me: failed program was:" >&5
3221 sed 's/^/| /' conftest.$ac_ext >&5
3222
3223
3224 fi
3225
3226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3227 fi
3228
3229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3230 fi
3231
3232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3233    ac_c_werror_flag=$ac_save_c_werror_flag
3234 fi
3235 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3236 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3237 if test "$ac_test_CFLAGS" = set; then
3238   CFLAGS=$ac_save_CFLAGS
3239 elif test $ac_cv_prog_cc_g = yes; then
3240   if test "$GCC" = yes; then
3241     CFLAGS="-g -O2"
3242   else
3243     CFLAGS="-g"
3244   fi
3245 else
3246   if test "$GCC" = yes; then
3247     CFLAGS="-O2"
3248   else
3249     CFLAGS=
3250   fi
3251 fi
3252 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3253 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3254 if test "${ac_cv_prog_cc_c89+set}" = set; then
3255   echo $ECHO_N "(cached) $ECHO_C" >&6
3256 else
3257   ac_cv_prog_cc_c89=no
3258 ac_save_CC=$CC
3259 cat >conftest.$ac_ext <<_ACEOF
3260 /* confdefs.h.  */
3261 _ACEOF
3262 cat confdefs.h >>conftest.$ac_ext
3263 cat >>conftest.$ac_ext <<_ACEOF
3264 /* end confdefs.h.  */
3265 #include <stdarg.h>
3266 #include <stdio.h>
3267 #include <sys/types.h>
3268 #include <sys/stat.h>
3269 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3270 struct buf { int x; };
3271 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3272 static char *e (p, i)
3273      char **p;
3274      int i;
3275 {
3276   return p[i];
3277 }
3278 static char *f (char * (*g) (char **, int), char **p, ...)
3279 {
3280   char *s;
3281   va_list v;
3282   va_start (v,p);
3283   s = g (p, va_arg (v,int));
3284   va_end (v);
3285   return s;
3286 }
3287
3288 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3289    function prototypes and stuff, but not '\xHH' hex character constants.
3290    These don't provoke an error unfortunately, instead are silently treated
3291    as 'x'.  The following induces an error, until -std is added to get
3292    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3293    array size at least.  It's necessary to write '\x00'==0 to get something
3294    that's true only with -std.  */
3295 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3296
3297 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3298    inside strings and character constants.  */
3299 #define FOO(x) 'x'
3300 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3301
3302 int test (int i, double x);
3303 struct s1 {int (*f) (int a);};
3304 struct s2 {int (*f) (double a);};
3305 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3306 int argc;
3307 char **argv;
3308 int
3309 main ()
3310 {
3311 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3312   ;
3313   return 0;
3314 }
3315 _ACEOF
3316 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3317         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3318 do
3319   CC="$ac_save_CC $ac_arg"
3320   rm -f conftest.$ac_objext
3321 if { (ac_try="$ac_compile"
3322 case "(($ac_try" in
3323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3324   *) ac_try_echo=$ac_try;;
3325 esac
3326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3327   (eval "$ac_compile") 2>conftest.er1
3328   ac_status=$?
3329   grep -v '^ *+' conftest.er1 >conftest.err
3330   rm -f conftest.er1
3331   cat conftest.err >&5
3332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3333   (exit $ac_status); } && {
3334          test -z "$ac_c_werror_flag" ||
3335          test ! -s conftest.err
3336        } && test -s conftest.$ac_objext; then
3337   ac_cv_prog_cc_c89=$ac_arg
3338 else
3339   echo "$as_me: failed program was:" >&5
3340 sed 's/^/| /' conftest.$ac_ext >&5
3341
3342
3343 fi
3344
3345 rm -f core conftest.err conftest.$ac_objext
3346   test "x$ac_cv_prog_cc_c89" != "xno" && break
3347 done
3348 rm -f conftest.$ac_ext
3349 CC=$ac_save_CC
3350
3351 fi
3352 # AC_CACHE_VAL
3353 case "x$ac_cv_prog_cc_c89" in
3354   x)
3355     { echo "$as_me:$LINENO: result: none needed" >&5
3356 echo "${ECHO_T}none needed" >&6; } ;;
3357   xno)
3358     { echo "$as_me:$LINENO: result: unsupported" >&5
3359 echo "${ECHO_T}unsupported" >&6; } ;;
3360   *)
3361     CC="$CC $ac_cv_prog_cc_c89"
3362     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3363 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3364 esac
3365
3366
3367 ac_ext=c
3368 ac_cpp='$CPP $CPPFLAGS'
3369 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3370 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3371 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3372
3373 depcc="$CC"   am_compiler_list=
3374
3375 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3376 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3377 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3378   echo $ECHO_N "(cached) $ECHO_C" >&6
3379 else
3380   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3381   # We make a subdir and do the tests there.  Otherwise we can end up
3382   # making bogus files that we don't know about and never remove.  For
3383   # instance it was reported that on HP-UX the gcc test will end up
3384   # making a dummy file named `D' -- because `-MD' means `put the output
3385   # in D'.
3386   mkdir conftest.dir
3387   # Copy depcomp to subdir because otherwise we won't find it if we're
3388   # using a relative directory.
3389   cp "$am_depcomp" conftest.dir
3390   cd conftest.dir
3391   # We will build objects and dependencies in a subdirectory because
3392   # it helps to detect inapplicable dependency modes.  For instance
3393   # both Tru64's cc and ICC support -MD to output dependencies as a
3394   # side effect of compilation, but ICC will put the dependencies in
3395   # the current directory while Tru64 will put them in the object
3396   # directory.
3397   mkdir sub
3398
3399   am_cv_CC_dependencies_compiler_type=none
3400   if test "$am_compiler_list" = ""; then
3401      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3402   fi
3403   for depmode in $am_compiler_list; do
3404     # Setup a source with many dependencies, because some compilers
3405     # like to wrap large dependency lists on column 80 (with \), and
3406     # we should not choose a depcomp mode which is confused by this.
3407     #
3408     # We need to recreate these files for each test, as the compiler may
3409     # overwrite some of them when testing with obscure command lines.
3410     # This happens at least with the AIX C compiler.
3411     : > sub/conftest.c
3412     for i in 1 2 3 4 5 6; do
3413       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3414       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3415       # Solaris 8's {/usr,}/bin/sh.
3416       touch sub/conftst$i.h
3417     done
3418     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3419
3420     case $depmode in
3421     nosideeffect)
3422       # after this tag, mechanisms are not by side-effect, so they'll
3423       # only be used when explicitly requested
3424       if test "x$enable_dependency_tracking" = xyes; then
3425         continue
3426       else
3427         break
3428       fi
3429       ;;
3430     none) break ;;
3431     esac
3432     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3433     # mode.  It turns out that the SunPro C++ compiler does not properly
3434     # handle `-M -o', and we need to detect this.
3435     if depmode=$depmode \
3436        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3437        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3438        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3439          >/dev/null 2>conftest.err &&
3440        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3441        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3442        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3443       # icc doesn't choke on unknown options, it will just issue warnings
3444       # or remarks (even with -Werror).  So we grep stderr for any message
3445       # that says an option was ignored or not supported.
3446       # When given -MP, icc 7.0 and 7.1 complain thusly:
3447       #   icc: Command line warning: ignoring option '-M'; no argument required
3448       # The diagnosis changed in icc 8.0:
3449       #   icc: Command line remark: option '-MP' not supported
3450       if (grep 'ignoring option' conftest.err ||
3451           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3452         am_cv_CC_dependencies_compiler_type=$depmode
3453         break
3454       fi
3455     fi
3456   done
3457
3458   cd ..
3459   rm -rf conftest.dir
3460 else
3461   am_cv_CC_dependencies_compiler_type=none
3462 fi
3463
3464 fi
3465 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3466 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3467 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3468
3469
3470
3471 if
3472   test "x$enable_dependency_tracking" != xno \
3473   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3474   am__fastdepCC_TRUE=
3475   am__fastdepCC_FALSE='#'
3476 else
3477   am__fastdepCC_TRUE='#'
3478   am__fastdepCC_FALSE=
3479 fi
3480
3481
3482
3483 { echo "$as_me:$LINENO: checking for library containing strerror" >&5
3484 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
3485 if test "${ac_cv_search_strerror+set}" = set; then
3486   echo $ECHO_N "(cached) $ECHO_C" >&6
3487 else
3488   ac_func_search_save_LIBS=$LIBS
3489 cat >conftest.$ac_ext <<_ACEOF
3490 /* confdefs.h.  */
3491 _ACEOF
3492 cat confdefs.h >>conftest.$ac_ext
3493 cat >>conftest.$ac_ext <<_ACEOF
3494 /* end confdefs.h.  */
3495
3496 /* Override any GCC internal prototype to avoid an error.
3497    Use char because int might match the return type of a GCC
3498    builtin and then its argument prototype would still apply.  */
3499 #ifdef __cplusplus
3500 extern "C"
3501 #endif
3502 char strerror ();
3503 int
3504 main ()
3505 {
3506 return strerror ();
3507   ;
3508   return 0;
3509 }
3510 _ACEOF
3511 for ac_lib in '' cposix; do
3512   if test -z "$ac_lib"; then
3513     ac_res="none required"
3514   else
3515     ac_res=-l$ac_lib
3516     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3517   fi
3518   rm -f conftest.$ac_objext conftest$ac_exeext
3519 if { (ac_try="$ac_link"
3520 case "(($ac_try" in
3521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3522   *) ac_try_echo=$ac_try;;
3523 esac
3524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3525   (eval "$ac_link") 2>conftest.er1
3526   ac_status=$?
3527   grep -v '^ *+' conftest.er1 >conftest.err
3528   rm -f conftest.er1
3529   cat conftest.err >&5
3530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3531   (exit $ac_status); } && {
3532          test -z "$ac_c_werror_flag" ||
3533          test ! -s conftest.err
3534        } && test -s conftest$ac_exeext &&
3535        $as_test_x conftest$ac_exeext; then
3536   ac_cv_search_strerror=$ac_res
3537 else
3538   echo "$as_me: failed program was:" >&5
3539 sed 's/^/| /' conftest.$ac_ext >&5
3540
3541
3542 fi
3543
3544 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3545       conftest$ac_exeext
3546   if test "${ac_cv_search_strerror+set}" = set; then
3547   break
3548 fi
3549 done
3550 if test "${ac_cv_search_strerror+set}" = set; then
3551   :
3552 else
3553   ac_cv_search_strerror=no
3554 fi
3555 rm conftest.$ac_ext
3556 LIBS=$ac_func_search_save_LIBS
3557 fi
3558 { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3559 echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
3560 ac_res=$ac_cv_search_strerror
3561 if test "$ac_res" != no; then
3562   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3563
3564 fi
3565
3566 ac_ext=c
3567 ac_cpp='$CPP $CPPFLAGS'
3568 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3569 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3570 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3571 if test -n "$ac_tool_prefix"; then
3572   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3573 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3574 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3576 if test "${ac_cv_prog_CC+set}" = set; then
3577   echo $ECHO_N "(cached) $ECHO_C" >&6
3578 else
3579   if test -n "$CC"; then
3580   ac_cv_prog_CC="$CC" # Let the user override the test.
3581 else
3582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3583 for as_dir in $PATH
3584 do
3585   IFS=$as_save_IFS
3586   test -z "$as_dir" && as_dir=.
3587   for ac_exec_ext in '' $ac_executable_extensions; do
3588   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3589     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3590     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3591     break 2
3592   fi
3593 done
3594 done
3595 IFS=$as_save_IFS
3596
3597 fi
3598 fi
3599 CC=$ac_cv_prog_CC
3600 if test -n "$CC"; then
3601   { echo "$as_me:$LINENO: result: $CC" >&5
3602 echo "${ECHO_T}$CC" >&6; }
3603 else
3604   { echo "$as_me:$LINENO: result: no" >&5
3605 echo "${ECHO_T}no" >&6; }
3606 fi
3607
3608
3609 fi
3610 if test -z "$ac_cv_prog_CC"; then
3611   ac_ct_CC=$CC
3612   # Extract the first word of "gcc", so it can be a program name with args.
3613 set dummy gcc; ac_word=$2
3614 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3615 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3616 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3617   echo $ECHO_N "(cached) $ECHO_C" >&6
3618 else
3619   if test -n "$ac_ct_CC"; then
3620   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3621 else
3622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3623 for as_dir in $PATH
3624 do
3625   IFS=$as_save_IFS
3626   test -z "$as_dir" && as_dir=.
3627   for ac_exec_ext in '' $ac_executable_extensions; do
3628   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3629     ac_cv_prog_ac_ct_CC="gcc"
3630     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3631     break 2
3632   fi
3633 done
3634 done
3635 IFS=$as_save_IFS
3636
3637 fi
3638 fi
3639 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3640 if test -n "$ac_ct_CC"; then
3641   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3642 echo "${ECHO_T}$ac_ct_CC" >&6; }
3643 else
3644   { echo "$as_me:$LINENO: result: no" >&5
3645 echo "${ECHO_T}no" >&6; }
3646 fi
3647
3648   if test "x$ac_ct_CC" = x; then
3649     CC=""
3650   else
3651     case $cross_compiling:$ac_tool_warned in
3652 yes:)
3653 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3654 whose name does not start with the host triplet.  If you think this
3655 configuration is useful to you, please write to autoconf@gnu.org." >&5
3656 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3657 whose name does not start with the host triplet.  If you think this
3658 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3659 ac_tool_warned=yes ;;
3660 esac
3661     CC=$ac_ct_CC
3662   fi
3663 else
3664   CC="$ac_cv_prog_CC"
3665 fi
3666
3667 if test -z "$CC"; then
3668           if test -n "$ac_tool_prefix"; then
3669     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3670 set dummy ${ac_tool_prefix}cc; ac_word=$2
3671 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3672 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3673 if test "${ac_cv_prog_CC+set}" = set; then
3674   echo $ECHO_N "(cached) $ECHO_C" >&6
3675 else
3676   if test -n "$CC"; then
3677   ac_cv_prog_CC="$CC" # Let the user override the test.
3678 else
3679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3680 for as_dir in $PATH
3681 do
3682   IFS=$as_save_IFS
3683   test -z "$as_dir" && as_dir=.
3684   for ac_exec_ext in '' $ac_executable_extensions; do
3685   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3686     ac_cv_prog_CC="${ac_tool_prefix}cc"
3687     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3688     break 2
3689   fi
3690 done
3691 done
3692 IFS=$as_save_IFS
3693
3694 fi
3695 fi
3696 CC=$ac_cv_prog_CC
3697 if test -n "$CC"; then
3698   { echo "$as_me:$LINENO: result: $CC" >&5
3699 echo "${ECHO_T}$CC" >&6; }
3700 else
3701   { echo "$as_me:$LINENO: result: no" >&5
3702 echo "${ECHO_T}no" >&6; }
3703 fi
3704
3705
3706   fi
3707 fi
3708 if test -z "$CC"; then
3709   # Extract the first word of "cc", so it can be a program name with args.
3710 set dummy cc; ac_word=$2
3711 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3712 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3713 if test "${ac_cv_prog_CC+set}" = set; then
3714   echo $ECHO_N "(cached) $ECHO_C" >&6
3715 else
3716   if test -n "$CC"; then
3717   ac_cv_prog_CC="$CC" # Let the user override the test.
3718 else
3719   ac_prog_rejected=no
3720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3721 for as_dir in $PATH
3722 do
3723   IFS=$as_save_IFS
3724   test -z "$as_dir" && as_dir=.
3725   for ac_exec_ext in '' $ac_executable_extensions; do
3726   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3727     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3728        ac_prog_rejected=yes
3729        continue
3730      fi
3731     ac_cv_prog_CC="cc"
3732     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3733     break 2
3734   fi
3735 done
3736 done
3737 IFS=$as_save_IFS
3738
3739 if test $ac_prog_rejected = yes; then
3740   # We found a bogon in the path, so make sure we never use it.
3741   set dummy $ac_cv_prog_CC
3742   shift
3743   if test $# != 0; then
3744     # We chose a different compiler from the bogus one.
3745     # However, it has the same basename, so the bogon will be chosen
3746     # first if we set CC to just the basename; use the full file name.
3747     shift
3748     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3749   fi
3750 fi
3751 fi
3752 fi
3753 CC=$ac_cv_prog_CC
3754 if test -n "$CC"; then
3755   { echo "$as_me:$LINENO: result: $CC" >&5
3756 echo "${ECHO_T}$CC" >&6; }
3757 else
3758   { echo "$as_me:$LINENO: result: no" >&5
3759 echo "${ECHO_T}no" >&6; }
3760 fi
3761
3762
3763 fi
3764 if test -z "$CC"; then
3765   if test -n "$ac_tool_prefix"; then
3766   for ac_prog in cl.exe
3767   do
3768     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3769 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3770 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3772 if test "${ac_cv_prog_CC+set}" = set; then
3773   echo $ECHO_N "(cached) $ECHO_C" >&6
3774 else
3775   if test -n "$CC"; then
3776   ac_cv_prog_CC="$CC" # Let the user override the test.
3777 else
3778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3779 for as_dir in $PATH
3780 do
3781   IFS=$as_save_IFS
3782   test -z "$as_dir" && as_dir=.
3783   for ac_exec_ext in '' $ac_executable_extensions; do
3784   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3785     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3786     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3787     break 2
3788   fi
3789 done
3790 done
3791 IFS=$as_save_IFS
3792
3793 fi
3794 fi
3795 CC=$ac_cv_prog_CC
3796 if test -n "$CC"; then
3797   { echo "$as_me:$LINENO: result: $CC" >&5
3798 echo "${ECHO_T}$CC" >&6; }
3799 else
3800   { echo "$as_me:$LINENO: result: no" >&5
3801 echo "${ECHO_T}no" >&6; }
3802 fi
3803
3804
3805     test -n "$CC" && break
3806   done
3807 fi
3808 if test -z "$CC"; then
3809   ac_ct_CC=$CC
3810   for ac_prog in cl.exe
3811 do
3812   # Extract the first word of "$ac_prog", so it can be a program name with args.
3813 set dummy $ac_prog; ac_word=$2
3814 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3815 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3816 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3817   echo $ECHO_N "(cached) $ECHO_C" >&6
3818 else
3819   if test -n "$ac_ct_CC"; then
3820   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3821 else
3822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3823 for as_dir in $PATH
3824 do
3825   IFS=$as_save_IFS
3826   test -z "$as_dir" && as_dir=.
3827   for ac_exec_ext in '' $ac_executable_extensions; do
3828   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3829     ac_cv_prog_ac_ct_CC="$ac_prog"
3830     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3831     break 2
3832   fi
3833 done
3834 done
3835 IFS=$as_save_IFS
3836
3837 fi
3838 fi
3839 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3840 if test -n "$ac_ct_CC"; then
3841   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3842 echo "${ECHO_T}$ac_ct_CC" >&6; }
3843 else
3844   { echo "$as_me:$LINENO: result: no" >&5
3845 echo "${ECHO_T}no" >&6; }
3846 fi
3847
3848
3849   test -n "$ac_ct_CC" && break
3850 done
3851
3852   if test "x$ac_ct_CC" = x; then
3853     CC=""
3854   else
3855     case $cross_compiling:$ac_tool_warned in
3856 yes:)
3857 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3858 whose name does not start with the host triplet.  If you think this
3859 configuration is useful to you, please write to autoconf@gnu.org." >&5
3860 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3861 whose name does not start with the host triplet.  If you think this
3862 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3863 ac_tool_warned=yes ;;
3864 esac
3865     CC=$ac_ct_CC
3866   fi
3867 fi
3868
3869 fi
3870
3871
3872 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3873 See \`config.log' for more details." >&5
3874 echo "$as_me: error: no acceptable C compiler found in \$PATH
3875 See \`config.log' for more details." >&2;}
3876    { (exit 1); exit 1; }; }
3877
3878 # Provide some information about the compiler.
3879 echo "$as_me:$LINENO: checking for C compiler version" >&5
3880 ac_compiler=`set X $ac_compile; echo $2`
3881 { (ac_try="$ac_compiler --version >&5"
3882 case "(($ac_try" in
3883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3884   *) ac_try_echo=$ac_try;;
3885 esac
3886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3887   (eval "$ac_compiler --version >&5") 2>&5
3888   ac_status=$?
3889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3890   (exit $ac_status); }
3891 { (ac_try="$ac_compiler -v >&5"
3892 case "(($ac_try" in
3893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3894   *) ac_try_echo=$ac_try;;
3895 esac
3896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3897   (eval "$ac_compiler -v >&5") 2>&5
3898   ac_status=$?
3899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3900   (exit $ac_status); }
3901 { (ac_try="$ac_compiler -V >&5"
3902 case "(($ac_try" in
3903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3904   *) ac_try_echo=$ac_try;;
3905 esac
3906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3907   (eval "$ac_compiler -V >&5") 2>&5
3908   ac_status=$?
3909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3910   (exit $ac_status); }
3911
3912 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3913 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3914 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3915   echo $ECHO_N "(cached) $ECHO_C" >&6
3916 else
3917   cat >conftest.$ac_ext <<_ACEOF
3918 /* confdefs.h.  */
3919 _ACEOF
3920 cat confdefs.h >>conftest.$ac_ext
3921 cat >>conftest.$ac_ext <<_ACEOF
3922 /* end confdefs.h.  */
3923
3924 int
3925 main ()
3926 {
3927 #ifndef __GNUC__
3928        choke me
3929 #endif
3930
3931   ;
3932   return 0;
3933 }
3934 _ACEOF
3935 rm -f conftest.$ac_objext
3936 if { (ac_try="$ac_compile"
3937 case "(($ac_try" in
3938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3939   *) ac_try_echo=$ac_try;;
3940 esac
3941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3942   (eval "$ac_compile") 2>conftest.er1
3943   ac_status=$?
3944   grep -v '^ *+' conftest.er1 >conftest.err
3945   rm -f conftest.er1
3946   cat conftest.err >&5
3947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3948   (exit $ac_status); } && {
3949          test -z "$ac_c_werror_flag" ||
3950          test ! -s conftest.err
3951        } && test -s conftest.$ac_objext; then
3952   ac_compiler_gnu=yes
3953 else
3954   echo "$as_me: failed program was:" >&5
3955 sed 's/^/| /' conftest.$ac_ext >&5
3956
3957         ac_compiler_gnu=no
3958 fi
3959
3960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3961 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3962
3963 fi
3964 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3965 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3966 GCC=`test $ac_compiler_gnu = yes && echo yes`
3967 ac_test_CFLAGS=${CFLAGS+set}
3968 ac_save_CFLAGS=$CFLAGS
3969 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3970 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3971 if test "${ac_cv_prog_cc_g+set}" = set; then
3972   echo $ECHO_N "(cached) $ECHO_C" >&6
3973 else
3974   ac_save_c_werror_flag=$ac_c_werror_flag
3975    ac_c_werror_flag=yes
3976    ac_cv_prog_cc_g=no
3977    CFLAGS="-g"
3978    cat >conftest.$ac_ext <<_ACEOF
3979 /* confdefs.h.  */
3980 _ACEOF
3981 cat confdefs.h >>conftest.$ac_ext
3982 cat >>conftest.$ac_ext <<_ACEOF
3983 /* end confdefs.h.  */
3984
3985 int
3986 main ()
3987 {
3988
3989   ;
3990   return 0;
3991 }
3992 _ACEOF
3993 rm -f conftest.$ac_objext
3994 if { (ac_try="$ac_compile"
3995 case "(($ac_try" in
3996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3997   *) ac_try_echo=$ac_try;;
3998 esac
3999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4000   (eval "$ac_compile") 2>conftest.er1
4001   ac_status=$?
4002   grep -v '^ *+' conftest.er1 >conftest.err
4003   rm -f conftest.er1
4004   cat conftest.err >&5
4005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4006   (exit $ac_status); } && {
4007          test -z "$ac_c_werror_flag" ||
4008          test ! -s conftest.err
4009        } && test -s conftest.$ac_objext; then
4010   ac_cv_prog_cc_g=yes
4011 else
4012   echo "$as_me: failed program was:" >&5
4013 sed 's/^/| /' conftest.$ac_ext >&5
4014
4015         CFLAGS=""
4016       cat >conftest.$ac_ext <<_ACEOF
4017 /* confdefs.h.  */
4018 _ACEOF
4019 cat confdefs.h >>conftest.$ac_ext
4020 cat >>conftest.$ac_ext <<_ACEOF
4021 /* end confdefs.h.  */
4022
4023 int
4024 main ()
4025 {
4026
4027   ;
4028   return 0;
4029 }
4030 _ACEOF
4031 rm -f conftest.$ac_objext
4032 if { (ac_try="$ac_compile"
4033 case "(($ac_try" in
4034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4035   *) ac_try_echo=$ac_try;;
4036 esac
4037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4038   (eval "$ac_compile") 2>conftest.er1
4039   ac_status=$?
4040   grep -v '^ *+' conftest.er1 >conftest.err
4041   rm -f conftest.er1
4042   cat conftest.err >&5
4043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4044   (exit $ac_status); } && {
4045          test -z "$ac_c_werror_flag" ||
4046          test ! -s conftest.err
4047        } && test -s conftest.$ac_objext; then
4048   :
4049 else
4050   echo "$as_me: failed program was:" >&5
4051 sed 's/^/| /' conftest.$ac_ext >&5
4052
4053         ac_c_werror_flag=$ac_save_c_werror_flag
4054          CFLAGS="-g"
4055          cat >conftest.$ac_ext <<_ACEOF
4056 /* confdefs.h.  */
4057 _ACEOF
4058 cat confdefs.h >>conftest.$ac_ext
4059 cat >>conftest.$ac_ext <<_ACEOF
4060 /* end confdefs.h.  */
4061
4062 int
4063 main ()
4064 {
4065
4066   ;
4067   return 0;
4068 }
4069 _ACEOF
4070 rm -f conftest.$ac_objext
4071 if { (ac_try="$ac_compile"
4072 case "(($ac_try" in
4073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4074   *) ac_try_echo=$ac_try;;
4075 esac
4076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4077   (eval "$ac_compile") 2>conftest.er1
4078   ac_status=$?
4079   grep -v '^ *+' conftest.er1 >conftest.err
4080   rm -f conftest.er1
4081   cat conftest.err >&5
4082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4083   (exit $ac_status); } && {
4084          test -z "$ac_c_werror_flag" ||
4085          test ! -s conftest.err
4086        } && test -s conftest.$ac_objext; then
4087   ac_cv_prog_cc_g=yes
4088 else
4089   echo "$as_me: failed program was:" >&5
4090 sed 's/^/| /' conftest.$ac_ext >&5
4091
4092
4093 fi
4094
4095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4096 fi
4097
4098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4099 fi
4100
4101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4102    ac_c_werror_flag=$ac_save_c_werror_flag
4103 fi
4104 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4105 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4106 if test "$ac_test_CFLAGS" = set; then
4107   CFLAGS=$ac_save_CFLAGS
4108 elif test $ac_cv_prog_cc_g = yes; then
4109   if test "$GCC" = yes; then
4110     CFLAGS="-g -O2"
4111   else
4112     CFLAGS="-g"
4113   fi
4114 else
4115   if test "$GCC" = yes; then
4116     CFLAGS="-O2"
4117   else
4118     CFLAGS=
4119   fi
4120 fi
4121 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4122 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4123 if test "${ac_cv_prog_cc_c89+set}" = set; then
4124   echo $ECHO_N "(cached) $ECHO_C" >&6
4125 else
4126   ac_cv_prog_cc_c89=no
4127 ac_save_CC=$CC
4128 cat >conftest.$ac_ext <<_ACEOF
4129 /* confdefs.h.  */
4130 _ACEOF
4131 cat confdefs.h >>conftest.$ac_ext
4132 cat >>conftest.$ac_ext <<_ACEOF
4133 /* end confdefs.h.  */
4134 #include <stdarg.h>
4135 #include <stdio.h>
4136 #include <sys/types.h>
4137 #include <sys/stat.h>
4138 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4139 struct buf { int x; };
4140 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4141 static char *e (p, i)
4142      char **p;
4143      int i;
4144 {
4145   return p[i];
4146 }
4147 static char *f (char * (*g) (char **, int), char **p, ...)
4148 {
4149   char *s;
4150   va_list v;
4151   va_start (v,p);
4152   s = g (p, va_arg (v,int));
4153   va_end (v);
4154   return s;
4155 }
4156
4157 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4158    function prototypes and stuff, but not '\xHH' hex character constants.
4159    These don't provoke an error unfortunately, instead are silently treated
4160    as 'x'.  The following induces an error, until -std is added to get
4161    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4162    array size at least.  It's necessary to write '\x00'==0 to get something
4163    that's true only with -std.  */
4164 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4165
4166 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4167    inside strings and character constants.  */
4168 #define FOO(x) 'x'
4169 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4170
4171 int test (int i, double x);
4172 struct s1 {int (*f) (int a);};
4173 struct s2 {int (*f) (double a);};
4174 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4175 int argc;
4176 char **argv;
4177 int
4178 main ()
4179 {
4180 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4181   ;
4182   return 0;
4183 }
4184 _ACEOF
4185 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4186         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4187 do
4188   CC="$ac_save_CC $ac_arg"
4189   rm -f conftest.$ac_objext
4190 if { (ac_try="$ac_compile"
4191 case "(($ac_try" in
4192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4193   *) ac_try_echo=$ac_try;;
4194 esac
4195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4196   (eval "$ac_compile") 2>conftest.er1
4197   ac_status=$?
4198   grep -v '^ *+' conftest.er1 >conftest.err
4199   rm -f conftest.er1
4200   cat conftest.err >&5
4201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4202   (exit $ac_status); } && {
4203          test -z "$ac_c_werror_flag" ||
4204          test ! -s conftest.err
4205        } && test -s conftest.$ac_objext; then
4206   ac_cv_prog_cc_c89=$ac_arg
4207 else
4208   echo "$as_me: failed program was:" >&5
4209 sed 's/^/| /' conftest.$ac_ext >&5
4210
4211
4212 fi
4213
4214 rm -f core conftest.err conftest.$ac_objext
4215   test "x$ac_cv_prog_cc_c89" != "xno" && break
4216 done
4217 rm -f conftest.$ac_ext
4218 CC=$ac_save_CC
4219
4220 fi
4221 # AC_CACHE_VAL
4222 case "x$ac_cv_prog_cc_c89" in
4223   x)
4224     { echo "$as_me:$LINENO: result: none needed" >&5
4225 echo "${ECHO_T}none needed" >&6; } ;;
4226   xno)
4227     { echo "$as_me:$LINENO: result: unsupported" >&5
4228 echo "${ECHO_T}unsupported" >&6; } ;;
4229   *)
4230     CC="$CC $ac_cv_prog_cc_c89"
4231     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4232 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4233 esac
4234
4235
4236 ac_ext=c
4237 ac_cpp='$CPP $CPPFLAGS'
4238 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4239 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4240 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4241
4242 depcc="$CC"   am_compiler_list=
4243
4244 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4245 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4246 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4247   echo $ECHO_N "(cached) $ECHO_C" >&6
4248 else
4249   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4250   # We make a subdir and do the tests there.  Otherwise we can end up
4251   # making bogus files that we don't know about and never remove.  For
4252   # instance it was reported that on HP-UX the gcc test will end up
4253   # making a dummy file named `D' -- because `-MD' means `put the output
4254   # in D'.
4255   mkdir conftest.dir
4256   # Copy depcomp to subdir because otherwise we won't find it if we're
4257   # using a relative directory.
4258   cp "$am_depcomp" conftest.dir
4259   cd conftest.dir
4260   # We will build objects and dependencies in a subdirectory because
4261   # it helps to detect inapplicable dependency modes.  For instance
4262   # both Tru64's cc and ICC support -MD to output dependencies as a
4263   # side effect of compilation, but ICC will put the dependencies in
4264   # the current directory while Tru64 will put them in the object
4265   # directory.
4266   mkdir sub
4267
4268   am_cv_CC_dependencies_compiler_type=none
4269   if test "$am_compiler_list" = ""; then
4270      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4271   fi
4272   for depmode in $am_compiler_list; do
4273     # Setup a source with many dependencies, because some compilers
4274     # like to wrap large dependency lists on column 80 (with \), and
4275     # we should not choose a depcomp mode which is confused by this.
4276     #
4277     # We need to recreate these files for each test, as the compiler may
4278     # overwrite some of them when testing with obscure command lines.
4279     # This happens at least with the AIX C compiler.
4280     : > sub/conftest.c
4281     for i in 1 2 3 4 5 6; do
4282       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4283       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4284       # Solaris 8's {/usr,}/bin/sh.
4285       touch sub/conftst$i.h
4286     done
4287     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4288
4289     case $depmode in
4290     nosideeffect)
4291       # after this tag, mechanisms are not by side-effect, so they'll
4292       # only be used when explicitly requested
4293       if test "x$enable_dependency_tracking" = xyes; then
4294         continue
4295       else
4296         break
4297       fi
4298       ;;
4299     none) break ;;
4300     esac
4301     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4302     # mode.  It turns out that the SunPro C++ compiler does not properly
4303     # handle `-M -o', and we need to detect this.
4304     if depmode=$depmode \
4305        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4306        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4307        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4308          >/dev/null 2>conftest.err &&
4309        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4310        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4311        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4312       # icc doesn't choke on unknown options, it will just issue warnings
4313       # or remarks (even with -Werror).  So we grep stderr for any message
4314       # that says an option was ignored or not supported.
4315       # When given -MP, icc 7.0 and 7.1 complain thusly:
4316       #   icc: Command line warning: ignoring option '-M'; no argument required
4317       # The diagnosis changed in icc 8.0:
4318       #   icc: Command line remark: option '-MP' not supported
4319       if (grep 'ignoring option' conftest.err ||
4320           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4321         am_cv_CC_dependencies_compiler_type=$depmode
4322         break
4323       fi
4324     fi
4325   done
4326
4327   cd ..
4328   rm -rf conftest.dir
4329 else
4330   am_cv_CC_dependencies_compiler_type=none
4331 fi
4332
4333 fi
4334 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4335 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
4336 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4337
4338
4339
4340 if
4341   test "x$enable_dependency_tracking" != xno \
4342   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4343   am__fastdepCC_TRUE=
4344   am__fastdepCC_FALSE='#'
4345 else
4346   am__fastdepCC_TRUE='#'
4347   am__fastdepCC_FALSE=
4348 fi
4349
4350
4351 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4352 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
4353 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4354 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
4355   echo $ECHO_N "(cached) $ECHO_C" >&6
4356 else
4357   cat >conftest.make <<\_ACEOF
4358 SHELL = /bin/sh
4359 all:
4360         @echo '@@@%%%=$(MAKE)=@@@%%%'
4361 _ACEOF
4362 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4363 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4364   *@@@%%%=?*=@@@%%%*)
4365     eval ac_cv_prog_make_${ac_make}_set=yes;;
4366   *)
4367     eval ac_cv_prog_make_${ac_make}_set=no;;
4368 esac
4369 rm -f conftest.make
4370 fi
4371 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4372   { echo "$as_me:$LINENO: result: yes" >&5
4373 echo "${ECHO_T}yes" >&6; }
4374   SET_MAKE=
4375 else
4376   { echo "$as_me:$LINENO: result: no" >&5
4377 echo "${ECHO_T}no" >&6; }
4378   SET_MAKE="MAKE=${MAKE-make}"
4379 fi
4380
4381 ac_ext=c
4382 ac_cpp='$CPP $CPPFLAGS'
4383 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4384 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4385 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4386 if test -n "$ac_tool_prefix"; then
4387   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4388 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4389 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4390 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4391 if test "${ac_cv_prog_CC+set}" = set; then
4392   echo $ECHO_N "(cached) $ECHO_C" >&6
4393 else
4394   if test -n "$CC"; then
4395   ac_cv_prog_CC="$CC" # Let the user override the test.
4396 else
4397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4398 for as_dir in $PATH
4399 do
4400   IFS=$as_save_IFS
4401   test -z "$as_dir" && as_dir=.
4402   for ac_exec_ext in '' $ac_executable_extensions; do
4403   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4404     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4405     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4406     break 2
4407   fi
4408 done
4409 done
4410 IFS=$as_save_IFS
4411
4412 fi
4413 fi
4414 CC=$ac_cv_prog_CC
4415 if test -n "$CC"; then
4416   { echo "$as_me:$LINENO: result: $CC" >&5
4417 echo "${ECHO_T}$CC" >&6; }
4418 else
4419   { echo "$as_me:$LINENO: result: no" >&5
4420 echo "${ECHO_T}no" >&6; }
4421 fi
4422
4423
4424 fi
4425 if test -z "$ac_cv_prog_CC"; then
4426   ac_ct_CC=$CC
4427   # Extract the first word of "gcc", so it can be a program name with args.
4428 set dummy gcc; ac_word=$2
4429 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4430 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4431 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4432   echo $ECHO_N "(cached) $ECHO_C" >&6
4433 else
4434   if test -n "$ac_ct_CC"; then
4435   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4436 else
4437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4438 for as_dir in $PATH
4439 do
4440   IFS=$as_save_IFS
4441   test -z "$as_dir" && as_dir=.
4442   for ac_exec_ext in '' $ac_executable_extensions; do
4443   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4444     ac_cv_prog_ac_ct_CC="gcc"
4445     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4446     break 2
4447   fi
4448 done
4449 done
4450 IFS=$as_save_IFS
4451
4452 fi
4453 fi
4454 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4455 if test -n "$ac_ct_CC"; then
4456   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4457 echo "${ECHO_T}$ac_ct_CC" >&6; }
4458 else
4459   { echo "$as_me:$LINENO: result: no" >&5
4460 echo "${ECHO_T}no" >&6; }
4461 fi
4462
4463   if test "x$ac_ct_CC" = x; then
4464     CC=""
4465   else
4466     case $cross_compiling:$ac_tool_warned in
4467 yes:)
4468 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4469 whose name does not start with the host triplet.  If you think this
4470 configuration is useful to you, please write to autoconf@gnu.org." >&5
4471 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4472 whose name does not start with the host triplet.  If you think this
4473 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4474 ac_tool_warned=yes ;;
4475 esac
4476     CC=$ac_ct_CC
4477   fi
4478 else
4479   CC="$ac_cv_prog_CC"
4480 fi
4481
4482 if test -z "$CC"; then
4483           if test -n "$ac_tool_prefix"; then
4484     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4485 set dummy ${ac_tool_prefix}cc; ac_word=$2
4486 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4487 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4488 if test "${ac_cv_prog_CC+set}" = set; then
4489   echo $ECHO_N "(cached) $ECHO_C" >&6
4490 else
4491   if test -n "$CC"; then
4492   ac_cv_prog_CC="$CC" # Let the user override the test.
4493 else
4494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4495 for as_dir in $PATH
4496 do
4497   IFS=$as_save_IFS
4498   test -z "$as_dir" && as_dir=.
4499   for ac_exec_ext in '' $ac_executable_extensions; do
4500   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4501     ac_cv_prog_CC="${ac_tool_prefix}cc"
4502     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4503     break 2
4504   fi
4505 done
4506 done
4507 IFS=$as_save_IFS
4508
4509 fi
4510 fi
4511 CC=$ac_cv_prog_CC
4512 if test -n "$CC"; then
4513   { echo "$as_me:$LINENO: result: $CC" >&5
4514 echo "${ECHO_T}$CC" >&6; }
4515 else
4516   { echo "$as_me:$LINENO: result: no" >&5
4517 echo "${ECHO_T}no" >&6; }
4518 fi
4519
4520
4521   fi
4522 fi
4523 if test -z "$CC"; then
4524   # Extract the first word of "cc", so it can be a program name with args.
4525 set dummy cc; ac_word=$2
4526 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4527 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4528 if test "${ac_cv_prog_CC+set}" = set; then
4529   echo $ECHO_N "(cached) $ECHO_C" >&6
4530 else
4531   if test -n "$CC"; then
4532   ac_cv_prog_CC="$CC" # Let the user override the test.
4533 else
4534   ac_prog_rejected=no
4535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4536 for as_dir in $PATH
4537 do
4538   IFS=$as_save_IFS
4539   test -z "$as_dir" && as_dir=.
4540   for ac_exec_ext in '' $ac_executable_extensions; do
4541   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4542     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4543        ac_prog_rejected=yes
4544        continue
4545      fi
4546     ac_cv_prog_CC="cc"
4547     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4548     break 2
4549   fi
4550 done
4551 done
4552 IFS=$as_save_IFS
4553
4554 if test $ac_prog_rejected = yes; then
4555   # We found a bogon in the path, so make sure we never use it.
4556   set dummy $ac_cv_prog_CC
4557   shift
4558   if test $# != 0; then
4559     # We chose a different compiler from the bogus one.
4560     # However, it has the same basename, so the bogon will be chosen
4561     # first if we set CC to just the basename; use the full file name.
4562     shift
4563     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4564   fi
4565 fi
4566 fi
4567 fi
4568 CC=$ac_cv_prog_CC
4569 if test -n "$CC"; then
4570   { echo "$as_me:$LINENO: result: $CC" >&5
4571 echo "${ECHO_T}$CC" >&6; }
4572 else
4573   { echo "$as_me:$LINENO: result: no" >&5
4574 echo "${ECHO_T}no" >&6; }
4575 fi
4576
4577
4578 fi
4579 if test -z "$CC"; then
4580   if test -n "$ac_tool_prefix"; then
4581   for ac_prog in cl.exe
4582   do
4583     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4584 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4585 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4587 if test "${ac_cv_prog_CC+set}" = set; then
4588   echo $ECHO_N "(cached) $ECHO_C" >&6
4589 else
4590   if test -n "$CC"; then
4591   ac_cv_prog_CC="$CC" # Let the user override the test.
4592 else
4593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4594 for as_dir in $PATH
4595 do
4596   IFS=$as_save_IFS
4597   test -z "$as_dir" && as_dir=.
4598   for ac_exec_ext in '' $ac_executable_extensions; do
4599   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4600     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4601     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4602     break 2
4603   fi
4604 done
4605 done
4606 IFS=$as_save_IFS
4607
4608 fi
4609 fi
4610 CC=$ac_cv_prog_CC
4611 if test -n "$CC"; then
4612   { echo "$as_me:$LINENO: result: $CC" >&5
4613 echo "${ECHO_T}$CC" >&6; }
4614 else
4615   { echo "$as_me:$LINENO: result: no" >&5
4616 echo "${ECHO_T}no" >&6; }
4617 fi
4618
4619
4620     test -n "$CC" && break
4621   done
4622 fi
4623 if test -z "$CC"; then
4624   ac_ct_CC=$CC
4625   for ac_prog in cl.exe
4626 do
4627   # Extract the first word of "$ac_prog", so it can be a program name with args.
4628 set dummy $ac_prog; ac_word=$2
4629 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4630 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4631 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4632   echo $ECHO_N "(cached) $ECHO_C" >&6
4633 else
4634   if test -n "$ac_ct_CC"; then
4635   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4636 else
4637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4638 for as_dir in $PATH
4639 do
4640   IFS=$as_save_IFS
4641   test -z "$as_dir" && as_dir=.
4642   for ac_exec_ext in '' $ac_executable_extensions; do
4643   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4644     ac_cv_prog_ac_ct_CC="$ac_prog"
4645     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4646     break 2
4647   fi
4648 done
4649 done
4650 IFS=$as_save_IFS
4651
4652 fi
4653 fi
4654 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4655 if test -n "$ac_ct_CC"; then
4656   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4657 echo "${ECHO_T}$ac_ct_CC" >&6; }
4658 else
4659   { echo "$as_me:$LINENO: result: no" >&5
4660 echo "${ECHO_T}no" >&6; }
4661 fi
4662
4663
4664   test -n "$ac_ct_CC" && break
4665 done
4666
4667   if test "x$ac_ct_CC" = x; then
4668     CC=""
4669   else
4670     case $cross_compiling:$ac_tool_warned in
4671 yes:)
4672 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4673 whose name does not start with the host triplet.  If you think this
4674 configuration is useful to you, please write to autoconf@gnu.org." >&5
4675 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4676 whose name does not start with the host triplet.  If you think this
4677 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4678 ac_tool_warned=yes ;;
4679 esac
4680     CC=$ac_ct_CC
4681   fi
4682 fi
4683
4684 fi
4685
4686
4687 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4688 See \`config.log' for more details." >&5
4689 echo "$as_me: error: no acceptable C compiler found in \$PATH
4690 See \`config.log' for more details." >&2;}
4691    { (exit 1); exit 1; }; }
4692
4693 # Provide some information about the compiler.
4694 echo "$as_me:$LINENO: checking for C compiler version" >&5
4695 ac_compiler=`set X $ac_compile; echo $2`
4696 { (ac_try="$ac_compiler --version >&5"
4697 case "(($ac_try" in
4698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4699   *) ac_try_echo=$ac_try;;
4700 esac
4701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4702   (eval "$ac_compiler --version >&5") 2>&5
4703   ac_status=$?
4704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4705   (exit $ac_status); }
4706 { (ac_try="$ac_compiler -v >&5"
4707 case "(($ac_try" in
4708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4709   *) ac_try_echo=$ac_try;;
4710 esac
4711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4712   (eval "$ac_compiler -v >&5") 2>&5
4713   ac_status=$?
4714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4715   (exit $ac_status); }
4716 { (ac_try="$ac_compiler -V >&5"
4717 case "(($ac_try" in
4718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4719   *) ac_try_echo=$ac_try;;
4720 esac
4721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4722   (eval "$ac_compiler -V >&5") 2>&5
4723   ac_status=$?
4724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4725   (exit $ac_status); }
4726
4727 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4728 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
4729 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4730   echo $ECHO_N "(cached) $ECHO_C" >&6
4731 else
4732   cat >conftest.$ac_ext <<_ACEOF
4733 /* confdefs.h.  */
4734 _ACEOF
4735 cat confdefs.h >>conftest.$ac_ext
4736 cat >>conftest.$ac_ext <<_ACEOF
4737 /* end confdefs.h.  */
4738
4739 int
4740 main ()
4741 {
4742 #ifndef __GNUC__
4743        choke me
4744 #endif
4745
4746   ;
4747   return 0;
4748 }
4749 _ACEOF
4750 rm -f conftest.$ac_objext
4751 if { (ac_try="$ac_compile"
4752 case "(($ac_try" in
4753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4754   *) ac_try_echo=$ac_try;;
4755 esac
4756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4757   (eval "$ac_compile") 2>conftest.er1
4758   ac_status=$?
4759   grep -v '^ *+' conftest.er1 >conftest.err
4760   rm -f conftest.er1
4761   cat conftest.err >&5
4762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4763   (exit $ac_status); } && {
4764          test -z "$ac_c_werror_flag" ||
4765          test ! -s conftest.err
4766        } && test -s conftest.$ac_objext; then
4767   ac_compiler_gnu=yes
4768 else
4769   echo "$as_me: failed program was:" >&5
4770 sed 's/^/| /' conftest.$ac_ext >&5
4771
4772         ac_compiler_gnu=no
4773 fi
4774
4775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4776 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4777
4778 fi
4779 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4780 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4781 GCC=`test $ac_compiler_gnu = yes && echo yes`
4782 ac_test_CFLAGS=${CFLAGS+set}
4783 ac_save_CFLAGS=$CFLAGS
4784 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4785 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
4786 if test "${ac_cv_prog_cc_g+set}" = set; then
4787   echo $ECHO_N "(cached) $ECHO_C" >&6
4788 else
4789   ac_save_c_werror_flag=$ac_c_werror_flag
4790    ac_c_werror_flag=yes
4791    ac_cv_prog_cc_g=no
4792    CFLAGS="-g"
4793    cat >conftest.$ac_ext <<_ACEOF
4794 /* confdefs.h.  */
4795 _ACEOF
4796 cat confdefs.h >>conftest.$ac_ext
4797 cat >>conftest.$ac_ext <<_ACEOF
4798 /* end confdefs.h.  */
4799
4800 int
4801 main ()
4802 {
4803
4804   ;
4805   return 0;
4806 }
4807 _ACEOF
4808 rm -f conftest.$ac_objext
4809 if { (ac_try="$ac_compile"
4810 case "(($ac_try" in
4811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4812   *) ac_try_echo=$ac_try;;
4813 esac
4814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4815   (eval "$ac_compile") 2>conftest.er1
4816   ac_status=$?
4817   grep -v '^ *+' conftest.er1 >conftest.err
4818   rm -f conftest.er1
4819   cat conftest.err >&5
4820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4821   (exit $ac_status); } && {
4822          test -z "$ac_c_werror_flag" ||
4823          test ! -s conftest.err
4824        } && test -s conftest.$ac_objext; then
4825   ac_cv_prog_cc_g=yes
4826 else
4827   echo "$as_me: failed program was:" >&5
4828 sed 's/^/| /' conftest.$ac_ext >&5
4829
4830         CFLAGS=""
4831       cat >conftest.$ac_ext <<_ACEOF
4832 /* confdefs.h.  */
4833 _ACEOF
4834 cat confdefs.h >>conftest.$ac_ext
4835 cat >>conftest.$ac_ext <<_ACEOF
4836 /* end confdefs.h.  */
4837
4838 int
4839 main ()
4840 {
4841
4842   ;
4843   return 0;
4844 }
4845 _ACEOF
4846 rm -f conftest.$ac_objext
4847 if { (ac_try="$ac_compile"
4848 case "(($ac_try" in
4849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4850   *) ac_try_echo=$ac_try;;
4851 esac
4852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4853   (eval "$ac_compile") 2>conftest.er1
4854   ac_status=$?
4855   grep -v '^ *+' conftest.er1 >conftest.err
4856   rm -f conftest.er1
4857   cat conftest.err >&5
4858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4859   (exit $ac_status); } && {
4860          test -z "$ac_c_werror_flag" ||
4861          test ! -s conftest.err
4862        } && test -s conftest.$ac_objext; then
4863   :
4864 else
4865   echo "$as_me: failed program was:" >&5
4866 sed 's/^/| /' conftest.$ac_ext >&5
4867
4868         ac_c_werror_flag=$ac_save_c_werror_flag
4869          CFLAGS="-g"
4870          cat >conftest.$ac_ext <<_ACEOF
4871 /* confdefs.h.  */
4872 _ACEOF
4873 cat confdefs.h >>conftest.$ac_ext
4874 cat >>conftest.$ac_ext <<_ACEOF
4875 /* end confdefs.h.  */
4876
4877 int
4878 main ()
4879 {
4880
4881   ;
4882   return 0;
4883 }
4884 _ACEOF
4885 rm -f conftest.$ac_objext
4886 if { (ac_try="$ac_compile"
4887 case "(($ac_try" in
4888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4889   *) ac_try_echo=$ac_try;;
4890 esac
4891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4892   (eval "$ac_compile") 2>conftest.er1
4893   ac_status=$?
4894   grep -v '^ *+' conftest.er1 >conftest.err
4895   rm -f conftest.er1
4896   cat conftest.err >&5
4897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4898   (exit $ac_status); } && {
4899          test -z "$ac_c_werror_flag" ||
4900          test ! -s conftest.err
4901        } && test -s conftest.$ac_objext; then
4902   ac_cv_prog_cc_g=yes
4903 else
4904   echo "$as_me: failed program was:" >&5
4905 sed 's/^/| /' conftest.$ac_ext >&5
4906
4907
4908 fi
4909
4910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4911 fi
4912
4913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4914 fi
4915
4916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4917    ac_c_werror_flag=$ac_save_c_werror_flag
4918 fi
4919 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4920 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4921 if test "$ac_test_CFLAGS" = set; then
4922   CFLAGS=$ac_save_CFLAGS
4923 elif test $ac_cv_prog_cc_g = yes; then
4924   if test "$GCC" = yes; then
4925     CFLAGS="-g -O2"
4926   else
4927     CFLAGS="-g"
4928   fi
4929 else
4930   if test "$GCC" = yes; then
4931     CFLAGS="-O2"
4932   else
4933     CFLAGS=
4934   fi
4935 fi
4936 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4937 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4938 if test "${ac_cv_prog_cc_c89+set}" = set; then
4939   echo $ECHO_N "(cached) $ECHO_C" >&6
4940 else
4941   ac_cv_prog_cc_c89=no
4942 ac_save_CC=$CC
4943 cat >conftest.$ac_ext <<_ACEOF
4944 /* confdefs.h.  */
4945 _ACEOF
4946 cat confdefs.h >>conftest.$ac_ext
4947 cat >>conftest.$ac_ext <<_ACEOF
4948 /* end confdefs.h.  */
4949 #include <stdarg.h>
4950 #include <stdio.h>
4951 #include <sys/types.h>
4952 #include <sys/stat.h>
4953 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4954 struct buf { int x; };
4955 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4956 static char *e (p, i)
4957      char **p;
4958      int i;
4959 {
4960   return p[i];
4961 }
4962 static char *f (char * (*g) (char **, int), char **p, ...)
4963 {
4964   char *s;
4965   va_list v;
4966   va_start (v,p);
4967   s = g (p, va_arg (v,int));
4968   va_end (v);
4969   return s;
4970 }
4971
4972 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4973    function prototypes and stuff, but not '\xHH' hex character constants.
4974    These don't provoke an error unfortunately, instead are silently treated
4975    as 'x'.  The following induces an error, until -std is added to get
4976    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4977    array size at least.  It's necessary to write '\x00'==0 to get something
4978    that's true only with -std.  */
4979 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4980
4981 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4982    inside strings and character constants.  */
4983 #define FOO(x) 'x'
4984 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4985
4986 int test (int i, double x);
4987 struct s1 {int (*f) (int a);};
4988 struct s2 {int (*f) (double a);};
4989 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4990 int argc;
4991 char **argv;
4992 int
4993 main ()
4994 {
4995 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4996   ;
4997   return 0;
4998 }
4999 _ACEOF
5000 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5001         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5002 do
5003   CC="$ac_save_CC $ac_arg"
5004   rm -f conftest.$ac_objext
5005 if { (ac_try="$ac_compile"
5006 case "(($ac_try" in
5007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5008   *) ac_try_echo=$ac_try;;
5009 esac
5010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5011   (eval "$ac_compile") 2>conftest.er1
5012   ac_status=$?
5013   grep -v '^ *+' conftest.er1 >conftest.err
5014   rm -f conftest.er1
5015   cat conftest.err >&5
5016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5017   (exit $ac_status); } && {
5018          test -z "$ac_c_werror_flag" ||
5019          test ! -s conftest.err
5020        } && test -s conftest.$ac_objext; then
5021   ac_cv_prog_cc_c89=$ac_arg
5022 else
5023   echo "$as_me: failed program was:" >&5
5024 sed 's/^/| /' conftest.$ac_ext >&5
5025
5026
5027 fi
5028
5029 rm -f core conftest.err conftest.$ac_objext
5030   test "x$ac_cv_prog_cc_c89" != "xno" && break
5031 done
5032 rm -f conftest.$ac_ext
5033 CC=$ac_save_CC
5034
5035 fi
5036 # AC_CACHE_VAL
5037 case "x$ac_cv_prog_cc_c89" in
5038   x)
5039     { echo "$as_me:$LINENO: result: none needed" >&5
5040 echo "${ECHO_T}none needed" >&6; } ;;
5041   xno)
5042     { echo "$as_me:$LINENO: result: unsupported" >&5
5043 echo "${ECHO_T}unsupported" >&6; } ;;
5044   *)
5045     CC="$CC $ac_cv_prog_cc_c89"
5046     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5047 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5048 esac
5049
5050
5051 ac_ext=c
5052 ac_cpp='$CPP $CPPFLAGS'
5053 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5054 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5055 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5056
5057 depcc="$CC"   am_compiler_list=
5058
5059 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5060 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5061 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5062   echo $ECHO_N "(cached) $ECHO_C" >&6
5063 else
5064   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5065   # We make a subdir and do the tests there.  Otherwise we can end up
5066   # making bogus files that we don't know about and never remove.  For
5067   # instance it was reported that on HP-UX the gcc test will end up
5068   # making a dummy file named `D' -- because `-MD' means `put the output
5069   # in D'.
5070   mkdir conftest.dir
5071   # Copy depcomp to subdir because otherwise we won't find it if we're
5072   # using a relative directory.
5073   cp "$am_depcomp" conftest.dir
5074   cd conftest.dir
5075   # We will build objects and dependencies in a subdirectory because
5076   # it helps to detect inapplicable dependency modes.  For instance
5077   # both Tru64's cc and ICC support -MD to output dependencies as a
5078   # side effect of compilation, but ICC will put the dependencies in
5079   # the current directory while Tru64 will put them in the object
5080   # directory.
5081   mkdir sub
5082
5083   am_cv_CC_dependencies_compiler_type=none
5084   if test "$am_compiler_list" = ""; then
5085      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5086   fi
5087   for depmode in $am_compiler_list; do
5088     # Setup a source with many dependencies, because some compilers
5089     # like to wrap large dependency lists on column 80 (with \), and
5090     # we should not choose a depcomp mode which is confused by this.
5091     #
5092     # We need to recreate these files for each test, as the compiler may
5093     # overwrite some of them when testing with obscure command lines.
5094     # This happens at least with the AIX C compiler.
5095     : > sub/conftest.c
5096     for i in 1 2 3 4 5 6; do
5097       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5098       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5099       # Solaris 8's {/usr,}/bin/sh.
5100       touch sub/conftst$i.h
5101     done
5102     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5103
5104     case $depmode in
5105     nosideeffect)
5106       # after this tag, mechanisms are not by side-effect, so they'll
5107       # only be used when explicitly requested
5108       if test "x$enable_dependency_tracking" = xyes; then
5109         continue
5110       else
5111         break
5112       fi
5113       ;;
5114     none) break ;;
5115     esac
5116     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5117     # mode.  It turns out that the SunPro C++ compiler does not properly
5118     # handle `-M -o', and we need to detect this.
5119     if depmode=$depmode \
5120        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5121        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5122        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5123          >/dev/null 2>conftest.err &&
5124        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5125        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5126        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5127       # icc doesn't choke on unknown options, it will just issue warnings
5128       # or remarks (even with -Werror).  So we grep stderr for any message
5129       # that says an option was ignored or not supported.
5130       # When given -MP, icc 7.0 and 7.1 complain thusly:
5131       #   icc: Command line warning: ignoring option '-M'; no argument required
5132       # The diagnosis changed in icc 8.0:
5133       #   icc: Command line remark: option '-MP' not supported
5134       if (grep 'ignoring option' conftest.err ||
5135           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5136         am_cv_CC_dependencies_compiler_type=$depmode
5137         break
5138       fi
5139     fi
5140   done
5141
5142   cd ..
5143   rm -rf conftest.dir
5144 else
5145   am_cv_CC_dependencies_compiler_type=none
5146 fi
5147
5148 fi
5149 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5150 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
5151 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5152
5153
5154
5155 if
5156   test "x$enable_dependency_tracking" != xno \
5157   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5158   am__fastdepCC_TRUE=
5159   am__fastdepCC_FALSE='#'
5160 else
5161   am__fastdepCC_TRUE='#'
5162   am__fastdepCC_FALSE=
5163 fi
5164
5165
5166
5167 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
5168
5169 # Check whether --enable-shared was given.
5170 if test "${enable_shared+set}" = set; then
5171   enableval=$enable_shared; p=${PACKAGE-default}
5172     case $enableval in
5173     yes) enable_shared=yes ;;
5174     no) enable_shared=no ;;
5175     *)
5176       enable_shared=no
5177       # Look at the argument we got.  We use all the common list separators.
5178       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5179       for pkg in $enableval; do
5180         IFS="$lt_save_ifs"
5181         if test "X$pkg" = "X$p"; then
5182           enable_shared=yes
5183         fi
5184       done
5185       IFS="$lt_save_ifs"
5186       ;;
5187     esac
5188 else
5189   enable_shared=yes
5190 fi
5191
5192
5193 # Check whether --enable-static was given.
5194 if test "${enable_static+set}" = set; then
5195   enableval=$enable_static; p=${PACKAGE-default}
5196     case $enableval in
5197     yes) enable_static=yes ;;
5198     no) enable_static=no ;;
5199     *)
5200      enable_static=no
5201       # Look at the argument we got.  We use all the common list separators.
5202       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5203       for pkg in $enableval; do
5204         IFS="$lt_save_ifs"
5205         if test "X$pkg" = "X$p"; then
5206           enable_static=yes
5207         fi
5208       done
5209       IFS="$lt_save_ifs"
5210       ;;
5211     esac
5212 else
5213   enable_static=yes
5214 fi
5215
5216
5217 # Check whether --enable-fast-install was given.
5218 if test "${enable_fast_install+set}" = set; then
5219   enableval=$enable_fast_install; p=${PACKAGE-default}
5220     case $enableval in
5221     yes) enable_fast_install=yes ;;
5222     no) enable_fast_install=no ;;
5223     *)
5224       enable_fast_install=no
5225       # Look at the argument we got.  We use all the common list separators.
5226       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5227       for pkg in $enableval; do
5228         IFS="$lt_save_ifs"
5229         if test "X$pkg" = "X$p"; then
5230           enable_fast_install=yes
5231         fi
5232       done
5233       IFS="$lt_save_ifs"
5234       ;;
5235     esac
5236 else
5237   enable_fast_install=yes
5238 fi
5239
5240
5241 # Make sure we can run config.sub.
5242 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5243   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5244 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5245    { (exit 1); exit 1; }; }
5246
5247 { echo "$as_me:$LINENO: checking build system type" >&5
5248 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5249 if test "${ac_cv_build+set}" = set; then
5250   echo $ECHO_N "(cached) $ECHO_C" >&6
5251 else
5252   ac_build_alias=$build_alias
5253 test "x$ac_build_alias" = x &&
5254   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5255 test "x$ac_build_alias" = x &&
5256   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5257 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5258    { (exit 1); exit 1; }; }
5259 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5260   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5261 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5262    { (exit 1); exit 1; }; }
5263
5264 fi
5265 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5266 echo "${ECHO_T}$ac_cv_build" >&6; }
5267 case $ac_cv_build in
5268 *-*-*) ;;
5269 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5270 echo "$as_me: error: invalid value of canonical build" >&2;}
5271    { (exit 1); exit 1; }; };;
5272 esac
5273 build=$ac_cv_build
5274 ac_save_IFS=$IFS; IFS='-'
5275 set x $ac_cv_build
5276 shift
5277 build_cpu=$1
5278 build_vendor=$2
5279 shift; shift
5280 # Remember, the first character of IFS is used to create $*,
5281 # except with old shells:
5282 build_os=$*
5283 IFS=$ac_save_IFS
5284 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5285
5286
5287 { echo "$as_me:$LINENO: checking host system type" >&5
5288 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5289 if test "${ac_cv_host+set}" = set; then
5290   echo $ECHO_N "(cached) $ECHO_C" >&6
5291 else
5292   if test "x$host_alias" = x; then
5293   ac_cv_host=$ac_cv_build
5294 else
5295   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5296     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5297 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5298    { (exit 1); exit 1; }; }
5299 fi
5300
5301 fi
5302 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5303 echo "${ECHO_T}$ac_cv_host" >&6; }
5304 case $ac_cv_host in
5305 *-*-*) ;;
5306 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5307 echo "$as_me: error: invalid value of canonical host" >&2;}
5308    { (exit 1); exit 1; }; };;
5309 esac
5310 host=$ac_cv_host
5311 ac_save_IFS=$IFS; IFS='-'
5312 set x $ac_cv_host
5313 shift
5314 host_cpu=$1
5315 host_vendor=$2
5316 shift; shift
5317 # Remember, the first character of IFS is used to create $*,
5318 # except with old shells:
5319 host_os=$*
5320 IFS=$ac_save_IFS
5321 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5322
5323
5324 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5325 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5326 if test "${lt_cv_path_SED+set}" = set; then
5327   echo $ECHO_N "(cached) $ECHO_C" >&6
5328 else
5329   # Loop through the user's path and test for sed and gsed.
5330 # Then use that list of sed's as ones to test for truncation.
5331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5332 for as_dir in $PATH
5333 do
5334   IFS=$as_save_IFS
5335   test -z "$as_dir" && as_dir=.
5336   for lt_ac_prog in sed gsed; do
5337     for ac_exec_ext in '' $ac_executable_extensions; do
5338       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5339         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5340       fi
5341     done
5342   done
5343 done
5344 lt_ac_max=0
5345 lt_ac_count=0
5346 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5347 # along with /bin/sed that truncates output.
5348 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5349   test ! -f $lt_ac_sed && continue
5350   cat /dev/null > conftest.in
5351   lt_ac_count=0
5352   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5353   # Check for GNU sed and select it if it is found.
5354   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5355     lt_cv_path_SED=$lt_ac_sed
5356     break
5357   fi
5358   while true; do
5359     cat conftest.in conftest.in >conftest.tmp
5360     mv conftest.tmp conftest.in
5361     cp conftest.in conftest.nl
5362     echo >>conftest.nl
5363     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5364     cmp -s conftest.out conftest.nl || break
5365     # 10000 chars as input seems more than enough
5366     test $lt_ac_count -gt 10 && break
5367     lt_ac_count=`expr $lt_ac_count + 1`
5368     if test $lt_ac_count -gt $lt_ac_max; then
5369       lt_ac_max=$lt_ac_count
5370       lt_cv_path_SED=$lt_ac_sed
5371     fi
5372   done
5373 done
5374
5375 fi
5376
5377 SED=$lt_cv_path_SED
5378 { echo "$as_me:$LINENO: result: $SED" >&5
5379 echo "${ECHO_T}$SED" >&6; }
5380
5381 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5382 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5383 if test "${ac_cv_path_GREP+set}" = set; then
5384   echo $ECHO_N "(cached) $ECHO_C" >&6
5385 else
5386   # Extract the first word of "grep ggrep" to use in msg output
5387 if test -z "$GREP"; then
5388 set dummy grep ggrep; ac_prog_name=$2
5389 if test "${ac_cv_path_GREP+set}" = set; then
5390   echo $ECHO_N "(cached) $ECHO_C" >&6
5391 else
5392   ac_path_GREP_found=false
5393 # Loop through the user's path and test for each of PROGNAME-LIST
5394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5395 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5396 do
5397   IFS=$as_save_IFS
5398   test -z "$as_dir" && as_dir=.
5399   for ac_prog in grep ggrep; do
5400   for ac_exec_ext in '' $ac_executable_extensions; do
5401     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5402     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5403     # Check for GNU ac_path_GREP and select it if it is found.
5404   # Check for GNU $ac_path_GREP
5405 case `"$ac_path_GREP" --version 2>&1` in
5406 *GNU*)
5407   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5408 *)
5409   ac_count=0
5410   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5411   while :
5412   do
5413     cat "conftest.in" "conftest.in" >"conftest.tmp"
5414     mv "conftest.tmp" "conftest.in"
5415     cp "conftest.in" "conftest.nl"
5416     echo 'GREP' >> "conftest.nl"
5417     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5418     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5419     ac_count=`expr $ac_count + 1`
5420     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5421       # Best one so far, save it but keep looking for a better one
5422       ac_cv_path_GREP="$ac_path_GREP"
5423       ac_path_GREP_max=$ac_count
5424     fi
5425     # 10*(2^10) chars as input seems more than enough
5426     test $ac_count -gt 10 && break
5427   done
5428   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5429 esac
5430
5431
5432     $ac_path_GREP_found && break 3
5433   done
5434 done
5435
5436 done
5437 IFS=$as_save_IFS
5438
5439
5440 fi
5441
5442 GREP="$ac_cv_path_GREP"
5443 if test -z "$GREP"; then
5444   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5445 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5446    { (exit 1); exit 1; }; }
5447 fi
5448
5449 else
5450   ac_cv_path_GREP=$GREP
5451 fi
5452
5453
5454 fi
5455 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5456 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5457  GREP="$ac_cv_path_GREP"
5458
5459
5460 { echo "$as_me:$LINENO: checking for egrep" >&5
5461 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5462 if test "${ac_cv_path_EGREP+set}" = set; then
5463   echo $ECHO_N "(cached) $ECHO_C" >&6
5464 else
5465   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5466    then ac_cv_path_EGREP="$GREP -E"
5467    else
5468      # Extract the first word of "egrep" to use in msg output
5469 if test -z "$EGREP"; then
5470 set dummy egrep; ac_prog_name=$2
5471 if test "${ac_cv_path_EGREP+set}" = set; then
5472   echo $ECHO_N "(cached) $ECHO_C" >&6
5473 else
5474   ac_path_EGREP_found=false
5475 # Loop through the user's path and test for each of PROGNAME-LIST
5476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5477 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5478 do
5479   IFS=$as_save_IFS
5480   test -z "$as_dir" && as_dir=.
5481   for ac_prog in egrep; do
5482   for ac_exec_ext in '' $ac_executable_extensions; do
5483     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5484     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5485     # Check for GNU ac_path_EGREP and select it if it is found.
5486   # Check for GNU $ac_path_EGREP
5487 case `"$ac_path_EGREP" --version 2>&1` in
5488 *GNU*)
5489   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5490 *)
5491   ac_count=0
5492   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5493   while :
5494   do
5495     cat "conftest.in" "conftest.in" >"conftest.tmp"
5496     mv "conftest.tmp" "conftest.in"
5497     cp "conftest.in" "conftest.nl"
5498     echo 'EGREP' >> "conftest.nl"
5499     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5500     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5501     ac_count=`expr $ac_count + 1`
5502     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5503       # Best one so far, save it but keep looking for a better one
5504       ac_cv_path_EGREP="$ac_path_EGREP"
5505       ac_path_EGREP_max=$ac_count
5506     fi
5507     # 10*(2^10) chars as input seems more than enough
5508     test $ac_count -gt 10 && break
5509   done
5510   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5511 esac
5512
5513
5514     $ac_path_EGREP_found && break 3
5515   done
5516 done
5517
5518 done
5519 IFS=$as_save_IFS
5520
5521
5522 fi
5523
5524 EGREP="$ac_cv_path_EGREP"
5525 if test -z "$EGREP"; then
5526   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5527 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5528    { (exit 1); exit 1; }; }
5529 fi
5530
5531 else
5532   ac_cv_path_EGREP=$EGREP
5533 fi
5534
5535
5536    fi
5537 fi
5538 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5539 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5540  EGREP="$ac_cv_path_EGREP"
5541
5542
5543
5544 # Check whether --with-gnu-ld was given.
5545 if test "${with_gnu_ld+set}" = set; then
5546   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5547 else
5548   with_gnu_ld=no
5549 fi
5550
5551 ac_prog=ld
5552 if test "$GCC" = yes; then
5553   # Check if gcc -print-prog-name=ld gives a path.
5554   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5555 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5556   case $host in
5557   *-*-mingw*)
5558     # gcc leaves a trailing carriage return which upsets mingw
5559     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5560   *)
5561     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5562   esac
5563   case $ac_prog in
5564     # Accept absolute paths.
5565     [\\/]* | ?:[\\/]*)
5566       re_direlt='/[^/][^/]*/\.\./'
5567       # Canonicalize the pathname of ld
5568       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5569       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5570         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5571       done
5572       test -z "$LD" && LD="$ac_prog"
5573       ;;
5574   "")
5575     # If it fails, then pretend we aren't using GCC.
5576     ac_prog=ld
5577     ;;
5578   *)
5579     # If it is relative, then search for the first ld in PATH.
5580     with_gnu_ld=unknown
5581     ;;
5582   esac
5583 elif test "$with_gnu_ld" = yes; then
5584   { echo "$as_me:$LINENO: checking for GNU ld" >&5
5585 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5586 else
5587   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5588 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5589 fi
5590 if test "${lt_cv_path_LD+set}" = set; then
5591   echo $ECHO_N "(cached) $ECHO_C" >&6
5592 else
5593   if test -z "$LD"; then
5594   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5595   for ac_dir in $PATH; do
5596     IFS="$lt_save_ifs"
5597     test -z "$ac_dir" && ac_dir=.
5598     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5599       lt_cv_path_LD="$ac_dir/$ac_prog"
5600       # Check to see if the program is GNU ld.  I'd rather use --version,
5601       # but apparently some variants of GNU ld only accept -v.
5602       # Break only if it was the GNU/non-GNU ld that we prefer.
5603       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5604       *GNU* | *'with BFD'*)
5605         test "$with_gnu_ld" != no && break
5606         ;;
5607       *)
5608         test "$with_gnu_ld" != yes && break
5609         ;;
5610       esac
5611     fi
5612   done
5613   IFS="$lt_save_ifs"
5614 else
5615   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5616 fi
5617 fi
5618
5619 LD="$lt_cv_path_LD"
5620 if test -n "$LD"; then
5621   { echo "$as_me:$LINENO: result: $LD" >&5
5622 echo "${ECHO_T}$LD" >&6; }
5623 else
5624   { echo "$as_me:$LINENO: result: no" >&5
5625 echo "${ECHO_T}no" >&6; }
5626 fi
5627 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5628 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5629    { (exit 1); exit 1; }; }
5630 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5631 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5632 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5633   echo $ECHO_N "(cached) $ECHO_C" >&6
5634 else
5635   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5636 case `$LD -v 2>&1 </dev/null` in
5637 *GNU* | *'with BFD'*)
5638   lt_cv_prog_gnu_ld=yes
5639   ;;
5640 *)
5641   lt_cv_prog_gnu_ld=no
5642   ;;
5643 esac
5644 fi
5645 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5646 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5647 with_gnu_ld=$lt_cv_prog_gnu_ld
5648
5649
5650 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5651 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
5652 if test "${lt_cv_ld_reload_flag+set}" = set; then
5653   echo $ECHO_N "(cached) $ECHO_C" >&6
5654 else
5655   lt_cv_ld_reload_flag='-r'
5656 fi
5657 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5658 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
5659 reload_flag=$lt_cv_ld_reload_flag
5660 case $reload_flag in
5661 "" | " "*) ;;
5662 *) reload_flag=" $reload_flag" ;;
5663 esac
5664 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5665 case $host_os in
5666   darwin*)
5667     if test "$GCC" = yes; then
5668       reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
5669     else
5670       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5671     fi
5672     ;;
5673 esac
5674
5675 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5676 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5677 if test "${lt_cv_path_NM+set}" = set; then
5678   echo $ECHO_N "(cached) $ECHO_C" >&6
5679 else
5680   if test -n "$NM"; then
5681   # Let the user override the test.
5682   lt_cv_path_NM="$NM"
5683 else
5684   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5685   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5686     IFS="$lt_save_ifs"
5687     test -z "$ac_dir" && ac_dir=.
5688     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
5689     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5690       # Check to see if the nm accepts a BSD-compat flag.
5691       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5692       #   nm: unknown option "B" ignored
5693       # Tru64's nm complains that /dev/null is an invalid object file
5694       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5695       */dev/null* | *'Invalid file or object type'*)
5696         lt_cv_path_NM="$tmp_nm -B"
5697         break
5698         ;;
5699       *)
5700         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5701         */dev/null*)
5702           lt_cv_path_NM="$tmp_nm -p"
5703           break
5704           ;;
5705         *)
5706           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5707           continue # so that we can try to find one that supports BSD flags
5708           ;;
5709         esac
5710       esac
5711     fi
5712   done
5713   IFS="$lt_save_ifs"
5714   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5715 fi
5716 fi
5717 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5718 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5719 NM="$lt_cv_path_NM"
5720
5721 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5722 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5723 LN_S=$as_ln_s
5724 if test "$LN_S" = "ln -s"; then
5725   { echo "$as_me:$LINENO: result: yes" >&5
5726 echo "${ECHO_T}yes" >&6; }
5727 else
5728   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5729 echo "${ECHO_T}no, using $LN_S" >&6; }
5730 fi
5731
5732 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5733 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
5734 if test "${lt_cv_deplibs_check_method+set}" = set; then
5735   echo $ECHO_N "(cached) $ECHO_C" >&6
5736 else
5737   lt_cv_file_magic_cmd='$MAGIC_CMD'
5738 lt_cv_file_magic_test_file=
5739 lt_cv_deplibs_check_method='unknown'
5740 # Need to set the preceding variable on all platforms that support
5741 # interlibrary dependencies.
5742 # 'none' -- dependencies not supported.
5743 # `unknown' -- same as none, but documents that we really don't know.
5744 # 'pass_all' -- all dependencies passed with no checks.
5745 # 'test_compile' -- check by making test program.
5746 # 'file_magic [[regex]]' -- check by looking for files in library path
5747 # which responds to the $file_magic_cmd with a given extended regex.
5748 # If you have `file' or equivalent on your system and you're not sure
5749 # whether `pass_all' will *always* work, you probably want this one.
5750
5751 case $host_os in
5752 aix4* | aix5*)
5753   lt_cv_deplibs_check_method=pass_all
5754   ;;
5755
5756 beos*)
5757   lt_cv_deplibs_check_method=pass_all
5758   ;;
5759
5760 bsdi[45]*)
5761   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5762   lt_cv_file_magic_cmd='/usr/bin/file -L'
5763   lt_cv_file_magic_test_file=/shlib/libc.so
5764   ;;
5765
5766 cygwin*)
5767   # func_win32_libid is a shell function defined in ltmain.sh
5768   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5769   lt_cv_file_magic_cmd='func_win32_libid'
5770   ;;
5771
5772 mingw* | pw32*)
5773   # Base MSYS/MinGW do not provide the 'file' command needed by
5774   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5775   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5776   lt_cv_file_magic_cmd='$OBJDUMP -f'
5777   ;;
5778
5779 darwin* | rhapsody*)
5780   lt_cv_deplibs_check_method=pass_all
5781   ;;
5782
5783 freebsd* | kfreebsd*-gnu | dragonfly*)
5784   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5785     case $host_cpu in
5786     i*86 )
5787       # Not sure whether the presence of OpenBSD here was a mistake.
5788       # Let's accept both of them until this is cleared up.
5789       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5790       lt_cv_file_magic_cmd=/usr/bin/file
5791       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5792       ;;
5793     esac
5794   else
5795     lt_cv_deplibs_check_method=pass_all
5796   fi
5797   ;;
5798
5799 gnu*)
5800   lt_cv_deplibs_check_method=pass_all
5801   ;;
5802
5803 hpux10.20* | hpux11*)
5804   lt_cv_file_magic_cmd=/usr/bin/file
5805   case $host_cpu in
5806   ia64*)
5807     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5808     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5809     ;;
5810   hppa*64*)
5811     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]'
5812     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5813     ;;
5814   *)
5815     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5816     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5817     ;;
5818   esac
5819   ;;
5820
5821 irix5* | irix6* | nonstopux*)
5822   case $LD in
5823   *-32|*"-32 ") libmagic=32-bit;;
5824   *-n32|*"-n32 ") libmagic=N32;;
5825   *-64|*"-64 ") libmagic=64-bit;;
5826   *) libmagic=never-match;;
5827   esac
5828   lt_cv_deplibs_check_method=pass_all
5829   ;;
5830
5831 # This must be Linux ELF.
5832 linux*)
5833   lt_cv_deplibs_check_method=pass_all
5834   ;;
5835
5836 netbsd*)
5837   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5838     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5839   else
5840     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5841   fi
5842   ;;
5843
5844 newos6*)
5845   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5846   lt_cv_file_magic_cmd=/usr/bin/file
5847   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5848   ;;
5849
5850 nto-qnx*)
5851   lt_cv_deplibs_check_method=unknown
5852   ;;
5853
5854 openbsd*)
5855   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5856     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5857   else
5858     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5859   fi
5860   ;;
5861
5862 osf3* | osf4* | osf5*)
5863   lt_cv_deplibs_check_method=pass_all
5864   ;;
5865
5866 sco3.2v5*)
5867   lt_cv_deplibs_check_method=pass_all
5868   ;;
5869
5870 solaris*)
5871   lt_cv_deplibs_check_method=pass_all
5872   ;;
5873
5874 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5875   case $host_vendor in
5876   motorola)
5877     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]'
5878     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5879     ;;
5880   ncr)
5881     lt_cv_deplibs_check_method=pass_all
5882     ;;
5883   sequent)
5884     lt_cv_file_magic_cmd='/bin/file'
5885     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5886     ;;
5887   sni)
5888     lt_cv_file_magic_cmd='/bin/file'
5889     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5890     lt_cv_file_magic_test_file=/lib/libc.so
5891     ;;
5892   siemens)
5893     lt_cv_deplibs_check_method=pass_all
5894     ;;
5895   esac
5896   ;;
5897
5898 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
5899   lt_cv_deplibs_check_method=pass_all
5900   ;;
5901 esac
5902
5903 fi
5904 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5905 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
5906 file_magic_cmd=$lt_cv_file_magic_cmd
5907 deplibs_check_method=$lt_cv_deplibs_check_method
5908 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5909
5910
5911
5912
5913 # If no C compiler was specified, use CC.
5914 LTCC=${LTCC-"$CC"}
5915
5916 # Allow CC to be a program name with arguments.
5917 compiler=$CC
5918
5919 # Check whether --enable-libtool-lock was given.
5920 if test "${enable_libtool_lock+set}" = set; then
5921   enableval=$enable_libtool_lock;
5922 fi
5923
5924 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5925
5926 # Some flags need to be propagated to the compiler or linker for good
5927 # libtool support.
5928 case $host in
5929 ia64-*-hpux*)
5930   # Find out which ABI we are using.
5931   echo 'int i;' > conftest.$ac_ext
5932   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5933   (eval $ac_compile) 2>&5
5934   ac_status=$?
5935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936   (exit $ac_status); }; then
5937     case `/usr/bin/file conftest.$ac_objext` in
5938     *ELF-32*)
5939       HPUX_IA64_MODE="32"
5940       ;;
5941     *ELF-64*)
5942       HPUX_IA64_MODE="64"
5943       ;;
5944     esac
5945   fi
5946   rm -rf conftest*
5947   ;;
5948 *-*-irix6*)
5949   # Find out which ABI we are using.
5950   echo '#line 5950 "configure"' > conftest.$ac_ext
5951   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5952   (eval $ac_compile) 2>&5
5953   ac_status=$?
5954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5955   (exit $ac_status); }; then
5956    if test "$lt_cv_prog_gnu_ld" = yes; then
5957     case `/usr/bin/file conftest.$ac_objext` in
5958     *32-bit*)
5959       LD="${LD-ld} -melf32bsmip"
5960       ;;
5961     *N32*)
5962       LD="${LD-ld} -melf32bmipn32"
5963       ;;
5964     *64-bit*)
5965       LD="${LD-ld} -melf64bmip"
5966       ;;
5967     esac
5968    else
5969     case `/usr/bin/file conftest.$ac_objext` in
5970     *32-bit*)
5971       LD="${LD-ld} -32"
5972       ;;
5973     *N32*)
5974       LD="${LD-ld} -n32"
5975       ;;
5976     *64-bit*)
5977       LD="${LD-ld} -64"
5978       ;;
5979     esac
5980    fi
5981   fi
5982   rm -rf conftest*
5983   ;;
5984
5985 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5986   # Find out which ABI we are using.
5987   echo 'int i;' > conftest.$ac_ext
5988   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5989   (eval $ac_compile) 2>&5
5990   ac_status=$?
5991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5992   (exit $ac_status); }; then
5993     case `/usr/bin/file conftest.o` in
5994     *32-bit*)
5995       case $host in
5996         x86_64-*linux*)
5997           LD="${LD-ld} -m elf_i386"
5998           ;;
5999         ppc64-*linux*|powerpc64-*linux*)
6000           LD="${LD-ld} -m elf32ppclinux"
6001           ;;
6002         s390x-*linux*)
6003           LD="${LD-ld} -m elf_s390"
6004           ;;
6005         sparc64-*linux*)
6006           LD="${LD-ld} -m elf32_sparc"
6007           ;;
6008       esac
6009       ;;
6010     *64-bit*)
6011       case $host in
6012         x86_64-*linux*)
6013           LD="${LD-ld} -m elf_x86_64"
6014           ;;
6015         ppc*-*linux*|powerpc*-*linux*)
6016           LD="${LD-ld} -m elf64ppc"
6017           ;;
6018         s390*-*linux*)
6019           LD="${LD-ld} -m elf64_s390"
6020           ;;
6021         sparc*-*linux*)
6022           LD="${LD-ld} -m elf64_sparc"
6023           ;;
6024       esac
6025       ;;
6026     esac
6027   fi
6028   rm -rf conftest*
6029   ;;
6030
6031 *-*-sco3.2v5*)
6032   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6033   SAVE_CFLAGS="$CFLAGS"
6034   CFLAGS="$CFLAGS -belf"
6035   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6036 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
6037 if test "${lt_cv_cc_needs_belf+set}" = set; then
6038   echo $ECHO_N "(cached) $ECHO_C" >&6
6039 else
6040   ac_ext=c
6041 ac_cpp='$CPP $CPPFLAGS'
6042 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6043 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6044 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6045
6046      cat >conftest.$ac_ext <<_ACEOF
6047 /* confdefs.h.  */
6048 _ACEOF
6049 cat confdefs.h >>conftest.$ac_ext
6050 cat >>conftest.$ac_ext <<_ACEOF
6051 /* end confdefs.h.  */
6052
6053 int
6054 main ()
6055 {
6056
6057   ;
6058   return 0;
6059 }
6060 _ACEOF
6061 rm -f conftest.$ac_objext conftest$ac_exeext
6062 if { (ac_try="$ac_link"
6063 case "(($ac_try" in
6064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6065   *) ac_try_echo=$ac_try;;
6066 esac
6067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6068   (eval "$ac_link") 2>conftest.er1
6069   ac_status=$?
6070   grep -v '^ *+' conftest.er1 >conftest.err
6071   rm -f conftest.er1
6072   cat conftest.err >&5
6073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6074   (exit $ac_status); } && {
6075          test -z "$ac_c_werror_flag" ||
6076          test ! -s conftest.err
6077        } && test -s conftest$ac_exeext &&
6078        $as_test_x conftest$ac_exeext; then
6079   lt_cv_cc_needs_belf=yes
6080 else
6081   echo "$as_me: failed program was:" >&5
6082 sed 's/^/| /' conftest.$ac_ext >&5
6083
6084         lt_cv_cc_needs_belf=no
6085 fi
6086
6087 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6088       conftest$ac_exeext conftest.$ac_ext
6089      ac_ext=c
6090 ac_cpp='$CPP $CPPFLAGS'
6091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6093 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6094
6095 fi
6096 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6097 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
6098   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6099     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6100     CFLAGS="$SAVE_CFLAGS"
6101   fi
6102   ;;
6103
6104 esac
6105
6106 need_locks="$enable_libtool_lock"
6107
6108
6109 ac_ext=c
6110 ac_cpp='$CPP $CPPFLAGS'
6111 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6112 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6113 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6114 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6115 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
6116 # On Suns, sometimes $CPP names a directory.
6117 if test -n "$CPP" && test -d "$CPP"; then
6118   CPP=
6119 fi
6120 if test -z "$CPP"; then
6121   if test "${ac_cv_prog_CPP+set}" = set; then
6122   echo $ECHO_N "(cached) $ECHO_C" >&6
6123 else
6124       # Double quotes because CPP needs to be expanded
6125     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6126     do
6127       ac_preproc_ok=false
6128 for ac_c_preproc_warn_flag in '' yes
6129 do
6130   # Use a header file that comes with gcc, so configuring glibc
6131   # with a fresh cross-compiler works.
6132   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6133   # <limits.h> exists even on freestanding compilers.
6134   # On the NeXT, cc -E runs the code through the compiler's parser,
6135   # not just through cpp. "Syntax error" is here to catch this case.
6136   cat >conftest.$ac_ext <<_ACEOF
6137 /* confdefs.h.  */
6138 _ACEOF
6139 cat confdefs.h >>conftest.$ac_ext
6140 cat >>conftest.$ac_ext <<_ACEOF
6141 /* end confdefs.h.  */
6142 #ifdef __STDC__
6143 # include <limits.h>
6144 #else
6145 # include <assert.h>
6146 #endif
6147                      Syntax error
6148 _ACEOF
6149 if { (ac_try="$ac_cpp conftest.$ac_ext"
6150 case "(($ac_try" in
6151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6152   *) ac_try_echo=$ac_try;;
6153 esac
6154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6155   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6156   ac_status=$?
6157   grep -v '^ *+' conftest.er1 >conftest.err
6158   rm -f conftest.er1
6159   cat conftest.err >&5
6160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6161   (exit $ac_status); } >/dev/null && {
6162          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6163          test ! -s conftest.err
6164        }; then
6165   :
6166 else
6167   echo "$as_me: failed program was:" >&5
6168 sed 's/^/| /' conftest.$ac_ext >&5
6169
6170   # Broken: fails on valid input.
6171 continue
6172 fi
6173
6174 rm -f conftest.err conftest.$ac_ext
6175
6176   # OK, works on sane cases.  Now check whether nonexistent headers
6177   # can be detected and how.
6178   cat >conftest.$ac_ext <<_ACEOF
6179 /* confdefs.h.  */
6180 _ACEOF
6181 cat confdefs.h >>conftest.$ac_ext
6182 cat >>conftest.$ac_ext <<_ACEOF
6183 /* end confdefs.h.  */
6184 #include <ac_nonexistent.h>
6185 _ACEOF
6186 if { (ac_try="$ac_cpp conftest.$ac_ext"
6187 case "(($ac_try" in
6188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6189   *) ac_try_echo=$ac_try;;
6190 esac
6191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6192   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6193   ac_status=$?
6194   grep -v '^ *+' conftest.er1 >conftest.err
6195   rm -f conftest.er1
6196   cat conftest.err >&5
6197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6198   (exit $ac_status); } >/dev/null && {
6199          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6200          test ! -s conftest.err
6201        }; then
6202   # Broken: success on invalid input.
6203 continue
6204 else
6205   echo "$as_me: failed program was:" >&5
6206 sed 's/^/| /' conftest.$ac_ext >&5
6207
6208   # Passes both tests.
6209 ac_preproc_ok=:
6210 break
6211 fi
6212
6213 rm -f conftest.err conftest.$ac_ext
6214
6215 done
6216 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6217 rm -f conftest.err conftest.$ac_ext
6218 if $ac_preproc_ok; then
6219   break
6220 fi
6221
6222     done
6223     ac_cv_prog_CPP=$CPP
6224
6225 fi
6226   CPP=$ac_cv_prog_CPP
6227 else
6228   ac_cv_prog_CPP=$CPP
6229 fi
6230 { echo "$as_me:$LINENO: result: $CPP" >&5
6231 echo "${ECHO_T}$CPP" >&6; }
6232 ac_preproc_ok=false
6233 for ac_c_preproc_warn_flag in '' yes
6234 do
6235   # Use a header file that comes with gcc, so configuring glibc
6236   # with a fresh cross-compiler works.
6237   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6238   # <limits.h> exists even on freestanding compilers.
6239   # On the NeXT, cc -E runs the code through the compiler's parser,
6240   # not just through cpp. "Syntax error" is here to catch this case.
6241   cat >conftest.$ac_ext <<_ACEOF
6242 /* confdefs.h.  */
6243 _ACEOF
6244 cat confdefs.h >>conftest.$ac_ext
6245 cat >>conftest.$ac_ext <<_ACEOF
6246 /* end confdefs.h.  */
6247 #ifdef __STDC__
6248 # include <limits.h>
6249 #else
6250 # include <assert.h>
6251 #endif
6252                      Syntax error
6253 _ACEOF
6254 if { (ac_try="$ac_cpp conftest.$ac_ext"
6255 case "(($ac_try" in
6256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6257   *) ac_try_echo=$ac_try;;
6258 esac
6259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6260   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6261   ac_status=$?
6262   grep -v '^ *+' conftest.er1 >conftest.err
6263   rm -f conftest.er1
6264   cat conftest.err >&5
6265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6266   (exit $ac_status); } >/dev/null && {
6267          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6268          test ! -s conftest.err
6269        }; then
6270   :
6271 else
6272   echo "$as_me: failed program was:" >&5
6273 sed 's/^/| /' conftest.$ac_ext >&5
6274
6275   # Broken: fails on valid input.
6276 continue
6277 fi
6278
6279 rm -f conftest.err conftest.$ac_ext
6280
6281   # OK, works on sane cases.  Now check whether nonexistent headers
6282   # can be detected and how.
6283   cat >conftest.$ac_ext <<_ACEOF
6284 /* confdefs.h.  */
6285 _ACEOF
6286 cat confdefs.h >>conftest.$ac_ext
6287 cat >>conftest.$ac_ext <<_ACEOF
6288 /* end confdefs.h.  */
6289 #include <ac_nonexistent.h>
6290 _ACEOF
6291 if { (ac_try="$ac_cpp conftest.$ac_ext"
6292 case "(($ac_try" in
6293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6294   *) ac_try_echo=$ac_try;;
6295 esac
6296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6297   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6298   ac_status=$?
6299   grep -v '^ *+' conftest.er1 >conftest.err
6300   rm -f conftest.er1
6301   cat conftest.err >&5
6302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6303   (exit $ac_status); } >/dev/null && {
6304          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6305          test ! -s conftest.err
6306        }; then
6307   # Broken: success on invalid input.
6308 continue
6309 else
6310   echo "$as_me: failed program was:" >&5
6311 sed 's/^/| /' conftest.$ac_ext >&5
6312
6313   # Passes both tests.
6314 ac_preproc_ok=:
6315 break
6316 fi
6317
6318 rm -f conftest.err conftest.$ac_ext
6319
6320 done
6321 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6322 rm -f conftest.err conftest.$ac_ext
6323 if $ac_preproc_ok; then
6324   :
6325 else
6326   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6327 See \`config.log' for more details." >&5
6328 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6329 See \`config.log' for more details." >&2;}
6330    { (exit 1); exit 1; }; }
6331 fi
6332
6333 ac_ext=c
6334 ac_cpp='$CPP $CPPFLAGS'
6335 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6336 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6337 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6338
6339
6340 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6341 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6342 if test "${ac_cv_header_stdc+set}" = set; then
6343   echo $ECHO_N "(cached) $ECHO_C" >&6
6344 else
6345   cat >conftest.$ac_ext <<_ACEOF
6346 /* confdefs.h.  */
6347 _ACEOF
6348 cat confdefs.h >>conftest.$ac_ext
6349 cat >>conftest.$ac_ext <<_ACEOF
6350 /* end confdefs.h.  */
6351 #include <stdlib.h>
6352 #include <stdarg.h>
6353 #include <string.h>
6354 #include <float.h>
6355
6356 int
6357 main ()
6358 {
6359
6360   ;
6361   return 0;
6362 }
6363 _ACEOF
6364 rm -f conftest.$ac_objext
6365 if { (ac_try="$ac_compile"
6366 case "(($ac_try" in
6367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6368   *) ac_try_echo=$ac_try;;
6369 esac
6370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6371   (eval "$ac_compile") 2>conftest.er1
6372   ac_status=$?
6373   grep -v '^ *+' conftest.er1 >conftest.err
6374   rm -f conftest.er1
6375   cat conftest.err >&5
6376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6377   (exit $ac_status); } && {
6378          test -z "$ac_c_werror_flag" ||
6379          test ! -s conftest.err
6380        } && test -s conftest.$ac_objext; then
6381   ac_cv_header_stdc=yes
6382 else
6383   echo "$as_me: failed program was:" >&5
6384 sed 's/^/| /' conftest.$ac_ext >&5
6385
6386         ac_cv_header_stdc=no
6387 fi
6388
6389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6390
6391 if test $ac_cv_header_stdc = yes; then
6392   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6393   cat >conftest.$ac_ext <<_ACEOF
6394 /* confdefs.h.  */
6395 _ACEOF
6396 cat confdefs.h >>conftest.$ac_ext
6397 cat >>conftest.$ac_ext <<_ACEOF
6398 /* end confdefs.h.  */
6399 #include <string.h>
6400
6401 _ACEOF
6402 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6403   $EGREP "memchr" >/dev/null 2>&1; then
6404   :
6405 else
6406   ac_cv_header_stdc=no
6407 fi
6408 rm -f conftest*
6409
6410 fi
6411
6412 if test $ac_cv_header_stdc = yes; then
6413   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6414   cat >conftest.$ac_ext <<_ACEOF
6415 /* confdefs.h.  */
6416 _ACEOF
6417 cat confdefs.h >>conftest.$ac_ext
6418 cat >>conftest.$ac_ext <<_ACEOF
6419 /* end confdefs.h.  */
6420 #include <stdlib.h>
6421
6422 _ACEOF
6423 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6424   $EGREP "free" >/dev/null 2>&1; then
6425   :
6426 else
6427   ac_cv_header_stdc=no
6428 fi
6429 rm -f conftest*
6430
6431 fi
6432
6433 if test $ac_cv_header_stdc = yes; then
6434   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6435   if test "$cross_compiling" = yes; then
6436   :
6437 else
6438   cat >conftest.$ac_ext <<_ACEOF
6439 /* confdefs.h.  */
6440 _ACEOF
6441 cat confdefs.h >>conftest.$ac_ext
6442 cat >>conftest.$ac_ext <<_ACEOF
6443 /* end confdefs.h.  */
6444 #include <ctype.h>
6445 #include <stdlib.h>
6446 #if ((' ' & 0x0FF) == 0x020)
6447 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6448 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6449 #else
6450 # define ISLOWER(c) \
6451                    (('a' <= (c) && (c) <= 'i') \
6452                      || ('j' <= (c) && (c) <= 'r') \
6453                      || ('s' <= (c) && (c) <= 'z'))
6454 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6455 #endif
6456
6457 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6458 int
6459 main ()
6460 {
6461   int i;
6462   for (i = 0; i < 256; i++)
6463     if (XOR (islower (i), ISLOWER (i))
6464         || toupper (i) != TOUPPER (i))
6465       return 2;
6466   return 0;
6467 }
6468 _ACEOF
6469 rm -f conftest$ac_exeext
6470 if { (ac_try="$ac_link"
6471 case "(($ac_try" in
6472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6473   *) ac_try_echo=$ac_try;;
6474 esac
6475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6476   (eval "$ac_link") 2>&5
6477   ac_status=$?
6478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6479   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6480   { (case "(($ac_try" in
6481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6482   *) ac_try_echo=$ac_try;;
6483 esac
6484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6485   (eval "$ac_try") 2>&5
6486   ac_status=$?
6487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6488   (exit $ac_status); }; }; then
6489   :
6490 else
6491   echo "$as_me: program exited with status $ac_status" >&5
6492 echo "$as_me: failed program was:" >&5
6493 sed 's/^/| /' conftest.$ac_ext >&5
6494
6495 ( exit $ac_status )
6496 ac_cv_header_stdc=no
6497 fi
6498 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6499 fi
6500
6501
6502 fi
6503 fi
6504 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6505 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6506 if test $ac_cv_header_stdc = yes; then
6507
6508 cat >>confdefs.h <<\_ACEOF
6509 #define STDC_HEADERS 1
6510 _ACEOF
6511
6512 fi
6513
6514 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6525                   inttypes.h stdint.h unistd.h
6526 do
6527 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6528 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6529 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6530 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6531   echo $ECHO_N "(cached) $ECHO_C" >&6
6532 else
6533   cat >conftest.$ac_ext <<_ACEOF
6534 /* confdefs.h.  */
6535 _ACEOF
6536 cat confdefs.h >>conftest.$ac_ext
6537 cat >>conftest.$ac_ext <<_ACEOF
6538 /* end confdefs.h.  */
6539 $ac_includes_default
6540
6541 #include <$ac_header>
6542 _ACEOF
6543 rm -f conftest.$ac_objext
6544 if { (ac_try="$ac_compile"
6545 case "(($ac_try" in
6546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6547   *) ac_try_echo=$ac_try;;
6548 esac
6549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6550   (eval "$ac_compile") 2>conftest.er1
6551   ac_status=$?
6552   grep -v '^ *+' conftest.er1 >conftest.err
6553   rm -f conftest.er1
6554   cat conftest.err >&5
6555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6556   (exit $ac_status); } && {
6557          test -z "$ac_c_werror_flag" ||
6558          test ! -s conftest.err
6559        } && test -s conftest.$ac_objext; then
6560   eval "$as_ac_Header=yes"
6561 else
6562   echo "$as_me: failed program was:" >&5
6563 sed 's/^/| /' conftest.$ac_ext >&5
6564
6565         eval "$as_ac_Header=no"
6566 fi
6567
6568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6569 fi
6570 ac_res=`eval echo '${'$as_ac_Header'}'`
6571                { echo "$as_me:$LINENO: result: $ac_res" >&5
6572 echo "${ECHO_T}$ac_res" >&6; }
6573 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6574   cat >>confdefs.h <<_ACEOF
6575 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6576 _ACEOF
6577
6578 fi
6579
6580 done
6581
6582
6583
6584 for ac_header in dlfcn.h
6585 do
6586 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6587 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6588   { echo "$as_me:$LINENO: checking for $ac_header" >&5
6589 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6590 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6591   echo $ECHO_N "(cached) $ECHO_C" >&6
6592 fi
6593 ac_res=`eval echo '${'$as_ac_Header'}'`
6594                { echo "$as_me:$LINENO: result: $ac_res" >&5
6595 echo "${ECHO_T}$ac_res" >&6; }
6596 else
6597   # Is the header compilable?
6598 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6599 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6600 cat >conftest.$ac_ext <<_ACEOF
6601 /* confdefs.h.  */
6602 _ACEOF
6603 cat confdefs.h >>conftest.$ac_ext
6604 cat >>conftest.$ac_ext <<_ACEOF
6605 /* end confdefs.h.  */
6606 $ac_includes_default
6607 #include <$ac_header>
6608 _ACEOF
6609 rm -f conftest.$ac_objext
6610 if { (ac_try="$ac_compile"
6611 case "(($ac_try" in
6612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6613   *) ac_try_echo=$ac_try;;
6614 esac
6615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6616   (eval "$ac_compile") 2>conftest.er1
6617   ac_status=$?
6618   grep -v '^ *+' conftest.er1 >conftest.err
6619   rm -f conftest.er1
6620   cat conftest.err >&5
6621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6622   (exit $ac_status); } && {
6623          test -z "$ac_c_werror_flag" ||
6624          test ! -s conftest.err
6625        } && test -s conftest.$ac_objext; then
6626   ac_header_compiler=yes
6627 else
6628   echo "$as_me: failed program was:" >&5
6629 sed 's/^/| /' conftest.$ac_ext >&5
6630
6631         ac_header_compiler=no
6632 fi
6633
6634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6635 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6636 echo "${ECHO_T}$ac_header_compiler" >&6; }
6637
6638 # Is the header present?
6639 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6640 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6641 cat >conftest.$ac_ext <<_ACEOF
6642 /* confdefs.h.  */
6643 _ACEOF
6644 cat confdefs.h >>conftest.$ac_ext
6645 cat >>conftest.$ac_ext <<_ACEOF
6646 /* end confdefs.h.  */
6647 #include <$ac_header>
6648 _ACEOF
6649 if { (ac_try="$ac_cpp conftest.$ac_ext"
6650 case "(($ac_try" in
6651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6652   *) ac_try_echo=$ac_try;;
6653 esac
6654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6655   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6656   ac_status=$?
6657   grep -v '^ *+' conftest.er1 >conftest.err
6658   rm -f conftest.er1
6659   cat conftest.err >&5
6660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6661   (exit $ac_status); } >/dev/null && {
6662          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6663          test ! -s conftest.err
6664        }; then
6665   ac_header_preproc=yes
6666 else
6667   echo "$as_me: failed program was:" >&5
6668 sed 's/^/| /' conftest.$ac_ext >&5
6669
6670   ac_header_preproc=no
6671 fi
6672
6673 rm -f conftest.err conftest.$ac_ext
6674 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6675 echo "${ECHO_T}$ac_header_preproc" >&6; }
6676
6677 # So?  What about this header?
6678 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6679   yes:no: )
6680     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6681 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6682     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6683 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6684     ac_header_preproc=yes
6685     ;;
6686   no:yes:* )
6687     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6688 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6689     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6690 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6691     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6692 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6693     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6694 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6695     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6696 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6697     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6698 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6699
6700     ;;
6701 esac
6702 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6703 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6704 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6705   echo $ECHO_N "(cached) $ECHO_C" >&6
6706 else
6707   eval "$as_ac_Header=\$ac_header_preproc"
6708 fi
6709 ac_res=`eval echo '${'$as_ac_Header'}'`
6710                { echo "$as_me:$LINENO: result: $ac_res" >&5
6711 echo "${ECHO_T}$ac_res" >&6; }
6712
6713 fi
6714 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6715   cat >>confdefs.h <<_ACEOF
6716 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6717 _ACEOF
6718
6719 fi
6720
6721 done
6722
6723 ac_ext=cpp
6724 ac_cpp='$CXXCPP $CPPFLAGS'
6725 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6726 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6727 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6728 if test -z "$CXX"; then
6729   if test -n "$CCC"; then
6730     CXX=$CCC
6731   else
6732     if test -n "$ac_tool_prefix"; then
6733   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6734   do
6735     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6736 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6737 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6738 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6739 if test "${ac_cv_prog_CXX+set}" = set; then
6740   echo $ECHO_N "(cached) $ECHO_C" >&6
6741 else
6742   if test -n "$CXX"; then
6743   ac_cv_prog_CXX="$CXX" # Let the user override the test.
6744 else
6745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6746 for as_dir in $PATH
6747 do
6748   IFS=$as_save_IFS
6749   test -z "$as_dir" && as_dir=.
6750   for ac_exec_ext in '' $ac_executable_extensions; do
6751   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6752     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6753     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6754     break 2
6755   fi
6756 done
6757 done
6758 IFS=$as_save_IFS
6759
6760 fi
6761 fi
6762 CXX=$ac_cv_prog_CXX
6763 if test -n "$CXX"; then
6764   { echo "$as_me:$LINENO: result: $CXX" >&5
6765 echo "${ECHO_T}$CXX" >&6; }
6766 else
6767   { echo "$as_me:$LINENO: result: no" >&5
6768 echo "${ECHO_T}no" >&6; }
6769 fi
6770
6771
6772     test -n "$CXX" && break
6773   done
6774 fi
6775 if test -z "$CXX"; then
6776   ac_ct_CXX=$CXX
6777   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6778 do
6779   # Extract the first word of "$ac_prog", so it can be a program name with args.
6780 set dummy $ac_prog; ac_word=$2
6781 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6782 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6783 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6784   echo $ECHO_N "(cached) $ECHO_C" >&6
6785 else
6786   if test -n "$ac_ct_CXX"; then
6787   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6788 else
6789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6790 for as_dir in $PATH
6791 do
6792   IFS=$as_save_IFS
6793   test -z "$as_dir" && as_dir=.
6794   for ac_exec_ext in '' $ac_executable_extensions; do
6795   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6796     ac_cv_prog_ac_ct_CXX="$ac_prog"
6797     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6798     break 2
6799   fi
6800 done
6801 done
6802 IFS=$as_save_IFS
6803
6804 fi
6805 fi
6806 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6807 if test -n "$ac_ct_CXX"; then
6808   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6809 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6810 else
6811   { echo "$as_me:$LINENO: result: no" >&5
6812 echo "${ECHO_T}no" >&6; }
6813 fi
6814
6815
6816   test -n "$ac_ct_CXX" && break
6817 done
6818
6819   if test "x$ac_ct_CXX" = x; then
6820     CXX="g++"
6821   else
6822     case $cross_compiling:$ac_tool_warned in
6823 yes:)
6824 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6825 whose name does not start with the host triplet.  If you think this
6826 configuration is useful to you, please write to autoconf@gnu.org." >&5
6827 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6828 whose name does not start with the host triplet.  If you think this
6829 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6830 ac_tool_warned=yes ;;
6831 esac
6832     CXX=$ac_ct_CXX
6833   fi
6834 fi
6835
6836   fi
6837 fi
6838 # Provide some information about the compiler.
6839 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6840 ac_compiler=`set X $ac_compile; echo $2`
6841 { (ac_try="$ac_compiler --version >&5"
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_compiler --version >&5") 2>&5
6848   ac_status=$?
6849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6850   (exit $ac_status); }
6851 { (ac_try="$ac_compiler -v >&5"
6852 case "(($ac_try" in
6853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6854   *) ac_try_echo=$ac_try;;
6855 esac
6856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6857   (eval "$ac_compiler -v >&5") 2>&5
6858   ac_status=$?
6859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6860   (exit $ac_status); }
6861 { (ac_try="$ac_compiler -V >&5"
6862 case "(($ac_try" in
6863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6864   *) ac_try_echo=$ac_try;;
6865 esac
6866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6867   (eval "$ac_compiler -V >&5") 2>&5
6868   ac_status=$?
6869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6870   (exit $ac_status); }
6871
6872 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6873 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6874 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6875   echo $ECHO_N "(cached) $ECHO_C" >&6
6876 else
6877   cat >conftest.$ac_ext <<_ACEOF
6878 /* confdefs.h.  */
6879 _ACEOF
6880 cat confdefs.h >>conftest.$ac_ext
6881 cat >>conftest.$ac_ext <<_ACEOF
6882 /* end confdefs.h.  */
6883
6884 int
6885 main ()
6886 {
6887 #ifndef __GNUC__
6888        choke me
6889 #endif
6890
6891   ;
6892   return 0;
6893 }
6894 _ACEOF
6895 rm -f conftest.$ac_objext
6896 if { (ac_try="$ac_compile"
6897 case "(($ac_try" in
6898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6899   *) ac_try_echo=$ac_try;;
6900 esac
6901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6902   (eval "$ac_compile") 2>conftest.er1
6903   ac_status=$?
6904   grep -v '^ *+' conftest.er1 >conftest.err
6905   rm -f conftest.er1
6906   cat conftest.err >&5
6907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6908   (exit $ac_status); } && {
6909          test -z "$ac_cxx_werror_flag" ||
6910          test ! -s conftest.err
6911        } && test -s conftest.$ac_objext; then
6912   ac_compiler_gnu=yes
6913 else
6914   echo "$as_me: failed program was:" >&5
6915 sed 's/^/| /' conftest.$ac_ext >&5
6916
6917         ac_compiler_gnu=no
6918 fi
6919
6920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6921 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6922
6923 fi
6924 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6925 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6926 GXX=`test $ac_compiler_gnu = yes && echo yes`
6927 ac_test_CXXFLAGS=${CXXFLAGS+set}
6928 ac_save_CXXFLAGS=$CXXFLAGS
6929 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6930 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6931 if test "${ac_cv_prog_cxx_g+set}" = set; then
6932   echo $ECHO_N "(cached) $ECHO_C" >&6
6933 else
6934   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6935    ac_cxx_werror_flag=yes
6936    ac_cv_prog_cxx_g=no
6937    CXXFLAGS="-g"
6938    cat >conftest.$ac_ext <<_ACEOF
6939 /* confdefs.h.  */
6940 _ACEOF
6941 cat confdefs.h >>conftest.$ac_ext
6942 cat >>conftest.$ac_ext <<_ACEOF
6943 /* end confdefs.h.  */
6944
6945 int
6946 main ()
6947 {
6948
6949   ;
6950   return 0;
6951 }
6952 _ACEOF
6953 rm -f conftest.$ac_objext
6954 if { (ac_try="$ac_compile"
6955 case "(($ac_try" in
6956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6957   *) ac_try_echo=$ac_try;;
6958 esac
6959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6960   (eval "$ac_compile") 2>conftest.er1
6961   ac_status=$?
6962   grep -v '^ *+' conftest.er1 >conftest.err
6963   rm -f conftest.er1
6964   cat conftest.err >&5
6965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6966   (exit $ac_status); } && {
6967          test -z "$ac_cxx_werror_flag" ||
6968          test ! -s conftest.err
6969        } && test -s conftest.$ac_objext; then
6970   ac_cv_prog_cxx_g=yes
6971 else
6972   echo "$as_me: failed program was:" >&5
6973 sed 's/^/| /' conftest.$ac_ext >&5
6974
6975         CXXFLAGS=""
6976       cat >conftest.$ac_ext <<_ACEOF
6977 /* confdefs.h.  */
6978 _ACEOF
6979 cat confdefs.h >>conftest.$ac_ext
6980 cat >>conftest.$ac_ext <<_ACEOF
6981 /* end confdefs.h.  */
6982
6983 int
6984 main ()
6985 {
6986
6987   ;
6988   return 0;
6989 }
6990 _ACEOF
6991 rm -f conftest.$ac_objext
6992 if { (ac_try="$ac_compile"
6993 case "(($ac_try" in
6994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6995   *) ac_try_echo=$ac_try;;
6996 esac
6997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6998   (eval "$ac_compile") 2>conftest.er1
6999   ac_status=$?
7000   grep -v '^ *+' conftest.er1 >conftest.err
7001   rm -f conftest.er1
7002   cat conftest.err >&5
7003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7004   (exit $ac_status); } && {
7005          test -z "$ac_cxx_werror_flag" ||
7006          test ! -s conftest.err
7007        } && test -s conftest.$ac_objext; then
7008   :
7009 else
7010   echo "$as_me: failed program was:" >&5
7011 sed 's/^/| /' conftest.$ac_ext >&5
7012
7013         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7014          CXXFLAGS="-g"
7015          cat >conftest.$ac_ext <<_ACEOF
7016 /* confdefs.h.  */
7017 _ACEOF
7018 cat confdefs.h >>conftest.$ac_ext
7019 cat >>conftest.$ac_ext <<_ACEOF
7020 /* end confdefs.h.  */
7021
7022 int
7023 main ()
7024 {
7025
7026   ;
7027   return 0;
7028 }
7029 _ACEOF
7030 rm -f conftest.$ac_objext
7031 if { (ac_try="$ac_compile"
7032 case "(($ac_try" in
7033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7034   *) ac_try_echo=$ac_try;;
7035 esac
7036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7037   (eval "$ac_compile") 2>conftest.er1
7038   ac_status=$?
7039   grep -v '^ *+' conftest.er1 >conftest.err
7040   rm -f conftest.er1
7041   cat conftest.err >&5
7042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7043   (exit $ac_status); } && {
7044          test -z "$ac_cxx_werror_flag" ||
7045          test ! -s conftest.err
7046        } && test -s conftest.$ac_objext; then
7047   ac_cv_prog_cxx_g=yes
7048 else
7049   echo "$as_me: failed program was:" >&5
7050 sed 's/^/| /' conftest.$ac_ext >&5
7051
7052
7053 fi
7054
7055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7056 fi
7057
7058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7059 fi
7060
7061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7062    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7063 fi
7064 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
7065 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
7066 if test "$ac_test_CXXFLAGS" = set; then
7067   CXXFLAGS=$ac_save_CXXFLAGS
7068 elif test $ac_cv_prog_cxx_g = yes; then
7069   if test "$GXX" = yes; then
7070     CXXFLAGS="-g -O2"
7071   else
7072     CXXFLAGS="-g"
7073   fi
7074 else
7075   if test "$GXX" = yes; then
7076     CXXFLAGS="-O2"
7077   else
7078     CXXFLAGS=
7079   fi
7080 fi
7081 ac_ext=cpp
7082 ac_cpp='$CXXCPP $CPPFLAGS'
7083 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7084 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7085 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7086
7087 depcc="$CXX"  am_compiler_list=
7088
7089 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
7090 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
7091 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
7092   echo $ECHO_N "(cached) $ECHO_C" >&6
7093 else
7094   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7095   # We make a subdir and do the tests there.  Otherwise we can end up
7096   # making bogus files that we don't know about and never remove.  For
7097   # instance it was reported that on HP-UX the gcc test will end up
7098   # making a dummy file named `D' -- because `-MD' means `put the output
7099   # in D'.
7100   mkdir conftest.dir
7101   # Copy depcomp to subdir because otherwise we won't find it if we're
7102   # using a relative directory.
7103   cp "$am_depcomp" conftest.dir
7104   cd conftest.dir
7105   # We will build objects and dependencies in a subdirectory because
7106   # it helps to detect inapplicable dependency modes.  For instance
7107   # both Tru64's cc and ICC support -MD to output dependencies as a
7108   # side effect of compilation, but ICC will put the dependencies in
7109   # the current directory while Tru64 will put them in the object
7110   # directory.
7111   mkdir sub
7112
7113   am_cv_CXX_dependencies_compiler_type=none
7114   if test "$am_compiler_list" = ""; then
7115      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7116   fi
7117   for depmode in $am_compiler_list; do
7118     # Setup a source with many dependencies, because some compilers
7119     # like to wrap large dependency lists on column 80 (with \), and
7120     # we should not choose a depcomp mode which is confused by this.
7121     #
7122     # We need to recreate these files for each test, as the compiler may
7123     # overwrite some of them when testing with obscure command lines.
7124     # This happens at least with the AIX C compiler.
7125     : > sub/conftest.c
7126     for i in 1 2 3 4 5 6; do
7127       echo '#include "conftst'$i'.h"' >> sub/conftest.c
7128       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7129       # Solaris 8's {/usr,}/bin/sh.
7130       touch sub/conftst$i.h
7131     done
7132     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7133
7134     case $depmode in
7135     nosideeffect)
7136       # after this tag, mechanisms are not by side-effect, so they'll
7137       # only be used when explicitly requested
7138       if test "x$enable_dependency_tracking" = xyes; then
7139         continue
7140       else
7141         break
7142       fi
7143       ;;
7144     none) break ;;
7145     esac
7146     # We check with `-c' and `-o' for the sake of the "dashmstdout"
7147     # mode.  It turns out that the SunPro C++ compiler does not properly
7148     # handle `-M -o', and we need to detect this.
7149     if depmode=$depmode \
7150        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
7151        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7152        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
7153          >/dev/null 2>conftest.err &&
7154        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7155        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
7156        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7157       # icc doesn't choke on unknown options, it will just issue warnings
7158       # or remarks (even with -Werror).  So we grep stderr for any message
7159       # that says an option was ignored or not supported.
7160       # When given -MP, icc 7.0 and 7.1 complain thusly:
7161       #   icc: Command line warning: ignoring option '-M'; no argument required
7162       # The diagnosis changed in icc 8.0:
7163       #   icc: Command line remark: option '-MP' not supported
7164       if (grep 'ignoring option' conftest.err ||
7165           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7166         am_cv_CXX_dependencies_compiler_type=$depmode
7167         break
7168       fi
7169     fi
7170   done
7171
7172   cd ..
7173   rm -rf conftest.dir
7174 else
7175   am_cv_CXX_dependencies_compiler_type=none
7176 fi
7177
7178 fi
7179 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
7180 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
7181 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7182
7183
7184
7185 if
7186   test "x$enable_dependency_tracking" != xno \
7187   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7188   am__fastdepCXX_TRUE=
7189   am__fastdepCXX_FALSE='#'
7190 else
7191   am__fastdepCXX_TRUE='#'
7192   am__fastdepCXX_FALSE=
7193 fi
7194
7195
7196
7197
7198 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7199     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7200     (test "X$CXX" != "Xg++"))) ; then
7201   ac_ext=cpp
7202 ac_cpp='$CXXCPP $CPPFLAGS'
7203 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7204 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7205 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7206 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7207 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
7208 if test -z "$CXXCPP"; then
7209   if test "${ac_cv_prog_CXXCPP+set}" = set; then
7210   echo $ECHO_N "(cached) $ECHO_C" >&6
7211 else
7212       # Double quotes because CXXCPP needs to be expanded
7213     for CXXCPP in "$CXX -E" "/lib/cpp"
7214     do
7215       ac_preproc_ok=false
7216 for ac_cxx_preproc_warn_flag in '' yes
7217 do
7218   # Use a header file that comes with gcc, so configuring glibc
7219   # with a fresh cross-compiler works.
7220   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7221   # <limits.h> exists even on freestanding compilers.
7222   # On the NeXT, cc -E runs the code through the compiler's parser,
7223   # not just through cpp. "Syntax error" is here to catch this case.
7224   cat >conftest.$ac_ext <<_ACEOF
7225 /* confdefs.h.  */
7226 _ACEOF
7227 cat confdefs.h >>conftest.$ac_ext
7228 cat >>conftest.$ac_ext <<_ACEOF
7229 /* end confdefs.h.  */
7230 #ifdef __STDC__
7231 # include <limits.h>
7232 #else
7233 # include <assert.h>
7234 #endif
7235                      Syntax error
7236 _ACEOF
7237 if { (ac_try="$ac_cpp conftest.$ac_ext"
7238 case "(($ac_try" in
7239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7240   *) ac_try_echo=$ac_try;;
7241 esac
7242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7243   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7244   ac_status=$?
7245   grep -v '^ *+' conftest.er1 >conftest.err
7246   rm -f conftest.er1
7247   cat conftest.err >&5
7248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7249   (exit $ac_status); } >/dev/null && {
7250          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7251          test ! -s conftest.err
7252        }; then
7253   :
7254 else
7255   echo "$as_me: failed program was:" >&5
7256 sed 's/^/| /' conftest.$ac_ext >&5
7257
7258   # Broken: fails on valid input.
7259 continue
7260 fi
7261
7262 rm -f conftest.err conftest.$ac_ext
7263
7264   # OK, works on sane cases.  Now check whether nonexistent headers
7265   # can be detected and how.
7266   cat >conftest.$ac_ext <<_ACEOF
7267 /* confdefs.h.  */
7268 _ACEOF
7269 cat confdefs.h >>conftest.$ac_ext
7270 cat >>conftest.$ac_ext <<_ACEOF
7271 /* end confdefs.h.  */
7272 #include <ac_nonexistent.h>
7273 _ACEOF
7274 if { (ac_try="$ac_cpp conftest.$ac_ext"
7275 case "(($ac_try" in
7276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7277   *) ac_try_echo=$ac_try;;
7278 esac
7279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7280   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7281   ac_status=$?
7282   grep -v '^ *+' conftest.er1 >conftest.err
7283   rm -f conftest.er1
7284   cat conftest.err >&5
7285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7286   (exit $ac_status); } >/dev/null && {
7287          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7288          test ! -s conftest.err
7289        }; then
7290   # Broken: success on invalid input.
7291 continue
7292 else
7293   echo "$as_me: failed program was:" >&5
7294 sed 's/^/| /' conftest.$ac_ext >&5
7295
7296   # Passes both tests.
7297 ac_preproc_ok=:
7298 break
7299 fi
7300
7301 rm -f conftest.err conftest.$ac_ext
7302
7303 done
7304 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7305 rm -f conftest.err conftest.$ac_ext
7306 if $ac_preproc_ok; then
7307   break
7308 fi
7309
7310     done
7311     ac_cv_prog_CXXCPP=$CXXCPP
7312
7313 fi
7314   CXXCPP=$ac_cv_prog_CXXCPP
7315 else
7316   ac_cv_prog_CXXCPP=$CXXCPP
7317 fi
7318 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
7319 echo "${ECHO_T}$CXXCPP" >&6; }
7320 ac_preproc_ok=false
7321 for ac_cxx_preproc_warn_flag in '' yes
7322 do
7323   # Use a header file that comes with gcc, so configuring glibc
7324   # with a fresh cross-compiler works.
7325   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7326   # <limits.h> exists even on freestanding compilers.
7327   # On the NeXT, cc -E runs the code through the compiler's parser,
7328   # not just through cpp. "Syntax error" is here to catch this case.
7329   cat >conftest.$ac_ext <<_ACEOF
7330 /* confdefs.h.  */
7331 _ACEOF
7332 cat confdefs.h >>conftest.$ac_ext
7333 cat >>conftest.$ac_ext <<_ACEOF
7334 /* end confdefs.h.  */
7335 #ifdef __STDC__
7336 # include <limits.h>
7337 #else
7338 # include <assert.h>
7339 #endif
7340                      Syntax error
7341 _ACEOF
7342 if { (ac_try="$ac_cpp conftest.$ac_ext"
7343 case "(($ac_try" in
7344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7345   *) ac_try_echo=$ac_try;;
7346 esac
7347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7348   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7349   ac_status=$?
7350   grep -v '^ *+' conftest.er1 >conftest.err
7351   rm -f conftest.er1
7352   cat conftest.err >&5
7353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7354   (exit $ac_status); } >/dev/null && {
7355          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7356          test ! -s conftest.err
7357        }; then
7358   :
7359 else
7360   echo "$as_me: failed program was:" >&5
7361 sed 's/^/| /' conftest.$ac_ext >&5
7362
7363   # Broken: fails on valid input.
7364 continue
7365 fi
7366
7367 rm -f conftest.err conftest.$ac_ext
7368
7369   # OK, works on sane cases.  Now check whether nonexistent headers
7370   # can be detected and how.
7371   cat >conftest.$ac_ext <<_ACEOF
7372 /* confdefs.h.  */
7373 _ACEOF
7374 cat confdefs.h >>conftest.$ac_ext
7375 cat >>conftest.$ac_ext <<_ACEOF
7376 /* end confdefs.h.  */
7377 #include <ac_nonexistent.h>
7378 _ACEOF
7379 if { (ac_try="$ac_cpp conftest.$ac_ext"
7380 case "(($ac_try" in
7381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7382   *) ac_try_echo=$ac_try;;
7383 esac
7384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7385   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7386   ac_status=$?
7387   grep -v '^ *+' conftest.er1 >conftest.err
7388   rm -f conftest.er1
7389   cat conftest.err >&5
7390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7391   (exit $ac_status); } >/dev/null && {
7392          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7393          test ! -s conftest.err
7394        }; then
7395   # Broken: success on invalid input.
7396 continue
7397 else
7398   echo "$as_me: failed program was:" >&5
7399 sed 's/^/| /' conftest.$ac_ext >&5
7400
7401   # Passes both tests.
7402 ac_preproc_ok=:
7403 break
7404 fi
7405
7406 rm -f conftest.err conftest.$ac_ext
7407
7408 done
7409 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7410 rm -f conftest.err conftest.$ac_ext
7411 if $ac_preproc_ok; then
7412   :
7413 else
7414   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7415 See \`config.log' for more details." >&5
7416 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7417 See \`config.log' for more details." >&2;}
7418    { (exit 1); exit 1; }; }
7419 fi
7420
7421 ac_ext=cpp
7422 ac_cpp='$CXXCPP $CPPFLAGS'
7423 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7424 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7425 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7426
7427 fi
7428
7429
7430 ac_ext=f
7431 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7432 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7433 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7434 if test -n "$ac_tool_prefix"; then
7435   for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
7436   do
7437     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7438 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7439 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7440 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7441 if test "${ac_cv_prog_F77+set}" = set; then
7442   echo $ECHO_N "(cached) $ECHO_C" >&6
7443 else
7444   if test -n "$F77"; then
7445   ac_cv_prog_F77="$F77" # Let the user override the test.
7446 else
7447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7448 for as_dir in $PATH
7449 do
7450   IFS=$as_save_IFS
7451   test -z "$as_dir" && as_dir=.
7452   for ac_exec_ext in '' $ac_executable_extensions; do
7453   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7454     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7455     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7456     break 2
7457   fi
7458 done
7459 done
7460 IFS=$as_save_IFS
7461
7462 fi
7463 fi
7464 F77=$ac_cv_prog_F77
7465 if test -n "$F77"; then
7466   { echo "$as_me:$LINENO: result: $F77" >&5
7467 echo "${ECHO_T}$F77" >&6; }
7468 else
7469   { echo "$as_me:$LINENO: result: no" >&5
7470 echo "${ECHO_T}no" >&6; }
7471 fi
7472
7473
7474     test -n "$F77" && break
7475   done
7476 fi
7477 if test -z "$F77"; then
7478   ac_ct_F77=$F77
7479   for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
7480 do
7481   # Extract the first word of "$ac_prog", so it can be a program name with args.
7482 set dummy $ac_prog; ac_word=$2
7483 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7484 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7485 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7486   echo $ECHO_N "(cached) $ECHO_C" >&6
7487 else
7488   if test -n "$ac_ct_F77"; then
7489   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7490 else
7491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7492 for as_dir in $PATH
7493 do
7494   IFS=$as_save_IFS
7495   test -z "$as_dir" && as_dir=.
7496   for ac_exec_ext in '' $ac_executable_extensions; do
7497   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7498     ac_cv_prog_ac_ct_F77="$ac_prog"
7499     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7500     break 2
7501   fi
7502 done
7503 done
7504 IFS=$as_save_IFS
7505
7506 fi
7507 fi
7508 ac_ct_F77=$ac_cv_prog_ac_ct_F77
7509 if test -n "$ac_ct_F77"; then
7510   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7511 echo "${ECHO_T}$ac_ct_F77" >&6; }
7512 else
7513   { echo "$as_me:$LINENO: result: no" >&5
7514 echo "${ECHO_T}no" >&6; }
7515 fi
7516
7517
7518   test -n "$ac_ct_F77" && break
7519 done
7520
7521   if test "x$ac_ct_F77" = x; then
7522     F77=""
7523   else
7524     case $cross_compiling:$ac_tool_warned in
7525 yes:)
7526 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7527 whose name does not start with the host triplet.  If you think this
7528 configuration is useful to you, please write to autoconf@gnu.org." >&5
7529 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7530 whose name does not start with the host triplet.  If you think this
7531 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7532 ac_tool_warned=yes ;;
7533 esac
7534     F77=$ac_ct_F77
7535   fi
7536 fi
7537
7538
7539 # Provide some information about the compiler.
7540 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
7541 ac_compiler=`set X $ac_compile; echo $2`
7542 { (ac_try="$ac_compiler --version >&5"
7543 case "(($ac_try" in
7544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7545   *) ac_try_echo=$ac_try;;
7546 esac
7547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7548   (eval "$ac_compiler --version >&5") 2>&5
7549   ac_status=$?
7550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7551   (exit $ac_status); }
7552 { (ac_try="$ac_compiler -v >&5"
7553 case "(($ac_try" in
7554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7555   *) ac_try_echo=$ac_try;;
7556 esac
7557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7558   (eval "$ac_compiler -v >&5") 2>&5
7559   ac_status=$?
7560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7561   (exit $ac_status); }
7562 { (ac_try="$ac_compiler -V >&5"
7563 case "(($ac_try" in
7564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7565   *) ac_try_echo=$ac_try;;
7566 esac
7567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7568   (eval "$ac_compiler -V >&5") 2>&5
7569   ac_status=$?
7570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7571   (exit $ac_status); }
7572 rm -f a.out
7573
7574 # If we don't use `.F' as extension, the preprocessor is not run on the
7575 # input file.  (Note that this only needs to work for GNU compilers.)
7576 ac_save_ext=$ac_ext
7577 ac_ext=F
7578 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7579 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
7580 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7581   echo $ECHO_N "(cached) $ECHO_C" >&6
7582 else
7583   cat >conftest.$ac_ext <<_ACEOF
7584       program main
7585 #ifndef __GNUC__
7586        choke me
7587 #endif
7588
7589       end
7590 _ACEOF
7591 rm -f conftest.$ac_objext
7592 if { (ac_try="$ac_compile"
7593 case "(($ac_try" in
7594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7595   *) ac_try_echo=$ac_try;;
7596 esac
7597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7598   (eval "$ac_compile") 2>conftest.er1
7599   ac_status=$?
7600   grep -v '^ *+' conftest.er1 >conftest.err
7601   rm -f conftest.er1
7602   cat conftest.err >&5
7603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7604   (exit $ac_status); } && {
7605          test -z "$ac_f77_werror_flag" ||
7606          test ! -s conftest.err
7607        } && test -s conftest.$ac_objext; then
7608   ac_compiler_gnu=yes
7609 else
7610   echo "$as_me: failed program was:" >&5
7611 sed 's/^/| /' conftest.$ac_ext >&5
7612
7613         ac_compiler_gnu=no
7614 fi
7615
7616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7617 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7618
7619 fi
7620 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7621 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
7622 ac_ext=$ac_save_ext
7623 ac_test_FFLAGS=${FFLAGS+set}
7624 ac_save_FFLAGS=$FFLAGS
7625 FFLAGS=
7626 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7627 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
7628 if test "${ac_cv_prog_f77_g+set}" = set; then
7629   echo $ECHO_N "(cached) $ECHO_C" >&6
7630 else
7631   FFLAGS=-g
7632 cat >conftest.$ac_ext <<_ACEOF
7633       program main
7634
7635       end
7636 _ACEOF
7637 rm -f conftest.$ac_objext
7638 if { (ac_try="$ac_compile"
7639 case "(($ac_try" in
7640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7641   *) ac_try_echo=$ac_try;;
7642 esac
7643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7644   (eval "$ac_compile") 2>conftest.er1
7645   ac_status=$?
7646   grep -v '^ *+' conftest.er1 >conftest.err
7647   rm -f conftest.er1
7648   cat conftest.err >&5
7649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7650   (exit $ac_status); } && {
7651          test -z "$ac_f77_werror_flag" ||
7652          test ! -s conftest.err
7653        } && test -s conftest.$ac_objext; then
7654   ac_cv_prog_f77_g=yes
7655 else
7656   echo "$as_me: failed program was:" >&5
7657 sed 's/^/| /' conftest.$ac_ext >&5
7658
7659         ac_cv_prog_f77_g=no
7660 fi
7661
7662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7663
7664 fi
7665 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7666 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
7667 if test "$ac_test_FFLAGS" = set; then
7668   FFLAGS=$ac_save_FFLAGS
7669 elif test $ac_cv_prog_f77_g = yes; then
7670   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7671     FFLAGS="-g -O2"
7672   else
7673     FFLAGS="-g"
7674   fi
7675 else
7676   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7677     FFLAGS="-O2"
7678   else
7679     FFLAGS=
7680   fi
7681 fi
7682
7683 G77=`test $ac_compiler_gnu = yes && echo yes`
7684 ac_ext=c
7685 ac_cpp='$CPP $CPPFLAGS'
7686 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7687 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7688 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7689
7690
7691
7692 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7693
7694 # find the maximum length of command line arguments
7695 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7696 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
7697 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7698   echo $ECHO_N "(cached) $ECHO_C" >&6
7699 else
7700     i=0
7701   teststring="ABCD"
7702
7703   case $build_os in
7704   msdosdjgpp*)
7705     # On DJGPP, this test can blow up pretty badly due to problems in libc
7706     # (any single argument exceeding 2000 bytes causes a buffer overrun
7707     # during glob expansion).  Even if it were fixed, the result of this
7708     # check would be larger than it should be.
7709     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7710     ;;
7711
7712   gnu*)
7713     # Under GNU Hurd, this test is not required because there is
7714     # no limit to the length of command line arguments.
7715     # Libtool will interpret -1 as no limit whatsoever
7716     lt_cv_sys_max_cmd_len=-1;
7717     ;;
7718
7719   cygwin* | mingw*)
7720     # On Win9x/ME, this test blows up -- it succeeds, but takes
7721     # about 5 minutes as the teststring grows exponentially.
7722     # Worse, since 9x/ME are not pre-emptively multitasking,
7723     # you end up with a "frozen" computer, even though with patience
7724     # the test eventually succeeds (with a max line length of 256k).
7725     # Instead, let's just punt: use the minimum linelength reported by
7726     # all of the supported platforms: 8192 (on NT/2K/XP).
7727     lt_cv_sys_max_cmd_len=8192;
7728     ;;
7729
7730   amigaos*)
7731     # On AmigaOS with pdksh, this test takes hours, literally.
7732     # So we just punt and use a minimum line length of 8192.
7733     lt_cv_sys_max_cmd_len=8192;
7734     ;;
7735
7736   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7737     # This has been around since 386BSD, at least.  Likely further.
7738     if test -x /sbin/sysctl; then
7739       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7740     elif test -x /usr/sbin/sysctl; then
7741       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7742     else
7743       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7744     fi
7745     # And add a safety zone
7746     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7747     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7748     ;;
7749   osf*)
7750     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7751     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7752     # nice to cause kernel panics so lets avoid the loop below.
7753     # First set a reasonable default.
7754     lt_cv_sys_max_cmd_len=16384
7755     #
7756     if test -x /sbin/sysconfig; then
7757       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7758         *1*) lt_cv_sys_max_cmd_len=-1 ;;
7759       esac
7760     fi
7761     ;;
7762   *)
7763     # If test is not a shell built-in, we'll probably end up computing a
7764     # maximum length that is only half of the actual maximum length, but
7765     # we can't tell.
7766     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7767     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7768                = "XX$teststring") >/dev/null 2>&1 &&
7769             new_result=`expr "X$teststring" : ".*" 2>&1` &&
7770             lt_cv_sys_max_cmd_len=$new_result &&
7771             test $i != 17 # 1/2 MB should be enough
7772     do
7773       i=`expr $i + 1`
7774       teststring=$teststring$teststring
7775     done
7776     teststring=
7777     # Add a significant safety factor because C++ compilers can tack on massive
7778     # amounts of additional arguments before passing them to the linker.
7779     # It appears as though 1/2 is a usable value.
7780     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7781     ;;
7782   esac
7783
7784 fi
7785
7786 if test -n $lt_cv_sys_max_cmd_len ; then
7787   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7788 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
7789 else
7790   { echo "$as_me:$LINENO: result: none" >&5
7791 echo "${ECHO_T}none" >&6; }
7792 fi
7793
7794
7795
7796
7797 # Check for command to grab the raw symbol name followed by C symbol from nm.
7798 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7799 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
7800 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7801   echo $ECHO_N "(cached) $ECHO_C" >&6
7802 else
7803
7804 # These are sane defaults that work on at least a few old systems.
7805 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7806
7807 # Character class describing NM global symbol codes.
7808 symcode='[BCDEGRST]'
7809
7810 # Regexp to match symbols that can be accessed directly from C.
7811 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7812
7813 # Transform an extracted symbol line into a proper C declaration
7814 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7815
7816 # Transform an extracted symbol line into symbol name and symbol address
7817 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
7818
7819 # Define system-specific variables.
7820 case $host_os in
7821 aix*)
7822   symcode='[BCDT]'
7823   ;;
7824 cygwin* | mingw* | pw32*)
7825   symcode='[ABCDGISTW]'
7826   ;;
7827 hpux*) # Its linker distinguishes data from code symbols
7828   if test "$host_cpu" = ia64; then
7829     symcode='[ABCDEGRST]'
7830   fi
7831   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7832   lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
7833   ;;
7834 linux*)
7835   if test "$host_cpu" = ia64; then
7836     symcode='[ABCDGIRSTW]'
7837     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7838     lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
7839   fi
7840   ;;
7841 irix* | nonstopux*)
7842   symcode='[BCDEGRST]'
7843   ;;
7844 osf*)
7845   symcode='[BCDEGQRST]'
7846   ;;
7847 solaris* | sysv5*)
7848   symcode='[BDRT]'
7849   ;;
7850 sysv4)
7851   symcode='[DFNSTU]'
7852   ;;
7853 esac
7854
7855 # Handle CRLF in mingw tool chain
7856 opt_cr=
7857 case $build_os in
7858 mingw*)
7859   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7860   ;;
7861 esac
7862
7863 # If we're using GNU nm, then use its standard symbol codes.
7864 case `$NM -V 2>&1` in
7865 *GNU* | *'with BFD'*)
7866   symcode='[ABCDGIRSTW]' ;;
7867 esac
7868
7869 # Try without a prefix undercore, then with it.
7870 for ac_symprfx in "" "_"; do
7871
7872   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7873   symxfrm="\\1 $ac_symprfx\\2 \\2"
7874
7875   # Write the raw and C identifiers.
7876   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7877
7878   # Check to see that the pipe works correctly.
7879   pipe_works=no
7880
7881   rm -f conftest*
7882   cat > conftest.$ac_ext <<EOF
7883 #ifdef __cplusplus
7884 extern "C" {
7885 #endif
7886 char nm_test_var;
7887 void nm_test_func(){}
7888 #ifdef __cplusplus
7889 }
7890 #endif
7891 int main(){nm_test_var='a';nm_test_func();return(0);}
7892 EOF
7893
7894   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7895   (eval $ac_compile) 2>&5
7896   ac_status=$?
7897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7898   (exit $ac_status); }; then
7899     # Now try to grab the symbols.
7900     nlist=conftest.nm
7901     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7902   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7903   ac_status=$?
7904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7905   (exit $ac_status); } && test -s "$nlist"; then
7906       # Try sorting and uniquifying the output.
7907       if sort "$nlist" | uniq > "$nlist"T; then
7908         mv -f "$nlist"T "$nlist"
7909       else
7910         rm -f "$nlist"T
7911       fi
7912
7913       # Make sure that we snagged all the symbols we need.
7914       if grep ' nm_test_var$' "$nlist" >/dev/null; then
7915         if grep ' nm_test_func$' "$nlist" >/dev/null; then
7916           cat <<EOF > conftest.$ac_ext
7917 #ifdef __cplusplus
7918 extern "C" {
7919 #endif
7920
7921 EOF
7922           # Now generate the symbol file.
7923           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7924
7925           cat <<EOF >> conftest.$ac_ext
7926 #if defined (__STDC__) && __STDC__
7927 # define lt_ptr_t void *
7928 #else
7929 # define lt_ptr_t char *
7930 # define const
7931 #endif
7932
7933 /* The mapping between symbol names and symbols. */
7934 const struct {
7935   const char *name;
7936   lt_ptr_t address;
7937 }
7938 lt_preloaded_symbols[] =
7939 {
7940 EOF
7941           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7942           cat <<\EOF >> conftest.$ac_ext
7943   {0, (lt_ptr_t) 0}
7944 };
7945
7946 #ifdef __cplusplus
7947 }
7948 #endif
7949 EOF
7950           # Now try linking the two files.
7951           mv conftest.$ac_objext conftstm.$ac_objext
7952           lt_save_LIBS="$LIBS"
7953           lt_save_CFLAGS="$CFLAGS"
7954           LIBS="conftstm.$ac_objext"
7955           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7956           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7957   (eval $ac_link) 2>&5
7958   ac_status=$?
7959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7960   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7961             pipe_works=yes
7962           fi
7963           LIBS="$lt_save_LIBS"
7964           CFLAGS="$lt_save_CFLAGS"
7965         else
7966           echo "cannot find nm_test_func in $nlist" >&5
7967         fi
7968       else
7969         echo "cannot find nm_test_var in $nlist" >&5
7970       fi
7971     else
7972       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7973     fi
7974   else
7975     echo "$progname: failed program was:" >&5
7976     cat conftest.$ac_ext >&5
7977   fi
7978   rm -f conftest* conftst*
7979
7980   # Do not use the global_symbol_pipe unless it works.
7981   if test "$pipe_works" = yes; then
7982     break
7983   else
7984     lt_cv_sys_global_symbol_pipe=
7985   fi
7986 done
7987
7988 fi
7989
7990 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7991   lt_cv_sys_global_symbol_to_cdecl=
7992 fi
7993 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7994   { echo "$as_me:$LINENO: result: failed" >&5
7995 echo "${ECHO_T}failed" >&6; }
7996 else
7997   { echo "$as_me:$LINENO: result: ok" >&5
7998 echo "${ECHO_T}ok" >&6; }
7999 fi
8000
8001 { echo "$as_me:$LINENO: checking for objdir" >&5
8002 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
8003 if test "${lt_cv_objdir+set}" = set; then
8004   echo $ECHO_N "(cached) $ECHO_C" >&6
8005 else
8006   rm -f .libs 2>/dev/null
8007 mkdir .libs 2>/dev/null
8008 if test -d .libs; then
8009   lt_cv_objdir=.libs
8010 else
8011   # MS-DOS does not allow filenames that begin with a dot.
8012   lt_cv_objdir=_libs
8013 fi
8014 rmdir .libs 2>/dev/null
8015 fi
8016 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8017 echo "${ECHO_T}$lt_cv_objdir" >&6; }
8018 objdir=$lt_cv_objdir
8019
8020
8021
8022
8023
8024 case $host_os in
8025 aix3*)
8026   # AIX sometimes has problems with the GCC collect2 program.  For some
8027   # reason, if we set the COLLECT_NAMES environment variable, the problems
8028   # vanish in a puff of smoke.
8029   if test "X${COLLECT_NAMES+set}" != Xset; then
8030     COLLECT_NAMES=
8031     export COLLECT_NAMES
8032   fi
8033   ;;
8034 esac
8035
8036 # Sed substitution that helps us do robust quoting.  It backslashifies
8037 # metacharacters that are still active within double-quoted strings.
8038 Xsed='sed -e 1s/^X//'
8039 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
8040
8041 # Same as above, but do not quote variable references.
8042 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
8043
8044 # Sed substitution to delay expansion of an escaped shell variable in a
8045 # double_quote_subst'ed string.
8046 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8047
8048 # Sed substitution to avoid accidental globbing in evaled expressions
8049 no_glob_subst='s/\*/\\\*/g'
8050
8051 # Constants:
8052 rm="rm -f"
8053
8054 # Global variables:
8055 default_ofile=libtool
8056 can_build_shared=yes
8057
8058 # All known linkers require a `.a' archive for static linking (except MSVC,
8059 # which needs '.lib').
8060 libext=a
8061 ltmain="$ac_aux_dir/ltmain.sh"
8062 ofile="$default_ofile"
8063 with_gnu_ld="$lt_cv_prog_gnu_ld"
8064
8065 if test -n "$ac_tool_prefix"; then
8066   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8067 set dummy ${ac_tool_prefix}ar; ac_word=$2
8068 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8070 if test "${ac_cv_prog_AR+set}" = set; then
8071   echo $ECHO_N "(cached) $ECHO_C" >&6
8072 else
8073   if test -n "$AR"; then
8074   ac_cv_prog_AR="$AR" # Let the user override the test.
8075 else
8076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8077 for as_dir in $PATH
8078 do
8079   IFS=$as_save_IFS
8080   test -z "$as_dir" && as_dir=.
8081   for ac_exec_ext in '' $ac_executable_extensions; do
8082   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8083     ac_cv_prog_AR="${ac_tool_prefix}ar"
8084     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8085     break 2
8086   fi
8087 done
8088 done
8089 IFS=$as_save_IFS
8090
8091 fi
8092 fi
8093 AR=$ac_cv_prog_AR
8094 if test -n "$AR"; then
8095   { echo "$as_me:$LINENO: result: $AR" >&5
8096 echo "${ECHO_T}$AR" >&6; }
8097 else
8098   { echo "$as_me:$LINENO: result: no" >&5
8099 echo "${ECHO_T}no" >&6; }
8100 fi
8101
8102
8103 fi
8104 if test -z "$ac_cv_prog_AR"; then
8105   ac_ct_AR=$AR
8106   # Extract the first word of "ar", so it can be a program name with args.
8107 set dummy ar; ac_word=$2
8108 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8109 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8110 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8111   echo $ECHO_N "(cached) $ECHO_C" >&6
8112 else
8113   if test -n "$ac_ct_AR"; then
8114   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8115 else
8116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8117 for as_dir in $PATH
8118 do
8119   IFS=$as_save_IFS
8120   test -z "$as_dir" && as_dir=.
8121   for ac_exec_ext in '' $ac_executable_extensions; do
8122   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8123     ac_cv_prog_ac_ct_AR="ar"
8124     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8125     break 2
8126   fi
8127 done
8128 done
8129 IFS=$as_save_IFS
8130
8131 fi
8132 fi
8133 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8134 if test -n "$ac_ct_AR"; then
8135   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8136 echo "${ECHO_T}$ac_ct_AR" >&6; }
8137 else
8138   { echo "$as_me:$LINENO: result: no" >&5
8139 echo "${ECHO_T}no" >&6; }
8140 fi
8141
8142   if test "x$ac_ct_AR" = x; then
8143     AR="false"
8144   else
8145     case $cross_compiling:$ac_tool_warned in
8146 yes:)
8147 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8148 whose name does not start with the host triplet.  If you think this
8149 configuration is useful to you, please write to autoconf@gnu.org." >&5
8150 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8151 whose name does not start with the host triplet.  If you think this
8152 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8153 ac_tool_warned=yes ;;
8154 esac
8155     AR=$ac_ct_AR
8156   fi
8157 else
8158   AR="$ac_cv_prog_AR"
8159 fi
8160
8161 if test -n "$ac_tool_prefix"; then
8162   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8163 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8164 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8165 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8166 if test "${ac_cv_prog_RANLIB+set}" = set; then
8167   echo $ECHO_N "(cached) $ECHO_C" >&6
8168 else
8169   if test -n "$RANLIB"; then
8170   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8171 else
8172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8173 for as_dir in $PATH
8174 do
8175   IFS=$as_save_IFS
8176   test -z "$as_dir" && as_dir=.
8177   for ac_exec_ext in '' $ac_executable_extensions; do
8178   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8179     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8180     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8181     break 2
8182   fi
8183 done
8184 done
8185 IFS=$as_save_IFS
8186
8187 fi
8188 fi
8189 RANLIB=$ac_cv_prog_RANLIB
8190 if test -n "$RANLIB"; then
8191   { echo "$as_me:$LINENO: result: $RANLIB" >&5
8192 echo "${ECHO_T}$RANLIB" >&6; }
8193 else
8194   { echo "$as_me:$LINENO: result: no" >&5
8195 echo "${ECHO_T}no" >&6; }
8196 fi
8197
8198
8199 fi
8200 if test -z "$ac_cv_prog_RANLIB"; then
8201   ac_ct_RANLIB=$RANLIB
8202   # Extract the first word of "ranlib", so it can be a program name with args.
8203 set dummy ranlib; ac_word=$2
8204 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8205 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8206 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8207   echo $ECHO_N "(cached) $ECHO_C" >&6
8208 else
8209   if test -n "$ac_ct_RANLIB"; then
8210   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8211 else
8212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8213 for as_dir in $PATH
8214 do
8215   IFS=$as_save_IFS
8216   test -z "$as_dir" && as_dir=.
8217   for ac_exec_ext in '' $ac_executable_extensions; do
8218   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8219     ac_cv_prog_ac_ct_RANLIB="ranlib"
8220     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8221     break 2
8222   fi
8223 done
8224 done
8225 IFS=$as_save_IFS
8226
8227 fi
8228 fi
8229 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8230 if test -n "$ac_ct_RANLIB"; then
8231   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8232 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
8233 else
8234   { echo "$as_me:$LINENO: result: no" >&5
8235 echo "${ECHO_T}no" >&6; }
8236 fi
8237
8238   if test "x$ac_ct_RANLIB" = x; then
8239     RANLIB=":"
8240   else
8241     case $cross_compiling:$ac_tool_warned in
8242 yes:)
8243 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8244 whose name does not start with the host triplet.  If you think this
8245 configuration is useful to you, please write to autoconf@gnu.org." >&5
8246 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8247 whose name does not start with the host triplet.  If you think this
8248 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8249 ac_tool_warned=yes ;;
8250 esac
8251     RANLIB=$ac_ct_RANLIB
8252   fi
8253 else
8254   RANLIB="$ac_cv_prog_RANLIB"
8255 fi
8256
8257 if test -n "$ac_tool_prefix"; then
8258   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8259 set dummy ${ac_tool_prefix}strip; ac_word=$2
8260 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8262 if test "${ac_cv_prog_STRIP+set}" = set; then
8263   echo $ECHO_N "(cached) $ECHO_C" >&6
8264 else
8265   if test -n "$STRIP"; then
8266   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8267 else
8268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8269 for as_dir in $PATH
8270 do
8271   IFS=$as_save_IFS
8272   test -z "$as_dir" && as_dir=.
8273   for ac_exec_ext in '' $ac_executable_extensions; do
8274   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8275     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8276     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8277     break 2
8278   fi
8279 done
8280 done
8281 IFS=$as_save_IFS
8282
8283 fi
8284 fi
8285 STRIP=$ac_cv_prog_STRIP
8286 if test -n "$STRIP"; then
8287   { echo "$as_me:$LINENO: result: $STRIP" >&5
8288 echo "${ECHO_T}$STRIP" >&6; }
8289 else
8290   { echo "$as_me:$LINENO: result: no" >&5
8291 echo "${ECHO_T}no" >&6; }
8292 fi
8293
8294
8295 fi
8296 if test -z "$ac_cv_prog_STRIP"; then
8297   ac_ct_STRIP=$STRIP
8298   # Extract the first word of "strip", so it can be a program name with args.
8299 set dummy strip; ac_word=$2
8300 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8302 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8303   echo $ECHO_N "(cached) $ECHO_C" >&6
8304 else
8305   if test -n "$ac_ct_STRIP"; then
8306   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8307 else
8308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8309 for as_dir in $PATH
8310 do
8311   IFS=$as_save_IFS
8312   test -z "$as_dir" && as_dir=.
8313   for ac_exec_ext in '' $ac_executable_extensions; do
8314   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8315     ac_cv_prog_ac_ct_STRIP="strip"
8316     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8317     break 2
8318   fi
8319 done
8320 done
8321 IFS=$as_save_IFS
8322
8323 fi
8324 fi
8325 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8326 if test -n "$ac_ct_STRIP"; then
8327   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8328 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
8329 else
8330   { echo "$as_me:$LINENO: result: no" >&5
8331 echo "${ECHO_T}no" >&6; }
8332 fi
8333
8334   if test "x$ac_ct_STRIP" = x; then
8335     STRIP=":"
8336   else
8337     case $cross_compiling:$ac_tool_warned in
8338 yes:)
8339 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8340 whose name does not start with the host triplet.  If you think this
8341 configuration is useful to you, please write to autoconf@gnu.org." >&5
8342 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8343 whose name does not start with the host triplet.  If you think this
8344 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8345 ac_tool_warned=yes ;;
8346 esac
8347     STRIP=$ac_ct_STRIP
8348   fi
8349 else
8350   STRIP="$ac_cv_prog_STRIP"
8351 fi
8352
8353
8354 old_CC="$CC"
8355 old_CFLAGS="$CFLAGS"
8356
8357 # Set sane defaults for various variables
8358 test -z "$AR" && AR=ar
8359 test -z "$AR_FLAGS" && AR_FLAGS=cru
8360 test -z "$AS" && AS=as
8361 test -z "$CC" && CC=cc
8362 test -z "$LTCC" && LTCC=$CC
8363 test -z "$DLLTOOL" && DLLTOOL=dlltool
8364 test -z "$LD" && LD=ld
8365 test -z "$LN_S" && LN_S="ln -s"
8366 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8367 test -z "$NM" && NM=nm
8368 test -z "$SED" && SED=sed
8369 test -z "$OBJDUMP" && OBJDUMP=objdump
8370 test -z "$RANLIB" && RANLIB=:
8371 test -z "$STRIP" && STRIP=:
8372 test -z "$ac_objext" && ac_objext=o
8373
8374 # Determine commands to create old-style static archives.
8375 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8376 old_postinstall_cmds='chmod 644 $oldlib'
8377 old_postuninstall_cmds=
8378
8379 if test -n "$RANLIB"; then
8380   case $host_os in
8381   openbsd*)
8382     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
8383     ;;
8384   *)
8385     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
8386     ;;
8387   esac
8388   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8389 fi
8390
8391 for cc_temp in $compiler""; do
8392   case $cc_temp in
8393     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8394     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8395     \-*) ;;
8396     *) break;;
8397   esac
8398 done
8399 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8400
8401
8402 # Only perform the check for file, if the check method requires it
8403 case $deplibs_check_method in
8404 file_magic*)
8405   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8406     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8407 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
8408 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8409   echo $ECHO_N "(cached) $ECHO_C" >&6
8410 else
8411   case $MAGIC_CMD in
8412 [\\/*] |  ?:[\\/]*)
8413   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8414   ;;
8415 *)
8416   lt_save_MAGIC_CMD="$MAGIC_CMD"
8417   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8418   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8419   for ac_dir in $ac_dummy; do
8420     IFS="$lt_save_ifs"
8421     test -z "$ac_dir" && ac_dir=.
8422     if test -f $ac_dir/${ac_tool_prefix}file; then
8423       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8424       if test -n "$file_magic_test_file"; then
8425         case $deplibs_check_method in
8426         "file_magic "*)
8427           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8428           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8429           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8430             $EGREP "$file_magic_regex" > /dev/null; then
8431             :
8432           else
8433             cat <<EOF 1>&2
8434
8435 *** Warning: the command libtool uses to detect shared libraries,
8436 *** $file_magic_cmd, produces output that libtool cannot recognize.
8437 *** The result is that libtool may fail to recognize shared libraries
8438 *** as such.  This will affect the creation of libtool libraries that
8439 *** depend on shared libraries, but programs linked with such libtool
8440 *** libraries will work regardless of this problem.  Nevertheless, you
8441 *** may want to report the problem to your system manager and/or to
8442 *** bug-libtool@gnu.org
8443
8444 EOF
8445           fi ;;
8446         esac
8447       fi
8448       break
8449     fi
8450   done
8451   IFS="$lt_save_ifs"
8452   MAGIC_CMD="$lt_save_MAGIC_CMD"
8453   ;;
8454 esac
8455 fi
8456
8457 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8458 if test -n "$MAGIC_CMD"; then
8459   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8460 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8461 else
8462   { echo "$as_me:$LINENO: result: no" >&5
8463 echo "${ECHO_T}no" >&6; }
8464 fi
8465
8466 if test -z "$lt_cv_path_MAGIC_CMD"; then
8467   if test -n "$ac_tool_prefix"; then
8468     { echo "$as_me:$LINENO: checking for file" >&5
8469 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
8470 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8471   echo $ECHO_N "(cached) $ECHO_C" >&6
8472 else
8473   case $MAGIC_CMD in
8474 [\\/*] |  ?:[\\/]*)
8475   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8476   ;;
8477 *)
8478   lt_save_MAGIC_CMD="$MAGIC_CMD"
8479   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8480   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8481   for ac_dir in $ac_dummy; do
8482     IFS="$lt_save_ifs"
8483     test -z "$ac_dir" && ac_dir=.
8484     if test -f $ac_dir/file; then
8485       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8486       if test -n "$file_magic_test_file"; then
8487         case $deplibs_check_method in
8488         "file_magic "*)
8489           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8490           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8491           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8492             $EGREP "$file_magic_regex" > /dev/null; then
8493             :
8494           else
8495             cat <<EOF 1>&2
8496
8497 *** Warning: the command libtool uses to detect shared libraries,
8498 *** $file_magic_cmd, produces output that libtool cannot recognize.
8499 *** The result is that libtool may fail to recognize shared libraries
8500 *** as such.  This will affect the creation of libtool libraries that
8501 *** depend on shared libraries, but programs linked with such libtool
8502 *** libraries will work regardless of this problem.  Nevertheless, you
8503 *** may want to report the problem to your system manager and/or to
8504 *** bug-libtool@gnu.org
8505
8506 EOF
8507           fi ;;
8508         esac
8509       fi
8510       break
8511     fi
8512   done
8513   IFS="$lt_save_ifs"
8514   MAGIC_CMD="$lt_save_MAGIC_CMD"
8515   ;;
8516 esac
8517 fi
8518
8519 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8520 if test -n "$MAGIC_CMD"; then
8521   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8522 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8523 else
8524   { echo "$as_me:$LINENO: result: no" >&5
8525 echo "${ECHO_T}no" >&6; }
8526 fi
8527
8528   else
8529     MAGIC_CMD=:
8530   fi
8531 fi
8532
8533   fi
8534   ;;
8535 esac
8536
8537 enable_dlopen=no
8538 enable_win32_dll=no
8539
8540 # Check whether --enable-libtool-lock was given.
8541 if test "${enable_libtool_lock+set}" = set; then
8542   enableval=$enable_libtool_lock;
8543 fi
8544
8545 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8546
8547
8548 # Check whether --with-pic was given.
8549 if test "${with_pic+set}" = set; then
8550   withval=$with_pic; pic_mode="$withval"
8551 else
8552   pic_mode=default
8553 fi
8554
8555 test -z "$pic_mode" && pic_mode=default
8556
8557 # Use C for the default configuration in the libtool script
8558 tagname=
8559 lt_save_CC="$CC"
8560 ac_ext=c
8561 ac_cpp='$CPP $CPPFLAGS'
8562 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8563 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8564 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8565
8566
8567 # Source file extension for C test sources.
8568 ac_ext=c
8569
8570 # Object file extension for compiled C test sources.
8571 objext=o
8572 objext=$objext
8573
8574 # Code to be used in simple compile tests
8575 lt_simple_compile_test_code="int some_variable = 0;\n"
8576
8577 # Code to be used in simple link tests
8578 lt_simple_link_test_code='int main(){return(0);}\n'
8579
8580
8581 # If no C compiler was specified, use CC.
8582 LTCC=${LTCC-"$CC"}
8583
8584 # Allow CC to be a program name with arguments.
8585 compiler=$CC
8586
8587
8588 # save warnings/boilerplate of simple test code
8589 ac_outfile=conftest.$ac_objext
8590 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8591 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
8592 _lt_compiler_boilerplate=`cat conftest.err`
8593 $rm conftest*
8594
8595 ac_outfile=conftest.$ac_objext
8596 printf "$lt_simple_link_test_code" >conftest.$ac_ext
8597 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
8598 _lt_linker_boilerplate=`cat conftest.err`
8599 $rm conftest*
8600
8601
8602 #
8603 # Check for any special shared library compilation flags.
8604 #
8605 lt_prog_cc_shlib=
8606 if test "$GCC" = no; then
8607   case $host_os in
8608   sco3.2v5*)
8609     lt_prog_cc_shlib='-belf'
8610     ;;
8611   esac
8612 fi
8613 if test -n "$lt_prog_cc_shlib"; then
8614   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
8615 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
8616   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
8617   else
8618     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
8619 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
8620     lt_cv_prog_cc_can_build_shared=no
8621   fi
8622 fi
8623
8624
8625 #
8626 # Check to make sure the static flag actually works.
8627 #
8628 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
8629 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6; }
8630 if test "${lt_prog_compiler_static_works+set}" = set; then
8631   echo $ECHO_N "(cached) $ECHO_C" >&6
8632 else
8633   lt_prog_compiler_static_works=no
8634    save_LDFLAGS="$LDFLAGS"
8635    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
8636    printf "$lt_simple_link_test_code" > conftest.$ac_ext
8637    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8638      # The linker can only warn and ignore the option if not recognized
8639      # So say no if there are warnings
8640      if test -s conftest.err; then
8641        # Append any errors to the config.log.
8642        cat conftest.err 1>&5
8643        $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
8644        $SED '/^$/d' conftest.err >conftest.er2
8645        if diff conftest.exp conftest.er2 >/dev/null; then
8646          lt_prog_compiler_static_works=yes
8647        fi
8648      else
8649        lt_prog_compiler_static_works=yes
8650      fi
8651    fi
8652    $rm conftest*
8653    LDFLAGS="$save_LDFLAGS"
8654
8655 fi
8656 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8657 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
8658
8659 if test x"$lt_prog_compiler_static_works" = xyes; then
8660     :
8661 else
8662     lt_prog_compiler_static=
8663 fi
8664
8665
8666
8667
8668 lt_prog_compiler_no_builtin_flag=
8669
8670 if test "$GCC" = yes; then
8671   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8672
8673
8674 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8675 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
8676 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8677   echo $ECHO_N "(cached) $ECHO_C" >&6
8678 else
8679   lt_cv_prog_compiler_rtti_exceptions=no
8680   ac_outfile=conftest.$ac_objext
8681    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8682    lt_compiler_flag="-fno-rtti -fno-exceptions"
8683    # Insert the option either (1) after the last *FLAGS variable, or
8684    # (2) before a word containing "conftest.", or (3) at the end.
8685    # Note that $ac_compile itself does not contain backslashes and begins
8686    # with a dollar sign (not a hyphen), so the echo should work correctly.
8687    # The option is referenced via a variable to avoid confusing sed.
8688    lt_compile=`echo "$ac_compile" | $SED \
8689    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8690    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8691    -e 's:$: $lt_compiler_flag:'`
8692    (eval echo "\"\$as_me:8692: $lt_compile\"" >&5)
8693    (eval "$lt_compile" 2>conftest.err)
8694    ac_status=$?
8695    cat conftest.err >&5
8696    echo "$as_me:8696: \$? = $ac_status" >&5
8697    if (exit $ac_status) && test -s "$ac_outfile"; then
8698      # The compiler can only warn and ignore the option if not recognized
8699      # So say no if there are warnings other than the usual output.
8700      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
8701      $SED '/^$/d' conftest.err >conftest.er2
8702      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
8703        lt_cv_prog_compiler_rtti_exceptions=yes
8704      fi
8705    fi
8706    $rm conftest*
8707
8708 fi
8709 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8710 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8711
8712 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8713     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8714 else
8715     :
8716 fi
8717
8718 fi
8719
8720 lt_prog_compiler_wl=
8721 lt_prog_compiler_pic=
8722 lt_prog_compiler_static=
8723
8724 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8725 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
8726
8727   if test "$GCC" = yes; then
8728     lt_prog_compiler_wl='-Wl,'
8729     lt_prog_compiler_static='-static'
8730
8731     case $host_os in
8732       aix*)
8733       # All AIX code is PIC.
8734       if test "$host_cpu" = ia64; then
8735         # AIX 5 now supports IA64 processor
8736         lt_prog_compiler_static='-Bstatic'
8737       fi
8738       ;;
8739
8740     amigaos*)
8741       # FIXME: we need at least 68020 code to build shared libraries, but
8742       # adding the `-m68020' flag to GCC prevents building anything better,
8743       # like `-m68040'.
8744       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8745       ;;
8746
8747     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8748       # PIC is the default for these OSes.
8749       ;;
8750
8751     mingw* | pw32* | os2*)
8752       # This hack is so that the source file can tell whether it is being
8753       # built for inclusion in a dll (and should export symbols for example).
8754       lt_prog_compiler_pic='-DDLL_EXPORT'
8755       ;;
8756
8757     darwin* | rhapsody*)
8758       # PIC is the default on this platform
8759       # Common symbols not allowed in MH_DYLIB files
8760       lt_prog_compiler_pic='-fno-common'
8761       ;;
8762
8763     msdosdjgpp*)
8764       # Just because we use GCC doesn't mean we suddenly get shared libraries
8765       # on systems that don't support them.
8766       lt_prog_compiler_can_build_shared=no
8767       enable_shared=no
8768       ;;
8769
8770     sysv4*MP*)
8771       if test -d /usr/nec; then
8772         lt_prog_compiler_pic=-Kconform_pic
8773       fi
8774       ;;
8775
8776     hpux*)
8777       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8778       # not for PA HP-UX.
8779       case $host_cpu in
8780       hppa*64*|ia64*)
8781         # +Z the default
8782         ;;
8783       *)
8784         lt_prog_compiler_pic='-fPIC'
8785         ;;
8786       esac
8787       ;;
8788
8789     *)
8790       lt_prog_compiler_pic='-fPIC'
8791       ;;
8792     esac
8793   else
8794     # PORTME Check for flag to pass linker flags through the system compiler.
8795     case $host_os in
8796     aix*)
8797       lt_prog_compiler_wl='-Wl,'
8798       if test "$host_cpu" = ia64; then
8799         # AIX 5 now supports IA64 processor
8800         lt_prog_compiler_static='-Bstatic'
8801       else
8802         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8803       fi
8804       ;;
8805       darwin*)
8806         # PIC is the default on this platform
8807         # Common symbols not allowed in MH_DYLIB files
8808        case $cc_basename in
8809          xlc*)
8810          lt_prog_compiler_pic='-qnocommon'
8811          lt_prog_compiler_wl='-Wl,'
8812          ;;
8813        esac
8814        ;;
8815
8816     mingw* | pw32* | os2*)
8817       # This hack is so that the source file can tell whether it is being
8818       # built for inclusion in a dll (and should export symbols for example).
8819       lt_prog_compiler_pic='-DDLL_EXPORT'
8820       ;;
8821
8822     hpux9* | hpux10* | hpux11*)
8823       lt_prog_compiler_wl='-Wl,'
8824       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8825       # not for PA HP-UX.
8826       case $host_cpu in
8827       hppa*64*|ia64*)
8828         # +Z the default
8829         ;;
8830       *)
8831         lt_prog_compiler_pic='+Z'
8832         ;;
8833       esac
8834       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8835       lt_prog_compiler_static='${wl}-a ${wl}archive'
8836       ;;
8837
8838     irix5* | irix6* | nonstopux*)
8839       lt_prog_compiler_wl='-Wl,'
8840       # PIC (with -KPIC) is the default.
8841       lt_prog_compiler_static='-non_shared'
8842       ;;
8843
8844     newsos6)
8845       lt_prog_compiler_pic='-KPIC'
8846       lt_prog_compiler_static='-Bstatic'
8847       ;;
8848
8849     linux*)
8850       case $cc_basename in
8851       icc* | ecc*)
8852         lt_prog_compiler_wl='-Wl,'
8853         lt_prog_compiler_pic='-KPIC'
8854         lt_prog_compiler_static='-static'
8855         ;;
8856       pgcc* | pgf77* | pgf90* | pgf95*)
8857         # Portland Group compilers (*not* the Pentium gcc compiler,
8858         # which looks to be a dead project)
8859         lt_prog_compiler_wl='-Wl,'
8860         lt_prog_compiler_pic='-fpic'
8861         lt_prog_compiler_static='-Bstatic'
8862         ;;
8863       ccc*)
8864         lt_prog_compiler_wl='-Wl,'
8865         # All Alpha code is PIC.
8866         lt_prog_compiler_static='-non_shared'
8867         ;;
8868       esac
8869       ;;
8870
8871     osf3* | osf4* | osf5*)
8872       lt_prog_compiler_wl='-Wl,'
8873       # All OSF/1 code is PIC.
8874       lt_prog_compiler_static='-non_shared'
8875       ;;
8876
8877     sco3.2v5*)
8878       lt_prog_compiler_pic='-Kpic'
8879       lt_prog_compiler_static='-dn'
8880       ;;
8881
8882     solaris*)
8883       lt_prog_compiler_pic='-KPIC'
8884       lt_prog_compiler_static='-Bstatic'
8885       case $cc_basename in
8886       f77* | f90* | f95*)
8887         lt_prog_compiler_wl='-Qoption ld ';;
8888       *)
8889         lt_prog_compiler_wl='-Wl,';;
8890       esac
8891       ;;
8892
8893     sunos4*)
8894       lt_prog_compiler_wl='-Qoption ld '
8895       lt_prog_compiler_pic='-PIC'
8896       lt_prog_compiler_static='-Bstatic'
8897       ;;
8898
8899     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8900       lt_prog_compiler_wl='-Wl,'
8901       lt_prog_compiler_pic='-KPIC'
8902       lt_prog_compiler_static='-Bstatic'
8903       ;;
8904
8905     sysv4*MP*)
8906       if test -d /usr/nec ;then
8907         lt_prog_compiler_pic='-Kconform_pic'
8908         lt_prog_compiler_static='-Bstatic'
8909       fi
8910       ;;
8911
8912     unicos*)
8913       lt_prog_compiler_wl='-Wl,'
8914       lt_prog_compiler_can_build_shared=no
8915       ;;
8916
8917     uts4*)
8918       lt_prog_compiler_pic='-pic'
8919       lt_prog_compiler_static='-Bstatic'
8920       ;;
8921
8922     *)
8923       lt_prog_compiler_can_build_shared=no
8924       ;;
8925     esac
8926   fi
8927
8928 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8929 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
8930
8931 #
8932 # Check to make sure the PIC flag actually works.
8933 #
8934 if test -n "$lt_prog_compiler_pic"; then
8935
8936 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8937 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
8938 if test "${lt_prog_compiler_pic_works+set}" = set; then
8939   echo $ECHO_N "(cached) $ECHO_C" >&6
8940 else
8941   lt_prog_compiler_pic_works=no
8942   ac_outfile=conftest.$ac_objext
8943    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8944    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8945    # Insert the option either (1) after the last *FLAGS variable, or
8946    # (2) before a word containing "conftest.", or (3) at the end.
8947    # Note that $ac_compile itself does not contain backslashes and begins
8948    # with a dollar sign (not a hyphen), so the echo should work correctly.
8949    # The option is referenced via a variable to avoid confusing sed.
8950    lt_compile=`echo "$ac_compile" | $SED \
8951    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8952    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8953    -e 's:$: $lt_compiler_flag:'`
8954    (eval echo "\"\$as_me:8954: $lt_compile\"" >&5)
8955    (eval "$lt_compile" 2>conftest.err)
8956    ac_status=$?
8957    cat conftest.err >&5
8958    echo "$as_me:8958: \$? = $ac_status" >&5
8959    if (exit $ac_status) && test -s "$ac_outfile"; then
8960      # The compiler can only warn and ignore the option if not recognized
8961      # So say no if there are warnings other than the usual output.
8962      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
8963      $SED '/^$/d' conftest.err >conftest.er2
8964      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
8965        lt_prog_compiler_pic_works=yes
8966      fi
8967    fi
8968    $rm conftest*
8969
8970 fi
8971 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8972 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
8973
8974 if test x"$lt_prog_compiler_pic_works" = xyes; then
8975     case $lt_prog_compiler_pic in
8976      "" | " "*) ;;
8977      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8978      esac
8979 else
8980     lt_prog_compiler_pic=
8981      lt_prog_compiler_can_build_shared=no
8982 fi
8983
8984 fi
8985 case $host_os in
8986   # For platforms which do not support PIC, -DPIC is meaningless:
8987   *djgpp*)
8988     lt_prog_compiler_pic=
8989     ;;
8990   *)
8991     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8992     ;;
8993 esac
8994
8995 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8996 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8997 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8998   echo $ECHO_N "(cached) $ECHO_C" >&6
8999 else
9000   lt_cv_prog_compiler_c_o=no
9001    $rm -r conftest 2>/dev/null
9002    mkdir conftest
9003    cd conftest
9004    mkdir out
9005    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9006
9007    lt_compiler_flag="-o out/conftest2.$ac_objext"
9008    # Insert the option either (1) after the last *FLAGS variable, or
9009    # (2) before a word containing "conftest.", or (3) at the end.
9010    # Note that $ac_compile itself does not contain backslashes and begins
9011    # with a dollar sign (not a hyphen), so the echo should work correctly.
9012    lt_compile=`echo "$ac_compile" | $SED \
9013    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9014    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9015    -e 's:$: $lt_compiler_flag:'`
9016    (eval echo "\"\$as_me:9016: $lt_compile\"" >&5)
9017    (eval "$lt_compile" 2>out/conftest.err)
9018    ac_status=$?
9019    cat out/conftest.err >&5
9020    echo "$as_me:9020: \$? = $ac_status" >&5
9021    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9022    then
9023      # The compiler can only warn and ignore the option if not recognized
9024      # So say no if there are warnings
9025      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
9026      $SED '/^$/d' out/conftest.err >out/conftest.er2
9027      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9028        lt_cv_prog_compiler_c_o=yes
9029      fi
9030    fi
9031    chmod u+w . 2>&5
9032    $rm conftest*
9033    # SGI C++ compiler will create directory out/ii_files/ for
9034    # template instantiation
9035    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
9036    $rm out/* && rmdir out
9037    cd ..
9038    rmdir conftest
9039    $rm conftest*
9040
9041 fi
9042 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9043 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9044
9045
9046 hard_links="nottested"
9047 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9048   # do not overwrite the value of need_locks provided by the user
9049   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9050 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
9051   hard_links=yes
9052   $rm conftest*
9053   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9054   touch conftest.a
9055   ln conftest.a conftest.b 2>&5 || hard_links=no
9056   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9057   { echo "$as_me:$LINENO: result: $hard_links" >&5
9058 echo "${ECHO_T}$hard_links" >&6; }
9059   if test "$hard_links" = no; then
9060     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9061 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9062     need_locks=warn
9063   fi
9064 else
9065   need_locks=no
9066 fi
9067
9068 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9069 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
9070
9071   runpath_var=
9072   allow_undefined_flag=
9073   enable_shared_with_static_runtimes=no
9074   archive_cmds=
9075   archive_expsym_cmds=
9076   old_archive_From_new_cmds=
9077   old_archive_from_expsyms_cmds=
9078   export_dynamic_flag_spec=
9079   whole_archive_flag_spec=
9080   thread_safe_flag_spec=
9081   hardcode_libdir_flag_spec=
9082   hardcode_libdir_flag_spec_ld=
9083   hardcode_libdir_separator=
9084   hardcode_direct=no
9085   hardcode_minus_L=no
9086   hardcode_shlibpath_var=unsupported
9087   link_all_deplibs=unknown
9088   hardcode_automatic=no
9089   module_cmds=
9090   module_expsym_cmds=
9091   always_export_symbols=no
9092   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9093   # include_expsyms should be a list of space-separated symbols to be *always*
9094   # included in the symbol list
9095   include_expsyms=
9096   # exclude_expsyms can be an extended regexp of symbols to exclude
9097   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9098   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9099   # as well as any symbol that contains `d'.
9100   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
9101   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9102   # platforms (ab)use it in PIC code, but their linkers get confused if
9103   # the symbol is explicitly referenced.  Since portable code cannot
9104   # rely on this symbol name, it's probably fine to never include it in
9105   # preloaded symbol tables.
9106   extract_expsyms_cmds=
9107   # Just being paranoid about ensuring that cc_basename is set.
9108   for cc_temp in $compiler""; do
9109   case $cc_temp in
9110     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9111     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9112     \-*) ;;
9113     *) break;;
9114   esac
9115 done
9116 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9117
9118   case $host_os in
9119   cygwin* | mingw* | pw32*)
9120     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9121     # When not using gcc, we currently assume that we are using
9122     # Microsoft Visual C++.
9123     if test "$GCC" != yes; then
9124       with_gnu_ld=no
9125     fi
9126     ;;
9127   openbsd*)
9128     with_gnu_ld=no
9129     ;;
9130   esac
9131
9132   ld_shlibs=yes
9133   if test "$with_gnu_ld" = yes; then
9134     # If archive_cmds runs LD, not CC, wlarc should be empty
9135     wlarc='${wl}'
9136
9137     # Set some defaults for GNU ld with shared library support. These
9138     # are reset later if shared libraries are not supported. Putting them
9139     # here allows them to be overridden if necessary.
9140     runpath_var=LD_RUN_PATH
9141     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9142     export_dynamic_flag_spec='${wl}--export-dynamic'
9143     # ancient GNU ld didn't support --whole-archive et. al.
9144     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9145         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9146       else
9147         whole_archive_flag_spec=
9148     fi
9149     supports_anon_versioning=no
9150     case `$LD -v 2>/dev/null` in
9151       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9152       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9153       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9154       *\ 2.11.*) ;; # other 2.11 versions
9155       *) supports_anon_versioning=yes ;;
9156     esac
9157
9158     # See if GNU ld supports shared libraries.
9159     case $host_os in
9160     aix3* | aix4* | aix5*)
9161       # On AIX/PPC, the GNU linker is very broken
9162       if test "$host_cpu" != ia64; then
9163         ld_shlibs=no
9164         cat <<EOF 1>&2
9165
9166 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9167 *** to be unable to reliably create shared libraries on AIX.
9168 *** Therefore, libtool is disabling shared libraries support.  If you
9169 *** really care for shared libraries, you may want to modify your PATH
9170 *** so that a non-GNU linker is found, and then restart.
9171
9172 EOF
9173       fi
9174       ;;
9175
9176     amigaos*)
9177       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)'
9178       hardcode_libdir_flag_spec='-L$libdir'
9179       hardcode_minus_L=yes
9180
9181       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9182       # that the semantics of dynamic libraries on AmigaOS, at least up
9183       # to version 4, is to share data among multiple programs linked
9184       # with the same dynamic library.  Since this doesn't match the
9185       # behavior of shared libraries on other platforms, we can't use
9186       # them.
9187       ld_shlibs=no
9188       ;;
9189
9190     beos*)
9191       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9192         allow_undefined_flag=unsupported
9193         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9194         # support --undefined.  This deserves some investigation.  FIXME
9195         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9196       else
9197         ld_shlibs=no
9198       fi
9199       ;;
9200
9201     cygwin* | mingw* | pw32*)
9202       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9203       # as there is no search path for DLLs.
9204       hardcode_libdir_flag_spec='-L$libdir'
9205       allow_undefined_flag=unsupported
9206       always_export_symbols=no
9207       enable_shared_with_static_runtimes=yes
9208       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9209
9210       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9211         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9212         # If the export-symbols file already is a .def file (1st line
9213         # is EXPORTS), use it as is; otherwise, prepend...
9214         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9215           cp $export_symbols $output_objdir/$soname.def;
9216         else
9217           echo EXPORTS > $output_objdir/$soname.def;
9218           cat $export_symbols >> $output_objdir/$soname.def;
9219         fi~
9220         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
9221       else
9222         ld_shlibs=no
9223       fi
9224       ;;
9225
9226     linux*)
9227       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9228         tmp_addflag=
9229         case $cc_basename,$host_cpu in
9230         pgcc*)                          # Portland Group C compiler
9231           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'
9232           tmp_addflag=' $pic_flag'
9233           ;;
9234         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9235           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'
9236           tmp_addflag=' $pic_flag -Mnomain' ;;
9237         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
9238           tmp_addflag=' -i_dynamic' ;;
9239         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9240           tmp_addflag=' -i_dynamic -nofor_main' ;;
9241         ifc* | ifort*)                  # Intel Fortran compiler
9242           tmp_addflag=' -nofor_main' ;;
9243         esac
9244         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9245
9246         if test $supports_anon_versioning = yes; then
9247           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9248   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9249   $echo "local: *; };" >> $output_objdir/$libname.ver~
9250           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9251         fi
9252       else
9253         ld_shlibs=no
9254       fi
9255       ;;
9256
9257     netbsd*)
9258       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9259         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9260         wlarc=
9261       else
9262         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9263         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9264       fi
9265       ;;
9266
9267     solaris* | sysv5*)
9268       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9269         ld_shlibs=no
9270         cat <<EOF 1>&2
9271
9272 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9273 *** create shared libraries on Solaris systems.  Therefore, libtool
9274 *** is disabling shared libraries support.  We urge you to upgrade GNU
9275 *** binutils to release 2.9.1 or newer.  Another option is to modify
9276 *** your PATH or compiler configuration so that the native linker is
9277 *** used, and then restart.
9278
9279 EOF
9280       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9281         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9282         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9283       else
9284         ld_shlibs=no
9285       fi
9286       ;;
9287
9288     sunos4*)
9289       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9290       wlarc=
9291       hardcode_direct=yes
9292       hardcode_shlibpath_var=no
9293       ;;
9294
9295     *)
9296       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9297         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9298         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9299       else
9300         ld_shlibs=no
9301       fi
9302       ;;
9303     esac
9304
9305     if test "$ld_shlibs" = no; then
9306       runpath_var=
9307       hardcode_libdir_flag_spec=
9308       export_dynamic_flag_spec=
9309       whole_archive_flag_spec=
9310     fi
9311   else
9312     # PORTME fill in a description of your system's linker (not GNU ld)
9313     case $host_os in
9314     aix3*)
9315       allow_undefined_flag=unsupported
9316       always_export_symbols=yes
9317       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'
9318       # Note: this linker hardcodes the directories in LIBPATH if there
9319       # are no directories specified by -L.
9320       hardcode_minus_L=yes
9321       if test "$GCC" = yes && test -z "$link_static_flag"; then
9322         # Neither direct hardcoding nor static linking is supported with a
9323         # broken collect2.
9324         hardcode_direct=unsupported
9325       fi
9326       ;;
9327
9328     aix4* | aix5*)
9329       if test "$host_cpu" = ia64; then
9330         # On IA64, the linker does run time linking by default, so we don't
9331         # have to do anything special.
9332         aix_use_runtimelinking=no
9333         exp_sym_flag='-Bexport'
9334         no_entry_flag=""
9335       else
9336         # If we're using GNU nm, then we don't want the "-C" option.
9337         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9338         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9339           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'
9340         else
9341           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'
9342         fi
9343         aix_use_runtimelinking=no
9344
9345         # Test if we are trying to use run time linking or normal
9346         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9347         # need to do runtime linking.
9348         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9349           for ld_flag in $LDFLAGS; do
9350           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9351             aix_use_runtimelinking=yes
9352             break
9353           fi
9354           done
9355         esac
9356
9357         exp_sym_flag='-bexport'
9358         no_entry_flag='-bnoentry'
9359       fi
9360
9361       # When large executables or shared objects are built, AIX ld can
9362       # have problems creating the table of contents.  If linking a library
9363       # or program results in "error TOC overflow" add -mminimal-toc to
9364       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9365       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9366
9367       archive_cmds=''
9368       hardcode_direct=yes
9369       hardcode_libdir_separator=':'
9370       link_all_deplibs=yes
9371
9372       if test "$GCC" = yes; then
9373         case $host_os in aix4.[012]|aix4.[012].*)
9374         # We only want to do this on AIX 4.2 and lower, the check
9375         # below for broken collect2 doesn't work under 4.3+
9376           collect2name=`${CC} -print-prog-name=collect2`
9377           if test -f "$collect2name" && \
9378            strings "$collect2name" | grep resolve_lib_name >/dev/null
9379           then
9380           # We have reworked collect2
9381           hardcode_direct=yes
9382           else
9383           # We have old collect2
9384           hardcode_direct=unsupported
9385           # It fails to find uninstalled libraries when the uninstalled
9386           # path is not listed in the libpath.  Setting hardcode_minus_L
9387           # to unsupported forces relinking
9388           hardcode_minus_L=yes
9389           hardcode_libdir_flag_spec='-L$libdir'
9390           hardcode_libdir_separator=
9391           fi
9392         esac
9393         shared_flag='-shared'
9394         if test "$aix_use_runtimelinking" = yes; then
9395           shared_flag="$shared_flag "'${wl}-G'
9396         fi
9397       else
9398         # not using gcc
9399         if test "$host_cpu" = ia64; then
9400         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9401         # chokes on -Wl,-G. The following line is correct:
9402           shared_flag='-G'
9403         else
9404         if test "$aix_use_runtimelinking" = yes; then
9405             shared_flag='${wl}-G'
9406           else
9407             shared_flag='${wl}-bM:SRE'
9408         fi
9409         fi
9410       fi
9411
9412       # It seems that -bexpall does not export symbols beginning with
9413       # underscore (_), so it is better to generate a list of symbols to export.
9414       always_export_symbols=yes
9415       if test "$aix_use_runtimelinking" = yes; then
9416         # Warning - without using the other runtime loading flags (-brtl),
9417         # -berok will link without error, but may produce a broken library.
9418         allow_undefined_flag='-berok'
9419        # Determine the default libpath from the value encoded in an empty executable.
9420        cat >conftest.$ac_ext <<_ACEOF
9421 /* confdefs.h.  */
9422 _ACEOF
9423 cat confdefs.h >>conftest.$ac_ext
9424 cat >>conftest.$ac_ext <<_ACEOF
9425 /* end confdefs.h.  */
9426
9427 int
9428 main ()
9429 {
9430
9431   ;
9432   return 0;
9433 }
9434 _ACEOF
9435 rm -f conftest.$ac_objext conftest$ac_exeext
9436 if { (ac_try="$ac_link"
9437 case "(($ac_try" in
9438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9439   *) ac_try_echo=$ac_try;;
9440 esac
9441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9442   (eval "$ac_link") 2>conftest.er1
9443   ac_status=$?
9444   grep -v '^ *+' conftest.er1 >conftest.err
9445   rm -f conftest.er1
9446   cat conftest.err >&5
9447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9448   (exit $ac_status); } && {
9449          test -z "$ac_c_werror_flag" ||
9450          test ! -s conftest.err
9451        } && test -s conftest$ac_exeext &&
9452        $as_test_x conftest$ac_exeext; then
9453
9454 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9455 }'`
9456 # Check for a 64-bit object if we didn't find anything.
9457 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9458 }'`; fi
9459 else
9460   echo "$as_me: failed program was:" >&5
9461 sed 's/^/| /' conftest.$ac_ext >&5
9462
9463
9464 fi
9465
9466 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9467       conftest$ac_exeext conftest.$ac_ext
9468 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9469
9470        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9471         archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9472        else
9473         if test "$host_cpu" = ia64; then
9474           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9475           allow_undefined_flag="-z nodefs"
9476           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
9477         else
9478          # Determine the default libpath from the value encoded in an empty executable.
9479          cat >conftest.$ac_ext <<_ACEOF
9480 /* confdefs.h.  */
9481 _ACEOF
9482 cat confdefs.h >>conftest.$ac_ext
9483 cat >>conftest.$ac_ext <<_ACEOF
9484 /* end confdefs.h.  */
9485
9486 int
9487 main ()
9488 {
9489
9490   ;
9491   return 0;
9492 }
9493 _ACEOF
9494 rm -f conftest.$ac_objext conftest$ac_exeext
9495 if { (ac_try="$ac_link"
9496 case "(($ac_try" in
9497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9498   *) ac_try_echo=$ac_try;;
9499 esac
9500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9501   (eval "$ac_link") 2>conftest.er1
9502   ac_status=$?
9503   grep -v '^ *+' conftest.er1 >conftest.err
9504   rm -f conftest.er1
9505   cat conftest.err >&5
9506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9507   (exit $ac_status); } && {
9508          test -z "$ac_c_werror_flag" ||
9509          test ! -s conftest.err
9510        } && test -s conftest$ac_exeext &&
9511        $as_test_x conftest$ac_exeext; then
9512
9513 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9514 }'`
9515 # Check for a 64-bit object if we didn't find anything.
9516 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9517 }'`; fi
9518 else
9519   echo "$as_me: failed program was:" >&5
9520 sed 's/^/| /' conftest.$ac_ext >&5
9521
9522
9523 fi
9524
9525 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9526       conftest$ac_exeext conftest.$ac_ext
9527 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9528
9529          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9530           # Warning - without using the other run time loading flags,
9531           # -berok will link without error, but may produce a broken library.
9532           no_undefined_flag=' ${wl}-bernotok'
9533           allow_undefined_flag=' ${wl}-berok'
9534           # -bexpall does not export symbols beginning with underscore (_)
9535           always_export_symbols=yes
9536           # Exported symbols can be pulled into shared objects from archives
9537           whole_archive_flag_spec=' '
9538           archive_cmds_need_lc=yes
9539           # This is similar to how AIX traditionally builds its shared libraries.
9540           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9541         fi
9542       fi
9543       ;;
9544
9545     amigaos*)
9546       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)'
9547       hardcode_libdir_flag_spec='-L$libdir'
9548       hardcode_minus_L=yes
9549       # see comment about different semantics on the GNU ld section
9550       ld_shlibs=no
9551       ;;
9552
9553     bsdi[45]*)
9554       export_dynamic_flag_spec=-rdynamic
9555       ;;
9556
9557     cygwin* | mingw* | pw32*)
9558       # When not using gcc, we currently assume that we are using
9559       # Microsoft Visual C++.
9560       # hardcode_libdir_flag_spec is actually meaningless, as there is
9561       # no search path for DLLs.
9562       hardcode_libdir_flag_spec=' '
9563       allow_undefined_flag=unsupported
9564       # Tell ltmain to make .lib files, not .a files.
9565       libext=lib
9566       # Tell ltmain to make .dll files, not .so files.
9567       shrext_cmds=".dll"
9568       # FIXME: Setting linknames here is a bad hack.
9569       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9570       # The linker will automatically build a .lib file if we build a DLL.
9571       old_archive_From_new_cmds='true'
9572       # FIXME: Should let the user specify the lib program.
9573       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9574       fix_srcfile_path='`cygpath -w "$srcfile"`'
9575       enable_shared_with_static_runtimes=yes
9576       ;;
9577
9578     darwin* | rhapsody*)
9579       case $host_os in
9580         rhapsody* | darwin1.[012])
9581          allow_undefined_flag='${wl}-undefined ${wl}suppress'
9582          ;;
9583        *) # Darwin 1.3 on
9584          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9585            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9586          else
9587            case ${MACOSX_DEPLOYMENT_TARGET} in
9588              10.[012])
9589                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9590                ;;
9591              10.*)
9592                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9593                ;;
9594            esac
9595          fi
9596          ;;
9597       esac
9598       archive_cmds_need_lc=no
9599       hardcode_direct=no
9600       hardcode_automatic=yes
9601       hardcode_shlibpath_var=unsupported
9602       whole_archive_flag_spec=''
9603       link_all_deplibs=yes
9604     if test "$GCC" = yes ; then
9605         output_verbose_link_cmd='echo'
9606         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9607       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9608       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9609       archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9610       module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9611     else
9612       case $cc_basename in
9613         xlc*)
9614          output_verbose_link_cmd='echo'
9615          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9616          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9617           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9618          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9619           module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9620           ;;
9621        *)
9622          ld_shlibs=no
9623           ;;
9624       esac
9625     fi
9626       ;;
9627
9628     dgux*)
9629       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9630       hardcode_libdir_flag_spec='-L$libdir'
9631       hardcode_shlibpath_var=no
9632       ;;
9633
9634     freebsd1*)
9635       ld_shlibs=no
9636       ;;
9637
9638     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9639     # support.  Future versions do this automatically, but an explicit c++rt0.o
9640     # does not break anything, and helps significantly (at the cost of a little
9641     # extra space).
9642     freebsd2.2*)
9643       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9644       hardcode_libdir_flag_spec='-R$libdir'
9645       hardcode_direct=yes
9646       hardcode_shlibpath_var=no
9647       ;;
9648
9649     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9650     freebsd2*)
9651       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9652       hardcode_direct=yes
9653       hardcode_minus_L=yes
9654       hardcode_shlibpath_var=no
9655       ;;
9656
9657     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9658     freebsd* | kfreebsd*-gnu | dragonfly*)
9659       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9660       hardcode_libdir_flag_spec='-R$libdir'
9661       hardcode_direct=yes
9662       hardcode_shlibpath_var=no
9663       ;;
9664
9665     hpux9*)
9666       if test "$GCC" = yes; then
9667         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'
9668       else
9669         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'
9670       fi
9671       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9672       hardcode_libdir_separator=:
9673       hardcode_direct=yes
9674
9675       # hardcode_minus_L: Not really in the search PATH,
9676       # but as the default location of the library.
9677       hardcode_minus_L=yes
9678       export_dynamic_flag_spec='${wl}-E'
9679       ;;
9680
9681     hpux10* | hpux11*)
9682       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9683         case $host_cpu in
9684         hppa*64*|ia64*)
9685           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9686           ;;
9687         *)
9688           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9689           ;;
9690         esac
9691       else
9692         case $host_cpu in
9693         hppa*64*|ia64*)
9694           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
9695           ;;
9696         *)
9697           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9698           ;;
9699         esac
9700       fi
9701       if test "$with_gnu_ld" = no; then
9702         case $host_cpu in
9703         hppa*64*)
9704           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9705           hardcode_libdir_flag_spec_ld='+b $libdir'
9706           hardcode_libdir_separator=:
9707           hardcode_direct=no
9708           hardcode_shlibpath_var=no
9709           ;;
9710         ia64*)
9711           hardcode_libdir_flag_spec='-L$libdir'
9712           hardcode_direct=no
9713           hardcode_shlibpath_var=no
9714
9715           # hardcode_minus_L: Not really in the search PATH,
9716           # but as the default location of the library.
9717           hardcode_minus_L=yes
9718           ;;
9719         *)
9720           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9721           hardcode_libdir_separator=:
9722           hardcode_direct=yes
9723           export_dynamic_flag_spec='${wl}-E'
9724
9725           # hardcode_minus_L: Not really in the search PATH,
9726           # but as the default location of the library.
9727           hardcode_minus_L=yes
9728           ;;
9729         esac
9730       fi
9731       ;;
9732
9733     irix5* | irix6* | nonstopux*)
9734       if test "$GCC" = yes; then
9735         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9736       else
9737         archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
9738         hardcode_libdir_flag_spec_ld='-rpath $libdir'
9739       fi
9740       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9741       hardcode_libdir_separator=:
9742       link_all_deplibs=yes
9743       ;;
9744
9745     netbsd*)
9746       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9747         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9748       else
9749         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9750       fi
9751       hardcode_libdir_flag_spec='-R$libdir'
9752       hardcode_direct=yes
9753       hardcode_shlibpath_var=no
9754       ;;
9755
9756     newsos6)
9757       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9758       hardcode_direct=yes
9759       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9760       hardcode_libdir_separator=:
9761       hardcode_shlibpath_var=no
9762       ;;
9763
9764     openbsd*)
9765       hardcode_direct=yes
9766       hardcode_shlibpath_var=no
9767       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9768         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9769         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9770         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9771         export_dynamic_flag_spec='${wl}-E'
9772       else
9773        case $host_os in
9774          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9775            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9776            hardcode_libdir_flag_spec='-R$libdir'
9777            ;;
9778          *)
9779            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9780            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9781            ;;
9782        esac
9783       fi
9784       ;;
9785
9786     os2*)
9787       hardcode_libdir_flag_spec='-L$libdir'
9788       hardcode_minus_L=yes
9789       allow_undefined_flag=unsupported
9790       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'
9791       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9792       ;;
9793
9794     osf3*)
9795       if test "$GCC" = yes; then
9796         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9797         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9798       else
9799         allow_undefined_flag=' -expect_unresolved \*'
9800         archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
9801       fi
9802       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9803       hardcode_libdir_separator=:
9804       ;;
9805
9806     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9807       if test "$GCC" = yes; then
9808         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9809         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9810         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9811       else
9812         allow_undefined_flag=' -expect_unresolved \*'
9813         archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
9814         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9815         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
9816
9817         # Both c and cxx compiler support -rpath directly
9818         hardcode_libdir_flag_spec='-rpath $libdir'
9819       fi
9820       hardcode_libdir_separator=:
9821       ;;
9822
9823     sco3.2v5*)
9824       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9825       hardcode_shlibpath_var=no
9826       export_dynamic_flag_spec='${wl}-Bexport'
9827       runpath_var=LD_RUN_PATH
9828       hardcode_runpath_var=yes
9829       ;;
9830
9831     solaris*)
9832       no_undefined_flag=' -z text'
9833       if test "$GCC" = yes; then
9834         wlarc='${wl}'
9835         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9836         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9837           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9838       else
9839         wlarc=''
9840         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9841         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9842         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9843       fi
9844       hardcode_libdir_flag_spec='-R$libdir'
9845       hardcode_shlibpath_var=no
9846       case $host_os in
9847       solaris2.[0-5] | solaris2.[0-5].*) ;;
9848       *)
9849         # The compiler driver will combine linker options so we
9850         # cannot just pass the convience library names through
9851         # without $wl, iff we do not link with $LD.
9852         # Luckily, gcc supports the same syntax we need for Sun Studio.
9853         # Supported since Solaris 2.6 (maybe 2.5.1?)
9854         case $wlarc in
9855         '')
9856           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9857         *)
9858           whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
9859         esac ;;
9860       esac
9861       link_all_deplibs=yes
9862       ;;
9863
9864     sunos4*)
9865       if test "x$host_vendor" = xsequent; then
9866         # Use $CC to link under sequent, because it throws in some extra .o
9867         # files that make .init and .fini sections work.
9868         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9869       else
9870         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9871       fi
9872       hardcode_libdir_flag_spec='-L$libdir'
9873       hardcode_direct=yes
9874       hardcode_minus_L=yes
9875       hardcode_shlibpath_var=no
9876       ;;
9877
9878     sysv4)
9879       case $host_vendor in
9880         sni)
9881           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9882           hardcode_direct=yes # is this really true???
9883         ;;
9884         siemens)
9885           ## LD is ld it makes a PLAMLIB
9886           ## CC just makes a GrossModule.
9887           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9888           reload_cmds='$CC -r -o $output$reload_objs'
9889           hardcode_direct=no
9890         ;;
9891         motorola)
9892           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9893           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9894         ;;
9895       esac
9896       runpath_var='LD_RUN_PATH'
9897       hardcode_shlibpath_var=no
9898       ;;
9899
9900     sysv4.3*)
9901       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9902       hardcode_shlibpath_var=no
9903       export_dynamic_flag_spec='-Bexport'
9904       ;;
9905
9906     sysv4*MP*)
9907       if test -d /usr/nec; then
9908         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9909         hardcode_shlibpath_var=no
9910         runpath_var=LD_RUN_PATH
9911         hardcode_runpath_var=yes
9912         ld_shlibs=yes
9913       fi
9914       ;;
9915
9916     sysv4.2uw2*)
9917       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9918       hardcode_direct=yes
9919       hardcode_minus_L=no
9920       hardcode_shlibpath_var=no
9921       hardcode_runpath_var=yes
9922       runpath_var=LD_RUN_PATH
9923       ;;
9924
9925    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
9926       no_undefined_flag='${wl}-z ${wl}text'
9927       if test "$GCC" = yes; then
9928         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9929       else
9930         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9931       fi
9932       runpath_var='LD_RUN_PATH'
9933       hardcode_shlibpath_var=no
9934       ;;
9935
9936     sysv5*)
9937       no_undefined_flag=' -z text'
9938       # $CC -shared without GNU ld will not create a library from C++
9939       # object files and a static libstdc++, better avoid it by now
9940       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9941       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9942                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9943       hardcode_libdir_flag_spec=
9944       hardcode_shlibpath_var=no
9945       runpath_var='LD_RUN_PATH'
9946       ;;
9947
9948     uts4*)
9949       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9950       hardcode_libdir_flag_spec='-L$libdir'
9951       hardcode_shlibpath_var=no
9952       ;;
9953
9954     *)
9955       ld_shlibs=no
9956       ;;
9957     esac
9958   fi
9959
9960 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9961 echo "${ECHO_T}$ld_shlibs" >&6; }
9962 test "$ld_shlibs" = no && can_build_shared=no
9963
9964 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9965 if test "$GCC" = yes; then
9966   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9967 fi
9968
9969 #
9970 # Do we need to explicitly link libc?
9971 #
9972 case "x$archive_cmds_need_lc" in
9973 x|xyes)
9974   # Assume -lc should be added
9975   archive_cmds_need_lc=yes
9976
9977   if test "$enable_shared" = yes && test "$GCC" = yes; then
9978     case $archive_cmds in
9979     *'~'*)
9980       # FIXME: we may have to deal with multi-command sequences.
9981       ;;
9982     '$CC '*)
9983       # Test whether the compiler implicitly links with -lc since on some
9984       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9985       # to ld, don't add -lc before -lgcc.
9986       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9987 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9988       $rm conftest*
9989       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9990
9991       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9992   (eval $ac_compile) 2>&5
9993   ac_status=$?
9994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9995   (exit $ac_status); } 2>conftest.err; then
9996         soname=conftest
9997         lib=conftest
9998         libobjs=conftest.$ac_objext
9999         deplibs=
10000         wl=$lt_prog_compiler_wl
10001         compiler_flags=-v
10002         linker_flags=-v
10003         verstring=
10004         output_objdir=.
10005         libname=conftest
10006         lt_save_allow_undefined_flag=$allow_undefined_flag
10007         allow_undefined_flag=
10008         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10009   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10010   ac_status=$?
10011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10012   (exit $ac_status); }
10013         then
10014           archive_cmds_need_lc=no
10015         else
10016           archive_cmds_need_lc=yes
10017         fi
10018         allow_undefined_flag=$lt_save_allow_undefined_flag
10019       else
10020         cat conftest.err 1>&5
10021       fi
10022       $rm conftest*
10023       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10024 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
10025       ;;
10026     esac
10027   fi
10028   ;;
10029 esac
10030
10031 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10032 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
10033 library_names_spec=
10034 libname_spec='lib$name'
10035 soname_spec=
10036 shrext_cmds=".so"
10037 postinstall_cmds=
10038 postuninstall_cmds=
10039 finish_cmds=
10040 finish_eval=
10041 shlibpath_var=
10042 shlibpath_overrides_runpath=unknown
10043 version_type=none
10044 dynamic_linker="$host_os ld.so"
10045 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10046 if test "$GCC" = yes; then
10047   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10048   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10049     # if the path contains ";" then we assume it to be the separator
10050     # otherwise default to the standard path separator (i.e. ":") - it is
10051     # assumed that no part of a normal pathname contains ";" but that should
10052     # okay in the real world where ";" in dirpaths is itself problematic.
10053     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10054   else
10055     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10056   fi
10057 else
10058   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10059 fi
10060 need_lib_prefix=unknown
10061 hardcode_into_libs=no
10062
10063 # when you set need_version to no, make sure it does not cause -set_version
10064 # flags to be left without arguments
10065 need_version=unknown
10066
10067 case $host_os in
10068 aix3*)
10069   version_type=linux
10070   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10071   shlibpath_var=LIBPATH
10072
10073   # AIX 3 has no versioning support, so we append a major version to the name.
10074   soname_spec='${libname}${release}${shared_ext}$major'
10075   ;;
10076
10077 aix4* | aix5*)
10078   version_type=linux
10079   need_lib_prefix=no
10080   need_version=no
10081   hardcode_into_libs=yes
10082   if test "$host_cpu" = ia64; then
10083     # AIX 5 supports IA64
10084     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10085     shlibpath_var=LD_LIBRARY_PATH
10086   else
10087     # With GCC up to 2.95.x, collect2 would create an import file
10088     # for dependence libraries.  The import file would start with
10089     # the line `#! .'.  This would cause the generated library to
10090     # depend on `.', always an invalid library.  This was fixed in
10091     # development snapshots of GCC prior to 3.0.
10092     case $host_os in
10093       aix4 | aix4.[01] | aix4.[01].*)
10094       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10095            echo ' yes '
10096            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10097         :
10098       else
10099         can_build_shared=no
10100       fi
10101       ;;
10102     esac
10103     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10104     # soname into executable. Probably we can add versioning support to
10105     # collect2, so additional links can be useful in future.
10106     if test "$aix_use_runtimelinking" = yes; then
10107       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10108       # instead of lib<name>.a to let people know that these are not
10109       # typical AIX shared libraries.
10110       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10111     else
10112       # We preserve .a as extension for shared libraries through AIX4.2
10113       # and later when we are not doing run time linking.
10114       library_names_spec='${libname}${release}.a $libname.a'
10115       soname_spec='${libname}${release}${shared_ext}$major'
10116     fi
10117     shlibpath_var=LIBPATH
10118   fi
10119   ;;
10120
10121 amigaos*)
10122   library_names_spec='$libname.ixlibrary $libname.a'
10123   # Create ${libname}_ixlibrary.a entries in /sys/libs.
10124   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'
10125   ;;
10126
10127 beos*)
10128   library_names_spec='${libname}${shared_ext}'
10129   dynamic_linker="$host_os ld.so"
10130   shlibpath_var=LIBRARY_PATH
10131   ;;
10132
10133 bsdi[45]*)
10134   version_type=linux
10135   need_version=no
10136   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10137   soname_spec='${libname}${release}${shared_ext}$major'
10138   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10139   shlibpath_var=LD_LIBRARY_PATH
10140   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10141   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10142   # the default ld.so.conf also contains /usr/contrib/lib and
10143   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10144   # libtool to hard-code these into programs
10145   ;;
10146
10147 cygwin* | mingw* | pw32*)
10148   version_type=windows
10149   shrext_cmds=".dll"
10150   need_version=no
10151   need_lib_prefix=no
10152
10153   case $GCC,$host_os in
10154   yes,cygwin* | yes,mingw* | yes,pw32*)
10155     library_names_spec='$libname.dll.a'
10156     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10157     postinstall_cmds='base_file=`basename \${file}`~
10158       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10159       dldir=$destdir/`dirname \$dlpath`~
10160       test -d \$dldir || mkdir -p \$dldir~
10161       $install_prog $dir/$dlname \$dldir/$dlname~
10162       chmod a+x \$dldir/$dlname'
10163     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10164       dlpath=$dir/\$dldll~
10165        $rm \$dlpath'
10166     shlibpath_overrides_runpath=yes
10167
10168     case $host_os in
10169     cygwin*)
10170       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10171       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10172       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10173       ;;
10174     mingw*)
10175       # MinGW DLLs use traditional 'lib' prefix
10176       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10177       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10178       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10179         # It is most probably a Windows format PATH printed by
10180         # mingw gcc, but we are running on Cygwin. Gcc prints its search
10181         # path with ; separators, and with drive letters. We can handle the
10182         # drive letters (cygwin fileutils understands them), so leave them,
10183         # especially as we might pass files found there to a mingw objdump,
10184         # which wouldn't understand a cygwinified path. Ahh.
10185         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10186       else
10187         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10188       fi
10189       ;;
10190     pw32*)
10191       # pw32 DLLs use 'pw' prefix rather than 'lib'
10192       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10193       ;;
10194     esac
10195     ;;
10196
10197   *)
10198     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10199     ;;
10200   esac
10201   dynamic_linker='Win32 ld.exe'
10202   # FIXME: first we should search . and the directory the executable is in
10203   shlibpath_var=PATH
10204   ;;
10205
10206 darwin* | rhapsody*)
10207   dynamic_linker="$host_os dyld"
10208   version_type=darwin
10209   need_lib_prefix=no
10210   need_version=no
10211   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10212   soname_spec='${libname}${release}${major}$shared_ext'
10213   shlibpath_overrides_runpath=yes
10214   shlibpath_var=DYLD_LIBRARY_PATH
10215   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10216   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10217   if test "$GCC" = yes; then
10218     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
10219   else
10220     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10221   fi
10222   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10223   ;;
10224
10225 dgux*)
10226   version_type=linux
10227   need_lib_prefix=no
10228   need_version=no
10229   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10230   soname_spec='${libname}${release}${shared_ext}$major'
10231   shlibpath_var=LD_LIBRARY_PATH
10232   ;;
10233
10234 freebsd1*)
10235   dynamic_linker=no
10236   ;;
10237
10238 kfreebsd*-gnu)
10239   version_type=linux
10240   need_lib_prefix=no
10241   need_version=no
10242   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10243   soname_spec='${libname}${release}${shared_ext}$major'
10244   shlibpath_var=LD_LIBRARY_PATH
10245   shlibpath_overrides_runpath=no
10246   hardcode_into_libs=yes
10247   dynamic_linker='GNU ld.so'
10248   ;;
10249
10250 freebsd* | dragonfly*)
10251   # DragonFly does not have aout.  When/if they implement a new
10252   # versioning mechanism, adjust this.
10253   if test -x /usr/bin/objformat; then
10254     objformat=`/usr/bin/objformat`
10255   else
10256     case $host_os in
10257     freebsd[123]*) objformat=aout ;;
10258     *) objformat=elf ;;
10259     esac
10260   fi
10261   version_type=freebsd-$objformat
10262   case $version_type in
10263     freebsd-elf*)
10264       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10265       need_version=no
10266       need_lib_prefix=no
10267       ;;
10268     freebsd-*)
10269       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10270       need_version=yes
10271       ;;
10272   esac
10273   shlibpath_var=LD_LIBRARY_PATH
10274   case $host_os in
10275   freebsd2*)
10276     shlibpath_overrides_runpath=yes
10277     ;;
10278   freebsd3.[01]* | freebsdelf3.[01]*)
10279     shlibpath_overrides_runpath=yes
10280     hardcode_into_libs=yes
10281     ;;
10282   *) # from 3.2 on
10283     shlibpath_overrides_runpath=no
10284     hardcode_into_libs=yes
10285     ;;
10286   esac
10287   ;;
10288
10289 gnu*)
10290   version_type=linux
10291   need_lib_prefix=no
10292   need_version=no
10293   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10294   soname_spec='${libname}${release}${shared_ext}$major'
10295   shlibpath_var=LD_LIBRARY_PATH
10296   hardcode_into_libs=yes
10297   ;;
10298
10299 hpux9* | hpux10* | hpux11*)
10300   # Give a soname corresponding to the major version so that dld.sl refuses to
10301   # link against other versions.
10302   version_type=sunos
10303   need_lib_prefix=no
10304   need_version=no
10305   case $host_cpu in
10306   ia64*)
10307     shrext_cmds='.so'
10308     hardcode_into_libs=yes
10309     dynamic_linker="$host_os dld.so"
10310     shlibpath_var=LD_LIBRARY_PATH
10311     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10312     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10313     soname_spec='${libname}${release}${shared_ext}$major'
10314     if test "X$HPUX_IA64_MODE" = X32; then
10315       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10316     else
10317       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10318     fi
10319     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10320     ;;
10321    hppa*64*)
10322      shrext_cmds='.sl'
10323      hardcode_into_libs=yes
10324      dynamic_linker="$host_os dld.sl"
10325      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10326      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10327      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10328      soname_spec='${libname}${release}${shared_ext}$major'
10329      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10330      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10331      ;;
10332    *)
10333     shrext_cmds='.sl'
10334     dynamic_linker="$host_os dld.sl"
10335     shlibpath_var=SHLIB_PATH
10336     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10337     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10338     soname_spec='${libname}${release}${shared_ext}$major'
10339     ;;
10340   esac
10341   # HP-UX runs *really* slowly unless shared libraries are mode 555.
10342   postinstall_cmds='chmod 555 $lib'
10343   ;;
10344
10345 irix5* | irix6* | nonstopux*)
10346   case $host_os in
10347     nonstopux*) version_type=nonstopux ;;
10348     *)
10349         if test "$lt_cv_prog_gnu_ld" = yes; then
10350                 version_type=linux
10351         else
10352                 version_type=irix
10353         fi ;;
10354   esac
10355   need_lib_prefix=no
10356   need_version=no
10357   soname_spec='${libname}${release}${shared_ext}$major'
10358   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10359   case $host_os in
10360   irix5* | nonstopux*)
10361     libsuff= shlibsuff=
10362     ;;
10363   *)
10364     case $LD in # libtool.m4 will add one of these switches to LD
10365     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10366       libsuff= shlibsuff= libmagic=32-bit;;
10367     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10368       libsuff=32 shlibsuff=N32 libmagic=N32;;
10369     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10370       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10371     *) libsuff= shlibsuff= libmagic=never-match;;
10372     esac
10373     ;;
10374   esac
10375   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10376   shlibpath_overrides_runpath=no
10377   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10378   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10379   hardcode_into_libs=yes
10380   ;;
10381
10382 # No shared lib support for Linux oldld, aout, or coff.
10383 linux*oldld* | linux*aout* | linux*coff*)
10384   dynamic_linker=no
10385   ;;
10386
10387 # This must be Linux ELF.
10388 linux*)
10389   version_type=linux
10390   need_lib_prefix=no
10391   need_version=no
10392   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10393   soname_spec='${libname}${release}${shared_ext}$major'
10394   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10395   shlibpath_var=LD_LIBRARY_PATH
10396   shlibpath_overrides_runpath=no
10397   # This implies no fast_install, which is unacceptable.
10398   # Some rework will be needed to allow for fast_install
10399   # before this can be enabled.
10400   hardcode_into_libs=yes
10401
10402   # Append ld.so.conf contents to the search path
10403   if test -f /etc/ld.so.conf; then
10404     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
10405     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10406   fi
10407
10408   # We used to test for /lib/ld.so.1 and disable shared libraries on
10409   # powerpc, because MkLinux only supported shared libraries with the
10410   # GNU dynamic linker.  Since this was broken with cross compilers,
10411   # most powerpc-linux boxes support dynamic linking these days and
10412   # people can always --disable-shared, the test was removed, and we
10413   # assume the GNU/Linux dynamic linker is in use.
10414   dynamic_linker='GNU/Linux ld.so'
10415   ;;
10416
10417 knetbsd*-gnu)
10418   version_type=linux
10419   need_lib_prefix=no
10420   need_version=no
10421   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10422   soname_spec='${libname}${release}${shared_ext}$major'
10423   shlibpath_var=LD_LIBRARY_PATH
10424   shlibpath_overrides_runpath=no
10425   hardcode_into_libs=yes
10426   dynamic_linker='GNU ld.so'
10427   ;;
10428
10429 netbsd*)
10430   version_type=sunos
10431   need_lib_prefix=no
10432   need_version=no
10433   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10434     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10435     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10436     dynamic_linker='NetBSD (a.out) ld.so'
10437   else
10438     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10439     soname_spec='${libname}${release}${shared_ext}$major'
10440     dynamic_linker='NetBSD ld.elf_so'
10441   fi
10442   shlibpath_var=LD_LIBRARY_PATH
10443   shlibpath_overrides_runpath=yes
10444   hardcode_into_libs=yes
10445   ;;
10446
10447 newsos6)
10448   version_type=linux
10449   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10450   shlibpath_var=LD_LIBRARY_PATH
10451   shlibpath_overrides_runpath=yes
10452   ;;
10453
10454 nto-qnx*)
10455   version_type=linux
10456   need_lib_prefix=no
10457   need_version=no
10458   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10459   soname_spec='${libname}${release}${shared_ext}$major'
10460   shlibpath_var=LD_LIBRARY_PATH
10461   shlibpath_overrides_runpath=yes
10462   ;;
10463
10464 openbsd*)
10465   version_type=sunos
10466   need_lib_prefix=no
10467   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10468   case $host_os in
10469     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10470     *)                         need_version=no  ;;
10471   esac
10472   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10473   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10474   shlibpath_var=LD_LIBRARY_PATH
10475   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10476     case $host_os in
10477       openbsd2.[89] | openbsd2.[89].*)
10478         shlibpath_overrides_runpath=no
10479         ;;
10480       *)
10481         shlibpath_overrides_runpath=yes
10482         ;;
10483       esac
10484   else
10485     shlibpath_overrides_runpath=yes
10486   fi
10487   ;;
10488
10489 os2*)
10490   libname_spec='$name'
10491   shrext_cmds=".dll"
10492   need_lib_prefix=no
10493   library_names_spec='$libname${shared_ext} $libname.a'
10494   dynamic_linker='OS/2 ld.exe'
10495   shlibpath_var=LIBPATH
10496   ;;
10497
10498 osf3* | osf4* | osf5*)
10499   version_type=osf
10500   need_lib_prefix=no
10501   need_version=no
10502   soname_spec='${libname}${release}${shared_ext}$major'
10503   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10504   shlibpath_var=LD_LIBRARY_PATH
10505   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10506   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10507   ;;
10508
10509 sco3.2v5*)
10510   version_type=osf
10511   soname_spec='${libname}${release}${shared_ext}$major'
10512   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10513   shlibpath_var=LD_LIBRARY_PATH
10514   ;;
10515
10516 solaris*)
10517   version_type=linux
10518   need_lib_prefix=no
10519   need_version=no
10520   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10521   soname_spec='${libname}${release}${shared_ext}$major'
10522   shlibpath_var=LD_LIBRARY_PATH
10523   shlibpath_overrides_runpath=yes
10524   hardcode_into_libs=yes
10525   # ldd complains unless libraries are executable
10526   postinstall_cmds='chmod +x $lib'
10527   ;;
10528
10529 sunos4*)
10530   version_type=sunos
10531   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10532   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10533   shlibpath_var=LD_LIBRARY_PATH
10534   shlibpath_overrides_runpath=yes
10535   if test "$with_gnu_ld" = yes; then
10536     need_lib_prefix=no
10537   fi
10538   need_version=yes
10539   ;;
10540
10541 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10542   version_type=linux
10543   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10544   soname_spec='${libname}${release}${shared_ext}$major'
10545   shlibpath_var=LD_LIBRARY_PATH
10546   case $host_vendor in
10547     sni)
10548       shlibpath_overrides_runpath=no
10549       need_lib_prefix=no
10550       export_dynamic_flag_spec='${wl}-Blargedynsym'
10551       runpath_var=LD_RUN_PATH
10552       ;;
10553     siemens)
10554       need_lib_prefix=no
10555       ;;
10556     motorola)
10557       need_lib_prefix=no
10558       need_version=no
10559       shlibpath_overrides_runpath=no
10560       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10561       ;;
10562   esac
10563   ;;
10564
10565 sysv4*MP*)
10566   if test -d /usr/nec ;then
10567     version_type=linux
10568     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10569     soname_spec='$libname${shared_ext}.$major'
10570     shlibpath_var=LD_LIBRARY_PATH
10571   fi
10572   ;;
10573
10574 uts4*)
10575   version_type=linux
10576   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10577   soname_spec='${libname}${release}${shared_ext}$major'
10578   shlibpath_var=LD_LIBRARY_PATH
10579   ;;
10580
10581 *)
10582   dynamic_linker=no
10583   ;;
10584 esac
10585 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10586 echo "${ECHO_T}$dynamic_linker" >&6; }
10587 test "$dynamic_linker" = no && can_build_shared=no
10588
10589 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10590 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10591 hardcode_action=
10592 if test -n "$hardcode_libdir_flag_spec" || \
10593    test -n "$runpath_var" || \
10594    test "X$hardcode_automatic" = "Xyes" ; then
10595
10596   # We can hardcode non-existant directories.
10597   if test "$hardcode_direct" != no &&
10598      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10599      # have to relink, otherwise we might link with an installed library
10600      # when we should be linking with a yet-to-be-installed one
10601      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10602      test "$hardcode_minus_L" != no; then
10603     # Linking always hardcodes the temporary library directory.
10604     hardcode_action=relink
10605   else
10606     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10607     hardcode_action=immediate
10608   fi
10609 else
10610   # We cannot hardcode anything, or else we can only hardcode existing
10611   # directories.
10612   hardcode_action=unsupported
10613 fi
10614 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
10615 echo "${ECHO_T}$hardcode_action" >&6; }
10616
10617 if test "$hardcode_action" = relink; then
10618   # Fast installation is not supported
10619   enable_fast_install=no
10620 elif test "$shlibpath_overrides_runpath" = yes ||
10621      test "$enable_shared" = no; then
10622   # Fast installation is not necessary
10623   enable_fast_install=needless
10624 fi
10625
10626 striplib=
10627 old_striplib=
10628 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10629 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10630 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10631   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10632   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10633   { echo "$as_me:$LINENO: result: yes" >&5
10634 echo "${ECHO_T}yes" >&6; }
10635 else
10636 # FIXME - insert some real tests, host_os isn't really good enough
10637   case $host_os in
10638    darwin*)
10639        if test -n "$STRIP" ; then
10640          striplib="$STRIP -x"
10641          { echo "$as_me:$LINENO: result: yes" >&5
10642 echo "${ECHO_T}yes" >&6; }
10643        else
10644   { echo "$as_me:$LINENO: result: no" >&5
10645 echo "${ECHO_T}no" >&6; }
10646 fi
10647        ;;
10648    *)
10649   { echo "$as_me:$LINENO: result: no" >&5
10650 echo "${ECHO_T}no" >&6; }
10651     ;;
10652   esac
10653 fi
10654
10655 if test "x$enable_dlopen" != xyes; then
10656   enable_dlopen=unknown
10657   enable_dlopen_self=unknown
10658   enable_dlopen_self_static=unknown
10659 else
10660   lt_cv_dlopen=no
10661   lt_cv_dlopen_libs=
10662
10663   case $host_os in
10664   beos*)
10665     lt_cv_dlopen="load_add_on"
10666     lt_cv_dlopen_libs=
10667     lt_cv_dlopen_self=yes
10668     ;;
10669
10670   mingw* | pw32*)
10671     lt_cv_dlopen="LoadLibrary"
10672     lt_cv_dlopen_libs=
10673    ;;
10674
10675   cygwin*)
10676     lt_cv_dlopen="dlopen"
10677     lt_cv_dlopen_libs=
10678    ;;
10679
10680   darwin*)
10681   # if libdl is installed we need to link against it
10682     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10683 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10684 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10685   echo $ECHO_N "(cached) $ECHO_C" >&6
10686 else
10687   ac_check_lib_save_LIBS=$LIBS
10688 LIBS="-ldl  $LIBS"
10689 cat >conftest.$ac_ext <<_ACEOF
10690 /* confdefs.h.  */
10691 _ACEOF
10692 cat confdefs.h >>conftest.$ac_ext
10693 cat >>conftest.$ac_ext <<_ACEOF
10694 /* end confdefs.h.  */
10695
10696 /* Override any GCC internal prototype to avoid an error.
10697    Use char because int might match the return type of a GCC
10698    builtin and then its argument prototype would still apply.  */
10699 #ifdef __cplusplus
10700 extern "C"
10701 #endif
10702 char dlopen ();
10703 int
10704 main ()
10705 {
10706 return dlopen ();
10707   ;
10708   return 0;
10709 }
10710 _ACEOF
10711 rm -f conftest.$ac_objext conftest$ac_exeext
10712 if { (ac_try="$ac_link"
10713 case "(($ac_try" in
10714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10715   *) ac_try_echo=$ac_try;;
10716 esac
10717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10718   (eval "$ac_link") 2>conftest.er1
10719   ac_status=$?
10720   grep -v '^ *+' conftest.er1 >conftest.err
10721   rm -f conftest.er1
10722   cat conftest.err >&5
10723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10724   (exit $ac_status); } && {
10725          test -z "$ac_c_werror_flag" ||
10726          test ! -s conftest.err
10727        } && test -s conftest$ac_exeext &&
10728        $as_test_x conftest$ac_exeext; then
10729   ac_cv_lib_dl_dlopen=yes
10730 else
10731   echo "$as_me: failed program was:" >&5
10732 sed 's/^/| /' conftest.$ac_ext >&5
10733
10734         ac_cv_lib_dl_dlopen=no
10735 fi
10736
10737 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10738       conftest$ac_exeext conftest.$ac_ext
10739 LIBS=$ac_check_lib_save_LIBS
10740 fi
10741 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10742 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10743 if test $ac_cv_lib_dl_dlopen = yes; then
10744   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10745 else
10746
10747     lt_cv_dlopen="dyld"
10748     lt_cv_dlopen_libs=
10749     lt_cv_dlopen_self=yes
10750
10751 fi
10752
10753    ;;
10754
10755   *)
10756     { echo "$as_me:$LINENO: checking for shl_load" >&5
10757 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10758 if test "${ac_cv_func_shl_load+set}" = set; then
10759   echo $ECHO_N "(cached) $ECHO_C" >&6
10760 else
10761   cat >conftest.$ac_ext <<_ACEOF
10762 /* confdefs.h.  */
10763 _ACEOF
10764 cat confdefs.h >>conftest.$ac_ext
10765 cat >>conftest.$ac_ext <<_ACEOF
10766 /* end confdefs.h.  */
10767 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10768    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10769 #define shl_load innocuous_shl_load
10770
10771 /* System header to define __stub macros and hopefully few prototypes,
10772     which can conflict with char shl_load (); below.
10773     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10774     <limits.h> exists even on freestanding compilers.  */
10775
10776 #ifdef __STDC__
10777 # include <limits.h>
10778 #else
10779 # include <assert.h>
10780 #endif
10781
10782 #undef shl_load
10783
10784 /* Override any GCC internal prototype to avoid an error.
10785    Use char because int might match the return type of a GCC
10786    builtin and then its argument prototype would still apply.  */
10787 #ifdef __cplusplus
10788 extern "C"
10789 #endif
10790 char shl_load ();
10791 /* The GNU C library defines this for functions which it implements
10792     to always fail with ENOSYS.  Some functions are actually named
10793     something starting with __ and the normal name is an alias.  */
10794 #if defined __stub_shl_load || defined __stub___shl_load
10795 choke me
10796 #endif
10797
10798 int
10799 main ()
10800 {
10801 return shl_load ();
10802   ;
10803   return 0;
10804 }
10805 _ACEOF
10806 rm -f conftest.$ac_objext conftest$ac_exeext
10807 if { (ac_try="$ac_link"
10808 case "(($ac_try" in
10809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10810   *) ac_try_echo=$ac_try;;
10811 esac
10812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10813   (eval "$ac_link") 2>conftest.er1
10814   ac_status=$?
10815   grep -v '^ *+' conftest.er1 >conftest.err
10816   rm -f conftest.er1
10817   cat conftest.err >&5
10818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10819   (exit $ac_status); } && {
10820          test -z "$ac_c_werror_flag" ||
10821          test ! -s conftest.err
10822        } && test -s conftest$ac_exeext &&
10823        $as_test_x conftest$ac_exeext; then
10824   ac_cv_func_shl_load=yes
10825 else
10826   echo "$as_me: failed program was:" >&5
10827 sed 's/^/| /' conftest.$ac_ext >&5
10828
10829         ac_cv_func_shl_load=no
10830 fi
10831
10832 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10833       conftest$ac_exeext conftest.$ac_ext
10834 fi
10835 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10836 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10837 if test $ac_cv_func_shl_load = yes; then
10838   lt_cv_dlopen="shl_load"
10839 else
10840   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10841 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10842 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10843   echo $ECHO_N "(cached) $ECHO_C" >&6
10844 else
10845   ac_check_lib_save_LIBS=$LIBS
10846 LIBS="-ldld  $LIBS"
10847 cat >conftest.$ac_ext <<_ACEOF
10848 /* confdefs.h.  */
10849 _ACEOF
10850 cat confdefs.h >>conftest.$ac_ext
10851 cat >>conftest.$ac_ext <<_ACEOF
10852 /* end confdefs.h.  */
10853
10854 /* Override any GCC internal prototype to avoid an error.
10855    Use char because int might match the return type of a GCC
10856    builtin and then its argument prototype would still apply.  */
10857 #ifdef __cplusplus
10858 extern "C"
10859 #endif
10860 char shl_load ();
10861 int
10862 main ()
10863 {
10864 return shl_load ();
10865   ;
10866   return 0;
10867 }
10868 _ACEOF
10869 rm -f conftest.$ac_objext conftest$ac_exeext
10870 if { (ac_try="$ac_link"
10871 case "(($ac_try" in
10872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10873   *) ac_try_echo=$ac_try;;
10874 esac
10875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10876   (eval "$ac_link") 2>conftest.er1
10877   ac_status=$?
10878   grep -v '^ *+' conftest.er1 >conftest.err
10879   rm -f conftest.er1
10880   cat conftest.err >&5
10881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10882   (exit $ac_status); } && {
10883          test -z "$ac_c_werror_flag" ||
10884          test ! -s conftest.err
10885        } && test -s conftest$ac_exeext &&
10886        $as_test_x conftest$ac_exeext; then
10887   ac_cv_lib_dld_shl_load=yes
10888 else
10889   echo "$as_me: failed program was:" >&5
10890 sed 's/^/| /' conftest.$ac_ext >&5
10891
10892         ac_cv_lib_dld_shl_load=no
10893 fi
10894
10895 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10896       conftest$ac_exeext conftest.$ac_ext
10897 LIBS=$ac_check_lib_save_LIBS
10898 fi
10899 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10900 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10901 if test $ac_cv_lib_dld_shl_load = yes; then
10902   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10903 else
10904   { echo "$as_me:$LINENO: checking for dlopen" >&5
10905 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10906 if test "${ac_cv_func_dlopen+set}" = set; then
10907   echo $ECHO_N "(cached) $ECHO_C" >&6
10908 else
10909   cat >conftest.$ac_ext <<_ACEOF
10910 /* confdefs.h.  */
10911 _ACEOF
10912 cat confdefs.h >>conftest.$ac_ext
10913 cat >>conftest.$ac_ext <<_ACEOF
10914 /* end confdefs.h.  */
10915 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10916    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10917 #define dlopen innocuous_dlopen
10918
10919 /* System header to define __stub macros and hopefully few prototypes,
10920     which can conflict with char dlopen (); below.
10921     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10922     <limits.h> exists even on freestanding compilers.  */
10923
10924 #ifdef __STDC__
10925 # include <limits.h>
10926 #else
10927 # include <assert.h>
10928 #endif
10929
10930 #undef dlopen
10931
10932 /* Override any GCC internal prototype to avoid an error.
10933    Use char because int might match the return type of a GCC
10934    builtin and then its argument prototype would still apply.  */
10935 #ifdef __cplusplus
10936 extern "C"
10937 #endif
10938 char dlopen ();
10939 /* The GNU C library defines this for functions which it implements
10940     to always fail with ENOSYS.  Some functions are actually named
10941     something starting with __ and the normal name is an alias.  */
10942 #if defined __stub_dlopen || defined __stub___dlopen
10943 choke me
10944 #endif
10945
10946 int
10947 main ()
10948 {
10949 return dlopen ();
10950   ;
10951   return 0;
10952 }
10953 _ACEOF
10954 rm -f conftest.$ac_objext conftest$ac_exeext
10955 if { (ac_try="$ac_link"
10956 case "(($ac_try" in
10957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10958   *) ac_try_echo=$ac_try;;
10959 esac
10960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10961   (eval "$ac_link") 2>conftest.er1
10962   ac_status=$?
10963   grep -v '^ *+' conftest.er1 >conftest.err
10964   rm -f conftest.er1
10965   cat conftest.err >&5
10966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10967   (exit $ac_status); } && {
10968          test -z "$ac_c_werror_flag" ||
10969          test ! -s conftest.err
10970        } && test -s conftest$ac_exeext &&
10971        $as_test_x conftest$ac_exeext; then
10972   ac_cv_func_dlopen=yes
10973 else
10974   echo "$as_me: failed program was:" >&5
10975 sed 's/^/| /' conftest.$ac_ext >&5
10976
10977         ac_cv_func_dlopen=no
10978 fi
10979
10980 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10981       conftest$ac_exeext conftest.$ac_ext
10982 fi
10983 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10984 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10985 if test $ac_cv_func_dlopen = yes; then
10986   lt_cv_dlopen="dlopen"
10987 else
10988   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10989 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10990 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10991   echo $ECHO_N "(cached) $ECHO_C" >&6
10992 else
10993   ac_check_lib_save_LIBS=$LIBS
10994 LIBS="-ldl  $LIBS"
10995 cat >conftest.$ac_ext <<_ACEOF
10996 /* confdefs.h.  */
10997 _ACEOF
10998 cat confdefs.h >>conftest.$ac_ext
10999 cat >>conftest.$ac_ext <<_ACEOF
11000 /* end confdefs.h.  */
11001
11002 /* Override any GCC internal prototype to avoid an error.
11003    Use char because int might match the return type of a GCC
11004    builtin and then its argument prototype would still apply.  */
11005 #ifdef __cplusplus
11006 extern "C"
11007 #endif
11008 char dlopen ();
11009 int
11010 main ()
11011 {
11012 return dlopen ();
11013   ;
11014   return 0;
11015 }
11016 _ACEOF
11017 rm -f conftest.$ac_objext conftest$ac_exeext
11018 if { (ac_try="$ac_link"
11019 case "(($ac_try" in
11020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11021   *) ac_try_echo=$ac_try;;
11022 esac
11023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11024   (eval "$ac_link") 2>conftest.er1
11025   ac_status=$?
11026   grep -v '^ *+' conftest.er1 >conftest.err
11027   rm -f conftest.er1
11028   cat conftest.err >&5
11029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11030   (exit $ac_status); } && {
11031          test -z "$ac_c_werror_flag" ||
11032          test ! -s conftest.err
11033        } && test -s conftest$ac_exeext &&
11034        $as_test_x conftest$ac_exeext; then
11035   ac_cv_lib_dl_dlopen=yes
11036 else
11037   echo "$as_me: failed program was:" >&5
11038 sed 's/^/| /' conftest.$ac_ext >&5
11039
11040         ac_cv_lib_dl_dlopen=no
11041 fi
11042
11043 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11044       conftest$ac_exeext conftest.$ac_ext
11045 LIBS=$ac_check_lib_save_LIBS
11046 fi
11047 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11048 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11049 if test $ac_cv_lib_dl_dlopen = yes; then
11050   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11051 else
11052   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11053 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
11054 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11055   echo $ECHO_N "(cached) $ECHO_C" >&6
11056 else
11057   ac_check_lib_save_LIBS=$LIBS
11058 LIBS="-lsvld  $LIBS"
11059 cat >conftest.$ac_ext <<_ACEOF
11060 /* confdefs.h.  */
11061 _ACEOF
11062 cat confdefs.h >>conftest.$ac_ext
11063 cat >>conftest.$ac_ext <<_ACEOF
11064 /* end confdefs.h.  */
11065
11066 /* Override any GCC internal prototype to avoid an error.
11067    Use char because int might match the return type of a GCC
11068    builtin and then its argument prototype would still apply.  */
11069 #ifdef __cplusplus
11070 extern "C"
11071 #endif
11072 char dlopen ();
11073 int
11074 main ()
11075 {
11076 return dlopen ();
11077   ;
11078   return 0;
11079 }
11080 _ACEOF
11081 rm -f conftest.$ac_objext conftest$ac_exeext
11082 if { (ac_try="$ac_link"
11083 case "(($ac_try" in
11084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11085   *) ac_try_echo=$ac_try;;
11086 esac
11087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11088   (eval "$ac_link") 2>conftest.er1
11089   ac_status=$?
11090   grep -v '^ *+' conftest.er1 >conftest.err
11091   rm -f conftest.er1
11092   cat conftest.err >&5
11093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11094   (exit $ac_status); } && {
11095          test -z "$ac_c_werror_flag" ||
11096          test ! -s conftest.err
11097        } && test -s conftest$ac_exeext &&
11098        $as_test_x conftest$ac_exeext; then
11099   ac_cv_lib_svld_dlopen=yes
11100 else
11101   echo "$as_me: failed program was:" >&5
11102 sed 's/^/| /' conftest.$ac_ext >&5
11103
11104         ac_cv_lib_svld_dlopen=no
11105 fi
11106
11107 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11108       conftest$ac_exeext conftest.$ac_ext
11109 LIBS=$ac_check_lib_save_LIBS
11110 fi
11111 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11112 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
11113 if test $ac_cv_lib_svld_dlopen = yes; then
11114   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11115 else
11116   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11117 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11118 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11119   echo $ECHO_N "(cached) $ECHO_C" >&6
11120 else
11121   ac_check_lib_save_LIBS=$LIBS
11122 LIBS="-ldld  $LIBS"
11123 cat >conftest.$ac_ext <<_ACEOF
11124 /* confdefs.h.  */
11125 _ACEOF
11126 cat confdefs.h >>conftest.$ac_ext
11127 cat >>conftest.$ac_ext <<_ACEOF
11128 /* end confdefs.h.  */
11129
11130 /* Override any GCC internal prototype to avoid an error.
11131    Use char because int might match the return type of a GCC
11132    builtin and then its argument prototype would still apply.  */
11133 #ifdef __cplusplus
11134 extern "C"
11135 #endif
11136 char dld_link ();
11137 int
11138 main ()
11139 {
11140 return dld_link ();
11141   ;
11142   return 0;
11143 }
11144 _ACEOF
11145 rm -f conftest.$ac_objext conftest$ac_exeext
11146 if { (ac_try="$ac_link"
11147 case "(($ac_try" in
11148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11149   *) ac_try_echo=$ac_try;;
11150 esac
11151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11152   (eval "$ac_link") 2>conftest.er1
11153   ac_status=$?
11154   grep -v '^ *+' conftest.er1 >conftest.err
11155   rm -f conftest.er1
11156   cat conftest.err >&5
11157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11158   (exit $ac_status); } && {
11159          test -z "$ac_c_werror_flag" ||
11160          test ! -s conftest.err
11161        } && test -s conftest$ac_exeext &&
11162        $as_test_x conftest$ac_exeext; then
11163   ac_cv_lib_dld_dld_link=yes
11164 else
11165   echo "$as_me: failed program was:" >&5
11166 sed 's/^/| /' conftest.$ac_ext >&5
11167
11168         ac_cv_lib_dld_dld_link=no
11169 fi
11170
11171 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11172       conftest$ac_exeext conftest.$ac_ext
11173 LIBS=$ac_check_lib_save_LIBS
11174 fi
11175 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11176 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11177 if test $ac_cv_lib_dld_dld_link = yes; then
11178   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11179 fi
11180
11181
11182 fi
11183
11184
11185 fi
11186
11187
11188 fi
11189
11190
11191 fi
11192
11193
11194 fi
11195
11196     ;;
11197   esac
11198
11199   if test "x$lt_cv_dlopen" != xno; then
11200     enable_dlopen=yes
11201   else
11202     enable_dlopen=no
11203   fi
11204
11205   case $lt_cv_dlopen in
11206   dlopen)
11207     save_CPPFLAGS="$CPPFLAGS"
11208     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11209
11210     save_LDFLAGS="$LDFLAGS"
11211     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11212
11213     save_LIBS="$LIBS"
11214     LIBS="$lt_cv_dlopen_libs $LIBS"
11215
11216     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11217 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
11218 if test "${lt_cv_dlopen_self+set}" = set; then
11219   echo $ECHO_N "(cached) $ECHO_C" >&6
11220 else
11221           if test "$cross_compiling" = yes; then :
11222   lt_cv_dlopen_self=cross
11223 else
11224   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11225   lt_status=$lt_dlunknown
11226   cat > conftest.$ac_ext <<EOF
11227 #line 11227 "configure"
11228 #include "confdefs.h"
11229
11230 #if HAVE_DLFCN_H
11231 #include <dlfcn.h>
11232 #endif
11233
11234 #include <stdio.h>
11235
11236 #ifdef RTLD_GLOBAL
11237 #  define LT_DLGLOBAL           RTLD_GLOBAL
11238 #else
11239 #  ifdef DL_GLOBAL
11240 #    define LT_DLGLOBAL         DL_GLOBAL
11241 #  else
11242 #    define LT_DLGLOBAL         0
11243 #  endif
11244 #endif
11245
11246 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11247    find out it does not work in some platform. */
11248 #ifndef LT_DLLAZY_OR_NOW
11249 #  ifdef RTLD_LAZY
11250 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11251 #  else
11252 #    ifdef DL_LAZY
11253 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11254 #    else
11255 #      ifdef RTLD_NOW
11256 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11257 #      else
11258 #        ifdef DL_NOW
11259 #          define LT_DLLAZY_OR_NOW      DL_NOW
11260 #        else
11261 #          define LT_DLLAZY_OR_NOW      0
11262 #        endif
11263 #      endif
11264 #    endif
11265 #  endif
11266 #endif
11267
11268 #ifdef __cplusplus
11269 extern "C" void exit (int);
11270 #endif
11271
11272 void fnord() { int i=42;}
11273 int main ()
11274 {
11275   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11276   int status = $lt_dlunknown;
11277
11278   if (self)
11279     {
11280       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11281       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11282       /* dlclose (self); */
11283     }
11284
11285     exit (status);
11286 }
11287 EOF
11288   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11289   (eval $ac_link) 2>&5
11290   ac_status=$?
11291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11292   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11293     (./conftest; exit; ) >&5 2>/dev/null
11294     lt_status=$?
11295     case x$lt_status in
11296       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11297       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11298       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11299     esac
11300   else :
11301     # compilation failed
11302     lt_cv_dlopen_self=no
11303   fi
11304 fi
11305 rm -fr conftest*
11306
11307
11308 fi
11309 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11310 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
11311
11312     if test "x$lt_cv_dlopen_self" = xyes; then
11313       LDFLAGS="$LDFLAGS $link_static_flag"
11314       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11315 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
11316 if test "${lt_cv_dlopen_self_static+set}" = set; then
11317   echo $ECHO_N "(cached) $ECHO_C" >&6
11318 else
11319           if test "$cross_compiling" = yes; then :
11320   lt_cv_dlopen_self_static=cross
11321 else
11322   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11323   lt_status=$lt_dlunknown
11324   cat > conftest.$ac_ext <<EOF
11325 #line 11325 "configure"
11326 #include "confdefs.h"
11327
11328 #if HAVE_DLFCN_H
11329 #include <dlfcn.h>
11330 #endif
11331
11332 #include <stdio.h>
11333
11334 #ifdef RTLD_GLOBAL
11335 #  define LT_DLGLOBAL           RTLD_GLOBAL
11336 #else
11337 #  ifdef DL_GLOBAL
11338 #    define LT_DLGLOBAL         DL_GLOBAL
11339 #  else
11340 #    define LT_DLGLOBAL         0
11341 #  endif
11342 #endif
11343
11344 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11345    find out it does not work in some platform. */
11346 #ifndef LT_DLLAZY_OR_NOW
11347 #  ifdef RTLD_LAZY
11348 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11349 #  else
11350 #    ifdef DL_LAZY
11351 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11352 #    else
11353 #      ifdef RTLD_NOW
11354 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11355 #      else
11356 #        ifdef DL_NOW
11357 #          define LT_DLLAZY_OR_NOW      DL_NOW
11358 #        else
11359 #          define LT_DLLAZY_OR_NOW      0
11360 #        endif
11361 #      endif
11362 #    endif
11363 #  endif
11364 #endif
11365
11366 #ifdef __cplusplus
11367 extern "C" void exit (int);
11368 #endif
11369
11370 void fnord() { int i=42;}
11371 int main ()
11372 {
11373   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11374   int status = $lt_dlunknown;
11375
11376   if (self)
11377     {
11378       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11379       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11380       /* dlclose (self); */
11381     }
11382
11383     exit (status);
11384 }
11385 EOF
11386   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11387   (eval $ac_link) 2>&5
11388   ac_status=$?
11389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11390   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11391     (./conftest; exit; ) >&5 2>/dev/null
11392     lt_status=$?
11393     case x$lt_status in
11394       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11395       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11396       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11397     esac
11398   else :
11399     # compilation failed
11400     lt_cv_dlopen_self_static=no
11401   fi
11402 fi
11403 rm -fr conftest*
11404
11405
11406 fi
11407 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11408 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
11409     fi
11410
11411     CPPFLAGS="$save_CPPFLAGS"
11412     LDFLAGS="$save_LDFLAGS"
11413     LIBS="$save_LIBS"
11414     ;;
11415   esac
11416
11417   case $lt_cv_dlopen_self in
11418   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11419   *) enable_dlopen_self=unknown ;;
11420   esac
11421
11422   case $lt_cv_dlopen_self_static in
11423   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11424   *) enable_dlopen_self_static=unknown ;;
11425   esac
11426 fi
11427
11428
11429 # Report which librarie types wil actually be built
11430 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11431 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
11432 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
11433 echo "${ECHO_T}$can_build_shared" >&6; }
11434
11435 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11436 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
11437 test "$can_build_shared" = "no" && enable_shared=no
11438
11439 # On AIX, shared libraries and static libraries use the same namespace, and
11440 # are all built from PIC.
11441 case $host_os in
11442 aix3*)
11443   test "$enable_shared" = yes && enable_static=no
11444   if test -n "$RANLIB"; then
11445     archive_cmds="$archive_cmds~\$RANLIB \$lib"
11446     postinstall_cmds='$RANLIB $lib'
11447   fi
11448   ;;
11449
11450 aix4* | aix5*)
11451   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11452     test "$enable_shared" = yes && enable_static=no
11453   fi
11454     ;;
11455 esac
11456 { echo "$as_me:$LINENO: result: $enable_shared" >&5
11457 echo "${ECHO_T}$enable_shared" >&6; }
11458
11459 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11460 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
11461 # Make sure either enable_shared or enable_static is yes.
11462 test "$enable_shared" = yes || enable_static=yes
11463 { echo "$as_me:$LINENO: result: $enable_static" >&5
11464 echo "${ECHO_T}$enable_static" >&6; }
11465
11466 # The else clause should only fire when bootstrapping the
11467 # libtool distribution, otherwise you forgot to ship ltmain.sh
11468 # with your package, and you will get complaints that there are
11469 # no rules to generate ltmain.sh.
11470 if test -f "$ltmain"; then
11471   # See if we are running on zsh, and set the options which allow our commands through
11472   # without removal of \ escapes.
11473   if test -n "${ZSH_VERSION+set}" ; then
11474     setopt NO_GLOB_SUBST
11475   fi
11476   # Now quote all the things that may contain metacharacters while being
11477   # careful not to overquote the AC_SUBSTed values.  We take copies of the
11478   # variables and quote the copies for generation of the libtool script.
11479   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11480     SED SHELL STRIP \
11481     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11482     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11483     deplibs_check_method reload_flag reload_cmds need_locks \
11484     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11485     lt_cv_sys_global_symbol_to_c_name_address \
11486     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11487     old_postinstall_cmds old_postuninstall_cmds \
11488     compiler \
11489     CC \
11490     LD \
11491     lt_prog_compiler_wl \
11492     lt_prog_compiler_pic \
11493     lt_prog_compiler_static \
11494     lt_prog_compiler_no_builtin_flag \
11495     export_dynamic_flag_spec \
11496     thread_safe_flag_spec \
11497     whole_archive_flag_spec \
11498     enable_shared_with_static_runtimes \
11499     old_archive_cmds \
11500     old_archive_from_new_cmds \
11501     predep_objects \
11502     postdep_objects \
11503     predeps \
11504     postdeps \
11505     compiler_lib_search_path \
11506     archive_cmds \
11507     archive_expsym_cmds \
11508     postinstall_cmds \
11509     postuninstall_cmds \
11510     old_archive_from_expsyms_cmds \
11511     allow_undefined_flag \
11512     no_undefined_flag \
11513     export_symbols_cmds \
11514     hardcode_libdir_flag_spec \
11515     hardcode_libdir_flag_spec_ld \
11516     hardcode_libdir_separator \
11517     hardcode_automatic \
11518     module_cmds \
11519     module_expsym_cmds \
11520     lt_cv_prog_compiler_c_o \
11521     exclude_expsyms \
11522     include_expsyms; do
11523
11524     case $var in
11525     old_archive_cmds | \
11526     old_archive_from_new_cmds | \
11527     archive_cmds | \
11528     archive_expsym_cmds | \
11529     module_cmds | \
11530     module_expsym_cmds | \
11531     old_archive_from_expsyms_cmds | \
11532     export_symbols_cmds | \
11533     extract_expsyms_cmds | reload_cmds | finish_cmds | \
11534     postinstall_cmds | postuninstall_cmds | \
11535     old_postinstall_cmds | old_postuninstall_cmds | \
11536     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11537       # Double-quote double-evaled strings.
11538       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11539       ;;
11540     *)
11541       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11542       ;;
11543     esac
11544   done
11545
11546   case $lt_echo in
11547   *'\$0 --fallback-echo"')
11548     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11549     ;;
11550   esac
11551
11552 cfgfile="${ofile}T"
11553   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11554   $rm -f "$cfgfile"
11555   { echo "$as_me:$LINENO: creating $ofile" >&5
11556 echo "$as_me: creating $ofile" >&6;}
11557
11558   cat <<__EOF__ >> "$cfgfile"
11559 #! $SHELL
11560
11561 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11562 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11563 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11564 #
11565 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11566 # Free Software Foundation, Inc.
11567 #
11568 # This file is part of GNU Libtool:
11569 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11570 #
11571 # This program is free software; you can redistribute it and/or modify
11572 # it under the terms of the GNU General Public License as published by
11573 # the Free Software Foundation; either version 2 of the License, or
11574 # (at your option) any later version.
11575 #
11576 # This program is distributed in the hope that it will be useful, but
11577 # WITHOUT ANY WARRANTY; without even the implied warranty of
11578 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11579 # General Public License for more details.
11580 #
11581 # You should have received a copy of the GNU General Public License
11582 # along with this program; if not, write to the Free Software
11583 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11584 #
11585 # As a special exception to the GNU General Public License, if you
11586 # distribute this file as part of a program that contains a
11587 # configuration script generated by Autoconf, you may include it under
11588 # the same distribution terms that you use for the rest of that program.
11589
11590 # A sed program that does not truncate output.
11591 SED=$lt_SED
11592
11593 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11594 Xsed="$SED -e 1s/^X//"
11595
11596 # The HP-UX ksh and POSIX shell print the target directory to stdout
11597 # if CDPATH is set.
11598 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11599
11600 # The names of the tagged configurations supported by this script.
11601 available_tags=
11602
11603 # ### BEGIN LIBTOOL CONFIG
11604
11605 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11606
11607 # Shell to use when invoking shell scripts.
11608 SHELL=$lt_SHELL
11609
11610 # Whether or not to build shared libraries.
11611 build_libtool_libs=$enable_shared
11612
11613 # Whether or not to build static libraries.
11614 build_old_libs=$enable_static
11615
11616 # Whether or not to add -lc for building shared libraries.
11617 build_libtool_need_lc=$archive_cmds_need_lc
11618
11619 # Whether or not to disallow shared libs when runtime libs are static
11620 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11621
11622 # Whether or not to optimize for fast installation.
11623 fast_install=$enable_fast_install
11624
11625 # The host system.
11626 host_alias=$host_alias
11627 host=$host
11628 host_os=$host_os
11629
11630 # The build system.
11631 build_alias=$build_alias
11632 build=$build
11633 build_os=$build_os
11634
11635 # An echo program that does not interpret backslashes.
11636 echo=$lt_echo
11637
11638 # The archiver.
11639 AR=$lt_AR
11640 AR_FLAGS=$lt_AR_FLAGS
11641
11642 # A C compiler.
11643 LTCC=$lt_LTCC
11644
11645 # A language-specific compiler.
11646 CC=$lt_compiler
11647
11648 # Is the compiler the GNU C compiler?
11649 with_gcc=$GCC
11650
11651 # An ERE matcher.
11652 EGREP=$lt_EGREP
11653
11654 # The linker used to build libraries.
11655 LD=$lt_LD
11656
11657 # Whether we need hard or soft links.
11658 LN_S=$lt_LN_S
11659
11660 # A BSD-compatible nm program.
11661 NM=$lt_NM
11662
11663 # A symbol stripping program
11664 STRIP=$lt_STRIP
11665
11666 # Used to examine libraries when file_magic_cmd begins "file"
11667 MAGIC_CMD=$MAGIC_CMD
11668
11669 # Used on cygwin: DLL creation program.
11670 DLLTOOL="$DLLTOOL"
11671
11672 # Used on cygwin: object dumper.
11673 OBJDUMP="$OBJDUMP"
11674
11675 # Used on cygwin: assembler.
11676 AS="$AS"
11677
11678 # The name of the directory that contains temporary libtool files.
11679 objdir=$objdir
11680
11681 # How to create reloadable object files.
11682 reload_flag=$lt_reload_flag
11683 reload_cmds=$lt_reload_cmds
11684
11685 # How to pass a linker flag through the compiler.
11686 wl=$lt_lt_prog_compiler_wl
11687
11688 # Object file suffix (normally "o").
11689 objext="$ac_objext"
11690
11691 # Old archive suffix (normally "a").
11692 libext="$libext"
11693
11694 # Shared library suffix (normally ".so").
11695 shrext_cmds='$shrext_cmds'
11696
11697 # Executable file suffix (normally "").
11698 exeext="$exeext"
11699
11700 # Additional compiler flags for building library objects.
11701 pic_flag=$lt_lt_prog_compiler_pic
11702 pic_mode=$pic_mode
11703
11704 # What is the maximum length of a command?
11705 max_cmd_len=$lt_cv_sys_max_cmd_len
11706
11707 # Does compiler simultaneously support -c and -o options?
11708 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11709
11710 # Must we lock files when doing compilation?
11711 need_locks=$lt_need_locks
11712
11713 # Do we need the lib prefix for modules?
11714 need_lib_prefix=$need_lib_prefix
11715
11716 # Do we need a version for libraries?
11717 need_version=$need_version
11718
11719 # Whether dlopen is supported.
11720 dlopen_support=$enable_dlopen
11721
11722 # Whether dlopen of programs is supported.
11723 dlopen_self=$enable_dlopen_self
11724
11725 # Whether dlopen of statically linked programs is supported.
11726 dlopen_self_static=$enable_dlopen_self_static
11727
11728 # Compiler flag to prevent dynamic linking.
11729 link_static_flag=$lt_lt_prog_compiler_static
11730
11731 # Compiler flag to turn off builtin functions.
11732 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11733
11734 # Compiler flag to allow reflexive dlopens.
11735 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11736
11737 # Compiler flag to generate shared objects directly from archives.
11738 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11739
11740 # Compiler flag to generate thread-safe objects.
11741 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11742
11743 # Library versioning type.
11744 version_type=$version_type
11745
11746 # Format of library name prefix.
11747 libname_spec=$lt_libname_spec
11748
11749 # List of archive names.  First name is the real one, the rest are links.
11750 # The last name is the one that the linker finds with -lNAME.
11751 library_names_spec=$lt_library_names_spec
11752
11753 # The coded name of the library, if different from the real name.
11754 soname_spec=$lt_soname_spec
11755
11756 # Commands used to build and install an old-style archive.
11757 RANLIB=$lt_RANLIB
11758 old_archive_cmds=$lt_old_archive_cmds
11759 old_postinstall_cmds=$lt_old_postinstall_cmds
11760 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11761
11762 # Create an old-style archive from a shared archive.
11763 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11764
11765 # Create a temporary old-style archive to link instead of a shared archive.
11766 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11767
11768 # Commands used to build and install a shared archive.
11769 archive_cmds=$lt_archive_cmds
11770 archive_expsym_cmds=$lt_archive_expsym_cmds
11771 postinstall_cmds=$lt_postinstall_cmds
11772 postuninstall_cmds=$lt_postuninstall_cmds
11773
11774 # Commands used to build a loadable module (assumed same as above if empty)
11775 module_cmds=$lt_module_cmds
11776 module_expsym_cmds=$lt_module_expsym_cmds
11777
11778 # Commands to strip libraries.
11779 old_striplib=$lt_old_striplib
11780 striplib=$lt_striplib
11781
11782 # Dependencies to place before the objects being linked to create a
11783 # shared library.
11784 predep_objects=$lt_predep_objects
11785
11786 # Dependencies to place after the objects being linked to create a
11787 # shared library.
11788 postdep_objects=$lt_postdep_objects
11789
11790 # Dependencies to place before the objects being linked to create a
11791 # shared library.
11792 predeps=$lt_predeps
11793
11794 # Dependencies to place after the objects being linked to create a
11795 # shared library.
11796 postdeps=$lt_postdeps
11797
11798 # The library search path used internally by the compiler when linking
11799 # a shared library.
11800 compiler_lib_search_path=$lt_compiler_lib_search_path
11801
11802 # Method to check whether dependent libraries are shared objects.
11803 deplibs_check_method=$lt_deplibs_check_method
11804
11805 # Command to use when deplibs_check_method == file_magic.
11806 file_magic_cmd=$lt_file_magic_cmd
11807
11808 # Flag that allows shared libraries with undefined symbols to be built.
11809 allow_undefined_flag=$lt_allow_undefined_flag
11810
11811 # Flag that forces no undefined symbols.
11812 no_undefined_flag=$lt_no_undefined_flag
11813
11814 # Commands used to finish a libtool library installation in a directory.
11815 finish_cmds=$lt_finish_cmds
11816
11817 # Same as above, but a single script fragment to be evaled but not shown.
11818 finish_eval=$lt_finish_eval
11819
11820 # Take the output of nm and produce a listing of raw symbols and C names.
11821 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11822
11823 # Transform the output of nm in a proper C declaration
11824 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11825
11826 # Transform the output of nm in a C name address pair
11827 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11828
11829 # This is the shared library runtime path variable.
11830 runpath_var=$runpath_var
11831
11832 # This is the shared library path variable.
11833 shlibpath_var=$shlibpath_var
11834
11835 # Is shlibpath searched before the hard-coded library search path?
11836 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11837
11838 # How to hardcode a shared library path into an executable.
11839 hardcode_action=$hardcode_action
11840
11841 # Whether we should hardcode library paths into libraries.
11842 hardcode_into_libs=$hardcode_into_libs
11843
11844 # Flag to hardcode \$libdir into a binary during linking.
11845 # This must work even if \$libdir does not exist.
11846 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11847
11848 # If ld is used when linking, flag to hardcode \$libdir into
11849 # a binary during linking. This must work even if \$libdir does
11850 # not exist.
11851 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11852
11853 # Whether we need a single -rpath flag with a separated argument.
11854 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11855
11856 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11857 # resulting binary.
11858 hardcode_direct=$hardcode_direct
11859
11860 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11861 # resulting binary.
11862 hardcode_minus_L=$hardcode_minus_L
11863
11864 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11865 # the resulting binary.
11866 hardcode_shlibpath_var=$hardcode_shlibpath_var
11867
11868 # Set to yes if building a shared library automatically hardcodes DIR into the library
11869 # and all subsequent libraries and executables linked against it.
11870 hardcode_automatic=$hardcode_automatic
11871
11872 # Variables whose values should be saved in libtool wrapper scripts and
11873 # restored at relink time.
11874 variables_saved_for_relink="$variables_saved_for_relink"
11875
11876 # Whether libtool must link a program against all its dependency libraries.
11877 link_all_deplibs=$link_all_deplibs
11878
11879 # Compile-time system search path for libraries
11880 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11881
11882 # Run-time system search path for libraries
11883 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11884
11885 # Fix the shell variable \$srcfile for the compiler.
11886 fix_srcfile_path="$fix_srcfile_path"
11887
11888 # Set to yes if exported symbols are required.
11889 always_export_symbols=$always_export_symbols
11890
11891 # The commands to list exported symbols.
11892 export_symbols_cmds=$lt_export_symbols_cmds
11893
11894 # The commands to extract the exported symbol list from a shared archive.
11895 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11896
11897 # Symbols that should not be listed in the preloaded symbols.
11898 exclude_expsyms=$lt_exclude_expsyms
11899
11900 # Symbols that must always be exported.
11901 include_expsyms=$lt_include_expsyms
11902
11903 # ### END LIBTOOL CONFIG
11904
11905 __EOF__
11906
11907
11908   case $host_os in
11909   aix3*)
11910     cat <<\EOF >> "$cfgfile"
11911
11912 # AIX sometimes has problems with the GCC collect2 program.  For some
11913 # reason, if we set the COLLECT_NAMES environment variable, the problems
11914 # vanish in a puff of smoke.
11915 if test "X${COLLECT_NAMES+set}" != Xset; then
11916   COLLECT_NAMES=
11917   export COLLECT_NAMES
11918 fi
11919 EOF
11920     ;;
11921   esac
11922
11923   # We use sed instead of cat because bash on DJGPP gets confused if
11924   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11925   # text mode, it properly converts lines to CR/LF.  This bash problem
11926   # is reportedly fixed, but why not run on old versions too?
11927   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11928
11929   mv -f "$cfgfile" "$ofile" || \
11930     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11931   chmod +x "$ofile"
11932
11933 else
11934   # If there is no Makefile yet, we rely on a make rule to execute
11935   # `config.status --recheck' to rerun these tests and create the
11936   # libtool script then.
11937   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11938   if test -f "$ltmain_in"; then
11939     test -f Makefile && make "$ltmain"
11940   fi
11941 fi
11942
11943
11944 ac_ext=c
11945 ac_cpp='$CPP $CPPFLAGS'
11946 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11947 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11948 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11949
11950 CC="$lt_save_CC"
11951
11952
11953 # Check whether --with-tags was given.
11954 if test "${with_tags+set}" = set; then
11955   withval=$with_tags; tagnames="$withval"
11956 fi
11957
11958
11959 if test -f "$ltmain" && test -n "$tagnames"; then
11960   if test ! -f "${ofile}"; then
11961     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11962 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11963   fi
11964
11965   if test -z "$LTCC"; then
11966     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11967     if test -z "$LTCC"; then
11968       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11969 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11970     else
11971       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11972 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11973     fi
11974   fi
11975
11976   # Extract list of available tagged configurations in $ofile.
11977   # Note that this assumes the entire list is on one line.
11978   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11979
11980   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11981   for tagname in $tagnames; do
11982     IFS="$lt_save_ifs"
11983     # Check whether tagname contains only valid characters
11984     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11985     "") ;;
11986     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11987 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11988    { (exit 1); exit 1; }; }
11989         ;;
11990     esac
11991
11992     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11993     then
11994       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11995 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11996    { (exit 1); exit 1; }; }
11997     fi
11998
11999     # Update the list of available tags.
12000     if test -n "$tagname"; then
12001       echo appending configuration tag \"$tagname\" to $ofile
12002
12003       case $tagname in
12004       CXX)
12005         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12006             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12007             (test "X$CXX" != "Xg++"))) ; then
12008           ac_ext=cpp
12009 ac_cpp='$CXXCPP $CPPFLAGS'
12010 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12011 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12012 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12013
12014
12015
12016
12017 archive_cmds_need_lc_CXX=no
12018 allow_undefined_flag_CXX=
12019 always_export_symbols_CXX=no
12020 archive_expsym_cmds_CXX=
12021 export_dynamic_flag_spec_CXX=
12022 hardcode_direct_CXX=no
12023 hardcode_libdir_flag_spec_CXX=
12024 hardcode_libdir_flag_spec_ld_CXX=
12025 hardcode_libdir_separator_CXX=
12026 hardcode_minus_L_CXX=no
12027 hardcode_automatic_CXX=no
12028 module_cmds_CXX=
12029 module_expsym_cmds_CXX=
12030 link_all_deplibs_CXX=unknown
12031 old_archive_cmds_CXX=$old_archive_cmds
12032 no_undefined_flag_CXX=
12033 whole_archive_flag_spec_CXX=
12034 enable_shared_with_static_runtimes_CXX=no
12035
12036 # Dependencies to place before and after the object being linked:
12037 predep_objects_CXX=
12038 postdep_objects_CXX=
12039 predeps_CXX=
12040 postdeps_CXX=
12041 compiler_lib_search_path_CXX=
12042
12043 # Source file extension for C++ test sources.
12044 ac_ext=cpp
12045
12046 # Object file extension for compiled C++ test sources.
12047 objext=o
12048 objext_CXX=$objext
12049
12050 # Code to be used in simple compile tests
12051 lt_simple_compile_test_code="int some_variable = 0;\n"
12052
12053 # Code to be used in simple link tests
12054 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
12055
12056 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12057
12058 # If no C compiler was specified, use CC.
12059 LTCC=${LTCC-"$CC"}
12060
12061 # Allow CC to be a program name with arguments.
12062 compiler=$CC
12063
12064
12065 # save warnings/boilerplate of simple test code
12066 ac_outfile=conftest.$ac_objext
12067 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
12068 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
12069 _lt_compiler_boilerplate=`cat conftest.err`
12070 $rm conftest*
12071
12072 ac_outfile=conftest.$ac_objext
12073 printf "$lt_simple_link_test_code" >conftest.$ac_ext
12074 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
12075 _lt_linker_boilerplate=`cat conftest.err`
12076 $rm conftest*
12077
12078
12079 # Allow CC to be a program name with arguments.
12080 lt_save_CC=$CC
12081 lt_save_LD=$LD
12082 lt_save_GCC=$GCC
12083 GCC=$GXX
12084 lt_save_with_gnu_ld=$with_gnu_ld
12085 lt_save_path_LD=$lt_cv_path_LD
12086 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12087   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12088 else
12089   unset lt_cv_prog_gnu_ld
12090 fi
12091 if test -n "${lt_cv_path_LDCXX+set}"; then
12092   lt_cv_path_LD=$lt_cv_path_LDCXX
12093 else
12094   unset lt_cv_path_LD
12095 fi
12096 test -z "${LDCXX+set}" || LD=$LDCXX
12097 CC=${CXX-"c++"}
12098 compiler=$CC
12099 compiler_CXX=$CC
12100 for cc_temp in $compiler""; do
12101   case $cc_temp in
12102     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12103     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12104     \-*) ;;
12105     *) break;;
12106   esac
12107 done
12108 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12109
12110
12111 # We don't want -fno-exception wen compiling C++ code, so set the
12112 # no_builtin_flag separately
12113 if test "$GXX" = yes; then
12114   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12115 else
12116   lt_prog_compiler_no_builtin_flag_CXX=
12117 fi
12118
12119 if test "$GXX" = yes; then
12120   # Set up default GNU C++ configuration
12121
12122
12123 # Check whether --with-gnu-ld was given.
12124 if test "${with_gnu_ld+set}" = set; then
12125   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12126 else
12127   with_gnu_ld=no
12128 fi
12129
12130 ac_prog=ld
12131 if test "$GCC" = yes; then
12132   # Check if gcc -print-prog-name=ld gives a path.
12133   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12134 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12135   case $host in
12136   *-*-mingw*)
12137     # gcc leaves a trailing carriage return which upsets mingw
12138     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12139   *)
12140     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12141   esac
12142   case $ac_prog in
12143     # Accept absolute paths.
12144     [\\/]* | ?:[\\/]*)
12145       re_direlt='/[^/][^/]*/\.\./'
12146       # Canonicalize the pathname of ld
12147       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12148       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12149         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12150       done
12151       test -z "$LD" && LD="$ac_prog"
12152       ;;
12153   "")
12154     # If it fails, then pretend we aren't using GCC.
12155     ac_prog=ld
12156     ;;
12157   *)
12158     # If it is relative, then search for the first ld in PATH.
12159     with_gnu_ld=unknown
12160     ;;
12161   esac
12162 elif test "$with_gnu_ld" = yes; then
12163   { echo "$as_me:$LINENO: checking for GNU ld" >&5
12164 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12165 else
12166   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12167 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12168 fi
12169 if test "${lt_cv_path_LD+set}" = set; then
12170   echo $ECHO_N "(cached) $ECHO_C" >&6
12171 else
12172   if test -z "$LD"; then
12173   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12174   for ac_dir in $PATH; do
12175     IFS="$lt_save_ifs"
12176     test -z "$ac_dir" && ac_dir=.
12177     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12178       lt_cv_path_LD="$ac_dir/$ac_prog"
12179       # Check to see if the program is GNU ld.  I'd rather use --version,
12180       # but apparently some variants of GNU ld only accept -v.
12181       # Break only if it was the GNU/non-GNU ld that we prefer.
12182       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12183       *GNU* | *'with BFD'*)
12184         test "$with_gnu_ld" != no && break
12185         ;;
12186       *)
12187         test "$with_gnu_ld" != yes && break
12188         ;;
12189       esac
12190     fi
12191   done
12192   IFS="$lt_save_ifs"
12193 else
12194   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12195 fi
12196 fi
12197
12198 LD="$lt_cv_path_LD"
12199 if test -n "$LD"; then
12200   { echo "$as_me:$LINENO: result: $LD" >&5
12201 echo "${ECHO_T}$LD" >&6; }
12202 else
12203   { echo "$as_me:$LINENO: result: no" >&5
12204 echo "${ECHO_T}no" >&6; }
12205 fi
12206 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12207 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12208    { (exit 1); exit 1; }; }
12209 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12210 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12211 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12212   echo $ECHO_N "(cached) $ECHO_C" >&6
12213 else
12214   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12215 case `$LD -v 2>&1 </dev/null` in
12216 *GNU* | *'with BFD'*)
12217   lt_cv_prog_gnu_ld=yes
12218   ;;
12219 *)
12220   lt_cv_prog_gnu_ld=no
12221   ;;
12222 esac
12223 fi
12224 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12225 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12226 with_gnu_ld=$lt_cv_prog_gnu_ld
12227
12228
12229
12230   # Check if GNU C++ uses GNU ld as the underlying linker, since the
12231   # archiving commands below assume that GNU ld is being used.
12232   if test "$with_gnu_ld" = yes; then
12233     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12234     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'
12235
12236     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12237     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12238
12239     # If archive_cmds runs LD, not CC, wlarc should be empty
12240     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12241     #     investigate it a little bit more. (MM)
12242     wlarc='${wl}'
12243
12244     # ancient GNU ld didn't support --whole-archive et. al.
12245     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
12246         grep 'no-whole-archive' > /dev/null; then
12247       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12248     else
12249       whole_archive_flag_spec_CXX=
12250     fi
12251   else
12252     with_gnu_ld=no
12253     wlarc=
12254
12255     # A generic and very simple default shared library creation
12256     # command for GNU C++ for the case where it uses the native
12257     # linker, instead of GNU ld.  If possible, this setting should
12258     # overridden to take advantage of the native linker features on
12259     # the platform it is being used on.
12260     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12261   fi
12262
12263   # Commands to make compiler produce verbose output that lists
12264   # what "hidden" libraries, object files and flags are used when
12265   # linking a shared library.
12266   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12267
12268 else
12269   GXX=no
12270   with_gnu_ld=no
12271   wlarc=
12272 fi
12273
12274 # PORTME: fill in a description of your system's C++ link characteristics
12275 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12276 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12277 ld_shlibs_CXX=yes
12278 case $host_os in
12279   aix3*)
12280     # FIXME: insert proper C++ library support
12281     ld_shlibs_CXX=no
12282     ;;
12283   aix4* | aix5*)
12284     if test "$host_cpu" = ia64; then
12285       # On IA64, the linker does run time linking by default, so we don't
12286       # have to do anything special.
12287       aix_use_runtimelinking=no
12288       exp_sym_flag='-Bexport'
12289       no_entry_flag=""
12290     else
12291       aix_use_runtimelinking=no
12292
12293       # Test if we are trying to use run time linking or normal
12294       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12295       # need to do runtime linking.
12296       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12297         for ld_flag in $LDFLAGS; do
12298           case $ld_flag in
12299           *-brtl*)
12300             aix_use_runtimelinking=yes
12301             break
12302             ;;
12303           esac
12304         done
12305       esac
12306
12307       exp_sym_flag='-bexport'
12308       no_entry_flag='-bnoentry'
12309     fi
12310
12311     # When large executables or shared objects are built, AIX ld can
12312     # have problems creating the table of contents.  If linking a library
12313     # or program results in "error TOC overflow" add -mminimal-toc to
12314     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12315     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12316
12317     archive_cmds_CXX=''
12318     hardcode_direct_CXX=yes
12319     hardcode_libdir_separator_CXX=':'
12320     link_all_deplibs_CXX=yes
12321
12322     if test "$GXX" = yes; then
12323       case $host_os in aix4.[012]|aix4.[012].*)
12324       # We only want to do this on AIX 4.2 and lower, the check
12325       # below for broken collect2 doesn't work under 4.3+
12326         collect2name=`${CC} -print-prog-name=collect2`
12327         if test -f "$collect2name" && \
12328            strings "$collect2name" | grep resolve_lib_name >/dev/null
12329         then
12330           # We have reworked collect2
12331           hardcode_direct_CXX=yes
12332         else
12333           # We have old collect2
12334           hardcode_direct_CXX=unsupported
12335           # It fails to find uninstalled libraries when the uninstalled
12336           # path is not listed in the libpath.  Setting hardcode_minus_L
12337           # to unsupported forces relinking
12338           hardcode_minus_L_CXX=yes
12339           hardcode_libdir_flag_spec_CXX='-L$libdir'
12340           hardcode_libdir_separator_CXX=
12341         fi
12342       esac
12343       shared_flag='-shared'
12344       if test "$aix_use_runtimelinking" = yes; then
12345         shared_flag="$shared_flag "'${wl}-G'
12346       fi
12347     else
12348       # not using gcc
12349       if test "$host_cpu" = ia64; then
12350         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12351         # chokes on -Wl,-G. The following line is correct:
12352         shared_flag='-G'
12353       else
12354         if test "$aix_use_runtimelinking" = yes; then
12355           shared_flag='${wl}-G'
12356         else
12357           shared_flag='${wl}-bM:SRE'
12358         fi
12359       fi
12360     fi
12361
12362     # It seems that -bexpall does not export symbols beginning with
12363     # underscore (_), so it is better to generate a list of symbols to export.
12364     always_export_symbols_CXX=yes
12365     if test "$aix_use_runtimelinking" = yes; then
12366       # Warning - without using the other runtime loading flags (-brtl),
12367       # -berok will link without error, but may produce a broken library.
12368       allow_undefined_flag_CXX='-berok'
12369       # Determine the default libpath from the value encoded in an empty executable.
12370       cat >conftest.$ac_ext <<_ACEOF
12371 /* confdefs.h.  */
12372 _ACEOF
12373 cat confdefs.h >>conftest.$ac_ext
12374 cat >>conftest.$ac_ext <<_ACEOF
12375 /* end confdefs.h.  */
12376
12377 int
12378 main ()
12379 {
12380
12381   ;
12382   return 0;
12383 }
12384 _ACEOF
12385 rm -f conftest.$ac_objext conftest$ac_exeext
12386 if { (ac_try="$ac_link"
12387 case "(($ac_try" in
12388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12389   *) ac_try_echo=$ac_try;;
12390 esac
12391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12392   (eval "$ac_link") 2>conftest.er1
12393   ac_status=$?
12394   grep -v '^ *+' conftest.er1 >conftest.err
12395   rm -f conftest.er1
12396   cat conftest.err >&5
12397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12398   (exit $ac_status); } && {
12399          test -z "$ac_cxx_werror_flag" ||
12400          test ! -s conftest.err
12401        } && test -s conftest$ac_exeext &&
12402        $as_test_x conftest$ac_exeext; then
12403
12404 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12405 }'`
12406 # Check for a 64-bit object if we didn't find anything.
12407 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12408 }'`; fi
12409 else
12410   echo "$as_me: failed program was:" >&5
12411 sed 's/^/| /' conftest.$ac_ext >&5
12412
12413
12414 fi
12415
12416 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12417       conftest$ac_exeext conftest.$ac_ext
12418 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12419
12420       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12421
12422       archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12423      else
12424       if test "$host_cpu" = ia64; then
12425         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12426         allow_undefined_flag_CXX="-z nodefs"
12427         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
12428       else
12429         # Determine the default libpath from the value encoded in an empty executable.
12430         cat >conftest.$ac_ext <<_ACEOF
12431 /* confdefs.h.  */
12432 _ACEOF
12433 cat confdefs.h >>conftest.$ac_ext
12434 cat >>conftest.$ac_ext <<_ACEOF
12435 /* end confdefs.h.  */
12436
12437 int
12438 main ()
12439 {
12440
12441   ;
12442   return 0;
12443 }
12444 _ACEOF
12445 rm -f conftest.$ac_objext conftest$ac_exeext
12446 if { (ac_try="$ac_link"
12447 case "(($ac_try" in
12448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12449   *) ac_try_echo=$ac_try;;
12450 esac
12451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12452   (eval "$ac_link") 2>conftest.er1
12453   ac_status=$?
12454   grep -v '^ *+' conftest.er1 >conftest.err
12455   rm -f conftest.er1
12456   cat conftest.err >&5
12457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12458   (exit $ac_status); } && {
12459          test -z "$ac_cxx_werror_flag" ||
12460          test ! -s conftest.err
12461        } && test -s conftest$ac_exeext &&
12462        $as_test_x conftest$ac_exeext; then
12463
12464 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12465 }'`
12466 # Check for a 64-bit object if we didn't find anything.
12467 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12468 }'`; fi
12469 else
12470   echo "$as_me: failed program was:" >&5
12471 sed 's/^/| /' conftest.$ac_ext >&5
12472
12473
12474 fi
12475
12476 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12477       conftest$ac_exeext conftest.$ac_ext
12478 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12479
12480         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12481         # Warning - without using the other run time loading flags,
12482         # -berok will link without error, but may produce a broken library.
12483         no_undefined_flag_CXX=' ${wl}-bernotok'
12484         allow_undefined_flag_CXX=' ${wl}-berok'
12485         # -bexpall does not export symbols beginning with underscore (_)
12486         always_export_symbols_CXX=yes
12487         # Exported symbols can be pulled into shared objects from archives
12488         whole_archive_flag_spec_CXX=' '
12489         archive_cmds_need_lc_CXX=yes
12490         # This is similar to how AIX traditionally builds its shared libraries.
12491         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
12492       fi
12493     fi
12494     ;;
12495   chorus*)
12496     case $cc_basename in
12497       *)
12498         # FIXME: insert proper C++ library support
12499         ld_shlibs_CXX=no
12500         ;;
12501     esac
12502     ;;
12503
12504
12505   cygwin* | mingw* | pw32*)
12506     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12507     # as there is no search path for DLLs.
12508     hardcode_libdir_flag_spec_CXX='-L$libdir'
12509     allow_undefined_flag_CXX=unsupported
12510     always_export_symbols_CXX=no
12511     enable_shared_with_static_runtimes_CXX=yes
12512
12513     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12514       archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12515       # If the export-symbols file already is a .def file (1st line
12516       # is EXPORTS), use it as is; otherwise, prepend...
12517       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12518         cp $export_symbols $output_objdir/$soname.def;
12519       else
12520         echo EXPORTS > $output_objdir/$soname.def;
12521         cat $export_symbols >> $output_objdir/$soname.def;
12522       fi~
12523       $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12524     else
12525       ld_shlibs_CXX=no
12526     fi
12527   ;;
12528       darwin* | rhapsody*)
12529         case $host_os in
12530         rhapsody* | darwin1.[012])
12531          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
12532          ;;
12533        *) # Darwin 1.3 on
12534          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12535            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12536          else
12537            case ${MACOSX_DEPLOYMENT_TARGET} in
12538              10.[012])
12539                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12540                ;;
12541              10.*)
12542                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
12543                ;;
12544            esac
12545          fi
12546          ;;
12547         esac
12548       archive_cmds_need_lc_CXX=no
12549       hardcode_direct_CXX=no
12550       hardcode_automatic_CXX=yes
12551       hardcode_shlibpath_var_CXX=unsupported
12552       whole_archive_flag_spec_CXX=''
12553       link_all_deplibs_CXX=yes
12554
12555     if test "$GXX" = yes ; then
12556       lt_int_apple_cc_single_mod=no
12557       output_verbose_link_cmd='echo'
12558       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
12559        lt_int_apple_cc_single_mod=yes
12560       fi
12561       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12562        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12563       else
12564           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'
12565         fi
12566         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12567         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12568           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12569             archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12570           else
12571             archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12572           fi
12573             module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12574       else
12575       case $cc_basename in
12576         xlc*)
12577          output_verbose_link_cmd='echo'
12578           archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12579           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12580           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12581           archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12582           module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12583           ;;
12584        *)
12585          ld_shlibs_CXX=no
12586           ;;
12587       esac
12588       fi
12589         ;;
12590
12591   dgux*)
12592     case $cc_basename in
12593       ec++*)
12594         # FIXME: insert proper C++ library support
12595         ld_shlibs_CXX=no
12596         ;;
12597       ghcx*)
12598         # Green Hills C++ Compiler
12599         # FIXME: insert proper C++ library support
12600         ld_shlibs_CXX=no
12601         ;;
12602       *)
12603         # FIXME: insert proper C++ library support
12604         ld_shlibs_CXX=no
12605         ;;
12606     esac
12607     ;;
12608   freebsd[12]*)
12609     # C++ shared libraries reported to be fairly broken before switch to ELF
12610     ld_shlibs_CXX=no
12611     ;;
12612   freebsd-elf*)
12613     archive_cmds_need_lc_CXX=no
12614     ;;
12615   freebsd* | kfreebsd*-gnu | dragonfly*)
12616     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12617     # conventions
12618     ld_shlibs_CXX=yes
12619     ;;
12620   gnu*)
12621     ;;
12622   hpux9*)
12623     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12624     hardcode_libdir_separator_CXX=:
12625     export_dynamic_flag_spec_CXX='${wl}-E'
12626     hardcode_direct_CXX=yes
12627     hardcode_minus_L_CXX=yes # Not in the search PATH,
12628                                 # but as the default
12629                                 # location of the library.
12630
12631     case $cc_basename in
12632     CC*)
12633       # FIXME: insert proper C++ library support
12634       ld_shlibs_CXX=no
12635       ;;
12636     aCC*)
12637       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'
12638       # Commands to make compiler produce verbose output that lists
12639       # what "hidden" libraries, object files and flags are used when
12640       # linking a shared library.
12641       #
12642       # There doesn't appear to be a way to prevent this compiler from
12643       # explicitly linking system object files so we need to strip them
12644       # from the output so that they don't get included in the library
12645       # dependencies.
12646       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 $list'
12647       ;;
12648     *)
12649       if test "$GXX" = yes; then
12650         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'
12651       else
12652         # FIXME: insert proper C++ library support
12653         ld_shlibs_CXX=no
12654       fi
12655       ;;
12656     esac
12657     ;;
12658   hpux10*|hpux11*)
12659     if test $with_gnu_ld = no; then
12660       case $host_cpu in
12661       hppa*64*)
12662         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12663         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
12664         hardcode_libdir_separator_CXX=:
12665         ;;
12666       ia64*)
12667         hardcode_libdir_flag_spec_CXX='-L$libdir'
12668         ;;
12669       *)
12670         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12671         hardcode_libdir_separator_CXX=:
12672         export_dynamic_flag_spec_CXX='${wl}-E'
12673         ;;
12674       esac
12675     fi
12676     case $host_cpu in
12677     hppa*64*)
12678       hardcode_direct_CXX=no
12679       hardcode_shlibpath_var_CXX=no
12680       ;;
12681     ia64*)
12682       hardcode_direct_CXX=no
12683       hardcode_shlibpath_var_CXX=no
12684       hardcode_minus_L_CXX=yes # Not in the search PATH,
12685                                               # but as the default
12686                                               # location of the library.
12687       ;;
12688     *)
12689       hardcode_direct_CXX=yes
12690       hardcode_minus_L_CXX=yes # Not in the search PATH,
12691                                               # but as the default
12692                                               # location of the library.
12693       ;;
12694     esac
12695
12696     case $cc_basename in
12697       CC*)
12698         # FIXME: insert proper C++ library support
12699         ld_shlibs_CXX=no
12700         ;;
12701       aCC*)
12702         case $host_cpu in
12703         hppa*64*|ia64*)
12704           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
12705           ;;
12706         *)
12707           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12708           ;;
12709         esac
12710         # Commands to make compiler produce verbose output that lists
12711         # what "hidden" libraries, object files and flags are used when
12712         # linking a shared library.
12713         #
12714         # There doesn't appear to be a way to prevent this compiler from
12715         # explicitly linking system object files so we need to strip them
12716         # from the output so that they don't get included in the library
12717         # dependencies.
12718         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 $list'
12719         ;;
12720       *)
12721         if test "$GXX" = yes; then
12722           if test $with_gnu_ld = no; then
12723             case $host_cpu in
12724             ia64*|hppa*64*)
12725               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
12726               ;;
12727             *)
12728               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'
12729               ;;
12730             esac
12731           fi
12732         else
12733           # FIXME: insert proper C++ library support
12734           ld_shlibs_CXX=no
12735         fi
12736         ;;
12737     esac
12738     ;;
12739   irix5* | irix6*)
12740     case $cc_basename in
12741       CC*)
12742         # SGI C++
12743         archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12744
12745         # Archives containing C++ object files must be created using
12746         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12747         # necessary to make sure instantiated templates are included
12748         # in the archive.
12749         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12750         ;;
12751       *)
12752         if test "$GXX" = yes; then
12753           if test "$with_gnu_ld" = no; then
12754             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12755           else
12756             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
12757           fi
12758         fi
12759         link_all_deplibs_CXX=yes
12760         ;;
12761     esac
12762     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12763     hardcode_libdir_separator_CXX=:
12764     ;;
12765   linux*)
12766     case $cc_basename in
12767       KCC*)
12768         # Kuck and Associates, Inc. (KAI) C++ Compiler
12769
12770         # KCC will only create a shared library if the output file
12771         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12772         # to its proper name (with version) after linking.
12773         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'
12774         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'
12775         # Commands to make compiler produce verbose output that lists
12776         # what "hidden" libraries, object files and flags are used when
12777         # linking a shared library.
12778         #
12779         # There doesn't appear to be a way to prevent this compiler from
12780         # explicitly linking system object files so we need to strip them
12781         # from the output so that they don't get included in the library
12782         # dependencies.
12783         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 $list'
12784
12785         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12786         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12787
12788         # Archives containing C++ object files must be created using
12789         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12790         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12791         ;;
12792       icpc*)
12793         # Intel C++
12794         with_gnu_ld=yes
12795         # version 8.0 and above of icpc choke on multiply defined symbols
12796         # if we add $predep_objects and $postdep_objects, however 7.1 and
12797         # earlier do not add the objects themselves.
12798         case `$CC -V 2>&1` in
12799         *"Version 7."*)
12800           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12801           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'
12802           ;;
12803         *)  # Version 8.0 or newer
12804           tmp_idyn=
12805           case $host_cpu in
12806             ia64*) tmp_idyn=' -i_dynamic';;
12807           esac
12808           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12809           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'
12810           ;;
12811         esac
12812         archive_cmds_need_lc_CXX=no
12813         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12814         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12815         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12816         ;;
12817       pgCC*)
12818         # Portland Group C++ compiler
12819         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12820         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'
12821
12822         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12823         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12824         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'
12825         ;;
12826       cxx*)
12827         # Compaq C++
12828         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12829         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'
12830
12831         runpath_var=LD_RUN_PATH
12832         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12833         hardcode_libdir_separator_CXX=:
12834
12835         # Commands to make compiler produce verbose output that lists
12836         # what "hidden" libraries, object files and flags are used when
12837         # linking a shared library.
12838         #
12839         # There doesn't appear to be a way to prevent this compiler from
12840         # explicitly linking system object files so we need to strip them
12841         # from the output so that they don't get included in the library
12842         # dependencies.
12843         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "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 $list'
12844         ;;
12845     esac
12846     ;;
12847   lynxos*)
12848     # FIXME: insert proper C++ library support
12849     ld_shlibs_CXX=no
12850     ;;
12851   m88k*)
12852     # FIXME: insert proper C++ library support
12853     ld_shlibs_CXX=no
12854     ;;
12855   mvs*)
12856     case $cc_basename in
12857       cxx*)
12858         # FIXME: insert proper C++ library support
12859         ld_shlibs_CXX=no
12860         ;;
12861       *)
12862         # FIXME: insert proper C++ library support
12863         ld_shlibs_CXX=no
12864         ;;
12865     esac
12866     ;;
12867   netbsd*)
12868     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12869       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12870       wlarc=
12871       hardcode_libdir_flag_spec_CXX='-R$libdir'
12872       hardcode_direct_CXX=yes
12873       hardcode_shlibpath_var_CXX=no
12874     fi
12875     # Workaround some broken pre-1.5 toolchains
12876     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12877     ;;
12878   openbsd2*)
12879     # C++ shared libraries are fairly broken
12880     ld_shlibs_CXX=no
12881     ;;
12882   openbsd*)
12883     hardcode_direct_CXX=yes
12884     hardcode_shlibpath_var_CXX=no
12885     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12886     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12887     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12888       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12889       export_dynamic_flag_spec_CXX='${wl}-E'
12890       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12891     fi
12892     output_verbose_link_cmd='echo'
12893     ;;
12894   osf3*)
12895     case $cc_basename in
12896       KCC*)
12897         # Kuck and Associates, Inc. (KAI) C++ Compiler
12898
12899         # KCC will only create a shared library if the output file
12900         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12901         # to its proper name (with version) after linking.
12902         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'
12903
12904         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12905         hardcode_libdir_separator_CXX=:
12906
12907         # Archives containing C++ object files must be created using
12908         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12909         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12910
12911         ;;
12912       RCC*)
12913         # Rational C++ 2.4.1
12914         # FIXME: insert proper C++ library support
12915         ld_shlibs_CXX=no
12916         ;;
12917       cxx*)
12918         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12919         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12920
12921         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12922         hardcode_libdir_separator_CXX=:
12923
12924         # Commands to make compiler produce verbose output that lists
12925         # what "hidden" libraries, object files and flags are used when
12926         # linking a shared library.
12927         #
12928         # There doesn't appear to be a way to prevent this compiler from
12929         # explicitly linking system object files so we need to strip them
12930         # from the output so that they don't get included in the library
12931         # dependencies.
12932         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "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 $list'
12933         ;;
12934       *)
12935         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12936           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12937           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 ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12938
12939           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12940           hardcode_libdir_separator_CXX=:
12941
12942           # Commands to make compiler produce verbose output that lists
12943           # what "hidden" libraries, object files and flags are used when
12944           # linking a shared library.
12945           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12946
12947         else
12948           # FIXME: insert proper C++ library support
12949           ld_shlibs_CXX=no
12950         fi
12951         ;;
12952     esac
12953     ;;
12954   osf4* | osf5*)
12955     case $cc_basename in
12956       KCC*)
12957         # Kuck and Associates, Inc. (KAI) C++ Compiler
12958
12959         # KCC will only create a shared library if the output file
12960         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12961         # to its proper name (with version) after linking.
12962         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'
12963
12964         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12965         hardcode_libdir_separator_CXX=:
12966
12967         # Archives containing C++ object files must be created using
12968         # the KAI C++ compiler.
12969         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12970         ;;
12971       RCC*)
12972         # Rational C++ 2.4.1
12973         # FIXME: insert proper C++ library support
12974         ld_shlibs_CXX=no
12975         ;;
12976       cxx*)
12977         allow_undefined_flag_CXX=' -expect_unresolved \*'
12978         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12979         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12980           echo "-hidden">> $lib.exp~
12981           $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 -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
12982           $rm $lib.exp'
12983
12984         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12985         hardcode_libdir_separator_CXX=:
12986
12987         # Commands to make compiler produce verbose output that lists
12988         # what "hidden" libraries, object files and flags are used when
12989         # linking a shared library.
12990         #
12991         # There doesn't appear to be a way to prevent this compiler from
12992         # explicitly linking system object files so we need to strip them
12993         # from the output so that they don't get included in the library
12994         # dependencies.
12995         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "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 $list'
12996         ;;
12997       *)
12998         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12999           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13000          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` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13001
13002           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13003           hardcode_libdir_separator_CXX=:
13004
13005           # Commands to make compiler produce verbose output that lists
13006           # what "hidden" libraries, object files and flags are used when
13007           # linking a shared library.
13008           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13009
13010         else
13011           # FIXME: insert proper C++ library support
13012           ld_shlibs_CXX=no
13013         fi
13014         ;;
13015     esac
13016     ;;
13017   psos*)
13018     # FIXME: insert proper C++ library support
13019     ld_shlibs_CXX=no
13020     ;;
13021   sco*)
13022     archive_cmds_need_lc_CXX=no
13023     case $cc_basename in
13024       CC*)
13025         # FIXME: insert proper C++ library support
13026         ld_shlibs_CXX=no
13027         ;;
13028       *)
13029         # FIXME: insert proper C++ library support
13030         ld_shlibs_CXX=no
13031         ;;
13032     esac
13033     ;;
13034   sunos4*)
13035     case $cc_basename in
13036       CC*)
13037         # Sun C++ 4.x
13038         # FIXME: insert proper C++ library support
13039         ld_shlibs_CXX=no
13040         ;;
13041       lcc*)
13042         # Lucid
13043         # FIXME: insert proper C++ library support
13044         ld_shlibs_CXX=no
13045         ;;
13046       *)
13047         # FIXME: insert proper C++ library support
13048         ld_shlibs_CXX=no
13049         ;;
13050     esac
13051     ;;
13052   solaris*)
13053     case $cc_basename in
13054       CC*)
13055         # Sun C++ 4.2, 5.x and Centerline C++
13056         archive_cmds_need_lc_CXX=yes
13057         no_undefined_flag_CXX=' -zdefs'
13058         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13059         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13060         $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'
13061
13062         hardcode_libdir_flag_spec_CXX='-R$libdir'
13063         hardcode_shlibpath_var_CXX=no
13064         case $host_os in
13065           solaris2.[0-5] | solaris2.[0-5].*) ;;
13066           *)
13067             # The C++ compiler is used as linker so we must use $wl
13068             # flag to pass the commands to the underlying system
13069             # linker. We must also pass each convience library through
13070             # to the system linker between allextract/defaultextract.
13071             # The C++ compiler will combine linker options so we
13072             # cannot just pass the convience library names through
13073             # without $wl.
13074             # Supported since Solaris 2.6 (maybe 2.5.1?)
13075             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
13076             ;;
13077         esac
13078         link_all_deplibs_CXX=yes
13079
13080         output_verbose_link_cmd='echo'
13081
13082         # Archives containing C++ object files must be created using
13083         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13084         # necessary to make sure instantiated templates are included
13085         # in the archive.
13086         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13087         ;;
13088       gcx*)
13089         # Green Hills C++ Compiler
13090         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13091
13092         # The C++ compiler must be used to create the archive.
13093         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13094         ;;
13095       *)
13096         # GNU C++ compiler with Solaris linker
13097         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13098           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13099           if $CC --version | grep -v '^2\.7' > /dev/null; then
13100             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13101             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13102                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13103
13104             # Commands to make compiler produce verbose output that lists
13105             # what "hidden" libraries, object files and flags are used when
13106             # linking a shared library.
13107             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13108           else
13109             # g++ 2.7 appears to require `-G' NOT `-shared' on this
13110             # platform.
13111             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13112             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13113                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13114
13115             # Commands to make compiler produce verbose output that lists
13116             # what "hidden" libraries, object files and flags are used when
13117             # linking a shared library.
13118             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13119           fi
13120
13121           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13122         fi
13123         ;;
13124     esac
13125     ;;
13126   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13127     archive_cmds_need_lc_CXX=no
13128     ;;
13129   tandem*)
13130     case $cc_basename in
13131       NCC*)
13132         # NonStop-UX NCC 3.20
13133         # FIXME: insert proper C++ library support
13134         ld_shlibs_CXX=no
13135         ;;
13136       *)
13137         # FIXME: insert proper C++ library support
13138         ld_shlibs_CXX=no
13139         ;;
13140     esac
13141     ;;
13142   vxworks*)
13143     # FIXME: insert proper C++ library support
13144     ld_shlibs_CXX=no
13145     ;;
13146   *)
13147     # FIXME: insert proper C++ library support
13148     ld_shlibs_CXX=no
13149     ;;
13150 esac
13151 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13152 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13153 test "$ld_shlibs_CXX" = no && can_build_shared=no
13154
13155 GCC_CXX="$GXX"
13156 LD_CXX="$LD"
13157
13158
13159 cat > conftest.$ac_ext <<EOF
13160 class Foo
13161 {
13162 public:
13163   Foo (void) { a = 0; }
13164 private:
13165   int a;
13166 };
13167 EOF
13168
13169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13170   (eval $ac_compile) 2>&5
13171   ac_status=$?
13172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13173   (exit $ac_status); }; then
13174   # Parse the compiler output and extract the necessary
13175   # objects, libraries and library flags.
13176
13177   # Sentinel used to keep track of whether or not we are before
13178   # the conftest object file.
13179   pre_test_object_deps_done=no
13180
13181   # The `*' in the case matches for architectures that use `case' in
13182   # $output_verbose_cmd can trigger glob expansion during the loop
13183   # eval without this substitution.
13184   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
13185
13186   for p in `eval $output_verbose_link_cmd`; do
13187     case $p in
13188
13189     -L* | -R* | -l*)
13190        # Some compilers place space between "-{L,R}" and the path.
13191        # Remove the space.
13192        if test $p = "-L" \
13193           || test $p = "-R"; then
13194          prev=$p
13195          continue
13196        else
13197          prev=
13198        fi
13199
13200        if test "$pre_test_object_deps_done" = no; then
13201          case $p in
13202          -L* | -R*)
13203            # Internal compiler library paths should come after those
13204            # provided the user.  The postdeps already come after the
13205            # user supplied libs so there is no need to process them.
13206            if test -z "$compiler_lib_search_path_CXX"; then
13207              compiler_lib_search_path_CXX="${prev}${p}"
13208            else
13209              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13210            fi
13211            ;;
13212          # The "-l" case would never come before the object being
13213          # linked, so don't bother handling this case.
13214          esac
13215        else
13216          if test -z "$postdeps_CXX"; then
13217            postdeps_CXX="${prev}${p}"
13218          else
13219            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13220          fi
13221        fi
13222        ;;
13223
13224     *.$objext)
13225        # This assumes that the test object file only shows up
13226        # once in the compiler output.
13227        if test "$p" = "conftest.$objext"; then
13228          pre_test_object_deps_done=yes
13229          continue
13230        fi
13231
13232        if test "$pre_test_object_deps_done" = no; then
13233          if test -z "$predep_objects_CXX"; then
13234            predep_objects_CXX="$p"
13235          else
13236            predep_objects_CXX="$predep_objects_CXX $p"
13237          fi
13238        else
13239          if test -z "$postdep_objects_CXX"; then
13240            postdep_objects_CXX="$p"
13241          else
13242            postdep_objects_CXX="$postdep_objects_CXX $p"
13243          fi
13244        fi
13245        ;;
13246
13247     *) ;; # Ignore the rest.
13248
13249     esac
13250   done
13251
13252   # Clean up.
13253   rm -f a.out a.exe
13254 else
13255   echo "libtool.m4: error: problem compiling CXX test program"
13256 fi
13257
13258 $rm -f confest.$objext
13259
13260 # PORTME: override above test on systems where it is broken
13261 case $host_os in
13262 solaris*)
13263   case $cc_basename in
13264   CC*)
13265     # Adding this requires a known-good setup of shared libraries for
13266     # Sun compiler versions before 5.6, else PIC objects from an old
13267     # archive will be linked into the output, leading to subtle bugs.
13268     postdeps_CXX='-lCstd -lCrun'
13269     ;;
13270   esac
13271 esac
13272
13273
13274 case " $postdeps_CXX " in
13275 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13276 esac
13277
13278 lt_prog_compiler_wl_CXX=
13279 lt_prog_compiler_pic_CXX=
13280 lt_prog_compiler_static_CXX=
13281
13282 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13283 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13284
13285   # C++ specific cases for pic, static, wl, etc.
13286   if test "$GXX" = yes; then
13287     lt_prog_compiler_wl_CXX='-Wl,'
13288     lt_prog_compiler_static_CXX='-static'
13289
13290     case $host_os in
13291     aix*)
13292       # All AIX code is PIC.
13293       if test "$host_cpu" = ia64; then
13294         # AIX 5 now supports IA64 processor
13295         lt_prog_compiler_static_CXX='-Bstatic'
13296       fi
13297       ;;
13298     amigaos*)
13299       # FIXME: we need at least 68020 code to build shared libraries, but
13300       # adding the `-m68020' flag to GCC prevents building anything better,
13301       # like `-m68040'.
13302       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13303       ;;
13304     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13305       # PIC is the default for these OSes.
13306       ;;
13307     mingw* | os2* | pw32*)
13308       # This hack is so that the source file can tell whether it is being
13309       # built for inclusion in a dll (and should export symbols for example).
13310       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13311       ;;
13312     darwin* | rhapsody*)
13313       # PIC is the default on this platform
13314       # Common symbols not allowed in MH_DYLIB files
13315       lt_prog_compiler_pic_CXX='-fno-common'
13316       ;;
13317     *djgpp*)
13318       # DJGPP does not support shared libraries at all
13319       lt_prog_compiler_pic_CXX=
13320       ;;
13321     sysv4*MP*)
13322       if test -d /usr/nec; then
13323         lt_prog_compiler_pic_CXX=-Kconform_pic
13324       fi
13325       ;;
13326     hpux*)
13327       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13328       # not for PA HP-UX.
13329       case $host_cpu in
13330       hppa*64*|ia64*)
13331         ;;
13332       *)
13333         lt_prog_compiler_pic_CXX='-fPIC'
13334         ;;
13335       esac
13336       ;;
13337     *)
13338       lt_prog_compiler_pic_CXX='-fPIC'
13339       ;;
13340     esac
13341   else
13342     case $host_os in
13343       aix4* | aix5*)
13344         # All AIX code is PIC.
13345         if test "$host_cpu" = ia64; then
13346           # AIX 5 now supports IA64 processor
13347           lt_prog_compiler_static_CXX='-Bstatic'
13348         else
13349           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13350         fi
13351         ;;
13352       chorus*)
13353         case $cc_basename in
13354         cxch68*)
13355           # Green Hills C++ Compiler
13356           # _LT_AC_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"
13357           ;;
13358         esac
13359         ;;
13360        darwin*)
13361          # PIC is the default on this platform
13362          # Common symbols not allowed in MH_DYLIB files
13363          case $cc_basename in
13364            xlc*)
13365            lt_prog_compiler_pic_CXX='-qnocommon'
13366            lt_prog_compiler_wl_CXX='-Wl,'
13367            ;;
13368          esac
13369        ;;
13370       dgux*)
13371         case $cc_basename in
13372           ec++*)
13373             lt_prog_compiler_pic_CXX='-KPIC'
13374             ;;
13375           ghcx*)
13376             # Green Hills C++ Compiler
13377             lt_prog_compiler_pic_CXX='-pic'
13378             ;;
13379           *)
13380             ;;
13381         esac
13382         ;;
13383       freebsd* | kfreebsd*-gnu | dragonfly*)
13384         # FreeBSD uses GNU C++
13385         ;;
13386       hpux9* | hpux10* | hpux11*)
13387         case $cc_basename in
13388           CC*)
13389             lt_prog_compiler_wl_CXX='-Wl,'
13390             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
13391             if test "$host_cpu" != ia64; then
13392               lt_prog_compiler_pic_CXX='+Z'
13393             fi
13394             ;;
13395           aCC*)
13396             lt_prog_compiler_wl_CXX='-Wl,'
13397             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
13398             case $host_cpu in
13399             hppa*64*|ia64*)
13400               # +Z the default
13401               ;;
13402             *)
13403               lt_prog_compiler_pic_CXX='+Z'
13404               ;;
13405             esac
13406             ;;
13407           *)
13408             ;;
13409         esac
13410         ;;
13411       irix5* | irix6* | nonstopux*)
13412         case $cc_basename in
13413           CC*)
13414             lt_prog_compiler_wl_CXX='-Wl,'
13415             lt_prog_compiler_static_CXX='-non_shared'
13416             # CC pic flag -KPIC is the default.
13417             ;;
13418           *)
13419             ;;
13420         esac
13421         ;;
13422       linux*)
13423         case $cc_basename in
13424           KCC*)
13425             # KAI C++ Compiler
13426             lt_prog_compiler_wl_CXX='--backend -Wl,'
13427             lt_prog_compiler_pic_CXX='-fPIC'
13428             ;;
13429           icpc* | ecpc*)
13430             # Intel C++
13431             lt_prog_compiler_wl_CXX='-Wl,'
13432             lt_prog_compiler_pic_CXX='-KPIC'
13433             lt_prog_compiler_static_CXX='-static'
13434             ;;
13435           pgCC*)
13436             # Portland Group C++ compiler.
13437             lt_prog_compiler_wl_CXX='-Wl,'
13438             lt_prog_compiler_pic_CXX='-fpic'
13439             lt_prog_compiler_static_CXX='-Bstatic'
13440             ;;
13441           cxx*)
13442             # Compaq C++
13443             # Make sure the PIC flag is empty.  It appears that all Alpha
13444             # Linux and Compaq Tru64 Unix objects are PIC.
13445             lt_prog_compiler_pic_CXX=
13446             lt_prog_compiler_static_CXX='-non_shared'
13447             ;;
13448           *)
13449             ;;
13450         esac
13451         ;;
13452       lynxos*)
13453         ;;
13454       m88k*)
13455         ;;
13456       mvs*)
13457         case $cc_basename in
13458           cxx*)
13459             lt_prog_compiler_pic_CXX='-W c,exportall'
13460             ;;
13461           *)
13462             ;;
13463         esac
13464         ;;
13465       netbsd*)
13466         ;;
13467       osf3* | osf4* | osf5*)
13468         case $cc_basename in
13469           KCC*)
13470             lt_prog_compiler_wl_CXX='--backend -Wl,'
13471             ;;
13472           RCC*)
13473             # Rational C++ 2.4.1
13474             lt_prog_compiler_pic_CXX='-pic'
13475             ;;
13476           cxx*)
13477             # Digital/Compaq C++
13478             lt_prog_compiler_wl_CXX='-Wl,'
13479             # Make sure the PIC flag is empty.  It appears that all Alpha
13480             # Linux and Compaq Tru64 Unix objects are PIC.
13481             lt_prog_compiler_pic_CXX=
13482             lt_prog_compiler_static_CXX='-non_shared'
13483             ;;
13484           *)
13485             ;;
13486         esac
13487         ;;
13488       psos*)
13489         ;;
13490       sco*)
13491         case $cc_basename in
13492           CC*)
13493             lt_prog_compiler_pic_CXX='-fPIC'
13494             ;;
13495           *)
13496             ;;
13497         esac
13498         ;;
13499       solaris*)
13500         case $cc_basename in
13501           CC*)
13502             # Sun C++ 4.2, 5.x and Centerline C++
13503             lt_prog_compiler_pic_CXX='-KPIC'
13504             lt_prog_compiler_static_CXX='-Bstatic'
13505             lt_prog_compiler_wl_CXX='-Qoption ld '
13506             ;;
13507           gcx*)
13508             # Green Hills C++ Compiler
13509             lt_prog_compiler_pic_CXX='-PIC'
13510             ;;
13511           *)
13512             ;;
13513         esac
13514         ;;
13515       sunos4*)
13516         case $cc_basename in
13517           CC*)
13518             # Sun C++ 4.x
13519             lt_prog_compiler_pic_CXX='-pic'
13520             lt_prog_compiler_static_CXX='-Bstatic'
13521             ;;
13522           lcc*)
13523             # Lucid
13524             lt_prog_compiler_pic_CXX='-pic'
13525             ;;
13526           *)
13527             ;;
13528         esac
13529         ;;
13530       tandem*)
13531         case $cc_basename in
13532           NCC*)
13533             # NonStop-UX NCC 3.20
13534             lt_prog_compiler_pic_CXX='-KPIC'
13535             ;;
13536           *)
13537             ;;
13538         esac
13539         ;;
13540       unixware*)
13541         ;;
13542       vxworks*)
13543         ;;
13544       *)
13545         lt_prog_compiler_can_build_shared_CXX=no
13546         ;;
13547     esac
13548   fi
13549
13550 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13551 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
13552
13553 #
13554 # Check to make sure the PIC flag actually works.
13555 #
13556 if test -n "$lt_prog_compiler_pic_CXX"; then
13557
13558 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13559 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
13560 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13561   echo $ECHO_N "(cached) $ECHO_C" >&6
13562 else
13563   lt_prog_compiler_pic_works_CXX=no
13564   ac_outfile=conftest.$ac_objext
13565    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13566    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13567    # Insert the option either (1) after the last *FLAGS variable, or
13568    # (2) before a word containing "conftest.", or (3) at the end.
13569    # Note that $ac_compile itself does not contain backslashes and begins
13570    # with a dollar sign (not a hyphen), so the echo should work correctly.
13571    # The option is referenced via a variable to avoid confusing sed.
13572    lt_compile=`echo "$ac_compile" | $SED \
13573    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13574    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13575    -e 's:$: $lt_compiler_flag:'`
13576    (eval echo "\"\$as_me:13576: $lt_compile\"" >&5)
13577    (eval "$lt_compile" 2>conftest.err)
13578    ac_status=$?
13579    cat conftest.err >&5
13580    echo "$as_me:13580: \$? = $ac_status" >&5
13581    if (exit $ac_status) && test -s "$ac_outfile"; then
13582      # The compiler can only warn and ignore the option if not recognized
13583      # So say no if there are warnings other than the usual output.
13584      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
13585      $SED '/^$/d' conftest.err >conftest.er2
13586      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
13587        lt_prog_compiler_pic_works_CXX=yes
13588      fi
13589    fi
13590    $rm conftest*
13591
13592 fi
13593 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
13594 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
13595
13596 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
13597     case $lt_prog_compiler_pic_CXX in
13598      "" | " "*) ;;
13599      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13600      esac
13601 else
13602     lt_prog_compiler_pic_CXX=
13603      lt_prog_compiler_can_build_shared_CXX=no
13604 fi
13605
13606 fi
13607 case $host_os in
13608   # For platforms which do not support PIC, -DPIC is meaningless:
13609   *djgpp*)
13610     lt_prog_compiler_pic_CXX=
13611     ;;
13612   *)
13613     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13614     ;;
13615 esac
13616
13617 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13618 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13619 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13620   echo $ECHO_N "(cached) $ECHO_C" >&6
13621 else
13622   lt_cv_prog_compiler_c_o_CXX=no
13623    $rm -r conftest 2>/dev/null
13624    mkdir conftest
13625    cd conftest
13626    mkdir out
13627    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13628
13629    lt_compiler_flag="-o out/conftest2.$ac_objext"
13630    # Insert the option either (1) after the last *FLAGS variable, or
13631    # (2) before a word containing "conftest.", or (3) at the end.
13632    # Note that $ac_compile itself does not contain backslashes and begins
13633    # with a dollar sign (not a hyphen), so the echo should work correctly.
13634    lt_compile=`echo "$ac_compile" | $SED \
13635    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13636    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13637    -e 's:$: $lt_compiler_flag:'`
13638    (eval echo "\"\$as_me:13638: $lt_compile\"" >&5)
13639    (eval "$lt_compile" 2>out/conftest.err)
13640    ac_status=$?
13641    cat out/conftest.err >&5
13642    echo "$as_me:13642: \$? = $ac_status" >&5
13643    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13644    then
13645      # The compiler can only warn and ignore the option if not recognized
13646      # So say no if there are warnings
13647      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
13648      $SED '/^$/d' out/conftest.err >out/conftest.er2
13649      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13650        lt_cv_prog_compiler_c_o_CXX=yes
13651      fi
13652    fi
13653    chmod u+w . 2>&5
13654    $rm conftest*
13655    # SGI C++ compiler will create directory out/ii_files/ for
13656    # template instantiation
13657    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13658    $rm out/* && rmdir out
13659    cd ..
13660    rmdir conftest
13661    $rm conftest*
13662
13663 fi
13664 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13665 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
13666
13667
13668 hard_links="nottested"
13669 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13670   # do not overwrite the value of need_locks provided by the user
13671   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13672 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13673   hard_links=yes
13674   $rm conftest*
13675   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13676   touch conftest.a
13677   ln conftest.a conftest.b 2>&5 || hard_links=no
13678   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13679   { echo "$as_me:$LINENO: result: $hard_links" >&5
13680 echo "${ECHO_T}$hard_links" >&6; }
13681   if test "$hard_links" = no; then
13682     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13683 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13684     need_locks=warn
13685   fi
13686 else
13687   need_locks=no
13688 fi
13689
13690 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13691 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13692
13693   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13694   case $host_os in
13695   aix4* | aix5*)
13696     # If we're using GNU nm, then we don't want the "-C" option.
13697     # -C means demangle to AIX nm, but means don't demangle with GNU nm
13698     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13699       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'
13700     else
13701       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'
13702     fi
13703     ;;
13704   pw32*)
13705     export_symbols_cmds_CXX="$ltdll_cmds"
13706   ;;
13707   cygwin* | mingw*)
13708     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'
13709   ;;
13710   *)
13711     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13712   ;;
13713   esac
13714
13715 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13716 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13717 test "$ld_shlibs_CXX" = no && can_build_shared=no
13718
13719 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13720 if test "$GCC" = yes; then
13721   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13722 fi
13723
13724 #
13725 # Do we need to explicitly link libc?
13726 #
13727 case "x$archive_cmds_need_lc_CXX" in
13728 x|xyes)
13729   # Assume -lc should be added
13730   archive_cmds_need_lc_CXX=yes
13731
13732   if test "$enable_shared" = yes && test "$GCC" = yes; then
13733     case $archive_cmds_CXX in
13734     *'~'*)
13735       # FIXME: we may have to deal with multi-command sequences.
13736       ;;
13737     '$CC '*)
13738       # Test whether the compiler implicitly links with -lc since on some
13739       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13740       # to ld, don't add -lc before -lgcc.
13741       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13742 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
13743       $rm conftest*
13744       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13745
13746       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13747   (eval $ac_compile) 2>&5
13748   ac_status=$?
13749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13750   (exit $ac_status); } 2>conftest.err; then
13751         soname=conftest
13752         lib=conftest
13753         libobjs=conftest.$ac_objext
13754         deplibs=
13755         wl=$lt_prog_compiler_wl_CXX
13756         compiler_flags=-v
13757         linker_flags=-v
13758         verstring=
13759         output_objdir=.
13760         libname=conftest
13761         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13762         allow_undefined_flag_CXX=
13763         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13764   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13765   ac_status=$?
13766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13767   (exit $ac_status); }
13768         then
13769           archive_cmds_need_lc_CXX=no
13770         else
13771           archive_cmds_need_lc_CXX=yes
13772         fi
13773         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13774       else
13775         cat conftest.err 1>&5
13776       fi
13777       $rm conftest*
13778       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13779 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
13780       ;;
13781     esac
13782   fi
13783   ;;
13784 esac
13785
13786 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13787 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13788 library_names_spec=
13789 libname_spec='lib$name'
13790 soname_spec=
13791 shrext_cmds=".so"
13792 postinstall_cmds=
13793 postuninstall_cmds=
13794 finish_cmds=
13795 finish_eval=
13796 shlibpath_var=
13797 shlibpath_overrides_runpath=unknown
13798 version_type=none
13799 dynamic_linker="$host_os ld.so"
13800 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13801 if test "$GCC" = yes; then
13802   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13803   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13804     # if the path contains ";" then we assume it to be the separator
13805     # otherwise default to the standard path separator (i.e. ":") - it is
13806     # assumed that no part of a normal pathname contains ";" but that should
13807     # okay in the real world where ";" in dirpaths is itself problematic.
13808     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13809   else
13810     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13811   fi
13812 else
13813   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13814 fi
13815 need_lib_prefix=unknown
13816 hardcode_into_libs=no
13817
13818 # when you set need_version to no, make sure it does not cause -set_version
13819 # flags to be left without arguments
13820 need_version=unknown
13821
13822 case $host_os in
13823 aix3*)
13824   version_type=linux
13825   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13826   shlibpath_var=LIBPATH
13827
13828   # AIX 3 has no versioning support, so we append a major version to the name.
13829   soname_spec='${libname}${release}${shared_ext}$major'
13830   ;;
13831
13832 aix4* | aix5*)
13833   version_type=linux
13834   need_lib_prefix=no
13835   need_version=no
13836   hardcode_into_libs=yes
13837   if test "$host_cpu" = ia64; then
13838     # AIX 5 supports IA64
13839     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13840     shlibpath_var=LD_LIBRARY_PATH
13841   else
13842     # With GCC up to 2.95.x, collect2 would create an import file
13843     # for dependence libraries.  The import file would start with
13844     # the line `#! .'.  This would cause the generated library to
13845     # depend on `.', always an invalid library.  This was fixed in
13846     # development snapshots of GCC prior to 3.0.
13847     case $host_os in
13848       aix4 | aix4.[01] | aix4.[01].*)
13849       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13850            echo ' yes '
13851            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13852         :
13853       else
13854         can_build_shared=no
13855       fi
13856       ;;
13857     esac
13858     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13859     # soname into executable. Probably we can add versioning support to
13860     # collect2, so additional links can be useful in future.
13861     if test "$aix_use_runtimelinking" = yes; then
13862       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13863       # instead of lib<name>.a to let people know that these are not
13864       # typical AIX shared libraries.
13865       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13866     else
13867       # We preserve .a as extension for shared libraries through AIX4.2
13868       # and later when we are not doing run time linking.
13869       library_names_spec='${libname}${release}.a $libname.a'
13870       soname_spec='${libname}${release}${shared_ext}$major'
13871     fi
13872     shlibpath_var=LIBPATH
13873   fi
13874   ;;
13875
13876 amigaos*)
13877   library_names_spec='$libname.ixlibrary $libname.a'
13878   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13879   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'
13880   ;;
13881
13882 beos*)
13883   library_names_spec='${libname}${shared_ext}'
13884   dynamic_linker="$host_os ld.so"
13885   shlibpath_var=LIBRARY_PATH
13886   ;;
13887
13888 bsdi[45]*)
13889   version_type=linux
13890   need_version=no
13891   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13892   soname_spec='${libname}${release}${shared_ext}$major'
13893   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13894   shlibpath_var=LD_LIBRARY_PATH
13895   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13896   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13897   # the default ld.so.conf also contains /usr/contrib/lib and
13898   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13899   # libtool to hard-code these into programs
13900   ;;
13901
13902 cygwin* | mingw* | pw32*)
13903   version_type=windows
13904   shrext_cmds=".dll"
13905   need_version=no
13906   need_lib_prefix=no
13907
13908   case $GCC,$host_os in
13909   yes,cygwin* | yes,mingw* | yes,pw32*)
13910     library_names_spec='$libname.dll.a'
13911     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13912     postinstall_cmds='base_file=`basename \${file}`~
13913       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13914       dldir=$destdir/`dirname \$dlpath`~
13915       test -d \$dldir || mkdir -p \$dldir~
13916       $install_prog $dir/$dlname \$dldir/$dlname~
13917       chmod a+x \$dldir/$dlname'
13918     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13919       dlpath=$dir/\$dldll~
13920        $rm \$dlpath'
13921     shlibpath_overrides_runpath=yes
13922
13923     case $host_os in
13924     cygwin*)
13925       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13926       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13927       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13928       ;;
13929     mingw*)
13930       # MinGW DLLs use traditional 'lib' prefix
13931       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13932       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13933       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13934         # It is most probably a Windows format PATH printed by
13935         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13936         # path with ; separators, and with drive letters. We can handle the
13937         # drive letters (cygwin fileutils understands them), so leave them,
13938         # especially as we might pass files found there to a mingw objdump,
13939         # which wouldn't understand a cygwinified path. Ahh.
13940         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13941       else
13942         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13943       fi
13944       ;;
13945     pw32*)
13946       # pw32 DLLs use 'pw' prefix rather than 'lib'
13947       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13948       ;;
13949     esac
13950     ;;
13951
13952   *)
13953     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13954     ;;
13955   esac
13956   dynamic_linker='Win32 ld.exe'
13957   # FIXME: first we should search . and the directory the executable is in
13958   shlibpath_var=PATH
13959   ;;
13960
13961 darwin* | rhapsody*)
13962   dynamic_linker="$host_os dyld"
13963   version_type=darwin
13964   need_lib_prefix=no
13965   need_version=no
13966   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13967   soname_spec='${libname}${release}${major}$shared_ext'
13968   shlibpath_overrides_runpath=yes
13969   shlibpath_var=DYLD_LIBRARY_PATH
13970   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13971   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13972   if test "$GCC" = yes; then
13973     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
13974   else
13975     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13976   fi
13977   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13978   ;;
13979
13980 dgux*)
13981   version_type=linux
13982   need_lib_prefix=no
13983   need_version=no
13984   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13985   soname_spec='${libname}${release}${shared_ext}$major'
13986   shlibpath_var=LD_LIBRARY_PATH
13987   ;;
13988
13989 freebsd1*)
13990   dynamic_linker=no
13991   ;;
13992
13993 kfreebsd*-gnu)
13994   version_type=linux
13995   need_lib_prefix=no
13996   need_version=no
13997   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13998   soname_spec='${libname}${release}${shared_ext}$major'
13999   shlibpath_var=LD_LIBRARY_PATH
14000   shlibpath_overrides_runpath=no
14001   hardcode_into_libs=yes
14002   dynamic_linker='GNU ld.so'
14003   ;;
14004
14005 freebsd* | dragonfly*)
14006   # DragonFly does not have aout.  When/if they implement a new
14007   # versioning mechanism, adjust this.
14008   if test -x /usr/bin/objformat; then
14009     objformat=`/usr/bin/objformat`
14010   else
14011     case $host_os in
14012     freebsd[123]*) objformat=aout ;;
14013     *) objformat=elf ;;
14014     esac
14015   fi
14016   version_type=freebsd-$objformat
14017   case $version_type in
14018     freebsd-elf*)
14019       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14020       need_version=no
14021       need_lib_prefix=no
14022       ;;
14023     freebsd-*)
14024       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14025       need_version=yes
14026       ;;
14027   esac
14028   shlibpath_var=LD_LIBRARY_PATH
14029   case $host_os in
14030   freebsd2*)
14031     shlibpath_overrides_runpath=yes
14032     ;;
14033   freebsd3.[01]* | freebsdelf3.[01]*)
14034     shlibpath_overrides_runpath=yes
14035     hardcode_into_libs=yes
14036     ;;
14037   *) # from 3.2 on
14038     shlibpath_overrides_runpath=no
14039     hardcode_into_libs=yes
14040     ;;
14041   esac
14042   ;;
14043
14044 gnu*)
14045   version_type=linux
14046   need_lib_prefix=no
14047   need_version=no
14048   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14049   soname_spec='${libname}${release}${shared_ext}$major'
14050   shlibpath_var=LD_LIBRARY_PATH
14051   hardcode_into_libs=yes
14052   ;;
14053
14054 hpux9* | hpux10* | hpux11*)
14055   # Give a soname corresponding to the major version so that dld.sl refuses to
14056   # link against other versions.
14057   version_type=sunos
14058   need_lib_prefix=no
14059   need_version=no
14060   case $host_cpu in
14061   ia64*)
14062     shrext_cmds='.so'
14063     hardcode_into_libs=yes
14064     dynamic_linker="$host_os dld.so"
14065     shlibpath_var=LD_LIBRARY_PATH
14066     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14067     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14068     soname_spec='${libname}${release}${shared_ext}$major'
14069     if test "X$HPUX_IA64_MODE" = X32; then
14070       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14071     else
14072       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14073     fi
14074     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14075     ;;
14076    hppa*64*)
14077      shrext_cmds='.sl'
14078      hardcode_into_libs=yes
14079      dynamic_linker="$host_os dld.sl"
14080      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14081      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14082      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14083      soname_spec='${libname}${release}${shared_ext}$major'
14084      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14085      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14086      ;;
14087    *)
14088     shrext_cmds='.sl'
14089     dynamic_linker="$host_os dld.sl"
14090     shlibpath_var=SHLIB_PATH
14091     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14092     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14093     soname_spec='${libname}${release}${shared_ext}$major'
14094     ;;
14095   esac
14096   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14097   postinstall_cmds='chmod 555 $lib'
14098   ;;
14099
14100 irix5* | irix6* | nonstopux*)
14101   case $host_os in
14102     nonstopux*) version_type=nonstopux ;;
14103     *)
14104         if test "$lt_cv_prog_gnu_ld" = yes; then
14105                 version_type=linux
14106         else
14107                 version_type=irix
14108         fi ;;
14109   esac
14110   need_lib_prefix=no
14111   need_version=no
14112   soname_spec='${libname}${release}${shared_ext}$major'
14113   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14114   case $host_os in
14115   irix5* | nonstopux*)
14116     libsuff= shlibsuff=
14117     ;;
14118   *)
14119     case $LD in # libtool.m4 will add one of these switches to LD
14120     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14121       libsuff= shlibsuff= libmagic=32-bit;;
14122     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14123       libsuff=32 shlibsuff=N32 libmagic=N32;;
14124     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14125       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14126     *) libsuff= shlibsuff= libmagic=never-match;;
14127     esac
14128     ;;
14129   esac
14130   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14131   shlibpath_overrides_runpath=no
14132   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14133   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14134   hardcode_into_libs=yes
14135   ;;
14136
14137 # No shared lib support for Linux oldld, aout, or coff.
14138 linux*oldld* | linux*aout* | linux*coff*)
14139   dynamic_linker=no
14140   ;;
14141
14142 # This must be Linux ELF.
14143 linux*)
14144   version_type=linux
14145   need_lib_prefix=no
14146   need_version=no
14147   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14148   soname_spec='${libname}${release}${shared_ext}$major'
14149   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14150   shlibpath_var=LD_LIBRARY_PATH
14151   shlibpath_overrides_runpath=no
14152   # This implies no fast_install, which is unacceptable.
14153   # Some rework will be needed to allow for fast_install
14154   # before this can be enabled.
14155   hardcode_into_libs=yes
14156
14157   # Append ld.so.conf contents to the search path
14158   if test -f /etc/ld.so.conf; then
14159     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
14160     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14161   fi
14162
14163   # We used to test for /lib/ld.so.1 and disable shared libraries on
14164   # powerpc, because MkLinux only supported shared libraries with the
14165   # GNU dynamic linker.  Since this was broken with cross compilers,
14166   # most powerpc-linux boxes support dynamic linking these days and
14167   # people can always --disable-shared, the test was removed, and we
14168   # assume the GNU/Linux dynamic linker is in use.
14169   dynamic_linker='GNU/Linux ld.so'
14170   ;;
14171
14172 knetbsd*-gnu)
14173   version_type=linux
14174   need_lib_prefix=no
14175   need_version=no
14176   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14177   soname_spec='${libname}${release}${shared_ext}$major'
14178   shlibpath_var=LD_LIBRARY_PATH
14179   shlibpath_overrides_runpath=no
14180   hardcode_into_libs=yes
14181   dynamic_linker='GNU ld.so'
14182   ;;
14183
14184 netbsd*)
14185   version_type=sunos
14186   need_lib_prefix=no
14187   need_version=no
14188   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14189     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14190     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14191     dynamic_linker='NetBSD (a.out) ld.so'
14192   else
14193     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14194     soname_spec='${libname}${release}${shared_ext}$major'
14195     dynamic_linker='NetBSD ld.elf_so'
14196   fi
14197   shlibpath_var=LD_LIBRARY_PATH
14198   shlibpath_overrides_runpath=yes
14199   hardcode_into_libs=yes
14200   ;;
14201
14202 newsos6)
14203   version_type=linux
14204   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14205   shlibpath_var=LD_LIBRARY_PATH
14206   shlibpath_overrides_runpath=yes
14207   ;;
14208
14209 nto-qnx*)
14210   version_type=linux
14211   need_lib_prefix=no
14212   need_version=no
14213   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14214   soname_spec='${libname}${release}${shared_ext}$major'
14215   shlibpath_var=LD_LIBRARY_PATH
14216   shlibpath_overrides_runpath=yes
14217   ;;
14218
14219 openbsd*)
14220   version_type=sunos
14221   need_lib_prefix=no
14222   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14223   case $host_os in
14224     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14225     *)                         need_version=no  ;;
14226   esac
14227   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14228   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14229   shlibpath_var=LD_LIBRARY_PATH
14230   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14231     case $host_os in
14232       openbsd2.[89] | openbsd2.[89].*)
14233         shlibpath_overrides_runpath=no
14234         ;;
14235       *)
14236         shlibpath_overrides_runpath=yes
14237         ;;
14238       esac
14239   else
14240     shlibpath_overrides_runpath=yes
14241   fi
14242   ;;
14243
14244 os2*)
14245   libname_spec='$name'
14246   shrext_cmds=".dll"
14247   need_lib_prefix=no
14248   library_names_spec='$libname${shared_ext} $libname.a'
14249   dynamic_linker='OS/2 ld.exe'
14250   shlibpath_var=LIBPATH
14251   ;;
14252
14253 osf3* | osf4* | osf5*)
14254   version_type=osf
14255   need_lib_prefix=no
14256   need_version=no
14257   soname_spec='${libname}${release}${shared_ext}$major'
14258   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14259   shlibpath_var=LD_LIBRARY_PATH
14260   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14261   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14262   ;;
14263
14264 sco3.2v5*)
14265   version_type=osf
14266   soname_spec='${libname}${release}${shared_ext}$major'
14267   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14268   shlibpath_var=LD_LIBRARY_PATH
14269   ;;
14270
14271 solaris*)
14272   version_type=linux
14273   need_lib_prefix=no
14274   need_version=no
14275   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14276   soname_spec='${libname}${release}${shared_ext}$major'
14277   shlibpath_var=LD_LIBRARY_PATH
14278   shlibpath_overrides_runpath=yes
14279   hardcode_into_libs=yes
14280   # ldd complains unless libraries are executable
14281   postinstall_cmds='chmod +x $lib'
14282   ;;
14283
14284 sunos4*)
14285   version_type=sunos
14286   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14287   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14288   shlibpath_var=LD_LIBRARY_PATH
14289   shlibpath_overrides_runpath=yes
14290   if test "$with_gnu_ld" = yes; then
14291     need_lib_prefix=no
14292   fi
14293   need_version=yes
14294   ;;
14295
14296 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14297   version_type=linux
14298   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14299   soname_spec='${libname}${release}${shared_ext}$major'
14300   shlibpath_var=LD_LIBRARY_PATH
14301   case $host_vendor in
14302     sni)
14303       shlibpath_overrides_runpath=no
14304       need_lib_prefix=no
14305       export_dynamic_flag_spec='${wl}-Blargedynsym'
14306       runpath_var=LD_RUN_PATH
14307       ;;
14308     siemens)
14309       need_lib_prefix=no
14310       ;;
14311     motorola)
14312       need_lib_prefix=no
14313       need_version=no
14314       shlibpath_overrides_runpath=no
14315       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14316       ;;
14317   esac
14318   ;;
14319
14320 sysv4*MP*)
14321   if test -d /usr/nec ;then
14322     version_type=linux
14323     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14324     soname_spec='$libname${shared_ext}.$major'
14325     shlibpath_var=LD_LIBRARY_PATH
14326   fi
14327   ;;
14328
14329 uts4*)
14330   version_type=linux
14331   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14332   soname_spec='${libname}${release}${shared_ext}$major'
14333   shlibpath_var=LD_LIBRARY_PATH
14334   ;;
14335
14336 *)
14337   dynamic_linker=no
14338   ;;
14339 esac
14340 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14341 echo "${ECHO_T}$dynamic_linker" >&6; }
14342 test "$dynamic_linker" = no && can_build_shared=no
14343
14344 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14345 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
14346 hardcode_action_CXX=
14347 if test -n "$hardcode_libdir_flag_spec_CXX" || \
14348    test -n "$runpath_var_CXX" || \
14349    test "X$hardcode_automatic_CXX" = "Xyes" ; then
14350
14351   # We can hardcode non-existant directories.
14352   if test "$hardcode_direct_CXX" != no &&
14353      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14354      # have to relink, otherwise we might link with an installed library
14355      # when we should be linking with a yet-to-be-installed one
14356      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14357      test "$hardcode_minus_L_CXX" != no; then
14358     # Linking always hardcodes the temporary library directory.
14359     hardcode_action_CXX=relink
14360   else
14361     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14362     hardcode_action_CXX=immediate
14363   fi
14364 else
14365   # We cannot hardcode anything, or else we can only hardcode existing
14366   # directories.
14367   hardcode_action_CXX=unsupported
14368 fi
14369 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14370 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
14371
14372 if test "$hardcode_action_CXX" = relink; then
14373   # Fast installation is not supported
14374   enable_fast_install=no
14375 elif test "$shlibpath_overrides_runpath" = yes ||
14376      test "$enable_shared" = no; then
14377   # Fast installation is not necessary
14378   enable_fast_install=needless
14379 fi
14380
14381 striplib=
14382 old_striplib=
14383 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14384 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
14385 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14386   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14387   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14388   { echo "$as_me:$LINENO: result: yes" >&5
14389 echo "${ECHO_T}yes" >&6; }
14390 else
14391 # FIXME - insert some real tests, host_os isn't really good enough
14392   case $host_os in
14393    darwin*)
14394        if test -n "$STRIP" ; then
14395          striplib="$STRIP -x"
14396          { echo "$as_me:$LINENO: result: yes" >&5
14397 echo "${ECHO_T}yes" >&6; }
14398        else
14399   { echo "$as_me:$LINENO: result: no" >&5
14400 echo "${ECHO_T}no" >&6; }
14401 fi
14402        ;;
14403    *)
14404   { echo "$as_me:$LINENO: result: no" >&5
14405 echo "${ECHO_T}no" >&6; }
14406     ;;
14407   esac
14408 fi
14409
14410 if test "x$enable_dlopen" != xyes; then
14411   enable_dlopen=unknown
14412   enable_dlopen_self=unknown
14413   enable_dlopen_self_static=unknown
14414 else
14415   lt_cv_dlopen=no
14416   lt_cv_dlopen_libs=
14417
14418   case $host_os in
14419   beos*)
14420     lt_cv_dlopen="load_add_on"
14421     lt_cv_dlopen_libs=
14422     lt_cv_dlopen_self=yes
14423     ;;
14424
14425   mingw* | pw32*)
14426     lt_cv_dlopen="LoadLibrary"
14427     lt_cv_dlopen_libs=
14428    ;;
14429
14430   cygwin*)
14431     lt_cv_dlopen="dlopen"
14432     lt_cv_dlopen_libs=
14433    ;;
14434
14435   darwin*)
14436   # if libdl is installed we need to link against it
14437     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14438 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
14439 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14440   echo $ECHO_N "(cached) $ECHO_C" >&6
14441 else
14442   ac_check_lib_save_LIBS=$LIBS
14443 LIBS="-ldl  $LIBS"
14444 cat >conftest.$ac_ext <<_ACEOF
14445 /* confdefs.h.  */
14446 _ACEOF
14447 cat confdefs.h >>conftest.$ac_ext
14448 cat >>conftest.$ac_ext <<_ACEOF
14449 /* end confdefs.h.  */
14450
14451 /* Override any GCC internal prototype to avoid an error.
14452    Use char because int might match the return type of a GCC
14453    builtin and then its argument prototype would still apply.  */
14454 #ifdef __cplusplus
14455 extern "C"
14456 #endif
14457 char dlopen ();
14458 int
14459 main ()
14460 {
14461 return dlopen ();
14462   ;
14463   return 0;
14464 }
14465 _ACEOF
14466 rm -f conftest.$ac_objext conftest$ac_exeext
14467 if { (ac_try="$ac_link"
14468 case "(($ac_try" in
14469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14470   *) ac_try_echo=$ac_try;;
14471 esac
14472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14473   (eval "$ac_link") 2>conftest.er1
14474   ac_status=$?
14475   grep -v '^ *+' conftest.er1 >conftest.err
14476   rm -f conftest.er1
14477   cat conftest.err >&5
14478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14479   (exit $ac_status); } && {
14480          test -z "$ac_cxx_werror_flag" ||
14481          test ! -s conftest.err
14482        } && test -s conftest$ac_exeext &&
14483        $as_test_x conftest$ac_exeext; then
14484   ac_cv_lib_dl_dlopen=yes
14485 else
14486   echo "$as_me: failed program was:" >&5
14487 sed 's/^/| /' conftest.$ac_ext >&5
14488
14489         ac_cv_lib_dl_dlopen=no
14490 fi
14491
14492 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14493       conftest$ac_exeext conftest.$ac_ext
14494 LIBS=$ac_check_lib_save_LIBS
14495 fi
14496 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14497 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
14498 if test $ac_cv_lib_dl_dlopen = yes; then
14499   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14500 else
14501
14502     lt_cv_dlopen="dyld"
14503     lt_cv_dlopen_libs=
14504     lt_cv_dlopen_self=yes
14505
14506 fi
14507
14508    ;;
14509
14510   *)
14511     { echo "$as_me:$LINENO: checking for shl_load" >&5
14512 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
14513 if test "${ac_cv_func_shl_load+set}" = set; then
14514   echo $ECHO_N "(cached) $ECHO_C" >&6
14515 else
14516   cat >conftest.$ac_ext <<_ACEOF
14517 /* confdefs.h.  */
14518 _ACEOF
14519 cat confdefs.h >>conftest.$ac_ext
14520 cat >>conftest.$ac_ext <<_ACEOF
14521 /* end confdefs.h.  */
14522 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
14523    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14524 #define shl_load innocuous_shl_load
14525
14526 /* System header to define __stub macros and hopefully few prototypes,
14527     which can conflict with char shl_load (); below.
14528     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14529     <limits.h> exists even on freestanding compilers.  */
14530
14531 #ifdef __STDC__
14532 # include <limits.h>
14533 #else
14534 # include <assert.h>
14535 #endif
14536
14537 #undef shl_load
14538
14539 /* Override any GCC internal prototype to avoid an error.
14540    Use char because int might match the return type of a GCC
14541    builtin and then its argument prototype would still apply.  */
14542 #ifdef __cplusplus
14543 extern "C"
14544 #endif
14545 char shl_load ();
14546 /* The GNU C library defines this for functions which it implements
14547     to always fail with ENOSYS.  Some functions are actually named
14548     something starting with __ and the normal name is an alias.  */
14549 #if defined __stub_shl_load || defined __stub___shl_load
14550 choke me
14551 #endif
14552
14553 int
14554 main ()
14555 {
14556 return shl_load ();
14557   ;
14558   return 0;
14559 }
14560 _ACEOF
14561 rm -f conftest.$ac_objext conftest$ac_exeext
14562 if { (ac_try="$ac_link"
14563 case "(($ac_try" in
14564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14565   *) ac_try_echo=$ac_try;;
14566 esac
14567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14568   (eval "$ac_link") 2>conftest.er1
14569   ac_status=$?
14570   grep -v '^ *+' conftest.er1 >conftest.err
14571   rm -f conftest.er1
14572   cat conftest.err >&5
14573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14574   (exit $ac_status); } && {
14575          test -z "$ac_cxx_werror_flag" ||
14576          test ! -s conftest.err
14577        } && test -s conftest$ac_exeext &&
14578        $as_test_x conftest$ac_exeext; then
14579   ac_cv_func_shl_load=yes
14580 else
14581   echo "$as_me: failed program was:" >&5
14582 sed 's/^/| /' conftest.$ac_ext >&5
14583
14584         ac_cv_func_shl_load=no
14585 fi
14586
14587 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14588       conftest$ac_exeext conftest.$ac_ext
14589 fi
14590 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
14591 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
14592 if test $ac_cv_func_shl_load = yes; then
14593   lt_cv_dlopen="shl_load"
14594 else
14595   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
14596 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
14597 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
14598   echo $ECHO_N "(cached) $ECHO_C" >&6
14599 else
14600   ac_check_lib_save_LIBS=$LIBS
14601 LIBS="-ldld  $LIBS"
14602 cat >conftest.$ac_ext <<_ACEOF
14603 /* confdefs.h.  */
14604 _ACEOF
14605 cat confdefs.h >>conftest.$ac_ext
14606 cat >>conftest.$ac_ext <<_ACEOF
14607 /* end confdefs.h.  */
14608
14609 /* Override any GCC internal prototype to avoid an error.
14610    Use char because int might match the return type of a GCC
14611    builtin and then its argument prototype would still apply.  */
14612 #ifdef __cplusplus
14613 extern "C"
14614 #endif
14615 char shl_load ();
14616 int
14617 main ()
14618 {
14619 return shl_load ();
14620   ;
14621   return 0;
14622 }
14623 _ACEOF
14624 rm -f conftest.$ac_objext conftest$ac_exeext
14625 if { (ac_try="$ac_link"
14626 case "(($ac_try" in
14627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14628   *) ac_try_echo=$ac_try;;
14629 esac
14630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14631   (eval "$ac_link") 2>conftest.er1
14632   ac_status=$?
14633   grep -v '^ *+' conftest.er1 >conftest.err
14634   rm -f conftest.er1
14635   cat conftest.err >&5
14636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14637   (exit $ac_status); } && {
14638          test -z "$ac_cxx_werror_flag" ||
14639          test ! -s conftest.err
14640        } && test -s conftest$ac_exeext &&
14641        $as_test_x conftest$ac_exeext; then
14642   ac_cv_lib_dld_shl_load=yes
14643 else
14644   echo "$as_me: failed program was:" >&5
14645 sed 's/^/| /' conftest.$ac_ext >&5
14646
14647         ac_cv_lib_dld_shl_load=no
14648 fi
14649
14650 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14651       conftest$ac_exeext conftest.$ac_ext
14652 LIBS=$ac_check_lib_save_LIBS
14653 fi
14654 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
14655 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
14656 if test $ac_cv_lib_dld_shl_load = yes; then
14657   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
14658 else
14659   { echo "$as_me:$LINENO: checking for dlopen" >&5
14660 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
14661 if test "${ac_cv_func_dlopen+set}" = set; then
14662   echo $ECHO_N "(cached) $ECHO_C" >&6
14663 else
14664   cat >conftest.$ac_ext <<_ACEOF
14665 /* confdefs.h.  */
14666 _ACEOF
14667 cat confdefs.h >>conftest.$ac_ext
14668 cat >>conftest.$ac_ext <<_ACEOF
14669 /* end confdefs.h.  */
14670 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
14671    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14672 #define dlopen innocuous_dlopen
14673
14674 /* System header to define __stub macros and hopefully few prototypes,
14675     which can conflict with char dlopen (); below.
14676     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14677     <limits.h> exists even on freestanding compilers.  */
14678
14679 #ifdef __STDC__
14680 # include <limits.h>
14681 #else
14682 # include <assert.h>
14683 #endif
14684
14685 #undef dlopen
14686
14687 /* Override any GCC internal prototype to avoid an error.
14688    Use char because int might match the return type of a GCC
14689    builtin and then its argument prototype would still apply.  */
14690 #ifdef __cplusplus
14691 extern "C"
14692 #endif
14693 char dlopen ();
14694 /* The GNU C library defines this for functions which it implements
14695     to always fail with ENOSYS.  Some functions are actually named
14696     something starting with __ and the normal name is an alias.  */
14697 #if defined __stub_dlopen || defined __stub___dlopen
14698 choke me
14699 #endif
14700
14701 int
14702 main ()
14703 {
14704 return dlopen ();
14705   ;
14706   return 0;
14707 }
14708 _ACEOF
14709 rm -f conftest.$ac_objext conftest$ac_exeext
14710 if { (ac_try="$ac_link"
14711 case "(($ac_try" in
14712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14713   *) ac_try_echo=$ac_try;;
14714 esac
14715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14716   (eval "$ac_link") 2>conftest.er1
14717   ac_status=$?
14718   grep -v '^ *+' conftest.er1 >conftest.err
14719   rm -f conftest.er1
14720   cat conftest.err >&5
14721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14722   (exit $ac_status); } && {
14723          test -z "$ac_cxx_werror_flag" ||
14724          test ! -s conftest.err
14725        } && test -s conftest$ac_exeext &&
14726        $as_test_x conftest$ac_exeext; then
14727   ac_cv_func_dlopen=yes
14728 else
14729   echo "$as_me: failed program was:" >&5
14730 sed 's/^/| /' conftest.$ac_ext >&5
14731
14732         ac_cv_func_dlopen=no
14733 fi
14734
14735 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14736       conftest$ac_exeext conftest.$ac_ext
14737 fi
14738 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
14739 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
14740 if test $ac_cv_func_dlopen = yes; then
14741   lt_cv_dlopen="dlopen"
14742 else
14743   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14744 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
14745 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14746   echo $ECHO_N "(cached) $ECHO_C" >&6
14747 else
14748   ac_check_lib_save_LIBS=$LIBS
14749 LIBS="-ldl  $LIBS"
14750 cat >conftest.$ac_ext <<_ACEOF
14751 /* confdefs.h.  */
14752 _ACEOF
14753 cat confdefs.h >>conftest.$ac_ext
14754 cat >>conftest.$ac_ext <<_ACEOF
14755 /* end confdefs.h.  */
14756
14757 /* Override any GCC internal prototype to avoid an error.
14758    Use char because int might match the return type of a GCC
14759    builtin and then its argument prototype would still apply.  */
14760 #ifdef __cplusplus
14761 extern "C"
14762 #endif
14763 char dlopen ();
14764 int
14765 main ()
14766 {
14767 return dlopen ();
14768   ;
14769   return 0;
14770 }
14771 _ACEOF
14772 rm -f conftest.$ac_objext conftest$ac_exeext
14773 if { (ac_try="$ac_link"
14774 case "(($ac_try" in
14775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14776   *) ac_try_echo=$ac_try;;
14777 esac
14778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14779   (eval "$ac_link") 2>conftest.er1
14780   ac_status=$?
14781   grep -v '^ *+' conftest.er1 >conftest.err
14782   rm -f conftest.er1
14783   cat conftest.err >&5
14784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14785   (exit $ac_status); } && {
14786          test -z "$ac_cxx_werror_flag" ||
14787          test ! -s conftest.err
14788        } && test -s conftest$ac_exeext &&
14789        $as_test_x conftest$ac_exeext; then
14790   ac_cv_lib_dl_dlopen=yes
14791 else
14792   echo "$as_me: failed program was:" >&5
14793 sed 's/^/| /' conftest.$ac_ext >&5
14794
14795         ac_cv_lib_dl_dlopen=no
14796 fi
14797
14798 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14799       conftest$ac_exeext conftest.$ac_ext
14800 LIBS=$ac_check_lib_save_LIBS
14801 fi
14802 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14803 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
14804 if test $ac_cv_lib_dl_dlopen = yes; then
14805   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14806 else
14807   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14808 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
14809 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14810   echo $ECHO_N "(cached) $ECHO_C" >&6
14811 else
14812   ac_check_lib_save_LIBS=$LIBS
14813 LIBS="-lsvld  $LIBS"
14814 cat >conftest.$ac_ext <<_ACEOF
14815 /* confdefs.h.  */
14816 _ACEOF
14817 cat confdefs.h >>conftest.$ac_ext
14818 cat >>conftest.$ac_ext <<_ACEOF
14819 /* end confdefs.h.  */
14820
14821 /* Override any GCC internal prototype to avoid an error.
14822    Use char because int might match the return type of a GCC
14823    builtin and then its argument prototype would still apply.  */
14824 #ifdef __cplusplus
14825 extern "C"
14826 #endif
14827 char dlopen ();
14828 int
14829 main ()
14830 {
14831 return dlopen ();
14832   ;
14833   return 0;
14834 }
14835 _ACEOF
14836 rm -f conftest.$ac_objext conftest$ac_exeext
14837 if { (ac_try="$ac_link"
14838 case "(($ac_try" in
14839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14840   *) ac_try_echo=$ac_try;;
14841 esac
14842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14843   (eval "$ac_link") 2>conftest.er1
14844   ac_status=$?
14845   grep -v '^ *+' conftest.er1 >conftest.err
14846   rm -f conftest.er1
14847   cat conftest.err >&5
14848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14849   (exit $ac_status); } && {
14850          test -z "$ac_cxx_werror_flag" ||
14851          test ! -s conftest.err
14852        } && test -s conftest$ac_exeext &&
14853        $as_test_x conftest$ac_exeext; then
14854   ac_cv_lib_svld_dlopen=yes
14855 else
14856   echo "$as_me: failed program was:" >&5
14857 sed 's/^/| /' conftest.$ac_ext >&5
14858
14859         ac_cv_lib_svld_dlopen=no
14860 fi
14861
14862 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14863       conftest$ac_exeext conftest.$ac_ext
14864 LIBS=$ac_check_lib_save_LIBS
14865 fi
14866 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14867 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
14868 if test $ac_cv_lib_svld_dlopen = yes; then
14869   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14870 else
14871   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14872 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
14873 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14874   echo $ECHO_N "(cached) $ECHO_C" >&6
14875 else
14876   ac_check_lib_save_LIBS=$LIBS
14877 LIBS="-ldld  $LIBS"
14878 cat >conftest.$ac_ext <<_ACEOF
14879 /* confdefs.h.  */
14880 _ACEOF
14881 cat confdefs.h >>conftest.$ac_ext
14882 cat >>conftest.$ac_ext <<_ACEOF
14883 /* end confdefs.h.  */
14884
14885 /* Override any GCC internal prototype to avoid an error.
14886    Use char because int might match the return type of a GCC
14887    builtin and then its argument prototype would still apply.  */
14888 #ifdef __cplusplus
14889 extern "C"
14890 #endif
14891 char dld_link ();
14892 int
14893 main ()
14894 {
14895 return dld_link ();
14896   ;
14897   return 0;
14898 }
14899 _ACEOF
14900 rm -f conftest.$ac_objext conftest$ac_exeext
14901 if { (ac_try="$ac_link"
14902 case "(($ac_try" in
14903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14904   *) ac_try_echo=$ac_try;;
14905 esac
14906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14907   (eval "$ac_link") 2>conftest.er1
14908   ac_status=$?
14909   grep -v '^ *+' conftest.er1 >conftest.err
14910   rm -f conftest.er1
14911   cat conftest.err >&5
14912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14913   (exit $ac_status); } && {
14914          test -z "$ac_cxx_werror_flag" ||
14915          test ! -s conftest.err
14916        } && test -s conftest$ac_exeext &&
14917        $as_test_x conftest$ac_exeext; then
14918   ac_cv_lib_dld_dld_link=yes
14919 else
14920   echo "$as_me: failed program was:" >&5
14921 sed 's/^/| /' conftest.$ac_ext >&5
14922
14923         ac_cv_lib_dld_dld_link=no
14924 fi
14925
14926 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14927       conftest$ac_exeext conftest.$ac_ext
14928 LIBS=$ac_check_lib_save_LIBS
14929 fi
14930 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14931 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
14932 if test $ac_cv_lib_dld_dld_link = yes; then
14933   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14934 fi
14935
14936
14937 fi
14938
14939
14940 fi
14941
14942
14943 fi
14944
14945
14946 fi
14947
14948
14949 fi
14950
14951     ;;
14952   esac
14953
14954   if test "x$lt_cv_dlopen" != xno; then
14955     enable_dlopen=yes
14956   else
14957     enable_dlopen=no
14958   fi
14959
14960   case $lt_cv_dlopen in
14961   dlopen)
14962     save_CPPFLAGS="$CPPFLAGS"
14963     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14964
14965     save_LDFLAGS="$LDFLAGS"
14966     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14967
14968     save_LIBS="$LIBS"
14969     LIBS="$lt_cv_dlopen_libs $LIBS"
14970
14971     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14972 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
14973 if test "${lt_cv_dlopen_self+set}" = set; then
14974   echo $ECHO_N "(cached) $ECHO_C" >&6
14975 else
14976           if test "$cross_compiling" = yes; then :
14977   lt_cv_dlopen_self=cross
14978 else
14979   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14980   lt_status=$lt_dlunknown
14981   cat > conftest.$ac_ext <<EOF
14982 #line 14982 "configure"
14983 #include "confdefs.h"
14984
14985 #if HAVE_DLFCN_H
14986 #include <dlfcn.h>
14987 #endif
14988
14989 #include <stdio.h>
14990
14991 #ifdef RTLD_GLOBAL
14992 #  define LT_DLGLOBAL           RTLD_GLOBAL
14993 #else
14994 #  ifdef DL_GLOBAL
14995 #    define LT_DLGLOBAL         DL_GLOBAL
14996 #  else
14997 #    define LT_DLGLOBAL         0
14998 #  endif
14999 #endif
15000
15001 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15002    find out it does not work in some platform. */
15003 #ifndef LT_DLLAZY_OR_NOW
15004 #  ifdef RTLD_LAZY
15005 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
15006 #  else
15007 #    ifdef DL_LAZY
15008 #      define LT_DLLAZY_OR_NOW          DL_LAZY
15009 #    else
15010 #      ifdef RTLD_NOW
15011 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
15012 #      else
15013 #        ifdef DL_NOW
15014 #          define LT_DLLAZY_OR_NOW      DL_NOW
15015 #        else
15016 #          define LT_DLLAZY_OR_NOW      0
15017 #        endif
15018 #      endif
15019 #    endif
15020 #  endif
15021 #endif
15022
15023 #ifdef __cplusplus
15024 extern "C" void exit (int);
15025 #endif
15026
15027 void fnord() { int i=42;}
15028 int main ()
15029 {
15030   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15031   int status = $lt_dlunknown;
15032
15033   if (self)
15034     {
15035       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
15036       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15037       /* dlclose (self); */
15038     }
15039
15040     exit (status);
15041 }
15042 EOF
15043   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15044   (eval $ac_link) 2>&5
15045   ac_status=$?
15046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15047   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
15048     (./conftest; exit; ) >&5 2>/dev/null
15049     lt_status=$?
15050     case x$lt_status in
15051       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15052       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15053       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
15054     esac
15055   else :
15056     # compilation failed
15057     lt_cv_dlopen_self=no
15058   fi
15059 fi
15060 rm -fr conftest*
15061
15062
15063 fi
15064 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
15065 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
15066
15067     if test "x$lt_cv_dlopen_self" = xyes; then
15068       LDFLAGS="$LDFLAGS $link_static_flag"
15069       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
15070 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
15071 if test "${lt_cv_dlopen_self_static+set}" = set; then
15072   echo $ECHO_N "(cached) $ECHO_C" >&6
15073 else
15074           if test "$cross_compiling" = yes; then :
15075   lt_cv_dlopen_self_static=cross
15076 else
15077   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15078   lt_status=$lt_dlunknown
15079   cat > conftest.$ac_ext <<EOF
15080 #line 15080 "configure"
15081 #include "confdefs.h"
15082
15083 #if HAVE_DLFCN_H
15084 #include <dlfcn.h>
15085 #endif
15086
15087 #include <stdio.h>
15088
15089 #ifdef RTLD_GLOBAL
15090 #  define LT_DLGLOBAL           RTLD_GLOBAL
15091 #else
15092 #  ifdef DL_GLOBAL
15093 #    define LT_DLGLOBAL         DL_GLOBAL
15094 #  else
15095 #    define LT_DLGLOBAL         0
15096 #  endif
15097 #endif
15098
15099 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15100    find out it does not work in some platform. */
15101 #ifndef LT_DLLAZY_OR_NOW
15102 #  ifdef RTLD_LAZY
15103 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
15104 #  else
15105 #    ifdef DL_LAZY
15106 #      define LT_DLLAZY_OR_NOW          DL_LAZY
15107 #    else
15108 #      ifdef RTLD_NOW
15109 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
15110 #      else
15111 #        ifdef DL_NOW
15112 #          define LT_DLLAZY_OR_NOW      DL_NOW
15113 #        else
15114 #          define LT_DLLAZY_OR_NOW      0
15115 #        endif
15116 #      endif
15117 #    endif
15118 #  endif
15119 #endif
15120
15121 #ifdef __cplusplus
15122 extern "C" void exit (int);
15123 #endif
15124
15125 void fnord() { int i=42;}
15126 int main ()
15127 {
15128   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15129   int status = $lt_dlunknown;
15130
15131   if (self)
15132     {
15133       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
15134       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15135       /* dlclose (self); */
15136     }
15137
15138     exit (status);
15139 }
15140 EOF
15141   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15142   (eval $ac_link) 2>&5
15143   ac_status=$?
15144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15145   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
15146     (./conftest; exit; ) >&5 2>/dev/null
15147     lt_status=$?
15148     case x$lt_status in
15149       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15150       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15151       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
15152     esac
15153   else :
15154     # compilation failed
15155     lt_cv_dlopen_self_static=no
15156   fi
15157 fi
15158 rm -fr conftest*
15159
15160
15161 fi
15162 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
15163 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
15164     fi
15165
15166     CPPFLAGS="$save_CPPFLAGS"
15167     LDFLAGS="$save_LDFLAGS"
15168     LIBS="$save_LIBS"
15169     ;;
15170   esac
15171
15172   case $lt_cv_dlopen_self in
15173   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15174   *) enable_dlopen_self=unknown ;;
15175   esac
15176
15177   case $lt_cv_dlopen_self_static in
15178   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15179   *) enable_dlopen_self_static=unknown ;;
15180   esac
15181 fi
15182
15183
15184 # The else clause should only fire when bootstrapping the
15185 # libtool distribution, otherwise you forgot to ship ltmain.sh
15186 # with your package, and you will get complaints that there are
15187 # no rules to generate ltmain.sh.
15188 if test -f "$ltmain"; then
15189   # See if we are running on zsh, and set the options which allow our commands through
15190   # without removal of \ escapes.
15191   if test -n "${ZSH_VERSION+set}" ; then
15192     setopt NO_GLOB_SUBST
15193   fi
15194   # Now quote all the things that may contain metacharacters while being
15195   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15196   # variables and quote the copies for generation of the libtool script.
15197   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15198     SED SHELL STRIP \
15199     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15200     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15201     deplibs_check_method reload_flag reload_cmds need_locks \
15202     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15203     lt_cv_sys_global_symbol_to_c_name_address \
15204     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15205     old_postinstall_cmds old_postuninstall_cmds \
15206     compiler_CXX \
15207     CC_CXX \
15208     LD_CXX \
15209     lt_prog_compiler_wl_CXX \
15210     lt_prog_compiler_pic_CXX \
15211     lt_prog_compiler_static_CXX \
15212     lt_prog_compiler_no_builtin_flag_CXX \
15213     export_dynamic_flag_spec_CXX \
15214     thread_safe_flag_spec_CXX \
15215     whole_archive_flag_spec_CXX \
15216     enable_shared_with_static_runtimes_CXX \
15217     old_archive_cmds_CXX \
15218     old_archive_from_new_cmds_CXX \
15219     predep_objects_CXX \
15220     postdep_objects_CXX \
15221     predeps_CXX \
15222     postdeps_CXX \
15223     compiler_lib_search_path_CXX \
15224     archive_cmds_CXX \
15225     archive_expsym_cmds_CXX \
15226     postinstall_cmds_CXX \
15227     postuninstall_cmds_CXX \
15228     old_archive_from_expsyms_cmds_CXX \
15229     allow_undefined_flag_CXX \
15230     no_undefined_flag_CXX \
15231     export_symbols_cmds_CXX \
15232     hardcode_libdir_flag_spec_CXX \
15233     hardcode_libdir_flag_spec_ld_CXX \
15234     hardcode_libdir_separator_CXX \
15235     hardcode_automatic_CXX \
15236     module_cmds_CXX \
15237     module_expsym_cmds_CXX \
15238     lt_cv_prog_compiler_c_o_CXX \
15239     exclude_expsyms_CXX \
15240     include_expsyms_CXX; do
15241
15242     case $var in
15243     old_archive_cmds_CXX | \
15244     old_archive_from_new_cmds_CXX | \
15245     archive_cmds_CXX | \
15246     archive_expsym_cmds_CXX | \
15247     module_cmds_CXX | \
15248     module_expsym_cmds_CXX | \
15249     old_archive_from_expsyms_cmds_CXX | \
15250     export_symbols_cmds_CXX | \
15251     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15252     postinstall_cmds | postuninstall_cmds | \
15253     old_postinstall_cmds | old_postuninstall_cmds | \
15254     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15255       # Double-quote double-evaled strings.
15256       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15257       ;;
15258     *)
15259       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15260       ;;
15261     esac
15262   done
15263
15264   case $lt_echo in
15265   *'\$0 --fallback-echo"')
15266     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15267     ;;
15268   esac
15269
15270 cfgfile="$ofile"
15271
15272   cat <<__EOF__ >> "$cfgfile"
15273 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15274
15275 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15276
15277 # Shell to use when invoking shell scripts.
15278 SHELL=$lt_SHELL
15279
15280 # Whether or not to build shared libraries.
15281 build_libtool_libs=$enable_shared
15282
15283 # Whether or not to build static libraries.
15284 build_old_libs=$enable_static
15285
15286 # Whether or not to add -lc for building shared libraries.
15287 build_libtool_need_lc=$archive_cmds_need_lc_CXX
15288
15289 # Whether or not to disallow shared libs when runtime libs are static
15290 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
15291
15292 # Whether or not to optimize for fast installation.
15293 fast_install=$enable_fast_install
15294
15295 # The host system.
15296 host_alias=$host_alias
15297 host=$host
15298 host_os=$host_os
15299
15300 # The build system.
15301 build_alias=$build_alias
15302 build=$build
15303 build_os=$build_os
15304
15305 # An echo program that does not interpret backslashes.
15306 echo=$lt_echo
15307
15308 # The archiver.
15309 AR=$lt_AR
15310 AR_FLAGS=$lt_AR_FLAGS
15311
15312 # A C compiler.
15313 LTCC=$lt_LTCC
15314
15315 # A language-specific compiler.
15316 CC=$lt_compiler_CXX
15317
15318 # Is the compiler the GNU C compiler?
15319 with_gcc=$GCC_CXX
15320
15321 # An ERE matcher.
15322 EGREP=$lt_EGREP
15323
15324 # The linker used to build libraries.
15325 LD=$lt_LD_CXX
15326
15327 # Whether we need hard or soft links.
15328 LN_S=$lt_LN_S
15329
15330 # A BSD-compatible nm program.
15331 NM=$lt_NM
15332
15333 # A symbol stripping program
15334 STRIP=$lt_STRIP
15335
15336 # Used to examine libraries when file_magic_cmd begins "file"
15337 MAGIC_CMD=$MAGIC_CMD
15338
15339 # Used on cygwin: DLL creation program.
15340 DLLTOOL="$DLLTOOL"
15341
15342 # Used on cygwin: object dumper.
15343 OBJDUMP="$OBJDUMP"
15344
15345 # Used on cygwin: assembler.
15346 AS="$AS"
15347
15348 # The name of the directory that contains temporary libtool files.
15349 objdir=$objdir
15350
15351 # How to create reloadable object files.
15352 reload_flag=$lt_reload_flag
15353 reload_cmds=$lt_reload_cmds
15354
15355 # How to pass a linker flag through the compiler.
15356 wl=$lt_lt_prog_compiler_wl_CXX
15357
15358 # Object file suffix (normally "o").
15359 objext="$ac_objext"
15360
15361 # Old archive suffix (normally "a").
15362 libext="$libext"
15363
15364 # Shared library suffix (normally ".so").
15365 shrext_cmds='$shrext_cmds'
15366
15367 # Executable file suffix (normally "").
15368 exeext="$exeext"
15369
15370 # Additional compiler flags for building library objects.
15371 pic_flag=$lt_lt_prog_compiler_pic_CXX
15372 pic_mode=$pic_mode
15373
15374 # What is the maximum length of a command?
15375 max_cmd_len=$lt_cv_sys_max_cmd_len
15376
15377 # Does compiler simultaneously support -c and -o options?
15378 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
15379
15380 # Must we lock files when doing compilation?
15381 need_locks=$lt_need_locks
15382
15383 # Do we need the lib prefix for modules?
15384 need_lib_prefix=$need_lib_prefix
15385
15386 # Do we need a version for libraries?
15387 need_version=$need_version
15388
15389 # Whether dlopen is supported.
15390 dlopen_support=$enable_dlopen
15391
15392 # Whether dlopen of programs is supported.
15393 dlopen_self=$enable_dlopen_self
15394
15395 # Whether dlopen of statically linked programs is supported.
15396 dlopen_self_static=$enable_dlopen_self_static
15397
15398 # Compiler flag to prevent dynamic linking.
15399 link_static_flag=$lt_lt_prog_compiler_static_CXX
15400
15401 # Compiler flag to turn off builtin functions.
15402 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
15403
15404 # Compiler flag to allow reflexive dlopens.
15405 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
15406
15407 # Compiler flag to generate shared objects directly from archives.
15408 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
15409
15410 # Compiler flag to generate thread-safe objects.
15411 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
15412
15413 # Library versioning type.
15414 version_type=$version_type
15415
15416 # Format of library name prefix.
15417 libname_spec=$lt_libname_spec
15418
15419 # List of archive names.  First name is the real one, the rest are links.
15420 # The last name is the one that the linker finds with -lNAME.
15421 library_names_spec=$lt_library_names_spec
15422
15423 # The coded name of the library, if different from the real name.
15424 soname_spec=$lt_soname_spec
15425
15426 # Commands used to build and install an old-style archive.
15427 RANLIB=$lt_RANLIB
15428 old_archive_cmds=$lt_old_archive_cmds_CXX
15429 old_postinstall_cmds=$lt_old_postinstall_cmds
15430 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15431
15432 # Create an old-style archive from a shared archive.
15433 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
15434
15435 # Create a temporary old-style archive to link instead of a shared archive.
15436 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
15437
15438 # Commands used to build and install a shared archive.
15439 archive_cmds=$lt_archive_cmds_CXX
15440 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
15441 postinstall_cmds=$lt_postinstall_cmds
15442 postuninstall_cmds=$lt_postuninstall_cmds
15443
15444 # Commands used to build a loadable module (assumed same as above if empty)
15445 module_cmds=$lt_module_cmds_CXX
15446 module_expsym_cmds=$lt_module_expsym_cmds_CXX
15447
15448 # Commands to strip libraries.
15449 old_striplib=$lt_old_striplib
15450 striplib=$lt_striplib
15451
15452 # Dependencies to place before the objects being linked to create a
15453 # shared library.
15454 predep_objects=$lt_predep_objects_CXX
15455
15456 # Dependencies to place after the objects being linked to create a
15457 # shared library.
15458 postdep_objects=$lt_postdep_objects_CXX
15459
15460 # Dependencies to place before the objects being linked to create a
15461 # shared library.
15462 predeps=$lt_predeps_CXX
15463
15464 # Dependencies to place after the objects being linked to create a
15465 # shared library.
15466 postdeps=$lt_postdeps_CXX
15467
15468 # The library search path used internally by the compiler when linking
15469 # a shared library.
15470 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
15471
15472 # Method to check whether dependent libraries are shared objects.
15473 deplibs_check_method=$lt_deplibs_check_method
15474
15475 # Command to use when deplibs_check_method == file_magic.
15476 file_magic_cmd=$lt_file_magic_cmd
15477
15478 # Flag that allows shared libraries with undefined symbols to be built.
15479 allow_undefined_flag=$lt_allow_undefined_flag_CXX
15480
15481 # Flag that forces no undefined symbols.
15482 no_undefined_flag=$lt_no_undefined_flag_CXX
15483
15484 # Commands used to finish a libtool library installation in a directory.
15485 finish_cmds=$lt_finish_cmds
15486
15487 # Same as above, but a single script fragment to be evaled but not shown.
15488 finish_eval=$lt_finish_eval
15489
15490 # Take the output of nm and produce a listing of raw symbols and C names.
15491 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15492
15493 # Transform the output of nm in a proper C declaration
15494 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15495
15496 # Transform the output of nm in a C name address pair
15497 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15498
15499 # This is the shared library runtime path variable.
15500 runpath_var=$runpath_var
15501
15502 # This is the shared library path variable.
15503 shlibpath_var=$shlibpath_var
15504
15505 # Is shlibpath searched before the hard-coded library search path?
15506 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15507
15508 # How to hardcode a shared library path into an executable.
15509 hardcode_action=$hardcode_action_CXX
15510
15511 # Whether we should hardcode library paths into libraries.
15512 hardcode_into_libs=$hardcode_into_libs
15513
15514 # Flag to hardcode \$libdir into a binary during linking.
15515 # This must work even if \$libdir does not exist.
15516 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
15517
15518 # If ld is used when linking, flag to hardcode \$libdir into
15519 # a binary during linking. This must work even if \$libdir does
15520 # not exist.
15521 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
15522
15523 # Whether we need a single -rpath flag with a separated argument.
15524 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
15525
15526 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15527 # resulting binary.
15528 hardcode_direct=$hardcode_direct_CXX
15529
15530 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15531 # resulting binary.
15532 hardcode_minus_L=$hardcode_minus_L_CXX
15533
15534 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15535 # the resulting binary.
15536 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
15537
15538 # Set to yes if building a shared library automatically hardcodes DIR into the library
15539 # and all subsequent libraries and executables linked against it.
15540 hardcode_automatic=$hardcode_automatic_CXX
15541
15542 # Variables whose values should be saved in libtool wrapper scripts and
15543 # restored at relink time.
15544 variables_saved_for_relink="$variables_saved_for_relink"
15545
15546 # Whether libtool must link a program against all its dependency libraries.
15547 link_all_deplibs=$link_all_deplibs_CXX
15548
15549 # Compile-time system search path for libraries
15550 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15551
15552 # Run-time system search path for libraries
15553 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15554
15555 # Fix the shell variable \$srcfile for the compiler.
15556 fix_srcfile_path="$fix_srcfile_path_CXX"
15557
15558 # Set to yes if exported symbols are required.
15559 always_export_symbols=$always_export_symbols_CXX
15560
15561 # The commands to list exported symbols.
15562 export_symbols_cmds=$lt_export_symbols_cmds_CXX
15563
15564 # The commands to extract the exported symbol list from a shared archive.
15565 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15566
15567 # Symbols that should not be listed in the preloaded symbols.
15568 exclude_expsyms=$lt_exclude_expsyms_CXX
15569
15570 # Symbols that must always be exported.
15571 include_expsyms=$lt_include_expsyms_CXX
15572
15573 # ### END LIBTOOL TAG CONFIG: $tagname
15574
15575 __EOF__
15576
15577
15578 else
15579   # If there is no Makefile yet, we rely on a make rule to execute
15580   # `config.status --recheck' to rerun these tests and create the
15581   # libtool script then.
15582   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15583   if test -f "$ltmain_in"; then
15584     test -f Makefile && make "$ltmain"
15585   fi
15586 fi
15587
15588
15589 ac_ext=c
15590 ac_cpp='$CPP $CPPFLAGS'
15591 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15592 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15593 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15594
15595 CC=$lt_save_CC
15596 LDCXX=$LD
15597 LD=$lt_save_LD
15598 GCC=$lt_save_GCC
15599 with_gnu_ldcxx=$with_gnu_ld
15600 with_gnu_ld=$lt_save_with_gnu_ld
15601 lt_cv_path_LDCXX=$lt_cv_path_LD
15602 lt_cv_path_LD=$lt_save_path_LD
15603 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15604 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15605
15606         else
15607           tagname=""
15608         fi
15609         ;;
15610
15611       F77)
15612         if test -n "$F77" && test "X$F77" != "Xno"; then
15613
15614 ac_ext=f
15615 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
15616 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15617 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
15618
15619
15620 archive_cmds_need_lc_F77=no
15621 allow_undefined_flag_F77=
15622 always_export_symbols_F77=no
15623 archive_expsym_cmds_F77=
15624 export_dynamic_flag_spec_F77=
15625 hardcode_direct_F77=no
15626 hardcode_libdir_flag_spec_F77=
15627 hardcode_libdir_flag_spec_ld_F77=
15628 hardcode_libdir_separator_F77=
15629 hardcode_minus_L_F77=no
15630 hardcode_automatic_F77=no
15631 module_cmds_F77=
15632 module_expsym_cmds_F77=
15633 link_all_deplibs_F77=unknown
15634 old_archive_cmds_F77=$old_archive_cmds
15635 no_undefined_flag_F77=
15636 whole_archive_flag_spec_F77=
15637 enable_shared_with_static_runtimes_F77=no
15638
15639 # Source file extension for f77 test sources.
15640 ac_ext=f
15641
15642 # Object file extension for compiled f77 test sources.
15643 objext=o
15644 objext_F77=$objext
15645
15646 # Code to be used in simple compile tests
15647 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
15648
15649 # Code to be used in simple link tests
15650 lt_simple_link_test_code="      program t\n      end\n"
15651
15652 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15653
15654 # If no C compiler was specified, use CC.
15655 LTCC=${LTCC-"$CC"}
15656
15657 # Allow CC to be a program name with arguments.
15658 compiler=$CC
15659
15660
15661 # save warnings/boilerplate of simple test code
15662 ac_outfile=conftest.$ac_objext
15663 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15664 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
15665 _lt_compiler_boilerplate=`cat conftest.err`
15666 $rm conftest*
15667
15668 ac_outfile=conftest.$ac_objext
15669 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15670 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
15671 _lt_linker_boilerplate=`cat conftest.err`
15672 $rm conftest*
15673
15674
15675 # Allow CC to be a program name with arguments.
15676 lt_save_CC="$CC"
15677 CC=${F77-"f77"}
15678 compiler=$CC
15679 compiler_F77=$CC
15680 for cc_temp in $compiler""; do
15681   case $cc_temp in
15682     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15683     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15684     \-*) ;;
15685     *) break;;
15686   esac
15687 done
15688 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15689
15690
15691 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
15692 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
15693 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
15694 echo "${ECHO_T}$can_build_shared" >&6; }
15695
15696 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15697 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
15698 test "$can_build_shared" = "no" && enable_shared=no
15699
15700 # On AIX, shared libraries and static libraries use the same namespace, and
15701 # are all built from PIC.
15702 case $host_os in
15703 aix3*)
15704   test "$enable_shared" = yes && enable_static=no
15705   if test -n "$RANLIB"; then
15706     archive_cmds="$archive_cmds~\$RANLIB \$lib"
15707     postinstall_cmds='$RANLIB $lib'
15708   fi
15709   ;;
15710 aix4* | aix5*)
15711   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15712     test "$enable_shared" = yes && enable_static=no
15713   fi
15714   ;;
15715 esac
15716 { echo "$as_me:$LINENO: result: $enable_shared" >&5
15717 echo "${ECHO_T}$enable_shared" >&6; }
15718
15719 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15720 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
15721 # Make sure either enable_shared or enable_static is yes.
15722 test "$enable_shared" = yes || enable_static=yes
15723 { echo "$as_me:$LINENO: result: $enable_static" >&5
15724 echo "${ECHO_T}$enable_static" >&6; }
15725
15726 test "$ld_shlibs_F77" = no && can_build_shared=no
15727
15728 GCC_F77="$G77"
15729 LD_F77="$LD"
15730
15731 lt_prog_compiler_wl_F77=
15732 lt_prog_compiler_pic_F77=
15733 lt_prog_compiler_static_F77=
15734
15735 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15736 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
15737
15738   if test "$GCC" = yes; then
15739     lt_prog_compiler_wl_F77='-Wl,'
15740     lt_prog_compiler_static_F77='-static'
15741
15742     case $host_os in
15743       aix*)
15744       # All AIX code is PIC.
15745       if test "$host_cpu" = ia64; then
15746         # AIX 5 now supports IA64 processor
15747         lt_prog_compiler_static_F77='-Bstatic'
15748       fi
15749       ;;
15750
15751     amigaos*)
15752       # FIXME: we need at least 68020 code to build shared libraries, but
15753       # adding the `-m68020' flag to GCC prevents building anything better,
15754       # like `-m68040'.
15755       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
15756       ;;
15757
15758     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15759       # PIC is the default for these OSes.
15760       ;;
15761
15762     mingw* | pw32* | os2*)
15763       # This hack is so that the source file can tell whether it is being
15764       # built for inclusion in a dll (and should export symbols for example).
15765       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15766       ;;
15767
15768     darwin* | rhapsody*)
15769       # PIC is the default on this platform
15770       # Common symbols not allowed in MH_DYLIB files
15771       lt_prog_compiler_pic_F77='-fno-common'
15772       ;;
15773
15774     msdosdjgpp*)
15775       # Just because we use GCC doesn't mean we suddenly get shared libraries
15776       # on systems that don't support them.
15777       lt_prog_compiler_can_build_shared_F77=no
15778       enable_shared=no
15779       ;;
15780
15781     sysv4*MP*)
15782       if test -d /usr/nec; then
15783         lt_prog_compiler_pic_F77=-Kconform_pic
15784       fi
15785       ;;
15786
15787     hpux*)
15788       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15789       # not for PA HP-UX.
15790       case $host_cpu in
15791       hppa*64*|ia64*)
15792         # +Z the default
15793         ;;
15794       *)
15795         lt_prog_compiler_pic_F77='-fPIC'
15796         ;;
15797       esac
15798       ;;
15799
15800     *)
15801       lt_prog_compiler_pic_F77='-fPIC'
15802       ;;
15803     esac
15804   else
15805     # PORTME Check for flag to pass linker flags through the system compiler.
15806     case $host_os in
15807     aix*)
15808       lt_prog_compiler_wl_F77='-Wl,'
15809       if test "$host_cpu" = ia64; then
15810         # AIX 5 now supports IA64 processor
15811         lt_prog_compiler_static_F77='-Bstatic'
15812       else
15813         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
15814       fi
15815       ;;
15816       darwin*)
15817         # PIC is the default on this platform
15818         # Common symbols not allowed in MH_DYLIB files
15819        case $cc_basename in
15820          xlc*)
15821          lt_prog_compiler_pic_F77='-qnocommon'
15822          lt_prog_compiler_wl_F77='-Wl,'
15823          ;;
15824        esac
15825        ;;
15826
15827     mingw* | pw32* | os2*)
15828       # This hack is so that the source file can tell whether it is being
15829       # built for inclusion in a dll (and should export symbols for example).
15830       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15831       ;;
15832
15833     hpux9* | hpux10* | hpux11*)
15834       lt_prog_compiler_wl_F77='-Wl,'
15835       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15836       # not for PA HP-UX.
15837       case $host_cpu in
15838       hppa*64*|ia64*)
15839         # +Z the default
15840         ;;
15841       *)
15842         lt_prog_compiler_pic_F77='+Z'
15843         ;;
15844       esac
15845       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15846       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
15847       ;;
15848
15849     irix5* | irix6* | nonstopux*)
15850       lt_prog_compiler_wl_F77='-Wl,'
15851       # PIC (with -KPIC) is the default.
15852       lt_prog_compiler_static_F77='-non_shared'
15853       ;;
15854
15855     newsos6)
15856       lt_prog_compiler_pic_F77='-KPIC'
15857       lt_prog_compiler_static_F77='-Bstatic'
15858       ;;
15859
15860     linux*)
15861       case $cc_basename in
15862       icc* | ecc*)
15863         lt_prog_compiler_wl_F77='-Wl,'
15864         lt_prog_compiler_pic_F77='-KPIC'
15865         lt_prog_compiler_static_F77='-static'
15866         ;;
15867       pgcc* | pgf77* | pgf90* | pgf95*)
15868         # Portland Group compilers (*not* the Pentium gcc compiler,
15869         # which looks to be a dead project)
15870         lt_prog_compiler_wl_F77='-Wl,'
15871         lt_prog_compiler_pic_F77='-fpic'
15872         lt_prog_compiler_static_F77='-Bstatic'
15873         ;;
15874       ccc*)
15875         lt_prog_compiler_wl_F77='-Wl,'
15876         # All Alpha code is PIC.
15877         lt_prog_compiler_static_F77='-non_shared'
15878         ;;
15879       esac
15880       ;;
15881
15882     osf3* | osf4* | osf5*)
15883       lt_prog_compiler_wl_F77='-Wl,'
15884       # All OSF/1 code is PIC.
15885       lt_prog_compiler_static_F77='-non_shared'
15886       ;;
15887
15888     sco3.2v5*)
15889       lt_prog_compiler_pic_F77='-Kpic'
15890       lt_prog_compiler_static_F77='-dn'
15891       ;;
15892
15893     solaris*)
15894       lt_prog_compiler_pic_F77='-KPIC'
15895       lt_prog_compiler_static_F77='-Bstatic'
15896       case $cc_basename in
15897       f77* | f90* | f95*)
15898         lt_prog_compiler_wl_F77='-Qoption ld ';;
15899       *)
15900         lt_prog_compiler_wl_F77='-Wl,';;
15901       esac
15902       ;;
15903
15904     sunos4*)
15905       lt_prog_compiler_wl_F77='-Qoption ld '
15906       lt_prog_compiler_pic_F77='-PIC'
15907       lt_prog_compiler_static_F77='-Bstatic'
15908       ;;
15909
15910     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15911       lt_prog_compiler_wl_F77='-Wl,'
15912       lt_prog_compiler_pic_F77='-KPIC'
15913       lt_prog_compiler_static_F77='-Bstatic'
15914       ;;
15915
15916     sysv4*MP*)
15917       if test -d /usr/nec ;then
15918         lt_prog_compiler_pic_F77='-Kconform_pic'
15919         lt_prog_compiler_static_F77='-Bstatic'
15920       fi
15921       ;;
15922
15923     unicos*)
15924       lt_prog_compiler_wl_F77='-Wl,'
15925       lt_prog_compiler_can_build_shared_F77=no
15926       ;;
15927
15928     uts4*)
15929       lt_prog_compiler_pic_F77='-pic'
15930       lt_prog_compiler_static_F77='-Bstatic'
15931       ;;
15932
15933     *)
15934       lt_prog_compiler_can_build_shared_F77=no
15935       ;;
15936     esac
15937   fi
15938
15939 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15940 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
15941
15942 #
15943 # Check to make sure the PIC flag actually works.
15944 #
15945 if test -n "$lt_prog_compiler_pic_F77"; then
15946
15947 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15948 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
15949 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
15950   echo $ECHO_N "(cached) $ECHO_C" >&6
15951 else
15952   lt_prog_compiler_pic_works_F77=no
15953   ac_outfile=conftest.$ac_objext
15954    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15955    lt_compiler_flag="$lt_prog_compiler_pic_F77"
15956    # Insert the option either (1) after the last *FLAGS variable, or
15957    # (2) before a word containing "conftest.", or (3) at the end.
15958    # Note that $ac_compile itself does not contain backslashes and begins
15959    # with a dollar sign (not a hyphen), so the echo should work correctly.
15960    # The option is referenced via a variable to avoid confusing sed.
15961    lt_compile=`echo "$ac_compile" | $SED \
15962    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15963    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15964    -e 's:$: $lt_compiler_flag:'`
15965    (eval echo "\"\$as_me:15965: $lt_compile\"" >&5)
15966    (eval "$lt_compile" 2>conftest.err)
15967    ac_status=$?
15968    cat conftest.err >&5
15969    echo "$as_me:15969: \$? = $ac_status" >&5
15970    if (exit $ac_status) && test -s "$ac_outfile"; then
15971      # The compiler can only warn and ignore the option if not recognized
15972      # So say no if there are warnings other than the usual output.
15973      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
15974      $SED '/^$/d' conftest.err >conftest.er2
15975      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
15976        lt_prog_compiler_pic_works_F77=yes
15977      fi
15978    fi
15979    $rm conftest*
15980
15981 fi
15982 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
15983 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
15984
15985 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
15986     case $lt_prog_compiler_pic_F77 in
15987      "" | " "*) ;;
15988      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15989      esac
15990 else
15991     lt_prog_compiler_pic_F77=
15992      lt_prog_compiler_can_build_shared_F77=no
15993 fi
15994
15995 fi
15996 case $host_os in
15997   # For platforms which do not support PIC, -DPIC is meaningless:
15998   *djgpp*)
15999     lt_prog_compiler_pic_F77=
16000     ;;
16001   *)
16002     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
16003     ;;
16004 esac
16005
16006 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16007 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16008 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
16009   echo $ECHO_N "(cached) $ECHO_C" >&6
16010 else
16011   lt_cv_prog_compiler_c_o_F77=no
16012    $rm -r conftest 2>/dev/null
16013    mkdir conftest
16014    cd conftest
16015    mkdir out
16016    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16017
16018    lt_compiler_flag="-o out/conftest2.$ac_objext"
16019    # Insert the option either (1) after the last *FLAGS variable, or
16020    # (2) before a word containing "conftest.", or (3) at the end.
16021    # Note that $ac_compile itself does not contain backslashes and begins
16022    # with a dollar sign (not a hyphen), so the echo should work correctly.
16023    lt_compile=`echo "$ac_compile" | $SED \
16024    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16025    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16026    -e 's:$: $lt_compiler_flag:'`
16027    (eval echo "\"\$as_me:16027: $lt_compile\"" >&5)
16028    (eval "$lt_compile" 2>out/conftest.err)
16029    ac_status=$?
16030    cat out/conftest.err >&5
16031    echo "$as_me:16031: \$? = $ac_status" >&5
16032    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16033    then
16034      # The compiler can only warn and ignore the option if not recognized
16035      # So say no if there are warnings
16036      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
16037      $SED '/^$/d' out/conftest.err >out/conftest.er2
16038      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16039        lt_cv_prog_compiler_c_o_F77=yes
16040      fi
16041    fi
16042    chmod u+w . 2>&5
16043    $rm conftest*
16044    # SGI C++ compiler will create directory out/ii_files/ for
16045    # template instantiation
16046    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16047    $rm out/* && rmdir out
16048    cd ..
16049    rmdir conftest
16050    $rm conftest*
16051
16052 fi
16053 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
16054 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
16055
16056
16057 hard_links="nottested"
16058 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
16059   # do not overwrite the value of need_locks provided by the user
16060   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16061 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16062   hard_links=yes
16063   $rm conftest*
16064   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16065   touch conftest.a
16066   ln conftest.a conftest.b 2>&5 || hard_links=no
16067   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16068   { echo "$as_me:$LINENO: result: $hard_links" >&5
16069 echo "${ECHO_T}$hard_links" >&6; }
16070   if test "$hard_links" = no; then
16071     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16072 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16073     need_locks=warn
16074   fi
16075 else
16076   need_locks=no
16077 fi
16078
16079 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16080 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16081
16082   runpath_var=
16083   allow_undefined_flag_F77=
16084   enable_shared_with_static_runtimes_F77=no
16085   archive_cmds_F77=
16086   archive_expsym_cmds_F77=
16087   old_archive_From_new_cmds_F77=
16088   old_archive_from_expsyms_cmds_F77=
16089   export_dynamic_flag_spec_F77=
16090   whole_archive_flag_spec_F77=
16091   thread_safe_flag_spec_F77=
16092   hardcode_libdir_flag_spec_F77=
16093   hardcode_libdir_flag_spec_ld_F77=
16094   hardcode_libdir_separator_F77=
16095   hardcode_direct_F77=no
16096   hardcode_minus_L_F77=no
16097   hardcode_shlibpath_var_F77=unsupported
16098   link_all_deplibs_F77=unknown
16099   hardcode_automatic_F77=no
16100   module_cmds_F77=
16101   module_expsym_cmds_F77=
16102   always_export_symbols_F77=no
16103   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16104   # include_expsyms should be a list of space-separated symbols to be *always*
16105   # included in the symbol list
16106   include_expsyms_F77=
16107   # exclude_expsyms can be an extended regexp of symbols to exclude
16108   # it will be wrapped by ` (' and `)$', so one must not match beginning or
16109   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16110   # as well as any symbol that contains `d'.
16111   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
16112   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16113   # platforms (ab)use it in PIC code, but their linkers get confused if
16114   # the symbol is explicitly referenced.  Since portable code cannot
16115   # rely on this symbol name, it's probably fine to never include it in
16116   # preloaded symbol tables.
16117   extract_expsyms_cmds=
16118   # Just being paranoid about ensuring that cc_basename is set.
16119   for cc_temp in $compiler""; do
16120   case $cc_temp in
16121     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16122     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16123     \-*) ;;
16124     *) break;;
16125   esac
16126 done
16127 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16128
16129   case $host_os in
16130   cygwin* | mingw* | pw32*)
16131     # FIXME: the MSVC++ port hasn't been tested in a loooong time
16132     # When not using gcc, we currently assume that we are using
16133     # Microsoft Visual C++.
16134     if test "$GCC" != yes; then
16135       with_gnu_ld=no
16136     fi
16137     ;;
16138   openbsd*)
16139     with_gnu_ld=no
16140     ;;
16141   esac
16142
16143   ld_shlibs_F77=yes
16144   if test "$with_gnu_ld" = yes; then
16145     # If archive_cmds runs LD, not CC, wlarc should be empty
16146     wlarc='${wl}'
16147
16148     # Set some defaults for GNU ld with shared library support. These
16149     # are reset later if shared libraries are not supported. Putting them
16150     # here allows them to be overridden if necessary.
16151     runpath_var=LD_RUN_PATH
16152     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
16153     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
16154     # ancient GNU ld didn't support --whole-archive et. al.
16155     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16156         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16157       else
16158         whole_archive_flag_spec_F77=
16159     fi
16160     supports_anon_versioning=no
16161     case `$LD -v 2>/dev/null` in
16162       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16163       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16164       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16165       *\ 2.11.*) ;; # other 2.11 versions
16166       *) supports_anon_versioning=yes ;;
16167     esac
16168
16169     # See if GNU ld supports shared libraries.
16170     case $host_os in
16171     aix3* | aix4* | aix5*)
16172       # On AIX/PPC, the GNU linker is very broken
16173       if test "$host_cpu" != ia64; then
16174         ld_shlibs_F77=no
16175         cat <<EOF 1>&2
16176
16177 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16178 *** to be unable to reliably create shared libraries on AIX.
16179 *** Therefore, libtool is disabling shared libraries support.  If you
16180 *** really care for shared libraries, you may want to modify your PATH
16181 *** so that a non-GNU linker is found, and then restart.
16182
16183 EOF
16184       fi
16185       ;;
16186
16187     amigaos*)
16188       archive_cmds_F77='$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)'
16189       hardcode_libdir_flag_spec_F77='-L$libdir'
16190       hardcode_minus_L_F77=yes
16191
16192       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16193       # that the semantics of dynamic libraries on AmigaOS, at least up
16194       # to version 4, is to share data among multiple programs linked
16195       # with the same dynamic library.  Since this doesn't match the
16196       # behavior of shared libraries on other platforms, we can't use
16197       # them.
16198       ld_shlibs_F77=no
16199       ;;
16200
16201     beos*)
16202       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16203         allow_undefined_flag_F77=unsupported
16204         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16205         # support --undefined.  This deserves some investigation.  FIXME
16206         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16207       else
16208         ld_shlibs_F77=no
16209       fi
16210       ;;
16211
16212     cygwin* | mingw* | pw32*)
16213       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
16214       # as there is no search path for DLLs.
16215       hardcode_libdir_flag_spec_F77='-L$libdir'
16216       allow_undefined_flag_F77=unsupported
16217       always_export_symbols_F77=no
16218       enable_shared_with_static_runtimes_F77=yes
16219       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16220
16221       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16222         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16223         # If the export-symbols file already is a .def file (1st line
16224         # is EXPORTS), use it as is; otherwise, prepend...
16225         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16226           cp $export_symbols $output_objdir/$soname.def;
16227         else
16228           echo EXPORTS > $output_objdir/$soname.def;
16229           cat $export_symbols >> $output_objdir/$soname.def;
16230         fi~
16231         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
16232       else
16233         ld_shlibs_F77=no
16234       fi
16235       ;;
16236
16237     linux*)
16238       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16239         tmp_addflag=
16240         case $cc_basename,$host_cpu in
16241         pgcc*)                          # Portland Group C compiler
16242           whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16243           tmp_addflag=' $pic_flag'
16244           ;;
16245         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
16246           whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16247           tmp_addflag=' $pic_flag -Mnomain' ;;
16248         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
16249           tmp_addflag=' -i_dynamic' ;;
16250         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
16251           tmp_addflag=' -i_dynamic -nofor_main' ;;
16252         ifc* | ifort*)                  # Intel Fortran compiler
16253           tmp_addflag=' -nofor_main' ;;
16254         esac
16255         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16256
16257         if test $supports_anon_versioning = yes; then
16258           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
16259   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16260   $echo "local: *; };" >> $output_objdir/$libname.ver~
16261           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16262         fi
16263       else
16264         ld_shlibs_F77=no
16265       fi
16266       ;;
16267
16268     netbsd*)
16269       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16270         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16271         wlarc=
16272       else
16273         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16274         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16275       fi
16276       ;;
16277
16278     solaris* | sysv5*)
16279       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16280         ld_shlibs_F77=no
16281         cat <<EOF 1>&2
16282
16283 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16284 *** create shared libraries on Solaris systems.  Therefore, libtool
16285 *** is disabling shared libraries support.  We urge you to upgrade GNU
16286 *** binutils to release 2.9.1 or newer.  Another option is to modify
16287 *** your PATH or compiler configuration so that the native linker is
16288 *** used, and then restart.
16289
16290 EOF
16291       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16292         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16293         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16294       else
16295         ld_shlibs_F77=no
16296       fi
16297       ;;
16298
16299     sunos4*)
16300       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16301       wlarc=
16302       hardcode_direct_F77=yes
16303       hardcode_shlibpath_var_F77=no
16304       ;;
16305
16306     *)
16307       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16308         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16309         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16310       else
16311         ld_shlibs_F77=no
16312       fi
16313       ;;
16314     esac
16315
16316     if test "$ld_shlibs_F77" = no; then
16317       runpath_var=
16318       hardcode_libdir_flag_spec_F77=
16319       export_dynamic_flag_spec_F77=
16320       whole_archive_flag_spec_F77=
16321     fi
16322   else
16323     # PORTME fill in a description of your system's linker (not GNU ld)
16324     case $host_os in
16325     aix3*)
16326       allow_undefined_flag_F77=unsupported
16327       always_export_symbols_F77=yes
16328       archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
16329       # Note: this linker hardcodes the directories in LIBPATH if there
16330       # are no directories specified by -L.
16331       hardcode_minus_L_F77=yes
16332       if test "$GCC" = yes && test -z "$link_static_flag"; then
16333         # Neither direct hardcoding nor static linking is supported with a
16334         # broken collect2.
16335         hardcode_direct_F77=unsupported
16336       fi
16337       ;;
16338
16339     aix4* | aix5*)
16340       if test "$host_cpu" = ia64; then
16341         # On IA64, the linker does run time linking by default, so we don't
16342         # have to do anything special.
16343         aix_use_runtimelinking=no
16344         exp_sym_flag='-Bexport'
16345         no_entry_flag=""
16346       else
16347         # If we're using GNU nm, then we don't want the "-C" option.
16348         # -C means demangle to AIX nm, but means don't demangle with GNU nm
16349         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16350           export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16351         else
16352           export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16353         fi
16354         aix_use_runtimelinking=no
16355
16356         # Test if we are trying to use run time linking or normal
16357         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16358         # need to do runtime linking.
16359         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16360           for ld_flag in $LDFLAGS; do
16361           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16362             aix_use_runtimelinking=yes
16363             break
16364           fi
16365           done
16366         esac
16367
16368         exp_sym_flag='-bexport'
16369         no_entry_flag='-bnoentry'
16370       fi
16371
16372       # When large executables or shared objects are built, AIX ld can
16373       # have problems creating the table of contents.  If linking a library
16374       # or program results in "error TOC overflow" add -mminimal-toc to
16375       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16376       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16377
16378       archive_cmds_F77=''
16379       hardcode_direct_F77=yes
16380       hardcode_libdir_separator_F77=':'
16381       link_all_deplibs_F77=yes
16382
16383       if test "$GCC" = yes; then
16384         case $host_os in aix4.[012]|aix4.[012].*)
16385         # We only want to do this on AIX 4.2 and lower, the check
16386         # below for broken collect2 doesn't work under 4.3+
16387           collect2name=`${CC} -print-prog-name=collect2`
16388           if test -f "$collect2name" && \
16389            strings "$collect2name" | grep resolve_lib_name >/dev/null
16390           then
16391           # We have reworked collect2
16392           hardcode_direct_F77=yes
16393           else
16394           # We have old collect2
16395           hardcode_direct_F77=unsupported
16396           # It fails to find uninstalled libraries when the uninstalled
16397           # path is not listed in the libpath.  Setting hardcode_minus_L
16398           # to unsupported forces relinking
16399           hardcode_minus_L_F77=yes
16400           hardcode_libdir_flag_spec_F77='-L$libdir'
16401           hardcode_libdir_separator_F77=
16402           fi
16403         esac
16404         shared_flag='-shared'
16405         if test "$aix_use_runtimelinking" = yes; then
16406           shared_flag="$shared_flag "'${wl}-G'
16407         fi
16408       else
16409         # not using gcc
16410         if test "$host_cpu" = ia64; then
16411         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16412         # chokes on -Wl,-G. The following line is correct:
16413           shared_flag='-G'
16414         else
16415         if test "$aix_use_runtimelinking" = yes; then
16416             shared_flag='${wl}-G'
16417           else
16418             shared_flag='${wl}-bM:SRE'
16419         fi
16420         fi
16421       fi
16422
16423       # It seems that -bexpall does not export symbols beginning with
16424       # underscore (_), so it is better to generate a list of symbols to export.
16425       always_export_symbols_F77=yes
16426       if test "$aix_use_runtimelinking" = yes; then
16427         # Warning - without using the other runtime loading flags (-brtl),
16428         # -berok will link without error, but may produce a broken library.
16429         allow_undefined_flag_F77='-berok'
16430        # Determine the default libpath from the value encoded in an empty executable.
16431        cat >conftest.$ac_ext <<_ACEOF
16432       program main
16433
16434       end
16435 _ACEOF
16436 rm -f conftest.$ac_objext conftest$ac_exeext
16437 if { (ac_try="$ac_link"
16438 case "(($ac_try" in
16439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16440   *) ac_try_echo=$ac_try;;
16441 esac
16442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16443   (eval "$ac_link") 2>conftest.er1
16444   ac_status=$?
16445   grep -v '^ *+' conftest.er1 >conftest.err
16446   rm -f conftest.er1
16447   cat conftest.err >&5
16448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16449   (exit $ac_status); } && {
16450          test -z "$ac_f77_werror_flag" ||
16451          test ! -s conftest.err
16452        } && test -s conftest$ac_exeext &&
16453        $as_test_x conftest$ac_exeext; then
16454
16455 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16456 }'`
16457 # Check for a 64-bit object if we didn't find anything.
16458 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16459 }'`; fi
16460 else
16461   echo "$as_me: failed program was:" >&5
16462 sed 's/^/| /' conftest.$ac_ext >&5
16463
16464
16465 fi
16466
16467 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16468       conftest$ac_exeext conftest.$ac_ext
16469 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16470
16471        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16472         archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16473        else
16474         if test "$host_cpu" = ia64; then
16475           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
16476           allow_undefined_flag_F77="-z nodefs"
16477           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
16478         else
16479          # Determine the default libpath from the value encoded in an empty executable.
16480          cat >conftest.$ac_ext <<_ACEOF
16481       program main
16482
16483       end
16484 _ACEOF
16485 rm -f conftest.$ac_objext conftest$ac_exeext
16486 if { (ac_try="$ac_link"
16487 case "(($ac_try" in
16488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16489   *) ac_try_echo=$ac_try;;
16490 esac
16491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16492   (eval "$ac_link") 2>conftest.er1
16493   ac_status=$?
16494   grep -v '^ *+' conftest.er1 >conftest.err
16495   rm -f conftest.er1
16496   cat conftest.err >&5
16497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16498   (exit $ac_status); } && {
16499          test -z "$ac_f77_werror_flag" ||
16500          test ! -s conftest.err
16501        } && test -s conftest$ac_exeext &&
16502        $as_test_x conftest$ac_exeext; then
16503
16504 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16505 }'`
16506 # Check for a 64-bit object if we didn't find anything.
16507 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16508 }'`; fi
16509 else
16510   echo "$as_me: failed program was:" >&5
16511 sed 's/^/| /' conftest.$ac_ext >&5
16512
16513
16514 fi
16515
16516 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16517       conftest$ac_exeext conftest.$ac_ext
16518 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16519
16520          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16521           # Warning - without using the other run time loading flags,
16522           # -berok will link without error, but may produce a broken library.
16523           no_undefined_flag_F77=' ${wl}-bernotok'
16524           allow_undefined_flag_F77=' ${wl}-berok'
16525           # -bexpall does not export symbols beginning with underscore (_)
16526           always_export_symbols_F77=yes
16527           # Exported symbols can be pulled into shared objects from archives
16528           whole_archive_flag_spec_F77=' '
16529           archive_cmds_need_lc_F77=yes
16530           # This is similar to how AIX traditionally builds its shared libraries.
16531           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16532         fi
16533       fi
16534       ;;
16535
16536     amigaos*)
16537       archive_cmds_F77='$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)'
16538       hardcode_libdir_flag_spec_F77='-L$libdir'
16539       hardcode_minus_L_F77=yes
16540       # see comment about different semantics on the GNU ld section
16541       ld_shlibs_F77=no
16542       ;;
16543
16544     bsdi[45]*)
16545       export_dynamic_flag_spec_F77=-rdynamic
16546       ;;
16547
16548     cygwin* | mingw* | pw32*)
16549       # When not using gcc, we currently assume that we are using
16550       # Microsoft Visual C++.
16551       # hardcode_libdir_flag_spec is actually meaningless, as there is
16552       # no search path for DLLs.
16553       hardcode_libdir_flag_spec_F77=' '
16554       allow_undefined_flag_F77=unsupported
16555       # Tell ltmain to make .lib files, not .a files.
16556       libext=lib
16557       # Tell ltmain to make .dll files, not .so files.
16558       shrext_cmds=".dll"
16559       # FIXME: Setting linknames here is a bad hack.
16560       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16561       # The linker will automatically build a .lib file if we build a DLL.
16562       old_archive_From_new_cmds_F77='true'
16563       # FIXME: Should let the user specify the lib program.
16564       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
16565       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
16566       enable_shared_with_static_runtimes_F77=yes
16567       ;;
16568
16569     darwin* | rhapsody*)
16570       case $host_os in
16571         rhapsody* | darwin1.[012])
16572          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
16573          ;;
16574        *) # Darwin 1.3 on
16575          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16576            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16577          else
16578            case ${MACOSX_DEPLOYMENT_TARGET} in
16579              10.[012])
16580                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16581                ;;
16582              10.*)
16583                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
16584                ;;
16585            esac
16586          fi
16587          ;;
16588       esac
16589       archive_cmds_need_lc_F77=no
16590       hardcode_direct_F77=no
16591       hardcode_automatic_F77=yes
16592       hardcode_shlibpath_var_F77=unsupported
16593       whole_archive_flag_spec_F77=''
16594       link_all_deplibs_F77=yes
16595     if test "$GCC" = yes ; then
16596         output_verbose_link_cmd='echo'
16597         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16598       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16599       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16600       archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16601       module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16602     else
16603       case $cc_basename in
16604         xlc*)
16605          output_verbose_link_cmd='echo'
16606          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16607          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16608           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16609          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16610           module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16611           ;;
16612        *)
16613          ld_shlibs_F77=no
16614           ;;
16615       esac
16616     fi
16617       ;;
16618
16619     dgux*)
16620       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16621       hardcode_libdir_flag_spec_F77='-L$libdir'
16622       hardcode_shlibpath_var_F77=no
16623       ;;
16624
16625     freebsd1*)
16626       ld_shlibs_F77=no
16627       ;;
16628
16629     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16630     # support.  Future versions do this automatically, but an explicit c++rt0.o
16631     # does not break anything, and helps significantly (at the cost of a little
16632     # extra space).
16633     freebsd2.2*)
16634       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16635       hardcode_libdir_flag_spec_F77='-R$libdir'
16636       hardcode_direct_F77=yes
16637       hardcode_shlibpath_var_F77=no
16638       ;;
16639
16640     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16641     freebsd2*)
16642       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16643       hardcode_direct_F77=yes
16644       hardcode_minus_L_F77=yes
16645       hardcode_shlibpath_var_F77=no
16646       ;;
16647
16648     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16649     freebsd* | kfreebsd*-gnu | dragonfly*)
16650       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16651       hardcode_libdir_flag_spec_F77='-R$libdir'
16652       hardcode_direct_F77=yes
16653       hardcode_shlibpath_var_F77=no
16654       ;;
16655
16656     hpux9*)
16657       if test "$GCC" = yes; then
16658         archive_cmds_F77='$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'
16659       else
16660         archive_cmds_F77='$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'
16661       fi
16662       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16663       hardcode_libdir_separator_F77=:
16664       hardcode_direct_F77=yes
16665
16666       # hardcode_minus_L: Not really in the search PATH,
16667       # but as the default location of the library.
16668       hardcode_minus_L_F77=yes
16669       export_dynamic_flag_spec_F77='${wl}-E'
16670       ;;
16671
16672     hpux10* | hpux11*)
16673       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16674         case $host_cpu in
16675         hppa*64*|ia64*)
16676           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16677           ;;
16678         *)
16679           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16680           ;;
16681         esac
16682       else
16683         case $host_cpu in
16684         hppa*64*|ia64*)
16685           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16686           ;;
16687         *)
16688           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16689           ;;
16690         esac
16691       fi
16692       if test "$with_gnu_ld" = no; then
16693         case $host_cpu in
16694         hppa*64*)
16695           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16696           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
16697           hardcode_libdir_separator_F77=:
16698           hardcode_direct_F77=no
16699           hardcode_shlibpath_var_F77=no
16700           ;;
16701         ia64*)
16702           hardcode_libdir_flag_spec_F77='-L$libdir'
16703           hardcode_direct_F77=no
16704           hardcode_shlibpath_var_F77=no
16705
16706           # hardcode_minus_L: Not really in the search PATH,
16707           # but as the default location of the library.
16708           hardcode_minus_L_F77=yes
16709           ;;
16710         *)
16711           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16712           hardcode_libdir_separator_F77=:
16713           hardcode_direct_F77=yes
16714           export_dynamic_flag_spec_F77='${wl}-E'
16715
16716           # hardcode_minus_L: Not really in the search PATH,
16717           # but as the default location of the library.
16718           hardcode_minus_L_F77=yes
16719           ;;
16720         esac
16721       fi
16722       ;;
16723
16724     irix5* | irix6* | nonstopux*)
16725       if test "$GCC" = yes; then
16726         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16727       else
16728         archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16729         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
16730       fi
16731       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16732       hardcode_libdir_separator_F77=:
16733       link_all_deplibs_F77=yes
16734       ;;
16735
16736     netbsd*)
16737       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16738         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16739       else
16740         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16741       fi
16742       hardcode_libdir_flag_spec_F77='-R$libdir'
16743       hardcode_direct_F77=yes
16744       hardcode_shlibpath_var_F77=no
16745       ;;
16746
16747     newsos6)
16748       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16749       hardcode_direct_F77=yes
16750       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16751       hardcode_libdir_separator_F77=:
16752       hardcode_shlibpath_var_F77=no
16753       ;;
16754
16755     openbsd*)
16756       hardcode_direct_F77=yes
16757       hardcode_shlibpath_var_F77=no
16758       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16759         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16760         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16761         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16762         export_dynamic_flag_spec_F77='${wl}-E'
16763       else
16764        case $host_os in
16765          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16766            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16767            hardcode_libdir_flag_spec_F77='-R$libdir'
16768            ;;
16769          *)
16770            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16771            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16772            ;;
16773        esac
16774       fi
16775       ;;
16776
16777     os2*)
16778       hardcode_libdir_flag_spec_F77='-L$libdir'
16779       hardcode_minus_L_F77=yes
16780       allow_undefined_flag_F77=unsupported
16781       archive_cmds_F77='$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'
16782       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16783       ;;
16784
16785     osf3*)
16786       if test "$GCC" = yes; then
16787         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16788         archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16789       else
16790         allow_undefined_flag_F77=' -expect_unresolved \*'
16791         archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16792       fi
16793       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16794       hardcode_libdir_separator_F77=:
16795       ;;
16796
16797     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16798       if test "$GCC" = yes; then
16799         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16800         archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16801         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16802       else
16803         allow_undefined_flag_F77=' -expect_unresolved \*'
16804         archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16805         archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
16806         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
16807
16808         # Both c and cxx compiler support -rpath directly
16809         hardcode_libdir_flag_spec_F77='-rpath $libdir'
16810       fi
16811       hardcode_libdir_separator_F77=:
16812       ;;
16813
16814     sco3.2v5*)
16815       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16816       hardcode_shlibpath_var_F77=no
16817       export_dynamic_flag_spec_F77='${wl}-Bexport'
16818       runpath_var=LD_RUN_PATH
16819       hardcode_runpath_var=yes
16820       ;;
16821
16822     solaris*)
16823       no_undefined_flag_F77=' -z text'
16824       if test "$GCC" = yes; then
16825         wlarc='${wl}'
16826         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16827         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16828           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16829       else
16830         wlarc=''
16831         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16832         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16833         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16834       fi
16835       hardcode_libdir_flag_spec_F77='-R$libdir'
16836       hardcode_shlibpath_var_F77=no
16837       case $host_os in
16838       solaris2.[0-5] | solaris2.[0-5].*) ;;
16839       *)
16840         # The compiler driver will combine linker options so we
16841         # cannot just pass the convience library names through
16842         # without $wl, iff we do not link with $LD.
16843         # Luckily, gcc supports the same syntax we need for Sun Studio.
16844         # Supported since Solaris 2.6 (maybe 2.5.1?)
16845         case $wlarc in
16846         '')
16847           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
16848         *)
16849           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
16850         esac ;;
16851       esac
16852       link_all_deplibs_F77=yes
16853       ;;
16854
16855     sunos4*)
16856       if test "x$host_vendor" = xsequent; then
16857         # Use $CC to link under sequent, because it throws in some extra .o
16858         # files that make .init and .fini sections work.
16859         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16860       else
16861         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16862       fi
16863       hardcode_libdir_flag_spec_F77='-L$libdir'
16864       hardcode_direct_F77=yes
16865       hardcode_minus_L_F77=yes
16866       hardcode_shlibpath_var_F77=no
16867       ;;
16868
16869     sysv4)
16870       case $host_vendor in
16871         sni)
16872           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16873           hardcode_direct_F77=yes # is this really true???
16874         ;;
16875         siemens)
16876           ## LD is ld it makes a PLAMLIB
16877           ## CC just makes a GrossModule.
16878           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16879           reload_cmds_F77='$CC -r -o $output$reload_objs'
16880           hardcode_direct_F77=no
16881         ;;
16882         motorola)
16883           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16884           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16885         ;;
16886       esac
16887       runpath_var='LD_RUN_PATH'
16888       hardcode_shlibpath_var_F77=no
16889       ;;
16890
16891     sysv4.3*)
16892       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16893       hardcode_shlibpath_var_F77=no
16894       export_dynamic_flag_spec_F77='-Bexport'
16895       ;;
16896
16897     sysv4*MP*)
16898       if test -d /usr/nec; then
16899         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16900         hardcode_shlibpath_var_F77=no
16901         runpath_var=LD_RUN_PATH
16902         hardcode_runpath_var=yes
16903         ld_shlibs_F77=yes
16904       fi
16905       ;;
16906
16907     sysv4.2uw2*)
16908       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16909       hardcode_direct_F77=yes
16910       hardcode_minus_L_F77=no
16911       hardcode_shlibpath_var_F77=no
16912       hardcode_runpath_var=yes
16913       runpath_var=LD_RUN_PATH
16914       ;;
16915
16916    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
16917       no_undefined_flag_F77='${wl}-z ${wl}text'
16918       if test "$GCC" = yes; then
16919         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16920       else
16921         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16922       fi
16923       runpath_var='LD_RUN_PATH'
16924       hardcode_shlibpath_var_F77=no
16925       ;;
16926
16927     sysv5*)
16928       no_undefined_flag_F77=' -z text'
16929       # $CC -shared without GNU ld will not create a library from C++
16930       # object files and a static libstdc++, better avoid it by now
16931       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16932       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16933                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16934       hardcode_libdir_flag_spec_F77=
16935       hardcode_shlibpath_var_F77=no
16936       runpath_var='LD_RUN_PATH'
16937       ;;
16938
16939     uts4*)
16940       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16941       hardcode_libdir_flag_spec_F77='-L$libdir'
16942       hardcode_shlibpath_var_F77=no
16943       ;;
16944
16945     *)
16946       ld_shlibs_F77=no
16947       ;;
16948     esac
16949   fi
16950
16951 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16952 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
16953 test "$ld_shlibs_F77" = no && can_build_shared=no
16954
16955 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16956 if test "$GCC" = yes; then
16957   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16958 fi
16959
16960 #
16961 # Do we need to explicitly link libc?
16962 #
16963 case "x$archive_cmds_need_lc_F77" in
16964 x|xyes)
16965   # Assume -lc should be added
16966   archive_cmds_need_lc_F77=yes
16967
16968   if test "$enable_shared" = yes && test "$GCC" = yes; then
16969     case $archive_cmds_F77 in
16970     *'~'*)
16971       # FIXME: we may have to deal with multi-command sequences.
16972       ;;
16973     '$CC '*)
16974       # Test whether the compiler implicitly links with -lc since on some
16975       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16976       # to ld, don't add -lc before -lgcc.
16977       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16978 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16979       $rm conftest*
16980       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16981
16982       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16983   (eval $ac_compile) 2>&5
16984   ac_status=$?
16985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16986   (exit $ac_status); } 2>conftest.err; then
16987         soname=conftest
16988         lib=conftest
16989         libobjs=conftest.$ac_objext
16990         deplibs=
16991         wl=$lt_prog_compiler_wl_F77
16992         compiler_flags=-v
16993         linker_flags=-v
16994         verstring=
16995         output_objdir=.
16996         libname=conftest
16997         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16998         allow_undefined_flag_F77=
16999         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17000   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17001   ac_status=$?
17002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17003   (exit $ac_status); }
17004         then
17005           archive_cmds_need_lc_F77=no
17006         else
17007           archive_cmds_need_lc_F77=yes
17008         fi
17009         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
17010       else
17011         cat conftest.err 1>&5
17012       fi
17013       $rm conftest*
17014       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
17015 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
17016       ;;
17017     esac
17018   fi
17019   ;;
17020 esac
17021
17022 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17023 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17024 library_names_spec=
17025 libname_spec='lib$name'
17026 soname_spec=
17027 shrext_cmds=".so"
17028 postinstall_cmds=
17029 postuninstall_cmds=
17030 finish_cmds=
17031 finish_eval=
17032 shlibpath_var=
17033 shlibpath_overrides_runpath=unknown
17034 version_type=none
17035 dynamic_linker="$host_os ld.so"
17036 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17037 if test "$GCC" = yes; then
17038   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17039   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17040     # if the path contains ";" then we assume it to be the separator
17041     # otherwise default to the standard path separator (i.e. ":") - it is
17042     # assumed that no part of a normal pathname contains ";" but that should
17043     # okay in the real world where ";" in dirpaths is itself problematic.
17044     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17045   else
17046     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17047   fi
17048 else
17049   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17050 fi
17051 need_lib_prefix=unknown
17052 hardcode_into_libs=no
17053
17054 # when you set need_version to no, make sure it does not cause -set_version
17055 # flags to be left without arguments
17056 need_version=unknown
17057
17058 case $host_os in
17059 aix3*)
17060   version_type=linux
17061   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17062   shlibpath_var=LIBPATH
17063
17064   # AIX 3 has no versioning support, so we append a major version to the name.
17065   soname_spec='${libname}${release}${shared_ext}$major'
17066   ;;
17067
17068 aix4* | aix5*)
17069   version_type=linux
17070   need_lib_prefix=no
17071   need_version=no
17072   hardcode_into_libs=yes
17073   if test "$host_cpu" = ia64; then
17074     # AIX 5 supports IA64
17075     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17076     shlibpath_var=LD_LIBRARY_PATH
17077   else
17078     # With GCC up to 2.95.x, collect2 would create an import file
17079     # for dependence libraries.  The import file would start with
17080     # the line `#! .'.  This would cause the generated library to
17081     # depend on `.', always an invalid library.  This was fixed in
17082     # development snapshots of GCC prior to 3.0.
17083     case $host_os in
17084       aix4 | aix4.[01] | aix4.[01].*)
17085       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17086            echo ' yes '
17087            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17088         :
17089       else
17090         can_build_shared=no
17091       fi
17092       ;;
17093     esac
17094     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17095     # soname into executable. Probably we can add versioning support to
17096     # collect2, so additional links can be useful in future.
17097     if test "$aix_use_runtimelinking" = yes; then
17098       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17099       # instead of lib<name>.a to let people know that these are not
17100       # typical AIX shared libraries.
17101       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17102     else
17103       # We preserve .a as extension for shared libraries through AIX4.2
17104       # and later when we are not doing run time linking.
17105       library_names_spec='${libname}${release}.a $libname.a'
17106       soname_spec='${libname}${release}${shared_ext}$major'
17107     fi
17108     shlibpath_var=LIBPATH
17109   fi
17110   ;;
17111
17112 amigaos*)
17113   library_names_spec='$libname.ixlibrary $libname.a'
17114   # Create ${libname}_ixlibrary.a entries in /sys/libs.
17115   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'
17116   ;;
17117
17118 beos*)
17119   library_names_spec='${libname}${shared_ext}'
17120   dynamic_linker="$host_os ld.so"
17121   shlibpath_var=LIBRARY_PATH
17122   ;;
17123
17124 bsdi[45]*)
17125   version_type=linux
17126   need_version=no
17127   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17128   soname_spec='${libname}${release}${shared_ext}$major'
17129   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17130   shlibpath_var=LD_LIBRARY_PATH
17131   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17132   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17133   # the default ld.so.conf also contains /usr/contrib/lib and
17134   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17135   # libtool to hard-code these into programs
17136   ;;
17137
17138 cygwin* | mingw* | pw32*)
17139   version_type=windows
17140   shrext_cmds=".dll"
17141   need_version=no
17142   need_lib_prefix=no
17143
17144   case $GCC,$host_os in
17145   yes,cygwin* | yes,mingw* | yes,pw32*)
17146     library_names_spec='$libname.dll.a'
17147     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17148     postinstall_cmds='base_file=`basename \${file}`~
17149       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17150       dldir=$destdir/`dirname \$dlpath`~
17151       test -d \$dldir || mkdir -p \$dldir~
17152       $install_prog $dir/$dlname \$dldir/$dlname~
17153       chmod a+x \$dldir/$dlname'
17154     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17155       dlpath=$dir/\$dldll~
17156        $rm \$dlpath'
17157     shlibpath_overrides_runpath=yes
17158
17159     case $host_os in
17160     cygwin*)
17161       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17162       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17163       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17164       ;;
17165     mingw*)
17166       # MinGW DLLs use traditional 'lib' prefix
17167       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17168       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17169       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17170         # It is most probably a Windows format PATH printed by
17171         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17172         # path with ; separators, and with drive letters. We can handle the
17173         # drive letters (cygwin fileutils understands them), so leave them,
17174         # especially as we might pass files found there to a mingw objdump,
17175         # which wouldn't understand a cygwinified path. Ahh.
17176         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17177       else
17178         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17179       fi
17180       ;;
17181     pw32*)
17182       # pw32 DLLs use 'pw' prefix rather than 'lib'
17183       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17184       ;;
17185     esac
17186     ;;
17187
17188   *)
17189     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17190     ;;
17191   esac
17192   dynamic_linker='Win32 ld.exe'
17193   # FIXME: first we should search . and the directory the executable is in
17194   shlibpath_var=PATH
17195   ;;
17196
17197 darwin* | rhapsody*)
17198   dynamic_linker="$host_os dyld"
17199   version_type=darwin
17200   need_lib_prefix=no
17201   need_version=no
17202   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17203   soname_spec='${libname}${release}${major}$shared_ext'
17204   shlibpath_overrides_runpath=yes
17205   shlibpath_var=DYLD_LIBRARY_PATH
17206   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17207   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17208   if test "$GCC" = yes; then
17209     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
17210   else
17211     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17212   fi
17213   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17214   ;;
17215
17216 dgux*)
17217   version_type=linux
17218   need_lib_prefix=no
17219   need_version=no
17220   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17221   soname_spec='${libname}${release}${shared_ext}$major'
17222   shlibpath_var=LD_LIBRARY_PATH
17223   ;;
17224
17225 freebsd1*)
17226   dynamic_linker=no
17227   ;;
17228
17229 kfreebsd*-gnu)
17230   version_type=linux
17231   need_lib_prefix=no
17232   need_version=no
17233   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17234   soname_spec='${libname}${release}${shared_ext}$major'
17235   shlibpath_var=LD_LIBRARY_PATH
17236   shlibpath_overrides_runpath=no
17237   hardcode_into_libs=yes
17238   dynamic_linker='GNU ld.so'
17239   ;;
17240
17241 freebsd* | dragonfly*)
17242   # DragonFly does not have aout.  When/if they implement a new
17243   # versioning mechanism, adjust this.
17244   if test -x /usr/bin/objformat; then
17245     objformat=`/usr/bin/objformat`
17246   else
17247     case $host_os in
17248     freebsd[123]*) objformat=aout ;;
17249     *) objformat=elf ;;
17250     esac
17251   fi
17252   version_type=freebsd-$objformat
17253   case $version_type in
17254     freebsd-elf*)
17255       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17256       need_version=no
17257       need_lib_prefix=no
17258       ;;
17259     freebsd-*)
17260       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17261       need_version=yes
17262       ;;
17263   esac
17264   shlibpath_var=LD_LIBRARY_PATH
17265   case $host_os in
17266   freebsd2*)
17267     shlibpath_overrides_runpath=yes
17268     ;;
17269   freebsd3.[01]* | freebsdelf3.[01]*)
17270     shlibpath_overrides_runpath=yes
17271     hardcode_into_libs=yes
17272     ;;
17273   *) # from 3.2 on
17274     shlibpath_overrides_runpath=no
17275     hardcode_into_libs=yes
17276     ;;
17277   esac
17278   ;;
17279
17280 gnu*)
17281   version_type=linux
17282   need_lib_prefix=no
17283   need_version=no
17284   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17285   soname_spec='${libname}${release}${shared_ext}$major'
17286   shlibpath_var=LD_LIBRARY_PATH
17287   hardcode_into_libs=yes
17288   ;;
17289
17290 hpux9* | hpux10* | hpux11*)
17291   # Give a soname corresponding to the major version so that dld.sl refuses to
17292   # link against other versions.
17293   version_type=sunos
17294   need_lib_prefix=no
17295   need_version=no
17296   case $host_cpu in
17297   ia64*)
17298     shrext_cmds='.so'
17299     hardcode_into_libs=yes
17300     dynamic_linker="$host_os dld.so"
17301     shlibpath_var=LD_LIBRARY_PATH
17302     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17303     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17304     soname_spec='${libname}${release}${shared_ext}$major'
17305     if test "X$HPUX_IA64_MODE" = X32; then
17306       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17307     else
17308       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17309     fi
17310     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17311     ;;
17312    hppa*64*)
17313      shrext_cmds='.sl'
17314      hardcode_into_libs=yes
17315      dynamic_linker="$host_os dld.sl"
17316      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17317      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17318      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17319      soname_spec='${libname}${release}${shared_ext}$major'
17320      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17321      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17322      ;;
17323    *)
17324     shrext_cmds='.sl'
17325     dynamic_linker="$host_os dld.sl"
17326     shlibpath_var=SHLIB_PATH
17327     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17328     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17329     soname_spec='${libname}${release}${shared_ext}$major'
17330     ;;
17331   esac
17332   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17333   postinstall_cmds='chmod 555 $lib'
17334   ;;
17335
17336 irix5* | irix6* | nonstopux*)
17337   case $host_os in
17338     nonstopux*) version_type=nonstopux ;;
17339     *)
17340         if test "$lt_cv_prog_gnu_ld" = yes; then
17341                 version_type=linux
17342         else
17343                 version_type=irix
17344         fi ;;
17345   esac
17346   need_lib_prefix=no
17347   need_version=no
17348   soname_spec='${libname}${release}${shared_ext}$major'
17349   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17350   case $host_os in
17351   irix5* | nonstopux*)
17352     libsuff= shlibsuff=
17353     ;;
17354   *)
17355     case $LD in # libtool.m4 will add one of these switches to LD
17356     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17357       libsuff= shlibsuff= libmagic=32-bit;;
17358     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17359       libsuff=32 shlibsuff=N32 libmagic=N32;;
17360     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17361       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17362     *) libsuff= shlibsuff= libmagic=never-match;;
17363     esac
17364     ;;
17365   esac
17366   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17367   shlibpath_overrides_runpath=no
17368   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17369   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17370   hardcode_into_libs=yes
17371   ;;
17372
17373 # No shared lib support for Linux oldld, aout, or coff.
17374 linux*oldld* | linux*aout* | linux*coff*)
17375   dynamic_linker=no
17376   ;;
17377
17378 # This must be Linux ELF.
17379 linux*)
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   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17386   shlibpath_var=LD_LIBRARY_PATH
17387   shlibpath_overrides_runpath=no
17388   # This implies no fast_install, which is unacceptable.
17389   # Some rework will be needed to allow for fast_install
17390   # before this can be enabled.
17391   hardcode_into_libs=yes
17392
17393   # Append ld.so.conf contents to the search path
17394   if test -f /etc/ld.so.conf; then
17395     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17396     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17397   fi
17398
17399   # We used to test for /lib/ld.so.1 and disable shared libraries on
17400   # powerpc, because MkLinux only supported shared libraries with the
17401   # GNU dynamic linker.  Since this was broken with cross compilers,
17402   # most powerpc-linux boxes support dynamic linking these days and
17403   # people can always --disable-shared, the test was removed, and we
17404   # assume the GNU/Linux dynamic linker is in use.
17405   dynamic_linker='GNU/Linux ld.so'
17406   ;;
17407
17408 knetbsd*-gnu)
17409   version_type=linux
17410   need_lib_prefix=no
17411   need_version=no
17412   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17413   soname_spec='${libname}${release}${shared_ext}$major'
17414   shlibpath_var=LD_LIBRARY_PATH
17415   shlibpath_overrides_runpath=no
17416   hardcode_into_libs=yes
17417   dynamic_linker='GNU ld.so'
17418   ;;
17419
17420 netbsd*)
17421   version_type=sunos
17422   need_lib_prefix=no
17423   need_version=no
17424   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17425     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17426     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17427     dynamic_linker='NetBSD (a.out) ld.so'
17428   else
17429     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17430     soname_spec='${libname}${release}${shared_ext}$major'
17431     dynamic_linker='NetBSD ld.elf_so'
17432   fi
17433   shlibpath_var=LD_LIBRARY_PATH
17434   shlibpath_overrides_runpath=yes
17435   hardcode_into_libs=yes
17436   ;;
17437
17438 newsos6)
17439   version_type=linux
17440   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17441   shlibpath_var=LD_LIBRARY_PATH
17442   shlibpath_overrides_runpath=yes
17443   ;;
17444
17445 nto-qnx*)
17446   version_type=linux
17447   need_lib_prefix=no
17448   need_version=no
17449   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17450   soname_spec='${libname}${release}${shared_ext}$major'
17451   shlibpath_var=LD_LIBRARY_PATH
17452   shlibpath_overrides_runpath=yes
17453   ;;
17454
17455 openbsd*)
17456   version_type=sunos
17457   need_lib_prefix=no
17458   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17459   case $host_os in
17460     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17461     *)                         need_version=no  ;;
17462   esac
17463   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17464   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17465   shlibpath_var=LD_LIBRARY_PATH
17466   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17467     case $host_os in
17468       openbsd2.[89] | openbsd2.[89].*)
17469         shlibpath_overrides_runpath=no
17470         ;;
17471       *)
17472         shlibpath_overrides_runpath=yes
17473         ;;
17474       esac
17475   else
17476     shlibpath_overrides_runpath=yes
17477   fi
17478   ;;
17479
17480 os2*)
17481   libname_spec='$name'
17482   shrext_cmds=".dll"
17483   need_lib_prefix=no
17484   library_names_spec='$libname${shared_ext} $libname.a'
17485   dynamic_linker='OS/2 ld.exe'
17486   shlibpath_var=LIBPATH
17487   ;;
17488
17489 osf3* | osf4* | osf5*)
17490   version_type=osf
17491   need_lib_prefix=no
17492   need_version=no
17493   soname_spec='${libname}${release}${shared_ext}$major'
17494   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17495   shlibpath_var=LD_LIBRARY_PATH
17496   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17497   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17498   ;;
17499
17500 sco3.2v5*)
17501   version_type=osf
17502   soname_spec='${libname}${release}${shared_ext}$major'
17503   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17504   shlibpath_var=LD_LIBRARY_PATH
17505   ;;
17506
17507 solaris*)
17508   version_type=linux
17509   need_lib_prefix=no
17510   need_version=no
17511   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17512   soname_spec='${libname}${release}${shared_ext}$major'
17513   shlibpath_var=LD_LIBRARY_PATH
17514   shlibpath_overrides_runpath=yes
17515   hardcode_into_libs=yes
17516   # ldd complains unless libraries are executable
17517   postinstall_cmds='chmod +x $lib'
17518   ;;
17519
17520 sunos4*)
17521   version_type=sunos
17522   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17523   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17524   shlibpath_var=LD_LIBRARY_PATH
17525   shlibpath_overrides_runpath=yes
17526   if test "$with_gnu_ld" = yes; then
17527     need_lib_prefix=no
17528   fi
17529   need_version=yes
17530   ;;
17531
17532 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17533   version_type=linux
17534   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17535   soname_spec='${libname}${release}${shared_ext}$major'
17536   shlibpath_var=LD_LIBRARY_PATH
17537   case $host_vendor in
17538     sni)
17539       shlibpath_overrides_runpath=no
17540       need_lib_prefix=no
17541       export_dynamic_flag_spec='${wl}-Blargedynsym'
17542       runpath_var=LD_RUN_PATH
17543       ;;
17544     siemens)
17545       need_lib_prefix=no
17546       ;;
17547     motorola)
17548       need_lib_prefix=no
17549       need_version=no
17550       shlibpath_overrides_runpath=no
17551       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17552       ;;
17553   esac
17554   ;;
17555
17556 sysv4*MP*)
17557   if test -d /usr/nec ;then
17558     version_type=linux
17559     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17560     soname_spec='$libname${shared_ext}.$major'
17561     shlibpath_var=LD_LIBRARY_PATH
17562   fi
17563   ;;
17564
17565 uts4*)
17566   version_type=linux
17567   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17568   soname_spec='${libname}${release}${shared_ext}$major'
17569   shlibpath_var=LD_LIBRARY_PATH
17570   ;;
17571
17572 *)
17573   dynamic_linker=no
17574   ;;
17575 esac
17576 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17577 echo "${ECHO_T}$dynamic_linker" >&6; }
17578 test "$dynamic_linker" = no && can_build_shared=no
17579
17580 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17581 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
17582 hardcode_action_F77=
17583 if test -n "$hardcode_libdir_flag_spec_F77" || \
17584    test -n "$runpath_var_F77" || \
17585    test "X$hardcode_automatic_F77" = "Xyes" ; then
17586
17587   # We can hardcode non-existant directories.
17588   if test "$hardcode_direct_F77" != no &&
17589      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17590      # have to relink, otherwise we might link with an installed library
17591      # when we should be linking with a yet-to-be-installed one
17592      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
17593      test "$hardcode_minus_L_F77" != no; then
17594     # Linking always hardcodes the temporary library directory.
17595     hardcode_action_F77=relink
17596   else
17597     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17598     hardcode_action_F77=immediate
17599   fi
17600 else
17601   # We cannot hardcode anything, or else we can only hardcode existing
17602   # directories.
17603   hardcode_action_F77=unsupported
17604 fi
17605 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
17606 echo "${ECHO_T}$hardcode_action_F77" >&6; }
17607
17608 if test "$hardcode_action_F77" = relink; then
17609   # Fast installation is not supported
17610   enable_fast_install=no
17611 elif test "$shlibpath_overrides_runpath" = yes ||
17612      test "$enable_shared" = no; then
17613   # Fast installation is not necessary
17614   enable_fast_install=needless
17615 fi
17616
17617 striplib=
17618 old_striplib=
17619 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17620 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
17621 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17622   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17623   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17624   { echo "$as_me:$LINENO: result: yes" >&5
17625 echo "${ECHO_T}yes" >&6; }
17626 else
17627 # FIXME - insert some real tests, host_os isn't really good enough
17628   case $host_os in
17629    darwin*)
17630        if test -n "$STRIP" ; then
17631          striplib="$STRIP -x"
17632          { echo "$as_me:$LINENO: result: yes" >&5
17633 echo "${ECHO_T}yes" >&6; }
17634        else
17635   { echo "$as_me:$LINENO: result: no" >&5
17636 echo "${ECHO_T}no" >&6; }
17637 fi
17638        ;;
17639    *)
17640   { echo "$as_me:$LINENO: result: no" >&5
17641 echo "${ECHO_T}no" >&6; }
17642     ;;
17643   esac
17644 fi
17645
17646
17647
17648 # The else clause should only fire when bootstrapping the
17649 # libtool distribution, otherwise you forgot to ship ltmain.sh
17650 # with your package, and you will get complaints that there are
17651 # no rules to generate ltmain.sh.
17652 if test -f "$ltmain"; then
17653   # See if we are running on zsh, and set the options which allow our commands through
17654   # without removal of \ escapes.
17655   if test -n "${ZSH_VERSION+set}" ; then
17656     setopt NO_GLOB_SUBST
17657   fi
17658   # Now quote all the things that may contain metacharacters while being
17659   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17660   # variables and quote the copies for generation of the libtool script.
17661   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
17662     SED SHELL STRIP \
17663     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17664     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17665     deplibs_check_method reload_flag reload_cmds need_locks \
17666     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17667     lt_cv_sys_global_symbol_to_c_name_address \
17668     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17669     old_postinstall_cmds old_postuninstall_cmds \
17670     compiler_F77 \
17671     CC_F77 \
17672     LD_F77 \
17673     lt_prog_compiler_wl_F77 \
17674     lt_prog_compiler_pic_F77 \
17675     lt_prog_compiler_static_F77 \
17676     lt_prog_compiler_no_builtin_flag_F77 \
17677     export_dynamic_flag_spec_F77 \
17678     thread_safe_flag_spec_F77 \
17679     whole_archive_flag_spec_F77 \
17680     enable_shared_with_static_runtimes_F77 \
17681     old_archive_cmds_F77 \
17682     old_archive_from_new_cmds_F77 \
17683     predep_objects_F77 \
17684     postdep_objects_F77 \
17685     predeps_F77 \
17686     postdeps_F77 \
17687     compiler_lib_search_path_F77 \
17688     archive_cmds_F77 \
17689     archive_expsym_cmds_F77 \
17690     postinstall_cmds_F77 \
17691     postuninstall_cmds_F77 \
17692     old_archive_from_expsyms_cmds_F77 \
17693     allow_undefined_flag_F77 \
17694     no_undefined_flag_F77 \
17695     export_symbols_cmds_F77 \
17696     hardcode_libdir_flag_spec_F77 \
17697     hardcode_libdir_flag_spec_ld_F77 \
17698     hardcode_libdir_separator_F77 \
17699     hardcode_automatic_F77 \
17700     module_cmds_F77 \
17701     module_expsym_cmds_F77 \
17702     lt_cv_prog_compiler_c_o_F77 \
17703     exclude_expsyms_F77 \
17704     include_expsyms_F77; do
17705
17706     case $var in
17707     old_archive_cmds_F77 | \
17708     old_archive_from_new_cmds_F77 | \
17709     archive_cmds_F77 | \
17710     archive_expsym_cmds_F77 | \
17711     module_cmds_F77 | \
17712     module_expsym_cmds_F77 | \
17713     old_archive_from_expsyms_cmds_F77 | \
17714     export_symbols_cmds_F77 | \
17715     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17716     postinstall_cmds | postuninstall_cmds | \
17717     old_postinstall_cmds | old_postuninstall_cmds | \
17718     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17719       # Double-quote double-evaled strings.
17720       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17721       ;;
17722     *)
17723       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17724       ;;
17725     esac
17726   done
17727
17728   case $lt_echo in
17729   *'\$0 --fallback-echo"')
17730     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17731     ;;
17732   esac
17733
17734 cfgfile="$ofile"
17735
17736   cat <<__EOF__ >> "$cfgfile"
17737 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17738
17739 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17740
17741 # Shell to use when invoking shell scripts.
17742 SHELL=$lt_SHELL
17743
17744 # Whether or not to build shared libraries.
17745 build_libtool_libs=$enable_shared
17746
17747 # Whether or not to build static libraries.
17748 build_old_libs=$enable_static
17749
17750 # Whether or not to add -lc for building shared libraries.
17751 build_libtool_need_lc=$archive_cmds_need_lc_F77
17752
17753 # Whether or not to disallow shared libs when runtime libs are static
17754 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
17755
17756 # Whether or not to optimize for fast installation.
17757 fast_install=$enable_fast_install
17758
17759 # The host system.
17760 host_alias=$host_alias
17761 host=$host
17762 host_os=$host_os
17763
17764 # The build system.
17765 build_alias=$build_alias
17766 build=$build
17767 build_os=$build_os
17768
17769 # An echo program that does not interpret backslashes.
17770 echo=$lt_echo
17771
17772 # The archiver.
17773 AR=$lt_AR
17774 AR_FLAGS=$lt_AR_FLAGS
17775
17776 # A C compiler.
17777 LTCC=$lt_LTCC
17778
17779 # A language-specific compiler.
17780 CC=$lt_compiler_F77
17781
17782 # Is the compiler the GNU C compiler?
17783 with_gcc=$GCC_F77
17784
17785 # An ERE matcher.
17786 EGREP=$lt_EGREP
17787
17788 # The linker used to build libraries.
17789 LD=$lt_LD_F77
17790
17791 # Whether we need hard or soft links.
17792 LN_S=$lt_LN_S
17793
17794 # A BSD-compatible nm program.
17795 NM=$lt_NM
17796
17797 # A symbol stripping program
17798 STRIP=$lt_STRIP
17799
17800 # Used to examine libraries when file_magic_cmd begins "file"
17801 MAGIC_CMD=$MAGIC_CMD
17802
17803 # Used on cygwin: DLL creation program.
17804 DLLTOOL="$DLLTOOL"
17805
17806 # Used on cygwin: object dumper.
17807 OBJDUMP="$OBJDUMP"
17808
17809 # Used on cygwin: assembler.
17810 AS="$AS"
17811
17812 # The name of the directory that contains temporary libtool files.
17813 objdir=$objdir
17814
17815 # How to create reloadable object files.
17816 reload_flag=$lt_reload_flag
17817 reload_cmds=$lt_reload_cmds
17818
17819 # How to pass a linker flag through the compiler.
17820 wl=$lt_lt_prog_compiler_wl_F77
17821
17822 # Object file suffix (normally "o").
17823 objext="$ac_objext"
17824
17825 # Old archive suffix (normally "a").
17826 libext="$libext"
17827
17828 # Shared library suffix (normally ".so").
17829 shrext_cmds='$shrext_cmds'
17830
17831 # Executable file suffix (normally "").
17832 exeext="$exeext"
17833
17834 # Additional compiler flags for building library objects.
17835 pic_flag=$lt_lt_prog_compiler_pic_F77
17836 pic_mode=$pic_mode
17837
17838 # What is the maximum length of a command?
17839 max_cmd_len=$lt_cv_sys_max_cmd_len
17840
17841 # Does compiler simultaneously support -c and -o options?
17842 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17843
17844 # Must we lock files when doing compilation?
17845 need_locks=$lt_need_locks
17846
17847 # Do we need the lib prefix for modules?
17848 need_lib_prefix=$need_lib_prefix
17849
17850 # Do we need a version for libraries?
17851 need_version=$need_version
17852
17853 # Whether dlopen is supported.
17854 dlopen_support=$enable_dlopen
17855
17856 # Whether dlopen of programs is supported.
17857 dlopen_self=$enable_dlopen_self
17858
17859 # Whether dlopen of statically linked programs is supported.
17860 dlopen_self_static=$enable_dlopen_self_static
17861
17862 # Compiler flag to prevent dynamic linking.
17863 link_static_flag=$lt_lt_prog_compiler_static_F77
17864
17865 # Compiler flag to turn off builtin functions.
17866 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17867
17868 # Compiler flag to allow reflexive dlopens.
17869 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17870
17871 # Compiler flag to generate shared objects directly from archives.
17872 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17873
17874 # Compiler flag to generate thread-safe objects.
17875 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17876
17877 # Library versioning type.
17878 version_type=$version_type
17879
17880 # Format of library name prefix.
17881 libname_spec=$lt_libname_spec
17882
17883 # List of archive names.  First name is the real one, the rest are links.
17884 # The last name is the one that the linker finds with -lNAME.
17885 library_names_spec=$lt_library_names_spec
17886
17887 # The coded name of the library, if different from the real name.
17888 soname_spec=$lt_soname_spec
17889
17890 # Commands used to build and install an old-style archive.
17891 RANLIB=$lt_RANLIB
17892 old_archive_cmds=$lt_old_archive_cmds_F77
17893 old_postinstall_cmds=$lt_old_postinstall_cmds
17894 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17895
17896 # Create an old-style archive from a shared archive.
17897 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17898
17899 # Create a temporary old-style archive to link instead of a shared archive.
17900 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17901
17902 # Commands used to build and install a shared archive.
17903 archive_cmds=$lt_archive_cmds_F77
17904 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17905 postinstall_cmds=$lt_postinstall_cmds
17906 postuninstall_cmds=$lt_postuninstall_cmds
17907
17908 # Commands used to build a loadable module (assumed same as above if empty)
17909 module_cmds=$lt_module_cmds_F77
17910 module_expsym_cmds=$lt_module_expsym_cmds_F77
17911
17912 # Commands to strip libraries.
17913 old_striplib=$lt_old_striplib
17914 striplib=$lt_striplib
17915
17916 # Dependencies to place before the objects being linked to create a
17917 # shared library.
17918 predep_objects=$lt_predep_objects_F77
17919
17920 # Dependencies to place after the objects being linked to create a
17921 # shared library.
17922 postdep_objects=$lt_postdep_objects_F77
17923
17924 # Dependencies to place before the objects being linked to create a
17925 # shared library.
17926 predeps=$lt_predeps_F77
17927
17928 # Dependencies to place after the objects being linked to create a
17929 # shared library.
17930 postdeps=$lt_postdeps_F77
17931
17932 # The library search path used internally by the compiler when linking
17933 # a shared library.
17934 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17935
17936 # Method to check whether dependent libraries are shared objects.
17937 deplibs_check_method=$lt_deplibs_check_method
17938
17939 # Command to use when deplibs_check_method == file_magic.
17940 file_magic_cmd=$lt_file_magic_cmd
17941
17942 # Flag that allows shared libraries with undefined symbols to be built.
17943 allow_undefined_flag=$lt_allow_undefined_flag_F77
17944
17945 # Flag that forces no undefined symbols.
17946 no_undefined_flag=$lt_no_undefined_flag_F77
17947
17948 # Commands used to finish a libtool library installation in a directory.
17949 finish_cmds=$lt_finish_cmds
17950
17951 # Same as above, but a single script fragment to be evaled but not shown.
17952 finish_eval=$lt_finish_eval
17953
17954 # Take the output of nm and produce a listing of raw symbols and C names.
17955 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17956
17957 # Transform the output of nm in a proper C declaration
17958 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17959
17960 # Transform the output of nm in a C name address pair
17961 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17962
17963 # This is the shared library runtime path variable.
17964 runpath_var=$runpath_var
17965
17966 # This is the shared library path variable.
17967 shlibpath_var=$shlibpath_var
17968
17969 # Is shlibpath searched before the hard-coded library search path?
17970 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17971
17972 # How to hardcode a shared library path into an executable.
17973 hardcode_action=$hardcode_action_F77
17974
17975 # Whether we should hardcode library paths into libraries.
17976 hardcode_into_libs=$hardcode_into_libs
17977
17978 # Flag to hardcode \$libdir into a binary during linking.
17979 # This must work even if \$libdir does not exist.
17980 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17981
17982 # If ld is used when linking, flag to hardcode \$libdir into
17983 # a binary during linking. This must work even if \$libdir does
17984 # not exist.
17985 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17986
17987 # Whether we need a single -rpath flag with a separated argument.
17988 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17989
17990 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17991 # resulting binary.
17992 hardcode_direct=$hardcode_direct_F77
17993
17994 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17995 # resulting binary.
17996 hardcode_minus_L=$hardcode_minus_L_F77
17997
17998 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17999 # the resulting binary.
18000 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
18001
18002 # Set to yes if building a shared library automatically hardcodes DIR into the library
18003 # and all subsequent libraries and executables linked against it.
18004 hardcode_automatic=$hardcode_automatic_F77
18005
18006 # Variables whose values should be saved in libtool wrapper scripts and
18007 # restored at relink time.
18008 variables_saved_for_relink="$variables_saved_for_relink"
18009
18010 # Whether libtool must link a program against all its dependency libraries.
18011 link_all_deplibs=$link_all_deplibs_F77
18012
18013 # Compile-time system search path for libraries
18014 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18015
18016 # Run-time system search path for libraries
18017 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18018
18019 # Fix the shell variable \$srcfile for the compiler.
18020 fix_srcfile_path="$fix_srcfile_path_F77"
18021
18022 # Set to yes if exported symbols are required.
18023 always_export_symbols=$always_export_symbols_F77
18024
18025 # The commands to list exported symbols.
18026 export_symbols_cmds=$lt_export_symbols_cmds_F77
18027
18028 # The commands to extract the exported symbol list from a shared archive.
18029 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18030
18031 # Symbols that should not be listed in the preloaded symbols.
18032 exclude_expsyms=$lt_exclude_expsyms_F77
18033
18034 # Symbols that must always be exported.
18035 include_expsyms=$lt_include_expsyms_F77
18036
18037 # ### END LIBTOOL TAG CONFIG: $tagname
18038
18039 __EOF__
18040
18041
18042 else
18043   # If there is no Makefile yet, we rely on a make rule to execute
18044   # `config.status --recheck' to rerun these tests and create the
18045   # libtool script then.
18046   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18047   if test -f "$ltmain_in"; then
18048     test -f Makefile && make "$ltmain"
18049   fi
18050 fi
18051
18052
18053 ac_ext=c
18054 ac_cpp='$CPP $CPPFLAGS'
18055 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18056 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18057 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18058
18059 CC="$lt_save_CC"
18060
18061         else
18062           tagname=""
18063         fi
18064         ;;
18065
18066       GCJ)
18067         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
18068
18069
18070 # Source file extension for Java test sources.
18071 ac_ext=java
18072
18073 # Object file extension for compiled Java test sources.
18074 objext=o
18075 objext_GCJ=$objext
18076
18077 # Code to be used in simple compile tests
18078 lt_simple_compile_test_code="class foo {}\n"
18079
18080 # Code to be used in simple link tests
18081 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
18082
18083 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18084
18085 # If no C compiler was specified, use CC.
18086 LTCC=${LTCC-"$CC"}
18087
18088 # Allow CC to be a program name with arguments.
18089 compiler=$CC
18090
18091
18092 # save warnings/boilerplate of simple test code
18093 ac_outfile=conftest.$ac_objext
18094 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18095 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
18096 _lt_compiler_boilerplate=`cat conftest.err`
18097 $rm conftest*
18098
18099 ac_outfile=conftest.$ac_objext
18100 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18101 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
18102 _lt_linker_boilerplate=`cat conftest.err`
18103 $rm conftest*
18104
18105
18106 # Allow CC to be a program name with arguments.
18107 lt_save_CC="$CC"
18108 CC=${GCJ-"gcj"}
18109 compiler=$CC
18110 compiler_GCJ=$CC
18111 for cc_temp in $compiler""; do
18112   case $cc_temp in
18113     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18114     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18115     \-*) ;;
18116     *) break;;
18117   esac
18118 done
18119 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18120
18121
18122 # GCJ did not exist at the time GCC didn't implicitly link libc in.
18123 archive_cmds_need_lc_GCJ=no
18124
18125 old_archive_cmds_GCJ=$old_archive_cmds
18126
18127
18128 lt_prog_compiler_no_builtin_flag_GCJ=
18129
18130 if test "$GCC" = yes; then
18131   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
18132
18133
18134 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
18135 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
18136 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
18137   echo $ECHO_N "(cached) $ECHO_C" >&6
18138 else
18139   lt_cv_prog_compiler_rtti_exceptions=no
18140   ac_outfile=conftest.$ac_objext
18141    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18142    lt_compiler_flag="-fno-rtti -fno-exceptions"
18143    # Insert the option either (1) after the last *FLAGS variable, or
18144    # (2) before a word containing "conftest.", or (3) at the end.
18145    # Note that $ac_compile itself does not contain backslashes and begins
18146    # with a dollar sign (not a hyphen), so the echo should work correctly.
18147    # The option is referenced via a variable to avoid confusing sed.
18148    lt_compile=`echo "$ac_compile" | $SED \
18149    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18150    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18151    -e 's:$: $lt_compiler_flag:'`
18152    (eval echo "\"\$as_me:18152: $lt_compile\"" >&5)
18153    (eval "$lt_compile" 2>conftest.err)
18154    ac_status=$?
18155    cat conftest.err >&5
18156    echo "$as_me:18156: \$? = $ac_status" >&5
18157    if (exit $ac_status) && test -s "$ac_outfile"; then
18158      # The compiler can only warn and ignore the option if not recognized
18159      # So say no if there are warnings other than the usual output.
18160      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
18161      $SED '/^$/d' conftest.err >conftest.er2
18162      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
18163        lt_cv_prog_compiler_rtti_exceptions=yes
18164      fi
18165    fi
18166    $rm conftest*
18167
18168 fi
18169 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
18170 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
18171
18172 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
18173     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
18174 else
18175     :
18176 fi
18177
18178 fi
18179
18180 lt_prog_compiler_wl_GCJ=
18181 lt_prog_compiler_pic_GCJ=
18182 lt_prog_compiler_static_GCJ=
18183
18184 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18185 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
18186
18187   if test "$GCC" = yes; then
18188     lt_prog_compiler_wl_GCJ='-Wl,'
18189     lt_prog_compiler_static_GCJ='-static'
18190
18191     case $host_os in
18192       aix*)
18193       # All AIX code is PIC.
18194       if test "$host_cpu" = ia64; then
18195         # AIX 5 now supports IA64 processor
18196         lt_prog_compiler_static_GCJ='-Bstatic'
18197       fi
18198       ;;
18199
18200     amigaos*)
18201       # FIXME: we need at least 68020 code to build shared libraries, but
18202       # adding the `-m68020' flag to GCC prevents building anything better,
18203       # like `-m68040'.
18204       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
18205       ;;
18206
18207     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18208       # PIC is the default for these OSes.
18209       ;;
18210
18211     mingw* | pw32* | os2*)
18212       # This hack is so that the source file can tell whether it is being
18213       # built for inclusion in a dll (and should export symbols for example).
18214       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18215       ;;
18216
18217     darwin* | rhapsody*)
18218       # PIC is the default on this platform
18219       # Common symbols not allowed in MH_DYLIB files
18220       lt_prog_compiler_pic_GCJ='-fno-common'
18221       ;;
18222
18223     msdosdjgpp*)
18224       # Just because we use GCC doesn't mean we suddenly get shared libraries
18225       # on systems that don't support them.
18226       lt_prog_compiler_can_build_shared_GCJ=no
18227       enable_shared=no
18228       ;;
18229
18230     sysv4*MP*)
18231       if test -d /usr/nec; then
18232         lt_prog_compiler_pic_GCJ=-Kconform_pic
18233       fi
18234       ;;
18235
18236     hpux*)
18237       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18238       # not for PA HP-UX.
18239       case $host_cpu in
18240       hppa*64*|ia64*)
18241         # +Z the default
18242         ;;
18243       *)
18244         lt_prog_compiler_pic_GCJ='-fPIC'
18245         ;;
18246       esac
18247       ;;
18248
18249     *)
18250       lt_prog_compiler_pic_GCJ='-fPIC'
18251       ;;
18252     esac
18253   else
18254     # PORTME Check for flag to pass linker flags through the system compiler.
18255     case $host_os in
18256     aix*)
18257       lt_prog_compiler_wl_GCJ='-Wl,'
18258       if test "$host_cpu" = ia64; then
18259         # AIX 5 now supports IA64 processor
18260         lt_prog_compiler_static_GCJ='-Bstatic'
18261       else
18262         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
18263       fi
18264       ;;
18265       darwin*)
18266         # PIC is the default on this platform
18267         # Common symbols not allowed in MH_DYLIB files
18268        case $cc_basename in
18269          xlc*)
18270          lt_prog_compiler_pic_GCJ='-qnocommon'
18271          lt_prog_compiler_wl_GCJ='-Wl,'
18272          ;;
18273        esac
18274        ;;
18275
18276     mingw* | pw32* | os2*)
18277       # This hack is so that the source file can tell whether it is being
18278       # built for inclusion in a dll (and should export symbols for example).
18279       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18280       ;;
18281
18282     hpux9* | hpux10* | hpux11*)
18283       lt_prog_compiler_wl_GCJ='-Wl,'
18284       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18285       # not for PA HP-UX.
18286       case $host_cpu in
18287       hppa*64*|ia64*)
18288         # +Z the default
18289         ;;
18290       *)
18291         lt_prog_compiler_pic_GCJ='+Z'
18292         ;;
18293       esac
18294       # Is there a better lt_prog_compiler_static that works with the bundled CC?
18295       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
18296       ;;
18297
18298     irix5* | irix6* | nonstopux*)
18299       lt_prog_compiler_wl_GCJ='-Wl,'
18300       # PIC (with -KPIC) is the default.
18301       lt_prog_compiler_static_GCJ='-non_shared'
18302       ;;
18303
18304     newsos6)
18305       lt_prog_compiler_pic_GCJ='-KPIC'
18306       lt_prog_compiler_static_GCJ='-Bstatic'
18307       ;;
18308
18309     linux*)
18310       case $cc_basename in
18311       icc* | ecc*)
18312         lt_prog_compiler_wl_GCJ='-Wl,'
18313         lt_prog_compiler_pic_GCJ='-KPIC'
18314         lt_prog_compiler_static_GCJ='-static'
18315         ;;
18316       pgcc* | pgf77* | pgf90* | pgf95*)
18317         # Portland Group compilers (*not* the Pentium gcc compiler,
18318         # which looks to be a dead project)
18319         lt_prog_compiler_wl_GCJ='-Wl,'
18320         lt_prog_compiler_pic_GCJ='-fpic'
18321         lt_prog_compiler_static_GCJ='-Bstatic'
18322         ;;
18323       ccc*)
18324         lt_prog_compiler_wl_GCJ='-Wl,'
18325         # All Alpha code is PIC.
18326         lt_prog_compiler_static_GCJ='-non_shared'
18327         ;;
18328       esac
18329       ;;
18330
18331     osf3* | osf4* | osf5*)
18332       lt_prog_compiler_wl_GCJ='-Wl,'
18333       # All OSF/1 code is PIC.
18334       lt_prog_compiler_static_GCJ='-non_shared'
18335       ;;
18336
18337     sco3.2v5*)
18338       lt_prog_compiler_pic_GCJ='-Kpic'
18339       lt_prog_compiler_static_GCJ='-dn'
18340       ;;
18341
18342     solaris*)
18343       lt_prog_compiler_pic_GCJ='-KPIC'
18344       lt_prog_compiler_static_GCJ='-Bstatic'
18345       case $cc_basename in
18346       f77* | f90* | f95*)
18347         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
18348       *)
18349         lt_prog_compiler_wl_GCJ='-Wl,';;
18350       esac
18351       ;;
18352
18353     sunos4*)
18354       lt_prog_compiler_wl_GCJ='-Qoption ld '
18355       lt_prog_compiler_pic_GCJ='-PIC'
18356       lt_prog_compiler_static_GCJ='-Bstatic'
18357       ;;
18358
18359     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18360       lt_prog_compiler_wl_GCJ='-Wl,'
18361       lt_prog_compiler_pic_GCJ='-KPIC'
18362       lt_prog_compiler_static_GCJ='-Bstatic'
18363       ;;
18364
18365     sysv4*MP*)
18366       if test -d /usr/nec ;then
18367         lt_prog_compiler_pic_GCJ='-Kconform_pic'
18368         lt_prog_compiler_static_GCJ='-Bstatic'
18369       fi
18370       ;;
18371
18372     unicos*)
18373       lt_prog_compiler_wl_GCJ='-Wl,'
18374       lt_prog_compiler_can_build_shared_GCJ=no
18375       ;;
18376
18377     uts4*)
18378       lt_prog_compiler_pic_GCJ='-pic'
18379       lt_prog_compiler_static_GCJ='-Bstatic'
18380       ;;
18381
18382     *)
18383       lt_prog_compiler_can_build_shared_GCJ=no
18384       ;;
18385     esac
18386   fi
18387
18388 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
18389 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
18390
18391 #
18392 # Check to make sure the PIC flag actually works.
18393 #
18394 if test -n "$lt_prog_compiler_pic_GCJ"; then
18395
18396 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
18397 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
18398 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
18399   echo $ECHO_N "(cached) $ECHO_C" >&6
18400 else
18401   lt_prog_compiler_pic_works_GCJ=no
18402   ac_outfile=conftest.$ac_objext
18403    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18404    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
18405    # Insert the option either (1) after the last *FLAGS variable, or
18406    # (2) before a word containing "conftest.", or (3) at the end.
18407    # Note that $ac_compile itself does not contain backslashes and begins
18408    # with a dollar sign (not a hyphen), so the echo should work correctly.
18409    # The option is referenced via a variable to avoid confusing sed.
18410    lt_compile=`echo "$ac_compile" | $SED \
18411    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18412    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18413    -e 's:$: $lt_compiler_flag:'`
18414    (eval echo "\"\$as_me:18414: $lt_compile\"" >&5)
18415    (eval "$lt_compile" 2>conftest.err)
18416    ac_status=$?
18417    cat conftest.err >&5
18418    echo "$as_me:18418: \$? = $ac_status" >&5
18419    if (exit $ac_status) && test -s "$ac_outfile"; then
18420      # The compiler can only warn and ignore the option if not recognized
18421      # So say no if there are warnings other than the usual output.
18422      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
18423      $SED '/^$/d' conftest.err >conftest.er2
18424      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
18425        lt_prog_compiler_pic_works_GCJ=yes
18426      fi
18427    fi
18428    $rm conftest*
18429
18430 fi
18431 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
18432 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
18433
18434 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
18435     case $lt_prog_compiler_pic_GCJ in
18436      "" | " "*) ;;
18437      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
18438      esac
18439 else
18440     lt_prog_compiler_pic_GCJ=
18441      lt_prog_compiler_can_build_shared_GCJ=no
18442 fi
18443
18444 fi
18445 case $host_os in
18446   # For platforms which do not support PIC, -DPIC is meaningless:
18447   *djgpp*)
18448     lt_prog_compiler_pic_GCJ=
18449     ;;
18450   *)
18451     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
18452     ;;
18453 esac
18454
18455 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18456 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
18457 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
18458   echo $ECHO_N "(cached) $ECHO_C" >&6
18459 else
18460   lt_cv_prog_compiler_c_o_GCJ=no
18461    $rm -r conftest 2>/dev/null
18462    mkdir conftest
18463    cd conftest
18464    mkdir out
18465    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18466
18467    lt_compiler_flag="-o out/conftest2.$ac_objext"
18468    # Insert the option either (1) after the last *FLAGS variable, or
18469    # (2) before a word containing "conftest.", or (3) at the end.
18470    # Note that $ac_compile itself does not contain backslashes and begins
18471    # with a dollar sign (not a hyphen), so the echo should work correctly.
18472    lt_compile=`echo "$ac_compile" | $SED \
18473    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18474    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18475    -e 's:$: $lt_compiler_flag:'`
18476    (eval echo "\"\$as_me:18476: $lt_compile\"" >&5)
18477    (eval "$lt_compile" 2>out/conftest.err)
18478    ac_status=$?
18479    cat out/conftest.err >&5
18480    echo "$as_me:18480: \$? = $ac_status" >&5
18481    if (exit $ac_status) && test -s out/conftest2.$ac_objext
18482    then
18483      # The compiler can only warn and ignore the option if not recognized
18484      # So say no if there are warnings
18485      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
18486      $SED '/^$/d' out/conftest.err >out/conftest.er2
18487      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18488        lt_cv_prog_compiler_c_o_GCJ=yes
18489      fi
18490    fi
18491    chmod u+w . 2>&5
18492    $rm conftest*
18493    # SGI C++ compiler will create directory out/ii_files/ for
18494    # template instantiation
18495    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18496    $rm out/* && rmdir out
18497    cd ..
18498    rmdir conftest
18499    $rm conftest*
18500
18501 fi
18502 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
18503 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
18504
18505
18506 hard_links="nottested"
18507 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
18508   # do not overwrite the value of need_locks provided by the user
18509   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18510 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
18511   hard_links=yes
18512   $rm conftest*
18513   ln conftest.a conftest.b 2>/dev/null && hard_links=no
18514   touch conftest.a
18515   ln conftest.a conftest.b 2>&5 || hard_links=no
18516   ln conftest.a conftest.b 2>/dev/null && hard_links=no
18517   { echo "$as_me:$LINENO: result: $hard_links" >&5
18518 echo "${ECHO_T}$hard_links" >&6; }
18519   if test "$hard_links" = no; then
18520     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18521 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18522     need_locks=warn
18523   fi
18524 else
18525   need_locks=no
18526 fi
18527
18528 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18529 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18530
18531   runpath_var=
18532   allow_undefined_flag_GCJ=
18533   enable_shared_with_static_runtimes_GCJ=no
18534   archive_cmds_GCJ=
18535   archive_expsym_cmds_GCJ=
18536   old_archive_From_new_cmds_GCJ=
18537   old_archive_from_expsyms_cmds_GCJ=
18538   export_dynamic_flag_spec_GCJ=
18539   whole_archive_flag_spec_GCJ=
18540   thread_safe_flag_spec_GCJ=
18541   hardcode_libdir_flag_spec_GCJ=
18542   hardcode_libdir_flag_spec_ld_GCJ=
18543   hardcode_libdir_separator_GCJ=
18544   hardcode_direct_GCJ=no
18545   hardcode_minus_L_GCJ=no
18546   hardcode_shlibpath_var_GCJ=unsupported
18547   link_all_deplibs_GCJ=unknown
18548   hardcode_automatic_GCJ=no
18549   module_cmds_GCJ=
18550   module_expsym_cmds_GCJ=
18551   always_export_symbols_GCJ=no
18552   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18553   # include_expsyms should be a list of space-separated symbols to be *always*
18554   # included in the symbol list
18555   include_expsyms_GCJ=
18556   # exclude_expsyms can be an extended regexp of symbols to exclude
18557   # it will be wrapped by ` (' and `)$', so one must not match beginning or
18558   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18559   # as well as any symbol that contains `d'.
18560   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
18561   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18562   # platforms (ab)use it in PIC code, but their linkers get confused if
18563   # the symbol is explicitly referenced.  Since portable code cannot
18564   # rely on this symbol name, it's probably fine to never include it in
18565   # preloaded symbol tables.
18566   extract_expsyms_cmds=
18567   # Just being paranoid about ensuring that cc_basename is set.
18568   for cc_temp in $compiler""; do
18569   case $cc_temp in
18570     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18571     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18572     \-*) ;;
18573     *) break;;
18574   esac
18575 done
18576 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18577
18578   case $host_os in
18579   cygwin* | mingw* | pw32*)
18580     # FIXME: the MSVC++ port hasn't been tested in a loooong time
18581     # When not using gcc, we currently assume that we are using
18582     # Microsoft Visual C++.
18583     if test "$GCC" != yes; then
18584       with_gnu_ld=no
18585     fi
18586     ;;
18587   openbsd*)
18588     with_gnu_ld=no
18589     ;;
18590   esac
18591
18592   ld_shlibs_GCJ=yes
18593   if test "$with_gnu_ld" = yes; then
18594     # If archive_cmds runs LD, not CC, wlarc should be empty
18595     wlarc='${wl}'
18596
18597     # Set some defaults for GNU ld with shared library support. These
18598     # are reset later if shared libraries are not supported. Putting them
18599     # here allows them to be overridden if necessary.
18600     runpath_var=LD_RUN_PATH
18601     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
18602     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
18603     # ancient GNU ld didn't support --whole-archive et. al.
18604     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
18605         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18606       else
18607         whole_archive_flag_spec_GCJ=
18608     fi
18609     supports_anon_versioning=no
18610     case `$LD -v 2>/dev/null` in
18611       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18612       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18613       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18614       *\ 2.11.*) ;; # other 2.11 versions
18615       *) supports_anon_versioning=yes ;;
18616     esac
18617
18618     # See if GNU ld supports shared libraries.
18619     case $host_os in
18620     aix3* | aix4* | aix5*)
18621       # On AIX/PPC, the GNU linker is very broken
18622       if test "$host_cpu" != ia64; then
18623         ld_shlibs_GCJ=no
18624         cat <<EOF 1>&2
18625
18626 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
18627 *** to be unable to reliably create shared libraries on AIX.
18628 *** Therefore, libtool is disabling shared libraries support.  If you
18629 *** really care for shared libraries, you may want to modify your PATH
18630 *** so that a non-GNU linker is found, and then restart.
18631
18632 EOF
18633       fi
18634       ;;
18635
18636     amigaos*)
18637       archive_cmds_GCJ='$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)'
18638       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18639       hardcode_minus_L_GCJ=yes
18640
18641       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
18642       # that the semantics of dynamic libraries on AmigaOS, at least up
18643       # to version 4, is to share data among multiple programs linked
18644       # with the same dynamic library.  Since this doesn't match the
18645       # behavior of shared libraries on other platforms, we can't use
18646       # them.
18647       ld_shlibs_GCJ=no
18648       ;;
18649
18650     beos*)
18651       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18652         allow_undefined_flag_GCJ=unsupported
18653         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18654         # support --undefined.  This deserves some investigation.  FIXME
18655         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18656       else
18657         ld_shlibs_GCJ=no
18658       fi
18659       ;;
18660
18661     cygwin* | mingw* | pw32*)
18662       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
18663       # as there is no search path for DLLs.
18664       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18665       allow_undefined_flag_GCJ=unsupported
18666       always_export_symbols_GCJ=no
18667       enable_shared_with_static_runtimes_GCJ=yes
18668       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
18669
18670       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18671         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
18672         # If the export-symbols file already is a .def file (1st line
18673         # is EXPORTS), use it as is; otherwise, prepend...
18674         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18675           cp $export_symbols $output_objdir/$soname.def;
18676         else
18677           echo EXPORTS > $output_objdir/$soname.def;
18678           cat $export_symbols >> $output_objdir/$soname.def;
18679         fi~
18680         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
18681       else
18682         ld_shlibs_GCJ=no
18683       fi
18684       ;;
18685
18686     linux*)
18687       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18688         tmp_addflag=
18689         case $cc_basename,$host_cpu in
18690         pgcc*)                          # Portland Group C compiler
18691           whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
18692           tmp_addflag=' $pic_flag'
18693           ;;
18694         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
18695           whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
18696           tmp_addflag=' $pic_flag -Mnomain' ;;
18697         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
18698           tmp_addflag=' -i_dynamic' ;;
18699         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
18700           tmp_addflag=' -i_dynamic -nofor_main' ;;
18701         ifc* | ifort*)                  # Intel Fortran compiler
18702           tmp_addflag=' -nofor_main' ;;
18703         esac
18704         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18705
18706         if test $supports_anon_versioning = yes; then
18707           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
18708   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18709   $echo "local: *; };" >> $output_objdir/$libname.ver~
18710           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18711         fi
18712       else
18713         ld_shlibs_GCJ=no
18714       fi
18715       ;;
18716
18717     netbsd*)
18718       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18719         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18720         wlarc=
18721       else
18722         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18723         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18724       fi
18725       ;;
18726
18727     solaris* | sysv5*)
18728       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
18729         ld_shlibs_GCJ=no
18730         cat <<EOF 1>&2
18731
18732 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
18733 *** create shared libraries on Solaris systems.  Therefore, libtool
18734 *** is disabling shared libraries support.  We urge you to upgrade GNU
18735 *** binutils to release 2.9.1 or newer.  Another option is to modify
18736 *** your PATH or compiler configuration so that the native linker is
18737 *** used, and then restart.
18738
18739 EOF
18740       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18741         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18742         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18743       else
18744         ld_shlibs_GCJ=no
18745       fi
18746       ;;
18747
18748     sunos4*)
18749       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18750       wlarc=
18751       hardcode_direct_GCJ=yes
18752       hardcode_shlibpath_var_GCJ=no
18753       ;;
18754
18755     *)
18756       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18757         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18758         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18759       else
18760         ld_shlibs_GCJ=no
18761       fi
18762       ;;
18763     esac
18764
18765     if test "$ld_shlibs_GCJ" = no; then
18766       runpath_var=
18767       hardcode_libdir_flag_spec_GCJ=
18768       export_dynamic_flag_spec_GCJ=
18769       whole_archive_flag_spec_GCJ=
18770     fi
18771   else
18772     # PORTME fill in a description of your system's linker (not GNU ld)
18773     case $host_os in
18774     aix3*)
18775       allow_undefined_flag_GCJ=unsupported
18776       always_export_symbols_GCJ=yes
18777       archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
18778       # Note: this linker hardcodes the directories in LIBPATH if there
18779       # are no directories specified by -L.
18780       hardcode_minus_L_GCJ=yes
18781       if test "$GCC" = yes && test -z "$link_static_flag"; then
18782         # Neither direct hardcoding nor static linking is supported with a
18783         # broken collect2.
18784         hardcode_direct_GCJ=unsupported
18785       fi
18786       ;;
18787
18788     aix4* | aix5*)
18789       if test "$host_cpu" = ia64; then
18790         # On IA64, the linker does run time linking by default, so we don't
18791         # have to do anything special.
18792         aix_use_runtimelinking=no
18793         exp_sym_flag='-Bexport'
18794         no_entry_flag=""
18795       else
18796         # If we're using GNU nm, then we don't want the "-C" option.
18797         # -C means demangle to AIX nm, but means don't demangle with GNU nm
18798         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18799           export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
18800         else
18801           export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
18802         fi
18803         aix_use_runtimelinking=no
18804
18805         # Test if we are trying to use run time linking or normal
18806         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18807         # need to do runtime linking.
18808         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18809           for ld_flag in $LDFLAGS; do
18810           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18811             aix_use_runtimelinking=yes
18812             break
18813           fi
18814           done
18815         esac
18816
18817         exp_sym_flag='-bexport'
18818         no_entry_flag='-bnoentry'
18819       fi
18820
18821       # When large executables or shared objects are built, AIX ld can
18822       # have problems creating the table of contents.  If linking a library
18823       # or program results in "error TOC overflow" add -mminimal-toc to
18824       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18825       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18826
18827       archive_cmds_GCJ=''
18828       hardcode_direct_GCJ=yes
18829       hardcode_libdir_separator_GCJ=':'
18830       link_all_deplibs_GCJ=yes
18831
18832       if test "$GCC" = yes; then
18833         case $host_os in aix4.[012]|aix4.[012].*)
18834         # We only want to do this on AIX 4.2 and lower, the check
18835         # below for broken collect2 doesn't work under 4.3+
18836           collect2name=`${CC} -print-prog-name=collect2`
18837           if test -f "$collect2name" && \
18838            strings "$collect2name" | grep resolve_lib_name >/dev/null
18839           then
18840           # We have reworked collect2
18841           hardcode_direct_GCJ=yes
18842           else
18843           # We have old collect2
18844           hardcode_direct_GCJ=unsupported
18845           # It fails to find uninstalled libraries when the uninstalled
18846           # path is not listed in the libpath.  Setting hardcode_minus_L
18847           # to unsupported forces relinking
18848           hardcode_minus_L_GCJ=yes
18849           hardcode_libdir_flag_spec_GCJ='-L$libdir'
18850           hardcode_libdir_separator_GCJ=
18851           fi
18852         esac
18853         shared_flag='-shared'
18854         if test "$aix_use_runtimelinking" = yes; then
18855           shared_flag="$shared_flag "'${wl}-G'
18856         fi
18857       else
18858         # not using gcc
18859         if test "$host_cpu" = ia64; then
18860         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18861         # chokes on -Wl,-G. The following line is correct:
18862           shared_flag='-G'
18863         else
18864         if test "$aix_use_runtimelinking" = yes; then
18865             shared_flag='${wl}-G'
18866           else
18867             shared_flag='${wl}-bM:SRE'
18868         fi
18869         fi
18870       fi
18871
18872       # It seems that -bexpall does not export symbols beginning with
18873       # underscore (_), so it is better to generate a list of symbols to export.
18874       always_export_symbols_GCJ=yes
18875       if test "$aix_use_runtimelinking" = yes; then
18876         # Warning - without using the other runtime loading flags (-brtl),
18877         # -berok will link without error, but may produce a broken library.
18878         allow_undefined_flag_GCJ='-berok'
18879        # Determine the default libpath from the value encoded in an empty executable.
18880        cat >conftest.$ac_ext <<_ACEOF
18881 /* confdefs.h.  */
18882 _ACEOF
18883 cat confdefs.h >>conftest.$ac_ext
18884 cat >>conftest.$ac_ext <<_ACEOF
18885 /* end confdefs.h.  */
18886
18887 int
18888 main ()
18889 {
18890
18891   ;
18892   return 0;
18893 }
18894 _ACEOF
18895 rm -f conftest.$ac_objext conftest$ac_exeext
18896 if { (ac_try="$ac_link"
18897 case "(($ac_try" in
18898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18899   *) ac_try_echo=$ac_try;;
18900 esac
18901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18902   (eval "$ac_link") 2>conftest.er1
18903   ac_status=$?
18904   grep -v '^ *+' conftest.er1 >conftest.err
18905   rm -f conftest.er1
18906   cat conftest.err >&5
18907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18908   (exit $ac_status); } && {
18909          test -z "$ac_c_werror_flag" ||
18910          test ! -s conftest.err
18911        } && test -s conftest$ac_exeext &&
18912        $as_test_x conftest$ac_exeext; then
18913
18914 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18915 }'`
18916 # Check for a 64-bit object if we didn't find anything.
18917 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18918 }'`; fi
18919 else
18920   echo "$as_me: failed program was:" >&5
18921 sed 's/^/| /' conftest.$ac_ext >&5
18922
18923
18924 fi
18925
18926 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18927       conftest$ac_exeext conftest.$ac_ext
18928 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18929
18930        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18931         archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
18932        else
18933         if test "$host_cpu" = ia64; then
18934           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18935           allow_undefined_flag_GCJ="-z nodefs"
18936           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
18937         else
18938          # Determine the default libpath from the value encoded in an empty executable.
18939          cat >conftest.$ac_ext <<_ACEOF
18940 /* confdefs.h.  */
18941 _ACEOF
18942 cat confdefs.h >>conftest.$ac_ext
18943 cat >>conftest.$ac_ext <<_ACEOF
18944 /* end confdefs.h.  */
18945
18946 int
18947 main ()
18948 {
18949
18950   ;
18951   return 0;
18952 }
18953 _ACEOF
18954 rm -f conftest.$ac_objext conftest$ac_exeext
18955 if { (ac_try="$ac_link"
18956 case "(($ac_try" in
18957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18958   *) ac_try_echo=$ac_try;;
18959 esac
18960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18961   (eval "$ac_link") 2>conftest.er1
18962   ac_status=$?
18963   grep -v '^ *+' conftest.er1 >conftest.err
18964   rm -f conftest.er1
18965   cat conftest.err >&5
18966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18967   (exit $ac_status); } && {
18968          test -z "$ac_c_werror_flag" ||
18969          test ! -s conftest.err
18970        } && test -s conftest$ac_exeext &&
18971        $as_test_x conftest$ac_exeext; then
18972
18973 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18974 }'`
18975 # Check for a 64-bit object if we didn't find anything.
18976 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18977 }'`; fi
18978 else
18979   echo "$as_me: failed program was:" >&5
18980 sed 's/^/| /' conftest.$ac_ext >&5
18981
18982
18983 fi
18984
18985 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18986       conftest$ac_exeext conftest.$ac_ext
18987 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18988
18989          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18990           # Warning - without using the other run time loading flags,
18991           # -berok will link without error, but may produce a broken library.
18992           no_undefined_flag_GCJ=' ${wl}-bernotok'
18993           allow_undefined_flag_GCJ=' ${wl}-berok'
18994           # -bexpall does not export symbols beginning with underscore (_)
18995           always_export_symbols_GCJ=yes
18996           # Exported symbols can be pulled into shared objects from archives
18997           whole_archive_flag_spec_GCJ=' '
18998           archive_cmds_need_lc_GCJ=yes
18999           # This is similar to how AIX traditionally builds its shared libraries.
19000           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
19001         fi
19002       fi
19003       ;;
19004
19005     amigaos*)
19006       archive_cmds_GCJ='$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)'
19007       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19008       hardcode_minus_L_GCJ=yes
19009       # see comment about different semantics on the GNU ld section
19010       ld_shlibs_GCJ=no
19011       ;;
19012
19013     bsdi[45]*)
19014       export_dynamic_flag_spec_GCJ=-rdynamic
19015       ;;
19016
19017     cygwin* | mingw* | pw32*)
19018       # When not using gcc, we currently assume that we are using
19019       # Microsoft Visual C++.
19020       # hardcode_libdir_flag_spec is actually meaningless, as there is
19021       # no search path for DLLs.
19022       hardcode_libdir_flag_spec_GCJ=' '
19023       allow_undefined_flag_GCJ=unsupported
19024       # Tell ltmain to make .lib files, not .a files.
19025       libext=lib
19026       # Tell ltmain to make .dll files, not .so files.
19027       shrext_cmds=".dll"
19028       # FIXME: Setting linknames here is a bad hack.
19029       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19030       # The linker will automatically build a .lib file if we build a DLL.
19031       old_archive_From_new_cmds_GCJ='true'
19032       # FIXME: Should let the user specify the lib program.
19033       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
19034       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
19035       enable_shared_with_static_runtimes_GCJ=yes
19036       ;;
19037
19038     darwin* | rhapsody*)
19039       case $host_os in
19040         rhapsody* | darwin1.[012])
19041          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
19042          ;;
19043        *) # Darwin 1.3 on
19044          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19045            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19046          else
19047            case ${MACOSX_DEPLOYMENT_TARGET} in
19048              10.[012])
19049                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19050                ;;
19051              10.*)
19052                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
19053                ;;
19054            esac
19055          fi
19056          ;;
19057       esac
19058       archive_cmds_need_lc_GCJ=no
19059       hardcode_direct_GCJ=no
19060       hardcode_automatic_GCJ=yes
19061       hardcode_shlibpath_var_GCJ=unsupported
19062       whole_archive_flag_spec_GCJ=''
19063       link_all_deplibs_GCJ=yes
19064     if test "$GCC" = yes ; then
19065         output_verbose_link_cmd='echo'
19066         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19067       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19068       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19069       archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
19070       module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
19071     else
19072       case $cc_basename in
19073         xlc*)
19074          output_verbose_link_cmd='echo'
19075          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
19076          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19077           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19078          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
19079           module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
19080           ;;
19081        *)
19082          ld_shlibs_GCJ=no
19083           ;;
19084       esac
19085     fi
19086       ;;
19087
19088     dgux*)
19089       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19090       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19091       hardcode_shlibpath_var_GCJ=no
19092       ;;
19093
19094     freebsd1*)
19095       ld_shlibs_GCJ=no
19096       ;;
19097
19098     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19099     # support.  Future versions do this automatically, but an explicit c++rt0.o
19100     # does not break anything, and helps significantly (at the cost of a little
19101     # extra space).
19102     freebsd2.2*)
19103       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19104       hardcode_libdir_flag_spec_GCJ='-R$libdir'
19105       hardcode_direct_GCJ=yes
19106       hardcode_shlibpath_var_GCJ=no
19107       ;;
19108
19109     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19110     freebsd2*)
19111       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19112       hardcode_direct_GCJ=yes
19113       hardcode_minus_L_GCJ=yes
19114       hardcode_shlibpath_var_GCJ=no
19115       ;;
19116
19117     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19118     freebsd* | kfreebsd*-gnu | dragonfly*)
19119       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19120       hardcode_libdir_flag_spec_GCJ='-R$libdir'
19121       hardcode_direct_GCJ=yes
19122       hardcode_shlibpath_var_GCJ=no
19123       ;;
19124
19125     hpux9*)
19126       if test "$GCC" = yes; then
19127         archive_cmds_GCJ='$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'
19128       else
19129         archive_cmds_GCJ='$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'
19130       fi
19131       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19132       hardcode_libdir_separator_GCJ=:
19133       hardcode_direct_GCJ=yes
19134
19135       # hardcode_minus_L: Not really in the search PATH,
19136       # but as the default location of the library.
19137       hardcode_minus_L_GCJ=yes
19138       export_dynamic_flag_spec_GCJ='${wl}-E'
19139       ;;
19140
19141     hpux10* | hpux11*)
19142       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19143         case $host_cpu in
19144         hppa*64*|ia64*)
19145           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19146           ;;
19147         *)
19148           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19149           ;;
19150         esac
19151       else
19152         case $host_cpu in
19153         hppa*64*|ia64*)
19154           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
19155           ;;
19156         *)
19157           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19158           ;;
19159         esac
19160       fi
19161       if test "$with_gnu_ld" = no; then
19162         case $host_cpu in
19163         hppa*64*)
19164           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19165           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
19166           hardcode_libdir_separator_GCJ=:
19167           hardcode_direct_GCJ=no
19168           hardcode_shlibpath_var_GCJ=no
19169           ;;
19170         ia64*)
19171           hardcode_libdir_flag_spec_GCJ='-L$libdir'
19172           hardcode_direct_GCJ=no
19173           hardcode_shlibpath_var_GCJ=no
19174
19175           # hardcode_minus_L: Not really in the search PATH,
19176           # but as the default location of the library.
19177           hardcode_minus_L_GCJ=yes
19178           ;;
19179         *)
19180           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19181           hardcode_libdir_separator_GCJ=:
19182           hardcode_direct_GCJ=yes
19183           export_dynamic_flag_spec_GCJ='${wl}-E'
19184
19185           # hardcode_minus_L: Not really in the search PATH,
19186           # but as the default location of the library.
19187           hardcode_minus_L_GCJ=yes
19188           ;;
19189         esac
19190       fi
19191       ;;
19192
19193     irix5* | irix6* | nonstopux*)
19194       if test "$GCC" = yes; then
19195         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
19196       else
19197         archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
19198         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
19199       fi
19200       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19201       hardcode_libdir_separator_GCJ=:
19202       link_all_deplibs_GCJ=yes
19203       ;;
19204
19205     netbsd*)
19206       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19207         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
19208       else
19209         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
19210       fi
19211       hardcode_libdir_flag_spec_GCJ='-R$libdir'
19212       hardcode_direct_GCJ=yes
19213       hardcode_shlibpath_var_GCJ=no
19214       ;;
19215
19216     newsos6)
19217       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19218       hardcode_direct_GCJ=yes
19219       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19220       hardcode_libdir_separator_GCJ=:
19221       hardcode_shlibpath_var_GCJ=no
19222       ;;
19223
19224     openbsd*)
19225       hardcode_direct_GCJ=yes
19226       hardcode_shlibpath_var_GCJ=no
19227       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19228         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19229         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19230         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19231         export_dynamic_flag_spec_GCJ='${wl}-E'
19232       else
19233        case $host_os in
19234          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19235            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19236            hardcode_libdir_flag_spec_GCJ='-R$libdir'
19237            ;;
19238          *)
19239            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19240            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19241            ;;
19242        esac
19243       fi
19244       ;;
19245
19246     os2*)
19247       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19248       hardcode_minus_L_GCJ=yes
19249       allow_undefined_flag_GCJ=unsupported
19250       archive_cmds_GCJ='$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'
19251       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19252       ;;
19253
19254     osf3*)
19255       if test "$GCC" = yes; then
19256         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19257         archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
19258       else
19259         allow_undefined_flag_GCJ=' -expect_unresolved \*'
19260         archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
19261       fi
19262       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19263       hardcode_libdir_separator_GCJ=:
19264       ;;
19265
19266     osf4* | osf5*)      # as osf3* with the addition of -msym flag
19267       if test "$GCC" = yes; then
19268         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19269         archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
19270         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19271       else
19272         allow_undefined_flag_GCJ=' -expect_unresolved \*'
19273         archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
19274         archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
19275         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
19276
19277         # Both c and cxx compiler support -rpath directly
19278         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
19279       fi
19280       hardcode_libdir_separator_GCJ=:
19281       ;;
19282
19283     sco3.2v5*)
19284       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19285       hardcode_shlibpath_var_GCJ=no
19286       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
19287       runpath_var=LD_RUN_PATH
19288       hardcode_runpath_var=yes
19289       ;;
19290
19291     solaris*)
19292       no_undefined_flag_GCJ=' -z text'
19293       if test "$GCC" = yes; then
19294         wlarc='${wl}'
19295         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19296         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19297           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19298       else
19299         wlarc=''
19300         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19301         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19302         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19303       fi
19304       hardcode_libdir_flag_spec_GCJ='-R$libdir'
19305       hardcode_shlibpath_var_GCJ=no
19306       case $host_os in
19307       solaris2.[0-5] | solaris2.[0-5].*) ;;
19308       *)
19309         # The compiler driver will combine linker options so we
19310         # cannot just pass the convience library names through
19311         # without $wl, iff we do not link with $LD.
19312         # Luckily, gcc supports the same syntax we need for Sun Studio.
19313         # Supported since Solaris 2.6 (maybe 2.5.1?)
19314         case $wlarc in
19315         '')
19316           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
19317         *)
19318           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
19319         esac ;;
19320       esac
19321       link_all_deplibs_GCJ=yes
19322       ;;
19323
19324     sunos4*)
19325       if test "x$host_vendor" = xsequent; then
19326         # Use $CC to link under sequent, because it throws in some extra .o
19327         # files that make .init and .fini sections work.
19328         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19329       else
19330         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19331       fi
19332       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19333       hardcode_direct_GCJ=yes
19334       hardcode_minus_L_GCJ=yes
19335       hardcode_shlibpath_var_GCJ=no
19336       ;;
19337
19338     sysv4)
19339       case $host_vendor in
19340         sni)
19341           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19342           hardcode_direct_GCJ=yes # is this really true???
19343         ;;
19344         siemens)
19345           ## LD is ld it makes a PLAMLIB
19346           ## CC just makes a GrossModule.
19347           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19348           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
19349           hardcode_direct_GCJ=no
19350         ;;
19351         motorola)
19352           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19353           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
19354         ;;
19355       esac
19356       runpath_var='LD_RUN_PATH'
19357       hardcode_shlibpath_var_GCJ=no
19358       ;;
19359
19360     sysv4.3*)
19361       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19362       hardcode_shlibpath_var_GCJ=no
19363       export_dynamic_flag_spec_GCJ='-Bexport'
19364       ;;
19365
19366     sysv4*MP*)
19367       if test -d /usr/nec; then
19368         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19369         hardcode_shlibpath_var_GCJ=no
19370         runpath_var=LD_RUN_PATH
19371         hardcode_runpath_var=yes
19372         ld_shlibs_GCJ=yes
19373       fi
19374       ;;
19375
19376     sysv4.2uw2*)
19377       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19378       hardcode_direct_GCJ=yes
19379       hardcode_minus_L_GCJ=no
19380       hardcode_shlibpath_var_GCJ=no
19381       hardcode_runpath_var=yes
19382       runpath_var=LD_RUN_PATH
19383       ;;
19384
19385    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
19386       no_undefined_flag_GCJ='${wl}-z ${wl}text'
19387       if test "$GCC" = yes; then
19388         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19389       else
19390         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19391       fi
19392       runpath_var='LD_RUN_PATH'
19393       hardcode_shlibpath_var_GCJ=no
19394       ;;
19395
19396     sysv5*)
19397       no_undefined_flag_GCJ=' -z text'
19398       # $CC -shared without GNU ld will not create a library from C++
19399       # object files and a static libstdc++, better avoid it by now
19400       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19401       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19402                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19403       hardcode_libdir_flag_spec_GCJ=
19404       hardcode_shlibpath_var_GCJ=no
19405       runpath_var='LD_RUN_PATH'
19406       ;;
19407
19408     uts4*)
19409       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19410       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19411       hardcode_shlibpath_var_GCJ=no
19412       ;;
19413
19414     *)
19415       ld_shlibs_GCJ=no
19416       ;;
19417     esac
19418   fi
19419
19420 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
19421 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
19422 test "$ld_shlibs_GCJ" = no && can_build_shared=no
19423
19424 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19425 if test "$GCC" = yes; then
19426   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19427 fi
19428
19429 #
19430 # Do we need to explicitly link libc?
19431 #
19432 case "x$archive_cmds_need_lc_GCJ" in
19433 x|xyes)
19434   # Assume -lc should be added
19435   archive_cmds_need_lc_GCJ=yes
19436
19437   if test "$enable_shared" = yes && test "$GCC" = yes; then
19438     case $archive_cmds_GCJ in
19439     *'~'*)
19440       # FIXME: we may have to deal with multi-command sequences.
19441       ;;
19442     '$CC '*)
19443       # Test whether the compiler implicitly links with -lc since on some
19444       # systems, -lgcc has to come before -lc. If gcc already passes -lc
19445       # to ld, don't add -lc before -lgcc.
19446       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19447 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19448       $rm conftest*
19449       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19450
19451       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19452   (eval $ac_compile) 2>&5
19453   ac_status=$?
19454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19455   (exit $ac_status); } 2>conftest.err; then
19456         soname=conftest
19457         lib=conftest
19458         libobjs=conftest.$ac_objext
19459         deplibs=
19460         wl=$lt_prog_compiler_wl_GCJ
19461         compiler_flags=-v
19462         linker_flags=-v
19463         verstring=
19464         output_objdir=.
19465         libname=conftest
19466         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
19467         allow_undefined_flag_GCJ=
19468         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19469   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19470   ac_status=$?
19471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19472   (exit $ac_status); }
19473         then
19474           archive_cmds_need_lc_GCJ=no
19475         else
19476           archive_cmds_need_lc_GCJ=yes
19477         fi
19478         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
19479       else
19480         cat conftest.err 1>&5
19481       fi
19482       $rm conftest*
19483       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
19484 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
19485       ;;
19486     esac
19487   fi
19488   ;;
19489 esac
19490
19491 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19492 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19493 library_names_spec=
19494 libname_spec='lib$name'
19495 soname_spec=
19496 shrext_cmds=".so"
19497 postinstall_cmds=
19498 postuninstall_cmds=
19499 finish_cmds=
19500 finish_eval=
19501 shlibpath_var=
19502 shlibpath_overrides_runpath=unknown
19503 version_type=none
19504 dynamic_linker="$host_os ld.so"
19505 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19506 if test "$GCC" = yes; then
19507   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19508   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19509     # if the path contains ";" then we assume it to be the separator
19510     # otherwise default to the standard path separator (i.e. ":") - it is
19511     # assumed that no part of a normal pathname contains ";" but that should
19512     # okay in the real world where ";" in dirpaths is itself problematic.
19513     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19514   else
19515     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19516   fi
19517 else
19518   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19519 fi
19520 need_lib_prefix=unknown
19521 hardcode_into_libs=no
19522
19523 # when you set need_version to no, make sure it does not cause -set_version
19524 # flags to be left without arguments
19525 need_version=unknown
19526
19527 case $host_os in
19528 aix3*)
19529   version_type=linux
19530   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19531   shlibpath_var=LIBPATH
19532
19533   # AIX 3 has no versioning support, so we append a major version to the name.
19534   soname_spec='${libname}${release}${shared_ext}$major'
19535   ;;
19536
19537 aix4* | aix5*)
19538   version_type=linux
19539   need_lib_prefix=no
19540   need_version=no
19541   hardcode_into_libs=yes
19542   if test "$host_cpu" = ia64; then
19543     # AIX 5 supports IA64
19544     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19545     shlibpath_var=LD_LIBRARY_PATH
19546   else
19547     # With GCC up to 2.95.x, collect2 would create an import file
19548     # for dependence libraries.  The import file would start with
19549     # the line `#! .'.  This would cause the generated library to
19550     # depend on `.', always an invalid library.  This was fixed in
19551     # development snapshots of GCC prior to 3.0.
19552     case $host_os in
19553       aix4 | aix4.[01] | aix4.[01].*)
19554       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19555            echo ' yes '
19556            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19557         :
19558       else
19559         can_build_shared=no
19560       fi
19561       ;;
19562     esac
19563     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19564     # soname into executable. Probably we can add versioning support to
19565     # collect2, so additional links can be useful in future.
19566     if test "$aix_use_runtimelinking" = yes; then
19567       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19568       # instead of lib<name>.a to let people know that these are not
19569       # typical AIX shared libraries.
19570       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19571     else
19572       # We preserve .a as extension for shared libraries through AIX4.2
19573       # and later when we are not doing run time linking.
19574       library_names_spec='${libname}${release}.a $libname.a'
19575       soname_spec='${libname}${release}${shared_ext}$major'
19576     fi
19577     shlibpath_var=LIBPATH
19578   fi
19579   ;;
19580
19581 amigaos*)
19582   library_names_spec='$libname.ixlibrary $libname.a'
19583   # Create ${libname}_ixlibrary.a entries in /sys/libs.
19584   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'
19585   ;;
19586
19587 beos*)
19588   library_names_spec='${libname}${shared_ext}'
19589   dynamic_linker="$host_os ld.so"
19590   shlibpath_var=LIBRARY_PATH
19591   ;;
19592
19593 bsdi[45]*)
19594   version_type=linux
19595   need_version=no
19596   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19597   soname_spec='${libname}${release}${shared_ext}$major'
19598   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19599   shlibpath_var=LD_LIBRARY_PATH
19600   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19601   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19602   # the default ld.so.conf also contains /usr/contrib/lib and
19603   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19604   # libtool to hard-code these into programs
19605   ;;
19606
19607 cygwin* | mingw* | pw32*)
19608   version_type=windows
19609   shrext_cmds=".dll"
19610   need_version=no
19611   need_lib_prefix=no
19612
19613   case $GCC,$host_os in
19614   yes,cygwin* | yes,mingw* | yes,pw32*)
19615     library_names_spec='$libname.dll.a'
19616     # DLL is installed to $(libdir)/../bin by postinstall_cmds
19617     postinstall_cmds='base_file=`basename \${file}`~
19618       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19619       dldir=$destdir/`dirname \$dlpath`~
19620       test -d \$dldir || mkdir -p \$dldir~
19621       $install_prog $dir/$dlname \$dldir/$dlname~
19622       chmod a+x \$dldir/$dlname'
19623     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19624       dlpath=$dir/\$dldll~
19625        $rm \$dlpath'
19626     shlibpath_overrides_runpath=yes
19627
19628     case $host_os in
19629     cygwin*)
19630       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19631       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19632       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19633       ;;
19634     mingw*)
19635       # MinGW DLLs use traditional 'lib' prefix
19636       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19637       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19638       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19639         # It is most probably a Windows format PATH printed by
19640         # mingw gcc, but we are running on Cygwin. Gcc prints its search
19641         # path with ; separators, and with drive letters. We can handle the
19642         # drive letters (cygwin fileutils understands them), so leave them,
19643         # especially as we might pass files found there to a mingw objdump,
19644         # which wouldn't understand a cygwinified path. Ahh.
19645         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19646       else
19647         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19648       fi
19649       ;;
19650     pw32*)
19651       # pw32 DLLs use 'pw' prefix rather than 'lib'
19652       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19653       ;;
19654     esac
19655     ;;
19656
19657   *)
19658     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19659     ;;
19660   esac
19661   dynamic_linker='Win32 ld.exe'
19662   # FIXME: first we should search . and the directory the executable is in
19663   shlibpath_var=PATH
19664   ;;
19665
19666 darwin* | rhapsody*)
19667   dynamic_linker="$host_os dyld"
19668   version_type=darwin
19669   need_lib_prefix=no
19670   need_version=no
19671   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19672   soname_spec='${libname}${release}${major}$shared_ext'
19673   shlibpath_overrides_runpath=yes
19674   shlibpath_var=DYLD_LIBRARY_PATH
19675   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19676   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
19677   if test "$GCC" = yes; then
19678     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
19679   else
19680     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
19681   fi
19682   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19683   ;;
19684
19685 dgux*)
19686   version_type=linux
19687   need_lib_prefix=no
19688   need_version=no
19689   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19690   soname_spec='${libname}${release}${shared_ext}$major'
19691   shlibpath_var=LD_LIBRARY_PATH
19692   ;;
19693
19694 freebsd1*)
19695   dynamic_linker=no
19696   ;;
19697
19698 kfreebsd*-gnu)
19699   version_type=linux
19700   need_lib_prefix=no
19701   need_version=no
19702   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19703   soname_spec='${libname}${release}${shared_ext}$major'
19704   shlibpath_var=LD_LIBRARY_PATH
19705   shlibpath_overrides_runpath=no
19706   hardcode_into_libs=yes
19707   dynamic_linker='GNU ld.so'
19708   ;;
19709
19710 freebsd* | dragonfly*)
19711   # DragonFly does not have aout.  When/if they implement a new
19712   # versioning mechanism, adjust this.
19713   if test -x /usr/bin/objformat; then
19714     objformat=`/usr/bin/objformat`
19715   else
19716     case $host_os in
19717     freebsd[123]*) objformat=aout ;;
19718     *) objformat=elf ;;
19719     esac
19720   fi
19721   version_type=freebsd-$objformat
19722   case $version_type in
19723     freebsd-elf*)
19724       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19725       need_version=no
19726       need_lib_prefix=no
19727       ;;
19728     freebsd-*)
19729       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19730       need_version=yes
19731       ;;
19732   esac
19733   shlibpath_var=LD_LIBRARY_PATH
19734   case $host_os in
19735   freebsd2*)
19736     shlibpath_overrides_runpath=yes
19737     ;;
19738   freebsd3.[01]* | freebsdelf3.[01]*)
19739     shlibpath_overrides_runpath=yes
19740     hardcode_into_libs=yes
19741     ;;
19742   *) # from 3.2 on
19743     shlibpath_overrides_runpath=no
19744     hardcode_into_libs=yes
19745     ;;
19746   esac
19747   ;;
19748
19749 gnu*)
19750   version_type=linux
19751   need_lib_prefix=no
19752   need_version=no
19753   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19754   soname_spec='${libname}${release}${shared_ext}$major'
19755   shlibpath_var=LD_LIBRARY_PATH
19756   hardcode_into_libs=yes
19757   ;;
19758
19759 hpux9* | hpux10* | hpux11*)
19760   # Give a soname corresponding to the major version so that dld.sl refuses to
19761   # link against other versions.
19762   version_type=sunos
19763   need_lib_prefix=no
19764   need_version=no
19765   case $host_cpu in
19766   ia64*)
19767     shrext_cmds='.so'
19768     hardcode_into_libs=yes
19769     dynamic_linker="$host_os dld.so"
19770     shlibpath_var=LD_LIBRARY_PATH
19771     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19772     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19773     soname_spec='${libname}${release}${shared_ext}$major'
19774     if test "X$HPUX_IA64_MODE" = X32; then
19775       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19776     else
19777       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19778     fi
19779     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19780     ;;
19781    hppa*64*)
19782      shrext_cmds='.sl'
19783      hardcode_into_libs=yes
19784      dynamic_linker="$host_os dld.sl"
19785      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19786      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19787      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19788      soname_spec='${libname}${release}${shared_ext}$major'
19789      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19790      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19791      ;;
19792    *)
19793     shrext_cmds='.sl'
19794     dynamic_linker="$host_os dld.sl"
19795     shlibpath_var=SHLIB_PATH
19796     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19797     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19798     soname_spec='${libname}${release}${shared_ext}$major'
19799     ;;
19800   esac
19801   # HP-UX runs *really* slowly unless shared libraries are mode 555.
19802   postinstall_cmds='chmod 555 $lib'
19803   ;;
19804
19805 irix5* | irix6* | nonstopux*)
19806   case $host_os in
19807     nonstopux*) version_type=nonstopux ;;
19808     *)
19809         if test "$lt_cv_prog_gnu_ld" = yes; then
19810                 version_type=linux
19811         else
19812                 version_type=irix
19813         fi ;;
19814   esac
19815   need_lib_prefix=no
19816   need_version=no
19817   soname_spec='${libname}${release}${shared_ext}$major'
19818   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19819   case $host_os in
19820   irix5* | nonstopux*)
19821     libsuff= shlibsuff=
19822     ;;
19823   *)
19824     case $LD in # libtool.m4 will add one of these switches to LD
19825     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19826       libsuff= shlibsuff= libmagic=32-bit;;
19827     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19828       libsuff=32 shlibsuff=N32 libmagic=N32;;
19829     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19830       libsuff=64 shlibsuff=64 libmagic=64-bit;;
19831     *) libsuff= shlibsuff= libmagic=never-match;;
19832     esac
19833     ;;
19834   esac
19835   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19836   shlibpath_overrides_runpath=no
19837   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19838   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19839   hardcode_into_libs=yes
19840   ;;
19841
19842 # No shared lib support for Linux oldld, aout, or coff.
19843 linux*oldld* | linux*aout* | linux*coff*)
19844   dynamic_linker=no
19845   ;;
19846
19847 # This must be Linux ELF.
19848 linux*)
19849   version_type=linux
19850   need_lib_prefix=no
19851   need_version=no
19852   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19853   soname_spec='${libname}${release}${shared_ext}$major'
19854   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19855   shlibpath_var=LD_LIBRARY_PATH
19856   shlibpath_overrides_runpath=no
19857   # This implies no fast_install, which is unacceptable.
19858   # Some rework will be needed to allow for fast_install
19859   # before this can be enabled.
19860   hardcode_into_libs=yes
19861
19862   # Append ld.so.conf contents to the search path
19863   if test -f /etc/ld.so.conf; then
19864     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
19865     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19866   fi
19867
19868   # We used to test for /lib/ld.so.1 and disable shared libraries on
19869   # powerpc, because MkLinux only supported shared libraries with the
19870   # GNU dynamic linker.  Since this was broken with cross compilers,
19871   # most powerpc-linux boxes support dynamic linking these days and
19872   # people can always --disable-shared, the test was removed, and we
19873   # assume the GNU/Linux dynamic linker is in use.
19874   dynamic_linker='GNU/Linux ld.so'
19875   ;;
19876
19877 knetbsd*-gnu)
19878   version_type=linux
19879   need_lib_prefix=no
19880   need_version=no
19881   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19882   soname_spec='${libname}${release}${shared_ext}$major'
19883   shlibpath_var=LD_LIBRARY_PATH
19884   shlibpath_overrides_runpath=no
19885   hardcode_into_libs=yes
19886   dynamic_linker='GNU ld.so'
19887   ;;
19888
19889 netbsd*)
19890   version_type=sunos
19891   need_lib_prefix=no
19892   need_version=no
19893   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19894     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19895     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19896     dynamic_linker='NetBSD (a.out) ld.so'
19897   else
19898     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19899     soname_spec='${libname}${release}${shared_ext}$major'
19900     dynamic_linker='NetBSD ld.elf_so'
19901   fi
19902   shlibpath_var=LD_LIBRARY_PATH
19903   shlibpath_overrides_runpath=yes
19904   hardcode_into_libs=yes
19905   ;;
19906
19907 newsos6)
19908   version_type=linux
19909   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19910   shlibpath_var=LD_LIBRARY_PATH
19911   shlibpath_overrides_runpath=yes
19912   ;;
19913
19914 nto-qnx*)
19915   version_type=linux
19916   need_lib_prefix=no
19917   need_version=no
19918   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19919   soname_spec='${libname}${release}${shared_ext}$major'
19920   shlibpath_var=LD_LIBRARY_PATH
19921   shlibpath_overrides_runpath=yes
19922   ;;
19923
19924 openbsd*)
19925   version_type=sunos
19926   need_lib_prefix=no
19927   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19928   case $host_os in
19929     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19930     *)                         need_version=no  ;;
19931   esac
19932   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19933   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19934   shlibpath_var=LD_LIBRARY_PATH
19935   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19936     case $host_os in
19937       openbsd2.[89] | openbsd2.[89].*)
19938         shlibpath_overrides_runpath=no
19939         ;;
19940       *)
19941         shlibpath_overrides_runpath=yes
19942         ;;
19943       esac
19944   else
19945     shlibpath_overrides_runpath=yes
19946   fi
19947   ;;
19948
19949 os2*)
19950   libname_spec='$name'
19951   shrext_cmds=".dll"
19952   need_lib_prefix=no
19953   library_names_spec='$libname${shared_ext} $libname.a'
19954   dynamic_linker='OS/2 ld.exe'
19955   shlibpath_var=LIBPATH
19956   ;;
19957
19958 osf3* | osf4* | osf5*)
19959   version_type=osf
19960   need_lib_prefix=no
19961   need_version=no
19962   soname_spec='${libname}${release}${shared_ext}$major'
19963   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19964   shlibpath_var=LD_LIBRARY_PATH
19965   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19966   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19967   ;;
19968
19969 sco3.2v5*)
19970   version_type=osf
19971   soname_spec='${libname}${release}${shared_ext}$major'
19972   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19973   shlibpath_var=LD_LIBRARY_PATH
19974   ;;
19975
19976 solaris*)
19977   version_type=linux
19978   need_lib_prefix=no
19979   need_version=no
19980   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19981   soname_spec='${libname}${release}${shared_ext}$major'
19982   shlibpath_var=LD_LIBRARY_PATH
19983   shlibpath_overrides_runpath=yes
19984   hardcode_into_libs=yes
19985   # ldd complains unless libraries are executable
19986   postinstall_cmds='chmod +x $lib'
19987   ;;
19988
19989 sunos4*)
19990   version_type=sunos
19991   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19992   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19993   shlibpath_var=LD_LIBRARY_PATH
19994   shlibpath_overrides_runpath=yes
19995   if test "$with_gnu_ld" = yes; then
19996     need_lib_prefix=no
19997   fi
19998   need_version=yes
19999   ;;
20000
20001 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20002   version_type=linux
20003   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20004   soname_spec='${libname}${release}${shared_ext}$major'
20005   shlibpath_var=LD_LIBRARY_PATH
20006   case $host_vendor in
20007     sni)
20008       shlibpath_overrides_runpath=no
20009       need_lib_prefix=no
20010       export_dynamic_flag_spec='${wl}-Blargedynsym'
20011       runpath_var=LD_RUN_PATH
20012       ;;
20013     siemens)
20014       need_lib_prefix=no
20015       ;;
20016     motorola)
20017       need_lib_prefix=no
20018       need_version=no
20019       shlibpath_overrides_runpath=no
20020       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20021       ;;
20022   esac
20023   ;;
20024
20025 sysv4*MP*)
20026   if test -d /usr/nec ;then
20027     version_type=linux
20028     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20029     soname_spec='$libname${shared_ext}.$major'
20030     shlibpath_var=LD_LIBRARY_PATH
20031   fi
20032   ;;
20033
20034 uts4*)
20035   version_type=linux
20036   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20037   soname_spec='${libname}${release}${shared_ext}$major'
20038   shlibpath_var=LD_LIBRARY_PATH
20039   ;;
20040
20041 *)
20042   dynamic_linker=no
20043   ;;
20044 esac
20045 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20046 echo "${ECHO_T}$dynamic_linker" >&6; }
20047 test "$dynamic_linker" = no && can_build_shared=no
20048
20049 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20050 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20051 hardcode_action_GCJ=
20052 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
20053    test -n "$runpath_var_GCJ" || \
20054    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
20055
20056   # We can hardcode non-existant directories.
20057   if test "$hardcode_direct_GCJ" != no &&
20058      # If the only mechanism to avoid hardcoding is shlibpath_var, we
20059      # have to relink, otherwise we might link with an installed library
20060      # when we should be linking with a yet-to-be-installed one
20061      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
20062      test "$hardcode_minus_L_GCJ" != no; then
20063     # Linking always hardcodes the temporary library directory.
20064     hardcode_action_GCJ=relink
20065   else
20066     # We can link without hardcoding, and we can hardcode nonexisting dirs.
20067     hardcode_action_GCJ=immediate
20068   fi
20069 else
20070   # We cannot hardcode anything, or else we can only hardcode existing
20071   # directories.
20072   hardcode_action_GCJ=unsupported
20073 fi
20074 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
20075 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
20076
20077 if test "$hardcode_action_GCJ" = relink; then
20078   # Fast installation is not supported
20079   enable_fast_install=no
20080 elif test "$shlibpath_overrides_runpath" = yes ||
20081      test "$enable_shared" = no; then
20082   # Fast installation is not necessary
20083   enable_fast_install=needless
20084 fi
20085
20086 striplib=
20087 old_striplib=
20088 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
20089 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
20090 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
20091   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20092   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20093   { echo "$as_me:$LINENO: result: yes" >&5
20094 echo "${ECHO_T}yes" >&6; }
20095 else
20096 # FIXME - insert some real tests, host_os isn't really good enough
20097   case $host_os in
20098    darwin*)
20099        if test -n "$STRIP" ; then
20100          striplib="$STRIP -x"
20101          { echo "$as_me:$LINENO: result: yes" >&5
20102 echo "${ECHO_T}yes" >&6; }
20103        else
20104   { echo "$as_me:$LINENO: result: no" >&5
20105 echo "${ECHO_T}no" >&6; }
20106 fi
20107        ;;
20108    *)
20109   { echo "$as_me:$LINENO: result: no" >&5
20110 echo "${ECHO_T}no" >&6; }
20111     ;;
20112   esac
20113 fi
20114
20115 if test "x$enable_dlopen" != xyes; then
20116   enable_dlopen=unknown
20117   enable_dlopen_self=unknown
20118   enable_dlopen_self_static=unknown
20119 else
20120   lt_cv_dlopen=no
20121   lt_cv_dlopen_libs=
20122
20123   case $host_os in
20124   beos*)
20125     lt_cv_dlopen="load_add_on"
20126     lt_cv_dlopen_libs=
20127     lt_cv_dlopen_self=yes
20128     ;;
20129
20130   mingw* | pw32*)
20131     lt_cv_dlopen="LoadLibrary"
20132     lt_cv_dlopen_libs=
20133    ;;
20134
20135   cygwin*)
20136     lt_cv_dlopen="dlopen"
20137     lt_cv_dlopen_libs=
20138    ;;
20139
20140   darwin*)
20141   # if libdl is installed we need to link against it
20142     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
20143 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
20144 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
20145   echo $ECHO_N "(cached) $ECHO_C" >&6
20146 else
20147   ac_check_lib_save_LIBS=$LIBS
20148 LIBS="-ldl  $LIBS"
20149 cat >conftest.$ac_ext <<_ACEOF
20150 /* confdefs.h.  */
20151 _ACEOF
20152 cat confdefs.h >>conftest.$ac_ext
20153 cat >>conftest.$ac_ext <<_ACEOF
20154 /* end confdefs.h.  */
20155
20156 /* Override any GCC internal prototype to avoid an error.
20157    Use char because int might match the return type of a GCC
20158    builtin and then its argument prototype would still apply.  */
20159 #ifdef __cplusplus
20160 extern "C"
20161 #endif
20162 char dlopen ();
20163 int
20164 main ()
20165 {
20166 return dlopen ();
20167   ;
20168   return 0;
20169 }
20170 _ACEOF
20171 rm -f conftest.$ac_objext conftest$ac_exeext
20172 if { (ac_try="$ac_link"
20173 case "(($ac_try" in
20174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20175   *) ac_try_echo=$ac_try;;
20176 esac
20177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20178   (eval "$ac_link") 2>conftest.er1
20179   ac_status=$?
20180   grep -v '^ *+' conftest.er1 >conftest.err
20181   rm -f conftest.er1
20182   cat conftest.err >&5
20183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20184   (exit $ac_status); } && {
20185          test -z "$ac_c_werror_flag" ||
20186          test ! -s conftest.err
20187        } && test -s conftest$ac_exeext &&
20188        $as_test_x conftest$ac_exeext; then
20189   ac_cv_lib_dl_dlopen=yes
20190 else
20191   echo "$as_me: failed program was:" >&5
20192 sed 's/^/| /' conftest.$ac_ext >&5
20193
20194         ac_cv_lib_dl_dlopen=no
20195 fi
20196
20197 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20198       conftest$ac_exeext conftest.$ac_ext
20199 LIBS=$ac_check_lib_save_LIBS
20200 fi
20201 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
20202 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
20203 if test $ac_cv_lib_dl_dlopen = yes; then
20204   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
20205 else
20206
20207     lt_cv_dlopen="dyld"
20208     lt_cv_dlopen_libs=
20209     lt_cv_dlopen_self=yes
20210
20211 fi
20212
20213    ;;
20214
20215   *)
20216     { echo "$as_me:$LINENO: checking for shl_load" >&5
20217 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
20218 if test "${ac_cv_func_shl_load+set}" = set; then
20219   echo $ECHO_N "(cached) $ECHO_C" >&6
20220 else
20221   cat >conftest.$ac_ext <<_ACEOF
20222 /* confdefs.h.  */
20223 _ACEOF
20224 cat confdefs.h >>conftest.$ac_ext
20225 cat >>conftest.$ac_ext <<_ACEOF
20226 /* end confdefs.h.  */
20227 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
20228    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20229 #define shl_load innocuous_shl_load
20230
20231 /* System header to define __stub macros and hopefully few prototypes,
20232     which can conflict with char shl_load (); below.
20233     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20234     <limits.h> exists even on freestanding compilers.  */
20235
20236 #ifdef __STDC__
20237 # include <limits.h>
20238 #else
20239 # include <assert.h>
20240 #endif
20241
20242 #undef shl_load
20243
20244 /* Override any GCC internal prototype to avoid an error.
20245    Use char because int might match the return type of a GCC
20246    builtin and then its argument prototype would still apply.  */
20247 #ifdef __cplusplus
20248 extern "C"
20249 #endif
20250 char shl_load ();
20251 /* The GNU C library defines this for functions which it implements
20252     to always fail with ENOSYS.  Some functions are actually named
20253     something starting with __ and the normal name is an alias.  */
20254 #if defined __stub_shl_load || defined __stub___shl_load
20255 choke me
20256 #endif
20257
20258 int
20259 main ()
20260 {
20261 return shl_load ();
20262   ;
20263   return 0;
20264 }
20265 _ACEOF
20266 rm -f conftest.$ac_objext conftest$ac_exeext
20267 if { (ac_try="$ac_link"
20268 case "(($ac_try" in
20269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20270   *) ac_try_echo=$ac_try;;
20271 esac
20272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20273   (eval "$ac_link") 2>conftest.er1
20274   ac_status=$?
20275   grep -v '^ *+' conftest.er1 >conftest.err
20276   rm -f conftest.er1
20277   cat conftest.err >&5
20278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20279   (exit $ac_status); } && {
20280          test -z "$ac_c_werror_flag" ||
20281          test ! -s conftest.err
20282        } && test -s conftest$ac_exeext &&
20283        $as_test_x conftest$ac_exeext; then
20284   ac_cv_func_shl_load=yes
20285 else
20286   echo "$as_me: failed program was:" >&5
20287 sed 's/^/| /' conftest.$ac_ext >&5
20288
20289         ac_cv_func_shl_load=no
20290 fi
20291
20292 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20293       conftest$ac_exeext conftest.$ac_ext
20294 fi
20295 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
20296 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
20297 if test $ac_cv_func_shl_load = yes; then
20298   lt_cv_dlopen="shl_load"
20299 else
20300   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
20301 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
20302 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
20303   echo $ECHO_N "(cached) $ECHO_C" >&6
20304 else
20305   ac_check_lib_save_LIBS=$LIBS
20306 LIBS="-ldld  $LIBS"
20307 cat >conftest.$ac_ext <<_ACEOF
20308 /* confdefs.h.  */
20309 _ACEOF
20310 cat confdefs.h >>conftest.$ac_ext
20311 cat >>conftest.$ac_ext <<_ACEOF
20312 /* end confdefs.h.  */
20313
20314 /* Override any GCC internal prototype to avoid an error.
20315    Use char because int might match the return type of a GCC
20316    builtin and then its argument prototype would still apply.  */
20317 #ifdef __cplusplus
20318 extern "C"
20319 #endif
20320 char shl_load ();
20321 int
20322 main ()
20323 {
20324 return shl_load ();
20325   ;
20326   return 0;
20327 }
20328 _ACEOF
20329 rm -f conftest.$ac_objext conftest$ac_exeext
20330 if { (ac_try="$ac_link"
20331 case "(($ac_try" in
20332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20333   *) ac_try_echo=$ac_try;;
20334 esac
20335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20336   (eval "$ac_link") 2>conftest.er1
20337   ac_status=$?
20338   grep -v '^ *+' conftest.er1 >conftest.err
20339   rm -f conftest.er1
20340   cat conftest.err >&5
20341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20342   (exit $ac_status); } && {
20343          test -z "$ac_c_werror_flag" ||
20344          test ! -s conftest.err
20345        } && test -s conftest$ac_exeext &&
20346        $as_test_x conftest$ac_exeext; then
20347   ac_cv_lib_dld_shl_load=yes
20348 else
20349   echo "$as_me: failed program was:" >&5
20350 sed 's/^/| /' conftest.$ac_ext >&5
20351
20352         ac_cv_lib_dld_shl_load=no
20353 fi
20354
20355 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20356       conftest$ac_exeext conftest.$ac_ext
20357 LIBS=$ac_check_lib_save_LIBS
20358 fi
20359 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
20360 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
20361 if test $ac_cv_lib_dld_shl_load = yes; then
20362   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
20363 else
20364   { echo "$as_me:$LINENO: checking for dlopen" >&5
20365 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
20366 if test "${ac_cv_func_dlopen+set}" = set; then
20367   echo $ECHO_N "(cached) $ECHO_C" >&6
20368 else
20369   cat >conftest.$ac_ext <<_ACEOF
20370 /* confdefs.h.  */
20371 _ACEOF
20372 cat confdefs.h >>conftest.$ac_ext
20373 cat >>conftest.$ac_ext <<_ACEOF
20374 /* end confdefs.h.  */
20375 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
20376    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20377 #define dlopen innocuous_dlopen
20378
20379 /* System header to define __stub macros and hopefully few prototypes,
20380     which can conflict with char dlopen (); below.
20381     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20382     <limits.h> exists even on freestanding compilers.  */
20383
20384 #ifdef __STDC__
20385 # include <limits.h>
20386 #else
20387 # include <assert.h>
20388 #endif
20389
20390 #undef dlopen
20391
20392 /* Override any GCC internal prototype to avoid an error.
20393    Use char because int might match the return type of a GCC
20394    builtin and then its argument prototype would still apply.  */
20395 #ifdef __cplusplus
20396 extern "C"
20397 #endif
20398 char dlopen ();
20399 /* The GNU C library defines this for functions which it implements
20400     to always fail with ENOSYS.  Some functions are actually named
20401     something starting with __ and the normal name is an alias.  */
20402 #if defined __stub_dlopen || defined __stub___dlopen
20403 choke me
20404 #endif
20405
20406 int
20407 main ()
20408 {
20409 return dlopen ();
20410   ;
20411   return 0;
20412 }
20413 _ACEOF
20414 rm -f conftest.$ac_objext conftest$ac_exeext
20415 if { (ac_try="$ac_link"
20416 case "(($ac_try" in
20417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20418   *) ac_try_echo=$ac_try;;
20419 esac
20420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20421   (eval "$ac_link") 2>conftest.er1
20422   ac_status=$?
20423   grep -v '^ *+' conftest.er1 >conftest.err
20424   rm -f conftest.er1
20425   cat conftest.err >&5
20426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20427   (exit $ac_status); } && {
20428          test -z "$ac_c_werror_flag" ||
20429          test ! -s conftest.err
20430        } && test -s conftest$ac_exeext &&
20431        $as_test_x conftest$ac_exeext; then
20432   ac_cv_func_dlopen=yes
20433 else
20434   echo "$as_me: failed program was:" >&5
20435 sed 's/^/| /' conftest.$ac_ext >&5
20436
20437         ac_cv_func_dlopen=no
20438 fi
20439
20440 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20441       conftest$ac_exeext conftest.$ac_ext
20442 fi
20443 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
20444 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
20445 if test $ac_cv_func_dlopen = yes; then
20446   lt_cv_dlopen="dlopen"
20447 else
20448   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
20449 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
20450 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
20451   echo $ECHO_N "(cached) $ECHO_C" >&6
20452 else
20453   ac_check_lib_save_LIBS=$LIBS
20454 LIBS="-ldl  $LIBS"
20455 cat >conftest.$ac_ext <<_ACEOF
20456 /* confdefs.h.  */
20457 _ACEOF
20458 cat confdefs.h >>conftest.$ac_ext
20459 cat >>conftest.$ac_ext <<_ACEOF
20460 /* end confdefs.h.  */
20461
20462 /* Override any GCC internal prototype to avoid an error.
20463    Use char because int might match the return type of a GCC
20464    builtin and then its argument prototype would still apply.  */
20465 #ifdef __cplusplus
20466 extern "C"
20467 #endif
20468 char dlopen ();
20469 int
20470 main ()
20471 {
20472 return dlopen ();
20473   ;
20474   return 0;
20475 }
20476 _ACEOF
20477 rm -f conftest.$ac_objext conftest$ac_exeext
20478 if { (ac_try="$ac_link"
20479 case "(($ac_try" in
20480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20481   *) ac_try_echo=$ac_try;;
20482 esac
20483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20484   (eval "$ac_link") 2>conftest.er1
20485   ac_status=$?
20486   grep -v '^ *+' conftest.er1 >conftest.err
20487   rm -f conftest.er1
20488   cat conftest.err >&5
20489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20490   (exit $ac_status); } && {
20491          test -z "$ac_c_werror_flag" ||
20492          test ! -s conftest.err
20493        } && test -s conftest$ac_exeext &&
20494        $as_test_x conftest$ac_exeext; then
20495   ac_cv_lib_dl_dlopen=yes
20496 else
20497   echo "$as_me: failed program was:" >&5
20498 sed 's/^/| /' conftest.$ac_ext >&5
20499
20500         ac_cv_lib_dl_dlopen=no
20501 fi
20502
20503 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20504       conftest$ac_exeext conftest.$ac_ext
20505 LIBS=$ac_check_lib_save_LIBS
20506 fi
20507 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
20508 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
20509 if test $ac_cv_lib_dl_dlopen = yes; then
20510   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
20511 else
20512   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
20513 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
20514 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
20515   echo $ECHO_N "(cached) $ECHO_C" >&6
20516 else
20517   ac_check_lib_save_LIBS=$LIBS
20518 LIBS="-lsvld  $LIBS"
20519 cat >conftest.$ac_ext <<_ACEOF
20520 /* confdefs.h.  */
20521 _ACEOF
20522 cat confdefs.h >>conftest.$ac_ext
20523 cat >>conftest.$ac_ext <<_ACEOF
20524 /* end confdefs.h.  */
20525
20526 /* Override any GCC internal prototype to avoid an error.
20527    Use char because int might match the return type of a GCC
20528    builtin and then its argument prototype would still apply.  */
20529 #ifdef __cplusplus
20530 extern "C"
20531 #endif
20532 char dlopen ();
20533 int
20534 main ()
20535 {
20536 return dlopen ();
20537   ;
20538   return 0;
20539 }
20540 _ACEOF
20541 rm -f conftest.$ac_objext conftest$ac_exeext
20542 if { (ac_try="$ac_link"
20543 case "(($ac_try" in
20544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20545   *) ac_try_echo=$ac_try;;
20546 esac
20547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20548   (eval "$ac_link") 2>conftest.er1
20549   ac_status=$?
20550   grep -v '^ *+' conftest.er1 >conftest.err
20551   rm -f conftest.er1
20552   cat conftest.err >&5
20553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20554   (exit $ac_status); } && {
20555          test -z "$ac_c_werror_flag" ||
20556          test ! -s conftest.err
20557        } && test -s conftest$ac_exeext &&
20558        $as_test_x conftest$ac_exeext; then
20559   ac_cv_lib_svld_dlopen=yes
20560 else
20561   echo "$as_me: failed program was:" >&5
20562 sed 's/^/| /' conftest.$ac_ext >&5
20563
20564         ac_cv_lib_svld_dlopen=no
20565 fi
20566
20567 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20568       conftest$ac_exeext conftest.$ac_ext
20569 LIBS=$ac_check_lib_save_LIBS
20570 fi
20571 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
20572 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
20573 if test $ac_cv_lib_svld_dlopen = yes; then
20574   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
20575 else
20576   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
20577 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
20578 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
20579   echo $ECHO_N "(cached) $ECHO_C" >&6
20580 else
20581   ac_check_lib_save_LIBS=$LIBS
20582 LIBS="-ldld  $LIBS"
20583 cat >conftest.$ac_ext <<_ACEOF
20584 /* confdefs.h.  */
20585 _ACEOF
20586 cat confdefs.h >>conftest.$ac_ext
20587 cat >>conftest.$ac_ext <<_ACEOF
20588 /* end confdefs.h.  */
20589
20590 /* Override any GCC internal prototype to avoid an error.
20591    Use char because int might match the return type of a GCC
20592    builtin and then its argument prototype would still apply.  */
20593 #ifdef __cplusplus
20594 extern "C"
20595 #endif
20596 char dld_link ();
20597 int
20598 main ()
20599 {
20600 return dld_link ();
20601   ;
20602   return 0;
20603 }
20604 _ACEOF
20605 rm -f conftest.$ac_objext conftest$ac_exeext
20606 if { (ac_try="$ac_link"
20607 case "(($ac_try" in
20608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20609   *) ac_try_echo=$ac_try;;
20610 esac
20611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20612   (eval "$ac_link") 2>conftest.er1
20613   ac_status=$?
20614   grep -v '^ *+' conftest.er1 >conftest.err
20615   rm -f conftest.er1
20616   cat conftest.err >&5
20617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20618   (exit $ac_status); } && {
20619          test -z "$ac_c_werror_flag" ||
20620          test ! -s conftest.err
20621        } && test -s conftest$ac_exeext &&
20622        $as_test_x conftest$ac_exeext; then
20623   ac_cv_lib_dld_dld_link=yes
20624 else
20625   echo "$as_me: failed program was:" >&5
20626 sed 's/^/| /' conftest.$ac_ext >&5
20627
20628         ac_cv_lib_dld_dld_link=no
20629 fi
20630
20631 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20632       conftest$ac_exeext conftest.$ac_ext
20633 LIBS=$ac_check_lib_save_LIBS
20634 fi
20635 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
20636 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
20637 if test $ac_cv_lib_dld_dld_link = yes; then
20638   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
20639 fi
20640
20641
20642 fi
20643
20644
20645 fi
20646
20647
20648 fi
20649
20650
20651 fi
20652
20653
20654 fi
20655
20656     ;;
20657   esac
20658
20659   if test "x$lt_cv_dlopen" != xno; then
20660     enable_dlopen=yes
20661   else
20662     enable_dlopen=no
20663   fi
20664
20665   case $lt_cv_dlopen in
20666   dlopen)
20667     save_CPPFLAGS="$CPPFLAGS"
20668     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
20669
20670     save_LDFLAGS="$LDFLAGS"
20671     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
20672
20673     save_LIBS="$LIBS"
20674     LIBS="$lt_cv_dlopen_libs $LIBS"
20675
20676     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
20677 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
20678 if test "${lt_cv_dlopen_self+set}" = set; then
20679   echo $ECHO_N "(cached) $ECHO_C" >&6
20680 else
20681           if test "$cross_compiling" = yes; then :
20682   lt_cv_dlopen_self=cross
20683 else
20684   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20685   lt_status=$lt_dlunknown
20686   cat > conftest.$ac_ext <<EOF
20687 #line 20687 "configure"
20688 #include "confdefs.h"
20689
20690 #if HAVE_DLFCN_H
20691 #include <dlfcn.h>
20692 #endif
20693
20694 #include <stdio.h>
20695
20696 #ifdef RTLD_GLOBAL
20697 #  define LT_DLGLOBAL           RTLD_GLOBAL
20698 #else
20699 #  ifdef DL_GLOBAL
20700 #    define LT_DLGLOBAL         DL_GLOBAL
20701 #  else
20702 #    define LT_DLGLOBAL         0
20703 #  endif
20704 #endif
20705
20706 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20707    find out it does not work in some platform. */
20708 #ifndef LT_DLLAZY_OR_NOW
20709 #  ifdef RTLD_LAZY
20710 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
20711 #  else
20712 #    ifdef DL_LAZY
20713 #      define LT_DLLAZY_OR_NOW          DL_LAZY
20714 #    else
20715 #      ifdef RTLD_NOW
20716 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
20717 #      else
20718 #        ifdef DL_NOW
20719 #          define LT_DLLAZY_OR_NOW      DL_NOW
20720 #        else
20721 #          define LT_DLLAZY_OR_NOW      0
20722 #        endif
20723 #      endif
20724 #    endif
20725 #  endif
20726 #endif
20727
20728 #ifdef __cplusplus
20729 extern "C" void exit (int);
20730 #endif
20731
20732 void fnord() { int i=42;}
20733 int main ()
20734 {
20735   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20736   int status = $lt_dlunknown;
20737
20738   if (self)
20739     {
20740       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
20741       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20742       /* dlclose (self); */
20743     }
20744
20745     exit (status);
20746 }
20747 EOF
20748   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20749   (eval $ac_link) 2>&5
20750   ac_status=$?
20751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20752   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
20753     (./conftest; exit; ) >&5 2>/dev/null
20754     lt_status=$?
20755     case x$lt_status in
20756       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
20757       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
20758       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
20759     esac
20760   else :
20761     # compilation failed
20762     lt_cv_dlopen_self=no
20763   fi
20764 fi
20765 rm -fr conftest*
20766
20767
20768 fi
20769 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
20770 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
20771
20772     if test "x$lt_cv_dlopen_self" = xyes; then
20773       LDFLAGS="$LDFLAGS $link_static_flag"
20774       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
20775 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
20776 if test "${lt_cv_dlopen_self_static+set}" = set; then
20777   echo $ECHO_N "(cached) $ECHO_C" >&6
20778 else
20779           if test "$cross_compiling" = yes; then :
20780   lt_cv_dlopen_self_static=cross
20781 else
20782   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20783   lt_status=$lt_dlunknown
20784   cat > conftest.$ac_ext <<EOF
20785 #line 20785 "configure"
20786 #include "confdefs.h"
20787
20788 #if HAVE_DLFCN_H
20789 #include <dlfcn.h>
20790 #endif
20791
20792 #include <stdio.h>
20793
20794 #ifdef RTLD_GLOBAL
20795 #  define LT_DLGLOBAL           RTLD_GLOBAL
20796 #else
20797 #  ifdef DL_GLOBAL
20798 #    define LT_DLGLOBAL         DL_GLOBAL
20799 #  else
20800 #    define LT_DLGLOBAL         0
20801 #  endif
20802 #endif
20803
20804 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20805    find out it does not work in some platform. */
20806 #ifndef LT_DLLAZY_OR_NOW
20807 #  ifdef RTLD_LAZY
20808 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
20809 #  else
20810 #    ifdef DL_LAZY
20811 #      define LT_DLLAZY_OR_NOW          DL_LAZY
20812 #    else
20813 #      ifdef RTLD_NOW
20814 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
20815 #      else
20816 #        ifdef DL_NOW
20817 #          define LT_DLLAZY_OR_NOW      DL_NOW
20818 #        else
20819 #          define LT_DLLAZY_OR_NOW      0
20820 #        endif
20821 #      endif
20822 #    endif
20823 #  endif
20824 #endif
20825
20826 #ifdef __cplusplus
20827 extern "C" void exit (int);
20828 #endif
20829
20830 void fnord() { int i=42;}
20831 int main ()
20832 {
20833   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20834   int status = $lt_dlunknown;
20835
20836   if (self)
20837     {
20838       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
20839       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20840       /* dlclose (self); */
20841     }
20842
20843     exit (status);
20844 }
20845 EOF
20846   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20847   (eval $ac_link) 2>&5
20848   ac_status=$?
20849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20850   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
20851     (./conftest; exit; ) >&5 2>/dev/null
20852     lt_status=$?
20853     case x$lt_status in
20854       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
20855       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
20856       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
20857     esac
20858   else :
20859     # compilation failed
20860     lt_cv_dlopen_self_static=no
20861   fi
20862 fi
20863 rm -fr conftest*
20864
20865
20866 fi
20867 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
20868 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
20869     fi
20870
20871     CPPFLAGS="$save_CPPFLAGS"
20872     LDFLAGS="$save_LDFLAGS"
20873     LIBS="$save_LIBS"
20874     ;;
20875   esac
20876
20877   case $lt_cv_dlopen_self in
20878   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
20879   *) enable_dlopen_self=unknown ;;
20880   esac
20881
20882   case $lt_cv_dlopen_self_static in
20883   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
20884   *) enable_dlopen_self_static=unknown ;;
20885   esac
20886 fi
20887
20888
20889 # The else clause should only fire when bootstrapping the
20890 # libtool distribution, otherwise you forgot to ship ltmain.sh
20891 # with your package, and you will get complaints that there are
20892 # no rules to generate ltmain.sh.
20893 if test -f "$ltmain"; then
20894   # See if we are running on zsh, and set the options which allow our commands through
20895   # without removal of \ escapes.
20896   if test -n "${ZSH_VERSION+set}" ; then
20897     setopt NO_GLOB_SUBST
20898   fi
20899   # Now quote all the things that may contain metacharacters while being
20900   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20901   # variables and quote the copies for generation of the libtool script.
20902   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20903     SED SHELL STRIP \
20904     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20905     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20906     deplibs_check_method reload_flag reload_cmds need_locks \
20907     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20908     lt_cv_sys_global_symbol_to_c_name_address \
20909     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20910     old_postinstall_cmds old_postuninstall_cmds \
20911     compiler_GCJ \
20912     CC_GCJ \
20913     LD_GCJ \
20914     lt_prog_compiler_wl_GCJ \
20915     lt_prog_compiler_pic_GCJ \
20916     lt_prog_compiler_static_GCJ \
20917     lt_prog_compiler_no_builtin_flag_GCJ \
20918     export_dynamic_flag_spec_GCJ \
20919     thread_safe_flag_spec_GCJ \
20920     whole_archive_flag_spec_GCJ \
20921     enable_shared_with_static_runtimes_GCJ \
20922     old_archive_cmds_GCJ \
20923     old_archive_from_new_cmds_GCJ \
20924     predep_objects_GCJ \
20925     postdep_objects_GCJ \
20926     predeps_GCJ \
20927     postdeps_GCJ \
20928     compiler_lib_search_path_GCJ \
20929     archive_cmds_GCJ \
20930     archive_expsym_cmds_GCJ \
20931     postinstall_cmds_GCJ \
20932     postuninstall_cmds_GCJ \
20933     old_archive_from_expsyms_cmds_GCJ \
20934     allow_undefined_flag_GCJ \
20935     no_undefined_flag_GCJ \
20936     export_symbols_cmds_GCJ \
20937     hardcode_libdir_flag_spec_GCJ \
20938     hardcode_libdir_flag_spec_ld_GCJ \
20939     hardcode_libdir_separator_GCJ \
20940     hardcode_automatic_GCJ \
20941     module_cmds_GCJ \
20942     module_expsym_cmds_GCJ \
20943     lt_cv_prog_compiler_c_o_GCJ \
20944     exclude_expsyms_GCJ \
20945     include_expsyms_GCJ; do
20946
20947     case $var in
20948     old_archive_cmds_GCJ | \
20949     old_archive_from_new_cmds_GCJ | \
20950     archive_cmds_GCJ | \
20951     archive_expsym_cmds_GCJ | \
20952     module_cmds_GCJ | \
20953     module_expsym_cmds_GCJ | \
20954     old_archive_from_expsyms_cmds_GCJ | \
20955     export_symbols_cmds_GCJ | \
20956     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20957     postinstall_cmds | postuninstall_cmds | \
20958     old_postinstall_cmds | old_postuninstall_cmds | \
20959     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20960       # Double-quote double-evaled strings.
20961       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20962       ;;
20963     *)
20964       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20965       ;;
20966     esac
20967   done
20968
20969   case $lt_echo in
20970   *'\$0 --fallback-echo"')
20971     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20972     ;;
20973   esac
20974
20975 cfgfile="$ofile"
20976
20977   cat <<__EOF__ >> "$cfgfile"
20978 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20979
20980 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20981
20982 # Shell to use when invoking shell scripts.
20983 SHELL=$lt_SHELL
20984
20985 # Whether or not to build shared libraries.
20986 build_libtool_libs=$enable_shared
20987
20988 # Whether or not to build static libraries.
20989 build_old_libs=$enable_static
20990
20991 # Whether or not to add -lc for building shared libraries.
20992 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
20993
20994 # Whether or not to disallow shared libs when runtime libs are static
20995 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
20996
20997 # Whether or not to optimize for fast installation.
20998 fast_install=$enable_fast_install
20999
21000 # The host system.
21001 host_alias=$host_alias
21002 host=$host
21003 host_os=$host_os
21004
21005 # The build system.
21006 build_alias=$build_alias
21007 build=$build
21008 build_os=$build_os
21009
21010 # An echo program that does not interpret backslashes.
21011 echo=$lt_echo
21012
21013 # The archiver.
21014 AR=$lt_AR
21015 AR_FLAGS=$lt_AR_FLAGS
21016
21017 # A C compiler.
21018 LTCC=$lt_LTCC
21019
21020 # A language-specific compiler.
21021 CC=$lt_compiler_GCJ
21022
21023 # Is the compiler the GNU C compiler?
21024 with_gcc=$GCC_GCJ
21025
21026 # An ERE matcher.
21027 EGREP=$lt_EGREP
21028
21029 # The linker used to build libraries.
21030 LD=$lt_LD_GCJ
21031
21032 # Whether we need hard or soft links.
21033 LN_S=$lt_LN_S
21034
21035 # A BSD-compatible nm program.
21036 NM=$lt_NM
21037
21038 # A symbol stripping program
21039 STRIP=$lt_STRIP
21040
21041 # Used to examine libraries when file_magic_cmd begins "file"
21042 MAGIC_CMD=$MAGIC_CMD
21043
21044 # Used on cygwin: DLL creation program.
21045 DLLTOOL="$DLLTOOL"
21046
21047 # Used on cygwin: object dumper.
21048 OBJDUMP="$OBJDUMP"
21049
21050 # Used on cygwin: assembler.
21051 AS="$AS"
21052
21053 # The name of the directory that contains temporary libtool files.
21054 objdir=$objdir
21055
21056 # How to create reloadable object files.
21057 reload_flag=$lt_reload_flag
21058 reload_cmds=$lt_reload_cmds
21059
21060 # How to pass a linker flag through the compiler.
21061 wl=$lt_lt_prog_compiler_wl_GCJ
21062
21063 # Object file suffix (normally "o").
21064 objext="$ac_objext"
21065
21066 # Old archive suffix (normally "a").
21067 libext="$libext"
21068
21069 # Shared library suffix (normally ".so").
21070 shrext_cmds='$shrext_cmds'
21071
21072 # Executable file suffix (normally "").
21073 exeext="$exeext"
21074
21075 # Additional compiler flags for building library objects.
21076 pic_flag=$lt_lt_prog_compiler_pic_GCJ
21077 pic_mode=$pic_mode
21078
21079 # What is the maximum length of a command?
21080 max_cmd_len=$lt_cv_sys_max_cmd_len
21081
21082 # Does compiler simultaneously support -c and -o options?
21083 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
21084
21085 # Must we lock files when doing compilation?
21086 need_locks=$lt_need_locks
21087
21088 # Do we need the lib prefix for modules?
21089 need_lib_prefix=$need_lib_prefix
21090
21091 # Do we need a version for libraries?
21092 need_version=$need_version
21093
21094 # Whether dlopen is supported.
21095 dlopen_support=$enable_dlopen
21096
21097 # Whether dlopen of programs is supported.
21098 dlopen_self=$enable_dlopen_self
21099
21100 # Whether dlopen of statically linked programs is supported.
21101 dlopen_self_static=$enable_dlopen_self_static
21102
21103 # Compiler flag to prevent dynamic linking.
21104 link_static_flag=$lt_lt_prog_compiler_static_GCJ
21105
21106 # Compiler flag to turn off builtin functions.
21107 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
21108
21109 # Compiler flag to allow reflexive dlopens.
21110 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
21111
21112 # Compiler flag to generate shared objects directly from archives.
21113 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
21114
21115 # Compiler flag to generate thread-safe objects.
21116 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
21117
21118 # Library versioning type.
21119 version_type=$version_type
21120
21121 # Format of library name prefix.
21122 libname_spec=$lt_libname_spec
21123
21124 # List of archive names.  First name is the real one, the rest are links.
21125 # The last name is the one that the linker finds with -lNAME.
21126 library_names_spec=$lt_library_names_spec
21127
21128 # The coded name of the library, if different from the real name.
21129 soname_spec=$lt_soname_spec
21130
21131 # Commands used to build and install an old-style archive.
21132 RANLIB=$lt_RANLIB
21133 old_archive_cmds=$lt_old_archive_cmds_GCJ
21134 old_postinstall_cmds=$lt_old_postinstall_cmds
21135 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21136
21137 # Create an old-style archive from a shared archive.
21138 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
21139
21140 # Create a temporary old-style archive to link instead of a shared archive.
21141 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
21142
21143 # Commands used to build and install a shared archive.
21144 archive_cmds=$lt_archive_cmds_GCJ
21145 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
21146 postinstall_cmds=$lt_postinstall_cmds
21147 postuninstall_cmds=$lt_postuninstall_cmds
21148
21149 # Commands used to build a loadable module (assumed same as above if empty)
21150 module_cmds=$lt_module_cmds_GCJ
21151 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
21152
21153 # Commands to strip libraries.
21154 old_striplib=$lt_old_striplib
21155 striplib=$lt_striplib
21156
21157 # Dependencies to place before the objects being linked to create a
21158 # shared library.
21159 predep_objects=$lt_predep_objects_GCJ
21160
21161 # Dependencies to place after the objects being linked to create a
21162 # shared library.
21163 postdep_objects=$lt_postdep_objects_GCJ
21164
21165 # Dependencies to place before the objects being linked to create a
21166 # shared library.
21167 predeps=$lt_predeps_GCJ
21168
21169 # Dependencies to place after the objects being linked to create a
21170 # shared library.
21171 postdeps=$lt_postdeps_GCJ
21172
21173 # The library search path used internally by the compiler when linking
21174 # a shared library.
21175 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
21176
21177 # Method to check whether dependent libraries are shared objects.
21178 deplibs_check_method=$lt_deplibs_check_method
21179
21180 # Command to use when deplibs_check_method == file_magic.
21181 file_magic_cmd=$lt_file_magic_cmd
21182
21183 # Flag that allows shared libraries with undefined symbols to be built.
21184 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
21185
21186 # Flag that forces no undefined symbols.
21187 no_undefined_flag=$lt_no_undefined_flag_GCJ
21188
21189 # Commands used to finish a libtool library installation in a directory.
21190 finish_cmds=$lt_finish_cmds
21191
21192 # Same as above, but a single script fragment to be evaled but not shown.
21193 finish_eval=$lt_finish_eval
21194
21195 # Take the output of nm and produce a listing of raw symbols and C names.
21196 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21197
21198 # Transform the output of nm in a proper C declaration
21199 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21200
21201 # Transform the output of nm in a C name address pair
21202 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21203
21204 # This is the shared library runtime path variable.
21205 runpath_var=$runpath_var
21206
21207 # This is the shared library path variable.
21208 shlibpath_var=$shlibpath_var
21209
21210 # Is shlibpath searched before the hard-coded library search path?
21211 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21212
21213 # How to hardcode a shared library path into an executable.
21214 hardcode_action=$hardcode_action_GCJ
21215
21216 # Whether we should hardcode library paths into libraries.
21217 hardcode_into_libs=$hardcode_into_libs
21218
21219 # Flag to hardcode \$libdir into a binary during linking.
21220 # This must work even if \$libdir does not exist.
21221 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
21222
21223 # If ld is used when linking, flag to hardcode \$libdir into
21224 # a binary during linking. This must work even if \$libdir does
21225 # not exist.
21226 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
21227
21228 # Whether we need a single -rpath flag with a separated argument.
21229 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
21230
21231 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21232 # resulting binary.
21233 hardcode_direct=$hardcode_direct_GCJ
21234
21235 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21236 # resulting binary.
21237 hardcode_minus_L=$hardcode_minus_L_GCJ
21238
21239 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21240 # the resulting binary.
21241 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
21242
21243 # Set to yes if building a shared library automatically hardcodes DIR into the library
21244 # and all subsequent libraries and executables linked against it.
21245 hardcode_automatic=$hardcode_automatic_GCJ
21246
21247 # Variables whose values should be saved in libtool wrapper scripts and
21248 # restored at relink time.
21249 variables_saved_for_relink="$variables_saved_for_relink"
21250
21251 # Whether libtool must link a program against all its dependency libraries.
21252 link_all_deplibs=$link_all_deplibs_GCJ
21253
21254 # Compile-time system search path for libraries
21255 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21256
21257 # Run-time system search path for libraries
21258 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21259
21260 # Fix the shell variable \$srcfile for the compiler.
21261 fix_srcfile_path="$fix_srcfile_path_GCJ"
21262
21263 # Set to yes if exported symbols are required.
21264 always_export_symbols=$always_export_symbols_GCJ
21265
21266 # The commands to list exported symbols.
21267 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
21268
21269 # The commands to extract the exported symbol list from a shared archive.
21270 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21271
21272 # Symbols that should not be listed in the preloaded symbols.
21273 exclude_expsyms=$lt_exclude_expsyms_GCJ
21274
21275 # Symbols that must always be exported.
21276 include_expsyms=$lt_include_expsyms_GCJ
21277
21278 # ### END LIBTOOL TAG CONFIG: $tagname
21279
21280 __EOF__
21281
21282
21283 else
21284   # If there is no Makefile yet, we rely on a make rule to execute
21285   # `config.status --recheck' to rerun these tests and create the
21286   # libtool script then.
21287   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21288   if test -f "$ltmain_in"; then
21289     test -f Makefile && make "$ltmain"
21290   fi
21291 fi
21292
21293
21294 ac_ext=c
21295 ac_cpp='$CPP $CPPFLAGS'
21296 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21297 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21298 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21299
21300 CC="$lt_save_CC"
21301
21302         else
21303           tagname=""
21304         fi
21305         ;;
21306
21307       RC)
21308
21309
21310 # Source file extension for RC test sources.
21311 ac_ext=rc
21312
21313 # Object file extension for compiled RC test sources.
21314 objext=o
21315 objext_RC=$objext
21316
21317 # Code to be used in simple compile tests
21318 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
21319
21320 # Code to be used in simple link tests
21321 lt_simple_link_test_code="$lt_simple_compile_test_code"
21322
21323 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21324
21325 # If no C compiler was specified, use CC.
21326 LTCC=${LTCC-"$CC"}
21327
21328 # Allow CC to be a program name with arguments.
21329 compiler=$CC
21330
21331
21332 # save warnings/boilerplate of simple test code
21333 ac_outfile=conftest.$ac_objext
21334 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21335 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
21336 _lt_compiler_boilerplate=`cat conftest.err`
21337 $rm conftest*
21338
21339 ac_outfile=conftest.$ac_objext
21340 printf "$lt_simple_link_test_code" >conftest.$ac_ext
21341 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
21342 _lt_linker_boilerplate=`cat conftest.err`
21343 $rm conftest*
21344
21345
21346 # Allow CC to be a program name with arguments.
21347 lt_save_CC="$CC"
21348 CC=${RC-"windres"}
21349 compiler=$CC
21350 compiler_RC=$CC
21351 for cc_temp in $compiler""; do
21352   case $cc_temp in
21353     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21354     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21355     \-*) ;;
21356     *) break;;
21357   esac
21358 done
21359 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21360
21361 lt_cv_prog_compiler_c_o_RC=yes
21362
21363 # The else clause should only fire when bootstrapping the
21364 # libtool distribution, otherwise you forgot to ship ltmain.sh
21365 # with your package, and you will get complaints that there are
21366 # no rules to generate ltmain.sh.
21367 if test -f "$ltmain"; then
21368   # See if we are running on zsh, and set the options which allow our commands through
21369   # without removal of \ escapes.
21370   if test -n "${ZSH_VERSION+set}" ; then
21371     setopt NO_GLOB_SUBST
21372   fi
21373   # Now quote all the things that may contain metacharacters while being
21374   # careful not to overquote the AC_SUBSTed values.  We take copies of the
21375   # variables and quote the copies for generation of the libtool script.
21376   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
21377     SED SHELL STRIP \
21378     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21379     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21380     deplibs_check_method reload_flag reload_cmds need_locks \
21381     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
21382     lt_cv_sys_global_symbol_to_c_name_address \
21383     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
21384     old_postinstall_cmds old_postuninstall_cmds \
21385     compiler_RC \
21386     CC_RC \
21387     LD_RC \
21388     lt_prog_compiler_wl_RC \
21389     lt_prog_compiler_pic_RC \
21390     lt_prog_compiler_static_RC \
21391     lt_prog_compiler_no_builtin_flag_RC \
21392     export_dynamic_flag_spec_RC \
21393     thread_safe_flag_spec_RC \
21394     whole_archive_flag_spec_RC \
21395     enable_shared_with_static_runtimes_RC \
21396     old_archive_cmds_RC \
21397     old_archive_from_new_cmds_RC \
21398     predep_objects_RC \
21399     postdep_objects_RC \
21400     predeps_RC \
21401     postdeps_RC \
21402     compiler_lib_search_path_RC \
21403     archive_cmds_RC \
21404     archive_expsym_cmds_RC \
21405     postinstall_cmds_RC \
21406     postuninstall_cmds_RC \
21407     old_archive_from_expsyms_cmds_RC \
21408     allow_undefined_flag_RC \
21409     no_undefined_flag_RC \
21410     export_symbols_cmds_RC \
21411     hardcode_libdir_flag_spec_RC \
21412     hardcode_libdir_flag_spec_ld_RC \
21413     hardcode_libdir_separator_RC \
21414     hardcode_automatic_RC \
21415     module_cmds_RC \
21416     module_expsym_cmds_RC \
21417     lt_cv_prog_compiler_c_o_RC \
21418     exclude_expsyms_RC \
21419     include_expsyms_RC; do
21420
21421     case $var in
21422     old_archive_cmds_RC | \
21423     old_archive_from_new_cmds_RC | \
21424     archive_cmds_RC | \
21425     archive_expsym_cmds_RC | \
21426     module_cmds_RC | \
21427     module_expsym_cmds_RC | \
21428     old_archive_from_expsyms_cmds_RC | \
21429     export_symbols_cmds_RC | \
21430     extract_expsyms_cmds | reload_cmds | finish_cmds | \
21431     postinstall_cmds | postuninstall_cmds | \
21432     old_postinstall_cmds | old_postuninstall_cmds | \
21433     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21434       # Double-quote double-evaled strings.
21435       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21436       ;;
21437     *)
21438       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21439       ;;
21440     esac
21441   done
21442
21443   case $lt_echo in
21444   *'\$0 --fallback-echo"')
21445     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21446     ;;
21447   esac
21448
21449 cfgfile="$ofile"
21450
21451   cat <<__EOF__ >> "$cfgfile"
21452 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
21453
21454 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21455
21456 # Shell to use when invoking shell scripts.
21457 SHELL=$lt_SHELL
21458
21459 # Whether or not to build shared libraries.
21460 build_libtool_libs=$enable_shared
21461
21462 # Whether or not to build static libraries.
21463 build_old_libs=$enable_static
21464
21465 # Whether or not to add -lc for building shared libraries.
21466 build_libtool_need_lc=$archive_cmds_need_lc_RC
21467
21468 # Whether or not to disallow shared libs when runtime libs are static
21469 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
21470
21471 # Whether or not to optimize for fast installation.
21472 fast_install=$enable_fast_install
21473
21474 # The host system.
21475 host_alias=$host_alias
21476 host=$host
21477 host_os=$host_os
21478
21479 # The build system.
21480 build_alias=$build_alias
21481 build=$build
21482 build_os=$build_os
21483
21484 # An echo program that does not interpret backslashes.
21485 echo=$lt_echo
21486
21487 # The archiver.
21488 AR=$lt_AR
21489 AR_FLAGS=$lt_AR_FLAGS
21490
21491 # A C compiler.
21492 LTCC=$lt_LTCC
21493
21494 # A language-specific compiler.
21495 CC=$lt_compiler_RC
21496
21497 # Is the compiler the GNU C compiler?
21498 with_gcc=$GCC_RC
21499
21500 # An ERE matcher.
21501 EGREP=$lt_EGREP
21502
21503 # The linker used to build libraries.
21504 LD=$lt_LD_RC
21505
21506 # Whether we need hard or soft links.
21507 LN_S=$lt_LN_S
21508
21509 # A BSD-compatible nm program.
21510 NM=$lt_NM
21511
21512 # A symbol stripping program
21513 STRIP=$lt_STRIP
21514
21515 # Used to examine libraries when file_magic_cmd begins "file"
21516 MAGIC_CMD=$MAGIC_CMD
21517
21518 # Used on cygwin: DLL creation program.
21519 DLLTOOL="$DLLTOOL"
21520
21521 # Used on cygwin: object dumper.
21522 OBJDUMP="$OBJDUMP"
21523
21524 # Used on cygwin: assembler.
21525 AS="$AS"
21526
21527 # The name of the directory that contains temporary libtool files.
21528 objdir=$objdir
21529
21530 # How to create reloadable object files.
21531 reload_flag=$lt_reload_flag
21532 reload_cmds=$lt_reload_cmds
21533
21534 # How to pass a linker flag through the compiler.
21535 wl=$lt_lt_prog_compiler_wl_RC
21536
21537 # Object file suffix (normally "o").
21538 objext="$ac_objext"
21539
21540 # Old archive suffix (normally "a").
21541 libext="$libext"
21542
21543 # Shared library suffix (normally ".so").
21544 shrext_cmds='$shrext_cmds'
21545
21546 # Executable file suffix (normally "").
21547 exeext="$exeext"
21548
21549 # Additional compiler flags for building library objects.
21550 pic_flag=$lt_lt_prog_compiler_pic_RC
21551 pic_mode=$pic_mode
21552
21553 # What is the maximum length of a command?
21554 max_cmd_len=$lt_cv_sys_max_cmd_len
21555
21556 # Does compiler simultaneously support -c and -o options?
21557 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
21558
21559 # Must we lock files when doing compilation?
21560 need_locks=$lt_need_locks
21561
21562 # Do we need the lib prefix for modules?
21563 need_lib_prefix=$need_lib_prefix
21564
21565 # Do we need a version for libraries?
21566 need_version=$need_version
21567
21568 # Whether dlopen is supported.
21569 dlopen_support=$enable_dlopen
21570
21571 # Whether dlopen of programs is supported.
21572 dlopen_self=$enable_dlopen_self
21573
21574 # Whether dlopen of statically linked programs is supported.
21575 dlopen_self_static=$enable_dlopen_self_static
21576
21577 # Compiler flag to prevent dynamic linking.
21578 link_static_flag=$lt_lt_prog_compiler_static_RC
21579
21580 # Compiler flag to turn off builtin functions.
21581 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
21582
21583 # Compiler flag to allow reflexive dlopens.
21584 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
21585
21586 # Compiler flag to generate shared objects directly from archives.
21587 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
21588
21589 # Compiler flag to generate thread-safe objects.
21590 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
21591
21592 # Library versioning type.
21593 version_type=$version_type
21594
21595 # Format of library name prefix.
21596 libname_spec=$lt_libname_spec
21597
21598 # List of archive names.  First name is the real one, the rest are links.
21599 # The last name is the one that the linker finds with -lNAME.
21600 library_names_spec=$lt_library_names_spec
21601
21602 # The coded name of the library, if different from the real name.
21603 soname_spec=$lt_soname_spec
21604
21605 # Commands used to build and install an old-style archive.
21606 RANLIB=$lt_RANLIB
21607 old_archive_cmds=$lt_old_archive_cmds_RC
21608 old_postinstall_cmds=$lt_old_postinstall_cmds
21609 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21610
21611 # Create an old-style archive from a shared archive.
21612 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
21613
21614 # Create a temporary old-style archive to link instead of a shared archive.
21615 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
21616
21617 # Commands used to build and install a shared archive.
21618 archive_cmds=$lt_archive_cmds_RC
21619 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
21620 postinstall_cmds=$lt_postinstall_cmds
21621 postuninstall_cmds=$lt_postuninstall_cmds
21622
21623 # Commands used to build a loadable module (assumed same as above if empty)
21624 module_cmds=$lt_module_cmds_RC
21625 module_expsym_cmds=$lt_module_expsym_cmds_RC
21626
21627 # Commands to strip libraries.
21628 old_striplib=$lt_old_striplib
21629 striplib=$lt_striplib
21630
21631 # Dependencies to place before the objects being linked to create a
21632 # shared library.
21633 predep_objects=$lt_predep_objects_RC
21634
21635 # Dependencies to place after the objects being linked to create a
21636 # shared library.
21637 postdep_objects=$lt_postdep_objects_RC
21638
21639 # Dependencies to place before the objects being linked to create a
21640 # shared library.
21641 predeps=$lt_predeps_RC
21642
21643 # Dependencies to place after the objects being linked to create a
21644 # shared library.
21645 postdeps=$lt_postdeps_RC
21646
21647 # The library search path used internally by the compiler when linking
21648 # a shared library.
21649 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
21650
21651 # Method to check whether dependent libraries are shared objects.
21652 deplibs_check_method=$lt_deplibs_check_method
21653
21654 # Command to use when deplibs_check_method == file_magic.
21655 file_magic_cmd=$lt_file_magic_cmd
21656
21657 # Flag that allows shared libraries with undefined symbols to be built.
21658 allow_undefined_flag=$lt_allow_undefined_flag_RC
21659
21660 # Flag that forces no undefined symbols.
21661 no_undefined_flag=$lt_no_undefined_flag_RC
21662
21663 # Commands used to finish a libtool library installation in a directory.
21664 finish_cmds=$lt_finish_cmds
21665
21666 # Same as above, but a single script fragment to be evaled but not shown.
21667 finish_eval=$lt_finish_eval
21668
21669 # Take the output of nm and produce a listing of raw symbols and C names.
21670 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21671
21672 # Transform the output of nm in a proper C declaration
21673 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21674
21675 # Transform the output of nm in a C name address pair
21676 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21677
21678 # This is the shared library runtime path variable.
21679 runpath_var=$runpath_var
21680
21681 # This is the shared library path variable.
21682 shlibpath_var=$shlibpath_var
21683
21684 # Is shlibpath searched before the hard-coded library search path?
21685 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21686
21687 # How to hardcode a shared library path into an executable.
21688 hardcode_action=$hardcode_action_RC
21689
21690 # Whether we should hardcode library paths into libraries.
21691 hardcode_into_libs=$hardcode_into_libs
21692
21693 # Flag to hardcode \$libdir into a binary during linking.
21694 # This must work even if \$libdir does not exist.
21695 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
21696
21697 # If ld is used when linking, flag to hardcode \$libdir into
21698 # a binary during linking. This must work even if \$libdir does
21699 # not exist.
21700 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
21701
21702 # Whether we need a single -rpath flag with a separated argument.
21703 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
21704
21705 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21706 # resulting binary.
21707 hardcode_direct=$hardcode_direct_RC
21708
21709 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21710 # resulting binary.
21711 hardcode_minus_L=$hardcode_minus_L_RC
21712
21713 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21714 # the resulting binary.
21715 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
21716
21717 # Set to yes if building a shared library automatically hardcodes DIR into the library
21718 # and all subsequent libraries and executables linked against it.
21719 hardcode_automatic=$hardcode_automatic_RC
21720
21721 # Variables whose values should be saved in libtool wrapper scripts and
21722 # restored at relink time.
21723 variables_saved_for_relink="$variables_saved_for_relink"
21724
21725 # Whether libtool must link a program against all its dependency libraries.
21726 link_all_deplibs=$link_all_deplibs_RC
21727
21728 # Compile-time system search path for libraries
21729 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21730
21731 # Run-time system search path for libraries
21732 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21733
21734 # Fix the shell variable \$srcfile for the compiler.
21735 fix_srcfile_path="$fix_srcfile_path_RC"
21736
21737 # Set to yes if exported symbols are required.
21738 always_export_symbols=$always_export_symbols_RC
21739
21740 # The commands to list exported symbols.
21741 export_symbols_cmds=$lt_export_symbols_cmds_RC
21742
21743 # The commands to extract the exported symbol list from a shared archive.
21744 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21745
21746 # Symbols that should not be listed in the preloaded symbols.
21747 exclude_expsyms=$lt_exclude_expsyms_RC
21748
21749 # Symbols that must always be exported.
21750 include_expsyms=$lt_include_expsyms_RC
21751
21752 # ### END LIBTOOL TAG CONFIG: $tagname
21753
21754 __EOF__
21755
21756
21757 else
21758   # If there is no Makefile yet, we rely on a make rule to execute
21759   # `config.status --recheck' to rerun these tests and create the
21760   # libtool script then.
21761   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21762   if test -f "$ltmain_in"; then
21763     test -f Makefile && make "$ltmain"
21764   fi
21765 fi
21766
21767
21768 ac_ext=c
21769 ac_cpp='$CPP $CPPFLAGS'
21770 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21771 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21772 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21773
21774 CC="$lt_save_CC"
21775
21776         ;;
21777
21778       *)
21779         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
21780 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
21781    { (exit 1); exit 1; }; }
21782         ;;
21783       esac
21784
21785       # Append the new tag name to the list of available tags.
21786       if test -n "$tagname" ; then
21787       available_tags="$available_tags $tagname"
21788     fi
21789     fi
21790   done
21791   IFS="$lt_save_ifs"
21792
21793   # Now substitute the updated list of available tags.
21794   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
21795     mv "${ofile}T" "$ofile"
21796     chmod +x "$ofile"
21797   else
21798     rm -f "${ofile}T"
21799     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
21800 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
21801    { (exit 1); exit 1; }; }
21802   fi
21803 fi
21804
21805
21806
21807 # This can be used to rebuild libtool when needed
21808 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
21809
21810 # Always use our own libtool.
21811 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
21812
21813 # Prevent multiple expansion
21814
21815
21816
21817
21818
21819
21820
21821
21822
21823
21824
21825
21826
21827
21828
21829
21830
21831
21832
21833
21834 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21835 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
21836 if test "${ac_cv_header_stdc+set}" = set; then
21837   echo $ECHO_N "(cached) $ECHO_C" >&6
21838 else
21839   cat >conftest.$ac_ext <<_ACEOF
21840 /* confdefs.h.  */
21841 _ACEOF
21842 cat confdefs.h >>conftest.$ac_ext
21843 cat >>conftest.$ac_ext <<_ACEOF
21844 /* end confdefs.h.  */
21845 #include <stdlib.h>
21846 #include <stdarg.h>
21847 #include <string.h>
21848 #include <float.h>
21849
21850 int
21851 main ()
21852 {
21853
21854   ;
21855   return 0;
21856 }
21857 _ACEOF
21858 rm -f conftest.$ac_objext
21859 if { (ac_try="$ac_compile"
21860 case "(($ac_try" in
21861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21862   *) ac_try_echo=$ac_try;;
21863 esac
21864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21865   (eval "$ac_compile") 2>conftest.er1
21866   ac_status=$?
21867   grep -v '^ *+' conftest.er1 >conftest.err
21868   rm -f conftest.er1
21869   cat conftest.err >&5
21870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21871   (exit $ac_status); } && {
21872          test -z "$ac_c_werror_flag" ||
21873          test ! -s conftest.err
21874        } && test -s conftest.$ac_objext; then
21875   ac_cv_header_stdc=yes
21876 else
21877   echo "$as_me: failed program was:" >&5
21878 sed 's/^/| /' conftest.$ac_ext >&5
21879
21880         ac_cv_header_stdc=no
21881 fi
21882
21883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21884
21885 if test $ac_cv_header_stdc = yes; then
21886   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21887   cat >conftest.$ac_ext <<_ACEOF
21888 /* confdefs.h.  */
21889 _ACEOF
21890 cat confdefs.h >>conftest.$ac_ext
21891 cat >>conftest.$ac_ext <<_ACEOF
21892 /* end confdefs.h.  */
21893 #include <string.h>
21894
21895 _ACEOF
21896 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21897   $EGREP "memchr" >/dev/null 2>&1; then
21898   :
21899 else
21900   ac_cv_header_stdc=no
21901 fi
21902 rm -f conftest*
21903
21904 fi
21905
21906 if test $ac_cv_header_stdc = yes; then
21907   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21908   cat >conftest.$ac_ext <<_ACEOF
21909 /* confdefs.h.  */
21910 _ACEOF
21911 cat confdefs.h >>conftest.$ac_ext
21912 cat >>conftest.$ac_ext <<_ACEOF
21913 /* end confdefs.h.  */
21914 #include <stdlib.h>
21915
21916 _ACEOF
21917 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21918   $EGREP "free" >/dev/null 2>&1; then
21919   :
21920 else
21921   ac_cv_header_stdc=no
21922 fi
21923 rm -f conftest*
21924
21925 fi
21926
21927 if test $ac_cv_header_stdc = yes; then
21928   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21929   if test "$cross_compiling" = yes; then
21930   :
21931 else
21932   cat >conftest.$ac_ext <<_ACEOF
21933 /* confdefs.h.  */
21934 _ACEOF
21935 cat confdefs.h >>conftest.$ac_ext
21936 cat >>conftest.$ac_ext <<_ACEOF
21937 /* end confdefs.h.  */
21938 #include <ctype.h>
21939 #include <stdlib.h>
21940 #if ((' ' & 0x0FF) == 0x020)
21941 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21942 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21943 #else
21944 # define ISLOWER(c) \
21945                    (('a' <= (c) && (c) <= 'i') \
21946                      || ('j' <= (c) && (c) <= 'r') \
21947                      || ('s' <= (c) && (c) <= 'z'))
21948 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21949 #endif
21950
21951 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21952 int
21953 main ()
21954 {
21955   int i;
21956   for (i = 0; i < 256; i++)
21957     if (XOR (islower (i), ISLOWER (i))
21958         || toupper (i) != TOUPPER (i))
21959       return 2;
21960   return 0;
21961 }
21962 _ACEOF
21963 rm -f conftest$ac_exeext
21964 if { (ac_try="$ac_link"
21965 case "(($ac_try" in
21966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21967   *) ac_try_echo=$ac_try;;
21968 esac
21969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21970   (eval "$ac_link") 2>&5
21971   ac_status=$?
21972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21973   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21974   { (case "(($ac_try" in
21975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21976   *) ac_try_echo=$ac_try;;
21977 esac
21978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21979   (eval "$ac_try") 2>&5
21980   ac_status=$?
21981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21982   (exit $ac_status); }; }; then
21983   :
21984 else
21985   echo "$as_me: program exited with status $ac_status" >&5
21986 echo "$as_me: failed program was:" >&5
21987 sed 's/^/| /' conftest.$ac_ext >&5
21988
21989 ( exit $ac_status )
21990 ac_cv_header_stdc=no
21991 fi
21992 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21993 fi
21994
21995
21996 fi
21997 fi
21998 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21999 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
22000 if test $ac_cv_header_stdc = yes; then
22001
22002 cat >>confdefs.h <<\_ACEOF
22003 #define STDC_HEADERS 1
22004 _ACEOF
22005
22006 fi
22007
22008
22009
22010
22011 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
22012         if test -n "$ac_tool_prefix"; then
22013   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
22014 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
22015 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22016 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22017 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22018   echo $ECHO_N "(cached) $ECHO_C" >&6
22019 else
22020   case $PKG_CONFIG in
22021   [\\/]* | ?:[\\/]*)
22022   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22023   ;;
22024   *)
22025   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22026 for as_dir in $PATH
22027 do
22028   IFS=$as_save_IFS
22029   test -z "$as_dir" && as_dir=.
22030   for ac_exec_ext in '' $ac_executable_extensions; do
22031   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22032     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22033     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22034     break 2
22035   fi
22036 done
22037 done
22038 IFS=$as_save_IFS
22039
22040   ;;
22041 esac
22042 fi
22043 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22044 if test -n "$PKG_CONFIG"; then
22045   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22046 echo "${ECHO_T}$PKG_CONFIG" >&6; }
22047 else
22048   { echo "$as_me:$LINENO: result: no" >&5
22049 echo "${ECHO_T}no" >&6; }
22050 fi
22051
22052
22053 fi
22054 if test -z "$ac_cv_path_PKG_CONFIG"; then
22055   ac_pt_PKG_CONFIG=$PKG_CONFIG
22056   # Extract the first word of "pkg-config", so it can be a program name with args.
22057 set dummy pkg-config; ac_word=$2
22058 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22060 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
22061   echo $ECHO_N "(cached) $ECHO_C" >&6
22062 else
22063   case $ac_pt_PKG_CONFIG in
22064   [\\/]* | ?:[\\/]*)
22065   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
22066   ;;
22067   *)
22068   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22069 for as_dir in $PATH
22070 do
22071   IFS=$as_save_IFS
22072   test -z "$as_dir" && as_dir=.
22073   for ac_exec_ext in '' $ac_executable_extensions; do
22074   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22075     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22076     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22077     break 2
22078   fi
22079 done
22080 done
22081 IFS=$as_save_IFS
22082
22083   ;;
22084 esac
22085 fi
22086 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
22087 if test -n "$ac_pt_PKG_CONFIG"; then
22088   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
22089 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
22090 else
22091   { echo "$as_me:$LINENO: result: no" >&5
22092 echo "${ECHO_T}no" >&6; }
22093 fi
22094
22095   if test "x$ac_pt_PKG_CONFIG" = x; then
22096     PKG_CONFIG=""
22097   else
22098     case $cross_compiling:$ac_tool_warned in
22099 yes:)
22100 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
22101 whose name does not start with the host triplet.  If you think this
22102 configuration is useful to you, please write to autoconf@gnu.org." >&5
22103 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
22104 whose name does not start with the host triplet.  If you think this
22105 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
22106 ac_tool_warned=yes ;;
22107 esac
22108     PKG_CONFIG=$ac_pt_PKG_CONFIG
22109   fi
22110 else
22111   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
22112 fi
22113
22114 fi
22115 if test -n "$PKG_CONFIG"; then
22116         _pkg_min_version=0.9.0
22117         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
22118 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
22119         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
22120                 { echo "$as_me:$LINENO: result: yes" >&5
22121 echo "${ECHO_T}yes" >&6; }
22122         else
22123                 { echo "$as_me:$LINENO: result: no" >&5
22124 echo "${ECHO_T}no" >&6; }
22125                 PKG_CONFIG=""
22126         fi
22127
22128 fi
22129
22130 pkg_failed=no
22131 { echo "$as_me:$LINENO: checking for GTK" >&5
22132 echo $ECHO_N "checking for GTK... $ECHO_C" >&6; }
22133
22134 if test -n "$PKG_CONFIG"; then
22135     if test -n "$GTK_CFLAGS"; then
22136         pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
22137     else
22138         if test -n "$PKG_CONFIG" && \
22139     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.4.0 gconf-2.0 > 2.0\"") >&5
22140   ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.4.0 gconf-2.0 > 2.0") 2>&5
22141   ac_status=$?
22142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22143   (exit $ac_status); }; then
22144   pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4.0 gconf-2.0 > 2.0" 2>/dev/null`
22145 else
22146   pkg_failed=yes
22147 fi
22148     fi
22149 else
22150         pkg_failed=untried
22151 fi
22152 if test -n "$PKG_CONFIG"; then
22153     if test -n "$GTK_LIBS"; then
22154         pkg_cv_GTK_LIBS="$GTK_LIBS"
22155     else
22156         if test -n "$PKG_CONFIG" && \
22157     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.4.0 gconf-2.0 > 2.0\"") >&5
22158   ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.4.0 gconf-2.0 > 2.0") 2>&5
22159   ac_status=$?
22160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22161   (exit $ac_status); }; then
22162   pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4.0 gconf-2.0 > 2.0" 2>/dev/null`
22163 else
22164   pkg_failed=yes
22165 fi
22166     fi
22167 else
22168         pkg_failed=untried
22169 fi
22170
22171
22172
22173 if test $pkg_failed = yes; then
22174
22175 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22176         _pkg_short_errors_supported=yes
22177 else
22178         _pkg_short_errors_supported=no
22179 fi
22180         if test $_pkg_short_errors_supported = yes; then
22181                 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4.0 gconf-2.0 > 2.0"`
22182         else
22183                 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4.0 gconf-2.0 > 2.0"`
22184         fi
22185         # Put the nasty error message in config.log where it belongs
22186         echo "$GTK_PKG_ERRORS" >&5
22187
22188         { { echo "$as_me:$LINENO: error: Package requirements (gtk+-2.0 >= 2.4.0 gconf-2.0 > 2.0) were not met:
22189
22190 $GTK_PKG_ERRORS
22191
22192 Consider adjusting the PKG_CONFIG_PATH environment variable if you
22193 installed software in a non-standard prefix.
22194
22195 Alternatively, you may set the environment variables GTK_CFLAGS
22196 and GTK_LIBS to avoid the need to call pkg-config.
22197 See the pkg-config man page for more details.
22198 " >&5
22199 echo "$as_me: error: Package requirements (gtk+-2.0 >= 2.4.0 gconf-2.0 > 2.0) were not met:
22200
22201 $GTK_PKG_ERRORS
22202
22203 Consider adjusting the PKG_CONFIG_PATH environment variable if you
22204 installed software in a non-standard prefix.
22205
22206 Alternatively, you may set the environment variables GTK_CFLAGS
22207 and GTK_LIBS to avoid the need to call pkg-config.
22208 See the pkg-config man page for more details.
22209 " >&2;}
22210    { (exit 1); exit 1; }; }
22211 elif test $pkg_failed = untried; then
22212         { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
22213 is in your PATH or set the PKG_CONFIG environment variable to the full
22214 path to pkg-config.
22215
22216 Alternatively, you may set the environment variables GTK_CFLAGS
22217 and GTK_LIBS to avoid the need to call pkg-config.
22218 See the pkg-config man page for more details.
22219
22220 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
22221 See \`config.log' for more details." >&5
22222 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
22223 is in your PATH or set the PKG_CONFIG environment variable to the full
22224 path to pkg-config.
22225
22226 Alternatively, you may set the environment variables GTK_CFLAGS
22227 and GTK_LIBS to avoid the need to call pkg-config.
22228 See the pkg-config man page for more details.
22229
22230 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
22231 See \`config.log' for more details." >&2;}
22232    { (exit 1); exit 1; }; }
22233 else
22234         GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
22235         GTK_LIBS=$pkg_cv_GTK_LIBS
22236         { echo "$as_me:$LINENO: result: yes" >&5
22237 echo "${ECHO_T}yes" >&6; }
22238         :
22239 fi
22240
22241
22242
22243
22244 pkg_failed=no
22245 { echo "$as_me:$LINENO: checking for HIM" >&5
22246 echo $ECHO_N "checking for HIM... $ECHO_C" >&6; }
22247
22248 if test -n "$PKG_CONFIG"; then
22249     if test -n "$HIM_CFLAGS"; then
22250         pkg_cv_HIM_CFLAGS="$HIM_CFLAGS"
22251     else
22252         if test -n "$PKG_CONFIG" && \
22253     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-input-method-framework-3.0 >= 1.99.0 hildon-input-method-ui-3.0 >= 1.99.0\"") >&5
22254   ($PKG_CONFIG --exists --print-errors "hildon-input-method-framework-3.0 >= 1.99.0 hildon-input-method-ui-3.0 >= 1.99.0") 2>&5
22255   ac_status=$?
22256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22257   (exit $ac_status); }; then
22258   pkg_cv_HIM_CFLAGS=`$PKG_CONFIG --cflags "hildon-input-method-framework-3.0 >= 1.99.0 hildon-input-method-ui-3.0 >= 1.99.0" 2>/dev/null`
22259 else
22260   pkg_failed=yes
22261 fi
22262     fi
22263 else
22264         pkg_failed=untried
22265 fi
22266 if test -n "$PKG_CONFIG"; then
22267     if test -n "$HIM_LIBS"; then
22268         pkg_cv_HIM_LIBS="$HIM_LIBS"
22269     else
22270         if test -n "$PKG_CONFIG" && \
22271     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-input-method-framework-3.0 >= 1.99.0 hildon-input-method-ui-3.0 >= 1.99.0\"") >&5
22272   ($PKG_CONFIG --exists --print-errors "hildon-input-method-framework-3.0 >= 1.99.0 hildon-input-method-ui-3.0 >= 1.99.0") 2>&5
22273   ac_status=$?
22274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22275   (exit $ac_status); }; then
22276   pkg_cv_HIM_LIBS=`$PKG_CONFIG --libs "hildon-input-method-framework-3.0 >= 1.99.0 hildon-input-method-ui-3.0 >= 1.99.0" 2>/dev/null`
22277 else
22278   pkg_failed=yes
22279 fi
22280     fi
22281 else
22282         pkg_failed=untried
22283 fi
22284
22285
22286
22287 if test $pkg_failed = yes; then
22288
22289 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22290         _pkg_short_errors_supported=yes
22291 else
22292         _pkg_short_errors_supported=no
22293 fi
22294         if test $_pkg_short_errors_supported = yes; then
22295                 HIM_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "hildon-input-method-framework-3.0 >= 1.99.0 hildon-input-method-ui-3.0 >= 1.99.0"`
22296         else
22297                 HIM_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hildon-input-method-framework-3.0 >= 1.99.0 hildon-input-method-ui-3.0 >= 1.99.0"`
22298         fi
22299         # Put the nasty error message in config.log where it belongs
22300         echo "$HIM_PKG_ERRORS" >&5
22301
22302         { { echo "$as_me:$LINENO: error: Package requirements (hildon-input-method-framework-3.0 >= 1.99.0 hildon-input-method-ui-3.0 >= 1.99.0) were not met:
22303
22304 $HIM_PKG_ERRORS
22305
22306 Consider adjusting the PKG_CONFIG_PATH environment variable if you
22307 installed software in a non-standard prefix.
22308
22309 Alternatively, you may set the environment variables HIM_CFLAGS
22310 and HIM_LIBS to avoid the need to call pkg-config.
22311 See the pkg-config man page for more details.
22312 " >&5
22313 echo "$as_me: error: Package requirements (hildon-input-method-framework-3.0 >= 1.99.0 hildon-input-method-ui-3.0 >= 1.99.0) were not met:
22314
22315 $HIM_PKG_ERRORS
22316
22317 Consider adjusting the PKG_CONFIG_PATH environment variable if you
22318 installed software in a non-standard prefix.
22319
22320 Alternatively, you may set the environment variables HIM_CFLAGS
22321 and HIM_LIBS to avoid the need to call pkg-config.
22322 See the pkg-config man page for more details.
22323 " >&2;}
22324    { (exit 1); exit 1; }; }
22325 elif test $pkg_failed = untried; then
22326         { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
22327 is in your PATH or set the PKG_CONFIG environment variable to the full
22328 path to pkg-config.
22329
22330 Alternatively, you may set the environment variables HIM_CFLAGS
22331 and HIM_LIBS to avoid the need to call pkg-config.
22332 See the pkg-config man page for more details.
22333
22334 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
22335 See \`config.log' for more details." >&5
22336 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
22337 is in your PATH or set the PKG_CONFIG environment variable to the full
22338 path to pkg-config.
22339
22340 Alternatively, you may set the environment variables HIM_CFLAGS
22341 and HIM_LIBS to avoid the need to call pkg-config.
22342 See the pkg-config man page for more details.
22343
22344 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
22345 See \`config.log' for more details." >&2;}
22346    { (exit 1); exit 1; }; }
22347 else
22348         HIM_CFLAGS=$pkg_cv_HIM_CFLAGS
22349         HIM_LIBS=$pkg_cv_HIM_LIBS
22350         { echo "$as_me:$LINENO: result: yes" >&5
22351 echo "${ECHO_T}yes" >&6; }
22352         :
22353 fi
22354
22355
22356
22357
22358 pkg_failed=no
22359 { echo "$as_me:$LINENO: checking for DBUS" >&5
22360 echo $ECHO_N "checking for DBUS... $ECHO_C" >&6; }
22361
22362 if test -n "$PKG_CONFIG"; then
22363     if test -n "$DBUS_CFLAGS"; then
22364         pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
22365     else
22366         if test -n "$PKG_CONFIG" && \
22367     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"dbus-1 >= 0.60\"") >&5
22368   ($PKG_CONFIG --exists --print-errors "dbus-1 >= 0.60") 2>&5
22369   ac_status=$?
22370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22371   (exit $ac_status); }; then
22372   pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 0.60" 2>/dev/null`
22373 else
22374   pkg_failed=yes
22375 fi
22376     fi
22377 else
22378         pkg_failed=untried
22379 fi
22380 if test -n "$PKG_CONFIG"; then
22381     if test -n "$DBUS_LIBS"; then
22382         pkg_cv_DBUS_LIBS="$DBUS_LIBS"
22383     else
22384         if test -n "$PKG_CONFIG" && \
22385     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"dbus-1 >= 0.60\"") >&5
22386   ($PKG_CONFIG --exists --print-errors "dbus-1 >= 0.60") 2>&5
22387   ac_status=$?
22388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22389   (exit $ac_status); }; then
22390   pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 0.60" 2>/dev/null`
22391 else
22392   pkg_failed=yes
22393 fi
22394     fi
22395 else
22396         pkg_failed=untried
22397 fi
22398
22399
22400
22401 if test $pkg_failed = yes; then
22402
22403 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22404         _pkg_short_errors_supported=yes
22405 else
22406         _pkg_short_errors_supported=no
22407 fi
22408         if test $_pkg_short_errors_supported = yes; then
22409                 DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "dbus-1 >= 0.60"`
22410         else
22411                 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 0.60"`
22412         fi
22413         # Put the nasty error message in config.log where it belongs
22414         echo "$DBUS_PKG_ERRORS" >&5
22415
22416         { { echo "$as_me:$LINENO: error: Package requirements (dbus-1 >= 0.60) were not met:
22417
22418 $DBUS_PKG_ERRORS
22419
22420 Consider adjusting the PKG_CONFIG_PATH environment variable if you
22421 installed software in a non-standard prefix.
22422
22423 Alternatively, you may set the environment variables DBUS_CFLAGS
22424 and DBUS_LIBS to avoid the need to call pkg-config.
22425 See the pkg-config man page for more details.
22426 " >&5
22427 echo "$as_me: error: Package requirements (dbus-1 >= 0.60) were not met:
22428
22429 $DBUS_PKG_ERRORS
22430
22431 Consider adjusting the PKG_CONFIG_PATH environment variable if you
22432 installed software in a non-standard prefix.
22433
22434 Alternatively, you may set the environment variables DBUS_CFLAGS
22435 and DBUS_LIBS to avoid the need to call pkg-config.
22436 See the pkg-config man page for more details.
22437 " >&2;}
22438    { (exit 1); exit 1; }; }
22439 elif test $pkg_failed = untried; then
22440         { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
22441 is in your PATH or set the PKG_CONFIG environment variable to the full
22442 path to pkg-config.
22443
22444 Alternatively, you may set the environment variables DBUS_CFLAGS
22445 and DBUS_LIBS to avoid the need to call pkg-config.
22446 See the pkg-config man page for more details.
22447
22448 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
22449 See \`config.log' for more details." >&5
22450 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
22451 is in your PATH or set the PKG_CONFIG environment variable to the full
22452 path to pkg-config.
22453
22454 Alternatively, you may set the environment variables DBUS_CFLAGS
22455 and DBUS_LIBS to avoid the need to call pkg-config.
22456 See the pkg-config man page for more details.
22457
22458 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
22459 See \`config.log' for more details." >&2;}
22460    { (exit 1); exit 1; }; }
22461 else
22462         DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
22463         DBUS_LIBS=$pkg_cv_DBUS_LIBS
22464         { echo "$as_me:$LINENO: result: yes" >&5
22465 echo "${ECHO_T}yes" >&6; }
22466         :
22467 fi
22468
22469
22470
22471 ac_config_files="$ac_config_files Makefile src/Makefile"
22472
22473 cat >confcache <<\_ACEOF
22474 # This file is a shell script that caches the results of configure
22475 # tests run on this system so they can be shared between configure
22476 # scripts and configure runs, see configure's option --config-cache.
22477 # It is not useful on other systems.  If it contains results you don't
22478 # want to keep, you may remove or edit it.
22479 #
22480 # config.status only pays attention to the cache file if you give it
22481 # the --recheck option to rerun configure.
22482 #
22483 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22484 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22485 # following values.
22486
22487 _ACEOF
22488
22489 # The following way of writing the cache mishandles newlines in values,
22490 # but we know of no workaround that is simple, portable, and efficient.
22491 # So, we kill variables containing newlines.
22492 # Ultrix sh set writes to stderr and can't be redirected directly,
22493 # and sets the high bit in the cache file unless we assign to the vars.
22494 (
22495   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22496     eval ac_val=\$$ac_var
22497     case $ac_val in #(
22498     *${as_nl}*)
22499       case $ac_var in #(
22500       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22501 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22502       esac
22503       case $ac_var in #(
22504       _ | IFS | as_nl) ;; #(
22505       *) $as_unset $ac_var ;;
22506       esac ;;
22507     esac
22508   done
22509
22510   (set) 2>&1 |
22511     case $as_nl`(ac_space=' '; set) 2>&1` in #(
22512     *${as_nl}ac_space=\ *)
22513       # `set' does not quote correctly, so add quotes (double-quote
22514       # substitution turns \\\\ into \\, and sed turns \\ into \).
22515       sed -n \
22516         "s/'/'\\\\''/g;
22517           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22518       ;; #(
22519     *)
22520       # `set' quotes correctly as required by POSIX, so do not add quotes.
22521       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22522       ;;
22523     esac |
22524     sort
22525 ) |
22526   sed '
22527      /^ac_cv_env_/b end
22528      t clear
22529      :clear
22530      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22531      t end
22532      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22533      :end' >>confcache
22534 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22535   if test -w "$cache_file"; then
22536     test "x$cache_file" != "x/dev/null" &&
22537       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22538 echo "$as_me: updating cache $cache_file" >&6;}
22539     cat confcache >$cache_file
22540   else
22541     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22542 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22543   fi
22544 fi
22545 rm -f confcache
22546
22547 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22548 # Let make expand exec_prefix.
22549 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22550
22551 # Transform confdefs.h into DEFS.
22552 # Protect against shell expansion while executing Makefile rules.
22553 # Protect against Makefile macro expansion.
22554 #
22555 # If the first sed substitution is executed (which looks for macros that
22556 # take arguments), then branch to the quote section.  Otherwise,
22557 # look for a macro that doesn't take arguments.
22558 ac_script='
22559 t clear
22560 :clear
22561 s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
22562 t quote
22563 s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
22564 t quote
22565 b any
22566 :quote
22567 s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
22568 s/\[/\\&/g
22569 s/\]/\\&/g
22570 s/\$/$$/g
22571 H
22572 :any
22573 ${
22574         g
22575         s/^\n//
22576         s/\n/ /g
22577         p
22578 }
22579 '
22580 DEFS=`sed -n "$ac_script" confdefs.h`
22581
22582
22583 ac_libobjs=
22584 ac_ltlibobjs=
22585 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22586   # 1. Remove the extension, and $U if already installed.
22587   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22588   ac_i=`echo "$ac_i" | sed "$ac_script"`
22589   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
22590   #    will be set to the directory where LIBOBJS objects are built.
22591   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22592   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22593 done
22594 LIBOBJS=$ac_libobjs
22595
22596 LTLIBOBJS=$ac_ltlibobjs
22597
22598
22599 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22600   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22601 Usually this means the macro was only invoked conditionally." >&5
22602 echo "$as_me: error: conditional \"AMDEP\" was never defined.
22603 Usually this means the macro was only invoked conditionally." >&2;}
22604    { (exit 1); exit 1; }; }
22605 fi
22606 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22607   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22608 Usually this means the macro was only invoked conditionally." >&5
22609 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22610 Usually this means the macro was only invoked conditionally." >&2;}
22611    { (exit 1); exit 1; }; }
22612 fi
22613 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22614   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22615 Usually this means the macro was only invoked conditionally." >&5
22616 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22617 Usually this means the macro was only invoked conditionally." >&2;}
22618    { (exit 1); exit 1; }; }
22619 fi
22620 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22621   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22622 Usually this means the macro was only invoked conditionally." >&5
22623 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22624 Usually this means the macro was only invoked conditionally." >&2;}
22625    { (exit 1); exit 1; }; }
22626 fi
22627 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22628   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22629 Usually this means the macro was only invoked conditionally." >&5
22630 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22631 Usually this means the macro was only invoked conditionally." >&2;}
22632    { (exit 1); exit 1; }; }
22633 fi
22634
22635 : ${CONFIG_STATUS=./config.status}
22636 ac_clean_files_save=$ac_clean_files
22637 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22638 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22639 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22640 cat >$CONFIG_STATUS <<_ACEOF
22641 #! $SHELL
22642 # Generated by $as_me.
22643 # Run this file to recreate the current configuration.
22644 # Compiler output produced by configure, useful for debugging
22645 # configure, is in config.log if it exists.
22646
22647 debug=false
22648 ac_cs_recheck=false
22649 ac_cs_silent=false
22650 SHELL=\${CONFIG_SHELL-$SHELL}
22651 _ACEOF
22652
22653 cat >>$CONFIG_STATUS <<\_ACEOF
22654 ## --------------------- ##
22655 ## M4sh Initialization.  ##
22656 ## --------------------- ##
22657
22658 # Be more Bourne compatible
22659 DUALCASE=1; export DUALCASE # for MKS sh
22660 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22661   emulate sh
22662   NULLCMD=:
22663   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22664   # is contrary to our usage.  Disable this feature.
22665   alias -g '${1+"$@"}'='"$@"'
22666   setopt NO_GLOB_SUBST
22667 else
22668   case `(set -o) 2>/dev/null` in
22669   *posix*) set -o posix ;;
22670 esac
22671
22672 fi
22673
22674
22675
22676
22677 # PATH needs CR
22678 # Avoid depending upon Character Ranges.
22679 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22680 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22681 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22682 as_cr_digits='0123456789'
22683 as_cr_alnum=$as_cr_Letters$as_cr_digits
22684
22685 # The user is always right.
22686 if test "${PATH_SEPARATOR+set}" != set; then
22687   echo "#! /bin/sh" >conf$$.sh
22688   echo  "exit 0"   >>conf$$.sh
22689   chmod +x conf$$.sh
22690   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22691     PATH_SEPARATOR=';'
22692   else
22693     PATH_SEPARATOR=:
22694   fi
22695   rm -f conf$$.sh
22696 fi
22697
22698 # Support unset when possible.
22699 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22700   as_unset=unset
22701 else
22702   as_unset=false
22703 fi
22704
22705
22706 # IFS
22707 # We need space, tab and new line, in precisely that order.  Quoting is
22708 # there to prevent editors from complaining about space-tab.
22709 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22710 # splitting by setting IFS to empty value.)
22711 as_nl='
22712 '
22713 IFS=" ""        $as_nl"
22714
22715 # Find who we are.  Look in the path if we contain no directory separator.
22716 case $0 in
22717   *[\\/]* ) as_myself=$0 ;;
22718   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22719 for as_dir in $PATH
22720 do
22721   IFS=$as_save_IFS
22722   test -z "$as_dir" && as_dir=.
22723   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22724 done
22725 IFS=$as_save_IFS
22726
22727      ;;
22728 esac
22729 # We did not find ourselves, most probably we were run as `sh COMMAND'
22730 # in which case we are not to be found in the path.
22731 if test "x$as_myself" = x; then
22732   as_myself=$0
22733 fi
22734 if test ! -f "$as_myself"; then
22735   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22736   { (exit 1); exit 1; }
22737 fi
22738
22739 # Work around bugs in pre-3.0 UWIN ksh.
22740 for as_var in ENV MAIL MAILPATH
22741 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22742 done
22743 PS1='$ '
22744 PS2='> '
22745 PS4='+ '
22746
22747 # NLS nuisances.
22748 for as_var in \
22749   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22750   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22751   LC_TELEPHONE LC_TIME
22752 do
22753   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22754     eval $as_var=C; export $as_var
22755   else
22756     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22757   fi
22758 done
22759
22760 # Required to use basename.
22761 if expr a : '\(a\)' >/dev/null 2>&1 &&
22762    test "X`expr 00001 : '.*\(...\)'`" = X001; then
22763   as_expr=expr
22764 else
22765   as_expr=false
22766 fi
22767
22768 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22769   as_basename=basename
22770 else
22771   as_basename=false
22772 fi
22773
22774
22775 # Name of the executable.
22776 as_me=`$as_basename -- "$0" ||
22777 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22778          X"$0" : 'X\(//\)$' \| \
22779          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22780 echo X/"$0" |
22781     sed '/^.*\/\([^/][^/]*\)\/*$/{
22782             s//\1/
22783             q
22784           }
22785           /^X\/\(\/\/\)$/{
22786             s//\1/
22787             q
22788           }
22789           /^X\/\(\/\).*/{
22790             s//\1/
22791             q
22792           }
22793           s/.*/./; q'`
22794
22795 # CDPATH.
22796 $as_unset CDPATH
22797
22798
22799
22800   as_lineno_1=$LINENO
22801   as_lineno_2=$LINENO
22802   test "x$as_lineno_1" != "x$as_lineno_2" &&
22803   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22804
22805   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22806   # uniformly replaced by the line number.  The first 'sed' inserts a
22807   # line-number line after each line using $LINENO; the second 'sed'
22808   # does the real work.  The second script uses 'N' to pair each
22809   # line-number line with the line containing $LINENO, and appends
22810   # trailing '-' during substitution so that $LINENO is not a special
22811   # case at line end.
22812   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22813   # scripts with optimization help from Paolo Bonzini.  Blame Lee
22814   # E. McMahon (1931-1989) for sed's syntax.  :-)
22815   sed -n '
22816     p
22817     /[$]LINENO/=
22818   ' <$as_myself |
22819     sed '
22820       s/[$]LINENO.*/&-/
22821       t lineno
22822       b
22823       :lineno
22824       N
22825       :loop
22826       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22827       t loop
22828       s/-\n.*//
22829     ' >$as_me.lineno &&
22830   chmod +x "$as_me.lineno" ||
22831     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22832    { (exit 1); exit 1; }; }
22833
22834   # Don't try to exec as it changes $[0], causing all sort of problems
22835   # (the dirname of $[0] is not the place where we might find the
22836   # original and so on.  Autoconf is especially sensitive to this).
22837   . "./$as_me.lineno"
22838   # Exit status is that of the last command.
22839   exit
22840 }
22841
22842
22843 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22844   as_dirname=dirname
22845 else
22846   as_dirname=false
22847 fi
22848
22849 ECHO_C= ECHO_N= ECHO_T=
22850 case `echo -n x` in
22851 -n*)
22852   case `echo 'x\c'` in
22853   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
22854   *)   ECHO_C='\c';;
22855   esac;;
22856 *)
22857   ECHO_N='-n';;
22858 esac
22859
22860 if expr a : '\(a\)' >/dev/null 2>&1 &&
22861    test "X`expr 00001 : '.*\(...\)'`" = X001; then
22862   as_expr=expr
22863 else
22864   as_expr=false
22865 fi
22866
22867 rm -f conf$$ conf$$.exe conf$$.file
22868 if test -d conf$$.dir; then
22869   rm -f conf$$.dir/conf$$.file
22870 else
22871   rm -f conf$$.dir
22872   mkdir conf$$.dir
22873 fi
22874 echo >conf$$.file
22875 if ln -s conf$$.file conf$$ 2>/dev/null; then
22876   as_ln_s='ln -s'
22877   # ... but there are two gotchas:
22878   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22879   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22880   # In both cases, we have to default to `cp -p'.
22881   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22882     as_ln_s='cp -p'
22883 elif ln conf$$.file conf$$ 2>/dev/null; then
22884   as_ln_s=ln
22885 else
22886   as_ln_s='cp -p'
22887 fi
22888 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22889 rmdir conf$$.dir 2>/dev/null
22890
22891 if mkdir -p . 2>/dev/null; then
22892   as_mkdir_p=:
22893 else
22894   test -d ./-p && rmdir ./-p
22895   as_mkdir_p=false
22896 fi
22897
22898 if test -x / >/dev/null 2>&1; then
22899   as_test_x='test -x'
22900 else
22901   if ls -dL / >/dev/null 2>&1; then
22902     as_ls_L_option=L
22903   else
22904     as_ls_L_option=
22905   fi
22906   as_test_x='
22907     eval sh -c '\''
22908       if test -d "$1"; then
22909         test -d "$1/.";
22910       else
22911         case $1 in
22912         -*)set "./$1";;
22913         esac;
22914         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
22915         ???[sx]*):;;*)false;;esac;fi
22916     '\'' sh
22917   '
22918 fi
22919 as_executable_p=$as_test_x
22920
22921 # Sed expression to map a string onto a valid CPP name.
22922 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22923
22924 # Sed expression to map a string onto a valid variable name.
22925 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22926
22927
22928 exec 6>&1
22929
22930 # Save the log message, to keep $[0] and so on meaningful, and to
22931 # report actual input values of CONFIG_FILES etc. instead of their
22932 # values after options handling.
22933 ac_log="
22934 This file was extended by $as_me, which was
22935 generated by GNU Autoconf 2.61.  Invocation command line was
22936
22937   CONFIG_FILES    = $CONFIG_FILES
22938   CONFIG_HEADERS  = $CONFIG_HEADERS
22939   CONFIG_LINKS    = $CONFIG_LINKS
22940   CONFIG_COMMANDS = $CONFIG_COMMANDS
22941   $ $0 $@
22942
22943 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22944 "
22945
22946 _ACEOF
22947
22948 cat >>$CONFIG_STATUS <<_ACEOF
22949 # Files that config.status was made for.
22950 config_files="$ac_config_files"
22951 config_commands="$ac_config_commands"
22952
22953 _ACEOF
22954
22955 cat >>$CONFIG_STATUS <<\_ACEOF
22956 ac_cs_usage="\
22957 \`$as_me' instantiates files from templates according to the
22958 current configuration.
22959
22960 Usage: $0 [OPTIONS] [FILE]...
22961
22962   -h, --help       print this help, then exit
22963   -V, --version    print version number and configuration settings, then exit
22964   -q, --quiet      do not print progress messages
22965   -d, --debug      don't remove temporary files
22966       --recheck    update $as_me by reconfiguring in the same conditions
22967   --file=FILE[:TEMPLATE]
22968                    instantiate the configuration file FILE
22969
22970 Configuration files:
22971 $config_files
22972
22973 Configuration commands:
22974 $config_commands
22975
22976 Report bugs to <bug-autoconf@gnu.org>."
22977
22978 _ACEOF
22979 cat >>$CONFIG_STATUS <<_ACEOF
22980 ac_cs_version="\\
22981 config.status
22982 configured by $0, generated by GNU Autoconf 2.61,
22983   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22984
22985 Copyright (C) 2006 Free Software Foundation, Inc.
22986 This config.status script is free software; the Free Software Foundation
22987 gives unlimited permission to copy, distribute and modify it."
22988
22989 ac_pwd='$ac_pwd'
22990 srcdir='$srcdir'
22991 INSTALL='$INSTALL'
22992 _ACEOF
22993
22994 cat >>$CONFIG_STATUS <<\_ACEOF
22995 # If no file are specified by the user, then we need to provide default
22996 # value.  By we need to know if files were specified by the user.
22997 ac_need_defaults=:
22998 while test $# != 0
22999 do
23000   case $1 in
23001   --*=*)
23002     ac_option=`expr "X$1" : 'X\([^=]*\)='`
23003     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23004     ac_shift=:
23005     ;;
23006   *)
23007     ac_option=$1
23008     ac_optarg=$2
23009     ac_shift=shift
23010     ;;
23011   esac
23012
23013   case $ac_option in
23014   # Handling of the options.
23015   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23016     ac_cs_recheck=: ;;
23017   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23018     echo "$ac_cs_version"; exit ;;
23019   --debug | --debu | --deb | --de | --d | -d )
23020     debug=: ;;
23021   --file | --fil | --fi | --f )
23022     $ac_shift
23023     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23024     ac_need_defaults=false;;
23025   --he | --h |  --help | --hel | -h )
23026     echo "$ac_cs_usage"; exit ;;
23027   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23028   | -silent | --silent | --silen | --sile | --sil | --si | --s)
23029     ac_cs_silent=: ;;
23030
23031   # This is an error.
23032   -*) { echo "$as_me: error: unrecognized option: $1
23033 Try \`$0 --help' for more information." >&2
23034    { (exit 1); exit 1; }; } ;;
23035
23036   *) ac_config_targets="$ac_config_targets $1"
23037      ac_need_defaults=false ;;
23038
23039   esac
23040   shift
23041 done
23042
23043 ac_configure_extra_args=
23044
23045 if $ac_cs_silent; then
23046   exec 6>/dev/null
23047   ac_configure_extra_args="$ac_configure_extra_args --silent"
23048 fi
23049
23050 _ACEOF
23051 cat >>$CONFIG_STATUS <<_ACEOF
23052 if \$ac_cs_recheck; then
23053   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23054   CONFIG_SHELL=$SHELL
23055   export CONFIG_SHELL
23056   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23057 fi
23058
23059 _ACEOF
23060 cat >>$CONFIG_STATUS <<\_ACEOF
23061 exec 5>>config.log
23062 {
23063   echo
23064   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23065 ## Running $as_me. ##
23066 _ASBOX
23067   echo "$ac_log"
23068 } >&5
23069
23070 _ACEOF
23071 cat >>$CONFIG_STATUS <<_ACEOF
23072 #
23073 # INIT-COMMANDS
23074 #
23075 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23076
23077 _ACEOF
23078
23079 cat >>$CONFIG_STATUS <<\_ACEOF
23080
23081 # Handling of arguments.
23082 for ac_config_target in $ac_config_targets
23083 do
23084   case $ac_config_target in
23085     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23086     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23087     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
23088
23089   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23090 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23091    { (exit 1); exit 1; }; };;
23092   esac
23093 done
23094
23095
23096 # If the user did not use the arguments to specify the items to instantiate,
23097 # then the envvar interface is used.  Set only those that are not.
23098 # We use the long form for the default assignment because of an extremely
23099 # bizarre bug on SunOS 4.1.3.
23100 if $ac_need_defaults; then
23101   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23102   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23103 fi
23104
23105 # Have a temporary directory for convenience.  Make it in the build tree
23106 # simply because there is no reason against having it here, and in addition,
23107 # creating and moving files from /tmp can sometimes cause problems.
23108 # Hook for its removal unless debugging.
23109 # Note that there is a small window in which the directory will not be cleaned:
23110 # after its creation but before its name has been assigned to `$tmp'.
23111 $debug ||
23112 {
23113   tmp=
23114   trap 'exit_status=$?
23115   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23116 ' 0
23117   trap '{ (exit 1); exit 1; }' 1 2 13 15
23118 }
23119 # Create a (secure) tmp directory for tmp files.
23120
23121 {
23122   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23123   test -n "$tmp" && test -d "$tmp"
23124 }  ||
23125 {
23126   tmp=./conf$$-$RANDOM
23127   (umask 077 && mkdir "$tmp")
23128 } ||
23129 {
23130    echo "$me: cannot create a temporary directory in ." >&2
23131    { (exit 1); exit 1; }
23132 }
23133
23134 #
23135 # Set up the sed scripts for CONFIG_FILES section.
23136 #
23137
23138 # No need to generate the scripts if there are no CONFIG_FILES.
23139 # This happens for instance when ./config.status config.h
23140 if test -n "$CONFIG_FILES"; then
23141
23142 _ACEOF
23143
23144
23145
23146 ac_delim='%!_!# '
23147 for ac_last_try in false false false false false :; do
23148   cat >conf$$subs.sed <<_ACEOF
23149 SHELL!$SHELL$ac_delim
23150 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23151 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23152 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23153 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23154 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23155 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23156 exec_prefix!$exec_prefix$ac_delim
23157 prefix!$prefix$ac_delim
23158 program_transform_name!$program_transform_name$ac_delim
23159 bindir!$bindir$ac_delim
23160 sbindir!$sbindir$ac_delim
23161 libexecdir!$libexecdir$ac_delim
23162 datarootdir!$datarootdir$ac_delim
23163 datadir!$datadir$ac_delim
23164 sysconfdir!$sysconfdir$ac_delim
23165 sharedstatedir!$sharedstatedir$ac_delim
23166 localstatedir!$localstatedir$ac_delim
23167 includedir!$includedir$ac_delim
23168 oldincludedir!$oldincludedir$ac_delim
23169 docdir!$docdir$ac_delim
23170 infodir!$infodir$ac_delim
23171 htmldir!$htmldir$ac_delim
23172 dvidir!$dvidir$ac_delim
23173 pdfdir!$pdfdir$ac_delim
23174 psdir!$psdir$ac_delim
23175 libdir!$libdir$ac_delim
23176 localedir!$localedir$ac_delim
23177 mandir!$mandir$ac_delim
23178 DEFS!$DEFS$ac_delim
23179 ECHO_C!$ECHO_C$ac_delim
23180 ECHO_N!$ECHO_N$ac_delim
23181 ECHO_T!$ECHO_T$ac_delim
23182 LIBS!$LIBS$ac_delim
23183 build_alias!$build_alias$ac_delim
23184 host_alias!$host_alias$ac_delim
23185 target_alias!$target_alias$ac_delim
23186 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23187 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23188 INSTALL_DATA!$INSTALL_DATA$ac_delim
23189 CYGPATH_W!$CYGPATH_W$ac_delim
23190 PACKAGE!$PACKAGE$ac_delim
23191 VERSION!$VERSION$ac_delim
23192 ACLOCAL!$ACLOCAL$ac_delim
23193 AUTOCONF!$AUTOCONF$ac_delim
23194 AUTOMAKE!$AUTOMAKE$ac_delim
23195 AUTOHEADER!$AUTOHEADER$ac_delim
23196 MAKEINFO!$MAKEINFO$ac_delim
23197 AMTAR!$AMTAR$ac_delim
23198 install_sh!$install_sh$ac_delim
23199 STRIP!$STRIP$ac_delim
23200 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
23201 mkdir_p!$mkdir_p$ac_delim
23202 AWK!$AWK$ac_delim
23203 SET_MAKE!$SET_MAKE$ac_delim
23204 am__leading_dot!$am__leading_dot$ac_delim
23205 CC!$CC$ac_delim
23206 CFLAGS!$CFLAGS$ac_delim
23207 LDFLAGS!$LDFLAGS$ac_delim
23208 CPPFLAGS!$CPPFLAGS$ac_delim
23209 ac_ct_CC!$ac_ct_CC$ac_delim
23210 EXEEXT!$EXEEXT$ac_delim
23211 OBJEXT!$OBJEXT$ac_delim
23212 DEPDIR!$DEPDIR$ac_delim
23213 am__include!$am__include$ac_delim
23214 am__quote!$am__quote$ac_delim
23215 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
23216 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
23217 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
23218 CCDEPMODE!$CCDEPMODE$ac_delim
23219 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
23220 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
23221 build!$build$ac_delim
23222 build_cpu!$build_cpu$ac_delim
23223 build_vendor!$build_vendor$ac_delim
23224 build_os!$build_os$ac_delim
23225 host!$host$ac_delim
23226 host_cpu!$host_cpu$ac_delim
23227 host_vendor!$host_vendor$ac_delim
23228 host_os!$host_os$ac_delim
23229 GREP!$GREP$ac_delim
23230 EGREP!$EGREP$ac_delim
23231 LN_S!$LN_S$ac_delim
23232 ECHO!$ECHO$ac_delim
23233 AR!$AR$ac_delim
23234 RANLIB!$RANLIB$ac_delim
23235 CPP!$CPP$ac_delim
23236 CXX!$CXX$ac_delim
23237 CXXFLAGS!$CXXFLAGS$ac_delim
23238 ac_ct_CXX!$ac_ct_CXX$ac_delim
23239 CXXDEPMODE!$CXXDEPMODE$ac_delim
23240 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
23241 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
23242 CXXCPP!$CXXCPP$ac_delim
23243 F77!$F77$ac_delim
23244 FFLAGS!$FFLAGS$ac_delim
23245 ac_ct_F77!$ac_ct_F77$ac_delim
23246 _ACEOF
23247
23248   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23249     break
23250   elif $ac_last_try; then
23251     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23252 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23253    { (exit 1); exit 1; }; }
23254   else
23255     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23256   fi
23257 done
23258
23259 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23260 if test -n "$ac_eof"; then
23261   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23262   ac_eof=`expr $ac_eof + 1`
23263 fi
23264
23265 cat >>$CONFIG_STATUS <<_ACEOF
23266 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23267 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23268 _ACEOF
23269 sed '
23270 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23271 s/^/s,@/; s/!/@,|#_!!_#|/
23272 :n
23273 t n
23274 s/'"$ac_delim"'$/,g/; t
23275 s/$/\\/; p
23276 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23277 ' >>$CONFIG_STATUS <conf$$subs.sed
23278 rm -f conf$$subs.sed
23279 cat >>$CONFIG_STATUS <<_ACEOF
23280 CEOF$ac_eof
23281 _ACEOF
23282
23283
23284 ac_delim='%!_!# '
23285 for ac_last_try in false false false false false :; do
23286   cat >conf$$subs.sed <<_ACEOF
23287 LIBTOOL!$LIBTOOL$ac_delim
23288 PKG_CONFIG!$PKG_CONFIG$ac_delim
23289 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
23290 GTK_LIBS!$GTK_LIBS$ac_delim
23291 HIM_CFLAGS!$HIM_CFLAGS$ac_delim
23292 HIM_LIBS!$HIM_LIBS$ac_delim
23293 DBUS_CFLAGS!$DBUS_CFLAGS$ac_delim
23294 DBUS_LIBS!$DBUS_LIBS$ac_delim
23295 LIBOBJS!$LIBOBJS$ac_delim
23296 LTLIBOBJS!$LTLIBOBJS$ac_delim
23297 _ACEOF
23298
23299   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 10; then
23300     break
23301   elif $ac_last_try; then
23302     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23303 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23304    { (exit 1); exit 1; }; }
23305   else
23306     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23307   fi
23308 done
23309
23310 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23311 if test -n "$ac_eof"; then
23312   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23313   ac_eof=`expr $ac_eof + 1`
23314 fi
23315
23316 cat >>$CONFIG_STATUS <<_ACEOF
23317 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23318 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23319 _ACEOF
23320 sed '
23321 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23322 s/^/s,@/; s/!/@,|#_!!_#|/
23323 :n
23324 t n
23325 s/'"$ac_delim"'$/,g/; t
23326 s/$/\\/; p
23327 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23328 ' >>$CONFIG_STATUS <conf$$subs.sed
23329 rm -f conf$$subs.sed
23330 cat >>$CONFIG_STATUS <<_ACEOF
23331 :end
23332 s/|#_!!_#|//g
23333 CEOF$ac_eof
23334 _ACEOF
23335
23336
23337 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23338 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23339 # trailing colons and then remove the whole line if VPATH becomes empty
23340 # (actually we leave an empty line to preserve line numbers).
23341 if test "x$srcdir" = x.; then
23342   ac_vpsub='/^[  ]*VPATH[        ]*=/{
23343 s/:*\$(srcdir):*/:/
23344 s/:*\${srcdir}:*/:/
23345 s/:*@srcdir@:*/:/
23346 s/^\([^=]*=[     ]*\):*/\1/
23347 s/:*$//
23348 s/^[^=]*=[       ]*$//
23349 }'
23350 fi
23351
23352 cat >>$CONFIG_STATUS <<\_ACEOF
23353 fi # test -n "$CONFIG_FILES"
23354
23355
23356 for ac_tag in  :F $CONFIG_FILES      :C $CONFIG_COMMANDS
23357 do
23358   case $ac_tag in
23359   :[FHLC]) ac_mode=$ac_tag; continue;;
23360   esac
23361   case $ac_mode$ac_tag in
23362   :[FHL]*:*);;
23363   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23364 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23365    { (exit 1); exit 1; }; };;
23366   :[FH]-) ac_tag=-:-;;
23367   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23368   esac
23369   ac_save_IFS=$IFS
23370   IFS=:
23371   set x $ac_tag
23372   IFS=$ac_save_IFS
23373   shift
23374   ac_file=$1
23375   shift
23376
23377   case $ac_mode in
23378   :L) ac_source=$1;;
23379   :[FH])
23380     ac_file_inputs=
23381     for ac_f
23382     do
23383       case $ac_f in
23384       -) ac_f="$tmp/stdin";;
23385       *) # Look for the file first in the build tree, then in the source tree
23386          # (if the path is not absolute).  The absolute path cannot be DOS-style,
23387          # because $ac_f cannot contain `:'.
23388          test -f "$ac_f" ||
23389            case $ac_f in
23390            [\\/$]*) false;;
23391            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23392            esac ||
23393            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23394 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23395    { (exit 1); exit 1; }; };;
23396       esac
23397       ac_file_inputs="$ac_file_inputs $ac_f"
23398     done
23399
23400     # Let's still pretend it is `configure' which instantiates (i.e., don't
23401     # use $as_me), people would be surprised to read:
23402     #    /* config.h.  Generated by config.status.  */
23403     configure_input="Generated from "`IFS=:
23404           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23405     if test x"$ac_file" != x-; then
23406       configure_input="$ac_file.  $configure_input"
23407       { echo "$as_me:$LINENO: creating $ac_file" >&5
23408 echo "$as_me: creating $ac_file" >&6;}
23409     fi
23410
23411     case $ac_tag in
23412     *:-:* | *:-) cat >"$tmp/stdin";;
23413     esac
23414     ;;
23415   esac
23416
23417   ac_dir=`$as_dirname -- "$ac_file" ||
23418 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23419          X"$ac_file" : 'X\(//\)[^/]' \| \
23420          X"$ac_file" : 'X\(//\)$' \| \
23421          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23422 echo X"$ac_file" |
23423     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23424             s//\1/
23425             q
23426           }
23427           /^X\(\/\/\)[^/].*/{
23428             s//\1/
23429             q
23430           }
23431           /^X\(\/\/\)$/{
23432             s//\1/
23433             q
23434           }
23435           /^X\(\/\).*/{
23436             s//\1/
23437             q
23438           }
23439           s/.*/./; q'`
23440   { as_dir="$ac_dir"
23441   case $as_dir in #(
23442   -*) as_dir=./$as_dir;;
23443   esac
23444   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23445     as_dirs=
23446     while :; do
23447       case $as_dir in #(
23448       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23449       *) as_qdir=$as_dir;;
23450       esac
23451       as_dirs="'$as_qdir' $as_dirs"
23452       as_dir=`$as_dirname -- "$as_dir" ||
23453 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23454          X"$as_dir" : 'X\(//\)[^/]' \| \
23455          X"$as_dir" : 'X\(//\)$' \| \
23456          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23457 echo X"$as_dir" |
23458     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23459             s//\1/
23460             q
23461           }
23462           /^X\(\/\/\)[^/].*/{
23463             s//\1/
23464             q
23465           }
23466           /^X\(\/\/\)$/{
23467             s//\1/
23468             q
23469           }
23470           /^X\(\/\).*/{
23471             s//\1/
23472             q
23473           }
23474           s/.*/./; q'`
23475       test -d "$as_dir" && break
23476     done
23477     test -z "$as_dirs" || eval "mkdir $as_dirs"
23478   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23479 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23480    { (exit 1); exit 1; }; }; }
23481   ac_builddir=.
23482
23483 case "$ac_dir" in
23484 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23485 *)
23486   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23487   # A ".." for each directory in $ac_dir_suffix.
23488   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23489   case $ac_top_builddir_sub in
23490   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23491   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23492   esac ;;
23493 esac
23494 ac_abs_top_builddir=$ac_pwd
23495 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23496 # for backward compatibility:
23497 ac_top_builddir=$ac_top_build_prefix
23498
23499 case $srcdir in
23500   .)  # We are building in place.
23501     ac_srcdir=.
23502     ac_top_srcdir=$ac_top_builddir_sub
23503     ac_abs_top_srcdir=$ac_pwd ;;
23504   [\\/]* | ?:[\\/]* )  # Absolute name.
23505     ac_srcdir=$srcdir$ac_dir_suffix;
23506     ac_top_srcdir=$srcdir
23507     ac_abs_top_srcdir=$srcdir ;;
23508   *) # Relative name.
23509     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23510     ac_top_srcdir=$ac_top_build_prefix$srcdir
23511     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23512 esac
23513 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23514
23515
23516   case $ac_mode in
23517   :F)
23518   #
23519   # CONFIG_FILE
23520   #
23521
23522   case $INSTALL in
23523   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23524   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23525   esac
23526 _ACEOF
23527
23528 cat >>$CONFIG_STATUS <<\_ACEOF
23529 # If the template does not know about datarootdir, expand it.
23530 # FIXME: This hack should be removed a few years after 2.60.
23531 ac_datarootdir_hack=; ac_datarootdir_seen=
23532
23533 case `sed -n '/datarootdir/ {
23534   p
23535   q
23536 }
23537 /@datadir@/p
23538 /@docdir@/p
23539 /@infodir@/p
23540 /@localedir@/p
23541 /@mandir@/p
23542 ' $ac_file_inputs` in
23543 *datarootdir*) ac_datarootdir_seen=yes;;
23544 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23545   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23546 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23547 _ACEOF
23548 cat >>$CONFIG_STATUS <<_ACEOF
23549   ac_datarootdir_hack='
23550   s&@datadir@&$datadir&g
23551   s&@docdir@&$docdir&g
23552   s&@infodir@&$infodir&g
23553   s&@localedir@&$localedir&g
23554   s&@mandir@&$mandir&g
23555     s&\\\${datarootdir}&$datarootdir&g' ;;
23556 esac
23557 _ACEOF
23558
23559 # Neutralize VPATH when `$srcdir' = `.'.
23560 # Shell code in configure.ac might set extrasub.
23561 # FIXME: do we really want to maintain this feature?
23562 cat >>$CONFIG_STATUS <<_ACEOF
23563   sed "$ac_vpsub
23564 $extrasub
23565 _ACEOF
23566 cat >>$CONFIG_STATUS <<\_ACEOF
23567 :t
23568 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23569 s&@configure_input@&$configure_input&;t t
23570 s&@top_builddir@&$ac_top_builddir_sub&;t t
23571 s&@srcdir@&$ac_srcdir&;t t
23572 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23573 s&@top_srcdir@&$ac_top_srcdir&;t t
23574 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23575 s&@builddir@&$ac_builddir&;t t
23576 s&@abs_builddir@&$ac_abs_builddir&;t t
23577 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23578 s&@INSTALL@&$ac_INSTALL&;t t
23579 $ac_datarootdir_hack
23580 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
23581
23582 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23583   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23584   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23585   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23586 which seems to be undefined.  Please make sure it is defined." >&5
23587 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23588 which seems to be undefined.  Please make sure it is defined." >&2;}
23589
23590   rm -f "$tmp/stdin"
23591   case $ac_file in
23592   -) cat "$tmp/out"; rm -f "$tmp/out";;
23593   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23594   esac
23595  ;;
23596
23597
23598   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
23599 echo "$as_me: executing $ac_file commands" >&6;}
23600  ;;
23601   esac
23602
23603
23604   case $ac_file$ac_mode in
23605     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
23606   # Strip MF so we end up with the name of the file.
23607   mf=`echo "$mf" | sed -e 's/:.*$//'`
23608   # Check whether this is an Automake generated Makefile or not.
23609   # We used to match only the files named `Makefile.in', but
23610   # some people rename them; so instead we look at the file content.
23611   # Grep'ing the first line is not enough: some people post-process
23612   # each Makefile.in and add a new line on top of each file to say so.
23613   # So let's grep whole file.
23614   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
23615     dirpart=`$as_dirname -- "$mf" ||
23616 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23617          X"$mf" : 'X\(//\)[^/]' \| \
23618          X"$mf" : 'X\(//\)$' \| \
23619          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23620 echo X"$mf" |
23621     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23622             s//\1/
23623             q
23624           }
23625           /^X\(\/\/\)[^/].*/{
23626             s//\1/
23627             q
23628           }
23629           /^X\(\/\/\)$/{
23630             s//\1/
23631             q
23632           }
23633           /^X\(\/\).*/{
23634             s//\1/
23635             q
23636           }
23637           s/.*/./; q'`
23638   else
23639     continue
23640   fi
23641   grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
23642   # Extract the definition of DEP_FILES from the Makefile without
23643   # running `make'.
23644   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23645   test -z "$DEPDIR" && continue
23646   # When using ansi2knr, U may be empty or an underscore; expand it
23647   U=`sed -n 's/^U = //p' < "$mf"`
23648   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
23649   # We invoke sed twice because it is the simplest approach to
23650   # changing $(DEPDIR) to its actual value in the expansion.
23651   for file in `sed -n '
23652     /^DEP_FILES = .*\\\\$/ {
23653       s/^DEP_FILES = //
23654       :loop
23655         s/\\\\$//
23656         p
23657         n
23658         /\\\\$/ b loop
23659       p
23660     }
23661     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
23662        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23663     # Make sure the directory exists.
23664     test -f "$dirpart/$file" && continue
23665     fdir=`$as_dirname -- "$file" ||
23666 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23667          X"$file" : 'X\(//\)[^/]' \| \
23668          X"$file" : 'X\(//\)$' \| \
23669          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23670 echo X"$file" |
23671     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23672             s//\1/
23673             q
23674           }
23675           /^X\(\/\/\)[^/].*/{
23676             s//\1/
23677             q
23678           }
23679           /^X\(\/\/\)$/{
23680             s//\1/
23681             q
23682           }
23683           /^X\(\/\).*/{
23684             s//\1/
23685             q
23686           }
23687           s/.*/./; q'`
23688     { as_dir=$dirpart/$fdir
23689   case $as_dir in #(
23690   -*) as_dir=./$as_dir;;
23691   esac
23692   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23693     as_dirs=
23694     while :; do
23695       case $as_dir in #(
23696       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23697       *) as_qdir=$as_dir;;
23698       esac
23699       as_dirs="'$as_qdir' $as_dirs"
23700       as_dir=`$as_dirname -- "$as_dir" ||
23701 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23702          X"$as_dir" : 'X\(//\)[^/]' \| \
23703          X"$as_dir" : 'X\(//\)$' \| \
23704          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23705 echo X"$as_dir" |
23706     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23707             s//\1/
23708             q
23709           }
23710           /^X\(\/\/\)[^/].*/{
23711             s//\1/
23712             q
23713           }
23714           /^X\(\/\/\)$/{
23715             s//\1/
23716             q
23717           }
23718           /^X\(\/\).*/{
23719             s//\1/
23720             q
23721           }
23722           s/.*/./; q'`
23723       test -d "$as_dir" && break
23724     done
23725     test -z "$as_dirs" || eval "mkdir $as_dirs"
23726   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23727 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23728    { (exit 1); exit 1; }; }; }
23729     # echo "creating $dirpart/$file"
23730     echo '# dummy' > "$dirpart/$file"
23731   done
23732 done
23733  ;;
23734
23735   esac
23736 done # for ac_tag
23737
23738
23739 { (exit 0); exit 0; }
23740 _ACEOF
23741 chmod +x $CONFIG_STATUS
23742 ac_clean_files=$ac_clean_files_save
23743
23744
23745 # configure is writing to config.log, and then calls config.status.
23746 # config.status does its own redirection, appending to config.log.
23747 # Unfortunately, on DOS this fails, as config.log is still kept open
23748 # by configure, so config.status won't be able to write to it; its
23749 # output is simply discarded.  So we exec the FD to /dev/null,
23750 # effectively closing config.log, so it can be properly (re)opened and
23751 # appended to by config.status.  When coming back to configure, we
23752 # need to make the FD available again.
23753 if test "$no_create" != yes; then
23754   ac_cs_success=:
23755   ac_config_status_args=
23756   test "$silent" = yes &&
23757     ac_config_status_args="$ac_config_status_args --quiet"
23758   exec 5>/dev/null
23759   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23760   exec 5>>config.log
23761   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23762   # would make configure fail if this is the last instruction.
23763   $ac_cs_success || { (exit 1); exit 1; }
23764 fi
23765
23766