Honour CFLAGS, support for non-gcc compilers
[mplib] / src / texk / web2c / mpdir / 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="mp.w"
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 am__isrc
811 CYGPATH_W
812 PACKAGE
813 VERSION
814 ACLOCAL
815 AUTOCONF
816 AUTOMAKE
817 AUTOHEADER
818 MAKEINFO
819 install_sh
820 STRIP
821 INSTALL_STRIP_PROGRAM
822 mkdir_p
823 AWK
824 SET_MAKE
825 am__leading_dot
826 AMTAR
827 am__tar
828 am__untar
829 build
830 build_cpu
831 build_vendor
832 build_os
833 host
834 host_cpu
835 host_vendor
836 host_os
837 CC
838 CFLAGS
839 LDFLAGS
840 CPPFLAGS
841 ac_ct_CC
842 EXEEXT
843 OBJEXT
844 DEPDIR
845 am__include
846 am__quote
847 AMDEP_TRUE
848 AMDEP_FALSE
849 AMDEPBACKSLASH
850 CCDEPMODE
851 am__fastdepCC_TRUE
852 am__fastdepCC_FALSE
853 SED
854 GREP
855 EGREP
856 LN_S
857 ECHO
858 AR
859 RANLIB
860 CPP
861 CXX
862 CXXFLAGS
863 ac_ct_CXX
864 CXXDEPMODE
865 am__fastdepCXX_TRUE
866 am__fastdepCXX_FALSE
867 CXXCPP
868 F77
869 FFLAGS
870 ac_ct_F77
871 LIBTOOL
872 LIBOBJS
873 LTLIBOBJS'
874 ac_subst_files=''
875       ac_precious_vars='build_alias
876 host_alias
877 target_alias
878 CC
879 CFLAGS
880 LDFLAGS
881 LIBS
882 CPPFLAGS
883 CPP
884 CXX
885 CXXFLAGS
886 CCC
887 CXXCPP
888 F77
889 FFLAGS'
890
891
892 # Initialize some variables set by options.
893 ac_init_help=
894 ac_init_version=false
895 # The variables have the same names as the options, with
896 # dashes changed to underlines.
897 cache_file=/dev/null
898 exec_prefix=NONE
899 no_create=
900 no_recursion=
901 prefix=NONE
902 program_prefix=NONE
903 program_suffix=NONE
904 program_transform_name=s,x,x,
905 silent=
906 site=
907 srcdir=
908 verbose=
909 x_includes=NONE
910 x_libraries=NONE
911
912 # Installation directory options.
913 # These are left unexpanded so users can "make install exec_prefix=/foo"
914 # and all the variables that are supposed to be based on exec_prefix
915 # by default will actually change.
916 # Use braces instead of parens because sh, perl, etc. also accept them.
917 # (The list follows the same order as the GNU Coding Standards.)
918 bindir='${exec_prefix}/bin'
919 sbindir='${exec_prefix}/sbin'
920 libexecdir='${exec_prefix}/libexec'
921 datarootdir='${prefix}/share'
922 datadir='${datarootdir}'
923 sysconfdir='${prefix}/etc'
924 sharedstatedir='${prefix}/com'
925 localstatedir='${prefix}/var'
926 includedir='${prefix}/include'
927 oldincludedir='/usr/include'
928 docdir='${datarootdir}/doc/${PACKAGE}'
929 infodir='${datarootdir}/info'
930 htmldir='${docdir}'
931 dvidir='${docdir}'
932 pdfdir='${docdir}'
933 psdir='${docdir}'
934 libdir='${exec_prefix}/lib'
935 localedir='${datarootdir}/locale'
936 mandir='${datarootdir}/man'
937
938 ac_prev=
939 ac_dashdash=
940 for ac_option
941 do
942   # If the previous option needs an argument, assign it.
943   if test -n "$ac_prev"; then
944     eval $ac_prev=\$ac_option
945     ac_prev=
946     continue
947   fi
948
949   case $ac_option in
950   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
951   *)    ac_optarg=yes ;;
952   esac
953
954   # Accept the important Cygnus configure options, so we can diagnose typos.
955
956   case $ac_dashdash$ac_option in
957   --)
958     ac_dashdash=yes ;;
959
960   -bindir | --bindir | --bindi | --bind | --bin | --bi)
961     ac_prev=bindir ;;
962   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
963     bindir=$ac_optarg ;;
964
965   -build | --build | --buil | --bui | --bu)
966     ac_prev=build_alias ;;
967   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
968     build_alias=$ac_optarg ;;
969
970   -cache-file | --cache-file | --cache-fil | --cache-fi \
971   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
972     ac_prev=cache_file ;;
973   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
974   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
975     cache_file=$ac_optarg ;;
976
977   --config-cache | -C)
978     cache_file=config.cache ;;
979
980   -datadir | --datadir | --datadi | --datad)
981     ac_prev=datadir ;;
982   -datadir=* | --datadir=* | --datadi=* | --datad=*)
983     datadir=$ac_optarg ;;
984
985   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
986   | --dataroo | --dataro | --datar)
987     ac_prev=datarootdir ;;
988   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
989   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
990     datarootdir=$ac_optarg ;;
991
992   -disable-* | --disable-*)
993     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
994     # Reject names that are not valid shell variable names.
995     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
996       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
997    { (exit 1); exit 1; }; }
998     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
999     eval enable_$ac_feature=no ;;
1000
1001   -docdir | --docdir | --docdi | --doc | --do)
1002     ac_prev=docdir ;;
1003   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1004     docdir=$ac_optarg ;;
1005
1006   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1007     ac_prev=dvidir ;;
1008   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1009     dvidir=$ac_optarg ;;
1010
1011   -enable-* | --enable-*)
1012     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1013     # Reject names that are not valid shell variable names.
1014     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1015       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1016    { (exit 1); exit 1; }; }
1017     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1018     eval enable_$ac_feature=\$ac_optarg ;;
1019
1020   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1021   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1022   | --exec | --exe | --ex)
1023     ac_prev=exec_prefix ;;
1024   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1025   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1026   | --exec=* | --exe=* | --ex=*)
1027     exec_prefix=$ac_optarg ;;
1028
1029   -gas | --gas | --ga | --g)
1030     # Obsolete; use --with-gas.
1031     with_gas=yes ;;
1032
1033   -help | --help | --hel | --he | -h)
1034     ac_init_help=long ;;
1035   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1036     ac_init_help=recursive ;;
1037   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1038     ac_init_help=short ;;
1039
1040   -host | --host | --hos | --ho)
1041     ac_prev=host_alias ;;
1042   -host=* | --host=* | --hos=* | --ho=*)
1043     host_alias=$ac_optarg ;;
1044
1045   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1046     ac_prev=htmldir ;;
1047   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1048   | --ht=*)
1049     htmldir=$ac_optarg ;;
1050
1051   -includedir | --includedir | --includedi | --included | --include \
1052   | --includ | --inclu | --incl | --inc)
1053     ac_prev=includedir ;;
1054   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1055   | --includ=* | --inclu=* | --incl=* | --inc=*)
1056     includedir=$ac_optarg ;;
1057
1058   -infodir | --infodir | --infodi | --infod | --info | --inf)
1059     ac_prev=infodir ;;
1060   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1061     infodir=$ac_optarg ;;
1062
1063   -libdir | --libdir | --libdi | --libd)
1064     ac_prev=libdir ;;
1065   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1066     libdir=$ac_optarg ;;
1067
1068   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1069   | --libexe | --libex | --libe)
1070     ac_prev=libexecdir ;;
1071   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1072   | --libexe=* | --libex=* | --libe=*)
1073     libexecdir=$ac_optarg ;;
1074
1075   -localedir | --localedir | --localedi | --localed | --locale)
1076     ac_prev=localedir ;;
1077   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1078     localedir=$ac_optarg ;;
1079
1080   -localstatedir | --localstatedir | --localstatedi | --localstated \
1081   | --localstate | --localstat | --localsta | --localst | --locals)
1082     ac_prev=localstatedir ;;
1083   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1084   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1085     localstatedir=$ac_optarg ;;
1086
1087   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1088     ac_prev=mandir ;;
1089   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1090     mandir=$ac_optarg ;;
1091
1092   -nfp | --nfp | --nf)
1093     # Obsolete; use --without-fp.
1094     with_fp=no ;;
1095
1096   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1097   | --no-cr | --no-c | -n)
1098     no_create=yes ;;
1099
1100   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1101   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1102     no_recursion=yes ;;
1103
1104   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1105   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1106   | --oldin | --oldi | --old | --ol | --o)
1107     ac_prev=oldincludedir ;;
1108   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1109   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1110   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1111     oldincludedir=$ac_optarg ;;
1112
1113   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1114     ac_prev=prefix ;;
1115   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1116     prefix=$ac_optarg ;;
1117
1118   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1119   | --program-pre | --program-pr | --program-p)
1120     ac_prev=program_prefix ;;
1121   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1122   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1123     program_prefix=$ac_optarg ;;
1124
1125   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1126   | --program-suf | --program-su | --program-s)
1127     ac_prev=program_suffix ;;
1128   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1129   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1130     program_suffix=$ac_optarg ;;
1131
1132   -program-transform-name | --program-transform-name \
1133   | --program-transform-nam | --program-transform-na \
1134   | --program-transform-n | --program-transform- \
1135   | --program-transform | --program-transfor \
1136   | --program-transfo | --program-transf \
1137   | --program-trans | --program-tran \
1138   | --progr-tra | --program-tr | --program-t)
1139     ac_prev=program_transform_name ;;
1140   -program-transform-name=* | --program-transform-name=* \
1141   | --program-transform-nam=* | --program-transform-na=* \
1142   | --program-transform-n=* | --program-transform-=* \
1143   | --program-transform=* | --program-transfor=* \
1144   | --program-transfo=* | --program-transf=* \
1145   | --program-trans=* | --program-tran=* \
1146   | --progr-tra=* | --program-tr=* | --program-t=*)
1147     program_transform_name=$ac_optarg ;;
1148
1149   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1150     ac_prev=pdfdir ;;
1151   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1152     pdfdir=$ac_optarg ;;
1153
1154   -psdir | --psdir | --psdi | --psd | --ps)
1155     ac_prev=psdir ;;
1156   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1157     psdir=$ac_optarg ;;
1158
1159   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1160   | -silent | --silent | --silen | --sile | --sil)
1161     silent=yes ;;
1162
1163   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1164     ac_prev=sbindir ;;
1165   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1166   | --sbi=* | --sb=*)
1167     sbindir=$ac_optarg ;;
1168
1169   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1170   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1171   | --sharedst | --shareds | --shared | --share | --shar \
1172   | --sha | --sh)
1173     ac_prev=sharedstatedir ;;
1174   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1175   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1176   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1177   | --sha=* | --sh=*)
1178     sharedstatedir=$ac_optarg ;;
1179
1180   -site | --site | --sit)
1181     ac_prev=site ;;
1182   -site=* | --site=* | --sit=*)
1183     site=$ac_optarg ;;
1184
1185   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1186     ac_prev=srcdir ;;
1187   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1188     srcdir=$ac_optarg ;;
1189
1190   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1191   | --syscon | --sysco | --sysc | --sys | --sy)
1192     ac_prev=sysconfdir ;;
1193   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1194   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1195     sysconfdir=$ac_optarg ;;
1196
1197   -target | --target | --targe | --targ | --tar | --ta | --t)
1198     ac_prev=target_alias ;;
1199   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1200     target_alias=$ac_optarg ;;
1201
1202   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1203     verbose=yes ;;
1204
1205   -version | --version | --versio | --versi | --vers | -V)
1206     ac_init_version=: ;;
1207
1208   -with-* | --with-*)
1209     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1210     # Reject names that are not valid shell variable names.
1211     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1212       { echo "$as_me: error: invalid package name: $ac_package" >&2
1213    { (exit 1); exit 1; }; }
1214     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1215     eval with_$ac_package=\$ac_optarg ;;
1216
1217   -without-* | --without-*)
1218     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1219     # Reject names that are not valid shell variable names.
1220     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1221       { echo "$as_me: error: invalid package name: $ac_package" >&2
1222    { (exit 1); exit 1; }; }
1223     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1224     eval with_$ac_package=no ;;
1225
1226   --x)
1227     # Obsolete; use --with-x.
1228     with_x=yes ;;
1229
1230   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1231   | --x-incl | --x-inc | --x-in | --x-i)
1232     ac_prev=x_includes ;;
1233   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1234   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1235     x_includes=$ac_optarg ;;
1236
1237   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1238   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1239     ac_prev=x_libraries ;;
1240   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1241   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1242     x_libraries=$ac_optarg ;;
1243
1244   -*) { echo "$as_me: error: unrecognized option: $ac_option
1245 Try \`$0 --help' for more information." >&2
1246    { (exit 1); exit 1; }; }
1247     ;;
1248
1249   *=*)
1250     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1251     # Reject names that are not valid shell variable names.
1252     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1253       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1254    { (exit 1); exit 1; }; }
1255     eval $ac_envvar=\$ac_optarg
1256     export $ac_envvar ;;
1257
1258   *)
1259     # FIXME: should be removed in autoconf 3.0.
1260     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1261     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1262       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1263     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1264     ;;
1265
1266   esac
1267 done
1268
1269 if test -n "$ac_prev"; then
1270   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1271   { echo "$as_me: error: missing argument to $ac_option" >&2
1272    { (exit 1); exit 1; }; }
1273 fi
1274
1275 # Be sure to have absolute directory names.
1276 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1277                 datadir sysconfdir sharedstatedir localstatedir includedir \
1278                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1279                 libdir localedir mandir
1280 do
1281   eval ac_val=\$$ac_var
1282   case $ac_val in
1283     [\\/$]* | ?:[\\/]* )  continue;;
1284     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1285   esac
1286   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1287    { (exit 1); exit 1; }; }
1288 done
1289
1290 # There might be people who depend on the old broken behavior: `$host'
1291 # used to hold the argument of --host etc.
1292 # FIXME: To remove some day.
1293 build=$build_alias
1294 host=$host_alias
1295 target=$target_alias
1296
1297 # FIXME: To remove some day.
1298 if test "x$host_alias" != x; then
1299   if test "x$build_alias" = x; then
1300     cross_compiling=maybe
1301     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1302     If a cross compiler is detected then cross compile mode will be used." >&2
1303   elif test "x$build_alias" != "x$host_alias"; then
1304     cross_compiling=yes
1305   fi
1306 fi
1307
1308 ac_tool_prefix=
1309 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1310
1311 test "$silent" = yes && exec 6>/dev/null
1312
1313
1314 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1315 ac_ls_di=`ls -di .` &&
1316 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1317   { echo "$as_me: error: Working directory cannot be determined" >&2
1318    { (exit 1); exit 1; }; }
1319 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1320   { echo "$as_me: error: pwd does not report name of working directory" >&2
1321    { (exit 1); exit 1; }; }
1322
1323
1324 # Find the source files, if location was not specified.
1325 if test -z "$srcdir"; then
1326   ac_srcdir_defaulted=yes
1327   # Try the directory containing this script, then the parent directory.
1328   ac_confdir=`$as_dirname -- "$0" ||
1329 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1330          X"$0" : 'X\(//\)[^/]' \| \
1331          X"$0" : 'X\(//\)$' \| \
1332          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1333 echo X"$0" |
1334     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1335             s//\1/
1336             q
1337           }
1338           /^X\(\/\/\)[^/].*/{
1339             s//\1/
1340             q
1341           }
1342           /^X\(\/\/\)$/{
1343             s//\1/
1344             q
1345           }
1346           /^X\(\/\).*/{
1347             s//\1/
1348             q
1349           }
1350           s/.*/./; q'`
1351   srcdir=$ac_confdir
1352   if test ! -r "$srcdir/$ac_unique_file"; then
1353     srcdir=..
1354   fi
1355 else
1356   ac_srcdir_defaulted=no
1357 fi
1358 if test ! -r "$srcdir/$ac_unique_file"; then
1359   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1360   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1361    { (exit 1); exit 1; }; }
1362 fi
1363 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1364 ac_abs_confdir=`(
1365         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1366    { (exit 1); exit 1; }; }
1367         pwd)`
1368 # When building in place, set srcdir=.
1369 if test "$ac_abs_confdir" = "$ac_pwd"; then
1370   srcdir=.
1371 fi
1372 # Remove unnecessary trailing slashes from srcdir.
1373 # Double slashes in file names in object file debugging info
1374 # mess up M-x gdb in Emacs.
1375 case $srcdir in
1376 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1377 esac
1378 for ac_var in $ac_precious_vars; do
1379   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1380   eval ac_env_${ac_var}_value=\$${ac_var}
1381   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1382   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1383 done
1384
1385 #
1386 # Report the --help message.
1387 #
1388 if test "$ac_init_help" = "long"; then
1389   # Omit some internal or obsolete options to make the list less imposing.
1390   # This message is too long to be a string in the A/UX 3.1 sh.
1391   cat <<_ACEOF
1392 \`configure' configures this package to adapt to many kinds of systems.
1393
1394 Usage: $0 [OPTION]... [VAR=VALUE]...
1395
1396 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1397 VAR=VALUE.  See below for descriptions of some of the useful variables.
1398
1399 Defaults for the options are specified in brackets.
1400
1401 Configuration:
1402   -h, --help              display this help and exit
1403       --help=short        display options specific to this package
1404       --help=recursive    display the short help of all the included packages
1405   -V, --version           display version information and exit
1406   -q, --quiet, --silent   do not print \`checking...' messages
1407       --cache-file=FILE   cache test results in FILE [disabled]
1408   -C, --config-cache      alias for \`--cache-file=config.cache'
1409   -n, --no-create         do not create output files
1410       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1411
1412 Installation directories:
1413   --prefix=PREFIX         install architecture-independent files in PREFIX
1414                           [$ac_default_prefix]
1415   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1416                           [PREFIX]
1417
1418 By default, \`make install' will install all the files in
1419 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1420 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1421 for instance \`--prefix=\$HOME'.
1422
1423 For better control, use the options below.
1424
1425 Fine tuning of the installation directories:
1426   --bindir=DIR           user executables [EPREFIX/bin]
1427   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1428   --libexecdir=DIR       program executables [EPREFIX/libexec]
1429   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1430   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1431   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1432   --libdir=DIR           object code libraries [EPREFIX/lib]
1433   --includedir=DIR       C header files [PREFIX/include]
1434   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1435   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1436   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1437   --infodir=DIR          info documentation [DATAROOTDIR/info]
1438   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1439   --mandir=DIR           man documentation [DATAROOTDIR/man]
1440   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1441   --htmldir=DIR          html documentation [DOCDIR]
1442   --dvidir=DIR           dvi documentation [DOCDIR]
1443   --pdfdir=DIR           pdf documentation [DOCDIR]
1444   --psdir=DIR            ps documentation [DOCDIR]
1445 _ACEOF
1446
1447   cat <<\_ACEOF
1448
1449 Program names:
1450   --program-prefix=PREFIX            prepend PREFIX to installed program names
1451   --program-suffix=SUFFIX            append SUFFIX to installed program names
1452   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1453
1454 System types:
1455   --build=BUILD     configure for building on BUILD [guessed]
1456   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1457 _ACEOF
1458 fi
1459
1460 if test -n "$ac_init_help"; then
1461
1462   cat <<\_ACEOF
1463
1464 Optional Features:
1465   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1466   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1467   --enable-shared[=PKGS]  build shared libraries [default=yes]
1468   --enable-static[=PKGS]  build static libraries [default=yes]
1469   --enable-fast-install[=PKGS]
1470                           optimize for fast installation [default=yes]
1471   --disable-dependency-tracking  speeds up one-time build
1472   --enable-dependency-tracking   do not reject slow dependency extractors
1473   --disable-libtool-lock  avoid locking (might break parallel builds)
1474
1475 Optional Packages:
1476   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1477   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1478   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1479   --with-pic              try to use only PIC/non-PIC objects [default=use
1480                           both]
1481   --with-tags[=TAGS]      include additional configurations [automatic]
1482
1483 Some influential environment variables:
1484   CC          C compiler command
1485   CFLAGS      C compiler flags
1486   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1487               nonstandard directory <lib dir>
1488   LIBS        libraries to pass to the linker, e.g. -l<library>
1489   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1490               you have headers in a nonstandard directory <include dir>
1491   CPP         C preprocessor
1492   CXX         C++ compiler command
1493   CXXFLAGS    C++ compiler flags
1494   CXXCPP      C++ preprocessor
1495   F77         Fortran 77 compiler command
1496   FFLAGS      Fortran 77 compiler flags
1497
1498 Use these variables to override the choices made by `configure' or to help
1499 it to find libraries and programs with nonstandard names/locations.
1500
1501 _ACEOF
1502 ac_status=$?
1503 fi
1504
1505 if test "$ac_init_help" = "recursive"; then
1506   # If there are subdirs, report their specific --help.
1507   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1508     test -d "$ac_dir" || continue
1509     ac_builddir=.
1510
1511 case "$ac_dir" in
1512 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1513 *)
1514   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1515   # A ".." for each directory in $ac_dir_suffix.
1516   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1517   case $ac_top_builddir_sub in
1518   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1519   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1520   esac ;;
1521 esac
1522 ac_abs_top_builddir=$ac_pwd
1523 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1524 # for backward compatibility:
1525 ac_top_builddir=$ac_top_build_prefix
1526
1527 case $srcdir in
1528   .)  # We are building in place.
1529     ac_srcdir=.
1530     ac_top_srcdir=$ac_top_builddir_sub
1531     ac_abs_top_srcdir=$ac_pwd ;;
1532   [\\/]* | ?:[\\/]* )  # Absolute name.
1533     ac_srcdir=$srcdir$ac_dir_suffix;
1534     ac_top_srcdir=$srcdir
1535     ac_abs_top_srcdir=$srcdir ;;
1536   *) # Relative name.
1537     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1538     ac_top_srcdir=$ac_top_build_prefix$srcdir
1539     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1540 esac
1541 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1542
1543     cd "$ac_dir" || { ac_status=$?; continue; }
1544     # Check for guested configure.
1545     if test -f "$ac_srcdir/configure.gnu"; then
1546       echo &&
1547       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1548     elif test -f "$ac_srcdir/configure"; then
1549       echo &&
1550       $SHELL "$ac_srcdir/configure" --help=recursive
1551     else
1552       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1553     fi || ac_status=$?
1554     cd "$ac_pwd" || { ac_status=$?; break; }
1555   done
1556 fi
1557
1558 test -n "$ac_init_help" && exit $ac_status
1559 if $ac_init_version; then
1560   cat <<\_ACEOF
1561 configure
1562 generated by GNU Autoconf 2.61
1563
1564 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1565 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1566 This configure script is free software; the Free Software Foundation
1567 gives unlimited permission to copy, distribute and modify it.
1568 _ACEOF
1569   exit
1570 fi
1571 cat >config.log <<_ACEOF
1572 This file contains any messages produced by compilers while
1573 running configure, to aid debugging if configure makes a mistake.
1574
1575 It was created by $as_me, which was
1576 generated by GNU Autoconf 2.61.  Invocation command line was
1577
1578   $ $0 $@
1579
1580 _ACEOF
1581 exec 5>>config.log
1582 {
1583 cat <<_ASUNAME
1584 ## --------- ##
1585 ## Platform. ##
1586 ## --------- ##
1587
1588 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1589 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1590 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1591 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1592 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1593
1594 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1595 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1596
1597 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1598 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1599 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1600 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1601 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1602 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1603 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1604
1605 _ASUNAME
1606
1607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1608 for as_dir in $PATH
1609 do
1610   IFS=$as_save_IFS
1611   test -z "$as_dir" && as_dir=.
1612   echo "PATH: $as_dir"
1613 done
1614 IFS=$as_save_IFS
1615
1616 } >&5
1617
1618 cat >&5 <<_ACEOF
1619
1620
1621 ## ----------- ##
1622 ## Core tests. ##
1623 ## ----------- ##
1624
1625 _ACEOF
1626
1627
1628 # Keep a trace of the command line.
1629 # Strip out --no-create and --no-recursion so they do not pile up.
1630 # Strip out --silent because we don't want to record it for future runs.
1631 # Also quote any args containing shell meta-characters.
1632 # Make two passes to allow for proper duplicate-argument suppression.
1633 ac_configure_args=
1634 ac_configure_args0=
1635 ac_configure_args1=
1636 ac_must_keep_next=false
1637 for ac_pass in 1 2
1638 do
1639   for ac_arg
1640   do
1641     case $ac_arg in
1642     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1643     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1644     | -silent | --silent | --silen | --sile | --sil)
1645       continue ;;
1646     *\'*)
1647       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1648     esac
1649     case $ac_pass in
1650     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1651     2)
1652       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1653       if test $ac_must_keep_next = true; then
1654         ac_must_keep_next=false # Got value, back to normal.
1655       else
1656         case $ac_arg in
1657           *=* | --config-cache | -C | -disable-* | --disable-* \
1658           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1659           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1660           | -with-* | --with-* | -without-* | --without-* | --x)
1661             case "$ac_configure_args0 " in
1662               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1663             esac
1664             ;;
1665           -* ) ac_must_keep_next=true ;;
1666         esac
1667       fi
1668       ac_configure_args="$ac_configure_args '$ac_arg'"
1669       ;;
1670     esac
1671   done
1672 done
1673 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1674 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1675
1676 # When interrupted or exit'd, cleanup temporary files, and complete
1677 # config.log.  We remove comments because anyway the quotes in there
1678 # would cause problems or look ugly.
1679 # WARNING: Use '\'' to represent an apostrophe within the trap.
1680 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1681 trap 'exit_status=$?
1682   # Save into config.log some information that might help in debugging.
1683   {
1684     echo
1685
1686     cat <<\_ASBOX
1687 ## ---------------- ##
1688 ## Cache variables. ##
1689 ## ---------------- ##
1690 _ASBOX
1691     echo
1692     # The following way of writing the cache mishandles newlines in values,
1693 (
1694   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1695     eval ac_val=\$$ac_var
1696     case $ac_val in #(
1697     *${as_nl}*)
1698       case $ac_var in #(
1699       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1700 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1701       esac
1702       case $ac_var in #(
1703       _ | IFS | as_nl) ;; #(
1704       *) $as_unset $ac_var ;;
1705       esac ;;
1706     esac
1707   done
1708   (set) 2>&1 |
1709     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1710     *${as_nl}ac_space=\ *)
1711       sed -n \
1712         "s/'\''/'\''\\\\'\'''\''/g;
1713           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1714       ;; #(
1715     *)
1716       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1717       ;;
1718     esac |
1719     sort
1720 )
1721     echo
1722
1723     cat <<\_ASBOX
1724 ## ----------------- ##
1725 ## Output variables. ##
1726 ## ----------------- ##
1727 _ASBOX
1728     echo
1729     for ac_var in $ac_subst_vars
1730     do
1731       eval ac_val=\$$ac_var
1732       case $ac_val in
1733       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1734       esac
1735       echo "$ac_var='\''$ac_val'\''"
1736     done | sort
1737     echo
1738
1739     if test -n "$ac_subst_files"; then
1740       cat <<\_ASBOX
1741 ## ------------------- ##
1742 ## File substitutions. ##
1743 ## ------------------- ##
1744 _ASBOX
1745       echo
1746       for ac_var in $ac_subst_files
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     fi
1756
1757     if test -s confdefs.h; then
1758       cat <<\_ASBOX
1759 ## ----------- ##
1760 ## confdefs.h. ##
1761 ## ----------- ##
1762 _ASBOX
1763       echo
1764       cat confdefs.h
1765       echo
1766     fi
1767     test "$ac_signal" != 0 &&
1768       echo "$as_me: caught signal $ac_signal"
1769     echo "$as_me: exit $exit_status"
1770   } >&5
1771   rm -f core *.core core.conftest.* &&
1772     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1773     exit $exit_status
1774 ' 0
1775 for ac_signal in 1 2 13 15; do
1776   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1777 done
1778 ac_signal=0
1779
1780 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1781 rm -f -r conftest* confdefs.h
1782
1783 # Predefined preprocessor variables.
1784
1785 cat >>confdefs.h <<_ACEOF
1786 #define PACKAGE_NAME "$PACKAGE_NAME"
1787 _ACEOF
1788
1789
1790 cat >>confdefs.h <<_ACEOF
1791 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1792 _ACEOF
1793
1794
1795 cat >>confdefs.h <<_ACEOF
1796 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1797 _ACEOF
1798
1799
1800 cat >>confdefs.h <<_ACEOF
1801 #define PACKAGE_STRING "$PACKAGE_STRING"
1802 _ACEOF
1803
1804
1805 cat >>confdefs.h <<_ACEOF
1806 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1807 _ACEOF
1808
1809
1810 # Let the site file select an alternate cache file if it wants to.
1811 # Prefer explicitly selected file to automatically selected ones.
1812 if test -n "$CONFIG_SITE"; then
1813   set x "$CONFIG_SITE"
1814 elif test "x$prefix" != xNONE; then
1815   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1816 else
1817   set x "$ac_default_prefix/share/config.site" \
1818         "$ac_default_prefix/etc/config.site"
1819 fi
1820 shift
1821 for ac_site_file
1822 do
1823   if test -r "$ac_site_file"; then
1824     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1825 echo "$as_me: loading site script $ac_site_file" >&6;}
1826     sed 's/^/| /' "$ac_site_file" >&5
1827     . "$ac_site_file"
1828   fi
1829 done
1830
1831 if test -r "$cache_file"; then
1832   # Some versions of bash will fail to source /dev/null (special
1833   # files actually), so we avoid doing that.
1834   if test -f "$cache_file"; then
1835     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1836 echo "$as_me: loading cache $cache_file" >&6;}
1837     case $cache_file in
1838       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1839       *)                      . "./$cache_file";;
1840     esac
1841   fi
1842 else
1843   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1844 echo "$as_me: creating cache $cache_file" >&6;}
1845   >$cache_file
1846 fi
1847
1848 # Check that the precious variables saved in the cache have kept the same
1849 # value.
1850 ac_cache_corrupted=false
1851 for ac_var in $ac_precious_vars; do
1852   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1853   eval ac_new_set=\$ac_env_${ac_var}_set
1854   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1855   eval ac_new_val=\$ac_env_${ac_var}_value
1856   case $ac_old_set,$ac_new_set in
1857     set,)
1858       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1859 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1860       ac_cache_corrupted=: ;;
1861     ,set)
1862       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1863 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1864       ac_cache_corrupted=: ;;
1865     ,);;
1866     *)
1867       if test "x$ac_old_val" != "x$ac_new_val"; then
1868         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1869 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1870         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1871 echo "$as_me:   former value:  $ac_old_val" >&2;}
1872         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1873 echo "$as_me:   current value: $ac_new_val" >&2;}
1874         ac_cache_corrupted=:
1875       fi;;
1876   esac
1877   # Pass precious variables to config.status.
1878   if test "$ac_new_set" = set; then
1879     case $ac_new_val in
1880     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1881     *) ac_arg=$ac_var=$ac_new_val ;;
1882     esac
1883     case " $ac_configure_args " in
1884       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1885       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1886     esac
1887   fi
1888 done
1889 if $ac_cache_corrupted; then
1890   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1891 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1892   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1893 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1894    { (exit 1); exit 1; }; }
1895 fi
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913 ac_ext=c
1914 ac_cpp='$CPP $CPPFLAGS'
1915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1917 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1918
1919
1920 am__api_version='1.10'
1921
1922 ac_aux_dir=
1923 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1924   if test -f "$ac_dir/install-sh"; then
1925     ac_aux_dir=$ac_dir
1926     ac_install_sh="$ac_aux_dir/install-sh -c"
1927     break
1928   elif test -f "$ac_dir/install.sh"; then
1929     ac_aux_dir=$ac_dir
1930     ac_install_sh="$ac_aux_dir/install.sh -c"
1931     break
1932   elif test -f "$ac_dir/shtool"; then
1933     ac_aux_dir=$ac_dir
1934     ac_install_sh="$ac_aux_dir/shtool install -c"
1935     break
1936   fi
1937 done
1938 if test -z "$ac_aux_dir"; then
1939   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1940 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1941    { (exit 1); exit 1; }; }
1942 fi
1943
1944 # These three variables are undocumented and unsupported,
1945 # and are intended to be withdrawn in a future Autoconf release.
1946 # They can cause serious problems if a builder's source tree is in a directory
1947 # whose full name contains unusual characters.
1948 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1949 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1950 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1951
1952
1953 # Find a good install program.  We prefer a C program (faster),
1954 # so one script is as good as another.  But avoid the broken or
1955 # incompatible versions:
1956 # SysV /etc/install, /usr/sbin/install
1957 # SunOS /usr/etc/install
1958 # IRIX /sbin/install
1959 # AIX /bin/install
1960 # AmigaOS /C/install, which installs bootblocks on floppy discs
1961 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1962 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1963 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1964 # OS/2's system install, which has a completely different semantic
1965 # ./install, which can be erroneously created by make from ./install.sh.
1966 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1967 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1968 if test -z "$INSTALL"; then
1969 if test "${ac_cv_path_install+set}" = set; then
1970   echo $ECHO_N "(cached) $ECHO_C" >&6
1971 else
1972   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1973 for as_dir in $PATH
1974 do
1975   IFS=$as_save_IFS
1976   test -z "$as_dir" && as_dir=.
1977   # Account for people who put trailing slashes in PATH elements.
1978 case $as_dir/ in
1979   ./ | .// | /cC/* | \
1980   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1981   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1982   /usr/ucb/* ) ;;
1983   *)
1984     # OSF1 and SCO ODT 3.0 have their own names for install.
1985     # Don't use installbsd from OSF since it installs stuff as root
1986     # by default.
1987     for ac_prog in ginstall scoinst install; do
1988       for ac_exec_ext in '' $ac_executable_extensions; do
1989         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1990           if test $ac_prog = install &&
1991             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1992             # AIX install.  It has an incompatible calling convention.
1993             :
1994           elif test $ac_prog = install &&
1995             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1996             # program-specific install script used by HP pwplus--don't use.
1997             :
1998           else
1999             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2000             break 3
2001           fi
2002         fi
2003       done
2004     done
2005     ;;
2006 esac
2007 done
2008 IFS=$as_save_IFS
2009
2010
2011 fi
2012   if test "${ac_cv_path_install+set}" = set; then
2013     INSTALL=$ac_cv_path_install
2014   else
2015     # As a last resort, use the slow shell script.  Don't cache a
2016     # value for INSTALL within a source directory, because that will
2017     # break other packages using the cache if that directory is
2018     # removed, or if the value is a relative name.
2019     INSTALL=$ac_install_sh
2020   fi
2021 fi
2022 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2023 echo "${ECHO_T}$INSTALL" >&6; }
2024
2025 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2026 # It thinks the first close brace ends the variable substitution.
2027 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2028
2029 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2030
2031 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2032
2033 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2034 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2035 # Just in case
2036 sleep 1
2037 echo timestamp > conftest.file
2038 # Do `set' in a subshell so we don't clobber the current shell's
2039 # arguments.  Must try -L first in case configure is actually a
2040 # symlink; some systems play weird games with the mod time of symlinks
2041 # (eg FreeBSD returns the mod time of the symlink's containing
2042 # directory).
2043 if (
2044    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2045    if test "$*" = "X"; then
2046       # -L didn't work.
2047       set X `ls -t $srcdir/configure conftest.file`
2048    fi
2049    rm -f conftest.file
2050    if test "$*" != "X $srcdir/configure conftest.file" \
2051       && test "$*" != "X conftest.file $srcdir/configure"; then
2052
2053       # If neither matched, then we have a broken ls.  This can happen
2054       # if, for instance, CONFIG_SHELL is bash and it inherits a
2055       # broken ls alias from the environment.  This has actually
2056       # happened.  Such a system could not be considered "sane".
2057       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2058 alias in your environment" >&5
2059 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2060 alias in your environment" >&2;}
2061    { (exit 1); exit 1; }; }
2062    fi
2063
2064    test "$2" = conftest.file
2065    )
2066 then
2067    # Ok.
2068    :
2069 else
2070    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2071 Check your system clock" >&5
2072 echo "$as_me: error: newly created file is older than distributed files!
2073 Check your system clock" >&2;}
2074    { (exit 1); exit 1; }; }
2075 fi
2076 { echo "$as_me:$LINENO: result: yes" >&5
2077 echo "${ECHO_T}yes" >&6; }
2078 test "$program_prefix" != NONE &&
2079   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2080 # Use a double $ so make ignores it.
2081 test "$program_suffix" != NONE &&
2082   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2083 # Double any \ or $.  echo might interpret backslashes.
2084 # By default was `s,x,x', remove it if useless.
2085 cat <<\_ACEOF >conftest.sed
2086 s/[\\$]/&&/g;s/;s,x,x,$//
2087 _ACEOF
2088 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2089 rm -f conftest.sed
2090
2091 # expand $ac_aux_dir to an absolute path
2092 am_aux_dir=`cd $ac_aux_dir && pwd`
2093
2094 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2095 # Use eval to expand $SHELL
2096 if eval "$MISSING --run true"; then
2097   am_missing_run="$MISSING --run "
2098 else
2099   am_missing_run=
2100   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2101 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2102 fi
2103
2104 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2105 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2106 if test -z "$MKDIR_P"; then
2107   if test "${ac_cv_path_mkdir+set}" = set; then
2108   echo $ECHO_N "(cached) $ECHO_C" >&6
2109 else
2110   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2111 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2112 do
2113   IFS=$as_save_IFS
2114   test -z "$as_dir" && as_dir=.
2115   for ac_prog in mkdir gmkdir; do
2116          for ac_exec_ext in '' $ac_executable_extensions; do
2117            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2118            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2119              'mkdir (GNU coreutils) '* | \
2120              'mkdir (coreutils) '* | \
2121              'mkdir (fileutils) '4.1*)
2122                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2123                break 3;;
2124            esac
2125          done
2126        done
2127 done
2128 IFS=$as_save_IFS
2129
2130 fi
2131
2132   if test "${ac_cv_path_mkdir+set}" = set; then
2133     MKDIR_P="$ac_cv_path_mkdir -p"
2134   else
2135     # As a last resort, use the slow shell script.  Don't cache a
2136     # value for MKDIR_P within a source directory, because that will
2137     # break other packages using the cache if that directory is
2138     # removed, or if the value is a relative name.
2139     test -d ./--version && rmdir ./--version
2140     MKDIR_P="$ac_install_sh -d"
2141   fi
2142 fi
2143 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2144 echo "${ECHO_T}$MKDIR_P" >&6; }
2145
2146 mkdir_p="$MKDIR_P"
2147 case $mkdir_p in
2148   [\\/$]* | ?:[\\/]*) ;;
2149   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2150 esac
2151
2152 for ac_prog in gawk mawk nawk awk
2153 do
2154   # Extract the first word of "$ac_prog", so it can be a program name with args.
2155 set dummy $ac_prog; ac_word=$2
2156 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2157 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2158 if test "${ac_cv_prog_AWK+set}" = set; then
2159   echo $ECHO_N "(cached) $ECHO_C" >&6
2160 else
2161   if test -n "$AWK"; then
2162   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2163 else
2164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2165 for as_dir in $PATH
2166 do
2167   IFS=$as_save_IFS
2168   test -z "$as_dir" && as_dir=.
2169   for ac_exec_ext in '' $ac_executable_extensions; do
2170   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2171     ac_cv_prog_AWK="$ac_prog"
2172     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2173     break 2
2174   fi
2175 done
2176 done
2177 IFS=$as_save_IFS
2178
2179 fi
2180 fi
2181 AWK=$ac_cv_prog_AWK
2182 if test -n "$AWK"; then
2183   { echo "$as_me:$LINENO: result: $AWK" >&5
2184 echo "${ECHO_T}$AWK" >&6; }
2185 else
2186   { echo "$as_me:$LINENO: result: no" >&5
2187 echo "${ECHO_T}no" >&6; }
2188 fi
2189
2190
2191   test -n "$AWK" && break
2192 done
2193
2194 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2195 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2196 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2197 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2198   echo $ECHO_N "(cached) $ECHO_C" >&6
2199 else
2200   cat >conftest.make <<\_ACEOF
2201 SHELL = /bin/sh
2202 all:
2203         @echo '@@@%%%=$(MAKE)=@@@%%%'
2204 _ACEOF
2205 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2206 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2207   *@@@%%%=?*=@@@%%%*)
2208     eval ac_cv_prog_make_${ac_make}_set=yes;;
2209   *)
2210     eval ac_cv_prog_make_${ac_make}_set=no;;
2211 esac
2212 rm -f conftest.make
2213 fi
2214 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2215   { echo "$as_me:$LINENO: result: yes" >&5
2216 echo "${ECHO_T}yes" >&6; }
2217   SET_MAKE=
2218 else
2219   { echo "$as_me:$LINENO: result: no" >&5
2220 echo "${ECHO_T}no" >&6; }
2221   SET_MAKE="MAKE=${MAKE-make}"
2222 fi
2223
2224 rm -rf .tst 2>/dev/null
2225 mkdir .tst 2>/dev/null
2226 if test -d .tst; then
2227   am__leading_dot=.
2228 else
2229   am__leading_dot=_
2230 fi
2231 rmdir .tst 2>/dev/null
2232
2233 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2234   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2235   # is not polluted with repeated "-I."
2236   am__isrc=' -I$(srcdir)'
2237   # test to see if srcdir already configured
2238   if test -f $srcdir/config.status; then
2239     { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2240 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2241    { (exit 1); exit 1; }; }
2242   fi
2243 fi
2244
2245 # test whether we have cygpath
2246 if test -z "$CYGPATH_W"; then
2247   if (cygpath --version) >/dev/null 2>/dev/null; then
2248     CYGPATH_W='cygpath -w'
2249   else
2250     CYGPATH_W=echo
2251   fi
2252 fi
2253
2254
2255 # Define the identity of the package.
2256  PACKAGE=libmplib
2257  VERSION=0.1.0
2258
2259
2260 cat >>confdefs.h <<_ACEOF
2261 #define PACKAGE "$PACKAGE"
2262 _ACEOF
2263
2264
2265 cat >>confdefs.h <<_ACEOF
2266 #define VERSION "$VERSION"
2267 _ACEOF
2268
2269 # Some tools Automake needs.
2270
2271 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2272
2273
2274 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2275
2276
2277 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2278
2279
2280 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2281
2282
2283 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2284
2285 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2286
2287 # Installed binaries are usually stripped using `strip' when the user
2288 # run `make install-strip'.  However `strip' might not be the right
2289 # tool to use in cross-compilation environments, therefore Automake
2290 # will honor the `STRIP' environment variable to overrule this program.
2291 if test "$cross_compiling" != no; then
2292   if test -n "$ac_tool_prefix"; then
2293   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2294 set dummy ${ac_tool_prefix}strip; ac_word=$2
2295 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2296 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2297 if test "${ac_cv_prog_STRIP+set}" = set; then
2298   echo $ECHO_N "(cached) $ECHO_C" >&6
2299 else
2300   if test -n "$STRIP"; then
2301   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2302 else
2303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2304 for as_dir in $PATH
2305 do
2306   IFS=$as_save_IFS
2307   test -z "$as_dir" && as_dir=.
2308   for ac_exec_ext in '' $ac_executable_extensions; do
2309   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2310     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2311     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2312     break 2
2313   fi
2314 done
2315 done
2316 IFS=$as_save_IFS
2317
2318 fi
2319 fi
2320 STRIP=$ac_cv_prog_STRIP
2321 if test -n "$STRIP"; then
2322   { echo "$as_me:$LINENO: result: $STRIP" >&5
2323 echo "${ECHO_T}$STRIP" >&6; }
2324 else
2325   { echo "$as_me:$LINENO: result: no" >&5
2326 echo "${ECHO_T}no" >&6; }
2327 fi
2328
2329
2330 fi
2331 if test -z "$ac_cv_prog_STRIP"; then
2332   ac_ct_STRIP=$STRIP
2333   # Extract the first word of "strip", so it can be a program name with args.
2334 set dummy strip; ac_word=$2
2335 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2336 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2337 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2338   echo $ECHO_N "(cached) $ECHO_C" >&6
2339 else
2340   if test -n "$ac_ct_STRIP"; then
2341   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2342 else
2343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2344 for as_dir in $PATH
2345 do
2346   IFS=$as_save_IFS
2347   test -z "$as_dir" && as_dir=.
2348   for ac_exec_ext in '' $ac_executable_extensions; do
2349   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2350     ac_cv_prog_ac_ct_STRIP="strip"
2351     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2352     break 2
2353   fi
2354 done
2355 done
2356 IFS=$as_save_IFS
2357
2358 fi
2359 fi
2360 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2361 if test -n "$ac_ct_STRIP"; then
2362   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2363 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2364 else
2365   { echo "$as_me:$LINENO: result: no" >&5
2366 echo "${ECHO_T}no" >&6; }
2367 fi
2368
2369   if test "x$ac_ct_STRIP" = x; then
2370     STRIP=":"
2371   else
2372     case $cross_compiling:$ac_tool_warned in
2373 yes:)
2374 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2375 whose name does not start with the host triplet.  If you think this
2376 configuration is useful to you, please write to autoconf@gnu.org." >&5
2377 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2378 whose name does not start with the host triplet.  If you think this
2379 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2380 ac_tool_warned=yes ;;
2381 esac
2382     STRIP=$ac_ct_STRIP
2383   fi
2384 else
2385   STRIP="$ac_cv_prog_STRIP"
2386 fi
2387
2388 fi
2389 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2390
2391 # We need awk for the "check" target.  The system "awk" is bad on
2392 # some platforms.
2393 # Always define AMTAR for backward compatibility.
2394
2395 AMTAR=${AMTAR-"${am_missing_run}tar"}
2396
2397 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2398
2399
2400
2401
2402
2403 ac_config_headers="$ac_config_headers config.h"
2404
2405 # Check whether --enable-shared was given.
2406 if test "${enable_shared+set}" = set; then
2407   enableval=$enable_shared; p=${PACKAGE-default}
2408     case $enableval in
2409     yes) enable_shared=yes ;;
2410     no) enable_shared=no ;;
2411     *)
2412       enable_shared=no
2413       # Look at the argument we got.  We use all the common list separators.
2414       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2415       for pkg in $enableval; do
2416         IFS="$lt_save_ifs"
2417         if test "X$pkg" = "X$p"; then
2418           enable_shared=yes
2419         fi
2420       done
2421       IFS="$lt_save_ifs"
2422       ;;
2423     esac
2424 else
2425   enable_shared=yes
2426 fi
2427
2428
2429 # Check whether --enable-static was given.
2430 if test "${enable_static+set}" = set; then
2431   enableval=$enable_static; p=${PACKAGE-default}
2432     case $enableval in
2433     yes) enable_static=yes ;;
2434     no) enable_static=no ;;
2435     *)
2436      enable_static=no
2437       # Look at the argument we got.  We use all the common list separators.
2438       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2439       for pkg in $enableval; do
2440         IFS="$lt_save_ifs"
2441         if test "X$pkg" = "X$p"; then
2442           enable_static=yes
2443         fi
2444       done
2445       IFS="$lt_save_ifs"
2446       ;;
2447     esac
2448 else
2449   enable_static=yes
2450 fi
2451
2452
2453 # Check whether --enable-fast-install was given.
2454 if test "${enable_fast_install+set}" = set; then
2455   enableval=$enable_fast_install; p=${PACKAGE-default}
2456     case $enableval in
2457     yes) enable_fast_install=yes ;;
2458     no) enable_fast_install=no ;;
2459     *)
2460       enable_fast_install=no
2461       # Look at the argument we got.  We use all the common list separators.
2462       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2463       for pkg in $enableval; do
2464         IFS="$lt_save_ifs"
2465         if test "X$pkg" = "X$p"; then
2466           enable_fast_install=yes
2467         fi
2468       done
2469       IFS="$lt_save_ifs"
2470       ;;
2471     esac
2472 else
2473   enable_fast_install=yes
2474 fi
2475
2476
2477 # Make sure we can run config.sub.
2478 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2479   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2480 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2481    { (exit 1); exit 1; }; }
2482
2483 { echo "$as_me:$LINENO: checking build system type" >&5
2484 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2485 if test "${ac_cv_build+set}" = set; then
2486   echo $ECHO_N "(cached) $ECHO_C" >&6
2487 else
2488   ac_build_alias=$build_alias
2489 test "x$ac_build_alias" = x &&
2490   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2491 test "x$ac_build_alias" = x &&
2492   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2493 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2494    { (exit 1); exit 1; }; }
2495 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2496   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2497 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2498    { (exit 1); exit 1; }; }
2499
2500 fi
2501 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2502 echo "${ECHO_T}$ac_cv_build" >&6; }
2503 case $ac_cv_build in
2504 *-*-*) ;;
2505 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2506 echo "$as_me: error: invalid value of canonical build" >&2;}
2507    { (exit 1); exit 1; }; };;
2508 esac
2509 build=$ac_cv_build
2510 ac_save_IFS=$IFS; IFS='-'
2511 set x $ac_cv_build
2512 shift
2513 build_cpu=$1
2514 build_vendor=$2
2515 shift; shift
2516 # Remember, the first character of IFS is used to create $*,
2517 # except with old shells:
2518 build_os=$*
2519 IFS=$ac_save_IFS
2520 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2521
2522
2523 { echo "$as_me:$LINENO: checking host system type" >&5
2524 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2525 if test "${ac_cv_host+set}" = set; then
2526   echo $ECHO_N "(cached) $ECHO_C" >&6
2527 else
2528   if test "x$host_alias" = x; then
2529   ac_cv_host=$ac_cv_build
2530 else
2531   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2532     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2533 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2534    { (exit 1); exit 1; }; }
2535 fi
2536
2537 fi
2538 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2539 echo "${ECHO_T}$ac_cv_host" >&6; }
2540 case $ac_cv_host in
2541 *-*-*) ;;
2542 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2543 echo "$as_me: error: invalid value of canonical host" >&2;}
2544    { (exit 1); exit 1; }; };;
2545 esac
2546 host=$ac_cv_host
2547 ac_save_IFS=$IFS; IFS='-'
2548 set x $ac_cv_host
2549 shift
2550 host_cpu=$1
2551 host_vendor=$2
2552 shift; shift
2553 # Remember, the first character of IFS is used to create $*,
2554 # except with old shells:
2555 host_os=$*
2556 IFS=$ac_save_IFS
2557 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2558
2559
2560 DEPDIR="${am__leading_dot}deps"
2561
2562 ac_config_commands="$ac_config_commands depfiles"
2563
2564
2565 am_make=${MAKE-make}
2566 cat > confinc << 'END'
2567 am__doit:
2568         @echo done
2569 .PHONY: am__doit
2570 END
2571 # If we don't find an include directive, just comment out the code.
2572 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2573 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2574 am__include="#"
2575 am__quote=
2576 _am_result=none
2577 # First try GNU make style include.
2578 echo "include confinc" > confmf
2579 # We grep out `Entering directory' and `Leaving directory'
2580 # messages which can occur if `w' ends up in MAKEFLAGS.
2581 # In particular we don't look at `^make:' because GNU make might
2582 # be invoked under some other name (usually "gmake"), in which
2583 # case it prints its new name instead of `make'.
2584 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2585    am__include=include
2586    am__quote=
2587    _am_result=GNU
2588 fi
2589 # Now try BSD make style include.
2590 if test "$am__include" = "#"; then
2591    echo '.include "confinc"' > confmf
2592    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2593       am__include=.include
2594       am__quote="\""
2595       _am_result=BSD
2596    fi
2597 fi
2598
2599
2600 { echo "$as_me:$LINENO: result: $_am_result" >&5
2601 echo "${ECHO_T}$_am_result" >&6; }
2602 rm -f confinc confmf
2603
2604 # Check whether --enable-dependency-tracking was given.
2605 if test "${enable_dependency_tracking+set}" = set; then
2606   enableval=$enable_dependency_tracking;
2607 fi
2608
2609 if test "x$enable_dependency_tracking" != xno; then
2610   am_depcomp="$ac_aux_dir/depcomp"
2611   AMDEPBACKSLASH='\'
2612 fi
2613  if test "x$enable_dependency_tracking" != xno; then
2614   AMDEP_TRUE=
2615   AMDEP_FALSE='#'
2616 else
2617   AMDEP_TRUE='#'
2618   AMDEP_FALSE=
2619 fi
2620
2621
2622 ac_ext=c
2623 ac_cpp='$CPP $CPPFLAGS'
2624 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2625 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2626 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2627 if test -n "$ac_tool_prefix"; then
2628   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2629 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2630 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2631 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2632 if test "${ac_cv_prog_CC+set}" = set; then
2633   echo $ECHO_N "(cached) $ECHO_C" >&6
2634 else
2635   if test -n "$CC"; then
2636   ac_cv_prog_CC="$CC" # Let the user override the test.
2637 else
2638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2639 for as_dir in $PATH
2640 do
2641   IFS=$as_save_IFS
2642   test -z "$as_dir" && as_dir=.
2643   for ac_exec_ext in '' $ac_executable_extensions; do
2644   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2645     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2646     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2647     break 2
2648   fi
2649 done
2650 done
2651 IFS=$as_save_IFS
2652
2653 fi
2654 fi
2655 CC=$ac_cv_prog_CC
2656 if test -n "$CC"; then
2657   { echo "$as_me:$LINENO: result: $CC" >&5
2658 echo "${ECHO_T}$CC" >&6; }
2659 else
2660   { echo "$as_me:$LINENO: result: no" >&5
2661 echo "${ECHO_T}no" >&6; }
2662 fi
2663
2664
2665 fi
2666 if test -z "$ac_cv_prog_CC"; then
2667   ac_ct_CC=$CC
2668   # Extract the first word of "gcc", so it can be a program name with args.
2669 set dummy gcc; ac_word=$2
2670 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2672 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2673   echo $ECHO_N "(cached) $ECHO_C" >&6
2674 else
2675   if test -n "$ac_ct_CC"; then
2676   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2677 else
2678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2679 for as_dir in $PATH
2680 do
2681   IFS=$as_save_IFS
2682   test -z "$as_dir" && as_dir=.
2683   for ac_exec_ext in '' $ac_executable_extensions; do
2684   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2685     ac_cv_prog_ac_ct_CC="gcc"
2686     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2687     break 2
2688   fi
2689 done
2690 done
2691 IFS=$as_save_IFS
2692
2693 fi
2694 fi
2695 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2696 if test -n "$ac_ct_CC"; then
2697   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2698 echo "${ECHO_T}$ac_ct_CC" >&6; }
2699 else
2700   { echo "$as_me:$LINENO: result: no" >&5
2701 echo "${ECHO_T}no" >&6; }
2702 fi
2703
2704   if test "x$ac_ct_CC" = x; then
2705     CC=""
2706   else
2707     case $cross_compiling:$ac_tool_warned in
2708 yes:)
2709 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2710 whose name does not start with the host triplet.  If you think this
2711 configuration is useful to you, please write to autoconf@gnu.org." >&5
2712 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2713 whose name does not start with the host triplet.  If you think this
2714 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2715 ac_tool_warned=yes ;;
2716 esac
2717     CC=$ac_ct_CC
2718   fi
2719 else
2720   CC="$ac_cv_prog_CC"
2721 fi
2722
2723 if test -z "$CC"; then
2724           if test -n "$ac_tool_prefix"; then
2725     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2726 set dummy ${ac_tool_prefix}cc; ac_word=$2
2727 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2728 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2729 if test "${ac_cv_prog_CC+set}" = set; then
2730   echo $ECHO_N "(cached) $ECHO_C" >&6
2731 else
2732   if test -n "$CC"; then
2733   ac_cv_prog_CC="$CC" # Let the user override the test.
2734 else
2735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2736 for as_dir in $PATH
2737 do
2738   IFS=$as_save_IFS
2739   test -z "$as_dir" && as_dir=.
2740   for ac_exec_ext in '' $ac_executable_extensions; do
2741   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2742     ac_cv_prog_CC="${ac_tool_prefix}cc"
2743     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2744     break 2
2745   fi
2746 done
2747 done
2748 IFS=$as_save_IFS
2749
2750 fi
2751 fi
2752 CC=$ac_cv_prog_CC
2753 if test -n "$CC"; then
2754   { echo "$as_me:$LINENO: result: $CC" >&5
2755 echo "${ECHO_T}$CC" >&6; }
2756 else
2757   { echo "$as_me:$LINENO: result: no" >&5
2758 echo "${ECHO_T}no" >&6; }
2759 fi
2760
2761
2762   fi
2763 fi
2764 if test -z "$CC"; then
2765   # Extract the first word of "cc", so it can be a program name with args.
2766 set dummy cc; ac_word=$2
2767 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2768 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2769 if test "${ac_cv_prog_CC+set}" = set; then
2770   echo $ECHO_N "(cached) $ECHO_C" >&6
2771 else
2772   if test -n "$CC"; then
2773   ac_cv_prog_CC="$CC" # Let the user override the test.
2774 else
2775   ac_prog_rejected=no
2776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2777 for as_dir in $PATH
2778 do
2779   IFS=$as_save_IFS
2780   test -z "$as_dir" && as_dir=.
2781   for ac_exec_ext in '' $ac_executable_extensions; do
2782   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2783     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2784        ac_prog_rejected=yes
2785        continue
2786      fi
2787     ac_cv_prog_CC="cc"
2788     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2789     break 2
2790   fi
2791 done
2792 done
2793 IFS=$as_save_IFS
2794
2795 if test $ac_prog_rejected = yes; then
2796   # We found a bogon in the path, so make sure we never use it.
2797   set dummy $ac_cv_prog_CC
2798   shift
2799   if test $# != 0; then
2800     # We chose a different compiler from the bogus one.
2801     # However, it has the same basename, so the bogon will be chosen
2802     # first if we set CC to just the basename; use the full file name.
2803     shift
2804     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2805   fi
2806 fi
2807 fi
2808 fi
2809 CC=$ac_cv_prog_CC
2810 if test -n "$CC"; then
2811   { echo "$as_me:$LINENO: result: $CC" >&5
2812 echo "${ECHO_T}$CC" >&6; }
2813 else
2814   { echo "$as_me:$LINENO: result: no" >&5
2815 echo "${ECHO_T}no" >&6; }
2816 fi
2817
2818
2819 fi
2820 if test -z "$CC"; then
2821   if test -n "$ac_tool_prefix"; then
2822   for ac_prog in cl.exe
2823   do
2824     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2825 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2826 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2827 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2828 if test "${ac_cv_prog_CC+set}" = set; then
2829   echo $ECHO_N "(cached) $ECHO_C" >&6
2830 else
2831   if test -n "$CC"; then
2832   ac_cv_prog_CC="$CC" # Let the user override the test.
2833 else
2834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2835 for as_dir in $PATH
2836 do
2837   IFS=$as_save_IFS
2838   test -z "$as_dir" && as_dir=.
2839   for ac_exec_ext in '' $ac_executable_extensions; do
2840   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2841     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2842     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2843     break 2
2844   fi
2845 done
2846 done
2847 IFS=$as_save_IFS
2848
2849 fi
2850 fi
2851 CC=$ac_cv_prog_CC
2852 if test -n "$CC"; then
2853   { echo "$as_me:$LINENO: result: $CC" >&5
2854 echo "${ECHO_T}$CC" >&6; }
2855 else
2856   { echo "$as_me:$LINENO: result: no" >&5
2857 echo "${ECHO_T}no" >&6; }
2858 fi
2859
2860
2861     test -n "$CC" && break
2862   done
2863 fi
2864 if test -z "$CC"; then
2865   ac_ct_CC=$CC
2866   for ac_prog in cl.exe
2867 do
2868   # Extract the first word of "$ac_prog", so it can be a program name with args.
2869 set dummy $ac_prog; ac_word=$2
2870 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2871 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2872 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2873   echo $ECHO_N "(cached) $ECHO_C" >&6
2874 else
2875   if test -n "$ac_ct_CC"; then
2876   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2877 else
2878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2879 for as_dir in $PATH
2880 do
2881   IFS=$as_save_IFS
2882   test -z "$as_dir" && as_dir=.
2883   for ac_exec_ext in '' $ac_executable_extensions; do
2884   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2885     ac_cv_prog_ac_ct_CC="$ac_prog"
2886     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2887     break 2
2888   fi
2889 done
2890 done
2891 IFS=$as_save_IFS
2892
2893 fi
2894 fi
2895 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2896 if test -n "$ac_ct_CC"; then
2897   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2898 echo "${ECHO_T}$ac_ct_CC" >&6; }
2899 else
2900   { echo "$as_me:$LINENO: result: no" >&5
2901 echo "${ECHO_T}no" >&6; }
2902 fi
2903
2904
2905   test -n "$ac_ct_CC" && break
2906 done
2907
2908   if test "x$ac_ct_CC" = x; then
2909     CC=""
2910   else
2911     case $cross_compiling:$ac_tool_warned in
2912 yes:)
2913 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2914 whose name does not start with the host triplet.  If you think this
2915 configuration is useful to you, please write to autoconf@gnu.org." >&5
2916 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2917 whose name does not start with the host triplet.  If you think this
2918 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2919 ac_tool_warned=yes ;;
2920 esac
2921     CC=$ac_ct_CC
2922   fi
2923 fi
2924
2925 fi
2926
2927
2928 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2929 See \`config.log' for more details." >&5
2930 echo "$as_me: error: no acceptable C compiler found in \$PATH
2931 See \`config.log' for more details." >&2;}
2932    { (exit 1); exit 1; }; }
2933
2934 # Provide some information about the compiler.
2935 echo "$as_me:$LINENO: checking for C compiler version" >&5
2936 ac_compiler=`set X $ac_compile; echo $2`
2937 { (ac_try="$ac_compiler --version >&5"
2938 case "(($ac_try" in
2939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2940   *) ac_try_echo=$ac_try;;
2941 esac
2942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2943   (eval "$ac_compiler --version >&5") 2>&5
2944   ac_status=$?
2945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2946   (exit $ac_status); }
2947 { (ac_try="$ac_compiler -v >&5"
2948 case "(($ac_try" in
2949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2950   *) ac_try_echo=$ac_try;;
2951 esac
2952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2953   (eval "$ac_compiler -v >&5") 2>&5
2954   ac_status=$?
2955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956   (exit $ac_status); }
2957 { (ac_try="$ac_compiler -V >&5"
2958 case "(($ac_try" in
2959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2960   *) ac_try_echo=$ac_try;;
2961 esac
2962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2963   (eval "$ac_compiler -V >&5") 2>&5
2964   ac_status=$?
2965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2966   (exit $ac_status); }
2967
2968 cat >conftest.$ac_ext <<_ACEOF
2969 /* confdefs.h.  */
2970 _ACEOF
2971 cat confdefs.h >>conftest.$ac_ext
2972 cat >>conftest.$ac_ext <<_ACEOF
2973 /* end confdefs.h.  */
2974
2975 int
2976 main ()
2977 {
2978
2979   ;
2980   return 0;
2981 }
2982 _ACEOF
2983 ac_clean_files_save=$ac_clean_files
2984 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2985 # Try to create an executable without -o first, disregard a.out.
2986 # It will help us diagnose broken compilers, and finding out an intuition
2987 # of exeext.
2988 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2989 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2990 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2991 #
2992 # List of possible output files, starting from the most likely.
2993 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2994 # only as a last resort.  b.out is created by i960 compilers.
2995 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2996 #
2997 # The IRIX 6 linker writes into existing files which may not be
2998 # executable, retaining their permissions.  Remove them first so a
2999 # subsequent execution test works.
3000 ac_rmfiles=
3001 for ac_file in $ac_files
3002 do
3003   case $ac_file in
3004     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3005     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3006   esac
3007 done
3008 rm -f $ac_rmfiles
3009
3010 if { (ac_try="$ac_link_default"
3011 case "(($ac_try" in
3012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3013   *) ac_try_echo=$ac_try;;
3014 esac
3015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3016   (eval "$ac_link_default") 2>&5
3017   ac_status=$?
3018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3019   (exit $ac_status); }; then
3020   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3021 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3022 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3023 # so that the user can short-circuit this test for compilers unknown to
3024 # Autoconf.
3025 for ac_file in $ac_files ''
3026 do
3027   test -f "$ac_file" || continue
3028   case $ac_file in
3029     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3030         ;;
3031     [ab].out )
3032         # We found the default executable, but exeext='' is most
3033         # certainly right.
3034         break;;
3035     *.* )
3036         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3037         then :; else
3038            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3039         fi
3040         # We set ac_cv_exeext here because the later test for it is not
3041         # safe: cross compilers may not add the suffix if given an `-o'
3042         # argument, so we may need to know it at that point already.
3043         # Even if this section looks crufty: it has the advantage of
3044         # actually working.
3045         break;;
3046     * )
3047         break;;
3048   esac
3049 done
3050 test "$ac_cv_exeext" = no && ac_cv_exeext=
3051
3052 else
3053   ac_file=''
3054 fi
3055
3056 { echo "$as_me:$LINENO: result: $ac_file" >&5
3057 echo "${ECHO_T}$ac_file" >&6; }
3058 if test -z "$ac_file"; then
3059   echo "$as_me: failed program was:" >&5
3060 sed 's/^/| /' conftest.$ac_ext >&5
3061
3062 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3063 See \`config.log' for more details." >&5
3064 echo "$as_me: error: C compiler cannot create executables
3065 See \`config.log' for more details." >&2;}
3066    { (exit 77); exit 77; }; }
3067 fi
3068
3069 ac_exeext=$ac_cv_exeext
3070
3071 # Check that the compiler produces executables we can run.  If not, either
3072 # the compiler is broken, or we cross compile.
3073 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3074 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3075 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3076 # If not cross compiling, check that we can run a simple program.
3077 if test "$cross_compiling" != yes; then
3078   if { ac_try='./$ac_file'
3079   { (case "(($ac_try" in
3080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3081   *) ac_try_echo=$ac_try;;
3082 esac
3083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3084   (eval "$ac_try") 2>&5
3085   ac_status=$?
3086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3087   (exit $ac_status); }; }; then
3088     cross_compiling=no
3089   else
3090     if test "$cross_compiling" = maybe; then
3091         cross_compiling=yes
3092     else
3093         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3094 If you meant to cross compile, use \`--host'.
3095 See \`config.log' for more details." >&5
3096 echo "$as_me: error: cannot run C compiled programs.
3097 If you meant to cross compile, use \`--host'.
3098 See \`config.log' for more details." >&2;}
3099    { (exit 1); exit 1; }; }
3100     fi
3101   fi
3102 fi
3103 { echo "$as_me:$LINENO: result: yes" >&5
3104 echo "${ECHO_T}yes" >&6; }
3105
3106 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3107 ac_clean_files=$ac_clean_files_save
3108 # Check that the compiler produces executables we can run.  If not, either
3109 # the compiler is broken, or we cross compile.
3110 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3111 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3112 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3113 echo "${ECHO_T}$cross_compiling" >&6; }
3114
3115 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3116 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3117 if { (ac_try="$ac_link"
3118 case "(($ac_try" in
3119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3120   *) ac_try_echo=$ac_try;;
3121 esac
3122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3123   (eval "$ac_link") 2>&5
3124   ac_status=$?
3125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3126   (exit $ac_status); }; then
3127   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3128 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3129 # work properly (i.e., refer to `conftest.exe'), while it won't with
3130 # `rm'.
3131 for ac_file in conftest.exe conftest conftest.*; do
3132   test -f "$ac_file" || continue
3133   case $ac_file in
3134     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3135     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3136           break;;
3137     * ) break;;
3138   esac
3139 done
3140 else
3141   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3142 See \`config.log' for more details." >&5
3143 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3144 See \`config.log' for more details." >&2;}
3145    { (exit 1); exit 1; }; }
3146 fi
3147
3148 rm -f conftest$ac_cv_exeext
3149 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3150 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3151
3152 rm -f conftest.$ac_ext
3153 EXEEXT=$ac_cv_exeext
3154 ac_exeext=$EXEEXT
3155 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3156 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3157 if test "${ac_cv_objext+set}" = set; then
3158   echo $ECHO_N "(cached) $ECHO_C" >&6
3159 else
3160   cat >conftest.$ac_ext <<_ACEOF
3161 /* confdefs.h.  */
3162 _ACEOF
3163 cat confdefs.h >>conftest.$ac_ext
3164 cat >>conftest.$ac_ext <<_ACEOF
3165 /* end confdefs.h.  */
3166
3167 int
3168 main ()
3169 {
3170
3171   ;
3172   return 0;
3173 }
3174 _ACEOF
3175 rm -f conftest.o conftest.obj
3176 if { (ac_try="$ac_compile"
3177 case "(($ac_try" in
3178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3179   *) ac_try_echo=$ac_try;;
3180 esac
3181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3182   (eval "$ac_compile") 2>&5
3183   ac_status=$?
3184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3185   (exit $ac_status); }; then
3186   for ac_file in conftest.o conftest.obj conftest.*; do
3187   test -f "$ac_file" || continue;
3188   case $ac_file in
3189     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3190     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3191        break;;
3192   esac
3193 done
3194 else
3195   echo "$as_me: failed program was:" >&5
3196 sed 's/^/| /' conftest.$ac_ext >&5
3197
3198 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3199 See \`config.log' for more details." >&5
3200 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3201 See \`config.log' for more details." >&2;}
3202    { (exit 1); exit 1; }; }
3203 fi
3204
3205 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3206 fi
3207 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3208 echo "${ECHO_T}$ac_cv_objext" >&6; }
3209 OBJEXT=$ac_cv_objext
3210 ac_objext=$OBJEXT
3211 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3212 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3213 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3214   echo $ECHO_N "(cached) $ECHO_C" >&6
3215 else
3216   cat >conftest.$ac_ext <<_ACEOF
3217 /* confdefs.h.  */
3218 _ACEOF
3219 cat confdefs.h >>conftest.$ac_ext
3220 cat >>conftest.$ac_ext <<_ACEOF
3221 /* end confdefs.h.  */
3222
3223 int
3224 main ()
3225 {
3226 #ifndef __GNUC__
3227        choke me
3228 #endif
3229
3230   ;
3231   return 0;
3232 }
3233 _ACEOF
3234 rm -f conftest.$ac_objext
3235 if { (ac_try="$ac_compile"
3236 case "(($ac_try" in
3237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3238   *) ac_try_echo=$ac_try;;
3239 esac
3240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3241   (eval "$ac_compile") 2>conftest.er1
3242   ac_status=$?
3243   grep -v '^ *+' conftest.er1 >conftest.err
3244   rm -f conftest.er1
3245   cat conftest.err >&5
3246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3247   (exit $ac_status); } && {
3248          test -z "$ac_c_werror_flag" ||
3249          test ! -s conftest.err
3250        } && test -s conftest.$ac_objext; then
3251   ac_compiler_gnu=yes
3252 else
3253   echo "$as_me: failed program was:" >&5
3254 sed 's/^/| /' conftest.$ac_ext >&5
3255
3256         ac_compiler_gnu=no
3257 fi
3258
3259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3260 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3261
3262 fi
3263 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3264 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3265 GCC=`test $ac_compiler_gnu = yes && echo yes`
3266 ac_test_CFLAGS=${CFLAGS+set}
3267 ac_save_CFLAGS=$CFLAGS
3268 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3269 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3270 if test "${ac_cv_prog_cc_g+set}" = set; then
3271   echo $ECHO_N "(cached) $ECHO_C" >&6
3272 else
3273   ac_save_c_werror_flag=$ac_c_werror_flag
3274    ac_c_werror_flag=yes
3275    ac_cv_prog_cc_g=no
3276    CFLAGS="-g"
3277    cat >conftest.$ac_ext <<_ACEOF
3278 /* confdefs.h.  */
3279 _ACEOF
3280 cat confdefs.h >>conftest.$ac_ext
3281 cat >>conftest.$ac_ext <<_ACEOF
3282 /* end confdefs.h.  */
3283
3284 int
3285 main ()
3286 {
3287
3288   ;
3289   return 0;
3290 }
3291 _ACEOF
3292 rm -f conftest.$ac_objext
3293 if { (ac_try="$ac_compile"
3294 case "(($ac_try" in
3295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3296   *) ac_try_echo=$ac_try;;
3297 esac
3298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3299   (eval "$ac_compile") 2>conftest.er1
3300   ac_status=$?
3301   grep -v '^ *+' conftest.er1 >conftest.err
3302   rm -f conftest.er1
3303   cat conftest.err >&5
3304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3305   (exit $ac_status); } && {
3306          test -z "$ac_c_werror_flag" ||
3307          test ! -s conftest.err
3308        } && test -s conftest.$ac_objext; then
3309   ac_cv_prog_cc_g=yes
3310 else
3311   echo "$as_me: failed program was:" >&5
3312 sed 's/^/| /' conftest.$ac_ext >&5
3313
3314         CFLAGS=""
3315       cat >conftest.$ac_ext <<_ACEOF
3316 /* confdefs.h.  */
3317 _ACEOF
3318 cat confdefs.h >>conftest.$ac_ext
3319 cat >>conftest.$ac_ext <<_ACEOF
3320 /* end confdefs.h.  */
3321
3322 int
3323 main ()
3324 {
3325
3326   ;
3327   return 0;
3328 }
3329 _ACEOF
3330 rm -f conftest.$ac_objext
3331 if { (ac_try="$ac_compile"
3332 case "(($ac_try" in
3333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3334   *) ac_try_echo=$ac_try;;
3335 esac
3336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3337   (eval "$ac_compile") 2>conftest.er1
3338   ac_status=$?
3339   grep -v '^ *+' conftest.er1 >conftest.err
3340   rm -f conftest.er1
3341   cat conftest.err >&5
3342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3343   (exit $ac_status); } && {
3344          test -z "$ac_c_werror_flag" ||
3345          test ! -s conftest.err
3346        } && test -s conftest.$ac_objext; then
3347   :
3348 else
3349   echo "$as_me: failed program was:" >&5
3350 sed 's/^/| /' conftest.$ac_ext >&5
3351
3352         ac_c_werror_flag=$ac_save_c_werror_flag
3353          CFLAGS="-g"
3354          cat >conftest.$ac_ext <<_ACEOF
3355 /* confdefs.h.  */
3356 _ACEOF
3357 cat confdefs.h >>conftest.$ac_ext
3358 cat >>conftest.$ac_ext <<_ACEOF
3359 /* end confdefs.h.  */
3360
3361 int
3362 main ()
3363 {
3364
3365   ;
3366   return 0;
3367 }
3368 _ACEOF
3369 rm -f conftest.$ac_objext
3370 if { (ac_try="$ac_compile"
3371 case "(($ac_try" in
3372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3373   *) ac_try_echo=$ac_try;;
3374 esac
3375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3376   (eval "$ac_compile") 2>conftest.er1
3377   ac_status=$?
3378   grep -v '^ *+' conftest.er1 >conftest.err
3379   rm -f conftest.er1
3380   cat conftest.err >&5
3381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3382   (exit $ac_status); } && {
3383          test -z "$ac_c_werror_flag" ||
3384          test ! -s conftest.err
3385        } && test -s conftest.$ac_objext; then
3386   ac_cv_prog_cc_g=yes
3387 else
3388   echo "$as_me: failed program was:" >&5
3389 sed 's/^/| /' conftest.$ac_ext >&5
3390
3391
3392 fi
3393
3394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3395 fi
3396
3397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3398 fi
3399
3400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3401    ac_c_werror_flag=$ac_save_c_werror_flag
3402 fi
3403 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3404 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3405 if test "$ac_test_CFLAGS" = set; then
3406   CFLAGS=$ac_save_CFLAGS
3407 elif test $ac_cv_prog_cc_g = yes; then
3408   if test "$GCC" = yes; then
3409     CFLAGS="-g -O2"
3410   else
3411     CFLAGS="-g"
3412   fi
3413 else
3414   if test "$GCC" = yes; then
3415     CFLAGS="-O2"
3416   else
3417     CFLAGS=
3418   fi
3419 fi
3420 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3421 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3422 if test "${ac_cv_prog_cc_c89+set}" = set; then
3423   echo $ECHO_N "(cached) $ECHO_C" >&6
3424 else
3425   ac_cv_prog_cc_c89=no
3426 ac_save_CC=$CC
3427 cat >conftest.$ac_ext <<_ACEOF
3428 /* confdefs.h.  */
3429 _ACEOF
3430 cat confdefs.h >>conftest.$ac_ext
3431 cat >>conftest.$ac_ext <<_ACEOF
3432 /* end confdefs.h.  */
3433 #include <stdarg.h>
3434 #include <stdio.h>
3435 #include <sys/types.h>
3436 #include <sys/stat.h>
3437 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3438 struct buf { int x; };
3439 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3440 static char *e (p, i)
3441      char **p;
3442      int i;
3443 {
3444   return p[i];
3445 }
3446 static char *f (char * (*g) (char **, int), char **p, ...)
3447 {
3448   char *s;
3449   va_list v;
3450   va_start (v,p);
3451   s = g (p, va_arg (v,int));
3452   va_end (v);
3453   return s;
3454 }
3455
3456 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3457    function prototypes and stuff, but not '\xHH' hex character constants.
3458    These don't provoke an error unfortunately, instead are silently treated
3459    as 'x'.  The following induces an error, until -std is added to get
3460    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3461    array size at least.  It's necessary to write '\x00'==0 to get something
3462    that's true only with -std.  */
3463 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3464
3465 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3466    inside strings and character constants.  */
3467 #define FOO(x) 'x'
3468 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3469
3470 int test (int i, double x);
3471 struct s1 {int (*f) (int a);};
3472 struct s2 {int (*f) (double a);};
3473 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3474 int argc;
3475 char **argv;
3476 int
3477 main ()
3478 {
3479 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3480   ;
3481   return 0;
3482 }
3483 _ACEOF
3484 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3485         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3486 do
3487   CC="$ac_save_CC $ac_arg"
3488   rm -f conftest.$ac_objext
3489 if { (ac_try="$ac_compile"
3490 case "(($ac_try" in
3491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3492   *) ac_try_echo=$ac_try;;
3493 esac
3494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3495   (eval "$ac_compile") 2>conftest.er1
3496   ac_status=$?
3497   grep -v '^ *+' conftest.er1 >conftest.err
3498   rm -f conftest.er1
3499   cat conftest.err >&5
3500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3501   (exit $ac_status); } && {
3502          test -z "$ac_c_werror_flag" ||
3503          test ! -s conftest.err
3504        } && test -s conftest.$ac_objext; then
3505   ac_cv_prog_cc_c89=$ac_arg
3506 else
3507   echo "$as_me: failed program was:" >&5
3508 sed 's/^/| /' conftest.$ac_ext >&5
3509
3510
3511 fi
3512
3513 rm -f core conftest.err conftest.$ac_objext
3514   test "x$ac_cv_prog_cc_c89" != "xno" && break
3515 done
3516 rm -f conftest.$ac_ext
3517 CC=$ac_save_CC
3518
3519 fi
3520 # AC_CACHE_VAL
3521 case "x$ac_cv_prog_cc_c89" in
3522   x)
3523     { echo "$as_me:$LINENO: result: none needed" >&5
3524 echo "${ECHO_T}none needed" >&6; } ;;
3525   xno)
3526     { echo "$as_me:$LINENO: result: unsupported" >&5
3527 echo "${ECHO_T}unsupported" >&6; } ;;
3528   *)
3529     CC="$CC $ac_cv_prog_cc_c89"
3530     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3531 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3532 esac
3533
3534
3535 ac_ext=c
3536 ac_cpp='$CPP $CPPFLAGS'
3537 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3538 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3539 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3540
3541 depcc="$CC"   am_compiler_list=
3542
3543 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3544 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3545 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3546   echo $ECHO_N "(cached) $ECHO_C" >&6
3547 else
3548   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3549   # We make a subdir and do the tests there.  Otherwise we can end up
3550   # making bogus files that we don't know about and never remove.  For
3551   # instance it was reported that on HP-UX the gcc test will end up
3552   # making a dummy file named `D' -- because `-MD' means `put the output
3553   # in D'.
3554   mkdir conftest.dir
3555   # Copy depcomp to subdir because otherwise we won't find it if we're
3556   # using a relative directory.
3557   cp "$am_depcomp" conftest.dir
3558   cd conftest.dir
3559   # We will build objects and dependencies in a subdirectory because
3560   # it helps to detect inapplicable dependency modes.  For instance
3561   # both Tru64's cc and ICC support -MD to output dependencies as a
3562   # side effect of compilation, but ICC will put the dependencies in
3563   # the current directory while Tru64 will put them in the object
3564   # directory.
3565   mkdir sub
3566
3567   am_cv_CC_dependencies_compiler_type=none
3568   if test "$am_compiler_list" = ""; then
3569      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3570   fi
3571   for depmode in $am_compiler_list; do
3572     # Setup a source with many dependencies, because some compilers
3573     # like to wrap large dependency lists on column 80 (with \), and
3574     # we should not choose a depcomp mode which is confused by this.
3575     #
3576     # We need to recreate these files for each test, as the compiler may
3577     # overwrite some of them when testing with obscure command lines.
3578     # This happens at least with the AIX C compiler.
3579     : > sub/conftest.c
3580     for i in 1 2 3 4 5 6; do
3581       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3582       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3583       # Solaris 8's {/usr,}/bin/sh.
3584       touch sub/conftst$i.h
3585     done
3586     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3587
3588     case $depmode in
3589     nosideeffect)
3590       # after this tag, mechanisms are not by side-effect, so they'll
3591       # only be used when explicitly requested
3592       if test "x$enable_dependency_tracking" = xyes; then
3593         continue
3594       else
3595         break
3596       fi
3597       ;;
3598     none) break ;;
3599     esac
3600     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3601     # mode.  It turns out that the SunPro C++ compiler does not properly
3602     # handle `-M -o', and we need to detect this.
3603     if depmode=$depmode \
3604        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3605        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3606        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3607          >/dev/null 2>conftest.err &&
3608        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3609        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3610        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3611        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3612       # icc doesn't choke on unknown options, it will just issue warnings
3613       # or remarks (even with -Werror).  So we grep stderr for any message
3614       # that says an option was ignored or not supported.
3615       # When given -MP, icc 7.0 and 7.1 complain thusly:
3616       #   icc: Command line warning: ignoring option '-M'; no argument required
3617       # The diagnosis changed in icc 8.0:
3618       #   icc: Command line remark: option '-MP' not supported
3619       if (grep 'ignoring option' conftest.err ||
3620           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3621         am_cv_CC_dependencies_compiler_type=$depmode
3622         break
3623       fi
3624     fi
3625   done
3626
3627   cd ..
3628   rm -rf conftest.dir
3629 else
3630   am_cv_CC_dependencies_compiler_type=none
3631 fi
3632
3633 fi
3634 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3635 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3636 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3637
3638  if
3639   test "x$enable_dependency_tracking" != xno \
3640   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3641   am__fastdepCC_TRUE=
3642   am__fastdepCC_FALSE='#'
3643 else
3644   am__fastdepCC_TRUE='#'
3645   am__fastdepCC_FALSE=
3646 fi
3647
3648
3649 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3650 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3651 if test "${lt_cv_path_SED+set}" = set; then
3652   echo $ECHO_N "(cached) $ECHO_C" >&6
3653 else
3654   # Loop through the user's path and test for sed and gsed.
3655 # Then use that list of sed's as ones to test for truncation.
3656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3657 for as_dir in $PATH
3658 do
3659   IFS=$as_save_IFS
3660   test -z "$as_dir" && as_dir=.
3661   for lt_ac_prog in sed gsed; do
3662     for ac_exec_ext in '' $ac_executable_extensions; do
3663       if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3664         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3665       fi
3666     done
3667   done
3668 done
3669 IFS=$as_save_IFS
3670 lt_ac_max=0
3671 lt_ac_count=0
3672 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3673 # along with /bin/sed that truncates output.
3674 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3675   test ! -f $lt_ac_sed && continue
3676   cat /dev/null > conftest.in
3677   lt_ac_count=0
3678   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3679   # Check for GNU sed and select it if it is found.
3680   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3681     lt_cv_path_SED=$lt_ac_sed
3682     break
3683   fi
3684   while true; do
3685     cat conftest.in conftest.in >conftest.tmp
3686     mv conftest.tmp conftest.in
3687     cp conftest.in conftest.nl
3688     echo >>conftest.nl
3689     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3690     cmp -s conftest.out conftest.nl || break
3691     # 10000 chars as input seems more than enough
3692     test $lt_ac_count -gt 10 && break
3693     lt_ac_count=`expr $lt_ac_count + 1`
3694     if test $lt_ac_count -gt $lt_ac_max; then
3695       lt_ac_max=$lt_ac_count
3696       lt_cv_path_SED=$lt_ac_sed
3697     fi
3698   done
3699 done
3700
3701 fi
3702
3703 SED=$lt_cv_path_SED
3704
3705 { echo "$as_me:$LINENO: result: $SED" >&5
3706 echo "${ECHO_T}$SED" >&6; }
3707
3708 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3709 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3710 if test "${ac_cv_path_GREP+set}" = set; then
3711   echo $ECHO_N "(cached) $ECHO_C" >&6
3712 else
3713   # Extract the first word of "grep ggrep" to use in msg output
3714 if test -z "$GREP"; then
3715 set dummy grep ggrep; ac_prog_name=$2
3716 if test "${ac_cv_path_GREP+set}" = set; then
3717   echo $ECHO_N "(cached) $ECHO_C" >&6
3718 else
3719   ac_path_GREP_found=false
3720 # Loop through the user's path and test for each of PROGNAME-LIST
3721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3722 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3723 do
3724   IFS=$as_save_IFS
3725   test -z "$as_dir" && as_dir=.
3726   for ac_prog in grep ggrep; do
3727   for ac_exec_ext in '' $ac_executable_extensions; do
3728     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3729     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3730     # Check for GNU ac_path_GREP and select it if it is found.
3731   # Check for GNU $ac_path_GREP
3732 case `"$ac_path_GREP" --version 2>&1` in
3733 *GNU*)
3734   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3735 *)
3736   ac_count=0
3737   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3738   while :
3739   do
3740     cat "conftest.in" "conftest.in" >"conftest.tmp"
3741     mv "conftest.tmp" "conftest.in"
3742     cp "conftest.in" "conftest.nl"
3743     echo 'GREP' >> "conftest.nl"
3744     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3745     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3746     ac_count=`expr $ac_count + 1`
3747     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3748       # Best one so far, save it but keep looking for a better one
3749       ac_cv_path_GREP="$ac_path_GREP"
3750       ac_path_GREP_max=$ac_count
3751     fi
3752     # 10*(2^10) chars as input seems more than enough
3753     test $ac_count -gt 10 && break
3754   done
3755   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3756 esac
3757
3758
3759     $ac_path_GREP_found && break 3
3760   done
3761 done
3762
3763 done
3764 IFS=$as_save_IFS
3765
3766
3767 fi
3768
3769 GREP="$ac_cv_path_GREP"
3770 if test -z "$GREP"; then
3771   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3772 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3773    { (exit 1); exit 1; }; }
3774 fi
3775
3776 else
3777   ac_cv_path_GREP=$GREP
3778 fi
3779
3780
3781 fi
3782 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3783 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3784  GREP="$ac_cv_path_GREP"
3785
3786
3787 { echo "$as_me:$LINENO: checking for egrep" >&5
3788 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3789 if test "${ac_cv_path_EGREP+set}" = set; then
3790   echo $ECHO_N "(cached) $ECHO_C" >&6
3791 else
3792   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3793    then ac_cv_path_EGREP="$GREP -E"
3794    else
3795      # Extract the first word of "egrep" to use in msg output
3796 if test -z "$EGREP"; then
3797 set dummy egrep; ac_prog_name=$2
3798 if test "${ac_cv_path_EGREP+set}" = set; then
3799   echo $ECHO_N "(cached) $ECHO_C" >&6
3800 else
3801   ac_path_EGREP_found=false
3802 # Loop through the user's path and test for each of PROGNAME-LIST
3803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3804 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3805 do
3806   IFS=$as_save_IFS
3807   test -z "$as_dir" && as_dir=.
3808   for ac_prog in egrep; do
3809   for ac_exec_ext in '' $ac_executable_extensions; do
3810     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3811     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3812     # Check for GNU ac_path_EGREP and select it if it is found.
3813   # Check for GNU $ac_path_EGREP
3814 case `"$ac_path_EGREP" --version 2>&1` in
3815 *GNU*)
3816   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3817 *)
3818   ac_count=0
3819   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3820   while :
3821   do
3822     cat "conftest.in" "conftest.in" >"conftest.tmp"
3823     mv "conftest.tmp" "conftest.in"
3824     cp "conftest.in" "conftest.nl"
3825     echo 'EGREP' >> "conftest.nl"
3826     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3827     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3828     ac_count=`expr $ac_count + 1`
3829     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3830       # Best one so far, save it but keep looking for a better one
3831       ac_cv_path_EGREP="$ac_path_EGREP"
3832       ac_path_EGREP_max=$ac_count
3833     fi
3834     # 10*(2^10) chars as input seems more than enough
3835     test $ac_count -gt 10 && break
3836   done
3837   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3838 esac
3839
3840
3841     $ac_path_EGREP_found && break 3
3842   done
3843 done
3844
3845 done
3846 IFS=$as_save_IFS
3847
3848
3849 fi
3850
3851 EGREP="$ac_cv_path_EGREP"
3852 if test -z "$EGREP"; then
3853   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3854 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3855    { (exit 1); exit 1; }; }
3856 fi
3857
3858 else
3859   ac_cv_path_EGREP=$EGREP
3860 fi
3861
3862
3863    fi
3864 fi
3865 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3866 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3867  EGREP="$ac_cv_path_EGREP"
3868
3869
3870
3871 # Check whether --with-gnu-ld was given.
3872 if test "${with_gnu_ld+set}" = set; then
3873   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3874 else
3875   with_gnu_ld=no
3876 fi
3877
3878 ac_prog=ld
3879 if test "$GCC" = yes; then
3880   # Check if gcc -print-prog-name=ld gives a path.
3881   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3882 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
3883   case $host in
3884   *-*-mingw*)
3885     # gcc leaves a trailing carriage return which upsets mingw
3886     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3887   *)
3888     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3889   esac
3890   case $ac_prog in
3891     # Accept absolute paths.
3892     [\\/]* | ?:[\\/]*)
3893       re_direlt='/[^/][^/]*/\.\./'
3894       # Canonicalize the pathname of ld
3895       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3896       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3897         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3898       done
3899       test -z "$LD" && LD="$ac_prog"
3900       ;;
3901   "")
3902     # If it fails, then pretend we aren't using GCC.
3903     ac_prog=ld
3904     ;;
3905   *)
3906     # If it is relative, then search for the first ld in PATH.
3907     with_gnu_ld=unknown
3908     ;;
3909   esac
3910 elif test "$with_gnu_ld" = yes; then
3911   { echo "$as_me:$LINENO: checking for GNU ld" >&5
3912 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
3913 else
3914   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3915 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
3916 fi
3917 if test "${lt_cv_path_LD+set}" = set; then
3918   echo $ECHO_N "(cached) $ECHO_C" >&6
3919 else
3920   if test -z "$LD"; then
3921   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3922   for ac_dir in $PATH; do
3923     IFS="$lt_save_ifs"
3924     test -z "$ac_dir" && ac_dir=.
3925     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3926       lt_cv_path_LD="$ac_dir/$ac_prog"
3927       # Check to see if the program is GNU ld.  I'd rather use --version,
3928       # but apparently some variants of GNU ld only accept -v.
3929       # Break only if it was the GNU/non-GNU ld that we prefer.
3930       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3931       *GNU* | *'with BFD'*)
3932         test "$with_gnu_ld" != no && break
3933         ;;
3934       *)
3935         test "$with_gnu_ld" != yes && break
3936         ;;
3937       esac
3938     fi
3939   done
3940   IFS="$lt_save_ifs"
3941 else
3942   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3943 fi
3944 fi
3945
3946 LD="$lt_cv_path_LD"
3947 if test -n "$LD"; then
3948   { echo "$as_me:$LINENO: result: $LD" >&5
3949 echo "${ECHO_T}$LD" >&6; }
3950 else
3951   { echo "$as_me:$LINENO: result: no" >&5
3952 echo "${ECHO_T}no" >&6; }
3953 fi
3954 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3955 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3956    { (exit 1); exit 1; }; }
3957 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3958 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
3959 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3960   echo $ECHO_N "(cached) $ECHO_C" >&6
3961 else
3962   # I'd rather use --version here, but apparently some GNU lds only accept -v.
3963 case `$LD -v 2>&1 </dev/null` in
3964 *GNU* | *'with BFD'*)
3965   lt_cv_prog_gnu_ld=yes
3966   ;;
3967 *)
3968   lt_cv_prog_gnu_ld=no
3969   ;;
3970 esac
3971 fi
3972 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3973 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
3974 with_gnu_ld=$lt_cv_prog_gnu_ld
3975
3976
3977 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3978 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
3979 if test "${lt_cv_ld_reload_flag+set}" = set; then
3980   echo $ECHO_N "(cached) $ECHO_C" >&6
3981 else
3982   lt_cv_ld_reload_flag='-r'
3983 fi
3984 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3985 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
3986 reload_flag=$lt_cv_ld_reload_flag
3987 case $reload_flag in
3988 "" | " "*) ;;
3989 *) reload_flag=" $reload_flag" ;;
3990 esac
3991 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3992 case $host_os in
3993   darwin*)
3994     if test "$GCC" = yes; then
3995       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3996     else
3997       reload_cmds='$LD$reload_flag -o $output$reload_objs'
3998     fi
3999     ;;
4000 esac
4001
4002 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4003 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4004 if test "${lt_cv_path_NM+set}" = set; then
4005   echo $ECHO_N "(cached) $ECHO_C" >&6
4006 else
4007   if test -n "$NM"; then
4008   # Let the user override the test.
4009   lt_cv_path_NM="$NM"
4010 else
4011   lt_nm_to_check="${ac_tool_prefix}nm"
4012   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4013     lt_nm_to_check="$lt_nm_to_check nm"
4014   fi
4015   for lt_tmp_nm in $lt_nm_to_check; do
4016     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4017     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4018       IFS="$lt_save_ifs"
4019       test -z "$ac_dir" && ac_dir=.
4020       tmp_nm="$ac_dir/$lt_tmp_nm"
4021       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4022         # Check to see if the nm accepts a BSD-compat flag.
4023         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4024         #   nm: unknown option "B" ignored
4025         # Tru64's nm complains that /dev/null is an invalid object file
4026         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4027         */dev/null* | *'Invalid file or object type'*)
4028           lt_cv_path_NM="$tmp_nm -B"
4029           break
4030           ;;
4031         *)
4032           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4033           */dev/null*)
4034             lt_cv_path_NM="$tmp_nm -p"
4035             break
4036             ;;
4037           *)
4038             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4039             continue # so that we can try to find one that supports BSD flags
4040             ;;
4041           esac
4042           ;;
4043         esac
4044       fi
4045     done
4046     IFS="$lt_save_ifs"
4047   done
4048   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4049 fi
4050 fi
4051 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4052 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4053 NM="$lt_cv_path_NM"
4054
4055 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4056 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4057 LN_S=$as_ln_s
4058 if test "$LN_S" = "ln -s"; then
4059   { echo "$as_me:$LINENO: result: yes" >&5
4060 echo "${ECHO_T}yes" >&6; }
4061 else
4062   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4063 echo "${ECHO_T}no, using $LN_S" >&6; }
4064 fi
4065
4066 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4067 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4068 if test "${lt_cv_deplibs_check_method+set}" = set; then
4069   echo $ECHO_N "(cached) $ECHO_C" >&6
4070 else
4071   lt_cv_file_magic_cmd='$MAGIC_CMD'
4072 lt_cv_file_magic_test_file=
4073 lt_cv_deplibs_check_method='unknown'
4074 # Need to set the preceding variable on all platforms that support
4075 # interlibrary dependencies.
4076 # 'none' -- dependencies not supported.
4077 # `unknown' -- same as none, but documents that we really don't know.
4078 # 'pass_all' -- all dependencies passed with no checks.
4079 # 'test_compile' -- check by making test program.
4080 # 'file_magic [[regex]]' -- check by looking for files in library path
4081 # which responds to the $file_magic_cmd with a given extended regex.
4082 # If you have `file' or equivalent on your system and you're not sure
4083 # whether `pass_all' will *always* work, you probably want this one.
4084
4085 case $host_os in
4086 aix4* | aix5*)
4087   lt_cv_deplibs_check_method=pass_all
4088   ;;
4089
4090 beos*)
4091   lt_cv_deplibs_check_method=pass_all
4092   ;;
4093
4094 bsdi[45]*)
4095   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4096   lt_cv_file_magic_cmd='/usr/bin/file -L'
4097   lt_cv_file_magic_test_file=/shlib/libc.so
4098   ;;
4099
4100 cygwin*)
4101   # func_win32_libid is a shell function defined in ltmain.sh
4102   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4103   lt_cv_file_magic_cmd='func_win32_libid'
4104   ;;
4105
4106 mingw* | pw32*)
4107   # Base MSYS/MinGW do not provide the 'file' command needed by
4108   # func_win32_libid shell function, so use a weaker test based on 'objdump',
4109   # unless we find 'file', for example because we are cross-compiling.
4110   if ( file / ) >/dev/null 2>&1; then
4111     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4112     lt_cv_file_magic_cmd='func_win32_libid'
4113   else
4114     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4115     lt_cv_file_magic_cmd='$OBJDUMP -f'
4116   fi
4117   ;;
4118
4119 darwin* | rhapsody*)
4120   lt_cv_deplibs_check_method=pass_all
4121   ;;
4122
4123 freebsd* | dragonfly*)
4124   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4125     case $host_cpu in
4126     i*86 )
4127       # Not sure whether the presence of OpenBSD here was a mistake.
4128       # Let's accept both of them until this is cleared up.
4129       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4130       lt_cv_file_magic_cmd=/usr/bin/file
4131       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4132       ;;
4133     esac
4134   else
4135     lt_cv_deplibs_check_method=pass_all
4136   fi
4137   ;;
4138
4139 gnu*)
4140   lt_cv_deplibs_check_method=pass_all
4141   ;;
4142
4143 hpux10.20* | hpux11*)
4144   lt_cv_file_magic_cmd=/usr/bin/file
4145   case $host_cpu in
4146   ia64*)
4147     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4148     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4149     ;;
4150   hppa*64*)
4151     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]'
4152     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4153     ;;
4154   *)
4155     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4156     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4157     ;;
4158   esac
4159   ;;
4160
4161 interix[3-9]*)
4162   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4163   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4164   ;;
4165
4166 irix5* | irix6* | nonstopux*)
4167   case $LD in
4168   *-32|*"-32 ") libmagic=32-bit;;
4169   *-n32|*"-n32 ") libmagic=N32;;
4170   *-64|*"-64 ") libmagic=64-bit;;
4171   *) libmagic=never-match;;
4172   esac
4173   lt_cv_deplibs_check_method=pass_all
4174   ;;
4175
4176 # This must be Linux ELF.
4177 linux* | k*bsd*-gnu)
4178   lt_cv_deplibs_check_method=pass_all
4179   ;;
4180
4181 netbsd*)
4182   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4183     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4184   else
4185     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4186   fi
4187   ;;
4188
4189 newos6*)
4190   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4191   lt_cv_file_magic_cmd=/usr/bin/file
4192   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4193   ;;
4194
4195 nto-qnx*)
4196   lt_cv_deplibs_check_method=unknown
4197   ;;
4198
4199 openbsd*)
4200   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4201     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4202   else
4203     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4204   fi
4205   ;;
4206
4207 osf3* | osf4* | osf5*)
4208   lt_cv_deplibs_check_method=pass_all
4209   ;;
4210
4211 rdos*)
4212   lt_cv_deplibs_check_method=pass_all
4213   ;;
4214
4215 solaris*)
4216   lt_cv_deplibs_check_method=pass_all
4217   ;;
4218
4219 sysv4 | sysv4.3*)
4220   case $host_vendor in
4221   motorola)
4222     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]'
4223     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4224     ;;
4225   ncr)
4226     lt_cv_deplibs_check_method=pass_all
4227     ;;
4228   sequent)
4229     lt_cv_file_magic_cmd='/bin/file'
4230     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4231     ;;
4232   sni)
4233     lt_cv_file_magic_cmd='/bin/file'
4234     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4235     lt_cv_file_magic_test_file=/lib/libc.so
4236     ;;
4237   siemens)
4238     lt_cv_deplibs_check_method=pass_all
4239     ;;
4240   pc)
4241     lt_cv_deplibs_check_method=pass_all
4242     ;;
4243   esac
4244   ;;
4245
4246 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4247   lt_cv_deplibs_check_method=pass_all
4248   ;;
4249 esac
4250
4251 fi
4252 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4253 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4254 file_magic_cmd=$lt_cv_file_magic_cmd
4255 deplibs_check_method=$lt_cv_deplibs_check_method
4256 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4257
4258
4259
4260
4261 # If no C compiler was specified, use CC.
4262 LTCC=${LTCC-"$CC"}
4263
4264 # If no C compiler flags were specified, use CFLAGS.
4265 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4266
4267 # Allow CC to be a program name with arguments.
4268 compiler=$CC
4269
4270
4271 # Check whether --enable-libtool-lock was given.
4272 if test "${enable_libtool_lock+set}" = set; then
4273   enableval=$enable_libtool_lock;
4274 fi
4275
4276 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4277
4278 # Some flags need to be propagated to the compiler or linker for good
4279 # libtool support.
4280 case $host in
4281 ia64-*-hpux*)
4282   # Find out which ABI we are using.
4283   echo 'int i;' > conftest.$ac_ext
4284   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4285   (eval $ac_compile) 2>&5
4286   ac_status=$?
4287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4288   (exit $ac_status); }; then
4289     case `/usr/bin/file conftest.$ac_objext` in
4290     *ELF-32*)
4291       HPUX_IA64_MODE="32"
4292       ;;
4293     *ELF-64*)
4294       HPUX_IA64_MODE="64"
4295       ;;
4296     esac
4297   fi
4298   rm -rf conftest*
4299   ;;
4300 *-*-irix6*)
4301   # Find out which ABI we are using.
4302   echo '#line 4302 "configure"' > conftest.$ac_ext
4303   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4304   (eval $ac_compile) 2>&5
4305   ac_status=$?
4306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4307   (exit $ac_status); }; then
4308    if test "$lt_cv_prog_gnu_ld" = yes; then
4309     case `/usr/bin/file conftest.$ac_objext` in
4310     *32-bit*)
4311       LD="${LD-ld} -melf32bsmip"
4312       ;;
4313     *N32*)
4314       LD="${LD-ld} -melf32bmipn32"
4315       ;;
4316     *64-bit*)
4317       LD="${LD-ld} -melf64bmip"
4318       ;;
4319     esac
4320    else
4321     case `/usr/bin/file conftest.$ac_objext` in
4322     *32-bit*)
4323       LD="${LD-ld} -32"
4324       ;;
4325     *N32*)
4326       LD="${LD-ld} -n32"
4327       ;;
4328     *64-bit*)
4329       LD="${LD-ld} -64"
4330       ;;
4331     esac
4332    fi
4333   fi
4334   rm -rf conftest*
4335   ;;
4336
4337 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4338 s390*-*linux*|sparc*-*linux*)
4339   # Find out which ABI we are using.
4340   echo 'int i;' > conftest.$ac_ext
4341   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4342   (eval $ac_compile) 2>&5
4343   ac_status=$?
4344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4345   (exit $ac_status); }; then
4346     case `/usr/bin/file conftest.o` in
4347     *32-bit*)
4348       case $host in
4349         x86_64-*kfreebsd*-gnu)
4350           LD="${LD-ld} -m elf_i386_fbsd"
4351           ;;
4352         x86_64-*linux*)
4353           LD="${LD-ld} -m elf_i386"
4354           ;;
4355         ppc64-*linux*|powerpc64-*linux*)
4356           LD="${LD-ld} -m elf32ppclinux"
4357           ;;
4358         s390x-*linux*)
4359           LD="${LD-ld} -m elf_s390"
4360           ;;
4361         sparc64-*linux*)
4362           LD="${LD-ld} -m elf32_sparc"
4363           ;;
4364       esac
4365       ;;
4366     *64-bit*)
4367       case $host in
4368         x86_64-*kfreebsd*-gnu)
4369           LD="${LD-ld} -m elf_x86_64_fbsd"
4370           ;;
4371         x86_64-*linux*)
4372           LD="${LD-ld} -m elf_x86_64"
4373           ;;
4374         ppc*-*linux*|powerpc*-*linux*)
4375           LD="${LD-ld} -m elf64ppc"
4376           ;;
4377         s390*-*linux*)
4378           LD="${LD-ld} -m elf64_s390"
4379           ;;
4380         sparc*-*linux*)
4381           LD="${LD-ld} -m elf64_sparc"
4382           ;;
4383       esac
4384       ;;
4385     esac
4386   fi
4387   rm -rf conftest*
4388   ;;
4389
4390 *-*-sco3.2v5*)
4391   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4392   SAVE_CFLAGS="$CFLAGS"
4393   CFLAGS="$CFLAGS -belf"
4394   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4395 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4396 if test "${lt_cv_cc_needs_belf+set}" = set; then
4397   echo $ECHO_N "(cached) $ECHO_C" >&6
4398 else
4399   ac_ext=c
4400 ac_cpp='$CPP $CPPFLAGS'
4401 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4402 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4403 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4404
4405      cat >conftest.$ac_ext <<_ACEOF
4406 /* confdefs.h.  */
4407 _ACEOF
4408 cat confdefs.h >>conftest.$ac_ext
4409 cat >>conftest.$ac_ext <<_ACEOF
4410 /* end confdefs.h.  */
4411
4412 int
4413 main ()
4414 {
4415
4416   ;
4417   return 0;
4418 }
4419 _ACEOF
4420 rm -f conftest.$ac_objext conftest$ac_exeext
4421 if { (ac_try="$ac_link"
4422 case "(($ac_try" in
4423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4424   *) ac_try_echo=$ac_try;;
4425 esac
4426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4427   (eval "$ac_link") 2>conftest.er1
4428   ac_status=$?
4429   grep -v '^ *+' conftest.er1 >conftest.err
4430   rm -f conftest.er1
4431   cat conftest.err >&5
4432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4433   (exit $ac_status); } && {
4434          test -z "$ac_c_werror_flag" ||
4435          test ! -s conftest.err
4436        } && test -s conftest$ac_exeext &&
4437        $as_test_x conftest$ac_exeext; then
4438   lt_cv_cc_needs_belf=yes
4439 else
4440   echo "$as_me: failed program was:" >&5
4441 sed 's/^/| /' conftest.$ac_ext >&5
4442
4443         lt_cv_cc_needs_belf=no
4444 fi
4445
4446 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4447       conftest$ac_exeext conftest.$ac_ext
4448      ac_ext=c
4449 ac_cpp='$CPP $CPPFLAGS'
4450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4453
4454 fi
4455 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4456 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4457   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4458     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4459     CFLAGS="$SAVE_CFLAGS"
4460   fi
4461   ;;
4462 sparc*-*solaris*)
4463   # Find out which ABI we are using.
4464   echo 'int i;' > conftest.$ac_ext
4465   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4466   (eval $ac_compile) 2>&5
4467   ac_status=$?
4468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4469   (exit $ac_status); }; then
4470     case `/usr/bin/file conftest.o` in
4471     *64-bit*)
4472       case $lt_cv_prog_gnu_ld in
4473       yes*) LD="${LD-ld} -m elf64_sparc" ;;
4474       *)    LD="${LD-ld} -64" ;;
4475       esac
4476       ;;
4477     esac
4478   fi
4479   rm -rf conftest*
4480   ;;
4481
4482
4483 esac
4484
4485 need_locks="$enable_libtool_lock"
4486
4487
4488 ac_ext=c
4489 ac_cpp='$CPP $CPPFLAGS'
4490 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4491 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4492 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4493 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4494 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4495 # On Suns, sometimes $CPP names a directory.
4496 if test -n "$CPP" && test -d "$CPP"; then
4497   CPP=
4498 fi
4499 if test -z "$CPP"; then
4500   if test "${ac_cv_prog_CPP+set}" = set; then
4501   echo $ECHO_N "(cached) $ECHO_C" >&6
4502 else
4503       # Double quotes because CPP needs to be expanded
4504     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4505     do
4506       ac_preproc_ok=false
4507 for ac_c_preproc_warn_flag in '' yes
4508 do
4509   # Use a header file that comes with gcc, so configuring glibc
4510   # with a fresh cross-compiler works.
4511   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4512   # <limits.h> exists even on freestanding compilers.
4513   # On the NeXT, cc -E runs the code through the compiler's parser,
4514   # not just through cpp. "Syntax error" is here to catch this case.
4515   cat >conftest.$ac_ext <<_ACEOF
4516 /* confdefs.h.  */
4517 _ACEOF
4518 cat confdefs.h >>conftest.$ac_ext
4519 cat >>conftest.$ac_ext <<_ACEOF
4520 /* end confdefs.h.  */
4521 #ifdef __STDC__
4522 # include <limits.h>
4523 #else
4524 # include <assert.h>
4525 #endif
4526                      Syntax error
4527 _ACEOF
4528 if { (ac_try="$ac_cpp conftest.$ac_ext"
4529 case "(($ac_try" in
4530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4531   *) ac_try_echo=$ac_try;;
4532 esac
4533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4534   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4535   ac_status=$?
4536   grep -v '^ *+' conftest.er1 >conftest.err
4537   rm -f conftest.er1
4538   cat conftest.err >&5
4539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4540   (exit $ac_status); } >/dev/null && {
4541          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4542          test ! -s conftest.err
4543        }; then
4544   :
4545 else
4546   echo "$as_me: failed program was:" >&5
4547 sed 's/^/| /' conftest.$ac_ext >&5
4548
4549   # Broken: fails on valid input.
4550 continue
4551 fi
4552
4553 rm -f conftest.err conftest.$ac_ext
4554
4555   # OK, works on sane cases.  Now check whether nonexistent headers
4556   # can be detected and how.
4557   cat >conftest.$ac_ext <<_ACEOF
4558 /* confdefs.h.  */
4559 _ACEOF
4560 cat confdefs.h >>conftest.$ac_ext
4561 cat >>conftest.$ac_ext <<_ACEOF
4562 /* end confdefs.h.  */
4563 #include <ac_nonexistent.h>
4564 _ACEOF
4565 if { (ac_try="$ac_cpp conftest.$ac_ext"
4566 case "(($ac_try" in
4567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4568   *) ac_try_echo=$ac_try;;
4569 esac
4570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4571   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4572   ac_status=$?
4573   grep -v '^ *+' conftest.er1 >conftest.err
4574   rm -f conftest.er1
4575   cat conftest.err >&5
4576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4577   (exit $ac_status); } >/dev/null && {
4578          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4579          test ! -s conftest.err
4580        }; then
4581   # Broken: success on invalid input.
4582 continue
4583 else
4584   echo "$as_me: failed program was:" >&5
4585 sed 's/^/| /' conftest.$ac_ext >&5
4586
4587   # Passes both tests.
4588 ac_preproc_ok=:
4589 break
4590 fi
4591
4592 rm -f conftest.err conftest.$ac_ext
4593
4594 done
4595 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4596 rm -f conftest.err conftest.$ac_ext
4597 if $ac_preproc_ok; then
4598   break
4599 fi
4600
4601     done
4602     ac_cv_prog_CPP=$CPP
4603
4604 fi
4605   CPP=$ac_cv_prog_CPP
4606 else
4607   ac_cv_prog_CPP=$CPP
4608 fi
4609 { echo "$as_me:$LINENO: result: $CPP" >&5
4610 echo "${ECHO_T}$CPP" >&6; }
4611 ac_preproc_ok=false
4612 for ac_c_preproc_warn_flag in '' yes
4613 do
4614   # Use a header file that comes with gcc, so configuring glibc
4615   # with a fresh cross-compiler works.
4616   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4617   # <limits.h> exists even on freestanding compilers.
4618   # On the NeXT, cc -E runs the code through the compiler's parser,
4619   # not just through cpp. "Syntax error" is here to catch this case.
4620   cat >conftest.$ac_ext <<_ACEOF
4621 /* confdefs.h.  */
4622 _ACEOF
4623 cat confdefs.h >>conftest.$ac_ext
4624 cat >>conftest.$ac_ext <<_ACEOF
4625 /* end confdefs.h.  */
4626 #ifdef __STDC__
4627 # include <limits.h>
4628 #else
4629 # include <assert.h>
4630 #endif
4631                      Syntax error
4632 _ACEOF
4633 if { (ac_try="$ac_cpp conftest.$ac_ext"
4634 case "(($ac_try" in
4635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4636   *) ac_try_echo=$ac_try;;
4637 esac
4638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4639   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4640   ac_status=$?
4641   grep -v '^ *+' conftest.er1 >conftest.err
4642   rm -f conftest.er1
4643   cat conftest.err >&5
4644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4645   (exit $ac_status); } >/dev/null && {
4646          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4647          test ! -s conftest.err
4648        }; then
4649   :
4650 else
4651   echo "$as_me: failed program was:" >&5
4652 sed 's/^/| /' conftest.$ac_ext >&5
4653
4654   # Broken: fails on valid input.
4655 continue
4656 fi
4657
4658 rm -f conftest.err conftest.$ac_ext
4659
4660   # OK, works on sane cases.  Now check whether nonexistent headers
4661   # can be detected and how.
4662   cat >conftest.$ac_ext <<_ACEOF
4663 /* confdefs.h.  */
4664 _ACEOF
4665 cat confdefs.h >>conftest.$ac_ext
4666 cat >>conftest.$ac_ext <<_ACEOF
4667 /* end confdefs.h.  */
4668 #include <ac_nonexistent.h>
4669 _ACEOF
4670 if { (ac_try="$ac_cpp conftest.$ac_ext"
4671 case "(($ac_try" in
4672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4673   *) ac_try_echo=$ac_try;;
4674 esac
4675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4676   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4677   ac_status=$?
4678   grep -v '^ *+' conftest.er1 >conftest.err
4679   rm -f conftest.er1
4680   cat conftest.err >&5
4681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4682   (exit $ac_status); } >/dev/null && {
4683          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4684          test ! -s conftest.err
4685        }; then
4686   # Broken: success on invalid input.
4687 continue
4688 else
4689   echo "$as_me: failed program was:" >&5
4690 sed 's/^/| /' conftest.$ac_ext >&5
4691
4692   # Passes both tests.
4693 ac_preproc_ok=:
4694 break
4695 fi
4696
4697 rm -f conftest.err conftest.$ac_ext
4698
4699 done
4700 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4701 rm -f conftest.err conftest.$ac_ext
4702 if $ac_preproc_ok; then
4703   :
4704 else
4705   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4706 See \`config.log' for more details." >&5
4707 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4708 See \`config.log' for more details." >&2;}
4709    { (exit 1); exit 1; }; }
4710 fi
4711
4712 ac_ext=c
4713 ac_cpp='$CPP $CPPFLAGS'
4714 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4715 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4716 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4717
4718
4719 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4720 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4721 if test "${ac_cv_header_stdc+set}" = set; then
4722   echo $ECHO_N "(cached) $ECHO_C" >&6
4723 else
4724   cat >conftest.$ac_ext <<_ACEOF
4725 /* confdefs.h.  */
4726 _ACEOF
4727 cat confdefs.h >>conftest.$ac_ext
4728 cat >>conftest.$ac_ext <<_ACEOF
4729 /* end confdefs.h.  */
4730 #include <stdlib.h>
4731 #include <stdarg.h>
4732 #include <string.h>
4733 #include <float.h>
4734
4735 int
4736 main ()
4737 {
4738
4739   ;
4740   return 0;
4741 }
4742 _ACEOF
4743 rm -f conftest.$ac_objext
4744 if { (ac_try="$ac_compile"
4745 case "(($ac_try" in
4746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4747   *) ac_try_echo=$ac_try;;
4748 esac
4749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4750   (eval "$ac_compile") 2>conftest.er1
4751   ac_status=$?
4752   grep -v '^ *+' conftest.er1 >conftest.err
4753   rm -f conftest.er1
4754   cat conftest.err >&5
4755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4756   (exit $ac_status); } && {
4757          test -z "$ac_c_werror_flag" ||
4758          test ! -s conftest.err
4759        } && test -s conftest.$ac_objext; then
4760   ac_cv_header_stdc=yes
4761 else
4762   echo "$as_me: failed program was:" >&5
4763 sed 's/^/| /' conftest.$ac_ext >&5
4764
4765         ac_cv_header_stdc=no
4766 fi
4767
4768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4769
4770 if test $ac_cv_header_stdc = yes; then
4771   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4772   cat >conftest.$ac_ext <<_ACEOF
4773 /* confdefs.h.  */
4774 _ACEOF
4775 cat confdefs.h >>conftest.$ac_ext
4776 cat >>conftest.$ac_ext <<_ACEOF
4777 /* end confdefs.h.  */
4778 #include <string.h>
4779
4780 _ACEOF
4781 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4782   $EGREP "memchr" >/dev/null 2>&1; then
4783   :
4784 else
4785   ac_cv_header_stdc=no
4786 fi
4787 rm -f conftest*
4788
4789 fi
4790
4791 if test $ac_cv_header_stdc = yes; then
4792   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
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 #include <stdlib.h>
4800
4801 _ACEOF
4802 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4803   $EGREP "free" >/dev/null 2>&1; then
4804   :
4805 else
4806   ac_cv_header_stdc=no
4807 fi
4808 rm -f conftest*
4809
4810 fi
4811
4812 if test $ac_cv_header_stdc = yes; then
4813   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4814   if test "$cross_compiling" = yes; then
4815   :
4816 else
4817   cat >conftest.$ac_ext <<_ACEOF
4818 /* confdefs.h.  */
4819 _ACEOF
4820 cat confdefs.h >>conftest.$ac_ext
4821 cat >>conftest.$ac_ext <<_ACEOF
4822 /* end confdefs.h.  */
4823 #include <ctype.h>
4824 #include <stdlib.h>
4825 #if ((' ' & 0x0FF) == 0x020)
4826 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4827 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4828 #else
4829 # define ISLOWER(c) \
4830                    (('a' <= (c) && (c) <= 'i') \
4831                      || ('j' <= (c) && (c) <= 'r') \
4832                      || ('s' <= (c) && (c) <= 'z'))
4833 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4834 #endif
4835
4836 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4837 int
4838 main ()
4839 {
4840   int i;
4841   for (i = 0; i < 256; i++)
4842     if (XOR (islower (i), ISLOWER (i))
4843         || toupper (i) != TOUPPER (i))
4844       return 2;
4845   return 0;
4846 }
4847 _ACEOF
4848 rm -f conftest$ac_exeext
4849 if { (ac_try="$ac_link"
4850 case "(($ac_try" in
4851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4852   *) ac_try_echo=$ac_try;;
4853 esac
4854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4855   (eval "$ac_link") 2>&5
4856   ac_status=$?
4857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4858   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4859   { (case "(($ac_try" in
4860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4861   *) ac_try_echo=$ac_try;;
4862 esac
4863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4864   (eval "$ac_try") 2>&5
4865   ac_status=$?
4866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4867   (exit $ac_status); }; }; then
4868   :
4869 else
4870   echo "$as_me: program exited with status $ac_status" >&5
4871 echo "$as_me: failed program was:" >&5
4872 sed 's/^/| /' conftest.$ac_ext >&5
4873
4874 ( exit $ac_status )
4875 ac_cv_header_stdc=no
4876 fi
4877 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4878 fi
4879
4880
4881 fi
4882 fi
4883 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4884 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4885 if test $ac_cv_header_stdc = yes; then
4886
4887 cat >>confdefs.h <<\_ACEOF
4888 #define STDC_HEADERS 1
4889 _ACEOF
4890
4891 fi
4892
4893 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4904                   inttypes.h stdint.h unistd.h
4905 do
4906 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4907 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4908 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4909 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4910   echo $ECHO_N "(cached) $ECHO_C" >&6
4911 else
4912   cat >conftest.$ac_ext <<_ACEOF
4913 /* confdefs.h.  */
4914 _ACEOF
4915 cat confdefs.h >>conftest.$ac_ext
4916 cat >>conftest.$ac_ext <<_ACEOF
4917 /* end confdefs.h.  */
4918 $ac_includes_default
4919
4920 #include <$ac_header>
4921 _ACEOF
4922 rm -f conftest.$ac_objext
4923 if { (ac_try="$ac_compile"
4924 case "(($ac_try" in
4925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4926   *) ac_try_echo=$ac_try;;
4927 esac
4928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4929   (eval "$ac_compile") 2>conftest.er1
4930   ac_status=$?
4931   grep -v '^ *+' conftest.er1 >conftest.err
4932   rm -f conftest.er1
4933   cat conftest.err >&5
4934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4935   (exit $ac_status); } && {
4936          test -z "$ac_c_werror_flag" ||
4937          test ! -s conftest.err
4938        } && test -s conftest.$ac_objext; then
4939   eval "$as_ac_Header=yes"
4940 else
4941   echo "$as_me: failed program was:" >&5
4942 sed 's/^/| /' conftest.$ac_ext >&5
4943
4944         eval "$as_ac_Header=no"
4945 fi
4946
4947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4948 fi
4949 ac_res=`eval echo '${'$as_ac_Header'}'`
4950                { echo "$as_me:$LINENO: result: $ac_res" >&5
4951 echo "${ECHO_T}$ac_res" >&6; }
4952 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4953   cat >>confdefs.h <<_ACEOF
4954 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4955 _ACEOF
4956
4957 fi
4958
4959 done
4960
4961
4962
4963 for ac_header in dlfcn.h
4964 do
4965 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4966 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4967   { echo "$as_me:$LINENO: checking for $ac_header" >&5
4968 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4969 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4970   echo $ECHO_N "(cached) $ECHO_C" >&6
4971 fi
4972 ac_res=`eval echo '${'$as_ac_Header'}'`
4973                { echo "$as_me:$LINENO: result: $ac_res" >&5
4974 echo "${ECHO_T}$ac_res" >&6; }
4975 else
4976   # Is the header compilable?
4977 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4978 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4979 cat >conftest.$ac_ext <<_ACEOF
4980 /* confdefs.h.  */
4981 _ACEOF
4982 cat confdefs.h >>conftest.$ac_ext
4983 cat >>conftest.$ac_ext <<_ACEOF
4984 /* end confdefs.h.  */
4985 $ac_includes_default
4986 #include <$ac_header>
4987 _ACEOF
4988 rm -f conftest.$ac_objext
4989 if { (ac_try="$ac_compile"
4990 case "(($ac_try" in
4991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4992   *) ac_try_echo=$ac_try;;
4993 esac
4994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4995   (eval "$ac_compile") 2>conftest.er1
4996   ac_status=$?
4997   grep -v '^ *+' conftest.er1 >conftest.err
4998   rm -f conftest.er1
4999   cat conftest.err >&5
5000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5001   (exit $ac_status); } && {
5002          test -z "$ac_c_werror_flag" ||
5003          test ! -s conftest.err
5004        } && test -s conftest.$ac_objext; then
5005   ac_header_compiler=yes
5006 else
5007   echo "$as_me: failed program was:" >&5
5008 sed 's/^/| /' conftest.$ac_ext >&5
5009
5010         ac_header_compiler=no
5011 fi
5012
5013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5014 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5015 echo "${ECHO_T}$ac_header_compiler" >&6; }
5016
5017 # Is the header present?
5018 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5019 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5020 cat >conftest.$ac_ext <<_ACEOF
5021 /* confdefs.h.  */
5022 _ACEOF
5023 cat confdefs.h >>conftest.$ac_ext
5024 cat >>conftest.$ac_ext <<_ACEOF
5025 /* end confdefs.h.  */
5026 #include <$ac_header>
5027 _ACEOF
5028 if { (ac_try="$ac_cpp conftest.$ac_ext"
5029 case "(($ac_try" in
5030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5031   *) ac_try_echo=$ac_try;;
5032 esac
5033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5034   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5035   ac_status=$?
5036   grep -v '^ *+' conftest.er1 >conftest.err
5037   rm -f conftest.er1
5038   cat conftest.err >&5
5039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5040   (exit $ac_status); } >/dev/null && {
5041          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5042          test ! -s conftest.err
5043        }; then
5044   ac_header_preproc=yes
5045 else
5046   echo "$as_me: failed program was:" >&5
5047 sed 's/^/| /' conftest.$ac_ext >&5
5048
5049   ac_header_preproc=no
5050 fi
5051
5052 rm -f conftest.err conftest.$ac_ext
5053 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5054 echo "${ECHO_T}$ac_header_preproc" >&6; }
5055
5056 # So?  What about this header?
5057 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5058   yes:no: )
5059     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5060 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5061     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5062 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5063     ac_header_preproc=yes
5064     ;;
5065   no:yes:* )
5066     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5067 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5068     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5069 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5070     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5071 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5072     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5073 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5074     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5075 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5076     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5077 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5078
5079     ;;
5080 esac
5081 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5082 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5083 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5084   echo $ECHO_N "(cached) $ECHO_C" >&6
5085 else
5086   eval "$as_ac_Header=\$ac_header_preproc"
5087 fi
5088 ac_res=`eval echo '${'$as_ac_Header'}'`
5089                { echo "$as_me:$LINENO: result: $ac_res" >&5
5090 echo "${ECHO_T}$ac_res" >&6; }
5091
5092 fi
5093 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5094   cat >>confdefs.h <<_ACEOF
5095 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5096 _ACEOF
5097
5098 fi
5099
5100 done
5101
5102 ac_ext=cpp
5103 ac_cpp='$CXXCPP $CPPFLAGS'
5104 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5105 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5106 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5107 if test -z "$CXX"; then
5108   if test -n "$CCC"; then
5109     CXX=$CCC
5110   else
5111     if test -n "$ac_tool_prefix"; then
5112   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5113   do
5114     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5115 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5116 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5117 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5118 if test "${ac_cv_prog_CXX+set}" = set; then
5119   echo $ECHO_N "(cached) $ECHO_C" >&6
5120 else
5121   if test -n "$CXX"; then
5122   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5123 else
5124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5125 for as_dir in $PATH
5126 do
5127   IFS=$as_save_IFS
5128   test -z "$as_dir" && as_dir=.
5129   for ac_exec_ext in '' $ac_executable_extensions; do
5130   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5131     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5132     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5133     break 2
5134   fi
5135 done
5136 done
5137 IFS=$as_save_IFS
5138
5139 fi
5140 fi
5141 CXX=$ac_cv_prog_CXX
5142 if test -n "$CXX"; then
5143   { echo "$as_me:$LINENO: result: $CXX" >&5
5144 echo "${ECHO_T}$CXX" >&6; }
5145 else
5146   { echo "$as_me:$LINENO: result: no" >&5
5147 echo "${ECHO_T}no" >&6; }
5148 fi
5149
5150
5151     test -n "$CXX" && break
5152   done
5153 fi
5154 if test -z "$CXX"; then
5155   ac_ct_CXX=$CXX
5156   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5157 do
5158   # Extract the first word of "$ac_prog", so it can be a program name with args.
5159 set dummy $ac_prog; ac_word=$2
5160 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5161 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5162 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5163   echo $ECHO_N "(cached) $ECHO_C" >&6
5164 else
5165   if test -n "$ac_ct_CXX"; then
5166   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5167 else
5168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5169 for as_dir in $PATH
5170 do
5171   IFS=$as_save_IFS
5172   test -z "$as_dir" && as_dir=.
5173   for ac_exec_ext in '' $ac_executable_extensions; do
5174   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5175     ac_cv_prog_ac_ct_CXX="$ac_prog"
5176     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5177     break 2
5178   fi
5179 done
5180 done
5181 IFS=$as_save_IFS
5182
5183 fi
5184 fi
5185 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5186 if test -n "$ac_ct_CXX"; then
5187   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5188 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5189 else
5190   { echo "$as_me:$LINENO: result: no" >&5
5191 echo "${ECHO_T}no" >&6; }
5192 fi
5193
5194
5195   test -n "$ac_ct_CXX" && break
5196 done
5197
5198   if test "x$ac_ct_CXX" = x; then
5199     CXX="g++"
5200   else
5201     case $cross_compiling:$ac_tool_warned in
5202 yes:)
5203 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5204 whose name does not start with the host triplet.  If you think this
5205 configuration is useful to you, please write to autoconf@gnu.org." >&5
5206 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5207 whose name does not start with the host triplet.  If you think this
5208 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5209 ac_tool_warned=yes ;;
5210 esac
5211     CXX=$ac_ct_CXX
5212   fi
5213 fi
5214
5215   fi
5216 fi
5217 # Provide some information about the compiler.
5218 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5219 ac_compiler=`set X $ac_compile; echo $2`
5220 { (ac_try="$ac_compiler --version >&5"
5221 case "(($ac_try" in
5222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5223   *) ac_try_echo=$ac_try;;
5224 esac
5225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5226   (eval "$ac_compiler --version >&5") 2>&5
5227   ac_status=$?
5228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5229   (exit $ac_status); }
5230 { (ac_try="$ac_compiler -v >&5"
5231 case "(($ac_try" in
5232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5233   *) ac_try_echo=$ac_try;;
5234 esac
5235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5236   (eval "$ac_compiler -v >&5") 2>&5
5237   ac_status=$?
5238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5239   (exit $ac_status); }
5240 { (ac_try="$ac_compiler -V >&5"
5241 case "(($ac_try" in
5242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5243   *) ac_try_echo=$ac_try;;
5244 esac
5245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5246   (eval "$ac_compiler -V >&5") 2>&5
5247   ac_status=$?
5248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5249   (exit $ac_status); }
5250
5251 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5252 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5253 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5254   echo $ECHO_N "(cached) $ECHO_C" >&6
5255 else
5256   cat >conftest.$ac_ext <<_ACEOF
5257 /* confdefs.h.  */
5258 _ACEOF
5259 cat confdefs.h >>conftest.$ac_ext
5260 cat >>conftest.$ac_ext <<_ACEOF
5261 /* end confdefs.h.  */
5262
5263 int
5264 main ()
5265 {
5266 #ifndef __GNUC__
5267        choke me
5268 #endif
5269
5270   ;
5271   return 0;
5272 }
5273 _ACEOF
5274 rm -f conftest.$ac_objext
5275 if { (ac_try="$ac_compile"
5276 case "(($ac_try" in
5277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5278   *) ac_try_echo=$ac_try;;
5279 esac
5280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5281   (eval "$ac_compile") 2>conftest.er1
5282   ac_status=$?
5283   grep -v '^ *+' conftest.er1 >conftest.err
5284   rm -f conftest.er1
5285   cat conftest.err >&5
5286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5287   (exit $ac_status); } && {
5288          test -z "$ac_cxx_werror_flag" ||
5289          test ! -s conftest.err
5290        } && test -s conftest.$ac_objext; then
5291   ac_compiler_gnu=yes
5292 else
5293   echo "$as_me: failed program was:" >&5
5294 sed 's/^/| /' conftest.$ac_ext >&5
5295
5296         ac_compiler_gnu=no
5297 fi
5298
5299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5300 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5301
5302 fi
5303 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5304 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5305 GXX=`test $ac_compiler_gnu = yes && echo yes`
5306 ac_test_CXXFLAGS=${CXXFLAGS+set}
5307 ac_save_CXXFLAGS=$CXXFLAGS
5308 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5309 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5310 if test "${ac_cv_prog_cxx_g+set}" = set; then
5311   echo $ECHO_N "(cached) $ECHO_C" >&6
5312 else
5313   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5314    ac_cxx_werror_flag=yes
5315    ac_cv_prog_cxx_g=no
5316    CXXFLAGS="-g"
5317    cat >conftest.$ac_ext <<_ACEOF
5318 /* confdefs.h.  */
5319 _ACEOF
5320 cat confdefs.h >>conftest.$ac_ext
5321 cat >>conftest.$ac_ext <<_ACEOF
5322 /* end confdefs.h.  */
5323
5324 int
5325 main ()
5326 {
5327
5328   ;
5329   return 0;
5330 }
5331 _ACEOF
5332 rm -f conftest.$ac_objext
5333 if { (ac_try="$ac_compile"
5334 case "(($ac_try" in
5335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5336   *) ac_try_echo=$ac_try;;
5337 esac
5338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5339   (eval "$ac_compile") 2>conftest.er1
5340   ac_status=$?
5341   grep -v '^ *+' conftest.er1 >conftest.err
5342   rm -f conftest.er1
5343   cat conftest.err >&5
5344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5345   (exit $ac_status); } && {
5346          test -z "$ac_cxx_werror_flag" ||
5347          test ! -s conftest.err
5348        } && test -s conftest.$ac_objext; then
5349   ac_cv_prog_cxx_g=yes
5350 else
5351   echo "$as_me: failed program was:" >&5
5352 sed 's/^/| /' conftest.$ac_ext >&5
5353
5354         CXXFLAGS=""
5355       cat >conftest.$ac_ext <<_ACEOF
5356 /* confdefs.h.  */
5357 _ACEOF
5358 cat confdefs.h >>conftest.$ac_ext
5359 cat >>conftest.$ac_ext <<_ACEOF
5360 /* end confdefs.h.  */
5361
5362 int
5363 main ()
5364 {
5365
5366   ;
5367   return 0;
5368 }
5369 _ACEOF
5370 rm -f conftest.$ac_objext
5371 if { (ac_try="$ac_compile"
5372 case "(($ac_try" in
5373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5374   *) ac_try_echo=$ac_try;;
5375 esac
5376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5377   (eval "$ac_compile") 2>conftest.er1
5378   ac_status=$?
5379   grep -v '^ *+' conftest.er1 >conftest.err
5380   rm -f conftest.er1
5381   cat conftest.err >&5
5382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5383   (exit $ac_status); } && {
5384          test -z "$ac_cxx_werror_flag" ||
5385          test ! -s conftest.err
5386        } && test -s conftest.$ac_objext; then
5387   :
5388 else
5389   echo "$as_me: failed program was:" >&5
5390 sed 's/^/| /' conftest.$ac_ext >&5
5391
5392         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5393          CXXFLAGS="-g"
5394          cat >conftest.$ac_ext <<_ACEOF
5395 /* confdefs.h.  */
5396 _ACEOF
5397 cat confdefs.h >>conftest.$ac_ext
5398 cat >>conftest.$ac_ext <<_ACEOF
5399 /* end confdefs.h.  */
5400
5401 int
5402 main ()
5403 {
5404
5405   ;
5406   return 0;
5407 }
5408 _ACEOF
5409 rm -f conftest.$ac_objext
5410 if { (ac_try="$ac_compile"
5411 case "(($ac_try" in
5412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5413   *) ac_try_echo=$ac_try;;
5414 esac
5415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5416   (eval "$ac_compile") 2>conftest.er1
5417   ac_status=$?
5418   grep -v '^ *+' conftest.er1 >conftest.err
5419   rm -f conftest.er1
5420   cat conftest.err >&5
5421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5422   (exit $ac_status); } && {
5423          test -z "$ac_cxx_werror_flag" ||
5424          test ! -s conftest.err
5425        } && test -s conftest.$ac_objext; then
5426   ac_cv_prog_cxx_g=yes
5427 else
5428   echo "$as_me: failed program was:" >&5
5429 sed 's/^/| /' conftest.$ac_ext >&5
5430
5431
5432 fi
5433
5434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5435 fi
5436
5437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5438 fi
5439
5440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5441    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5442 fi
5443 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5444 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5445 if test "$ac_test_CXXFLAGS" = set; then
5446   CXXFLAGS=$ac_save_CXXFLAGS
5447 elif test $ac_cv_prog_cxx_g = yes; then
5448   if test "$GXX" = yes; then
5449     CXXFLAGS="-g -O2"
5450   else
5451     CXXFLAGS="-g"
5452   fi
5453 else
5454   if test "$GXX" = yes; then
5455     CXXFLAGS="-O2"
5456   else
5457     CXXFLAGS=
5458   fi
5459 fi
5460 ac_ext=cpp
5461 ac_cpp='$CXXCPP $CPPFLAGS'
5462 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5463 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5464 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5465
5466 depcc="$CXX"  am_compiler_list=
5467
5468 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5469 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5470 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5471   echo $ECHO_N "(cached) $ECHO_C" >&6
5472 else
5473   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5474   # We make a subdir and do the tests there.  Otherwise we can end up
5475   # making bogus files that we don't know about and never remove.  For
5476   # instance it was reported that on HP-UX the gcc test will end up
5477   # making a dummy file named `D' -- because `-MD' means `put the output
5478   # in D'.
5479   mkdir conftest.dir
5480   # Copy depcomp to subdir because otherwise we won't find it if we're
5481   # using a relative directory.
5482   cp "$am_depcomp" conftest.dir
5483   cd conftest.dir
5484   # We will build objects and dependencies in a subdirectory because
5485   # it helps to detect inapplicable dependency modes.  For instance
5486   # both Tru64's cc and ICC support -MD to output dependencies as a
5487   # side effect of compilation, but ICC will put the dependencies in
5488   # the current directory while Tru64 will put them in the object
5489   # directory.
5490   mkdir sub
5491
5492   am_cv_CXX_dependencies_compiler_type=none
5493   if test "$am_compiler_list" = ""; then
5494      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5495   fi
5496   for depmode in $am_compiler_list; do
5497     # Setup a source with many dependencies, because some compilers
5498     # like to wrap large dependency lists on column 80 (with \), and
5499     # we should not choose a depcomp mode which is confused by this.
5500     #
5501     # We need to recreate these files for each test, as the compiler may
5502     # overwrite some of them when testing with obscure command lines.
5503     # This happens at least with the AIX C compiler.
5504     : > sub/conftest.c
5505     for i in 1 2 3 4 5 6; do
5506       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5507       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5508       # Solaris 8's {/usr,}/bin/sh.
5509       touch sub/conftst$i.h
5510     done
5511     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5512
5513     case $depmode in
5514     nosideeffect)
5515       # after this tag, mechanisms are not by side-effect, so they'll
5516       # only be used when explicitly requested
5517       if test "x$enable_dependency_tracking" = xyes; then
5518         continue
5519       else
5520         break
5521       fi
5522       ;;
5523     none) break ;;
5524     esac
5525     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5526     # mode.  It turns out that the SunPro C++ compiler does not properly
5527     # handle `-M -o', and we need to detect this.
5528     if depmode=$depmode \
5529        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5530        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5531        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5532          >/dev/null 2>conftest.err &&
5533        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5534        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5535        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5536        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5537       # icc doesn't choke on unknown options, it will just issue warnings
5538       # or remarks (even with -Werror).  So we grep stderr for any message
5539       # that says an option was ignored or not supported.
5540       # When given -MP, icc 7.0 and 7.1 complain thusly:
5541       #   icc: Command line warning: ignoring option '-M'; no argument required
5542       # The diagnosis changed in icc 8.0:
5543       #   icc: Command line remark: option '-MP' not supported
5544       if (grep 'ignoring option' conftest.err ||
5545           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5546         am_cv_CXX_dependencies_compiler_type=$depmode
5547         break
5548       fi
5549     fi
5550   done
5551
5552   cd ..
5553   rm -rf conftest.dir
5554 else
5555   am_cv_CXX_dependencies_compiler_type=none
5556 fi
5557
5558 fi
5559 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5560 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5561 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5562
5563  if
5564   test "x$enable_dependency_tracking" != xno \
5565   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5566   am__fastdepCXX_TRUE=
5567   am__fastdepCXX_FALSE='#'
5568 else
5569   am__fastdepCXX_TRUE='#'
5570   am__fastdepCXX_FALSE=
5571 fi
5572
5573
5574
5575
5576 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5577     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5578     (test "X$CXX" != "Xg++"))) ; then
5579   ac_ext=cpp
5580 ac_cpp='$CXXCPP $CPPFLAGS'
5581 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5582 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5583 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5584 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5585 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5586 if test -z "$CXXCPP"; then
5587   if test "${ac_cv_prog_CXXCPP+set}" = set; then
5588   echo $ECHO_N "(cached) $ECHO_C" >&6
5589 else
5590       # Double quotes because CXXCPP needs to be expanded
5591     for CXXCPP in "$CXX -E" "/lib/cpp"
5592     do
5593       ac_preproc_ok=false
5594 for ac_cxx_preproc_warn_flag in '' yes
5595 do
5596   # Use a header file that comes with gcc, so configuring glibc
5597   # with a fresh cross-compiler works.
5598   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5599   # <limits.h> exists even on freestanding compilers.
5600   # On the NeXT, cc -E runs the code through the compiler's parser,
5601   # not just through cpp. "Syntax error" is here to catch this case.
5602   cat >conftest.$ac_ext <<_ACEOF
5603 /* confdefs.h.  */
5604 _ACEOF
5605 cat confdefs.h >>conftest.$ac_ext
5606 cat >>conftest.$ac_ext <<_ACEOF
5607 /* end confdefs.h.  */
5608 #ifdef __STDC__
5609 # include <limits.h>
5610 #else
5611 # include <assert.h>
5612 #endif
5613                      Syntax error
5614 _ACEOF
5615 if { (ac_try="$ac_cpp conftest.$ac_ext"
5616 case "(($ac_try" in
5617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5618   *) ac_try_echo=$ac_try;;
5619 esac
5620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5621   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5622   ac_status=$?
5623   grep -v '^ *+' conftest.er1 >conftest.err
5624   rm -f conftest.er1
5625   cat conftest.err >&5
5626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5627   (exit $ac_status); } >/dev/null && {
5628          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5629          test ! -s conftest.err
5630        }; then
5631   :
5632 else
5633   echo "$as_me: failed program was:" >&5
5634 sed 's/^/| /' conftest.$ac_ext >&5
5635
5636   # Broken: fails on valid input.
5637 continue
5638 fi
5639
5640 rm -f conftest.err conftest.$ac_ext
5641
5642   # OK, works on sane cases.  Now check whether nonexistent headers
5643   # can be detected and how.
5644   cat >conftest.$ac_ext <<_ACEOF
5645 /* confdefs.h.  */
5646 _ACEOF
5647 cat confdefs.h >>conftest.$ac_ext
5648 cat >>conftest.$ac_ext <<_ACEOF
5649 /* end confdefs.h.  */
5650 #include <ac_nonexistent.h>
5651 _ACEOF
5652 if { (ac_try="$ac_cpp conftest.$ac_ext"
5653 case "(($ac_try" in
5654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5655   *) ac_try_echo=$ac_try;;
5656 esac
5657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5658   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5659   ac_status=$?
5660   grep -v '^ *+' conftest.er1 >conftest.err
5661   rm -f conftest.er1
5662   cat conftest.err >&5
5663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5664   (exit $ac_status); } >/dev/null && {
5665          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5666          test ! -s conftest.err
5667        }; then
5668   # Broken: success on invalid input.
5669 continue
5670 else
5671   echo "$as_me: failed program was:" >&5
5672 sed 's/^/| /' conftest.$ac_ext >&5
5673
5674   # Passes both tests.
5675 ac_preproc_ok=:
5676 break
5677 fi
5678
5679 rm -f conftest.err conftest.$ac_ext
5680
5681 done
5682 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5683 rm -f conftest.err conftest.$ac_ext
5684 if $ac_preproc_ok; then
5685   break
5686 fi
5687
5688     done
5689     ac_cv_prog_CXXCPP=$CXXCPP
5690
5691 fi
5692   CXXCPP=$ac_cv_prog_CXXCPP
5693 else
5694   ac_cv_prog_CXXCPP=$CXXCPP
5695 fi
5696 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5697 echo "${ECHO_T}$CXXCPP" >&6; }
5698 ac_preproc_ok=false
5699 for ac_cxx_preproc_warn_flag in '' yes
5700 do
5701   # Use a header file that comes with gcc, so configuring glibc
5702   # with a fresh cross-compiler works.
5703   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5704   # <limits.h> exists even on freestanding compilers.
5705   # On the NeXT, cc -E runs the code through the compiler's parser,
5706   # not just through cpp. "Syntax error" is here to catch this case.
5707   cat >conftest.$ac_ext <<_ACEOF
5708 /* confdefs.h.  */
5709 _ACEOF
5710 cat confdefs.h >>conftest.$ac_ext
5711 cat >>conftest.$ac_ext <<_ACEOF
5712 /* end confdefs.h.  */
5713 #ifdef __STDC__
5714 # include <limits.h>
5715 #else
5716 # include <assert.h>
5717 #endif
5718                      Syntax error
5719 _ACEOF
5720 if { (ac_try="$ac_cpp conftest.$ac_ext"
5721 case "(($ac_try" in
5722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5723   *) ac_try_echo=$ac_try;;
5724 esac
5725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5726   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5727   ac_status=$?
5728   grep -v '^ *+' conftest.er1 >conftest.err
5729   rm -f conftest.er1
5730   cat conftest.err >&5
5731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5732   (exit $ac_status); } >/dev/null && {
5733          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5734          test ! -s conftest.err
5735        }; then
5736   :
5737 else
5738   echo "$as_me: failed program was:" >&5
5739 sed 's/^/| /' conftest.$ac_ext >&5
5740
5741   # Broken: fails on valid input.
5742 continue
5743 fi
5744
5745 rm -f conftest.err conftest.$ac_ext
5746
5747   # OK, works on sane cases.  Now check whether nonexistent headers
5748   # can be detected and how.
5749   cat >conftest.$ac_ext <<_ACEOF
5750 /* confdefs.h.  */
5751 _ACEOF
5752 cat confdefs.h >>conftest.$ac_ext
5753 cat >>conftest.$ac_ext <<_ACEOF
5754 /* end confdefs.h.  */
5755 #include <ac_nonexistent.h>
5756 _ACEOF
5757 if { (ac_try="$ac_cpp conftest.$ac_ext"
5758 case "(($ac_try" in
5759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5760   *) ac_try_echo=$ac_try;;
5761 esac
5762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5763   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5764   ac_status=$?
5765   grep -v '^ *+' conftest.er1 >conftest.err
5766   rm -f conftest.er1
5767   cat conftest.err >&5
5768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5769   (exit $ac_status); } >/dev/null && {
5770          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5771          test ! -s conftest.err
5772        }; then
5773   # Broken: success on invalid input.
5774 continue
5775 else
5776   echo "$as_me: failed program was:" >&5
5777 sed 's/^/| /' conftest.$ac_ext >&5
5778
5779   # Passes both tests.
5780 ac_preproc_ok=:
5781 break
5782 fi
5783
5784 rm -f conftest.err conftest.$ac_ext
5785
5786 done
5787 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5788 rm -f conftest.err conftest.$ac_ext
5789 if $ac_preproc_ok; then
5790   :
5791 else
5792   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5793 See \`config.log' for more details." >&5
5794 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5795 See \`config.log' for more details." >&2;}
5796    { (exit 1); exit 1; }; }
5797 fi
5798
5799 ac_ext=cpp
5800 ac_cpp='$CXXCPP $CPPFLAGS'
5801 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5802 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5803 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5804
5805 fi
5806
5807
5808 ac_ext=f
5809 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5810 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5811 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5812 if test -n "$ac_tool_prefix"; then
5813   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
5814   do
5815     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5816 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5817 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5818 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5819 if test "${ac_cv_prog_F77+set}" = set; then
5820   echo $ECHO_N "(cached) $ECHO_C" >&6
5821 else
5822   if test -n "$F77"; then
5823   ac_cv_prog_F77="$F77" # Let the user override the test.
5824 else
5825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5826 for as_dir in $PATH
5827 do
5828   IFS=$as_save_IFS
5829   test -z "$as_dir" && as_dir=.
5830   for ac_exec_ext in '' $ac_executable_extensions; do
5831   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5832     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5833     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5834     break 2
5835   fi
5836 done
5837 done
5838 IFS=$as_save_IFS
5839
5840 fi
5841 fi
5842 F77=$ac_cv_prog_F77
5843 if test -n "$F77"; then
5844   { echo "$as_me:$LINENO: result: $F77" >&5
5845 echo "${ECHO_T}$F77" >&6; }
5846 else
5847   { echo "$as_me:$LINENO: result: no" >&5
5848 echo "${ECHO_T}no" >&6; }
5849 fi
5850
5851
5852     test -n "$F77" && break
5853   done
5854 fi
5855 if test -z "$F77"; then
5856   ac_ct_F77=$F77
5857   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
5858 do
5859   # Extract the first word of "$ac_prog", so it can be a program name with args.
5860 set dummy $ac_prog; ac_word=$2
5861 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5862 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5863 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5864   echo $ECHO_N "(cached) $ECHO_C" >&6
5865 else
5866   if test -n "$ac_ct_F77"; then
5867   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5868 else
5869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5870 for as_dir in $PATH
5871 do
5872   IFS=$as_save_IFS
5873   test -z "$as_dir" && as_dir=.
5874   for ac_exec_ext in '' $ac_executable_extensions; do
5875   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5876     ac_cv_prog_ac_ct_F77="$ac_prog"
5877     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5878     break 2
5879   fi
5880 done
5881 done
5882 IFS=$as_save_IFS
5883
5884 fi
5885 fi
5886 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5887 if test -n "$ac_ct_F77"; then
5888   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5889 echo "${ECHO_T}$ac_ct_F77" >&6; }
5890 else
5891   { echo "$as_me:$LINENO: result: no" >&5
5892 echo "${ECHO_T}no" >&6; }
5893 fi
5894
5895
5896   test -n "$ac_ct_F77" && break
5897 done
5898
5899   if test "x$ac_ct_F77" = x; then
5900     F77=""
5901   else
5902     case $cross_compiling:$ac_tool_warned in
5903 yes:)
5904 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5905 whose name does not start with the host triplet.  If you think this
5906 configuration is useful to you, please write to autoconf@gnu.org." >&5
5907 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5908 whose name does not start with the host triplet.  If you think this
5909 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5910 ac_tool_warned=yes ;;
5911 esac
5912     F77=$ac_ct_F77
5913   fi
5914 fi
5915
5916
5917 # Provide some information about the compiler.
5918 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5919 ac_compiler=`set X $ac_compile; echo $2`
5920 { (ac_try="$ac_compiler --version >&5"
5921 case "(($ac_try" in
5922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5923   *) ac_try_echo=$ac_try;;
5924 esac
5925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5926   (eval "$ac_compiler --version >&5") 2>&5
5927   ac_status=$?
5928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5929   (exit $ac_status); }
5930 { (ac_try="$ac_compiler -v >&5"
5931 case "(($ac_try" in
5932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5933   *) ac_try_echo=$ac_try;;
5934 esac
5935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5936   (eval "$ac_compiler -v >&5") 2>&5
5937   ac_status=$?
5938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5939   (exit $ac_status); }
5940 { (ac_try="$ac_compiler -V >&5"
5941 case "(($ac_try" in
5942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5943   *) ac_try_echo=$ac_try;;
5944 esac
5945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5946   (eval "$ac_compiler -V >&5") 2>&5
5947   ac_status=$?
5948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5949   (exit $ac_status); }
5950 rm -f a.out
5951
5952 # If we don't use `.F' as extension, the preprocessor is not run on the
5953 # input file.  (Note that this only needs to work for GNU compilers.)
5954 ac_save_ext=$ac_ext
5955 ac_ext=F
5956 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5957 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
5958 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5959   echo $ECHO_N "(cached) $ECHO_C" >&6
5960 else
5961   cat >conftest.$ac_ext <<_ACEOF
5962       program main
5963 #ifndef __GNUC__
5964        choke me
5965 #endif
5966
5967       end
5968 _ACEOF
5969 rm -f conftest.$ac_objext
5970 if { (ac_try="$ac_compile"
5971 case "(($ac_try" in
5972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5973   *) ac_try_echo=$ac_try;;
5974 esac
5975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5976   (eval "$ac_compile") 2>conftest.er1
5977   ac_status=$?
5978   grep -v '^ *+' conftest.er1 >conftest.err
5979   rm -f conftest.er1
5980   cat conftest.err >&5
5981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5982   (exit $ac_status); } && {
5983          test -z "$ac_f77_werror_flag" ||
5984          test ! -s conftest.err
5985        } && test -s conftest.$ac_objext; then
5986   ac_compiler_gnu=yes
5987 else
5988   echo "$as_me: failed program was:" >&5
5989 sed 's/^/| /' conftest.$ac_ext >&5
5990
5991         ac_compiler_gnu=no
5992 fi
5993
5994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5995 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5996
5997 fi
5998 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5999 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6000 ac_ext=$ac_save_ext
6001 ac_test_FFLAGS=${FFLAGS+set}
6002 ac_save_FFLAGS=$FFLAGS
6003 FFLAGS=
6004 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6005 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6006 if test "${ac_cv_prog_f77_g+set}" = set; then
6007   echo $ECHO_N "(cached) $ECHO_C" >&6
6008 else
6009   FFLAGS=-g
6010 cat >conftest.$ac_ext <<_ACEOF
6011       program main
6012
6013       end
6014 _ACEOF
6015 rm -f conftest.$ac_objext
6016 if { (ac_try="$ac_compile"
6017 case "(($ac_try" in
6018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6019   *) ac_try_echo=$ac_try;;
6020 esac
6021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6022   (eval "$ac_compile") 2>conftest.er1
6023   ac_status=$?
6024   grep -v '^ *+' conftest.er1 >conftest.err
6025   rm -f conftest.er1
6026   cat conftest.err >&5
6027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6028   (exit $ac_status); } && {
6029          test -z "$ac_f77_werror_flag" ||
6030          test ! -s conftest.err
6031        } && test -s conftest.$ac_objext; then
6032   ac_cv_prog_f77_g=yes
6033 else
6034   echo "$as_me: failed program was:" >&5
6035 sed 's/^/| /' conftest.$ac_ext >&5
6036
6037         ac_cv_prog_f77_g=no
6038 fi
6039
6040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6041
6042 fi
6043 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6044 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6045 if test "$ac_test_FFLAGS" = set; then
6046   FFLAGS=$ac_save_FFLAGS
6047 elif test $ac_cv_prog_f77_g = yes; then
6048   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6049     FFLAGS="-g -O2"
6050   else
6051     FFLAGS="-g"
6052   fi
6053 else
6054   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6055     FFLAGS="-O2"
6056   else
6057     FFLAGS=
6058   fi
6059 fi
6060
6061 G77=`test $ac_compiler_gnu = yes && echo yes`
6062 ac_ext=c
6063 ac_cpp='$CPP $CPPFLAGS'
6064 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6065 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6066 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6067
6068
6069
6070 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6071
6072 # find the maximum length of command line arguments
6073 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6074 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6075 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6076   echo $ECHO_N "(cached) $ECHO_C" >&6
6077 else
6078     i=0
6079   teststring="ABCD"
6080
6081   case $build_os in
6082   msdosdjgpp*)
6083     # On DJGPP, this test can blow up pretty badly due to problems in libc
6084     # (any single argument exceeding 2000 bytes causes a buffer overrun
6085     # during glob expansion).  Even if it were fixed, the result of this
6086     # check would be larger than it should be.
6087     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6088     ;;
6089
6090   gnu*)
6091     # Under GNU Hurd, this test is not required because there is
6092     # no limit to the length of command line arguments.
6093     # Libtool will interpret -1 as no limit whatsoever
6094     lt_cv_sys_max_cmd_len=-1;
6095     ;;
6096
6097   cygwin* | mingw*)
6098     # On Win9x/ME, this test blows up -- it succeeds, but takes
6099     # about 5 minutes as the teststring grows exponentially.
6100     # Worse, since 9x/ME are not pre-emptively multitasking,
6101     # you end up with a "frozen" computer, even though with patience
6102     # the test eventually succeeds (with a max line length of 256k).
6103     # Instead, let's just punt: use the minimum linelength reported by
6104     # all of the supported platforms: 8192 (on NT/2K/XP).
6105     lt_cv_sys_max_cmd_len=8192;
6106     ;;
6107
6108   amigaos*)
6109     # On AmigaOS with pdksh, this test takes hours, literally.
6110     # So we just punt and use a minimum line length of 8192.
6111     lt_cv_sys_max_cmd_len=8192;
6112     ;;
6113
6114   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6115     # This has been around since 386BSD, at least.  Likely further.
6116     if test -x /sbin/sysctl; then
6117       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6118     elif test -x /usr/sbin/sysctl; then
6119       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6120     else
6121       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6122     fi
6123     # And add a safety zone
6124     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6125     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6126     ;;
6127
6128   interix*)
6129     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6130     lt_cv_sys_max_cmd_len=196608
6131     ;;
6132
6133   osf*)
6134     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6135     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6136     # nice to cause kernel panics so lets avoid the loop below.
6137     # First set a reasonable default.
6138     lt_cv_sys_max_cmd_len=16384
6139     #
6140     if test -x /sbin/sysconfig; then
6141       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6142         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6143       esac
6144     fi
6145     ;;
6146   sco3.2v5*)
6147     lt_cv_sys_max_cmd_len=102400
6148     ;;
6149   sysv5* | sco5v6* | sysv4.2uw2*)
6150     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6151     if test -n "$kargmax"; then
6152       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6153     else
6154       lt_cv_sys_max_cmd_len=32768
6155     fi
6156     ;;
6157   *)
6158     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6159     if test -n "$lt_cv_sys_max_cmd_len"; then
6160       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6161       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6162     else
6163       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6164       while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6165                = "XX$teststring") >/dev/null 2>&1 &&
6166               new_result=`expr "X$teststring" : ".*" 2>&1` &&
6167               lt_cv_sys_max_cmd_len=$new_result &&
6168               test $i != 17 # 1/2 MB should be enough
6169       do
6170         i=`expr $i + 1`
6171         teststring=$teststring$teststring
6172       done
6173       teststring=
6174       # Add a significant safety factor because C++ compilers can tack on massive
6175       # amounts of additional arguments before passing them to the linker.
6176       # It appears as though 1/2 is a usable value.
6177       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6178     fi
6179     ;;
6180   esac
6181
6182 fi
6183
6184 if test -n $lt_cv_sys_max_cmd_len ; then
6185   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6186 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6187 else
6188   { echo "$as_me:$LINENO: result: none" >&5
6189 echo "${ECHO_T}none" >&6; }
6190 fi
6191
6192
6193
6194
6195
6196 # Check for command to grab the raw symbol name followed by C symbol from nm.
6197 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6198 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6199 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6200   echo $ECHO_N "(cached) $ECHO_C" >&6
6201 else
6202
6203 # These are sane defaults that work on at least a few old systems.
6204 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6205
6206 # Character class describing NM global symbol codes.
6207 symcode='[BCDEGRST]'
6208
6209 # Regexp to match symbols that can be accessed directly from C.
6210 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6211
6212 # Transform an extracted symbol line into a proper C declaration
6213 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6214
6215 # Transform an extracted symbol line into symbol name and symbol address
6216 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'"
6217
6218 # Define system-specific variables.
6219 case $host_os in
6220 aix*)
6221   symcode='[BCDT]'
6222   ;;
6223 cygwin* | mingw* | pw32*)
6224   symcode='[ABCDGISTW]'
6225   ;;
6226 hpux*) # Its linker distinguishes data from code symbols
6227   if test "$host_cpu" = ia64; then
6228     symcode='[ABCDEGRST]'
6229   fi
6230   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6231   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'"
6232   ;;
6233 linux* | k*bsd*-gnu)
6234   if test "$host_cpu" = ia64; then
6235     symcode='[ABCDGIRSTW]'
6236     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6237     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'"
6238   fi
6239   ;;
6240 irix* | nonstopux*)
6241   symcode='[BCDEGRST]'
6242   ;;
6243 osf*)
6244   symcode='[BCDEGQRST]'
6245   ;;
6246 solaris*)
6247   symcode='[BDRT]'
6248   ;;
6249 sco3.2v5*)
6250   symcode='[DT]'
6251   ;;
6252 sysv4.2uw2*)
6253   symcode='[DT]'
6254   ;;
6255 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6256   symcode='[ABDT]'
6257   ;;
6258 sysv4)
6259   symcode='[DFNSTU]'
6260   ;;
6261 esac
6262
6263 # Handle CRLF in mingw tool chain
6264 opt_cr=
6265 case $build_os in
6266 mingw*)
6267   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6268   ;;
6269 esac
6270
6271 # If we're using GNU nm, then use its standard symbol codes.
6272 case `$NM -V 2>&1` in
6273 *GNU* | *'with BFD'*)
6274   symcode='[ABCDGIRSTW]' ;;
6275 esac
6276
6277 # Try without a prefix undercore, then with it.
6278 for ac_symprfx in "" "_"; do
6279
6280   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6281   symxfrm="\\1 $ac_symprfx\\2 \\2"
6282
6283   # Write the raw and C identifiers.
6284   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6285
6286   # Check to see that the pipe works correctly.
6287   pipe_works=no
6288
6289   rm -f conftest*
6290   cat > conftest.$ac_ext <<EOF
6291 #ifdef __cplusplus
6292 extern "C" {
6293 #endif
6294 char nm_test_var;
6295 void nm_test_func(){}
6296 #ifdef __cplusplus
6297 }
6298 #endif
6299 int main(){nm_test_var='a';nm_test_func();return(0);}
6300 EOF
6301
6302   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6303   (eval $ac_compile) 2>&5
6304   ac_status=$?
6305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6306   (exit $ac_status); }; then
6307     # Now try to grab the symbols.
6308     nlist=conftest.nm
6309     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6310   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6311   ac_status=$?
6312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6313   (exit $ac_status); } && test -s "$nlist"; then
6314       # Try sorting and uniquifying the output.
6315       if sort "$nlist" | uniq > "$nlist"T; then
6316         mv -f "$nlist"T "$nlist"
6317       else
6318         rm -f "$nlist"T
6319       fi
6320
6321       # Make sure that we snagged all the symbols we need.
6322       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6323         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6324           cat <<EOF > conftest.$ac_ext
6325 #ifdef __cplusplus
6326 extern "C" {
6327 #endif
6328
6329 EOF
6330           # Now generate the symbol file.
6331           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6332
6333           cat <<EOF >> conftest.$ac_ext
6334 #if defined (__STDC__) && __STDC__
6335 # define lt_ptr_t void *
6336 #else
6337 # define lt_ptr_t char *
6338 # define const
6339 #endif
6340
6341 /* The mapping between symbol names and symbols. */
6342 const struct {
6343   const char *name;
6344   lt_ptr_t address;
6345 }
6346 lt_preloaded_symbols[] =
6347 {
6348 EOF
6349           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6350           cat <<\EOF >> conftest.$ac_ext
6351   {0, (lt_ptr_t) 0}
6352 };
6353
6354 #ifdef __cplusplus
6355 }
6356 #endif
6357 EOF
6358           # Now try linking the two files.
6359           mv conftest.$ac_objext conftstm.$ac_objext
6360           lt_save_LIBS="$LIBS"
6361           lt_save_CFLAGS="$CFLAGS"
6362           LIBS="conftstm.$ac_objext"
6363           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6364           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6365   (eval $ac_link) 2>&5
6366   ac_status=$?
6367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6368   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6369             pipe_works=yes
6370           fi
6371           LIBS="$lt_save_LIBS"
6372           CFLAGS="$lt_save_CFLAGS"
6373         else
6374           echo "cannot find nm_test_func in $nlist" >&5
6375         fi
6376       else
6377         echo "cannot find nm_test_var in $nlist" >&5
6378       fi
6379     else
6380       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6381     fi
6382   else
6383     echo "$progname: failed program was:" >&5
6384     cat conftest.$ac_ext >&5
6385   fi
6386   rm -f conftest* conftst*
6387
6388   # Do not use the global_symbol_pipe unless it works.
6389   if test "$pipe_works" = yes; then
6390     break
6391   else
6392     lt_cv_sys_global_symbol_pipe=
6393   fi
6394 done
6395
6396 fi
6397
6398 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6399   lt_cv_sys_global_symbol_to_cdecl=
6400 fi
6401 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6402   { echo "$as_me:$LINENO: result: failed" >&5
6403 echo "${ECHO_T}failed" >&6; }
6404 else
6405   { echo "$as_me:$LINENO: result: ok" >&5
6406 echo "${ECHO_T}ok" >&6; }
6407 fi
6408
6409 { echo "$as_me:$LINENO: checking for objdir" >&5
6410 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6411 if test "${lt_cv_objdir+set}" = set; then
6412   echo $ECHO_N "(cached) $ECHO_C" >&6
6413 else
6414   rm -f .libs 2>/dev/null
6415 mkdir .libs 2>/dev/null
6416 if test -d .libs; then
6417   lt_cv_objdir=.libs
6418 else
6419   # MS-DOS does not allow filenames that begin with a dot.
6420   lt_cv_objdir=_libs
6421 fi
6422 rmdir .libs 2>/dev/null
6423 fi
6424 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6425 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6426 objdir=$lt_cv_objdir
6427
6428
6429
6430
6431
6432 case $host_os in
6433 aix3*)
6434   # AIX sometimes has problems with the GCC collect2 program.  For some
6435   # reason, if we set the COLLECT_NAMES environment variable, the problems
6436   # vanish in a puff of smoke.
6437   if test "X${COLLECT_NAMES+set}" != Xset; then
6438     COLLECT_NAMES=
6439     export COLLECT_NAMES
6440   fi
6441   ;;
6442 esac
6443
6444 # Sed substitution that helps us do robust quoting.  It backslashifies
6445 # metacharacters that are still active within double-quoted strings.
6446 Xsed='sed -e 1s/^X//'
6447 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6448
6449 # Same as above, but do not quote variable references.
6450 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6451
6452 # Sed substitution to delay expansion of an escaped shell variable in a
6453 # double_quote_subst'ed string.
6454 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6455
6456 # Sed substitution to avoid accidental globbing in evaled expressions
6457 no_glob_subst='s/\*/\\\*/g'
6458
6459 # Constants:
6460 rm="rm -f"
6461
6462 # Global variables:
6463 default_ofile=libtool
6464 can_build_shared=yes
6465
6466 # All known linkers require a `.a' archive for static linking (except MSVC,
6467 # which needs '.lib').
6468 libext=a
6469 ltmain="$ac_aux_dir/ltmain.sh"
6470 ofile="$default_ofile"
6471 with_gnu_ld="$lt_cv_prog_gnu_ld"
6472
6473 if test -n "$ac_tool_prefix"; then
6474   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6475 set dummy ${ac_tool_prefix}ar; ac_word=$2
6476 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6478 if test "${ac_cv_prog_AR+set}" = set; then
6479   echo $ECHO_N "(cached) $ECHO_C" >&6
6480 else
6481   if test -n "$AR"; then
6482   ac_cv_prog_AR="$AR" # Let the user override the test.
6483 else
6484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6485 for as_dir in $PATH
6486 do
6487   IFS=$as_save_IFS
6488   test -z "$as_dir" && as_dir=.
6489   for ac_exec_ext in '' $ac_executable_extensions; do
6490   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6491     ac_cv_prog_AR="${ac_tool_prefix}ar"
6492     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6493     break 2
6494   fi
6495 done
6496 done
6497 IFS=$as_save_IFS
6498
6499 fi
6500 fi
6501 AR=$ac_cv_prog_AR
6502 if test -n "$AR"; then
6503   { echo "$as_me:$LINENO: result: $AR" >&5
6504 echo "${ECHO_T}$AR" >&6; }
6505 else
6506   { echo "$as_me:$LINENO: result: no" >&5
6507 echo "${ECHO_T}no" >&6; }
6508 fi
6509
6510
6511 fi
6512 if test -z "$ac_cv_prog_AR"; then
6513   ac_ct_AR=$AR
6514   # Extract the first word of "ar", so it can be a program name with args.
6515 set dummy ar; ac_word=$2
6516 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6517 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6518 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6519   echo $ECHO_N "(cached) $ECHO_C" >&6
6520 else
6521   if test -n "$ac_ct_AR"; then
6522   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6523 else
6524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6525 for as_dir in $PATH
6526 do
6527   IFS=$as_save_IFS
6528   test -z "$as_dir" && as_dir=.
6529   for ac_exec_ext in '' $ac_executable_extensions; do
6530   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6531     ac_cv_prog_ac_ct_AR="ar"
6532     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6533     break 2
6534   fi
6535 done
6536 done
6537 IFS=$as_save_IFS
6538
6539 fi
6540 fi
6541 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6542 if test -n "$ac_ct_AR"; then
6543   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6544 echo "${ECHO_T}$ac_ct_AR" >&6; }
6545 else
6546   { echo "$as_me:$LINENO: result: no" >&5
6547 echo "${ECHO_T}no" >&6; }
6548 fi
6549
6550   if test "x$ac_ct_AR" = x; then
6551     AR="false"
6552   else
6553     case $cross_compiling:$ac_tool_warned in
6554 yes:)
6555 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6556 whose name does not start with the host triplet.  If you think this
6557 configuration is useful to you, please write to autoconf@gnu.org." >&5
6558 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6559 whose name does not start with the host triplet.  If you think this
6560 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6561 ac_tool_warned=yes ;;
6562 esac
6563     AR=$ac_ct_AR
6564   fi
6565 else
6566   AR="$ac_cv_prog_AR"
6567 fi
6568
6569 if test -n "$ac_tool_prefix"; then
6570   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6571 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6572 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6573 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6574 if test "${ac_cv_prog_RANLIB+set}" = set; then
6575   echo $ECHO_N "(cached) $ECHO_C" >&6
6576 else
6577   if test -n "$RANLIB"; then
6578   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6579 else
6580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6581 for as_dir in $PATH
6582 do
6583   IFS=$as_save_IFS
6584   test -z "$as_dir" && as_dir=.
6585   for ac_exec_ext in '' $ac_executable_extensions; do
6586   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6587     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6588     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6589     break 2
6590   fi
6591 done
6592 done
6593 IFS=$as_save_IFS
6594
6595 fi
6596 fi
6597 RANLIB=$ac_cv_prog_RANLIB
6598 if test -n "$RANLIB"; then
6599   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6600 echo "${ECHO_T}$RANLIB" >&6; }
6601 else
6602   { echo "$as_me:$LINENO: result: no" >&5
6603 echo "${ECHO_T}no" >&6; }
6604 fi
6605
6606
6607 fi
6608 if test -z "$ac_cv_prog_RANLIB"; then
6609   ac_ct_RANLIB=$RANLIB
6610   # Extract the first word of "ranlib", so it can be a program name with args.
6611 set dummy ranlib; ac_word=$2
6612 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6613 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6614 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6615   echo $ECHO_N "(cached) $ECHO_C" >&6
6616 else
6617   if test -n "$ac_ct_RANLIB"; then
6618   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6619 else
6620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6621 for as_dir in $PATH
6622 do
6623   IFS=$as_save_IFS
6624   test -z "$as_dir" && as_dir=.
6625   for ac_exec_ext in '' $ac_executable_extensions; do
6626   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6627     ac_cv_prog_ac_ct_RANLIB="ranlib"
6628     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6629     break 2
6630   fi
6631 done
6632 done
6633 IFS=$as_save_IFS
6634
6635 fi
6636 fi
6637 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6638 if test -n "$ac_ct_RANLIB"; then
6639   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6640 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6641 else
6642   { echo "$as_me:$LINENO: result: no" >&5
6643 echo "${ECHO_T}no" >&6; }
6644 fi
6645
6646   if test "x$ac_ct_RANLIB" = x; then
6647     RANLIB=":"
6648   else
6649     case $cross_compiling:$ac_tool_warned in
6650 yes:)
6651 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6652 whose name does not start with the host triplet.  If you think this
6653 configuration is useful to you, please write to autoconf@gnu.org." >&5
6654 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6655 whose name does not start with the host triplet.  If you think this
6656 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6657 ac_tool_warned=yes ;;
6658 esac
6659     RANLIB=$ac_ct_RANLIB
6660   fi
6661 else
6662   RANLIB="$ac_cv_prog_RANLIB"
6663 fi
6664
6665 if test -n "$ac_tool_prefix"; then
6666   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6667 set dummy ${ac_tool_prefix}strip; ac_word=$2
6668 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6670 if test "${ac_cv_prog_STRIP+set}" = set; then
6671   echo $ECHO_N "(cached) $ECHO_C" >&6
6672 else
6673   if test -n "$STRIP"; then
6674   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6675 else
6676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6677 for as_dir in $PATH
6678 do
6679   IFS=$as_save_IFS
6680   test -z "$as_dir" && as_dir=.
6681   for ac_exec_ext in '' $ac_executable_extensions; do
6682   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6683     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6684     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6685     break 2
6686   fi
6687 done
6688 done
6689 IFS=$as_save_IFS
6690
6691 fi
6692 fi
6693 STRIP=$ac_cv_prog_STRIP
6694 if test -n "$STRIP"; then
6695   { echo "$as_me:$LINENO: result: $STRIP" >&5
6696 echo "${ECHO_T}$STRIP" >&6; }
6697 else
6698   { echo "$as_me:$LINENO: result: no" >&5
6699 echo "${ECHO_T}no" >&6; }
6700 fi
6701
6702
6703 fi
6704 if test -z "$ac_cv_prog_STRIP"; then
6705   ac_ct_STRIP=$STRIP
6706   # Extract the first word of "strip", so it can be a program name with args.
6707 set dummy strip; ac_word=$2
6708 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6709 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6710 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6711   echo $ECHO_N "(cached) $ECHO_C" >&6
6712 else
6713   if test -n "$ac_ct_STRIP"; then
6714   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6715 else
6716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6717 for as_dir in $PATH
6718 do
6719   IFS=$as_save_IFS
6720   test -z "$as_dir" && as_dir=.
6721   for ac_exec_ext in '' $ac_executable_extensions; do
6722   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6723     ac_cv_prog_ac_ct_STRIP="strip"
6724     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6725     break 2
6726   fi
6727 done
6728 done
6729 IFS=$as_save_IFS
6730
6731 fi
6732 fi
6733 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6734 if test -n "$ac_ct_STRIP"; then
6735   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6736 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6737 else
6738   { echo "$as_me:$LINENO: result: no" >&5
6739 echo "${ECHO_T}no" >&6; }
6740 fi
6741
6742   if test "x$ac_ct_STRIP" = x; then
6743     STRIP=":"
6744   else
6745     case $cross_compiling:$ac_tool_warned in
6746 yes:)
6747 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6748 whose name does not start with the host triplet.  If you think this
6749 configuration is useful to you, please write to autoconf@gnu.org." >&5
6750 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6751 whose name does not start with the host triplet.  If you think this
6752 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6753 ac_tool_warned=yes ;;
6754 esac
6755     STRIP=$ac_ct_STRIP
6756   fi
6757 else
6758   STRIP="$ac_cv_prog_STRIP"
6759 fi
6760
6761
6762 old_CC="$CC"
6763 old_CFLAGS="$CFLAGS"
6764
6765 # Set sane defaults for various variables
6766 test -z "$AR" && AR=ar
6767 test -z "$AR_FLAGS" && AR_FLAGS=cru
6768 test -z "$AS" && AS=as
6769 test -z "$CC" && CC=cc
6770 test -z "$LTCC" && LTCC=$CC
6771 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6772 test -z "$DLLTOOL" && DLLTOOL=dlltool
6773 test -z "$LD" && LD=ld
6774 test -z "$LN_S" && LN_S="ln -s"
6775 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6776 test -z "$NM" && NM=nm
6777 test -z "$SED" && SED=sed
6778 test -z "$OBJDUMP" && OBJDUMP=objdump
6779 test -z "$RANLIB" && RANLIB=:
6780 test -z "$STRIP" && STRIP=:
6781 test -z "$ac_objext" && ac_objext=o
6782
6783 # Determine commands to create old-style static archives.
6784 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6785 old_postinstall_cmds='chmod 644 $oldlib'
6786 old_postuninstall_cmds=
6787
6788 if test -n "$RANLIB"; then
6789   case $host_os in
6790   openbsd*)
6791     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6792     ;;
6793   *)
6794     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6795     ;;
6796   esac
6797   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6798 fi
6799
6800 for cc_temp in $compiler""; do
6801   case $cc_temp in
6802     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6803     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6804     \-*) ;;
6805     *) break;;
6806   esac
6807 done
6808 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6809
6810
6811 # Only perform the check for file, if the check method requires it
6812 case $deplibs_check_method in
6813 file_magic*)
6814   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6815     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6816 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6817 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6818   echo $ECHO_N "(cached) $ECHO_C" >&6
6819 else
6820   case $MAGIC_CMD in
6821 [\\/*] |  ?:[\\/]*)
6822   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6823   ;;
6824 *)
6825   lt_save_MAGIC_CMD="$MAGIC_CMD"
6826   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6827   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6828   for ac_dir in $ac_dummy; do
6829     IFS="$lt_save_ifs"
6830     test -z "$ac_dir" && ac_dir=.
6831     if test -f $ac_dir/${ac_tool_prefix}file; then
6832       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6833       if test -n "$file_magic_test_file"; then
6834         case $deplibs_check_method in
6835         "file_magic "*)
6836           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6837           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6838           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6839             $EGREP "$file_magic_regex" > /dev/null; then
6840             :
6841           else
6842             cat <<EOF 1>&2
6843
6844 *** Warning: the command libtool uses to detect shared libraries,
6845 *** $file_magic_cmd, produces output that libtool cannot recognize.
6846 *** The result is that libtool may fail to recognize shared libraries
6847 *** as such.  This will affect the creation of libtool libraries that
6848 *** depend on shared libraries, but programs linked with such libtool
6849 *** libraries will work regardless of this problem.  Nevertheless, you
6850 *** may want to report the problem to your system manager and/or to
6851 *** bug-libtool@gnu.org
6852
6853 EOF
6854           fi ;;
6855         esac
6856       fi
6857       break
6858     fi
6859   done
6860   IFS="$lt_save_ifs"
6861   MAGIC_CMD="$lt_save_MAGIC_CMD"
6862   ;;
6863 esac
6864 fi
6865
6866 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6867 if test -n "$MAGIC_CMD"; then
6868   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6869 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6870 else
6871   { echo "$as_me:$LINENO: result: no" >&5
6872 echo "${ECHO_T}no" >&6; }
6873 fi
6874
6875 if test -z "$lt_cv_path_MAGIC_CMD"; then
6876   if test -n "$ac_tool_prefix"; then
6877     { echo "$as_me:$LINENO: checking for file" >&5
6878 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6879 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6880   echo $ECHO_N "(cached) $ECHO_C" >&6
6881 else
6882   case $MAGIC_CMD in
6883 [\\/*] |  ?:[\\/]*)
6884   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6885   ;;
6886 *)
6887   lt_save_MAGIC_CMD="$MAGIC_CMD"
6888   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6889   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6890   for ac_dir in $ac_dummy; do
6891     IFS="$lt_save_ifs"
6892     test -z "$ac_dir" && ac_dir=.
6893     if test -f $ac_dir/file; then
6894       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6895       if test -n "$file_magic_test_file"; then
6896         case $deplibs_check_method in
6897         "file_magic "*)
6898           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6899           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6900           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6901             $EGREP "$file_magic_regex" > /dev/null; then
6902             :
6903           else
6904             cat <<EOF 1>&2
6905
6906 *** Warning: the command libtool uses to detect shared libraries,
6907 *** $file_magic_cmd, produces output that libtool cannot recognize.
6908 *** The result is that libtool may fail to recognize shared libraries
6909 *** as such.  This will affect the creation of libtool libraries that
6910 *** depend on shared libraries, but programs linked with such libtool
6911 *** libraries will work regardless of this problem.  Nevertheless, you
6912 *** may want to report the problem to your system manager and/or to
6913 *** bug-libtool@gnu.org
6914
6915 EOF
6916           fi ;;
6917         esac
6918       fi
6919       break
6920     fi
6921   done
6922   IFS="$lt_save_ifs"
6923   MAGIC_CMD="$lt_save_MAGIC_CMD"
6924   ;;
6925 esac
6926 fi
6927
6928 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6929 if test -n "$MAGIC_CMD"; then
6930   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6931 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6932 else
6933   { echo "$as_me:$LINENO: result: no" >&5
6934 echo "${ECHO_T}no" >&6; }
6935 fi
6936
6937   else
6938     MAGIC_CMD=:
6939   fi
6940 fi
6941
6942   fi
6943   ;;
6944 esac
6945
6946 enable_dlopen=no
6947 enable_win32_dll=no
6948
6949 # Check whether --enable-libtool-lock was given.
6950 if test "${enable_libtool_lock+set}" = set; then
6951   enableval=$enable_libtool_lock;
6952 fi
6953
6954 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6955
6956
6957 # Check whether --with-pic was given.
6958 if test "${with_pic+set}" = set; then
6959   withval=$with_pic; pic_mode="$withval"
6960 else
6961   pic_mode=default
6962 fi
6963
6964 test -z "$pic_mode" && pic_mode=default
6965
6966 # Use C for the default configuration in the libtool script
6967 tagname=
6968 lt_save_CC="$CC"
6969 ac_ext=c
6970 ac_cpp='$CPP $CPPFLAGS'
6971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6974
6975
6976 # Source file extension for C test sources.
6977 ac_ext=c
6978
6979 # Object file extension for compiled C test sources.
6980 objext=o
6981 objext=$objext
6982
6983 # Code to be used in simple compile tests
6984 lt_simple_compile_test_code="int some_variable = 0;"
6985
6986 # Code to be used in simple link tests
6987 lt_simple_link_test_code='int main(){return(0);}'
6988
6989
6990 # If no C compiler was specified, use CC.
6991 LTCC=${LTCC-"$CC"}
6992
6993 # If no C compiler flags were specified, use CFLAGS.
6994 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6995
6996 # Allow CC to be a program name with arguments.
6997 compiler=$CC
6998
6999
7000 # save warnings/boilerplate of simple test code
7001 ac_outfile=conftest.$ac_objext
7002 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7003 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7004 _lt_compiler_boilerplate=`cat conftest.err`
7005 $rm conftest*
7006
7007 ac_outfile=conftest.$ac_objext
7008 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7009 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7010 _lt_linker_boilerplate=`cat conftest.err`
7011 $rm conftest*
7012
7013
7014
7015 lt_prog_compiler_no_builtin_flag=
7016
7017 if test "$GCC" = yes; then
7018   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7019
7020
7021 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7022 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7023 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7024   echo $ECHO_N "(cached) $ECHO_C" >&6
7025 else
7026   lt_cv_prog_compiler_rtti_exceptions=no
7027   ac_outfile=conftest.$ac_objext
7028    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7029    lt_compiler_flag="-fno-rtti -fno-exceptions"
7030    # Insert the option either (1) after the last *FLAGS variable, or
7031    # (2) before a word containing "conftest.", or (3) at the end.
7032    # Note that $ac_compile itself does not contain backslashes and begins
7033    # with a dollar sign (not a hyphen), so the echo should work correctly.
7034    # The option is referenced via a variable to avoid confusing sed.
7035    lt_compile=`echo "$ac_compile" | $SED \
7036    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7037    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7038    -e 's:$: $lt_compiler_flag:'`
7039    (eval echo "\"\$as_me:7039: $lt_compile\"" >&5)
7040    (eval "$lt_compile" 2>conftest.err)
7041    ac_status=$?
7042    cat conftest.err >&5
7043    echo "$as_me:7043: \$? = $ac_status" >&5
7044    if (exit $ac_status) && test -s "$ac_outfile"; then
7045      # The compiler can only warn and ignore the option if not recognized
7046      # So say no if there are warnings other than the usual output.
7047      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7048      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7049      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7050        lt_cv_prog_compiler_rtti_exceptions=yes
7051      fi
7052    fi
7053    $rm conftest*
7054
7055 fi
7056 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7057 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7058
7059 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7060     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7061 else
7062     :
7063 fi
7064
7065 fi
7066
7067 lt_prog_compiler_wl=
7068 lt_prog_compiler_pic=
7069 lt_prog_compiler_static=
7070
7071 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7072 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7073
7074   if test "$GCC" = yes; then
7075     lt_prog_compiler_wl='-Wl,'
7076     lt_prog_compiler_static='-static'
7077
7078     case $host_os in
7079       aix*)
7080       # All AIX code is PIC.
7081       if test "$host_cpu" = ia64; then
7082         # AIX 5 now supports IA64 processor
7083         lt_prog_compiler_static='-Bstatic'
7084       fi
7085       ;;
7086
7087     amigaos*)
7088       # FIXME: we need at least 68020 code to build shared libraries, but
7089       # adding the `-m68020' flag to GCC prevents building anything better,
7090       # like `-m68040'.
7091       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7092       ;;
7093
7094     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7095       # PIC is the default for these OSes.
7096       ;;
7097
7098     mingw* | cygwin* | pw32* | os2*)
7099       # This hack is so that the source file can tell whether it is being
7100       # built for inclusion in a dll (and should export symbols for example).
7101       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7102       # (--disable-auto-import) libraries
7103       lt_prog_compiler_pic='-DDLL_EXPORT'
7104       ;;
7105
7106     darwin* | rhapsody*)
7107       # PIC is the default on this platform
7108       # Common symbols not allowed in MH_DYLIB files
7109       lt_prog_compiler_pic='-fno-common'
7110       ;;
7111
7112     interix[3-9]*)
7113       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7114       # Instead, we relocate shared libraries at runtime.
7115       ;;
7116
7117     msdosdjgpp*)
7118       # Just because we use GCC doesn't mean we suddenly get shared libraries
7119       # on systems that don't support them.
7120       lt_prog_compiler_can_build_shared=no
7121       enable_shared=no
7122       ;;
7123
7124     sysv4*MP*)
7125       if test -d /usr/nec; then
7126         lt_prog_compiler_pic=-Kconform_pic
7127       fi
7128       ;;
7129
7130     hpux*)
7131       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7132       # not for PA HP-UX.
7133       case $host_cpu in
7134       hppa*64*|ia64*)
7135         # +Z the default
7136         ;;
7137       *)
7138         lt_prog_compiler_pic='-fPIC'
7139         ;;
7140       esac
7141       ;;
7142
7143     *)
7144       lt_prog_compiler_pic='-fPIC'
7145       ;;
7146     esac
7147   else
7148     # PORTME Check for flag to pass linker flags through the system compiler.
7149     case $host_os in
7150     aix*)
7151       lt_prog_compiler_wl='-Wl,'
7152       if test "$host_cpu" = ia64; then
7153         # AIX 5 now supports IA64 processor
7154         lt_prog_compiler_static='-Bstatic'
7155       else
7156         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7157       fi
7158       ;;
7159       darwin*)
7160         # PIC is the default on this platform
7161         # Common symbols not allowed in MH_DYLIB files
7162        case $cc_basename in
7163          xlc*)
7164          lt_prog_compiler_pic='-qnocommon'
7165          lt_prog_compiler_wl='-Wl,'
7166          ;;
7167        esac
7168        ;;
7169
7170     mingw* | cygwin* | pw32* | os2*)
7171       # This hack is so that the source file can tell whether it is being
7172       # built for inclusion in a dll (and should export symbols for example).
7173       lt_prog_compiler_pic='-DDLL_EXPORT'
7174       ;;
7175
7176     hpux9* | hpux10* | hpux11*)
7177       lt_prog_compiler_wl='-Wl,'
7178       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7179       # not for PA HP-UX.
7180       case $host_cpu in
7181       hppa*64*|ia64*)
7182         # +Z the default
7183         ;;
7184       *)
7185         lt_prog_compiler_pic='+Z'
7186         ;;
7187       esac
7188       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7189       lt_prog_compiler_static='${wl}-a ${wl}archive'
7190       ;;
7191
7192     irix5* | irix6* | nonstopux*)
7193       lt_prog_compiler_wl='-Wl,'
7194       # PIC (with -KPIC) is the default.
7195       lt_prog_compiler_static='-non_shared'
7196       ;;
7197
7198     newsos6)
7199       lt_prog_compiler_pic='-KPIC'
7200       lt_prog_compiler_static='-Bstatic'
7201       ;;
7202
7203     linux* | k*bsd*-gnu)
7204       case $cc_basename in
7205       icc* | ecc*)
7206         lt_prog_compiler_wl='-Wl,'
7207         lt_prog_compiler_pic='-KPIC'
7208         lt_prog_compiler_static='-static'
7209         ;;
7210       pgcc* | pgf77* | pgf90* | pgf95*)
7211         # Portland Group compilers (*not* the Pentium gcc compiler,
7212         # which looks to be a dead project)
7213         lt_prog_compiler_wl='-Wl,'
7214         lt_prog_compiler_pic='-fpic'
7215         lt_prog_compiler_static='-Bstatic'
7216         ;;
7217       ccc*)
7218         lt_prog_compiler_wl='-Wl,'
7219         # All Alpha code is PIC.
7220         lt_prog_compiler_static='-non_shared'
7221         ;;
7222       *)
7223         case `$CC -V 2>&1 | sed 5q` in
7224         *Sun\ C*)
7225           # Sun C 5.9
7226           lt_prog_compiler_pic='-KPIC'
7227           lt_prog_compiler_static='-Bstatic'
7228           lt_prog_compiler_wl='-Wl,'
7229           ;;
7230         *Sun\ F*)
7231           # Sun Fortran 8.3 passes all unrecognized flags to the linker
7232           lt_prog_compiler_pic='-KPIC'
7233           lt_prog_compiler_static='-Bstatic'
7234           lt_prog_compiler_wl=''
7235           ;;
7236         esac
7237         ;;
7238       esac
7239       ;;
7240
7241     osf3* | osf4* | osf5*)
7242       lt_prog_compiler_wl='-Wl,'
7243       # All OSF/1 code is PIC.
7244       lt_prog_compiler_static='-non_shared'
7245       ;;
7246
7247     rdos*)
7248       lt_prog_compiler_static='-non_shared'
7249       ;;
7250
7251     solaris*)
7252       lt_prog_compiler_pic='-KPIC'
7253       lt_prog_compiler_static='-Bstatic'
7254       case $cc_basename in
7255       f77* | f90* | f95*)
7256         lt_prog_compiler_wl='-Qoption ld ';;
7257       *)
7258         lt_prog_compiler_wl='-Wl,';;
7259       esac
7260       ;;
7261
7262     sunos4*)
7263       lt_prog_compiler_wl='-Qoption ld '
7264       lt_prog_compiler_pic='-PIC'
7265       lt_prog_compiler_static='-Bstatic'
7266       ;;
7267
7268     sysv4 | sysv4.2uw2* | sysv4.3*)
7269       lt_prog_compiler_wl='-Wl,'
7270       lt_prog_compiler_pic='-KPIC'
7271       lt_prog_compiler_static='-Bstatic'
7272       ;;
7273
7274     sysv4*MP*)
7275       if test -d /usr/nec ;then
7276         lt_prog_compiler_pic='-Kconform_pic'
7277         lt_prog_compiler_static='-Bstatic'
7278       fi
7279       ;;
7280
7281     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7282       lt_prog_compiler_wl='-Wl,'
7283       lt_prog_compiler_pic='-KPIC'
7284       lt_prog_compiler_static='-Bstatic'
7285       ;;
7286
7287     unicos*)
7288       lt_prog_compiler_wl='-Wl,'
7289       lt_prog_compiler_can_build_shared=no
7290       ;;
7291
7292     uts4*)
7293       lt_prog_compiler_pic='-pic'
7294       lt_prog_compiler_static='-Bstatic'
7295       ;;
7296
7297     *)
7298       lt_prog_compiler_can_build_shared=no
7299       ;;
7300     esac
7301   fi
7302
7303 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7304 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7305
7306 #
7307 # Check to make sure the PIC flag actually works.
7308 #
7309 if test -n "$lt_prog_compiler_pic"; then
7310
7311 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7312 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7313 if test "${lt_prog_compiler_pic_works+set}" = set; then
7314   echo $ECHO_N "(cached) $ECHO_C" >&6
7315 else
7316   lt_prog_compiler_pic_works=no
7317   ac_outfile=conftest.$ac_objext
7318    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7319    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7320    # Insert the option either (1) after the last *FLAGS variable, or
7321    # (2) before a word containing "conftest.", or (3) at the end.
7322    # Note that $ac_compile itself does not contain backslashes and begins
7323    # with a dollar sign (not a hyphen), so the echo should work correctly.
7324    # The option is referenced via a variable to avoid confusing sed.
7325    lt_compile=`echo "$ac_compile" | $SED \
7326    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7327    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7328    -e 's:$: $lt_compiler_flag:'`
7329    (eval echo "\"\$as_me:7329: $lt_compile\"" >&5)
7330    (eval "$lt_compile" 2>conftest.err)
7331    ac_status=$?
7332    cat conftest.err >&5
7333    echo "$as_me:7333: \$? = $ac_status" >&5
7334    if (exit $ac_status) && test -s "$ac_outfile"; then
7335      # The compiler can only warn and ignore the option if not recognized
7336      # So say no if there are warnings other than the usual output.
7337      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7338      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7339      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7340        lt_prog_compiler_pic_works=yes
7341      fi
7342    fi
7343    $rm conftest*
7344
7345 fi
7346 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7347 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7348
7349 if test x"$lt_prog_compiler_pic_works" = xyes; then
7350     case $lt_prog_compiler_pic in
7351      "" | " "*) ;;
7352      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7353      esac
7354 else
7355     lt_prog_compiler_pic=
7356      lt_prog_compiler_can_build_shared=no
7357 fi
7358
7359 fi
7360 case $host_os in
7361   # For platforms which do not support PIC, -DPIC is meaningless:
7362   *djgpp*)
7363     lt_prog_compiler_pic=
7364     ;;
7365   *)
7366     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7367     ;;
7368 esac
7369
7370 #
7371 # Check to make sure the static flag actually works.
7372 #
7373 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7374 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7375 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7376 if test "${lt_prog_compiler_static_works+set}" = set; then
7377   echo $ECHO_N "(cached) $ECHO_C" >&6
7378 else
7379   lt_prog_compiler_static_works=no
7380    save_LDFLAGS="$LDFLAGS"
7381    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7382    echo "$lt_simple_link_test_code" > conftest.$ac_ext
7383    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7384      # The linker can only warn and ignore the option if not recognized
7385      # So say no if there are warnings
7386      if test -s conftest.err; then
7387        # Append any errors to the config.log.
7388        cat conftest.err 1>&5
7389        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7390        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7391        if diff conftest.exp conftest.er2 >/dev/null; then
7392          lt_prog_compiler_static_works=yes
7393        fi
7394      else
7395        lt_prog_compiler_static_works=yes
7396      fi
7397    fi
7398    $rm conftest*
7399    LDFLAGS="$save_LDFLAGS"
7400
7401 fi
7402 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7403 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7404
7405 if test x"$lt_prog_compiler_static_works" = xyes; then
7406     :
7407 else
7408     lt_prog_compiler_static=
7409 fi
7410
7411
7412 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7413 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7414 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7415   echo $ECHO_N "(cached) $ECHO_C" >&6
7416 else
7417   lt_cv_prog_compiler_c_o=no
7418    $rm -r conftest 2>/dev/null
7419    mkdir conftest
7420    cd conftest
7421    mkdir out
7422    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7423
7424    lt_compiler_flag="-o out/conftest2.$ac_objext"
7425    # Insert the option either (1) after the last *FLAGS variable, or
7426    # (2) before a word containing "conftest.", or (3) at the end.
7427    # Note that $ac_compile itself does not contain backslashes and begins
7428    # with a dollar sign (not a hyphen), so the echo should work correctly.
7429    lt_compile=`echo "$ac_compile" | $SED \
7430    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7431    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7432    -e 's:$: $lt_compiler_flag:'`
7433    (eval echo "\"\$as_me:7433: $lt_compile\"" >&5)
7434    (eval "$lt_compile" 2>out/conftest.err)
7435    ac_status=$?
7436    cat out/conftest.err >&5
7437    echo "$as_me:7437: \$? = $ac_status" >&5
7438    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7439    then
7440      # The compiler can only warn and ignore the option if not recognized
7441      # So say no if there are warnings
7442      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7443      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7444      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7445        lt_cv_prog_compiler_c_o=yes
7446      fi
7447    fi
7448    chmod u+w . 2>&5
7449    $rm conftest*
7450    # SGI C++ compiler will create directory out/ii_files/ for
7451    # template instantiation
7452    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7453    $rm out/* && rmdir out
7454    cd ..
7455    rmdir conftest
7456    $rm conftest*
7457
7458 fi
7459 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7460 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7461
7462
7463 hard_links="nottested"
7464 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7465   # do not overwrite the value of need_locks provided by the user
7466   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7467 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7468   hard_links=yes
7469   $rm conftest*
7470   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7471   touch conftest.a
7472   ln conftest.a conftest.b 2>&5 || hard_links=no
7473   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7474   { echo "$as_me:$LINENO: result: $hard_links" >&5
7475 echo "${ECHO_T}$hard_links" >&6; }
7476   if test "$hard_links" = no; then
7477     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7478 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7479     need_locks=warn
7480   fi
7481 else
7482   need_locks=no
7483 fi
7484
7485 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7486 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7487
7488   runpath_var=
7489   allow_undefined_flag=
7490   enable_shared_with_static_runtimes=no
7491   archive_cmds=
7492   archive_expsym_cmds=
7493   old_archive_From_new_cmds=
7494   old_archive_from_expsyms_cmds=
7495   export_dynamic_flag_spec=
7496   whole_archive_flag_spec=
7497   thread_safe_flag_spec=
7498   hardcode_libdir_flag_spec=
7499   hardcode_libdir_flag_spec_ld=
7500   hardcode_libdir_separator=
7501   hardcode_direct=no
7502   hardcode_minus_L=no
7503   hardcode_shlibpath_var=unsupported
7504   link_all_deplibs=unknown
7505   hardcode_automatic=no
7506   module_cmds=
7507   module_expsym_cmds=
7508   always_export_symbols=no
7509   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7510   # include_expsyms should be a list of space-separated symbols to be *always*
7511   # included in the symbol list
7512   include_expsyms=
7513   # exclude_expsyms can be an extended regexp of symbols to exclude
7514   # it will be wrapped by ` (' and `)$', so one must not match beginning or
7515   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7516   # as well as any symbol that contains `d'.
7517   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7518   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7519   # platforms (ab)use it in PIC code, but their linkers get confused if
7520   # the symbol is explicitly referenced.  Since portable code cannot
7521   # rely on this symbol name, it's probably fine to never include it in
7522   # preloaded symbol tables.
7523   extract_expsyms_cmds=
7524   # Just being paranoid about ensuring that cc_basename is set.
7525   for cc_temp in $compiler""; do
7526   case $cc_temp in
7527     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7528     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7529     \-*) ;;
7530     *) break;;
7531   esac
7532 done
7533 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7534
7535   case $host_os in
7536   cygwin* | mingw* | pw32*)
7537     # FIXME: the MSVC++ port hasn't been tested in a loooong time
7538     # When not using gcc, we currently assume that we are using
7539     # Microsoft Visual C++.
7540     if test "$GCC" != yes; then
7541       with_gnu_ld=no
7542     fi
7543     ;;
7544   interix*)
7545     # we just hope/assume this is gcc and not c89 (= MSVC++)
7546     with_gnu_ld=yes
7547     ;;
7548   openbsd*)
7549     with_gnu_ld=no
7550     ;;
7551   esac
7552
7553   ld_shlibs=yes
7554   if test "$with_gnu_ld" = yes; then
7555     # If archive_cmds runs LD, not CC, wlarc should be empty
7556     wlarc='${wl}'
7557
7558     # Set some defaults for GNU ld with shared library support. These
7559     # are reset later if shared libraries are not supported. Putting them
7560     # here allows them to be overridden if necessary.
7561     runpath_var=LD_RUN_PATH
7562     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7563     export_dynamic_flag_spec='${wl}--export-dynamic'
7564     # ancient GNU ld didn't support --whole-archive et. al.
7565     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7566         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7567       else
7568         whole_archive_flag_spec=
7569     fi
7570     supports_anon_versioning=no
7571     case `$LD -v 2>/dev/null` in
7572       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7573       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7574       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7575       *\ 2.11.*) ;; # other 2.11 versions
7576       *) supports_anon_versioning=yes ;;
7577     esac
7578
7579     # See if GNU ld supports shared libraries.
7580     case $host_os in
7581     aix3* | aix4* | aix5*)
7582       # On AIX/PPC, the GNU linker is very broken
7583       if test "$host_cpu" != ia64; then
7584         ld_shlibs=no
7585         cat <<EOF 1>&2
7586
7587 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7588 *** to be unable to reliably create shared libraries on AIX.
7589 *** Therefore, libtool is disabling shared libraries support.  If you
7590 *** really care for shared libraries, you may want to modify your PATH
7591 *** so that a non-GNU linker is found, and then restart.
7592
7593 EOF
7594       fi
7595       ;;
7596
7597     amigaos*)
7598       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)'
7599       hardcode_libdir_flag_spec='-L$libdir'
7600       hardcode_minus_L=yes
7601
7602       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7603       # that the semantics of dynamic libraries on AmigaOS, at least up
7604       # to version 4, is to share data among multiple programs linked
7605       # with the same dynamic library.  Since this doesn't match the
7606       # behavior of shared libraries on other platforms, we can't use
7607       # them.
7608       ld_shlibs=no
7609       ;;
7610
7611     beos*)
7612       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7613         allow_undefined_flag=unsupported
7614         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7615         # support --undefined.  This deserves some investigation.  FIXME
7616         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7617       else
7618         ld_shlibs=no
7619       fi
7620       ;;
7621
7622     cygwin* | mingw* | pw32*)
7623       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7624       # as there is no search path for DLLs.
7625       hardcode_libdir_flag_spec='-L$libdir'
7626       allow_undefined_flag=unsupported
7627       always_export_symbols=no
7628       enable_shared_with_static_runtimes=yes
7629       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7630
7631       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7632         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7633         # If the export-symbols file already is a .def file (1st line
7634         # is EXPORTS), use it as is; otherwise, prepend...
7635         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7636           cp $export_symbols $output_objdir/$soname.def;
7637         else
7638           echo EXPORTS > $output_objdir/$soname.def;
7639           cat $export_symbols >> $output_objdir/$soname.def;
7640         fi~
7641         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7642       else
7643         ld_shlibs=no
7644       fi
7645       ;;
7646
7647     interix[3-9]*)
7648       hardcode_direct=no
7649       hardcode_shlibpath_var=no
7650       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7651       export_dynamic_flag_spec='${wl}-E'
7652       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7653       # Instead, shared libraries are loaded at an image base (0x10000000 by
7654       # default) and relocated if they conflict, which is a slow very memory
7655       # consuming and fragmenting process.  To avoid this, we pick a random,
7656       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7657       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7658       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7659       archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7660       ;;
7661
7662     gnu* | linux* | k*bsd*-gnu)
7663       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7664         tmp_addflag=
7665         case $cc_basename,$host_cpu in
7666         pgcc*)                          # Portland Group C compiler
7667           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'
7668           tmp_addflag=' $pic_flag'
7669           ;;
7670         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
7671           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'
7672           tmp_addflag=' $pic_flag -Mnomain' ;;
7673         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
7674           tmp_addflag=' -i_dynamic' ;;
7675         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7676           tmp_addflag=' -i_dynamic -nofor_main' ;;
7677         ifc* | ifort*)                  # Intel Fortran compiler
7678           tmp_addflag=' -nofor_main' ;;
7679         esac
7680         case `$CC -V 2>&1 | sed 5q` in
7681         *Sun\ C*)                       # Sun C 5.9
7682           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7683           tmp_sharedflag='-G' ;;
7684         *Sun\ F*)                       # Sun Fortran 8.3
7685           tmp_sharedflag='-G' ;;
7686         *)
7687           tmp_sharedflag='-shared' ;;
7688         esac
7689         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7690
7691         if test $supports_anon_versioning = yes; then
7692           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7693   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7694   $echo "local: *; };" >> $output_objdir/$libname.ver~
7695           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7696         fi
7697       else
7698         ld_shlibs=no
7699       fi
7700       ;;
7701
7702     netbsd*)
7703       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7704         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7705         wlarc=
7706       else
7707         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7708         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7709       fi
7710       ;;
7711
7712     solaris*)
7713       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7714         ld_shlibs=no
7715         cat <<EOF 1>&2
7716
7717 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7718 *** create shared libraries on Solaris systems.  Therefore, libtool
7719 *** is disabling shared libraries support.  We urge you to upgrade GNU
7720 *** binutils to release 2.9.1 or newer.  Another option is to modify
7721 *** your PATH or compiler configuration so that the native linker is
7722 *** used, and then restart.
7723
7724 EOF
7725       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7726         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7727         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7728       else
7729         ld_shlibs=no
7730       fi
7731       ;;
7732
7733     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7734       case `$LD -v 2>&1` in
7735         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7736         ld_shlibs=no
7737         cat <<_LT_EOF 1>&2
7738
7739 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7740 *** reliably create shared libraries on SCO systems.  Therefore, libtool
7741 *** is disabling shared libraries support.  We urge you to upgrade GNU
7742 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7743 *** your PATH or compiler configuration so that the native linker is
7744 *** used, and then restart.
7745
7746 _LT_EOF
7747         ;;
7748         *)
7749           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7750             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7751             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7752             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7753           else
7754             ld_shlibs=no
7755           fi
7756         ;;
7757       esac
7758       ;;
7759
7760     sunos4*)
7761       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7762       wlarc=
7763       hardcode_direct=yes
7764       hardcode_shlibpath_var=no
7765       ;;
7766
7767     *)
7768       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7769         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7770         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7771       else
7772         ld_shlibs=no
7773       fi
7774       ;;
7775     esac
7776
7777     if test "$ld_shlibs" = no; then
7778       runpath_var=
7779       hardcode_libdir_flag_spec=
7780       export_dynamic_flag_spec=
7781       whole_archive_flag_spec=
7782     fi
7783   else
7784     # PORTME fill in a description of your system's linker (not GNU ld)
7785     case $host_os in
7786     aix3*)
7787       allow_undefined_flag=unsupported
7788       always_export_symbols=yes
7789       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'
7790       # Note: this linker hardcodes the directories in LIBPATH if there
7791       # are no directories specified by -L.
7792       hardcode_minus_L=yes
7793       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7794         # Neither direct hardcoding nor static linking is supported with a
7795         # broken collect2.
7796         hardcode_direct=unsupported
7797       fi
7798       ;;
7799
7800     aix4* | aix5*)
7801       if test "$host_cpu" = ia64; then
7802         # On IA64, the linker does run time linking by default, so we don't
7803         # have to do anything special.
7804         aix_use_runtimelinking=no
7805         exp_sym_flag='-Bexport'
7806         no_entry_flag=""
7807       else
7808         # If we're using GNU nm, then we don't want the "-C" option.
7809         # -C means demangle to AIX nm, but means don't demangle with GNU nm
7810         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7811           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'
7812         else
7813           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'
7814         fi
7815         aix_use_runtimelinking=no
7816
7817         # Test if we are trying to use run time linking or normal
7818         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7819         # need to do runtime linking.
7820         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7821           for ld_flag in $LDFLAGS; do
7822           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7823             aix_use_runtimelinking=yes
7824             break
7825           fi
7826           done
7827           ;;
7828         esac
7829
7830         exp_sym_flag='-bexport'
7831         no_entry_flag='-bnoentry'
7832       fi
7833
7834       # When large executables or shared objects are built, AIX ld can
7835       # have problems creating the table of contents.  If linking a library
7836       # or program results in "error TOC overflow" add -mminimal-toc to
7837       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7838       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7839
7840       archive_cmds=''
7841       hardcode_direct=yes
7842       hardcode_libdir_separator=':'
7843       link_all_deplibs=yes
7844
7845       if test "$GCC" = yes; then
7846         case $host_os in aix4.[012]|aix4.[012].*)
7847         # We only want to do this on AIX 4.2 and lower, the check
7848         # below for broken collect2 doesn't work under 4.3+
7849           collect2name=`${CC} -print-prog-name=collect2`
7850           if test -f "$collect2name" && \
7851            strings "$collect2name" | grep resolve_lib_name >/dev/null
7852           then
7853           # We have reworked collect2
7854           :
7855           else
7856           # We have old collect2
7857           hardcode_direct=unsupported
7858           # It fails to find uninstalled libraries when the uninstalled
7859           # path is not listed in the libpath.  Setting hardcode_minus_L
7860           # to unsupported forces relinking
7861           hardcode_minus_L=yes
7862           hardcode_libdir_flag_spec='-L$libdir'
7863           hardcode_libdir_separator=
7864           fi
7865           ;;
7866         esac
7867         shared_flag='-shared'
7868         if test "$aix_use_runtimelinking" = yes; then
7869           shared_flag="$shared_flag "'${wl}-G'
7870         fi
7871       else
7872         # not using gcc
7873         if test "$host_cpu" = ia64; then
7874         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7875         # chokes on -Wl,-G. The following line is correct:
7876           shared_flag='-G'
7877         else
7878           if test "$aix_use_runtimelinking" = yes; then
7879             shared_flag='${wl}-G'
7880           else
7881             shared_flag='${wl}-bM:SRE'
7882           fi
7883         fi
7884       fi
7885
7886       # It seems that -bexpall does not export symbols beginning with
7887       # underscore (_), so it is better to generate a list of symbols to export.
7888       always_export_symbols=yes
7889       if test "$aix_use_runtimelinking" = yes; then
7890         # Warning - without using the other runtime loading flags (-brtl),
7891         # -berok will link without error, but may produce a broken library.
7892         allow_undefined_flag='-berok'
7893        # Determine the default libpath from the value encoded in an empty executable.
7894        cat >conftest.$ac_ext <<_ACEOF
7895 /* confdefs.h.  */
7896 _ACEOF
7897 cat confdefs.h >>conftest.$ac_ext
7898 cat >>conftest.$ac_ext <<_ACEOF
7899 /* end confdefs.h.  */
7900
7901 int
7902 main ()
7903 {
7904
7905   ;
7906   return 0;
7907 }
7908 _ACEOF
7909 rm -f conftest.$ac_objext conftest$ac_exeext
7910 if { (ac_try="$ac_link"
7911 case "(($ac_try" in
7912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7913   *) ac_try_echo=$ac_try;;
7914 esac
7915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7916   (eval "$ac_link") 2>conftest.er1
7917   ac_status=$?
7918   grep -v '^ *+' conftest.er1 >conftest.err
7919   rm -f conftest.er1
7920   cat conftest.err >&5
7921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7922   (exit $ac_status); } && {
7923          test -z "$ac_c_werror_flag" ||
7924          test ! -s conftest.err
7925        } && test -s conftest$ac_exeext &&
7926        $as_test_x conftest$ac_exeext; then
7927
7928 lt_aix_libpath_sed='
7929     /Import File Strings/,/^$/ {
7930         /^0/ {
7931             s/^0  *\(.*\)$/\1/
7932             p
7933         }
7934     }'
7935 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7936 # Check for a 64-bit object if we didn't find anything.
7937 if test -z "$aix_libpath"; then
7938   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7939 fi
7940 else
7941   echo "$as_me: failed program was:" >&5
7942 sed 's/^/| /' conftest.$ac_ext >&5
7943
7944
7945 fi
7946
7947 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7948       conftest$ac_exeext conftest.$ac_ext
7949 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7950
7951        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7952         archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7953        else
7954         if test "$host_cpu" = ia64; then
7955           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7956           allow_undefined_flag="-z nodefs"
7957           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
7958         else
7959          # Determine the default libpath from the value encoded in an empty executable.
7960          cat >conftest.$ac_ext <<_ACEOF
7961 /* confdefs.h.  */
7962 _ACEOF
7963 cat confdefs.h >>conftest.$ac_ext
7964 cat >>conftest.$ac_ext <<_ACEOF
7965 /* end confdefs.h.  */
7966
7967 int
7968 main ()
7969 {
7970
7971   ;
7972   return 0;
7973 }
7974 _ACEOF
7975 rm -f conftest.$ac_objext conftest$ac_exeext
7976 if { (ac_try="$ac_link"
7977 case "(($ac_try" in
7978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7979   *) ac_try_echo=$ac_try;;
7980 esac
7981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7982   (eval "$ac_link") 2>conftest.er1
7983   ac_status=$?
7984   grep -v '^ *+' conftest.er1 >conftest.err
7985   rm -f conftest.er1
7986   cat conftest.err >&5
7987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7988   (exit $ac_status); } && {
7989          test -z "$ac_c_werror_flag" ||
7990          test ! -s conftest.err
7991        } && test -s conftest$ac_exeext &&
7992        $as_test_x conftest$ac_exeext; then
7993
7994 lt_aix_libpath_sed='
7995     /Import File Strings/,/^$/ {
7996         /^0/ {
7997             s/^0  *\(.*\)$/\1/
7998             p
7999         }
8000     }'
8001 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8002 # Check for a 64-bit object if we didn't find anything.
8003 if test -z "$aix_libpath"; then
8004   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8005 fi
8006 else
8007   echo "$as_me: failed program was:" >&5
8008 sed 's/^/| /' conftest.$ac_ext >&5
8009
8010
8011 fi
8012
8013 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8014       conftest$ac_exeext conftest.$ac_ext
8015 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8016
8017          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8018           # Warning - without using the other run time loading flags,
8019           # -berok will link without error, but may produce a broken library.
8020           no_undefined_flag=' ${wl}-bernotok'
8021           allow_undefined_flag=' ${wl}-berok'
8022           # Exported symbols can be pulled into shared objects from archives
8023           whole_archive_flag_spec='$convenience'
8024           archive_cmds_need_lc=yes
8025           # This is similar to how AIX traditionally builds its shared libraries.
8026           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8027         fi
8028       fi
8029       ;;
8030
8031     amigaos*)
8032       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)'
8033       hardcode_libdir_flag_spec='-L$libdir'
8034       hardcode_minus_L=yes
8035       # see comment about different semantics on the GNU ld section
8036       ld_shlibs=no
8037       ;;
8038
8039     bsdi[45]*)
8040       export_dynamic_flag_spec=-rdynamic
8041       ;;
8042
8043     cygwin* | mingw* | pw32*)
8044       # When not using gcc, we currently assume that we are using
8045       # Microsoft Visual C++.
8046       # hardcode_libdir_flag_spec is actually meaningless, as there is
8047       # no search path for DLLs.
8048       hardcode_libdir_flag_spec=' '
8049       allow_undefined_flag=unsupported
8050       # Tell ltmain to make .lib files, not .a files.
8051       libext=lib
8052       # Tell ltmain to make .dll files, not .so files.
8053       shrext_cmds=".dll"
8054       # FIXME: Setting linknames here is a bad hack.
8055       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8056       # The linker will automatically build a .lib file if we build a DLL.
8057       old_archive_From_new_cmds='true'
8058       # FIXME: Should let the user specify the lib program.
8059       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8060       fix_srcfile_path='`cygpath -w "$srcfile"`'
8061       enable_shared_with_static_runtimes=yes
8062       ;;
8063
8064     darwin* | rhapsody*)
8065       case $host_os in
8066         rhapsody* | darwin1.[012])
8067          allow_undefined_flag='${wl}-undefined ${wl}suppress'
8068          ;;
8069        *) # Darwin 1.3 on
8070          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8071            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8072          else
8073            case ${MACOSX_DEPLOYMENT_TARGET} in
8074              10.[012])
8075                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8076                ;;
8077              10.*)
8078                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8079                ;;
8080            esac
8081          fi
8082          ;;
8083       esac
8084       archive_cmds_need_lc=no
8085       hardcode_direct=no
8086       hardcode_automatic=yes
8087       hardcode_shlibpath_var=unsupported
8088       whole_archive_flag_spec=''
8089       link_all_deplibs=yes
8090     if test "$GCC" = yes ; then
8091         output_verbose_link_cmd='echo'
8092         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8093       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8094       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8095       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}'
8096       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}'
8097     else
8098       case $cc_basename in
8099         xlc*)
8100          output_verbose_link_cmd='echo'
8101          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8102          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8103           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8104          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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8105           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}'
8106           ;;
8107        *)
8108          ld_shlibs=no
8109           ;;
8110       esac
8111     fi
8112       ;;
8113
8114     dgux*)
8115       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8116       hardcode_libdir_flag_spec='-L$libdir'
8117       hardcode_shlibpath_var=no
8118       ;;
8119
8120     freebsd1*)
8121       ld_shlibs=no
8122       ;;
8123
8124     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8125     # support.  Future versions do this automatically, but an explicit c++rt0.o
8126     # does not break anything, and helps significantly (at the cost of a little
8127     # extra space).
8128     freebsd2.2*)
8129       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8130       hardcode_libdir_flag_spec='-R$libdir'
8131       hardcode_direct=yes
8132       hardcode_shlibpath_var=no
8133       ;;
8134
8135     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8136     freebsd2*)
8137       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8138       hardcode_direct=yes
8139       hardcode_minus_L=yes
8140       hardcode_shlibpath_var=no
8141       ;;
8142
8143     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8144     freebsd* | dragonfly*)
8145       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8146       hardcode_libdir_flag_spec='-R$libdir'
8147       hardcode_direct=yes
8148       hardcode_shlibpath_var=no
8149       ;;
8150
8151     hpux9*)
8152       if test "$GCC" = yes; then
8153         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'
8154       else
8155         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'
8156       fi
8157       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8158       hardcode_libdir_separator=:
8159       hardcode_direct=yes
8160
8161       # hardcode_minus_L: Not really in the search PATH,
8162       # but as the default location of the library.
8163       hardcode_minus_L=yes
8164       export_dynamic_flag_spec='${wl}-E'
8165       ;;
8166
8167     hpux10*)
8168       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8169         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8170       else
8171         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8172       fi
8173       if test "$with_gnu_ld" = no; then
8174         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8175         hardcode_libdir_separator=:
8176
8177         hardcode_direct=yes
8178         export_dynamic_flag_spec='${wl}-E'
8179
8180         # hardcode_minus_L: Not really in the search PATH,
8181         # but as the default location of the library.
8182         hardcode_minus_L=yes
8183       fi
8184       ;;
8185
8186     hpux11*)
8187       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8188         case $host_cpu in
8189         hppa*64*)
8190           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8191           ;;
8192         ia64*)
8193           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8194           ;;
8195         *)
8196           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8197           ;;
8198         esac
8199       else
8200         case $host_cpu in
8201         hppa*64*)
8202           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8203           ;;
8204         ia64*)
8205           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8206           ;;
8207         *)
8208           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8209           ;;
8210         esac
8211       fi
8212       if test "$with_gnu_ld" = no; then
8213         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8214         hardcode_libdir_separator=:
8215
8216         case $host_cpu in
8217         hppa*64*|ia64*)
8218           hardcode_libdir_flag_spec_ld='+b $libdir'
8219           hardcode_direct=no
8220           hardcode_shlibpath_var=no
8221           ;;
8222         *)
8223           hardcode_direct=yes
8224           export_dynamic_flag_spec='${wl}-E'
8225
8226           # hardcode_minus_L: Not really in the search PATH,
8227           # but as the default location of the library.
8228           hardcode_minus_L=yes
8229           ;;
8230         esac
8231       fi
8232       ;;
8233
8234     irix5* | irix6* | nonstopux*)
8235       if test "$GCC" = yes; then
8236         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'
8237       else
8238         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'
8239         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8240       fi
8241       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8242       hardcode_libdir_separator=:
8243       link_all_deplibs=yes
8244       ;;
8245
8246     netbsd*)
8247       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8248         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8249       else
8250         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8251       fi
8252       hardcode_libdir_flag_spec='-R$libdir'
8253       hardcode_direct=yes
8254       hardcode_shlibpath_var=no
8255       ;;
8256
8257     newsos6)
8258       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8259       hardcode_direct=yes
8260       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8261       hardcode_libdir_separator=:
8262       hardcode_shlibpath_var=no
8263       ;;
8264
8265     openbsd*)
8266       if test -f /usr/libexec/ld.so; then
8267         hardcode_direct=yes
8268         hardcode_shlibpath_var=no
8269         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8270           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8271           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8272           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8273           export_dynamic_flag_spec='${wl}-E'
8274         else
8275           case $host_os in
8276            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8277              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8278              hardcode_libdir_flag_spec='-R$libdir'
8279              ;;
8280            *)
8281              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8282              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8283              ;;
8284           esac
8285         fi
8286       else
8287         ld_shlibs=no
8288       fi
8289       ;;
8290
8291     os2*)
8292       hardcode_libdir_flag_spec='-L$libdir'
8293       hardcode_minus_L=yes
8294       allow_undefined_flag=unsupported
8295       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'
8296       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8297       ;;
8298
8299     osf3*)
8300       if test "$GCC" = yes; then
8301         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8302         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'
8303       else
8304         allow_undefined_flag=' -expect_unresolved \*'
8305         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'
8306       fi
8307       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8308       hardcode_libdir_separator=:
8309       ;;
8310
8311     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8312       if test "$GCC" = yes; then
8313         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8314         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'
8315         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8316       else
8317         allow_undefined_flag=' -expect_unresolved \*'
8318         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'
8319         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8320         $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'
8321
8322         # Both c and cxx compiler support -rpath directly
8323         hardcode_libdir_flag_spec='-rpath $libdir'
8324       fi
8325       hardcode_libdir_separator=:
8326       ;;
8327
8328     solaris*)
8329       no_undefined_flag=' -z text'
8330       if test "$GCC" = yes; then
8331         wlarc='${wl}'
8332         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8333         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8334           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8335       else
8336         wlarc=''
8337         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8338         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8339         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8340       fi
8341       hardcode_libdir_flag_spec='-R$libdir'
8342       hardcode_shlibpath_var=no
8343       case $host_os in
8344       solaris2.[0-5] | solaris2.[0-5].*) ;;
8345       *)
8346         # The compiler driver will combine and reorder linker options,
8347         # but understands `-z linker_flag'.  GCC discards it without `$wl',
8348         # but is careful enough not to reorder.
8349         # Supported since Solaris 2.6 (maybe 2.5.1?)
8350         if test "$GCC" = yes; then
8351           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8352         else
8353           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8354         fi
8355         ;;
8356       esac
8357       link_all_deplibs=yes
8358       ;;
8359
8360     sunos4*)
8361       if test "x$host_vendor" = xsequent; then
8362         # Use $CC to link under sequent, because it throws in some extra .o
8363         # files that make .init and .fini sections work.
8364         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8365       else
8366         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8367       fi
8368       hardcode_libdir_flag_spec='-L$libdir'
8369       hardcode_direct=yes
8370       hardcode_minus_L=yes
8371       hardcode_shlibpath_var=no
8372       ;;
8373
8374     sysv4)
8375       case $host_vendor in
8376         sni)
8377           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8378           hardcode_direct=yes # is this really true???
8379         ;;
8380         siemens)
8381           ## LD is ld it makes a PLAMLIB
8382           ## CC just makes a GrossModule.
8383           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8384           reload_cmds='$CC -r -o $output$reload_objs'
8385           hardcode_direct=no
8386         ;;
8387         motorola)
8388           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8389           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8390         ;;
8391       esac
8392       runpath_var='LD_RUN_PATH'
8393       hardcode_shlibpath_var=no
8394       ;;
8395
8396     sysv4.3*)
8397       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8398       hardcode_shlibpath_var=no
8399       export_dynamic_flag_spec='-Bexport'
8400       ;;
8401
8402     sysv4*MP*)
8403       if test -d /usr/nec; then
8404         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8405         hardcode_shlibpath_var=no
8406         runpath_var=LD_RUN_PATH
8407         hardcode_runpath_var=yes
8408         ld_shlibs=yes
8409       fi
8410       ;;
8411
8412     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8413       no_undefined_flag='${wl}-z,text'
8414       archive_cmds_need_lc=no
8415       hardcode_shlibpath_var=no
8416       runpath_var='LD_RUN_PATH'
8417
8418       if test "$GCC" = yes; then
8419         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8420         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8421       else
8422         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8423         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8424       fi
8425       ;;
8426
8427     sysv5* | sco3.2v5* | sco5v6*)
8428       # Note: We can NOT use -z defs as we might desire, because we do not
8429       # link with -lc, and that would cause any symbols used from libc to
8430       # always be unresolved, which means just about no library would
8431       # ever link correctly.  If we're not using GNU ld we use -z text
8432       # though, which does catch some bad symbols but isn't as heavy-handed
8433       # as -z defs.
8434       no_undefined_flag='${wl}-z,text'
8435       allow_undefined_flag='${wl}-z,nodefs'
8436       archive_cmds_need_lc=no
8437       hardcode_shlibpath_var=no
8438       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8439       hardcode_libdir_separator=':'
8440       link_all_deplibs=yes
8441       export_dynamic_flag_spec='${wl}-Bexport'
8442       runpath_var='LD_RUN_PATH'
8443
8444       if test "$GCC" = yes; then
8445         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8446         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8447       else
8448         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8449         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8450       fi
8451       ;;
8452
8453     uts4*)
8454       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8455       hardcode_libdir_flag_spec='-L$libdir'
8456       hardcode_shlibpath_var=no
8457       ;;
8458
8459     *)
8460       ld_shlibs=no
8461       ;;
8462     esac
8463   fi
8464
8465 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8466 echo "${ECHO_T}$ld_shlibs" >&6; }
8467 test "$ld_shlibs" = no && can_build_shared=no
8468
8469 #
8470 # Do we need to explicitly link libc?
8471 #
8472 case "x$archive_cmds_need_lc" in
8473 x|xyes)
8474   # Assume -lc should be added
8475   archive_cmds_need_lc=yes
8476
8477   if test "$enable_shared" = yes && test "$GCC" = yes; then
8478     case $archive_cmds in
8479     *'~'*)
8480       # FIXME: we may have to deal with multi-command sequences.
8481       ;;
8482     '$CC '*)
8483       # Test whether the compiler implicitly links with -lc since on some
8484       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8485       # to ld, don't add -lc before -lgcc.
8486       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8487 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8488       $rm conftest*
8489       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8490
8491       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8492   (eval $ac_compile) 2>&5
8493   ac_status=$?
8494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8495   (exit $ac_status); } 2>conftest.err; then
8496         soname=conftest
8497         lib=conftest
8498         libobjs=conftest.$ac_objext
8499         deplibs=
8500         wl=$lt_prog_compiler_wl
8501         pic_flag=$lt_prog_compiler_pic
8502         compiler_flags=-v
8503         linker_flags=-v
8504         verstring=
8505         output_objdir=.
8506         libname=conftest
8507         lt_save_allow_undefined_flag=$allow_undefined_flag
8508         allow_undefined_flag=
8509         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8510   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8511   ac_status=$?
8512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8513   (exit $ac_status); }
8514         then
8515           archive_cmds_need_lc=no
8516         else
8517           archive_cmds_need_lc=yes
8518         fi
8519         allow_undefined_flag=$lt_save_allow_undefined_flag
8520       else
8521         cat conftest.err 1>&5
8522       fi
8523       $rm conftest*
8524       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8525 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8526       ;;
8527     esac
8528   fi
8529   ;;
8530 esac
8531
8532 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8533 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8534 library_names_spec=
8535 libname_spec='lib$name'
8536 soname_spec=
8537 shrext_cmds=".so"
8538 postinstall_cmds=
8539 postuninstall_cmds=
8540 finish_cmds=
8541 finish_eval=
8542 shlibpath_var=
8543 shlibpath_overrides_runpath=unknown
8544 version_type=none
8545 dynamic_linker="$host_os ld.so"
8546 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8547
8548 if test "$GCC" = yes; then
8549   case $host_os in
8550     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8551     *) lt_awk_arg="/^libraries:/" ;;
8552   esac
8553   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8554   if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
8555     # if the path contains ";" then we assume it to be the separator
8556     # otherwise default to the standard path separator (i.e. ":") - it is
8557     # assumed that no part of a normal pathname contains ";" but that should
8558     # okay in the real world where ";" in dirpaths is itself problematic.
8559     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8560   else
8561     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8562   fi
8563   # Ok, now we have the path, separated by spaces, we can step through it
8564   # and add multilib dir if necessary.
8565   lt_tmp_lt_search_path_spec=
8566   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8567   for lt_sys_path in $lt_search_path_spec; do
8568     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8569       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8570     else
8571       test -d "$lt_sys_path" && \
8572         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8573     fi
8574   done
8575   lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
8576 BEGIN {RS=" "; FS="/|\n";} {
8577   lt_foo="";
8578   lt_count=0;
8579   for (lt_i = NF; lt_i > 0; lt_i--) {
8580     if ($lt_i != "" && $lt_i != ".") {
8581       if ($lt_i == "..") {
8582         lt_count++;
8583       } else {
8584         if (lt_count == 0) {
8585           lt_foo="/" $lt_i lt_foo;
8586         } else {
8587           lt_count--;
8588         }
8589       }
8590     }
8591   }
8592   if (lt_foo != "") { lt_freq[lt_foo]++; }
8593   if (lt_freq[lt_foo] == 1) { print lt_foo; }
8594 }'`
8595   sys_lib_search_path_spec=`echo $lt_search_path_spec`
8596 else
8597   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8598 fi
8599 need_lib_prefix=unknown
8600 hardcode_into_libs=no
8601
8602 # when you set need_version to no, make sure it does not cause -set_version
8603 # flags to be left without arguments
8604 need_version=unknown
8605
8606 case $host_os in
8607 aix3*)
8608   version_type=linux
8609   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8610   shlibpath_var=LIBPATH
8611
8612   # AIX 3 has no versioning support, so we append a major version to the name.
8613   soname_spec='${libname}${release}${shared_ext}$major'
8614   ;;
8615
8616 aix4* | aix5*)
8617   version_type=linux
8618   need_lib_prefix=no
8619   need_version=no
8620   hardcode_into_libs=yes
8621   if test "$host_cpu" = ia64; then
8622     # AIX 5 supports IA64
8623     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8624     shlibpath_var=LD_LIBRARY_PATH
8625   else
8626     # With GCC up to 2.95.x, collect2 would create an import file
8627     # for dependence libraries.  The import file would start with
8628     # the line `#! .'.  This would cause the generated library to
8629     # depend on `.', always an invalid library.  This was fixed in
8630     # development snapshots of GCC prior to 3.0.
8631     case $host_os in
8632       aix4 | aix4.[01] | aix4.[01].*)
8633       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8634            echo ' yes '
8635            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8636         :
8637       else
8638         can_build_shared=no
8639       fi
8640       ;;
8641     esac
8642     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8643     # soname into executable. Probably we can add versioning support to
8644     # collect2, so additional links can be useful in future.
8645     if test "$aix_use_runtimelinking" = yes; then
8646       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8647       # instead of lib<name>.a to let people know that these are not
8648       # typical AIX shared libraries.
8649       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8650     else
8651       # We preserve .a as extension for shared libraries through AIX4.2
8652       # and later when we are not doing run time linking.
8653       library_names_spec='${libname}${release}.a $libname.a'
8654       soname_spec='${libname}${release}${shared_ext}$major'
8655     fi
8656     shlibpath_var=LIBPATH
8657   fi
8658   ;;
8659
8660 amigaos*)
8661   library_names_spec='$libname.ixlibrary $libname.a'
8662   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8663   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'
8664   ;;
8665
8666 beos*)
8667   library_names_spec='${libname}${shared_ext}'
8668   dynamic_linker="$host_os ld.so"
8669   shlibpath_var=LIBRARY_PATH
8670   ;;
8671
8672 bsdi[45]*)
8673   version_type=linux
8674   need_version=no
8675   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8676   soname_spec='${libname}${release}${shared_ext}$major'
8677   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8678   shlibpath_var=LD_LIBRARY_PATH
8679   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8680   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8681   # the default ld.so.conf also contains /usr/contrib/lib and
8682   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8683   # libtool to hard-code these into programs
8684   ;;
8685
8686 cygwin* | mingw* | pw32*)
8687   version_type=windows
8688   shrext_cmds=".dll"
8689   need_version=no
8690   need_lib_prefix=no
8691
8692   case $GCC,$host_os in
8693   yes,cygwin* | yes,mingw* | yes,pw32*)
8694     library_names_spec='$libname.dll.a'
8695     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8696     postinstall_cmds='base_file=`basename \${file}`~
8697       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8698       dldir=$destdir/`dirname \$dlpath`~
8699       test -d \$dldir || mkdir -p \$dldir~
8700       $install_prog $dir/$dlname \$dldir/$dlname~
8701       chmod a+x \$dldir/$dlname'
8702     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8703       dlpath=$dir/\$dldll~
8704        $rm \$dlpath'
8705     shlibpath_overrides_runpath=yes
8706
8707     case $host_os in
8708     cygwin*)
8709       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8710       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8711       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8712       ;;
8713     mingw*)
8714       # MinGW DLLs use traditional 'lib' prefix
8715       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8716       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8717       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8718         # It is most probably a Windows format PATH printed by
8719         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8720         # path with ; separators, and with drive letters. We can handle the
8721         # drive letters (cygwin fileutils understands them), so leave them,
8722         # especially as we might pass files found there to a mingw objdump,
8723         # which wouldn't understand a cygwinified path. Ahh.
8724         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8725       else
8726         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8727       fi
8728       ;;
8729     pw32*)
8730       # pw32 DLLs use 'pw' prefix rather than 'lib'
8731       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8732       ;;
8733     esac
8734     ;;
8735
8736   *)
8737     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8738     ;;
8739   esac
8740   dynamic_linker='Win32 ld.exe'
8741   # FIXME: first we should search . and the directory the executable is in
8742   shlibpath_var=PATH
8743   ;;
8744
8745 darwin* | rhapsody*)
8746   dynamic_linker="$host_os dyld"
8747   version_type=darwin
8748   need_lib_prefix=no
8749   need_version=no
8750   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8751   soname_spec='${libname}${release}${major}$shared_ext'
8752   shlibpath_overrides_runpath=yes
8753   shlibpath_var=DYLD_LIBRARY_PATH
8754   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8755
8756   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8757   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8758   ;;
8759
8760 dgux*)
8761   version_type=linux
8762   need_lib_prefix=no
8763   need_version=no
8764   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8765   soname_spec='${libname}${release}${shared_ext}$major'
8766   shlibpath_var=LD_LIBRARY_PATH
8767   ;;
8768
8769 freebsd1*)
8770   dynamic_linker=no
8771   ;;
8772
8773 freebsd* | dragonfly*)
8774   # DragonFly does not have aout.  When/if they implement a new
8775   # versioning mechanism, adjust this.
8776   if test -x /usr/bin/objformat; then
8777     objformat=`/usr/bin/objformat`
8778   else
8779     case $host_os in
8780     freebsd[123]*) objformat=aout ;;
8781     *) objformat=elf ;;
8782     esac
8783   fi
8784   version_type=freebsd-$objformat
8785   case $version_type in
8786     freebsd-elf*)
8787       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8788       need_version=no
8789       need_lib_prefix=no
8790       ;;
8791     freebsd-*)
8792       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8793       need_version=yes
8794       ;;
8795   esac
8796   shlibpath_var=LD_LIBRARY_PATH
8797   case $host_os in
8798   freebsd2*)
8799     shlibpath_overrides_runpath=yes
8800     ;;
8801   freebsd3.[01]* | freebsdelf3.[01]*)
8802     shlibpath_overrides_runpath=yes
8803     hardcode_into_libs=yes
8804     ;;
8805   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8806   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8807     shlibpath_overrides_runpath=no
8808     hardcode_into_libs=yes
8809     ;;
8810   *) # from 4.6 on, and DragonFly
8811     shlibpath_overrides_runpath=yes
8812     hardcode_into_libs=yes
8813     ;;
8814   esac
8815   ;;
8816
8817 gnu*)
8818   version_type=linux
8819   need_lib_prefix=no
8820   need_version=no
8821   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8822   soname_spec='${libname}${release}${shared_ext}$major'
8823   shlibpath_var=LD_LIBRARY_PATH
8824   hardcode_into_libs=yes
8825   ;;
8826
8827 hpux9* | hpux10* | hpux11*)
8828   # Give a soname corresponding to the major version so that dld.sl refuses to
8829   # link against other versions.
8830   version_type=sunos
8831   need_lib_prefix=no
8832   need_version=no
8833   case $host_cpu in
8834   ia64*)
8835     shrext_cmds='.so'
8836     hardcode_into_libs=yes
8837     dynamic_linker="$host_os dld.so"
8838     shlibpath_var=LD_LIBRARY_PATH
8839     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8840     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8841     soname_spec='${libname}${release}${shared_ext}$major'
8842     if test "X$HPUX_IA64_MODE" = X32; then
8843       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8844     else
8845       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8846     fi
8847     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8848     ;;
8849    hppa*64*)
8850      shrext_cmds='.sl'
8851      hardcode_into_libs=yes
8852      dynamic_linker="$host_os dld.sl"
8853      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8854      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8855      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8856      soname_spec='${libname}${release}${shared_ext}$major'
8857      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8858      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8859      ;;
8860    *)
8861     shrext_cmds='.sl'
8862     dynamic_linker="$host_os dld.sl"
8863     shlibpath_var=SHLIB_PATH
8864     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8865     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8866     soname_spec='${libname}${release}${shared_ext}$major'
8867     ;;
8868   esac
8869   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8870   postinstall_cmds='chmod 555 $lib'
8871   ;;
8872
8873 interix[3-9]*)
8874   version_type=linux
8875   need_lib_prefix=no
8876   need_version=no
8877   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8878   soname_spec='${libname}${release}${shared_ext}$major'
8879   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8880   shlibpath_var=LD_LIBRARY_PATH
8881   shlibpath_overrides_runpath=no
8882   hardcode_into_libs=yes
8883   ;;
8884
8885 irix5* | irix6* | nonstopux*)
8886   case $host_os in
8887     nonstopux*) version_type=nonstopux ;;
8888     *)
8889         if test "$lt_cv_prog_gnu_ld" = yes; then
8890                 version_type=linux
8891         else
8892                 version_type=irix
8893         fi ;;
8894   esac
8895   need_lib_prefix=no
8896   need_version=no
8897   soname_spec='${libname}${release}${shared_ext}$major'
8898   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8899   case $host_os in
8900   irix5* | nonstopux*)
8901     libsuff= shlibsuff=
8902     ;;
8903   *)
8904     case $LD in # libtool.m4 will add one of these switches to LD
8905     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8906       libsuff= shlibsuff= libmagic=32-bit;;
8907     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8908       libsuff=32 shlibsuff=N32 libmagic=N32;;
8909     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8910       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8911     *) libsuff= shlibsuff= libmagic=never-match;;
8912     esac
8913     ;;
8914   esac
8915   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8916   shlibpath_overrides_runpath=no
8917   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8918   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8919   hardcode_into_libs=yes
8920   ;;
8921
8922 # No shared lib support for Linux oldld, aout, or coff.
8923 linux*oldld* | linux*aout* | linux*coff*)
8924   dynamic_linker=no
8925   ;;
8926
8927 # This must be Linux ELF.
8928 linux* | k*bsd*-gnu)
8929   version_type=linux
8930   need_lib_prefix=no
8931   need_version=no
8932   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8933   soname_spec='${libname}${release}${shared_ext}$major'
8934   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8935   shlibpath_var=LD_LIBRARY_PATH
8936   shlibpath_overrides_runpath=no
8937   # This implies no fast_install, which is unacceptable.
8938   # Some rework will be needed to allow for fast_install
8939   # before this can be enabled.
8940   hardcode_into_libs=yes
8941
8942   # find out which ABI we are using
8943   libsuff=
8944   case "$host_cpu" in
8945   x86_64*|s390x*|powerpc64*)
8946     echo '#line 8946 "configure"' > conftest.$ac_ext
8947     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8948   (eval $ac_compile) 2>&5
8949   ac_status=$?
8950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8951   (exit $ac_status); }; then
8952       case `/usr/bin/file conftest.$ac_objext` in
8953       *64-bit*)
8954         libsuff=64
8955         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
8956         ;;
8957       esac
8958     fi
8959     rm -rf conftest*
8960     ;;
8961   esac
8962
8963   # Append ld.so.conf contents to the search path
8964   if test -f /etc/ld.so.conf; then
8965     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8966     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
8967   fi
8968
8969   # We used to test for /lib/ld.so.1 and disable shared libraries on
8970   # powerpc, because MkLinux only supported shared libraries with the
8971   # GNU dynamic linker.  Since this was broken with cross compilers,
8972   # most powerpc-linux boxes support dynamic linking these days and
8973   # people can always --disable-shared, the test was removed, and we
8974   # assume the GNU/Linux dynamic linker is in use.
8975   dynamic_linker='GNU/Linux ld.so'
8976   ;;
8977
8978 netbsd*)
8979   version_type=sunos
8980   need_lib_prefix=no
8981   need_version=no
8982   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8983     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8984     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8985     dynamic_linker='NetBSD (a.out) ld.so'
8986   else
8987     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8988     soname_spec='${libname}${release}${shared_ext}$major'
8989     dynamic_linker='NetBSD ld.elf_so'
8990   fi
8991   shlibpath_var=LD_LIBRARY_PATH
8992   shlibpath_overrides_runpath=yes
8993   hardcode_into_libs=yes
8994   ;;
8995
8996 newsos6)
8997   version_type=linux
8998   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8999   shlibpath_var=LD_LIBRARY_PATH
9000   shlibpath_overrides_runpath=yes
9001   ;;
9002
9003 nto-qnx*)
9004   version_type=linux
9005   need_lib_prefix=no
9006   need_version=no
9007   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9008   soname_spec='${libname}${release}${shared_ext}$major'
9009   shlibpath_var=LD_LIBRARY_PATH
9010   shlibpath_overrides_runpath=yes
9011   ;;
9012
9013 openbsd*)
9014   version_type=sunos
9015   sys_lib_dlsearch_path_spec="/usr/lib"
9016   need_lib_prefix=no
9017   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9018   case $host_os in
9019     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9020     *)                         need_version=no  ;;
9021   esac
9022   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9023   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9024   shlibpath_var=LD_LIBRARY_PATH
9025   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9026     case $host_os in
9027       openbsd2.[89] | openbsd2.[89].*)
9028         shlibpath_overrides_runpath=no
9029         ;;
9030       *)
9031         shlibpath_overrides_runpath=yes
9032         ;;
9033       esac
9034   else
9035     shlibpath_overrides_runpath=yes
9036   fi
9037   ;;
9038
9039 os2*)
9040   libname_spec='$name'
9041   shrext_cmds=".dll"
9042   need_lib_prefix=no
9043   library_names_spec='$libname${shared_ext} $libname.a'
9044   dynamic_linker='OS/2 ld.exe'
9045   shlibpath_var=LIBPATH
9046   ;;
9047
9048 osf3* | osf4* | osf5*)
9049   version_type=osf
9050   need_lib_prefix=no
9051   need_version=no
9052   soname_spec='${libname}${release}${shared_ext}$major'
9053   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9054   shlibpath_var=LD_LIBRARY_PATH
9055   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9056   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9057   ;;
9058
9059 rdos*)
9060   dynamic_linker=no
9061   ;;
9062
9063 solaris*)
9064   version_type=linux
9065   need_lib_prefix=no
9066   need_version=no
9067   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9068   soname_spec='${libname}${release}${shared_ext}$major'
9069   shlibpath_var=LD_LIBRARY_PATH
9070   shlibpath_overrides_runpath=yes
9071   hardcode_into_libs=yes
9072   # ldd complains unless libraries are executable
9073   postinstall_cmds='chmod +x $lib'
9074   ;;
9075
9076 sunos4*)
9077   version_type=sunos
9078   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9079   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9080   shlibpath_var=LD_LIBRARY_PATH
9081   shlibpath_overrides_runpath=yes
9082   if test "$with_gnu_ld" = yes; then
9083     need_lib_prefix=no
9084   fi
9085   need_version=yes
9086   ;;
9087
9088 sysv4 | sysv4.3*)
9089   version_type=linux
9090   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9091   soname_spec='${libname}${release}${shared_ext}$major'
9092   shlibpath_var=LD_LIBRARY_PATH
9093   case $host_vendor in
9094     sni)
9095       shlibpath_overrides_runpath=no
9096       need_lib_prefix=no
9097       export_dynamic_flag_spec='${wl}-Blargedynsym'
9098       runpath_var=LD_RUN_PATH
9099       ;;
9100     siemens)
9101       need_lib_prefix=no
9102       ;;
9103     motorola)
9104       need_lib_prefix=no
9105       need_version=no
9106       shlibpath_overrides_runpath=no
9107       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9108       ;;
9109   esac
9110   ;;
9111
9112 sysv4*MP*)
9113   if test -d /usr/nec ;then
9114     version_type=linux
9115     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9116     soname_spec='$libname${shared_ext}.$major'
9117     shlibpath_var=LD_LIBRARY_PATH
9118   fi
9119   ;;
9120
9121 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9122   version_type=freebsd-elf
9123   need_lib_prefix=no
9124   need_version=no
9125   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9126   soname_spec='${libname}${release}${shared_ext}$major'
9127   shlibpath_var=LD_LIBRARY_PATH
9128   hardcode_into_libs=yes
9129   if test "$with_gnu_ld" = yes; then
9130     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9131     shlibpath_overrides_runpath=no
9132   else
9133     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9134     shlibpath_overrides_runpath=yes
9135     case $host_os in
9136       sco3.2v5*)
9137         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9138         ;;
9139     esac
9140   fi
9141   sys_lib_dlsearch_path_spec='/usr/lib'
9142   ;;
9143
9144 uts4*)
9145   version_type=linux
9146   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9147   soname_spec='${libname}${release}${shared_ext}$major'
9148   shlibpath_var=LD_LIBRARY_PATH
9149   ;;
9150
9151 *)
9152   dynamic_linker=no
9153   ;;
9154 esac
9155 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9156 echo "${ECHO_T}$dynamic_linker" >&6; }
9157 test "$dynamic_linker" = no && can_build_shared=no
9158
9159 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9160 if test "$GCC" = yes; then
9161   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9162 fi
9163
9164 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9165 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9166 hardcode_action=
9167 if test -n "$hardcode_libdir_flag_spec" || \
9168    test -n "$runpath_var" || \
9169    test "X$hardcode_automatic" = "Xyes" ; then
9170
9171   # We can hardcode non-existant directories.
9172   if test "$hardcode_direct" != no &&
9173      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9174      # have to relink, otherwise we might link with an installed library
9175      # when we should be linking with a yet-to-be-installed one
9176      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9177      test "$hardcode_minus_L" != no; then
9178     # Linking always hardcodes the temporary library directory.
9179     hardcode_action=relink
9180   else
9181     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9182     hardcode_action=immediate
9183   fi
9184 else
9185   # We cannot hardcode anything, or else we can only hardcode existing
9186   # directories.
9187   hardcode_action=unsupported
9188 fi
9189 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9190 echo "${ECHO_T}$hardcode_action" >&6; }
9191
9192 if test "$hardcode_action" = relink; then
9193   # Fast installation is not supported
9194   enable_fast_install=no
9195 elif test "$shlibpath_overrides_runpath" = yes ||
9196      test "$enable_shared" = no; then
9197   # Fast installation is not necessary
9198   enable_fast_install=needless
9199 fi
9200
9201 striplib=
9202 old_striplib=
9203 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9204 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9205 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9206   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9207   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9208   { echo "$as_me:$LINENO: result: yes" >&5
9209 echo "${ECHO_T}yes" >&6; }
9210 else
9211 # FIXME - insert some real tests, host_os isn't really good enough
9212   case $host_os in
9213    darwin*)
9214        if test -n "$STRIP" ; then
9215          striplib="$STRIP -x"
9216          old_striplib="$STRIP -S"
9217          { echo "$as_me:$LINENO: result: yes" >&5
9218 echo "${ECHO_T}yes" >&6; }
9219        else
9220   { echo "$as_me:$LINENO: result: no" >&5
9221 echo "${ECHO_T}no" >&6; }
9222 fi
9223        ;;
9224    *)
9225   { echo "$as_me:$LINENO: result: no" >&5
9226 echo "${ECHO_T}no" >&6; }
9227     ;;
9228   esac
9229 fi
9230
9231 if test "x$enable_dlopen" != xyes; then
9232   enable_dlopen=unknown
9233   enable_dlopen_self=unknown
9234   enable_dlopen_self_static=unknown
9235 else
9236   lt_cv_dlopen=no
9237   lt_cv_dlopen_libs=
9238
9239   case $host_os in
9240   beos*)
9241     lt_cv_dlopen="load_add_on"
9242     lt_cv_dlopen_libs=
9243     lt_cv_dlopen_self=yes
9244     ;;
9245
9246   mingw* | pw32*)
9247     lt_cv_dlopen="LoadLibrary"
9248     lt_cv_dlopen_libs=
9249    ;;
9250
9251   cygwin*)
9252     lt_cv_dlopen="dlopen"
9253     lt_cv_dlopen_libs=
9254    ;;
9255
9256   darwin*)
9257   # if libdl is installed we need to link against it
9258     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9259 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9260 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9261   echo $ECHO_N "(cached) $ECHO_C" >&6
9262 else
9263   ac_check_lib_save_LIBS=$LIBS
9264 LIBS="-ldl  $LIBS"
9265 cat >conftest.$ac_ext <<_ACEOF
9266 /* confdefs.h.  */
9267 _ACEOF
9268 cat confdefs.h >>conftest.$ac_ext
9269 cat >>conftest.$ac_ext <<_ACEOF
9270 /* end confdefs.h.  */
9271
9272 /* Override any GCC internal prototype to avoid an error.
9273    Use char because int might match the return type of a GCC
9274    builtin and then its argument prototype would still apply.  */
9275 #ifdef __cplusplus
9276 extern "C"
9277 #endif
9278 char dlopen ();
9279 int
9280 main ()
9281 {
9282 return dlopen ();
9283   ;
9284   return 0;
9285 }
9286 _ACEOF
9287 rm -f conftest.$ac_objext conftest$ac_exeext
9288 if { (ac_try="$ac_link"
9289 case "(($ac_try" in
9290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9291   *) ac_try_echo=$ac_try;;
9292 esac
9293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9294   (eval "$ac_link") 2>conftest.er1
9295   ac_status=$?
9296   grep -v '^ *+' conftest.er1 >conftest.err
9297   rm -f conftest.er1
9298   cat conftest.err >&5
9299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9300   (exit $ac_status); } && {
9301          test -z "$ac_c_werror_flag" ||
9302          test ! -s conftest.err
9303        } && test -s conftest$ac_exeext &&
9304        $as_test_x conftest$ac_exeext; then
9305   ac_cv_lib_dl_dlopen=yes
9306 else
9307   echo "$as_me: failed program was:" >&5
9308 sed 's/^/| /' conftest.$ac_ext >&5
9309
9310         ac_cv_lib_dl_dlopen=no
9311 fi
9312
9313 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9314       conftest$ac_exeext conftest.$ac_ext
9315 LIBS=$ac_check_lib_save_LIBS
9316 fi
9317 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9318 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9319 if test $ac_cv_lib_dl_dlopen = yes; then
9320   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9321 else
9322
9323     lt_cv_dlopen="dyld"
9324     lt_cv_dlopen_libs=
9325     lt_cv_dlopen_self=yes
9326
9327 fi
9328
9329    ;;
9330
9331   *)
9332     { echo "$as_me:$LINENO: checking for shl_load" >&5
9333 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9334 if test "${ac_cv_func_shl_load+set}" = set; then
9335   echo $ECHO_N "(cached) $ECHO_C" >&6
9336 else
9337   cat >conftest.$ac_ext <<_ACEOF
9338 /* confdefs.h.  */
9339 _ACEOF
9340 cat confdefs.h >>conftest.$ac_ext
9341 cat >>conftest.$ac_ext <<_ACEOF
9342 /* end confdefs.h.  */
9343 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9344    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9345 #define shl_load innocuous_shl_load
9346
9347 /* System header to define __stub macros and hopefully few prototypes,
9348     which can conflict with char shl_load (); below.
9349     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9350     <limits.h> exists even on freestanding compilers.  */
9351
9352 #ifdef __STDC__
9353 # include <limits.h>
9354 #else
9355 # include <assert.h>
9356 #endif
9357
9358 #undef shl_load
9359
9360 /* Override any GCC internal prototype to avoid an error.
9361    Use char because int might match the return type of a GCC
9362    builtin and then its argument prototype would still apply.  */
9363 #ifdef __cplusplus
9364 extern "C"
9365 #endif
9366 char shl_load ();
9367 /* The GNU C library defines this for functions which it implements
9368     to always fail with ENOSYS.  Some functions are actually named
9369     something starting with __ and the normal name is an alias.  */
9370 #if defined __stub_shl_load || defined __stub___shl_load
9371 choke me
9372 #endif
9373
9374 int
9375 main ()
9376 {
9377 return shl_load ();
9378   ;
9379   return 0;
9380 }
9381 _ACEOF
9382 rm -f conftest.$ac_objext conftest$ac_exeext
9383 if { (ac_try="$ac_link"
9384 case "(($ac_try" in
9385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9386   *) ac_try_echo=$ac_try;;
9387 esac
9388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9389   (eval "$ac_link") 2>conftest.er1
9390   ac_status=$?
9391   grep -v '^ *+' conftest.er1 >conftest.err
9392   rm -f conftest.er1
9393   cat conftest.err >&5
9394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9395   (exit $ac_status); } && {
9396          test -z "$ac_c_werror_flag" ||
9397          test ! -s conftest.err
9398        } && test -s conftest$ac_exeext &&
9399        $as_test_x conftest$ac_exeext; then
9400   ac_cv_func_shl_load=yes
9401 else
9402   echo "$as_me: failed program was:" >&5
9403 sed 's/^/| /' conftest.$ac_ext >&5
9404
9405         ac_cv_func_shl_load=no
9406 fi
9407
9408 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9409       conftest$ac_exeext conftest.$ac_ext
9410 fi
9411 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9412 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9413 if test $ac_cv_func_shl_load = yes; then
9414   lt_cv_dlopen="shl_load"
9415 else
9416   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9417 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9418 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9419   echo $ECHO_N "(cached) $ECHO_C" >&6
9420 else
9421   ac_check_lib_save_LIBS=$LIBS
9422 LIBS="-ldld  $LIBS"
9423 cat >conftest.$ac_ext <<_ACEOF
9424 /* confdefs.h.  */
9425 _ACEOF
9426 cat confdefs.h >>conftest.$ac_ext
9427 cat >>conftest.$ac_ext <<_ACEOF
9428 /* end confdefs.h.  */
9429
9430 /* Override any GCC internal prototype to avoid an error.
9431    Use char because int might match the return type of a GCC
9432    builtin and then its argument prototype would still apply.  */
9433 #ifdef __cplusplus
9434 extern "C"
9435 #endif
9436 char shl_load ();
9437 int
9438 main ()
9439 {
9440 return shl_load ();
9441   ;
9442   return 0;
9443 }
9444 _ACEOF
9445 rm -f conftest.$ac_objext conftest$ac_exeext
9446 if { (ac_try="$ac_link"
9447 case "(($ac_try" in
9448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9449   *) ac_try_echo=$ac_try;;
9450 esac
9451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9452   (eval "$ac_link") 2>conftest.er1
9453   ac_status=$?
9454   grep -v '^ *+' conftest.er1 >conftest.err
9455   rm -f conftest.er1
9456   cat conftest.err >&5
9457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9458   (exit $ac_status); } && {
9459          test -z "$ac_c_werror_flag" ||
9460          test ! -s conftest.err
9461        } && test -s conftest$ac_exeext &&
9462        $as_test_x conftest$ac_exeext; then
9463   ac_cv_lib_dld_shl_load=yes
9464 else
9465   echo "$as_me: failed program was:" >&5
9466 sed 's/^/| /' conftest.$ac_ext >&5
9467
9468         ac_cv_lib_dld_shl_load=no
9469 fi
9470
9471 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9472       conftest$ac_exeext conftest.$ac_ext
9473 LIBS=$ac_check_lib_save_LIBS
9474 fi
9475 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9476 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9477 if test $ac_cv_lib_dld_shl_load = yes; then
9478   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9479 else
9480   { echo "$as_me:$LINENO: checking for dlopen" >&5
9481 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9482 if test "${ac_cv_func_dlopen+set}" = set; then
9483   echo $ECHO_N "(cached) $ECHO_C" >&6
9484 else
9485   cat >conftest.$ac_ext <<_ACEOF
9486 /* confdefs.h.  */
9487 _ACEOF
9488 cat confdefs.h >>conftest.$ac_ext
9489 cat >>conftest.$ac_ext <<_ACEOF
9490 /* end confdefs.h.  */
9491 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9492    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9493 #define dlopen innocuous_dlopen
9494
9495 /* System header to define __stub macros and hopefully few prototypes,
9496     which can conflict with char dlopen (); below.
9497     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9498     <limits.h> exists even on freestanding compilers.  */
9499
9500 #ifdef __STDC__
9501 # include <limits.h>
9502 #else
9503 # include <assert.h>
9504 #endif
9505
9506 #undef dlopen
9507
9508 /* Override any GCC internal prototype to avoid an error.
9509    Use char because int might match the return type of a GCC
9510    builtin and then its argument prototype would still apply.  */
9511 #ifdef __cplusplus
9512 extern "C"
9513 #endif
9514 char dlopen ();
9515 /* The GNU C library defines this for functions which it implements
9516     to always fail with ENOSYS.  Some functions are actually named
9517     something starting with __ and the normal name is an alias.  */
9518 #if defined __stub_dlopen || defined __stub___dlopen
9519 choke me
9520 #endif
9521
9522 int
9523 main ()
9524 {
9525 return dlopen ();
9526   ;
9527   return 0;
9528 }
9529 _ACEOF
9530 rm -f conftest.$ac_objext conftest$ac_exeext
9531 if { (ac_try="$ac_link"
9532 case "(($ac_try" in
9533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9534   *) ac_try_echo=$ac_try;;
9535 esac
9536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9537   (eval "$ac_link") 2>conftest.er1
9538   ac_status=$?
9539   grep -v '^ *+' conftest.er1 >conftest.err
9540   rm -f conftest.er1
9541   cat conftest.err >&5
9542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9543   (exit $ac_status); } && {
9544          test -z "$ac_c_werror_flag" ||
9545          test ! -s conftest.err
9546        } && test -s conftest$ac_exeext &&
9547        $as_test_x conftest$ac_exeext; then
9548   ac_cv_func_dlopen=yes
9549 else
9550   echo "$as_me: failed program was:" >&5
9551 sed 's/^/| /' conftest.$ac_ext >&5
9552
9553         ac_cv_func_dlopen=no
9554 fi
9555
9556 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9557       conftest$ac_exeext conftest.$ac_ext
9558 fi
9559 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9560 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9561 if test $ac_cv_func_dlopen = yes; then
9562   lt_cv_dlopen="dlopen"
9563 else
9564   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9565 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9566 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9567   echo $ECHO_N "(cached) $ECHO_C" >&6
9568 else
9569   ac_check_lib_save_LIBS=$LIBS
9570 LIBS="-ldl  $LIBS"
9571 cat >conftest.$ac_ext <<_ACEOF
9572 /* confdefs.h.  */
9573 _ACEOF
9574 cat confdefs.h >>conftest.$ac_ext
9575 cat >>conftest.$ac_ext <<_ACEOF
9576 /* end confdefs.h.  */
9577
9578 /* Override any GCC internal prototype to avoid an error.
9579    Use char because int might match the return type of a GCC
9580    builtin and then its argument prototype would still apply.  */
9581 #ifdef __cplusplus
9582 extern "C"
9583 #endif
9584 char dlopen ();
9585 int
9586 main ()
9587 {
9588 return dlopen ();
9589   ;
9590   return 0;
9591 }
9592 _ACEOF
9593 rm -f conftest.$ac_objext conftest$ac_exeext
9594 if { (ac_try="$ac_link"
9595 case "(($ac_try" in
9596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9597   *) ac_try_echo=$ac_try;;
9598 esac
9599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9600   (eval "$ac_link") 2>conftest.er1
9601   ac_status=$?
9602   grep -v '^ *+' conftest.er1 >conftest.err
9603   rm -f conftest.er1
9604   cat conftest.err >&5
9605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9606   (exit $ac_status); } && {
9607          test -z "$ac_c_werror_flag" ||
9608          test ! -s conftest.err
9609        } && test -s conftest$ac_exeext &&
9610        $as_test_x conftest$ac_exeext; then
9611   ac_cv_lib_dl_dlopen=yes
9612 else
9613   echo "$as_me: failed program was:" >&5
9614 sed 's/^/| /' conftest.$ac_ext >&5
9615
9616         ac_cv_lib_dl_dlopen=no
9617 fi
9618
9619 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9620       conftest$ac_exeext conftest.$ac_ext
9621 LIBS=$ac_check_lib_save_LIBS
9622 fi
9623 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9624 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9625 if test $ac_cv_lib_dl_dlopen = yes; then
9626   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9627 else
9628   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9629 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9630 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9631   echo $ECHO_N "(cached) $ECHO_C" >&6
9632 else
9633   ac_check_lib_save_LIBS=$LIBS
9634 LIBS="-lsvld  $LIBS"
9635 cat >conftest.$ac_ext <<_ACEOF
9636 /* confdefs.h.  */
9637 _ACEOF
9638 cat confdefs.h >>conftest.$ac_ext
9639 cat >>conftest.$ac_ext <<_ACEOF
9640 /* end confdefs.h.  */
9641
9642 /* Override any GCC internal prototype to avoid an error.
9643    Use char because int might match the return type of a GCC
9644    builtin and then its argument prototype would still apply.  */
9645 #ifdef __cplusplus
9646 extern "C"
9647 #endif
9648 char dlopen ();
9649 int
9650 main ()
9651 {
9652 return dlopen ();
9653   ;
9654   return 0;
9655 }
9656 _ACEOF
9657 rm -f conftest.$ac_objext conftest$ac_exeext
9658 if { (ac_try="$ac_link"
9659 case "(($ac_try" in
9660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9661   *) ac_try_echo=$ac_try;;
9662 esac
9663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9664   (eval "$ac_link") 2>conftest.er1
9665   ac_status=$?
9666   grep -v '^ *+' conftest.er1 >conftest.err
9667   rm -f conftest.er1
9668   cat conftest.err >&5
9669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9670   (exit $ac_status); } && {
9671          test -z "$ac_c_werror_flag" ||
9672          test ! -s conftest.err
9673        } && test -s conftest$ac_exeext &&
9674        $as_test_x conftest$ac_exeext; then
9675   ac_cv_lib_svld_dlopen=yes
9676 else
9677   echo "$as_me: failed program was:" >&5
9678 sed 's/^/| /' conftest.$ac_ext >&5
9679
9680         ac_cv_lib_svld_dlopen=no
9681 fi
9682
9683 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9684       conftest$ac_exeext conftest.$ac_ext
9685 LIBS=$ac_check_lib_save_LIBS
9686 fi
9687 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9688 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9689 if test $ac_cv_lib_svld_dlopen = yes; then
9690   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9691 else
9692   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9693 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9694 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9695   echo $ECHO_N "(cached) $ECHO_C" >&6
9696 else
9697   ac_check_lib_save_LIBS=$LIBS
9698 LIBS="-ldld  $LIBS"
9699 cat >conftest.$ac_ext <<_ACEOF
9700 /* confdefs.h.  */
9701 _ACEOF
9702 cat confdefs.h >>conftest.$ac_ext
9703 cat >>conftest.$ac_ext <<_ACEOF
9704 /* end confdefs.h.  */
9705
9706 /* Override any GCC internal prototype to avoid an error.
9707    Use char because int might match the return type of a GCC
9708    builtin and then its argument prototype would still apply.  */
9709 #ifdef __cplusplus
9710 extern "C"
9711 #endif
9712 char dld_link ();
9713 int
9714 main ()
9715 {
9716 return dld_link ();
9717   ;
9718   return 0;
9719 }
9720 _ACEOF
9721 rm -f conftest.$ac_objext conftest$ac_exeext
9722 if { (ac_try="$ac_link"
9723 case "(($ac_try" in
9724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9725   *) ac_try_echo=$ac_try;;
9726 esac
9727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9728   (eval "$ac_link") 2>conftest.er1
9729   ac_status=$?
9730   grep -v '^ *+' conftest.er1 >conftest.err
9731   rm -f conftest.er1
9732   cat conftest.err >&5
9733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9734   (exit $ac_status); } && {
9735          test -z "$ac_c_werror_flag" ||
9736          test ! -s conftest.err
9737        } && test -s conftest$ac_exeext &&
9738        $as_test_x conftest$ac_exeext; then
9739   ac_cv_lib_dld_dld_link=yes
9740 else
9741   echo "$as_me: failed program was:" >&5
9742 sed 's/^/| /' conftest.$ac_ext >&5
9743
9744         ac_cv_lib_dld_dld_link=no
9745 fi
9746
9747 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9748       conftest$ac_exeext conftest.$ac_ext
9749 LIBS=$ac_check_lib_save_LIBS
9750 fi
9751 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9752 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9753 if test $ac_cv_lib_dld_dld_link = yes; then
9754   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9755 fi
9756
9757
9758 fi
9759
9760
9761 fi
9762
9763
9764 fi
9765
9766
9767 fi
9768
9769
9770 fi
9771
9772     ;;
9773   esac
9774
9775   if test "x$lt_cv_dlopen" != xno; then
9776     enable_dlopen=yes
9777   else
9778     enable_dlopen=no
9779   fi
9780
9781   case $lt_cv_dlopen in
9782   dlopen)
9783     save_CPPFLAGS="$CPPFLAGS"
9784     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9785
9786     save_LDFLAGS="$LDFLAGS"
9787     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9788
9789     save_LIBS="$LIBS"
9790     LIBS="$lt_cv_dlopen_libs $LIBS"
9791
9792     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9793 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9794 if test "${lt_cv_dlopen_self+set}" = set; then
9795   echo $ECHO_N "(cached) $ECHO_C" >&6
9796 else
9797           if test "$cross_compiling" = yes; then :
9798   lt_cv_dlopen_self=cross
9799 else
9800   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9801   lt_status=$lt_dlunknown
9802   cat > conftest.$ac_ext <<EOF
9803 #line 9803 "configure"
9804 #include "confdefs.h"
9805
9806 #if HAVE_DLFCN_H
9807 #include <dlfcn.h>
9808 #endif
9809
9810 #include <stdio.h>
9811
9812 #ifdef RTLD_GLOBAL
9813 #  define LT_DLGLOBAL           RTLD_GLOBAL
9814 #else
9815 #  ifdef DL_GLOBAL
9816 #    define LT_DLGLOBAL         DL_GLOBAL
9817 #  else
9818 #    define LT_DLGLOBAL         0
9819 #  endif
9820 #endif
9821
9822 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9823    find out it does not work in some platform. */
9824 #ifndef LT_DLLAZY_OR_NOW
9825 #  ifdef RTLD_LAZY
9826 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9827 #  else
9828 #    ifdef DL_LAZY
9829 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9830 #    else
9831 #      ifdef RTLD_NOW
9832 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9833 #      else
9834 #        ifdef DL_NOW
9835 #          define LT_DLLAZY_OR_NOW      DL_NOW
9836 #        else
9837 #          define LT_DLLAZY_OR_NOW      0
9838 #        endif
9839 #      endif
9840 #    endif
9841 #  endif
9842 #endif
9843
9844 #ifdef __cplusplus
9845 extern "C" void exit (int);
9846 #endif
9847
9848 void fnord() { int i=42;}
9849 int main ()
9850 {
9851   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9852   int status = $lt_dlunknown;
9853
9854   if (self)
9855     {
9856       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9857       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9858       /* dlclose (self); */
9859     }
9860   else
9861     puts (dlerror ());
9862
9863     exit (status);
9864 }
9865 EOF
9866   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9867   (eval $ac_link) 2>&5
9868   ac_status=$?
9869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9870   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9871     (./conftest; exit; ) >&5 2>/dev/null
9872     lt_status=$?
9873     case x$lt_status in
9874       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9875       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9876       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9877     esac
9878   else :
9879     # compilation failed
9880     lt_cv_dlopen_self=no
9881   fi
9882 fi
9883 rm -fr conftest*
9884
9885
9886 fi
9887 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9888 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9889
9890     if test "x$lt_cv_dlopen_self" = xyes; then
9891       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9892       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9893 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9894 if test "${lt_cv_dlopen_self_static+set}" = set; then
9895   echo $ECHO_N "(cached) $ECHO_C" >&6
9896 else
9897           if test "$cross_compiling" = yes; then :
9898   lt_cv_dlopen_self_static=cross
9899 else
9900   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9901   lt_status=$lt_dlunknown
9902   cat > conftest.$ac_ext <<EOF
9903 #line 9903 "configure"
9904 #include "confdefs.h"
9905
9906 #if HAVE_DLFCN_H
9907 #include <dlfcn.h>
9908 #endif
9909
9910 #include <stdio.h>
9911
9912 #ifdef RTLD_GLOBAL
9913 #  define LT_DLGLOBAL           RTLD_GLOBAL
9914 #else
9915 #  ifdef DL_GLOBAL
9916 #    define LT_DLGLOBAL         DL_GLOBAL
9917 #  else
9918 #    define LT_DLGLOBAL         0
9919 #  endif
9920 #endif
9921
9922 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9923    find out it does not work in some platform. */
9924 #ifndef LT_DLLAZY_OR_NOW
9925 #  ifdef RTLD_LAZY
9926 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9927 #  else
9928 #    ifdef DL_LAZY
9929 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9930 #    else
9931 #      ifdef RTLD_NOW
9932 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9933 #      else
9934 #        ifdef DL_NOW
9935 #          define LT_DLLAZY_OR_NOW      DL_NOW
9936 #        else
9937 #          define LT_DLLAZY_OR_NOW      0
9938 #        endif
9939 #      endif
9940 #    endif
9941 #  endif
9942 #endif
9943
9944 #ifdef __cplusplus
9945 extern "C" void exit (int);
9946 #endif
9947
9948 void fnord() { int i=42;}
9949 int main ()
9950 {
9951   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9952   int status = $lt_dlunknown;
9953
9954   if (self)
9955     {
9956       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9957       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9958       /* dlclose (self); */
9959     }
9960   else
9961     puts (dlerror ());
9962
9963     exit (status);
9964 }
9965 EOF
9966   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9967   (eval $ac_link) 2>&5
9968   ac_status=$?
9969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9970   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9971     (./conftest; exit; ) >&5 2>/dev/null
9972     lt_status=$?
9973     case x$lt_status in
9974       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9975       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9976       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9977     esac
9978   else :
9979     # compilation failed
9980     lt_cv_dlopen_self_static=no
9981   fi
9982 fi
9983 rm -fr conftest*
9984
9985
9986 fi
9987 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9988 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
9989     fi
9990
9991     CPPFLAGS="$save_CPPFLAGS"
9992     LDFLAGS="$save_LDFLAGS"
9993     LIBS="$save_LIBS"
9994     ;;
9995   esac
9996
9997   case $lt_cv_dlopen_self in
9998   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9999   *) enable_dlopen_self=unknown ;;
10000   esac
10001
10002   case $lt_cv_dlopen_self_static in
10003   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10004   *) enable_dlopen_self_static=unknown ;;
10005   esac
10006 fi
10007
10008
10009 # Report which library types will actually be built
10010 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10011 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10012 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10013 echo "${ECHO_T}$can_build_shared" >&6; }
10014
10015 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10016 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10017 test "$can_build_shared" = "no" && enable_shared=no
10018
10019 # On AIX, shared libraries and static libraries use the same namespace, and
10020 # are all built from PIC.
10021 case $host_os in
10022 aix3*)
10023   test "$enable_shared" = yes && enable_static=no
10024   if test -n "$RANLIB"; then
10025     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10026     postinstall_cmds='$RANLIB $lib'
10027   fi
10028   ;;
10029
10030 aix4* | aix5*)
10031   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10032     test "$enable_shared" = yes && enable_static=no
10033   fi
10034     ;;
10035 esac
10036 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10037 echo "${ECHO_T}$enable_shared" >&6; }
10038
10039 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10040 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10041 # Make sure either enable_shared or enable_static is yes.
10042 test "$enable_shared" = yes || enable_static=yes
10043 { echo "$as_me:$LINENO: result: $enable_static" >&5
10044 echo "${ECHO_T}$enable_static" >&6; }
10045
10046 # The else clause should only fire when bootstrapping the
10047 # libtool distribution, otherwise you forgot to ship ltmain.sh
10048 # with your package, and you will get complaints that there are
10049 # no rules to generate ltmain.sh.
10050 if test -f "$ltmain"; then
10051   # See if we are running on zsh, and set the options which allow our commands through
10052   # without removal of \ escapes.
10053   if test -n "${ZSH_VERSION+set}" ; then
10054     setopt NO_GLOB_SUBST
10055   fi
10056   # Now quote all the things that may contain metacharacters while being
10057   # careful not to overquote the AC_SUBSTed values.  We take copies of the
10058   # variables and quote the copies for generation of the libtool script.
10059   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10060     SED SHELL STRIP \
10061     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10062     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10063     deplibs_check_method reload_flag reload_cmds need_locks \
10064     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10065     lt_cv_sys_global_symbol_to_c_name_address \
10066     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10067     old_postinstall_cmds old_postuninstall_cmds \
10068     compiler \
10069     CC \
10070     LD \
10071     lt_prog_compiler_wl \
10072     lt_prog_compiler_pic \
10073     lt_prog_compiler_static \
10074     lt_prog_compiler_no_builtin_flag \
10075     export_dynamic_flag_spec \
10076     thread_safe_flag_spec \
10077     whole_archive_flag_spec \
10078     enable_shared_with_static_runtimes \
10079     old_archive_cmds \
10080     old_archive_from_new_cmds \
10081     predep_objects \
10082     postdep_objects \
10083     predeps \
10084     postdeps \
10085     compiler_lib_search_path \
10086     archive_cmds \
10087     archive_expsym_cmds \
10088     postinstall_cmds \
10089     postuninstall_cmds \
10090     old_archive_from_expsyms_cmds \
10091     allow_undefined_flag \
10092     no_undefined_flag \
10093     export_symbols_cmds \
10094     hardcode_libdir_flag_spec \
10095     hardcode_libdir_flag_spec_ld \
10096     hardcode_libdir_separator \
10097     hardcode_automatic \
10098     module_cmds \
10099     module_expsym_cmds \
10100     lt_cv_prog_compiler_c_o \
10101     fix_srcfile_path \
10102     exclude_expsyms \
10103     include_expsyms; do
10104
10105     case $var in
10106     old_archive_cmds | \
10107     old_archive_from_new_cmds | \
10108     archive_cmds | \
10109     archive_expsym_cmds | \
10110     module_cmds | \
10111     module_expsym_cmds | \
10112     old_archive_from_expsyms_cmds | \
10113     export_symbols_cmds | \
10114     extract_expsyms_cmds | reload_cmds | finish_cmds | \
10115     postinstall_cmds | postuninstall_cmds | \
10116     old_postinstall_cmds | old_postuninstall_cmds | \
10117     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10118       # Double-quote double-evaled strings.
10119       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10120       ;;
10121     *)
10122       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10123       ;;
10124     esac
10125   done
10126
10127   case $lt_echo in
10128   *'\$0 --fallback-echo"')
10129     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10130     ;;
10131   esac
10132
10133 cfgfile="${ofile}T"
10134   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10135   $rm -f "$cfgfile"
10136   { echo "$as_me:$LINENO: creating $ofile" >&5
10137 echo "$as_me: creating $ofile" >&6;}
10138
10139   cat <<__EOF__ >> "$cfgfile"
10140 #! $SHELL
10141
10142 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10143 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10144 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10145 #
10146 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
10147 # Free Software Foundation, Inc.
10148 #
10149 # This file is part of GNU Libtool:
10150 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10151 #
10152 # This program is free software; you can redistribute it and/or modify
10153 # it under the terms of the GNU General Public License as published by
10154 # the Free Software Foundation; either version 2 of the License, or
10155 # (at your option) any later version.
10156 #
10157 # This program is distributed in the hope that it will be useful, but
10158 # WITHOUT ANY WARRANTY; without even the implied warranty of
10159 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10160 # General Public License for more details.
10161 #
10162 # You should have received a copy of the GNU General Public License
10163 # along with this program; if not, write to the Free Software
10164 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10165 #
10166 # As a special exception to the GNU General Public License, if you
10167 # distribute this file as part of a program that contains a
10168 # configuration script generated by Autoconf, you may include it under
10169 # the same distribution terms that you use for the rest of that program.
10170
10171 # A sed program that does not truncate output.
10172 SED=$lt_SED
10173
10174 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10175 Xsed="$SED -e 1s/^X//"
10176
10177 # The HP-UX ksh and POSIX shell print the target directory to stdout
10178 # if CDPATH is set.
10179 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10180
10181 # The names of the tagged configurations supported by this script.
10182 available_tags=
10183
10184 # ### BEGIN LIBTOOL CONFIG
10185
10186 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10187
10188 # Shell to use when invoking shell scripts.
10189 SHELL=$lt_SHELL
10190
10191 # Whether or not to build shared libraries.
10192 build_libtool_libs=$enable_shared
10193
10194 # Whether or not to build static libraries.
10195 build_old_libs=$enable_static
10196
10197 # Whether or not to add -lc for building shared libraries.
10198 build_libtool_need_lc=$archive_cmds_need_lc
10199
10200 # Whether or not to disallow shared libs when runtime libs are static
10201 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10202
10203 # Whether or not to optimize for fast installation.
10204 fast_install=$enable_fast_install
10205
10206 # The host system.
10207 host_alias=$host_alias
10208 host=$host
10209 host_os=$host_os
10210
10211 # The build system.
10212 build_alias=$build_alias
10213 build=$build
10214 build_os=$build_os
10215
10216 # An echo program that does not interpret backslashes.
10217 echo=$lt_echo
10218
10219 # The archiver.
10220 AR=$lt_AR
10221 AR_FLAGS=$lt_AR_FLAGS
10222
10223 # A C compiler.
10224 LTCC=$lt_LTCC
10225
10226 # LTCC compiler flags.
10227 LTCFLAGS=$lt_LTCFLAGS
10228
10229 # A language-specific compiler.
10230 CC=$lt_compiler
10231
10232 # Is the compiler the GNU C compiler?
10233 with_gcc=$GCC
10234
10235 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
10236 gcc_ver=\`gcc -dumpversion\`
10237
10238 # An ERE matcher.
10239 EGREP=$lt_EGREP
10240
10241 # The linker used to build libraries.
10242 LD=$lt_LD
10243
10244 # Whether we need hard or soft links.
10245 LN_S=$lt_LN_S
10246
10247 # A BSD-compatible nm program.
10248 NM=$lt_NM
10249
10250 # A symbol stripping program
10251 STRIP=$lt_STRIP
10252
10253 # Used to examine libraries when file_magic_cmd begins "file"
10254 MAGIC_CMD=$MAGIC_CMD
10255
10256 # Used on cygwin: DLL creation program.
10257 DLLTOOL="$DLLTOOL"
10258
10259 # Used on cygwin: object dumper.
10260 OBJDUMP="$OBJDUMP"
10261
10262 # Used on cygwin: assembler.
10263 AS="$AS"
10264
10265 # The name of the directory that contains temporary libtool files.
10266 objdir=$objdir
10267
10268 # How to create reloadable object files.
10269 reload_flag=$lt_reload_flag
10270 reload_cmds=$lt_reload_cmds
10271
10272 # How to pass a linker flag through the compiler.
10273 wl=$lt_lt_prog_compiler_wl
10274
10275 # Object file suffix (normally "o").
10276 objext="$ac_objext"
10277
10278 # Old archive suffix (normally "a").
10279 libext="$libext"
10280
10281 # Shared library suffix (normally ".so").
10282 shrext_cmds='$shrext_cmds'
10283
10284 # Executable file suffix (normally "").
10285 exeext="$exeext"
10286
10287 # Additional compiler flags for building library objects.
10288 pic_flag=$lt_lt_prog_compiler_pic
10289 pic_mode=$pic_mode
10290
10291 # What is the maximum length of a command?
10292 max_cmd_len=$lt_cv_sys_max_cmd_len
10293
10294 # Does compiler simultaneously support -c and -o options?
10295 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10296
10297 # Must we lock files when doing compilation?
10298 need_locks=$lt_need_locks
10299
10300 # Do we need the lib prefix for modules?
10301 need_lib_prefix=$need_lib_prefix
10302
10303 # Do we need a version for libraries?
10304 need_version=$need_version
10305
10306 # Whether dlopen is supported.
10307 dlopen_support=$enable_dlopen
10308
10309 # Whether dlopen of programs is supported.
10310 dlopen_self=$enable_dlopen_self
10311
10312 # Whether dlopen of statically linked programs is supported.
10313 dlopen_self_static=$enable_dlopen_self_static
10314
10315 # Compiler flag to prevent dynamic linking.
10316 link_static_flag=$lt_lt_prog_compiler_static
10317
10318 # Compiler flag to turn off builtin functions.
10319 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10320
10321 # Compiler flag to allow reflexive dlopens.
10322 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10323
10324 # Compiler flag to generate shared objects directly from archives.
10325 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10326
10327 # Compiler flag to generate thread-safe objects.
10328 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10329
10330 # Library versioning type.
10331 version_type=$version_type
10332
10333 # Format of library name prefix.
10334 libname_spec=$lt_libname_spec
10335
10336 # List of archive names.  First name is the real one, the rest are links.
10337 # The last name is the one that the linker finds with -lNAME.
10338 library_names_spec=$lt_library_names_spec
10339
10340 # The coded name of the library, if different from the real name.
10341 soname_spec=$lt_soname_spec
10342
10343 # Commands used to build and install an old-style archive.
10344 RANLIB=$lt_RANLIB
10345 old_archive_cmds=$lt_old_archive_cmds
10346 old_postinstall_cmds=$lt_old_postinstall_cmds
10347 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10348
10349 # Create an old-style archive from a shared archive.
10350 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10351
10352 # Create a temporary old-style archive to link instead of a shared archive.
10353 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10354
10355 # Commands used to build and install a shared archive.
10356 archive_cmds=$lt_archive_cmds
10357 archive_expsym_cmds=$lt_archive_expsym_cmds
10358 postinstall_cmds=$lt_postinstall_cmds
10359 postuninstall_cmds=$lt_postuninstall_cmds
10360
10361 # Commands used to build a loadable module (assumed same as above if empty)
10362 module_cmds=$lt_module_cmds
10363 module_expsym_cmds=$lt_module_expsym_cmds
10364
10365 # Commands to strip libraries.
10366 old_striplib=$lt_old_striplib
10367 striplib=$lt_striplib
10368
10369 # Dependencies to place before the objects being linked to create a
10370 # shared library.
10371 predep_objects=\`echo $lt_predep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
10372
10373 # Dependencies to place after the objects being linked to create a
10374 # shared library.
10375 postdep_objects=\`echo $lt_postdep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
10376
10377 # Dependencies to place before the objects being linked to create a
10378 # shared library.
10379 predeps=$lt_predeps
10380
10381 # Dependencies to place after the objects being linked to create a
10382 # shared library.
10383 postdeps=$lt_postdeps
10384
10385 # The library search path used internally by the compiler when linking
10386 # a shared library.
10387 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
10388
10389 # Method to check whether dependent libraries are shared objects.
10390 deplibs_check_method=$lt_deplibs_check_method
10391
10392 # Command to use when deplibs_check_method == file_magic.
10393 file_magic_cmd=$lt_file_magic_cmd
10394
10395 # Flag that allows shared libraries with undefined symbols to be built.
10396 allow_undefined_flag=$lt_allow_undefined_flag
10397
10398 # Flag that forces no undefined symbols.
10399 no_undefined_flag=$lt_no_undefined_flag
10400
10401 # Commands used to finish a libtool library installation in a directory.
10402 finish_cmds=$lt_finish_cmds
10403
10404 # Same as above, but a single script fragment to be evaled but not shown.
10405 finish_eval=$lt_finish_eval
10406
10407 # Take the output of nm and produce a listing of raw symbols and C names.
10408 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10409
10410 # Transform the output of nm in a proper C declaration
10411 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10412
10413 # Transform the output of nm in a C name address pair
10414 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10415
10416 # This is the shared library runtime path variable.
10417 runpath_var=$runpath_var
10418
10419 # This is the shared library path variable.
10420 shlibpath_var=$shlibpath_var
10421
10422 # Is shlibpath searched before the hard-coded library search path?
10423 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10424
10425 # How to hardcode a shared library path into an executable.
10426 hardcode_action=$hardcode_action
10427
10428 # Whether we should hardcode library paths into libraries.
10429 hardcode_into_libs=$hardcode_into_libs
10430
10431 # Flag to hardcode \$libdir into a binary during linking.
10432 # This must work even if \$libdir does not exist.
10433 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10434
10435 # If ld is used when linking, flag to hardcode \$libdir into
10436 # a binary during linking. This must work even if \$libdir does
10437 # not exist.
10438 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10439
10440 # Whether we need a single -rpath flag with a separated argument.
10441 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10442
10443 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10444 # resulting binary.
10445 hardcode_direct=$hardcode_direct
10446
10447 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10448 # resulting binary.
10449 hardcode_minus_L=$hardcode_minus_L
10450
10451 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10452 # the resulting binary.
10453 hardcode_shlibpath_var=$hardcode_shlibpath_var
10454
10455 # Set to yes if building a shared library automatically hardcodes DIR into the library
10456 # and all subsequent libraries and executables linked against it.
10457 hardcode_automatic=$hardcode_automatic
10458
10459 # Variables whose values should be saved in libtool wrapper scripts and
10460 # restored at relink time.
10461 variables_saved_for_relink="$variables_saved_for_relink"
10462
10463 # Whether libtool must link a program against all its dependency libraries.
10464 link_all_deplibs=$link_all_deplibs
10465
10466 # Compile-time system search path for libraries
10467 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
10468
10469 # Run-time system search path for libraries
10470 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10471
10472 # Fix the shell variable \$srcfile for the compiler.
10473 fix_srcfile_path=$lt_fix_srcfile_path
10474
10475 # Set to yes if exported symbols are required.
10476 always_export_symbols=$always_export_symbols
10477
10478 # The commands to list exported symbols.
10479 export_symbols_cmds=$lt_export_symbols_cmds
10480
10481 # The commands to extract the exported symbol list from a shared archive.
10482 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10483
10484 # Symbols that should not be listed in the preloaded symbols.
10485 exclude_expsyms=$lt_exclude_expsyms
10486
10487 # Symbols that must always be exported.
10488 include_expsyms=$lt_include_expsyms
10489
10490 # ### END LIBTOOL CONFIG
10491
10492 __EOF__
10493
10494
10495   case $host_os in
10496   aix3*)
10497     cat <<\EOF >> "$cfgfile"
10498
10499 # AIX sometimes has problems with the GCC collect2 program.  For some
10500 # reason, if we set the COLLECT_NAMES environment variable, the problems
10501 # vanish in a puff of smoke.
10502 if test "X${COLLECT_NAMES+set}" != Xset; then
10503   COLLECT_NAMES=
10504   export COLLECT_NAMES
10505 fi
10506 EOF
10507     ;;
10508   esac
10509
10510   # We use sed instead of cat because bash on DJGPP gets confused if
10511   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10512   # text mode, it properly converts lines to CR/LF.  This bash problem
10513   # is reportedly fixed, but why not run on old versions too?
10514   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10515
10516   mv -f "$cfgfile" "$ofile" || \
10517     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10518   chmod +x "$ofile"
10519
10520 else
10521   # If there is no Makefile yet, we rely on a make rule to execute
10522   # `config.status --recheck' to rerun these tests and create the
10523   # libtool script then.
10524   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10525   if test -f "$ltmain_in"; then
10526     test -f Makefile && make "$ltmain"
10527   fi
10528 fi
10529
10530
10531 ac_ext=c
10532 ac_cpp='$CPP $CPPFLAGS'
10533 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10534 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10535 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10536
10537 CC="$lt_save_CC"
10538
10539
10540 # Check whether --with-tags was given.
10541 if test "${with_tags+set}" = set; then
10542   withval=$with_tags; tagnames="$withval"
10543 fi
10544
10545
10546 if test -f "$ltmain" && test -n "$tagnames"; then
10547   if test ! -f "${ofile}"; then
10548     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10549 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10550   fi
10551
10552   if test -z "$LTCC"; then
10553     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10554     if test -z "$LTCC"; then
10555       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10556 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10557     else
10558       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10559 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10560     fi
10561   fi
10562   if test -z "$LTCFLAGS"; then
10563     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10564   fi
10565
10566   # Extract list of available tagged configurations in $ofile.
10567   # Note that this assumes the entire list is on one line.
10568   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10569
10570   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10571   for tagname in $tagnames; do
10572     IFS="$lt_save_ifs"
10573     # Check whether tagname contains only valid characters
10574     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10575     "") ;;
10576     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10577 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10578    { (exit 1); exit 1; }; }
10579         ;;
10580     esac
10581
10582     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10583     then
10584       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10585 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10586    { (exit 1); exit 1; }; }
10587     fi
10588
10589     # Update the list of available tags.
10590     if test -n "$tagname"; then
10591       echo appending configuration tag \"$tagname\" to $ofile
10592
10593       case $tagname in
10594       CXX)
10595         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10596             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10597             (test "X$CXX" != "Xg++"))) ; then
10598           ac_ext=cpp
10599 ac_cpp='$CXXCPP $CPPFLAGS'
10600 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10601 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10602 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10603
10604
10605
10606
10607 archive_cmds_need_lc_CXX=no
10608 allow_undefined_flag_CXX=
10609 always_export_symbols_CXX=no
10610 archive_expsym_cmds_CXX=
10611 export_dynamic_flag_spec_CXX=
10612 hardcode_direct_CXX=no
10613 hardcode_libdir_flag_spec_CXX=
10614 hardcode_libdir_flag_spec_ld_CXX=
10615 hardcode_libdir_separator_CXX=
10616 hardcode_minus_L_CXX=no
10617 hardcode_shlibpath_var_CXX=unsupported
10618 hardcode_automatic_CXX=no
10619 module_cmds_CXX=
10620 module_expsym_cmds_CXX=
10621 link_all_deplibs_CXX=unknown
10622 old_archive_cmds_CXX=$old_archive_cmds
10623 no_undefined_flag_CXX=
10624 whole_archive_flag_spec_CXX=
10625 enable_shared_with_static_runtimes_CXX=no
10626
10627 # Dependencies to place before and after the object being linked:
10628 predep_objects_CXX=
10629 postdep_objects_CXX=
10630 predeps_CXX=
10631 postdeps_CXX=
10632 compiler_lib_search_path_CXX=
10633
10634 # Source file extension for C++ test sources.
10635 ac_ext=cpp
10636
10637 # Object file extension for compiled C++ test sources.
10638 objext=o
10639 objext_CXX=$objext
10640
10641 # Code to be used in simple compile tests
10642 lt_simple_compile_test_code="int some_variable = 0;"
10643
10644 # Code to be used in simple link tests
10645 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
10646
10647 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10648
10649 # If no C compiler was specified, use CC.
10650 LTCC=${LTCC-"$CC"}
10651
10652 # If no C compiler flags were specified, use CFLAGS.
10653 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10654
10655 # Allow CC to be a program name with arguments.
10656 compiler=$CC
10657
10658
10659 # save warnings/boilerplate of simple test code
10660 ac_outfile=conftest.$ac_objext
10661 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10662 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10663 _lt_compiler_boilerplate=`cat conftest.err`
10664 $rm conftest*
10665
10666 ac_outfile=conftest.$ac_objext
10667 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10668 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10669 _lt_linker_boilerplate=`cat conftest.err`
10670 $rm conftest*
10671
10672
10673 # Allow CC to be a program name with arguments.
10674 lt_save_CC=$CC
10675 lt_save_LD=$LD
10676 lt_save_GCC=$GCC
10677 GCC=$GXX
10678 lt_save_with_gnu_ld=$with_gnu_ld
10679 lt_save_path_LD=$lt_cv_path_LD
10680 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10681   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10682 else
10683   $as_unset lt_cv_prog_gnu_ld
10684 fi
10685 if test -n "${lt_cv_path_LDCXX+set}"; then
10686   lt_cv_path_LD=$lt_cv_path_LDCXX
10687 else
10688   $as_unset lt_cv_path_LD
10689 fi
10690 test -z "${LDCXX+set}" || LD=$LDCXX
10691 CC=${CXX-"c++"}
10692 compiler=$CC
10693 compiler_CXX=$CC
10694 for cc_temp in $compiler""; do
10695   case $cc_temp in
10696     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10697     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10698     \-*) ;;
10699     *) break;;
10700   esac
10701 done
10702 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10703
10704
10705 # We don't want -fno-exception wen compiling C++ code, so set the
10706 # no_builtin_flag separately
10707 if test "$GXX" = yes; then
10708   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10709 else
10710   lt_prog_compiler_no_builtin_flag_CXX=
10711 fi
10712
10713 if test "$GXX" = yes; then
10714   # Set up default GNU C++ configuration
10715
10716
10717 # Check whether --with-gnu-ld was given.
10718 if test "${with_gnu_ld+set}" = set; then
10719   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10720 else
10721   with_gnu_ld=no
10722 fi
10723
10724 ac_prog=ld
10725 if test "$GCC" = yes; then
10726   # Check if gcc -print-prog-name=ld gives a path.
10727   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10728 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10729   case $host in
10730   *-*-mingw*)
10731     # gcc leaves a trailing carriage return which upsets mingw
10732     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10733   *)
10734     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10735   esac
10736   case $ac_prog in
10737     # Accept absolute paths.
10738     [\\/]* | ?:[\\/]*)
10739       re_direlt='/[^/][^/]*/\.\./'
10740       # Canonicalize the pathname of ld
10741       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10742       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10743         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10744       done
10745       test -z "$LD" && LD="$ac_prog"
10746       ;;
10747   "")
10748     # If it fails, then pretend we aren't using GCC.
10749     ac_prog=ld
10750     ;;
10751   *)
10752     # If it is relative, then search for the first ld in PATH.
10753     with_gnu_ld=unknown
10754     ;;
10755   esac
10756 elif test "$with_gnu_ld" = yes; then
10757   { echo "$as_me:$LINENO: checking for GNU ld" >&5
10758 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10759 else
10760   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10761 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10762 fi
10763 if test "${lt_cv_path_LD+set}" = set; then
10764   echo $ECHO_N "(cached) $ECHO_C" >&6
10765 else
10766   if test -z "$LD"; then
10767   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10768   for ac_dir in $PATH; do
10769     IFS="$lt_save_ifs"
10770     test -z "$ac_dir" && ac_dir=.
10771     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10772       lt_cv_path_LD="$ac_dir/$ac_prog"
10773       # Check to see if the program is GNU ld.  I'd rather use --version,
10774       # but apparently some variants of GNU ld only accept -v.
10775       # Break only if it was the GNU/non-GNU ld that we prefer.
10776       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10777       *GNU* | *'with BFD'*)
10778         test "$with_gnu_ld" != no && break
10779         ;;
10780       *)
10781         test "$with_gnu_ld" != yes && break
10782         ;;
10783       esac
10784     fi
10785   done
10786   IFS="$lt_save_ifs"
10787 else
10788   lt_cv_path_LD="$LD" # Let the user override the test with a path.
10789 fi
10790 fi
10791
10792 LD="$lt_cv_path_LD"
10793 if test -n "$LD"; then
10794   { echo "$as_me:$LINENO: result: $LD" >&5
10795 echo "${ECHO_T}$LD" >&6; }
10796 else
10797   { echo "$as_me:$LINENO: result: no" >&5
10798 echo "${ECHO_T}no" >&6; }
10799 fi
10800 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10801 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10802    { (exit 1); exit 1; }; }
10803 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10804 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10805 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10806   echo $ECHO_N "(cached) $ECHO_C" >&6
10807 else
10808   # I'd rather use --version here, but apparently some GNU lds only accept -v.
10809 case `$LD -v 2>&1 </dev/null` in
10810 *GNU* | *'with BFD'*)
10811   lt_cv_prog_gnu_ld=yes
10812   ;;
10813 *)
10814   lt_cv_prog_gnu_ld=no
10815   ;;
10816 esac
10817 fi
10818 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10819 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10820 with_gnu_ld=$lt_cv_prog_gnu_ld
10821
10822
10823
10824   # Check if GNU C++ uses GNU ld as the underlying linker, since the
10825   # archiving commands below assume that GNU ld is being used.
10826   if test "$with_gnu_ld" = yes; then
10827     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10828     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'
10829
10830     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10831     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10832
10833     # If archive_cmds runs LD, not CC, wlarc should be empty
10834     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10835     #     investigate it a little bit more. (MM)
10836     wlarc='${wl}'
10837
10838     # ancient GNU ld didn't support --whole-archive et. al.
10839     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10840         grep 'no-whole-archive' > /dev/null; then
10841       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10842     else
10843       whole_archive_flag_spec_CXX=
10844     fi
10845   else
10846     with_gnu_ld=no
10847     wlarc=
10848
10849     # A generic and very simple default shared library creation
10850     # command for GNU C++ for the case where it uses the native
10851     # linker, instead of GNU ld.  If possible, this setting should
10852     # overridden to take advantage of the native linker features on
10853     # the platform it is being used on.
10854     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10855   fi
10856
10857   # Commands to make compiler produce verbose output that lists
10858   # what "hidden" libraries, object files and flags are used when
10859   # linking a shared library.
10860   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10861
10862 else
10863   GXX=no
10864   with_gnu_ld=no
10865   wlarc=
10866 fi
10867
10868 # PORTME: fill in a description of your system's C++ link characteristics
10869 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10870 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10871 ld_shlibs_CXX=yes
10872 case $host_os in
10873   aix3*)
10874     # FIXME: insert proper C++ library support
10875     ld_shlibs_CXX=no
10876     ;;
10877   aix4* | aix5*)
10878     if test "$host_cpu" = ia64; then
10879       # On IA64, the linker does run time linking by default, so we don't
10880       # have to do anything special.
10881       aix_use_runtimelinking=no
10882       exp_sym_flag='-Bexport'
10883       no_entry_flag=""
10884     else
10885       aix_use_runtimelinking=no
10886
10887       # Test if we are trying to use run time linking or normal
10888       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10889       # need to do runtime linking.
10890       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10891         for ld_flag in $LDFLAGS; do
10892           case $ld_flag in
10893           *-brtl*)
10894             aix_use_runtimelinking=yes
10895             break
10896             ;;
10897           esac
10898         done
10899         ;;
10900       esac
10901
10902       exp_sym_flag='-bexport'
10903       no_entry_flag='-bnoentry'
10904     fi
10905
10906     # When large executables or shared objects are built, AIX ld can
10907     # have problems creating the table of contents.  If linking a library
10908     # or program results in "error TOC overflow" add -mminimal-toc to
10909     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10910     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10911
10912     archive_cmds_CXX=''
10913     hardcode_direct_CXX=yes
10914     hardcode_libdir_separator_CXX=':'
10915     link_all_deplibs_CXX=yes
10916
10917     if test "$GXX" = yes; then
10918       case $host_os in aix4.[012]|aix4.[012].*)
10919       # We only want to do this on AIX 4.2 and lower, the check
10920       # below for broken collect2 doesn't work under 4.3+
10921         collect2name=`${CC} -print-prog-name=collect2`
10922         if test -f "$collect2name" && \
10923            strings "$collect2name" | grep resolve_lib_name >/dev/null
10924         then
10925           # We have reworked collect2
10926           :
10927         else
10928           # We have old collect2
10929           hardcode_direct_CXX=unsupported
10930           # It fails to find uninstalled libraries when the uninstalled
10931           # path is not listed in the libpath.  Setting hardcode_minus_L
10932           # to unsupported forces relinking
10933           hardcode_minus_L_CXX=yes
10934           hardcode_libdir_flag_spec_CXX='-L$libdir'
10935           hardcode_libdir_separator_CXX=
10936         fi
10937         ;;
10938       esac
10939       shared_flag='-shared'
10940       if test "$aix_use_runtimelinking" = yes; then
10941         shared_flag="$shared_flag "'${wl}-G'
10942       fi
10943     else
10944       # not using gcc
10945       if test "$host_cpu" = ia64; then
10946         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10947         # chokes on -Wl,-G. The following line is correct:
10948         shared_flag='-G'
10949       else
10950         if test "$aix_use_runtimelinking" = yes; then
10951           shared_flag='${wl}-G'
10952         else
10953           shared_flag='${wl}-bM:SRE'
10954         fi
10955       fi
10956     fi
10957
10958     # It seems that -bexpall does not export symbols beginning with
10959     # underscore (_), so it is better to generate a list of symbols to export.
10960     always_export_symbols_CXX=yes
10961     if test "$aix_use_runtimelinking" = yes; then
10962       # Warning - without using the other runtime loading flags (-brtl),
10963       # -berok will link without error, but may produce a broken library.
10964       allow_undefined_flag_CXX='-berok'
10965       # Determine the default libpath from the value encoded in an empty executable.
10966       cat >conftest.$ac_ext <<_ACEOF
10967 /* confdefs.h.  */
10968 _ACEOF
10969 cat confdefs.h >>conftest.$ac_ext
10970 cat >>conftest.$ac_ext <<_ACEOF
10971 /* end confdefs.h.  */
10972
10973 int
10974 main ()
10975 {
10976
10977   ;
10978   return 0;
10979 }
10980 _ACEOF
10981 rm -f conftest.$ac_objext conftest$ac_exeext
10982 if { (ac_try="$ac_link"
10983 case "(($ac_try" in
10984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10985   *) ac_try_echo=$ac_try;;
10986 esac
10987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10988   (eval "$ac_link") 2>conftest.er1
10989   ac_status=$?
10990   grep -v '^ *+' conftest.er1 >conftest.err
10991   rm -f conftest.er1
10992   cat conftest.err >&5
10993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10994   (exit $ac_status); } && {
10995          test -z "$ac_cxx_werror_flag" ||
10996          test ! -s conftest.err
10997        } && test -s conftest$ac_exeext &&
10998        $as_test_x conftest$ac_exeext; then
10999
11000 lt_aix_libpath_sed='
11001     /Import File Strings/,/^$/ {
11002         /^0/ {
11003             s/^0  *\(.*\)$/\1/
11004             p
11005         }
11006     }'
11007 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11008 # Check for a 64-bit object if we didn't find anything.
11009 if test -z "$aix_libpath"; then
11010   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11011 fi
11012 else
11013   echo "$as_me: failed program was:" >&5
11014 sed 's/^/| /' conftest.$ac_ext >&5
11015
11016
11017 fi
11018
11019 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11020       conftest$ac_exeext conftest.$ac_ext
11021 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11022
11023       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11024
11025       archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11026      else
11027       if test "$host_cpu" = ia64; then
11028         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11029         allow_undefined_flag_CXX="-z nodefs"
11030         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
11031       else
11032         # Determine the default libpath from the value encoded in an empty executable.
11033         cat >conftest.$ac_ext <<_ACEOF
11034 /* confdefs.h.  */
11035 _ACEOF
11036 cat confdefs.h >>conftest.$ac_ext
11037 cat >>conftest.$ac_ext <<_ACEOF
11038 /* end confdefs.h.  */
11039
11040 int
11041 main ()
11042 {
11043
11044   ;
11045   return 0;
11046 }
11047 _ACEOF
11048 rm -f conftest.$ac_objext conftest$ac_exeext
11049 if { (ac_try="$ac_link"
11050 case "(($ac_try" in
11051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11052   *) ac_try_echo=$ac_try;;
11053 esac
11054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11055   (eval "$ac_link") 2>conftest.er1
11056   ac_status=$?
11057   grep -v '^ *+' conftest.er1 >conftest.err
11058   rm -f conftest.er1
11059   cat conftest.err >&5
11060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11061   (exit $ac_status); } && {
11062          test -z "$ac_cxx_werror_flag" ||
11063          test ! -s conftest.err
11064        } && test -s conftest$ac_exeext &&
11065        $as_test_x conftest$ac_exeext; then
11066
11067 lt_aix_libpath_sed='
11068     /Import File Strings/,/^$/ {
11069         /^0/ {
11070             s/^0  *\(.*\)$/\1/
11071             p
11072         }
11073     }'
11074 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11075 # Check for a 64-bit object if we didn't find anything.
11076 if test -z "$aix_libpath"; then
11077   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11078 fi
11079 else
11080   echo "$as_me: failed program was:" >&5
11081 sed 's/^/| /' conftest.$ac_ext >&5
11082
11083
11084 fi
11085
11086 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11087       conftest$ac_exeext conftest.$ac_ext
11088 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11089
11090         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11091         # Warning - without using the other run time loading flags,
11092         # -berok will link without error, but may produce a broken library.
11093         no_undefined_flag_CXX=' ${wl}-bernotok'
11094         allow_undefined_flag_CXX=' ${wl}-berok'
11095         # Exported symbols can be pulled into shared objects from archives
11096         whole_archive_flag_spec_CXX='$convenience'
11097         archive_cmds_need_lc_CXX=yes
11098         # This is similar to how AIX traditionally builds its shared libraries.
11099         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
11100       fi
11101     fi
11102     ;;
11103
11104   beos*)
11105     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11106       allow_undefined_flag_CXX=unsupported
11107       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11108       # support --undefined.  This deserves some investigation.  FIXME
11109       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11110     else
11111       ld_shlibs_CXX=no
11112     fi
11113     ;;
11114
11115   chorus*)
11116     case $cc_basename in
11117       *)
11118         # FIXME: insert proper C++ library support
11119         ld_shlibs_CXX=no
11120         ;;
11121     esac
11122     ;;
11123
11124   cygwin* | mingw* | pw32*)
11125     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11126     # as there is no search path for DLLs.
11127     hardcode_libdir_flag_spec_CXX='-L$libdir'
11128     allow_undefined_flag_CXX=unsupported
11129     always_export_symbols_CXX=no
11130     enable_shared_with_static_runtimes_CXX=yes
11131
11132     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11133       archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11134       # If the export-symbols file already is a .def file (1st line
11135       # is EXPORTS), use it as is; otherwise, prepend...
11136       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11137         cp $export_symbols $output_objdir/$soname.def;
11138       else
11139         echo EXPORTS > $output_objdir/$soname.def;
11140         cat $export_symbols >> $output_objdir/$soname.def;
11141       fi~
11142       $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11143     else
11144       ld_shlibs_CXX=no
11145     fi
11146   ;;
11147       darwin* | rhapsody*)
11148         case $host_os in
11149         rhapsody* | darwin1.[012])
11150          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11151          ;;
11152        *) # Darwin 1.3 on
11153          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11154            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11155          else
11156            case ${MACOSX_DEPLOYMENT_TARGET} in
11157              10.[012])
11158                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11159                ;;
11160              10.*)
11161                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11162                ;;
11163            esac
11164          fi
11165          ;;
11166         esac
11167       archive_cmds_need_lc_CXX=no
11168       hardcode_direct_CXX=no
11169       hardcode_automatic_CXX=yes
11170       hardcode_shlibpath_var_CXX=unsupported
11171       whole_archive_flag_spec_CXX=''
11172       link_all_deplibs_CXX=yes
11173
11174     if test "$GXX" = yes ; then
11175       lt_int_apple_cc_single_mod=no
11176       output_verbose_link_cmd='echo'
11177       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11178        lt_int_apple_cc_single_mod=yes
11179       fi
11180       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11181        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11182       else
11183           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'
11184         fi
11185         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11186         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11187           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11188             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}'
11189           else
11190             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}'
11191           fi
11192             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}'
11193       else
11194       case $cc_basename in
11195         xlc*)
11196          output_verbose_link_cmd='echo'
11197           archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
11198           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11199           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11200           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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11201           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}'
11202           ;;
11203        *)
11204          ld_shlibs_CXX=no
11205           ;;
11206       esac
11207       fi
11208         ;;
11209
11210   dgux*)
11211     case $cc_basename in
11212       ec++*)
11213         # FIXME: insert proper C++ library support
11214         ld_shlibs_CXX=no
11215         ;;
11216       ghcx*)
11217         # Green Hills C++ Compiler
11218         # FIXME: insert proper C++ library support
11219         ld_shlibs_CXX=no
11220         ;;
11221       *)
11222         # FIXME: insert proper C++ library support
11223         ld_shlibs_CXX=no
11224         ;;
11225     esac
11226     ;;
11227   freebsd[12]*)
11228     # C++ shared libraries reported to be fairly broken before switch to ELF
11229     ld_shlibs_CXX=no
11230     ;;
11231   freebsd-elf*)
11232     archive_cmds_need_lc_CXX=no
11233     ;;
11234   freebsd* | dragonfly*)
11235     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11236     # conventions
11237     ld_shlibs_CXX=yes
11238     ;;
11239   gnu*)
11240     ;;
11241   hpux9*)
11242     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11243     hardcode_libdir_separator_CXX=:
11244     export_dynamic_flag_spec_CXX='${wl}-E'
11245     hardcode_direct_CXX=yes
11246     hardcode_minus_L_CXX=yes # Not in the search PATH,
11247                                 # but as the default
11248                                 # location of the library.
11249
11250     case $cc_basename in
11251     CC*)
11252       # FIXME: insert proper C++ library support
11253       ld_shlibs_CXX=no
11254       ;;
11255     aCC*)
11256       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'
11257       # Commands to make compiler produce verbose output that lists
11258       # what "hidden" libraries, object files and flags are used when
11259       # linking a shared library.
11260       #
11261       # There doesn't appear to be a way to prevent this compiler from
11262       # explicitly linking system object files so we need to strip them
11263       # from the output so that they don't get included in the library
11264       # dependencies.
11265       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'
11266       ;;
11267     *)
11268       if test "$GXX" = yes; then
11269         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'
11270       else
11271         # FIXME: insert proper C++ library support
11272         ld_shlibs_CXX=no
11273       fi
11274       ;;
11275     esac
11276     ;;
11277   hpux10*|hpux11*)
11278     if test $with_gnu_ld = no; then
11279       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11280       hardcode_libdir_separator_CXX=:
11281
11282       case $host_cpu in
11283       hppa*64*|ia64*) ;;
11284       *)
11285         export_dynamic_flag_spec_CXX='${wl}-E'
11286         ;;
11287       esac
11288     fi
11289     case $host_cpu in
11290     hppa*64*|ia64*)
11291       hardcode_direct_CXX=no
11292       hardcode_shlibpath_var_CXX=no
11293       ;;
11294     *)
11295       hardcode_direct_CXX=yes
11296       hardcode_minus_L_CXX=yes # Not in the search PATH,
11297                                               # but as the default
11298                                               # location of the library.
11299       ;;
11300     esac
11301
11302     case $cc_basename in
11303       CC*)
11304         # FIXME: insert proper C++ library support
11305         ld_shlibs_CXX=no
11306         ;;
11307       aCC*)
11308         case $host_cpu in
11309         hppa*64*)
11310           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11311           ;;
11312         ia64*)
11313           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11314           ;;
11315         *)
11316           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11317           ;;
11318         esac
11319         # Commands to make compiler produce verbose output that lists
11320         # what "hidden" libraries, object files and flags are used when
11321         # linking a shared library.
11322         #
11323         # There doesn't appear to be a way to prevent this compiler from
11324         # explicitly linking system object files so we need to strip them
11325         # from the output so that they don't get included in the library
11326         # dependencies.
11327         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'
11328         ;;
11329       *)
11330         if test "$GXX" = yes; then
11331           if test $with_gnu_ld = no; then
11332             case $host_cpu in
11333             hppa*64*)
11334               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11335               ;;
11336             ia64*)
11337               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11338               ;;
11339             *)
11340               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'
11341               ;;
11342             esac
11343           fi
11344         else
11345           # FIXME: insert proper C++ library support
11346           ld_shlibs_CXX=no
11347         fi
11348         ;;
11349     esac
11350     ;;
11351   interix[3-9]*)
11352     hardcode_direct_CXX=no
11353     hardcode_shlibpath_var_CXX=no
11354     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11355     export_dynamic_flag_spec_CXX='${wl}-E'
11356     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11357     # Instead, shared libraries are loaded at an image base (0x10000000 by
11358     # default) and relocated if they conflict, which is a slow very memory
11359     # consuming and fragmenting process.  To avoid this, we pick a random,
11360     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11361     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11362     archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11363     archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11364     ;;
11365   irix5* | irix6*)
11366     case $cc_basename in
11367       CC*)
11368         # SGI C++
11369         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'
11370
11371         # Archives containing C++ object files must be created using
11372         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11373         # necessary to make sure instantiated templates are included
11374         # in the archive.
11375         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11376         ;;
11377       *)
11378         if test "$GXX" = yes; then
11379           if test "$with_gnu_ld" = no; then
11380             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'
11381           else
11382             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'
11383           fi
11384         fi
11385         link_all_deplibs_CXX=yes
11386         ;;
11387     esac
11388     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11389     hardcode_libdir_separator_CXX=:
11390     ;;
11391   linux* | k*bsd*-gnu)
11392     case $cc_basename in
11393       KCC*)
11394         # Kuck and Associates, Inc. (KAI) C++ Compiler
11395
11396         # KCC will only create a shared library if the output file
11397         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11398         # to its proper name (with version) after linking.
11399         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'
11400         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'
11401         # Commands to make compiler produce verbose output that lists
11402         # what "hidden" libraries, object files and flags are used when
11403         # linking a shared library.
11404         #
11405         # There doesn't appear to be a way to prevent this compiler from
11406         # explicitly linking system object files so we need to strip them
11407         # from the output so that they don't get included in the library
11408         # dependencies.
11409         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'
11410
11411         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11412         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11413
11414         # Archives containing C++ object files must be created using
11415         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11416         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11417         ;;
11418       icpc*)
11419         # Intel C++
11420         with_gnu_ld=yes
11421         # version 8.0 and above of icpc choke on multiply defined symbols
11422         # if we add $predep_objects and $postdep_objects, however 7.1 and
11423         # earlier do not add the objects themselves.
11424         case `$CC -V 2>&1` in
11425         *"Version 7."*)
11426           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11427           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'
11428           ;;
11429         *)  # Version 8.0 or newer
11430           tmp_idyn=
11431           case $host_cpu in
11432             ia64*) tmp_idyn=' -i_dynamic';;
11433           esac
11434           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11435           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'
11436           ;;
11437         esac
11438         archive_cmds_need_lc_CXX=no
11439         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11440         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11441         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11442         ;;
11443       pgCC*)
11444         # Portland Group C++ compiler
11445         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11446         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'
11447
11448         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11449         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11450         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'
11451         ;;
11452       cxx*)
11453         # Compaq C++
11454         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11455         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'
11456
11457         runpath_var=LD_RUN_PATH
11458         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11459         hardcode_libdir_separator_CXX=:
11460
11461         # Commands to make compiler produce verbose output that lists
11462         # what "hidden" libraries, object files and flags are used when
11463         # linking a shared library.
11464         #
11465         # There doesn't appear to be a way to prevent this compiler from
11466         # explicitly linking system object files so we need to strip them
11467         # from the output so that they don't get included in the library
11468         # dependencies.
11469         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'
11470         ;;
11471       *)
11472         case `$CC -V 2>&1 | sed 5q` in
11473         *Sun\ C*)
11474           # Sun C++ 5.9
11475           no_undefined_flag_CXX=' -zdefs'
11476           archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11477           archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
11478           hardcode_libdir_flag_spec_CXX='-R$libdir'
11479           whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11480
11481           # Not sure whether something based on
11482           # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11483           # would be better.
11484           output_verbose_link_cmd='echo'
11485
11486           # Archives containing C++ object files must be created using
11487           # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11488           # necessary to make sure instantiated templates are included
11489           # in the archive.
11490           old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11491           ;;
11492         esac
11493         ;;
11494     esac
11495     ;;
11496   lynxos*)
11497     # FIXME: insert proper C++ library support
11498     ld_shlibs_CXX=no
11499     ;;
11500   m88k*)
11501     # FIXME: insert proper C++ library support
11502     ld_shlibs_CXX=no
11503     ;;
11504   mvs*)
11505     case $cc_basename in
11506       cxx*)
11507         # FIXME: insert proper C++ library support
11508         ld_shlibs_CXX=no
11509         ;;
11510       *)
11511         # FIXME: insert proper C++ library support
11512         ld_shlibs_CXX=no
11513         ;;
11514     esac
11515     ;;
11516   netbsd*)
11517     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11518       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11519       wlarc=
11520       hardcode_libdir_flag_spec_CXX='-R$libdir'
11521       hardcode_direct_CXX=yes
11522       hardcode_shlibpath_var_CXX=no
11523     fi
11524     # Workaround some broken pre-1.5 toolchains
11525     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11526     ;;
11527   openbsd2*)
11528     # C++ shared libraries are fairly broken
11529     ld_shlibs_CXX=no
11530     ;;
11531   openbsd*)
11532     if test -f /usr/libexec/ld.so; then
11533       hardcode_direct_CXX=yes
11534       hardcode_shlibpath_var_CXX=no
11535       archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11536       hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11537       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11538         archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11539         export_dynamic_flag_spec_CXX='${wl}-E'
11540         whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11541       fi
11542       output_verbose_link_cmd='echo'
11543     else
11544       ld_shlibs_CXX=no
11545     fi
11546     ;;
11547   osf3*)
11548     case $cc_basename in
11549       KCC*)
11550         # Kuck and Associates, Inc. (KAI) C++ Compiler
11551
11552         # KCC will only create a shared library if the output file
11553         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11554         # to its proper name (with version) after linking.
11555         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'
11556
11557         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11558         hardcode_libdir_separator_CXX=:
11559
11560         # Archives containing C++ object files must be created using
11561         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11562         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11563
11564         ;;
11565       RCC*)
11566         # Rational C++ 2.4.1
11567         # FIXME: insert proper C++ library support
11568         ld_shlibs_CXX=no
11569         ;;
11570       cxx*)
11571         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11572         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'
11573
11574         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11575         hardcode_libdir_separator_CXX=:
11576
11577         # Commands to make compiler produce verbose output that lists
11578         # what "hidden" libraries, object files and flags are used when
11579         # linking a shared library.
11580         #
11581         # There doesn't appear to be a way to prevent this compiler from
11582         # explicitly linking system object files so we need to strip them
11583         # from the output so that they don't get included in the library
11584         # dependencies.
11585         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'
11586         ;;
11587       *)
11588         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11589           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11590           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'
11591
11592           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11593           hardcode_libdir_separator_CXX=:
11594
11595           # Commands to make compiler produce verbose output that lists
11596           # what "hidden" libraries, object files and flags are used when
11597           # linking a shared library.
11598           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11599
11600         else
11601           # FIXME: insert proper C++ library support
11602           ld_shlibs_CXX=no
11603         fi
11604         ;;
11605     esac
11606     ;;
11607   osf4* | osf5*)
11608     case $cc_basename in
11609       KCC*)
11610         # Kuck and Associates, Inc. (KAI) C++ Compiler
11611
11612         # KCC will only create a shared library if the output file
11613         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11614         # to its proper name (with version) after linking.
11615         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'
11616
11617         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11618         hardcode_libdir_separator_CXX=:
11619
11620         # Archives containing C++ object files must be created using
11621         # the KAI C++ compiler.
11622         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11623         ;;
11624       RCC*)
11625         # Rational C++ 2.4.1
11626         # FIXME: insert proper C++ library support
11627         ld_shlibs_CXX=no
11628         ;;
11629       cxx*)
11630         allow_undefined_flag_CXX=' -expect_unresolved \*'
11631         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'
11632         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11633           echo "-hidden">> $lib.exp~
11634           $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~
11635           $rm $lib.exp'
11636
11637         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11638         hardcode_libdir_separator_CXX=:
11639
11640         # Commands to make compiler produce verbose output that lists
11641         # what "hidden" libraries, object files and flags are used when
11642         # linking a shared library.
11643         #
11644         # There doesn't appear to be a way to prevent this compiler from
11645         # explicitly linking system object files so we need to strip them
11646         # from the output so that they don't get included in the library
11647         # dependencies.
11648         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'
11649         ;;
11650       *)
11651         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11652           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11653          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'
11654
11655           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11656           hardcode_libdir_separator_CXX=:
11657
11658           # Commands to make compiler produce verbose output that lists
11659           # what "hidden" libraries, object files and flags are used when
11660           # linking a shared library.
11661           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11662
11663         else
11664           # FIXME: insert proper C++ library support
11665           ld_shlibs_CXX=no
11666         fi
11667         ;;
11668     esac
11669     ;;
11670   psos*)
11671     # FIXME: insert proper C++ library support
11672     ld_shlibs_CXX=no
11673     ;;
11674   sunos4*)
11675     case $cc_basename in
11676       CC*)
11677         # Sun C++ 4.x
11678         # FIXME: insert proper C++ library support
11679         ld_shlibs_CXX=no
11680         ;;
11681       lcc*)
11682         # Lucid
11683         # FIXME: insert proper C++ library support
11684         ld_shlibs_CXX=no
11685         ;;
11686       *)
11687         # FIXME: insert proper C++ library support
11688         ld_shlibs_CXX=no
11689         ;;
11690     esac
11691     ;;
11692   solaris*)
11693     case $cc_basename in
11694       CC*)
11695         # Sun C++ 4.2, 5.x and Centerline C++
11696         archive_cmds_need_lc_CXX=yes
11697         no_undefined_flag_CXX=' -zdefs'
11698         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11699         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11700         $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'
11701
11702         hardcode_libdir_flag_spec_CXX='-R$libdir'
11703         hardcode_shlibpath_var_CXX=no
11704         case $host_os in
11705           solaris2.[0-5] | solaris2.[0-5].*) ;;
11706           *)
11707             # The compiler driver will combine and reorder linker options,
11708             # but understands `-z linker_flag'.
11709             # Supported since Solaris 2.6 (maybe 2.5.1?)
11710             whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
11711             ;;
11712         esac
11713         link_all_deplibs_CXX=yes
11714
11715         output_verbose_link_cmd='echo'
11716
11717         # Archives containing C++ object files must be created using
11718         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11719         # necessary to make sure instantiated templates are included
11720         # in the archive.
11721         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11722         ;;
11723       gcx*)
11724         # Green Hills C++ Compiler
11725         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11726
11727         # The C++ compiler must be used to create the archive.
11728         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11729         ;;
11730       *)
11731         # GNU C++ compiler with Solaris linker
11732         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11733           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11734           if $CC --version | grep -v '^2\.7' > /dev/null; then
11735             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11736             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11737                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11738
11739             # Commands to make compiler produce verbose output that lists
11740             # what "hidden" libraries, object files and flags are used when
11741             # linking a shared library.
11742             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11743           else
11744             # g++ 2.7 appears to require `-G' NOT `-shared' on this
11745             # platform.
11746             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11747             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11748                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11749
11750             # Commands to make compiler produce verbose output that lists
11751             # what "hidden" libraries, object files and flags are used when
11752             # linking a shared library.
11753             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11754           fi
11755
11756           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11757           case $host_os in
11758           solaris2.[0-5] | solaris2.[0-5].*) ;;
11759           *)
11760             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11761             ;;
11762           esac
11763         fi
11764         ;;
11765     esac
11766     ;;
11767   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11768     no_undefined_flag_CXX='${wl}-z,text'
11769     archive_cmds_need_lc_CXX=no
11770     hardcode_shlibpath_var_CXX=no
11771     runpath_var='LD_RUN_PATH'
11772
11773     case $cc_basename in
11774       CC*)
11775         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11776         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11777         ;;
11778       *)
11779         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11780         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11781         ;;
11782     esac
11783     ;;
11784   sysv5* | sco3.2v5* | sco5v6*)
11785     # Note: We can NOT use -z defs as we might desire, because we do not
11786     # link with -lc, and that would cause any symbols used from libc to
11787     # always be unresolved, which means just about no library would
11788     # ever link correctly.  If we're not using GNU ld we use -z text
11789     # though, which does catch some bad symbols but isn't as heavy-handed
11790     # as -z defs.
11791     # For security reasons, it is highly recommended that you always
11792     # use absolute paths for naming shared libraries, and exclude the
11793     # DT_RUNPATH tag from executables and libraries.  But doing so
11794     # requires that you compile everything twice, which is a pain.
11795     # So that behaviour is only enabled if SCOABSPATH is set to a
11796     # non-empty value in the environment.  Most likely only useful for
11797     # creating official distributions of packages.
11798     # This is a hack until libtool officially supports absolute path
11799     # names for shared libraries.
11800     no_undefined_flag_CXX='${wl}-z,text'
11801     allow_undefined_flag_CXX='${wl}-z,nodefs'
11802     archive_cmds_need_lc_CXX=no
11803     hardcode_shlibpath_var_CXX=no
11804     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11805     hardcode_libdir_separator_CXX=':'
11806     link_all_deplibs_CXX=yes
11807     export_dynamic_flag_spec_CXX='${wl}-Bexport'
11808     runpath_var='LD_RUN_PATH'
11809
11810     case $cc_basename in
11811       CC*)
11812         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11813         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11814         ;;
11815       *)
11816         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11817         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11818         ;;
11819     esac
11820     ;;
11821   tandem*)
11822     case $cc_basename in
11823       NCC*)
11824         # NonStop-UX NCC 3.20
11825         # FIXME: insert proper C++ library support
11826         ld_shlibs_CXX=no
11827         ;;
11828       *)
11829         # FIXME: insert proper C++ library support
11830         ld_shlibs_CXX=no
11831         ;;
11832     esac
11833     ;;
11834   vxworks*)
11835     # FIXME: insert proper C++ library support
11836     ld_shlibs_CXX=no
11837     ;;
11838   *)
11839     # FIXME: insert proper C++ library support
11840     ld_shlibs_CXX=no
11841     ;;
11842 esac
11843 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11844 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11845 test "$ld_shlibs_CXX" = no && can_build_shared=no
11846
11847 GCC_CXX="$GXX"
11848 LD_CXX="$LD"
11849
11850
11851 cat > conftest.$ac_ext <<EOF
11852 class Foo
11853 {
11854 public:
11855   Foo (void) { a = 0; }
11856 private:
11857   int a;
11858 };
11859 EOF
11860
11861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11862   (eval $ac_compile) 2>&5
11863   ac_status=$?
11864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11865   (exit $ac_status); }; then
11866   # Parse the compiler output and extract the necessary
11867   # objects, libraries and library flags.
11868
11869   # Sentinel used to keep track of whether or not we are before
11870   # the conftest object file.
11871   pre_test_object_deps_done=no
11872
11873   # The `*' in the case matches for architectures that use `case' in
11874   # $output_verbose_cmd can trigger glob expansion during the loop
11875   # eval without this substitution.
11876   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11877
11878   for p in `eval $output_verbose_link_cmd`; do
11879     case $p in
11880
11881     -L* | -R* | -l*)
11882        # Some compilers place space between "-{L,R}" and the path.
11883        # Remove the space.
11884        if test $p = "-L" \
11885           || test $p = "-R"; then
11886          prev=$p
11887          continue
11888        else
11889          prev=
11890        fi
11891
11892        if test "$pre_test_object_deps_done" = no; then
11893          case $p in
11894          -L* | -R*)
11895            # Internal compiler library paths should come after those
11896            # provided the user.  The postdeps already come after the
11897            # user supplied libs so there is no need to process them.
11898            if test -z "$compiler_lib_search_path_CXX"; then
11899              compiler_lib_search_path_CXX="${prev}${p}"
11900            else
11901              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11902            fi
11903            ;;
11904          # The "-l" case would never come before the object being
11905          # linked, so don't bother handling this case.
11906          esac
11907        else
11908          if test -z "$postdeps_CXX"; then
11909            postdeps_CXX="${prev}${p}"
11910          else
11911            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11912          fi
11913        fi
11914        ;;
11915
11916     *.$objext)
11917        # This assumes that the test object file only shows up
11918        # once in the compiler output.
11919        if test "$p" = "conftest.$objext"; then
11920          pre_test_object_deps_done=yes
11921          continue
11922        fi
11923
11924        if test "$pre_test_object_deps_done" = no; then
11925          if test -z "$predep_objects_CXX"; then
11926            predep_objects_CXX="$p"
11927          else
11928            predep_objects_CXX="$predep_objects_CXX $p"
11929          fi
11930        else
11931          if test -z "$postdep_objects_CXX"; then
11932            postdep_objects_CXX="$p"
11933          else
11934            postdep_objects_CXX="$postdep_objects_CXX $p"
11935          fi
11936        fi
11937        ;;
11938
11939     *) ;; # Ignore the rest.
11940
11941     esac
11942   done
11943
11944   # Clean up.
11945   rm -f a.out a.exe
11946 else
11947   echo "libtool.m4: error: problem compiling CXX test program"
11948 fi
11949
11950 $rm -f confest.$objext
11951
11952 # PORTME: override above test on systems where it is broken
11953 case $host_os in
11954 interix[3-9]*)
11955   # Interix 3.5 installs completely hosed .la files for C++, so rather than
11956   # hack all around it, let's just trust "g++" to DTRT.
11957   predep_objects_CXX=
11958   postdep_objects_CXX=
11959   postdeps_CXX=
11960   ;;
11961
11962 linux*)
11963   case `$CC -V 2>&1 | sed 5q` in
11964   *Sun\ C*)
11965     # Sun C++ 5.9
11966     #
11967     # The more standards-conforming stlport4 library is
11968     # incompatible with the Cstd library. Avoid specifying
11969     # it if it's in CXXFLAGS. Ignore libCrun as
11970     # -library=stlport4 depends on it.
11971     case " $CXX $CXXFLAGS " in
11972     *" -library=stlport4 "*)
11973       solaris_use_stlport4=yes
11974       ;;
11975     esac
11976     if test "$solaris_use_stlport4" != yes; then
11977       postdeps_CXX='-library=Cstd -library=Crun'
11978     fi
11979     ;;
11980   esac
11981   ;;
11982
11983 solaris*)
11984   case $cc_basename in
11985   CC*)
11986     # The more standards-conforming stlport4 library is
11987     # incompatible with the Cstd library. Avoid specifying
11988     # it if it's in CXXFLAGS. Ignore libCrun as
11989     # -library=stlport4 depends on it.
11990     case " $CXX $CXXFLAGS " in
11991     *" -library=stlport4 "*)
11992       solaris_use_stlport4=yes
11993       ;;
11994     esac
11995
11996     # Adding this requires a known-good setup of shared libraries for
11997     # Sun compiler versions before 5.6, else PIC objects from an old
11998     # archive will be linked into the output, leading to subtle bugs.
11999     if test "$solaris_use_stlport4" != yes; then
12000       postdeps_CXX='-library=Cstd -library=Crun'
12001     fi
12002     ;;
12003   esac
12004   ;;
12005 esac
12006
12007
12008 case " $postdeps_CXX " in
12009 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12010 esac
12011
12012 lt_prog_compiler_wl_CXX=
12013 lt_prog_compiler_pic_CXX=
12014 lt_prog_compiler_static_CXX=
12015
12016 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12017 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12018
12019   # C++ specific cases for pic, static, wl, etc.
12020   if test "$GXX" = yes; then
12021     lt_prog_compiler_wl_CXX='-Wl,'
12022     lt_prog_compiler_static_CXX='-static'
12023
12024     case $host_os in
12025     aix*)
12026       # All AIX code is PIC.
12027       if test "$host_cpu" = ia64; then
12028         # AIX 5 now supports IA64 processor
12029         lt_prog_compiler_static_CXX='-Bstatic'
12030       fi
12031       ;;
12032     amigaos*)
12033       # FIXME: we need at least 68020 code to build shared libraries, but
12034       # adding the `-m68020' flag to GCC prevents building anything better,
12035       # like `-m68040'.
12036       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12037       ;;
12038     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12039       # PIC is the default for these OSes.
12040       ;;
12041     mingw* | cygwin* | os2* | pw32*)
12042       # This hack is so that the source file can tell whether it is being
12043       # built for inclusion in a dll (and should export symbols for example).
12044       # Although the cygwin gcc ignores -fPIC, still need this for old-style
12045       # (--disable-auto-import) libraries
12046       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12047       ;;
12048     darwin* | rhapsody*)
12049       # PIC is the default on this platform
12050       # Common symbols not allowed in MH_DYLIB files
12051       lt_prog_compiler_pic_CXX='-fno-common'
12052       ;;
12053     *djgpp*)
12054       # DJGPP does not support shared libraries at all
12055       lt_prog_compiler_pic_CXX=
12056       ;;
12057     interix[3-9]*)
12058       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12059       # Instead, we relocate shared libraries at runtime.
12060       ;;
12061     sysv4*MP*)
12062       if test -d /usr/nec; then
12063         lt_prog_compiler_pic_CXX=-Kconform_pic
12064       fi
12065       ;;
12066     hpux*)
12067       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12068       # not for PA HP-UX.
12069       case $host_cpu in
12070       hppa*64*|ia64*)
12071         ;;
12072       *)
12073         lt_prog_compiler_pic_CXX='-fPIC'
12074         ;;
12075       esac
12076       ;;
12077     *)
12078       lt_prog_compiler_pic_CXX='-fPIC'
12079       ;;
12080     esac
12081   else
12082     case $host_os in
12083       aix4* | aix5*)
12084         # All AIX code is PIC.
12085         if test "$host_cpu" = ia64; then
12086           # AIX 5 now supports IA64 processor
12087           lt_prog_compiler_static_CXX='-Bstatic'
12088         else
12089           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12090         fi
12091         ;;
12092       chorus*)
12093         case $cc_basename in
12094         cxch68*)
12095           # Green Hills C++ Compiler
12096           # _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"
12097           ;;
12098         esac
12099         ;;
12100        darwin*)
12101          # PIC is the default on this platform
12102          # Common symbols not allowed in MH_DYLIB files
12103          case $cc_basename in
12104            xlc*)
12105            lt_prog_compiler_pic_CXX='-qnocommon'
12106            lt_prog_compiler_wl_CXX='-Wl,'
12107            ;;
12108          esac
12109        ;;
12110       dgux*)
12111         case $cc_basename in
12112           ec++*)
12113             lt_prog_compiler_pic_CXX='-KPIC'
12114             ;;
12115           ghcx*)
12116             # Green Hills C++ Compiler
12117             lt_prog_compiler_pic_CXX='-pic'
12118             ;;
12119           *)
12120             ;;
12121         esac
12122         ;;
12123       freebsd* | dragonfly*)
12124         # FreeBSD uses GNU C++
12125         ;;
12126       hpux9* | hpux10* | hpux11*)
12127         case $cc_basename in
12128           CC*)
12129             lt_prog_compiler_wl_CXX='-Wl,'
12130             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12131             if test "$host_cpu" != ia64; then
12132               lt_prog_compiler_pic_CXX='+Z'
12133             fi
12134             ;;
12135           aCC*)
12136             lt_prog_compiler_wl_CXX='-Wl,'
12137             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12138             case $host_cpu in
12139             hppa*64*|ia64*)
12140               # +Z the default
12141               ;;
12142             *)
12143               lt_prog_compiler_pic_CXX='+Z'
12144               ;;
12145             esac
12146             ;;
12147           *)
12148             ;;
12149         esac
12150         ;;
12151       interix*)
12152         # This is c89, which is MS Visual C++ (no shared libs)
12153         # Anyone wants to do a port?
12154         ;;
12155       irix5* | irix6* | nonstopux*)
12156         case $cc_basename in
12157           CC*)
12158             lt_prog_compiler_wl_CXX='-Wl,'
12159             lt_prog_compiler_static_CXX='-non_shared'
12160             # CC pic flag -KPIC is the default.
12161             ;;
12162           *)
12163             ;;
12164         esac
12165         ;;
12166       linux* | k*bsd*-gnu)
12167         case $cc_basename in
12168           KCC*)
12169             # KAI C++ Compiler
12170             lt_prog_compiler_wl_CXX='--backend -Wl,'
12171             lt_prog_compiler_pic_CXX='-fPIC'
12172             ;;
12173           icpc* | ecpc*)
12174             # Intel C++
12175             lt_prog_compiler_wl_CXX='-Wl,'
12176             lt_prog_compiler_pic_CXX='-KPIC'
12177             lt_prog_compiler_static_CXX='-static'
12178             ;;
12179           pgCC*)
12180             # Portland Group C++ compiler.
12181             lt_prog_compiler_wl_CXX='-Wl,'
12182             lt_prog_compiler_pic_CXX='-fpic'
12183             lt_prog_compiler_static_CXX='-Bstatic'
12184             ;;
12185           cxx*)
12186             # Compaq C++
12187             # Make sure the PIC flag is empty.  It appears that all Alpha
12188             # Linux and Compaq Tru64 Unix objects are PIC.
12189             lt_prog_compiler_pic_CXX=
12190             lt_prog_compiler_static_CXX='-non_shared'
12191             ;;
12192           *)
12193             case `$CC -V 2>&1 | sed 5q` in
12194             *Sun\ C*)
12195               # Sun C++ 5.9
12196               lt_prog_compiler_pic_CXX='-KPIC'
12197               lt_prog_compiler_static_CXX='-Bstatic'
12198               lt_prog_compiler_wl_CXX='-Qoption ld '
12199               ;;
12200             esac
12201             ;;
12202         esac
12203         ;;
12204       lynxos*)
12205         ;;
12206       m88k*)
12207         ;;
12208       mvs*)
12209         case $cc_basename in
12210           cxx*)
12211             lt_prog_compiler_pic_CXX='-W c,exportall'
12212             ;;
12213           *)
12214             ;;
12215         esac
12216         ;;
12217       netbsd*)
12218         ;;
12219       osf3* | osf4* | osf5*)
12220         case $cc_basename in
12221           KCC*)
12222             lt_prog_compiler_wl_CXX='--backend -Wl,'
12223             ;;
12224           RCC*)
12225             # Rational C++ 2.4.1
12226             lt_prog_compiler_pic_CXX='-pic'
12227             ;;
12228           cxx*)
12229             # Digital/Compaq C++
12230             lt_prog_compiler_wl_CXX='-Wl,'
12231             # Make sure the PIC flag is empty.  It appears that all Alpha
12232             # Linux and Compaq Tru64 Unix objects are PIC.
12233             lt_prog_compiler_pic_CXX=
12234             lt_prog_compiler_static_CXX='-non_shared'
12235             ;;
12236           *)
12237             ;;
12238         esac
12239         ;;
12240       psos*)
12241         ;;
12242       solaris*)
12243         case $cc_basename in
12244           CC*)
12245             # Sun C++ 4.2, 5.x and Centerline C++
12246             lt_prog_compiler_pic_CXX='-KPIC'
12247             lt_prog_compiler_static_CXX='-Bstatic'
12248             lt_prog_compiler_wl_CXX='-Qoption ld '
12249             ;;
12250           gcx*)
12251             # Green Hills C++ Compiler
12252             lt_prog_compiler_pic_CXX='-PIC'
12253             ;;
12254           *)
12255             ;;
12256         esac
12257         ;;
12258       sunos4*)
12259         case $cc_basename in
12260           CC*)
12261             # Sun C++ 4.x
12262             lt_prog_compiler_pic_CXX='-pic'
12263             lt_prog_compiler_static_CXX='-Bstatic'
12264             ;;
12265           lcc*)
12266             # Lucid
12267             lt_prog_compiler_pic_CXX='-pic'
12268             ;;
12269           *)
12270             ;;
12271         esac
12272         ;;
12273       tandem*)
12274         case $cc_basename in
12275           NCC*)
12276             # NonStop-UX NCC 3.20
12277             lt_prog_compiler_pic_CXX='-KPIC'
12278             ;;
12279           *)
12280             ;;
12281         esac
12282         ;;
12283       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12284         case $cc_basename in
12285           CC*)
12286             lt_prog_compiler_wl_CXX='-Wl,'
12287             lt_prog_compiler_pic_CXX='-KPIC'
12288             lt_prog_compiler_static_CXX='-Bstatic'
12289             ;;
12290         esac
12291         ;;
12292       vxworks*)
12293         ;;
12294       *)
12295         lt_prog_compiler_can_build_shared_CXX=no
12296         ;;
12297     esac
12298   fi
12299
12300 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12301 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12302
12303 #
12304 # Check to make sure the PIC flag actually works.
12305 #
12306 if test -n "$lt_prog_compiler_pic_CXX"; then
12307
12308 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12309 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12310 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12311   echo $ECHO_N "(cached) $ECHO_C" >&6
12312 else
12313   lt_prog_compiler_pic_works_CXX=no
12314   ac_outfile=conftest.$ac_objext
12315    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12316    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12317    # Insert the option either (1) after the last *FLAGS variable, or
12318    # (2) before a word containing "conftest.", or (3) at the end.
12319    # Note that $ac_compile itself does not contain backslashes and begins
12320    # with a dollar sign (not a hyphen), so the echo should work correctly.
12321    # The option is referenced via a variable to avoid confusing sed.
12322    lt_compile=`echo "$ac_compile" | $SED \
12323    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12324    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12325    -e 's:$: $lt_compiler_flag:'`
12326    (eval echo "\"\$as_me:12326: $lt_compile\"" >&5)
12327    (eval "$lt_compile" 2>conftest.err)
12328    ac_status=$?
12329    cat conftest.err >&5
12330    echo "$as_me:12330: \$? = $ac_status" >&5
12331    if (exit $ac_status) && test -s "$ac_outfile"; then
12332      # The compiler can only warn and ignore the option if not recognized
12333      # So say no if there are warnings other than the usual output.
12334      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12335      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12336      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12337        lt_prog_compiler_pic_works_CXX=yes
12338      fi
12339    fi
12340    $rm conftest*
12341
12342 fi
12343 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12344 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12345
12346 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12347     case $lt_prog_compiler_pic_CXX in
12348      "" | " "*) ;;
12349      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12350      esac
12351 else
12352     lt_prog_compiler_pic_CXX=
12353      lt_prog_compiler_can_build_shared_CXX=no
12354 fi
12355
12356 fi
12357 case $host_os in
12358   # For platforms which do not support PIC, -DPIC is meaningless:
12359   *djgpp*)
12360     lt_prog_compiler_pic_CXX=
12361     ;;
12362   *)
12363     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12364     ;;
12365 esac
12366
12367 #
12368 # Check to make sure the static flag actually works.
12369 #
12370 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12371 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12372 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12373 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12374   echo $ECHO_N "(cached) $ECHO_C" >&6
12375 else
12376   lt_prog_compiler_static_works_CXX=no
12377    save_LDFLAGS="$LDFLAGS"
12378    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12379    echo "$lt_simple_link_test_code" > conftest.$ac_ext
12380    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12381      # The linker can only warn and ignore the option if not recognized
12382      # So say no if there are warnings
12383      if test -s conftest.err; then
12384        # Append any errors to the config.log.
12385        cat conftest.err 1>&5
12386        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12387        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12388        if diff conftest.exp conftest.er2 >/dev/null; then
12389          lt_prog_compiler_static_works_CXX=yes
12390        fi
12391      else
12392        lt_prog_compiler_static_works_CXX=yes
12393      fi
12394    fi
12395    $rm conftest*
12396    LDFLAGS="$save_LDFLAGS"
12397
12398 fi
12399 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12400 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12401
12402 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12403     :
12404 else
12405     lt_prog_compiler_static_CXX=
12406 fi
12407
12408
12409 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12410 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12411 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12412   echo $ECHO_N "(cached) $ECHO_C" >&6
12413 else
12414   lt_cv_prog_compiler_c_o_CXX=no
12415    $rm -r conftest 2>/dev/null
12416    mkdir conftest
12417    cd conftest
12418    mkdir out
12419    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12420
12421    lt_compiler_flag="-o out/conftest2.$ac_objext"
12422    # Insert the option either (1) after the last *FLAGS variable, or
12423    # (2) before a word containing "conftest.", or (3) at the end.
12424    # Note that $ac_compile itself does not contain backslashes and begins
12425    # with a dollar sign (not a hyphen), so the echo should work correctly.
12426    lt_compile=`echo "$ac_compile" | $SED \
12427    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12428    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12429    -e 's:$: $lt_compiler_flag:'`
12430    (eval echo "\"\$as_me:12430: $lt_compile\"" >&5)
12431    (eval "$lt_compile" 2>out/conftest.err)
12432    ac_status=$?
12433    cat out/conftest.err >&5
12434    echo "$as_me:12434: \$? = $ac_status" >&5
12435    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12436    then
12437      # The compiler can only warn and ignore the option if not recognized
12438      # So say no if there are warnings
12439      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12440      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12441      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12442        lt_cv_prog_compiler_c_o_CXX=yes
12443      fi
12444    fi
12445    chmod u+w . 2>&5
12446    $rm conftest*
12447    # SGI C++ compiler will create directory out/ii_files/ for
12448    # template instantiation
12449    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12450    $rm out/* && rmdir out
12451    cd ..
12452    rmdir conftest
12453    $rm conftest*
12454
12455 fi
12456 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12457 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12458
12459
12460 hard_links="nottested"
12461 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12462   # do not overwrite the value of need_locks provided by the user
12463   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12464 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12465   hard_links=yes
12466   $rm conftest*
12467   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12468   touch conftest.a
12469   ln conftest.a conftest.b 2>&5 || hard_links=no
12470   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12471   { echo "$as_me:$LINENO: result: $hard_links" >&5
12472 echo "${ECHO_T}$hard_links" >&6; }
12473   if test "$hard_links" = no; then
12474     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12475 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12476     need_locks=warn
12477   fi
12478 else
12479   need_locks=no
12480 fi
12481
12482 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12483 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12484
12485   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12486   case $host_os in
12487   aix4* | aix5*)
12488     # If we're using GNU nm, then we don't want the "-C" option.
12489     # -C means demangle to AIX nm, but means don't demangle with GNU nm
12490     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12491       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'
12492     else
12493       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'
12494     fi
12495     ;;
12496   pw32*)
12497     export_symbols_cmds_CXX="$ltdll_cmds"
12498   ;;
12499   cygwin* | mingw*)
12500     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'
12501   ;;
12502   *)
12503     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12504   ;;
12505   esac
12506
12507 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12508 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12509 test "$ld_shlibs_CXX" = no && can_build_shared=no
12510
12511 #
12512 # Do we need to explicitly link libc?
12513 #
12514 case "x$archive_cmds_need_lc_CXX" in
12515 x|xyes)
12516   # Assume -lc should be added
12517   archive_cmds_need_lc_CXX=yes
12518
12519   if test "$enable_shared" = yes && test "$GCC" = yes; then
12520     case $archive_cmds_CXX in
12521     *'~'*)
12522       # FIXME: we may have to deal with multi-command sequences.
12523       ;;
12524     '$CC '*)
12525       # Test whether the compiler implicitly links with -lc since on some
12526       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12527       # to ld, don't add -lc before -lgcc.
12528       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12529 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12530       $rm conftest*
12531       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12532
12533       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12534   (eval $ac_compile) 2>&5
12535   ac_status=$?
12536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12537   (exit $ac_status); } 2>conftest.err; then
12538         soname=conftest
12539         lib=conftest
12540         libobjs=conftest.$ac_objext
12541         deplibs=
12542         wl=$lt_prog_compiler_wl_CXX
12543         pic_flag=$lt_prog_compiler_pic_CXX
12544         compiler_flags=-v
12545         linker_flags=-v
12546         verstring=
12547         output_objdir=.
12548         libname=conftest
12549         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12550         allow_undefined_flag_CXX=
12551         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12552   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12553   ac_status=$?
12554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12555   (exit $ac_status); }
12556         then
12557           archive_cmds_need_lc_CXX=no
12558         else
12559           archive_cmds_need_lc_CXX=yes
12560         fi
12561         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12562       else
12563         cat conftest.err 1>&5
12564       fi
12565       $rm conftest*
12566       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12567 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12568       ;;
12569     esac
12570   fi
12571   ;;
12572 esac
12573
12574 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12575 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12576 library_names_spec=
12577 libname_spec='lib$name'
12578 soname_spec=
12579 shrext_cmds=".so"
12580 postinstall_cmds=
12581 postuninstall_cmds=
12582 finish_cmds=
12583 finish_eval=
12584 shlibpath_var=
12585 shlibpath_overrides_runpath=unknown
12586 version_type=none
12587 dynamic_linker="$host_os ld.so"
12588 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12589
12590 need_lib_prefix=unknown
12591 hardcode_into_libs=no
12592
12593 # when you set need_version to no, make sure it does not cause -set_version
12594 # flags to be left without arguments
12595 need_version=unknown
12596
12597 case $host_os in
12598 aix3*)
12599   version_type=linux
12600   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12601   shlibpath_var=LIBPATH
12602
12603   # AIX 3 has no versioning support, so we append a major version to the name.
12604   soname_spec='${libname}${release}${shared_ext}$major'
12605   ;;
12606
12607 aix4* | aix5*)
12608   version_type=linux
12609   need_lib_prefix=no
12610   need_version=no
12611   hardcode_into_libs=yes
12612   if test "$host_cpu" = ia64; then
12613     # AIX 5 supports IA64
12614     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12615     shlibpath_var=LD_LIBRARY_PATH
12616   else
12617     # With GCC up to 2.95.x, collect2 would create an import file
12618     # for dependence libraries.  The import file would start with
12619     # the line `#! .'.  This would cause the generated library to
12620     # depend on `.', always an invalid library.  This was fixed in
12621     # development snapshots of GCC prior to 3.0.
12622     case $host_os in
12623       aix4 | aix4.[01] | aix4.[01].*)
12624       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12625            echo ' yes '
12626            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12627         :
12628       else
12629         can_build_shared=no
12630       fi
12631       ;;
12632     esac
12633     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12634     # soname into executable. Probably we can add versioning support to
12635     # collect2, so additional links can be useful in future.
12636     if test "$aix_use_runtimelinking" = yes; then
12637       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12638       # instead of lib<name>.a to let people know that these are not
12639       # typical AIX shared libraries.
12640       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12641     else
12642       # We preserve .a as extension for shared libraries through AIX4.2
12643       # and later when we are not doing run time linking.
12644       library_names_spec='${libname}${release}.a $libname.a'
12645       soname_spec='${libname}${release}${shared_ext}$major'
12646     fi
12647     shlibpath_var=LIBPATH
12648   fi
12649   ;;
12650
12651 amigaos*)
12652   library_names_spec='$libname.ixlibrary $libname.a'
12653   # Create ${libname}_ixlibrary.a entries in /sys/libs.
12654   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'
12655   ;;
12656
12657 beos*)
12658   library_names_spec='${libname}${shared_ext}'
12659   dynamic_linker="$host_os ld.so"
12660   shlibpath_var=LIBRARY_PATH
12661   ;;
12662
12663 bsdi[45]*)
12664   version_type=linux
12665   need_version=no
12666   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12667   soname_spec='${libname}${release}${shared_ext}$major'
12668   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12669   shlibpath_var=LD_LIBRARY_PATH
12670   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12671   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12672   # the default ld.so.conf also contains /usr/contrib/lib and
12673   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12674   # libtool to hard-code these into programs
12675   ;;
12676
12677 cygwin* | mingw* | pw32*)
12678   version_type=windows
12679   shrext_cmds=".dll"
12680   need_version=no
12681   need_lib_prefix=no
12682
12683   case $GCC,$host_os in
12684   yes,cygwin* | yes,mingw* | yes,pw32*)
12685     library_names_spec='$libname.dll.a'
12686     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12687     postinstall_cmds='base_file=`basename \${file}`~
12688       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12689       dldir=$destdir/`dirname \$dlpath`~
12690       test -d \$dldir || mkdir -p \$dldir~
12691       $install_prog $dir/$dlname \$dldir/$dlname~
12692       chmod a+x \$dldir/$dlname'
12693     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12694       dlpath=$dir/\$dldll~
12695        $rm \$dlpath'
12696     shlibpath_overrides_runpath=yes
12697
12698     case $host_os in
12699     cygwin*)
12700       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12701       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12702       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12703       ;;
12704     mingw*)
12705       # MinGW DLLs use traditional 'lib' prefix
12706       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12707       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12708       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12709         # It is most probably a Windows format PATH printed by
12710         # mingw gcc, but we are running on Cygwin. Gcc prints its search
12711         # path with ; separators, and with drive letters. We can handle the
12712         # drive letters (cygwin fileutils understands them), so leave them,
12713         # especially as we might pass files found there to a mingw objdump,
12714         # which wouldn't understand a cygwinified path. Ahh.
12715         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12716       else
12717         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12718       fi
12719       ;;
12720     pw32*)
12721       # pw32 DLLs use 'pw' prefix rather than 'lib'
12722       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12723       ;;
12724     esac
12725     ;;
12726
12727   *)
12728     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12729     ;;
12730   esac
12731   dynamic_linker='Win32 ld.exe'
12732   # FIXME: first we should search . and the directory the executable is in
12733   shlibpath_var=PATH
12734   ;;
12735
12736 darwin* | rhapsody*)
12737   dynamic_linker="$host_os dyld"
12738   version_type=darwin
12739   need_lib_prefix=no
12740   need_version=no
12741   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12742   soname_spec='${libname}${release}${major}$shared_ext'
12743   shlibpath_overrides_runpath=yes
12744   shlibpath_var=DYLD_LIBRARY_PATH
12745   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12746
12747   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12748   ;;
12749
12750 dgux*)
12751   version_type=linux
12752   need_lib_prefix=no
12753   need_version=no
12754   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12755   soname_spec='${libname}${release}${shared_ext}$major'
12756   shlibpath_var=LD_LIBRARY_PATH
12757   ;;
12758
12759 freebsd1*)
12760   dynamic_linker=no
12761   ;;
12762
12763 freebsd* | dragonfly*)
12764   # DragonFly does not have aout.  When/if they implement a new
12765   # versioning mechanism, adjust this.
12766   if test -x /usr/bin/objformat; then
12767     objformat=`/usr/bin/objformat`
12768   else
12769     case $host_os in
12770     freebsd[123]*) objformat=aout ;;
12771     *) objformat=elf ;;
12772     esac
12773   fi
12774   version_type=freebsd-$objformat
12775   case $version_type in
12776     freebsd-elf*)
12777       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12778       need_version=no
12779       need_lib_prefix=no
12780       ;;
12781     freebsd-*)
12782       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12783       need_version=yes
12784       ;;
12785   esac
12786   shlibpath_var=LD_LIBRARY_PATH
12787   case $host_os in
12788   freebsd2*)
12789     shlibpath_overrides_runpath=yes
12790     ;;
12791   freebsd3.[01]* | freebsdelf3.[01]*)
12792     shlibpath_overrides_runpath=yes
12793     hardcode_into_libs=yes
12794     ;;
12795   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12796   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12797     shlibpath_overrides_runpath=no
12798     hardcode_into_libs=yes
12799     ;;
12800   *) # from 4.6 on, and DragonFly
12801     shlibpath_overrides_runpath=yes
12802     hardcode_into_libs=yes
12803     ;;
12804   esac
12805   ;;
12806
12807 gnu*)
12808   version_type=linux
12809   need_lib_prefix=no
12810   need_version=no
12811   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12812   soname_spec='${libname}${release}${shared_ext}$major'
12813   shlibpath_var=LD_LIBRARY_PATH
12814   hardcode_into_libs=yes
12815   ;;
12816
12817 hpux9* | hpux10* | hpux11*)
12818   # Give a soname corresponding to the major version so that dld.sl refuses to
12819   # link against other versions.
12820   version_type=sunos
12821   need_lib_prefix=no
12822   need_version=no
12823   case $host_cpu in
12824   ia64*)
12825     shrext_cmds='.so'
12826     hardcode_into_libs=yes
12827     dynamic_linker="$host_os dld.so"
12828     shlibpath_var=LD_LIBRARY_PATH
12829     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12830     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12831     soname_spec='${libname}${release}${shared_ext}$major'
12832     if test "X$HPUX_IA64_MODE" = X32; then
12833       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12834     else
12835       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12836     fi
12837     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12838     ;;
12839    hppa*64*)
12840      shrext_cmds='.sl'
12841      hardcode_into_libs=yes
12842      dynamic_linker="$host_os dld.sl"
12843      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12844      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12845      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12846      soname_spec='${libname}${release}${shared_ext}$major'
12847      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12848      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12849      ;;
12850    *)
12851     shrext_cmds='.sl'
12852     dynamic_linker="$host_os dld.sl"
12853     shlibpath_var=SHLIB_PATH
12854     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12855     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12856     soname_spec='${libname}${release}${shared_ext}$major'
12857     ;;
12858   esac
12859   # HP-UX runs *really* slowly unless shared libraries are mode 555.
12860   postinstall_cmds='chmod 555 $lib'
12861   ;;
12862
12863 interix[3-9]*)
12864   version_type=linux
12865   need_lib_prefix=no
12866   need_version=no
12867   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12868   soname_spec='${libname}${release}${shared_ext}$major'
12869   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12870   shlibpath_var=LD_LIBRARY_PATH
12871   shlibpath_overrides_runpath=no
12872   hardcode_into_libs=yes
12873   ;;
12874
12875 irix5* | irix6* | nonstopux*)
12876   case $host_os in
12877     nonstopux*) version_type=nonstopux ;;
12878     *)
12879         if test "$lt_cv_prog_gnu_ld" = yes; then
12880                 version_type=linux
12881         else
12882                 version_type=irix
12883         fi ;;
12884   esac
12885   need_lib_prefix=no
12886   need_version=no
12887   soname_spec='${libname}${release}${shared_ext}$major'
12888   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12889   case $host_os in
12890   irix5* | nonstopux*)
12891     libsuff= shlibsuff=
12892     ;;
12893   *)
12894     case $LD in # libtool.m4 will add one of these switches to LD
12895     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12896       libsuff= shlibsuff= libmagic=32-bit;;
12897     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12898       libsuff=32 shlibsuff=N32 libmagic=N32;;
12899     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12900       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12901     *) libsuff= shlibsuff= libmagic=never-match;;
12902     esac
12903     ;;
12904   esac
12905   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12906   shlibpath_overrides_runpath=no
12907   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12908   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12909   hardcode_into_libs=yes
12910   ;;
12911
12912 # No shared lib support for Linux oldld, aout, or coff.
12913 linux*oldld* | linux*aout* | linux*coff*)
12914   dynamic_linker=no
12915   ;;
12916
12917 # This must be Linux ELF.
12918 linux* | k*bsd*-gnu)
12919   version_type=linux
12920   need_lib_prefix=no
12921   need_version=no
12922   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12923   soname_spec='${libname}${release}${shared_ext}$major'
12924   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12925   shlibpath_var=LD_LIBRARY_PATH
12926   shlibpath_overrides_runpath=no
12927   # This implies no fast_install, which is unacceptable.
12928   # Some rework will be needed to allow for fast_install
12929   # before this can be enabled.
12930   hardcode_into_libs=yes
12931
12932   # find out which ABI we are using
12933   libsuff=
12934   case "$host_cpu" in
12935   x86_64*|s390x*|powerpc64*)
12936     echo '#line 12936 "configure"' > conftest.$ac_ext
12937     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12938   (eval $ac_compile) 2>&5
12939   ac_status=$?
12940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12941   (exit $ac_status); }; then
12942       case `/usr/bin/file conftest.$ac_objext` in
12943       *64-bit*)
12944         libsuff=64
12945         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
12946         ;;
12947       esac
12948     fi
12949     rm -rf conftest*
12950     ;;
12951   esac
12952
12953   # Append ld.so.conf contents to the search path
12954   if test -f /etc/ld.so.conf; then
12955     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12956     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
12957   fi
12958
12959   # We used to test for /lib/ld.so.1 and disable shared libraries on
12960   # powerpc, because MkLinux only supported shared libraries with the
12961   # GNU dynamic linker.  Since this was broken with cross compilers,
12962   # most powerpc-linux boxes support dynamic linking these days and
12963   # people can always --disable-shared, the test was removed, and we
12964   # assume the GNU/Linux dynamic linker is in use.
12965   dynamic_linker='GNU/Linux ld.so'
12966   ;;
12967
12968 netbsd*)
12969   version_type=sunos
12970   need_lib_prefix=no
12971   need_version=no
12972   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12973     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12974     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12975     dynamic_linker='NetBSD (a.out) ld.so'
12976   else
12977     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12978     soname_spec='${libname}${release}${shared_ext}$major'
12979     dynamic_linker='NetBSD ld.elf_so'
12980   fi
12981   shlibpath_var=LD_LIBRARY_PATH
12982   shlibpath_overrides_runpath=yes
12983   hardcode_into_libs=yes
12984   ;;
12985
12986 newsos6)
12987   version_type=linux
12988   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12989   shlibpath_var=LD_LIBRARY_PATH
12990   shlibpath_overrides_runpath=yes
12991   ;;
12992
12993 nto-qnx*)
12994   version_type=linux
12995   need_lib_prefix=no
12996   need_version=no
12997   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12998   soname_spec='${libname}${release}${shared_ext}$major'
12999   shlibpath_var=LD_LIBRARY_PATH
13000   shlibpath_overrides_runpath=yes
13001   ;;
13002
13003 openbsd*)
13004   version_type=sunos
13005   sys_lib_dlsearch_path_spec="/usr/lib"
13006   need_lib_prefix=no
13007   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13008   case $host_os in
13009     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13010     *)                         need_version=no  ;;
13011   esac
13012   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13013   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13014   shlibpath_var=LD_LIBRARY_PATH
13015   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13016     case $host_os in
13017       openbsd2.[89] | openbsd2.[89].*)
13018         shlibpath_overrides_runpath=no
13019         ;;
13020       *)
13021         shlibpath_overrides_runpath=yes
13022         ;;
13023       esac
13024   else
13025     shlibpath_overrides_runpath=yes
13026   fi
13027   ;;
13028
13029 os2*)
13030   libname_spec='$name'
13031   shrext_cmds=".dll"
13032   need_lib_prefix=no
13033   library_names_spec='$libname${shared_ext} $libname.a'
13034   dynamic_linker='OS/2 ld.exe'
13035   shlibpath_var=LIBPATH
13036   ;;
13037
13038 osf3* | osf4* | osf5*)
13039   version_type=osf
13040   need_lib_prefix=no
13041   need_version=no
13042   soname_spec='${libname}${release}${shared_ext}$major'
13043   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13044   shlibpath_var=LD_LIBRARY_PATH
13045   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13046   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13047   ;;
13048
13049 rdos*)
13050   dynamic_linker=no
13051   ;;
13052
13053 solaris*)
13054   version_type=linux
13055   need_lib_prefix=no
13056   need_version=no
13057   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13058   soname_spec='${libname}${release}${shared_ext}$major'
13059   shlibpath_var=LD_LIBRARY_PATH
13060   shlibpath_overrides_runpath=yes
13061   hardcode_into_libs=yes
13062   # ldd complains unless libraries are executable
13063   postinstall_cmds='chmod +x $lib'
13064   ;;
13065
13066 sunos4*)
13067   version_type=sunos
13068   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13069   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13070   shlibpath_var=LD_LIBRARY_PATH
13071   shlibpath_overrides_runpath=yes
13072   if test "$with_gnu_ld" = yes; then
13073     need_lib_prefix=no
13074   fi
13075   need_version=yes
13076   ;;
13077
13078 sysv4 | sysv4.3*)
13079   version_type=linux
13080   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13081   soname_spec='${libname}${release}${shared_ext}$major'
13082   shlibpath_var=LD_LIBRARY_PATH
13083   case $host_vendor in
13084     sni)
13085       shlibpath_overrides_runpath=no
13086       need_lib_prefix=no
13087       export_dynamic_flag_spec='${wl}-Blargedynsym'
13088       runpath_var=LD_RUN_PATH
13089       ;;
13090     siemens)
13091       need_lib_prefix=no
13092       ;;
13093     motorola)
13094       need_lib_prefix=no
13095       need_version=no
13096       shlibpath_overrides_runpath=no
13097       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13098       ;;
13099   esac
13100   ;;
13101
13102 sysv4*MP*)
13103   if test -d /usr/nec ;then
13104     version_type=linux
13105     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13106     soname_spec='$libname${shared_ext}.$major'
13107     shlibpath_var=LD_LIBRARY_PATH
13108   fi
13109   ;;
13110
13111 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13112   version_type=freebsd-elf
13113   need_lib_prefix=no
13114   need_version=no
13115   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13116   soname_spec='${libname}${release}${shared_ext}$major'
13117   shlibpath_var=LD_LIBRARY_PATH
13118   hardcode_into_libs=yes
13119   if test "$with_gnu_ld" = yes; then
13120     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13121     shlibpath_overrides_runpath=no
13122   else
13123     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13124     shlibpath_overrides_runpath=yes
13125     case $host_os in
13126       sco3.2v5*)
13127         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13128         ;;
13129     esac
13130   fi
13131   sys_lib_dlsearch_path_spec='/usr/lib'
13132   ;;
13133
13134 uts4*)
13135   version_type=linux
13136   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13137   soname_spec='${libname}${release}${shared_ext}$major'
13138   shlibpath_var=LD_LIBRARY_PATH
13139   ;;
13140
13141 *)
13142   dynamic_linker=no
13143   ;;
13144 esac
13145 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13146 echo "${ECHO_T}$dynamic_linker" >&6; }
13147 test "$dynamic_linker" = no && can_build_shared=no
13148
13149 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13150 if test "$GCC" = yes; then
13151   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13152 fi
13153
13154 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13155 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13156 hardcode_action_CXX=
13157 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13158    test -n "$runpath_var_CXX" || \
13159    test "X$hardcode_automatic_CXX" = "Xyes" ; then
13160
13161   # We can hardcode non-existant directories.
13162   if test "$hardcode_direct_CXX" != no &&
13163      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13164      # have to relink, otherwise we might link with an installed library
13165      # when we should be linking with a yet-to-be-installed one
13166      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13167      test "$hardcode_minus_L_CXX" != no; then
13168     # Linking always hardcodes the temporary library directory.
13169     hardcode_action_CXX=relink
13170   else
13171     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13172     hardcode_action_CXX=immediate
13173   fi
13174 else
13175   # We cannot hardcode anything, or else we can only hardcode existing
13176   # directories.
13177   hardcode_action_CXX=unsupported
13178 fi
13179 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13180 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13181
13182 if test "$hardcode_action_CXX" = relink; then
13183   # Fast installation is not supported
13184   enable_fast_install=no
13185 elif test "$shlibpath_overrides_runpath" = yes ||
13186      test "$enable_shared" = no; then
13187   # Fast installation is not necessary
13188   enable_fast_install=needless
13189 fi
13190
13191
13192 # The else clause should only fire when bootstrapping the
13193 # libtool distribution, otherwise you forgot to ship ltmain.sh
13194 # with your package, and you will get complaints that there are
13195 # no rules to generate ltmain.sh.
13196 if test -f "$ltmain"; then
13197   # See if we are running on zsh, and set the options which allow our commands through
13198   # without removal of \ escapes.
13199   if test -n "${ZSH_VERSION+set}" ; then
13200     setopt NO_GLOB_SUBST
13201   fi
13202   # Now quote all the things that may contain metacharacters while being
13203   # careful not to overquote the AC_SUBSTed values.  We take copies of the
13204   # variables and quote the copies for generation of the libtool script.
13205   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13206     SED SHELL STRIP \
13207     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13208     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13209     deplibs_check_method reload_flag reload_cmds need_locks \
13210     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13211     lt_cv_sys_global_symbol_to_c_name_address \
13212     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13213     old_postinstall_cmds old_postuninstall_cmds \
13214     compiler_CXX \
13215     CC_CXX \
13216     LD_CXX \
13217     lt_prog_compiler_wl_CXX \
13218     lt_prog_compiler_pic_CXX \
13219     lt_prog_compiler_static_CXX \
13220     lt_prog_compiler_no_builtin_flag_CXX \
13221     export_dynamic_flag_spec_CXX \
13222     thread_safe_flag_spec_CXX \
13223     whole_archive_flag_spec_CXX \
13224     enable_shared_with_static_runtimes_CXX \
13225     old_archive_cmds_CXX \
13226     old_archive_from_new_cmds_CXX \
13227     predep_objects_CXX \
13228     postdep_objects_CXX \
13229     predeps_CXX \
13230     postdeps_CXX \
13231     compiler_lib_search_path_CXX \
13232     archive_cmds_CXX \
13233     archive_expsym_cmds_CXX \
13234     postinstall_cmds_CXX \
13235     postuninstall_cmds_CXX \
13236     old_archive_from_expsyms_cmds_CXX \
13237     allow_undefined_flag_CXX \
13238     no_undefined_flag_CXX \
13239     export_symbols_cmds_CXX \
13240     hardcode_libdir_flag_spec_CXX \
13241     hardcode_libdir_flag_spec_ld_CXX \
13242     hardcode_libdir_separator_CXX \
13243     hardcode_automatic_CXX \
13244     module_cmds_CXX \
13245     module_expsym_cmds_CXX \
13246     lt_cv_prog_compiler_c_o_CXX \
13247     fix_srcfile_path_CXX \
13248     exclude_expsyms_CXX \
13249     include_expsyms_CXX; do
13250
13251     case $var in
13252     old_archive_cmds_CXX | \
13253     old_archive_from_new_cmds_CXX | \
13254     archive_cmds_CXX | \
13255     archive_expsym_cmds_CXX | \
13256     module_cmds_CXX | \
13257     module_expsym_cmds_CXX | \
13258     old_archive_from_expsyms_cmds_CXX | \
13259     export_symbols_cmds_CXX | \
13260     extract_expsyms_cmds | reload_cmds | finish_cmds | \
13261     postinstall_cmds | postuninstall_cmds | \
13262     old_postinstall_cmds | old_postuninstall_cmds | \
13263     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13264       # Double-quote double-evaled strings.
13265       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13266       ;;
13267     *)
13268       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13269       ;;
13270     esac
13271   done
13272
13273   case $lt_echo in
13274   *'\$0 --fallback-echo"')
13275     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13276     ;;
13277   esac
13278
13279 cfgfile="$ofile"
13280
13281   cat <<__EOF__ >> "$cfgfile"
13282 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13283
13284 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13285
13286 # Shell to use when invoking shell scripts.
13287 SHELL=$lt_SHELL
13288
13289 # Whether or not to build shared libraries.
13290 build_libtool_libs=$enable_shared
13291
13292 # Whether or not to build static libraries.
13293 build_old_libs=$enable_static
13294
13295 # Whether or not to add -lc for building shared libraries.
13296 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13297
13298 # Whether or not to disallow shared libs when runtime libs are static
13299 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13300
13301 # Whether or not to optimize for fast installation.
13302 fast_install=$enable_fast_install
13303
13304 # The host system.
13305 host_alias=$host_alias
13306 host=$host
13307 host_os=$host_os
13308
13309 # The build system.
13310 build_alias=$build_alias
13311 build=$build
13312 build_os=$build_os
13313
13314 # An echo program that does not interpret backslashes.
13315 echo=$lt_echo
13316
13317 # The archiver.
13318 AR=$lt_AR
13319 AR_FLAGS=$lt_AR_FLAGS
13320
13321 # A C compiler.
13322 LTCC=$lt_LTCC
13323
13324 # LTCC compiler flags.
13325 LTCFLAGS=$lt_LTCFLAGS
13326
13327 # A language-specific compiler.
13328 CC=$lt_compiler_CXX
13329
13330 # Is the compiler the GNU C compiler?
13331 with_gcc=$GCC_CXX
13332
13333 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
13334 gcc_ver=\`gcc -dumpversion\`
13335
13336 # An ERE matcher.
13337 EGREP=$lt_EGREP
13338
13339 # The linker used to build libraries.
13340 LD=$lt_LD_CXX
13341
13342 # Whether we need hard or soft links.
13343 LN_S=$lt_LN_S
13344
13345 # A BSD-compatible nm program.
13346 NM=$lt_NM
13347
13348 # A symbol stripping program
13349 STRIP=$lt_STRIP
13350
13351 # Used to examine libraries when file_magic_cmd begins "file"
13352 MAGIC_CMD=$MAGIC_CMD
13353
13354 # Used on cygwin: DLL creation program.
13355 DLLTOOL="$DLLTOOL"
13356
13357 # Used on cygwin: object dumper.
13358 OBJDUMP="$OBJDUMP"
13359
13360 # Used on cygwin: assembler.
13361 AS="$AS"
13362
13363 # The name of the directory that contains temporary libtool files.
13364 objdir=$objdir
13365
13366 # How to create reloadable object files.
13367 reload_flag=$lt_reload_flag
13368 reload_cmds=$lt_reload_cmds
13369
13370 # How to pass a linker flag through the compiler.
13371 wl=$lt_lt_prog_compiler_wl_CXX
13372
13373 # Object file suffix (normally "o").
13374 objext="$ac_objext"
13375
13376 # Old archive suffix (normally "a").
13377 libext="$libext"
13378
13379 # Shared library suffix (normally ".so").
13380 shrext_cmds='$shrext_cmds'
13381
13382 # Executable file suffix (normally "").
13383 exeext="$exeext"
13384
13385 # Additional compiler flags for building library objects.
13386 pic_flag=$lt_lt_prog_compiler_pic_CXX
13387 pic_mode=$pic_mode
13388
13389 # What is the maximum length of a command?
13390 max_cmd_len=$lt_cv_sys_max_cmd_len
13391
13392 # Does compiler simultaneously support -c and -o options?
13393 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13394
13395 # Must we lock files when doing compilation?
13396 need_locks=$lt_need_locks
13397
13398 # Do we need the lib prefix for modules?
13399 need_lib_prefix=$need_lib_prefix
13400
13401 # Do we need a version for libraries?
13402 need_version=$need_version
13403
13404 # Whether dlopen is supported.
13405 dlopen_support=$enable_dlopen
13406
13407 # Whether dlopen of programs is supported.
13408 dlopen_self=$enable_dlopen_self
13409
13410 # Whether dlopen of statically linked programs is supported.
13411 dlopen_self_static=$enable_dlopen_self_static
13412
13413 # Compiler flag to prevent dynamic linking.
13414 link_static_flag=$lt_lt_prog_compiler_static_CXX
13415
13416 # Compiler flag to turn off builtin functions.
13417 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13418
13419 # Compiler flag to allow reflexive dlopens.
13420 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13421
13422 # Compiler flag to generate shared objects directly from archives.
13423 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13424
13425 # Compiler flag to generate thread-safe objects.
13426 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13427
13428 # Library versioning type.
13429 version_type=$version_type
13430
13431 # Format of library name prefix.
13432 libname_spec=$lt_libname_spec
13433
13434 # List of archive names.  First name is the real one, the rest are links.
13435 # The last name is the one that the linker finds with -lNAME.
13436 library_names_spec=$lt_library_names_spec
13437
13438 # The coded name of the library, if different from the real name.
13439 soname_spec=$lt_soname_spec
13440
13441 # Commands used to build and install an old-style archive.
13442 RANLIB=$lt_RANLIB
13443 old_archive_cmds=$lt_old_archive_cmds_CXX
13444 old_postinstall_cmds=$lt_old_postinstall_cmds
13445 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13446
13447 # Create an old-style archive from a shared archive.
13448 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13449
13450 # Create a temporary old-style archive to link instead of a shared archive.
13451 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13452
13453 # Commands used to build and install a shared archive.
13454 archive_cmds=$lt_archive_cmds_CXX
13455 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13456 postinstall_cmds=$lt_postinstall_cmds
13457 postuninstall_cmds=$lt_postuninstall_cmds
13458
13459 # Commands used to build a loadable module (assumed same as above if empty)
13460 module_cmds=$lt_module_cmds_CXX
13461 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13462
13463 # Commands to strip libraries.
13464 old_striplib=$lt_old_striplib
13465 striplib=$lt_striplib
13466
13467 # Dependencies to place before the objects being linked to create a
13468 # shared library.
13469 predep_objects=\`echo $lt_predep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
13470
13471 # Dependencies to place after the objects being linked to create a
13472 # shared library.
13473 postdep_objects=\`echo $lt_postdep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
13474
13475 # Dependencies to place before the objects being linked to create a
13476 # shared library.
13477 predeps=$lt_predeps_CXX
13478
13479 # Dependencies to place after the objects being linked to create a
13480 # shared library.
13481 postdeps=$lt_postdeps_CXX
13482
13483 # The library search path used internally by the compiler when linking
13484 # a shared library.
13485 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
13486
13487 # Method to check whether dependent libraries are shared objects.
13488 deplibs_check_method=$lt_deplibs_check_method
13489
13490 # Command to use when deplibs_check_method == file_magic.
13491 file_magic_cmd=$lt_file_magic_cmd
13492
13493 # Flag that allows shared libraries with undefined symbols to be built.
13494 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13495
13496 # Flag that forces no undefined symbols.
13497 no_undefined_flag=$lt_no_undefined_flag_CXX
13498
13499 # Commands used to finish a libtool library installation in a directory.
13500 finish_cmds=$lt_finish_cmds
13501
13502 # Same as above, but a single script fragment to be evaled but not shown.
13503 finish_eval=$lt_finish_eval
13504
13505 # Take the output of nm and produce a listing of raw symbols and C names.
13506 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13507
13508 # Transform the output of nm in a proper C declaration
13509 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13510
13511 # Transform the output of nm in a C name address pair
13512 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13513
13514 # This is the shared library runtime path variable.
13515 runpath_var=$runpath_var
13516
13517 # This is the shared library path variable.
13518 shlibpath_var=$shlibpath_var
13519
13520 # Is shlibpath searched before the hard-coded library search path?
13521 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13522
13523 # How to hardcode a shared library path into an executable.
13524 hardcode_action=$hardcode_action_CXX
13525
13526 # Whether we should hardcode library paths into libraries.
13527 hardcode_into_libs=$hardcode_into_libs
13528
13529 # Flag to hardcode \$libdir into a binary during linking.
13530 # This must work even if \$libdir does not exist.
13531 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13532
13533 # If ld is used when linking, flag to hardcode \$libdir into
13534 # a binary during linking. This must work even if \$libdir does
13535 # not exist.
13536 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13537
13538 # Whether we need a single -rpath flag with a separated argument.
13539 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13540
13541 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13542 # resulting binary.
13543 hardcode_direct=$hardcode_direct_CXX
13544
13545 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13546 # resulting binary.
13547 hardcode_minus_L=$hardcode_minus_L_CXX
13548
13549 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13550 # the resulting binary.
13551 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13552
13553 # Set to yes if building a shared library automatically hardcodes DIR into the library
13554 # and all subsequent libraries and executables linked against it.
13555 hardcode_automatic=$hardcode_automatic_CXX
13556
13557 # Variables whose values should be saved in libtool wrapper scripts and
13558 # restored at relink time.
13559 variables_saved_for_relink="$variables_saved_for_relink"
13560
13561 # Whether libtool must link a program against all its dependency libraries.
13562 link_all_deplibs=$link_all_deplibs_CXX
13563
13564 # Compile-time system search path for libraries
13565 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
13566
13567 # Run-time system search path for libraries
13568 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13569
13570 # Fix the shell variable \$srcfile for the compiler.
13571 fix_srcfile_path=$lt_fix_srcfile_path
13572
13573 # Set to yes if exported symbols are required.
13574 always_export_symbols=$always_export_symbols_CXX
13575
13576 # The commands to list exported symbols.
13577 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13578
13579 # The commands to extract the exported symbol list from a shared archive.
13580 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13581
13582 # Symbols that should not be listed in the preloaded symbols.
13583 exclude_expsyms=$lt_exclude_expsyms_CXX
13584
13585 # Symbols that must always be exported.
13586 include_expsyms=$lt_include_expsyms_CXX
13587
13588 # ### END LIBTOOL TAG CONFIG: $tagname
13589
13590 __EOF__
13591
13592
13593 else
13594   # If there is no Makefile yet, we rely on a make rule to execute
13595   # `config.status --recheck' to rerun these tests and create the
13596   # libtool script then.
13597   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13598   if test -f "$ltmain_in"; then
13599     test -f Makefile && make "$ltmain"
13600   fi
13601 fi
13602
13603
13604 ac_ext=c
13605 ac_cpp='$CPP $CPPFLAGS'
13606 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13607 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13608 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13609
13610 CC=$lt_save_CC
13611 LDCXX=$LD
13612 LD=$lt_save_LD
13613 GCC=$lt_save_GCC
13614 with_gnu_ldcxx=$with_gnu_ld
13615 with_gnu_ld=$lt_save_with_gnu_ld
13616 lt_cv_path_LDCXX=$lt_cv_path_LD
13617 lt_cv_path_LD=$lt_save_path_LD
13618 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13619 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13620
13621         else
13622           tagname=""
13623         fi
13624         ;;
13625
13626       F77)
13627         if test -n "$F77" && test "X$F77" != "Xno"; then
13628
13629 ac_ext=f
13630 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13631 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13632 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13633
13634
13635 archive_cmds_need_lc_F77=no
13636 allow_undefined_flag_F77=
13637 always_export_symbols_F77=no
13638 archive_expsym_cmds_F77=
13639 export_dynamic_flag_spec_F77=
13640 hardcode_direct_F77=no
13641 hardcode_libdir_flag_spec_F77=
13642 hardcode_libdir_flag_spec_ld_F77=
13643 hardcode_libdir_separator_F77=
13644 hardcode_minus_L_F77=no
13645 hardcode_automatic_F77=no
13646 module_cmds_F77=
13647 module_expsym_cmds_F77=
13648 link_all_deplibs_F77=unknown
13649 old_archive_cmds_F77=$old_archive_cmds
13650 no_undefined_flag_F77=
13651 whole_archive_flag_spec_F77=
13652 enable_shared_with_static_runtimes_F77=no
13653
13654 # Source file extension for f77 test sources.
13655 ac_ext=f
13656
13657 # Object file extension for compiled f77 test sources.
13658 objext=o
13659 objext_F77=$objext
13660
13661 # Code to be used in simple compile tests
13662 lt_simple_compile_test_code="\
13663       subroutine t
13664       return
13665       end
13666 "
13667
13668 # Code to be used in simple link tests
13669 lt_simple_link_test_code="\
13670       program t
13671       end
13672 "
13673
13674 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13675
13676 # If no C compiler was specified, use CC.
13677 LTCC=${LTCC-"$CC"}
13678
13679 # If no C compiler flags were specified, use CFLAGS.
13680 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13681
13682 # Allow CC to be a program name with arguments.
13683 compiler=$CC
13684
13685
13686 # save warnings/boilerplate of simple test code
13687 ac_outfile=conftest.$ac_objext
13688 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13689 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13690 _lt_compiler_boilerplate=`cat conftest.err`
13691 $rm conftest*
13692
13693 ac_outfile=conftest.$ac_objext
13694 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13695 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13696 _lt_linker_boilerplate=`cat conftest.err`
13697 $rm conftest*
13698
13699
13700 # Allow CC to be a program name with arguments.
13701 lt_save_CC="$CC"
13702 CC=${F77-"f77"}
13703 compiler=$CC
13704 compiler_F77=$CC
13705 for cc_temp in $compiler""; do
13706   case $cc_temp in
13707     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13708     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13709     \-*) ;;
13710     *) break;;
13711   esac
13712 done
13713 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13714
13715
13716 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13717 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13718 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13719 echo "${ECHO_T}$can_build_shared" >&6; }
13720
13721 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13722 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13723 test "$can_build_shared" = "no" && enable_shared=no
13724
13725 # On AIX, shared libraries and static libraries use the same namespace, and
13726 # are all built from PIC.
13727 case $host_os in
13728 aix3*)
13729   test "$enable_shared" = yes && enable_static=no
13730   if test -n "$RANLIB"; then
13731     archive_cmds="$archive_cmds~\$RANLIB \$lib"
13732     postinstall_cmds='$RANLIB $lib'
13733   fi
13734   ;;
13735 aix4* | aix5*)
13736   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13737     test "$enable_shared" = yes && enable_static=no
13738   fi
13739   ;;
13740 esac
13741 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13742 echo "${ECHO_T}$enable_shared" >&6; }
13743
13744 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13745 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13746 # Make sure either enable_shared or enable_static is yes.
13747 test "$enable_shared" = yes || enable_static=yes
13748 { echo "$as_me:$LINENO: result: $enable_static" >&5
13749 echo "${ECHO_T}$enable_static" >&6; }
13750
13751 GCC_F77="$G77"
13752 LD_F77="$LD"
13753
13754 lt_prog_compiler_wl_F77=
13755 lt_prog_compiler_pic_F77=
13756 lt_prog_compiler_static_F77=
13757
13758 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13759 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13760
13761   if test "$GCC" = yes; then
13762     lt_prog_compiler_wl_F77='-Wl,'
13763     lt_prog_compiler_static_F77='-static'
13764
13765     case $host_os in
13766       aix*)
13767       # All AIX code is PIC.
13768       if test "$host_cpu" = ia64; then
13769         # AIX 5 now supports IA64 processor
13770         lt_prog_compiler_static_F77='-Bstatic'
13771       fi
13772       ;;
13773
13774     amigaos*)
13775       # FIXME: we need at least 68020 code to build shared libraries, but
13776       # adding the `-m68020' flag to GCC prevents building anything better,
13777       # like `-m68040'.
13778       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13779       ;;
13780
13781     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13782       # PIC is the default for these OSes.
13783       ;;
13784
13785     mingw* | cygwin* | pw32* | os2*)
13786       # This hack is so that the source file can tell whether it is being
13787       # built for inclusion in a dll (and should export symbols for example).
13788       # Although the cygwin gcc ignores -fPIC, still need this for old-style
13789       # (--disable-auto-import) libraries
13790       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13791       ;;
13792
13793     darwin* | rhapsody*)
13794       # PIC is the default on this platform
13795       # Common symbols not allowed in MH_DYLIB files
13796       lt_prog_compiler_pic_F77='-fno-common'
13797       ;;
13798
13799     interix[3-9]*)
13800       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13801       # Instead, we relocate shared libraries at runtime.
13802       ;;
13803
13804     msdosdjgpp*)
13805       # Just because we use GCC doesn't mean we suddenly get shared libraries
13806       # on systems that don't support them.
13807       lt_prog_compiler_can_build_shared_F77=no
13808       enable_shared=no
13809       ;;
13810
13811     sysv4*MP*)
13812       if test -d /usr/nec; then
13813         lt_prog_compiler_pic_F77=-Kconform_pic
13814       fi
13815       ;;
13816
13817     hpux*)
13818       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13819       # not for PA HP-UX.
13820       case $host_cpu in
13821       hppa*64*|ia64*)
13822         # +Z the default
13823         ;;
13824       *)
13825         lt_prog_compiler_pic_F77='-fPIC'
13826         ;;
13827       esac
13828       ;;
13829
13830     *)
13831       lt_prog_compiler_pic_F77='-fPIC'
13832       ;;
13833     esac
13834   else
13835     # PORTME Check for flag to pass linker flags through the system compiler.
13836     case $host_os in
13837     aix*)
13838       lt_prog_compiler_wl_F77='-Wl,'
13839       if test "$host_cpu" = ia64; then
13840         # AIX 5 now supports IA64 processor
13841         lt_prog_compiler_static_F77='-Bstatic'
13842       else
13843         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13844       fi
13845       ;;
13846       darwin*)
13847         # PIC is the default on this platform
13848         # Common symbols not allowed in MH_DYLIB files
13849        case $cc_basename in
13850          xlc*)
13851          lt_prog_compiler_pic_F77='-qnocommon'
13852          lt_prog_compiler_wl_F77='-Wl,'
13853          ;;
13854        esac
13855        ;;
13856
13857     mingw* | cygwin* | pw32* | os2*)
13858       # This hack is so that the source file can tell whether it is being
13859       # built for inclusion in a dll (and should export symbols for example).
13860       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13861       ;;
13862
13863     hpux9* | hpux10* | hpux11*)
13864       lt_prog_compiler_wl_F77='-Wl,'
13865       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13866       # not for PA HP-UX.
13867       case $host_cpu in
13868       hppa*64*|ia64*)
13869         # +Z the default
13870         ;;
13871       *)
13872         lt_prog_compiler_pic_F77='+Z'
13873         ;;
13874       esac
13875       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13876       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13877       ;;
13878
13879     irix5* | irix6* | nonstopux*)
13880       lt_prog_compiler_wl_F77='-Wl,'
13881       # PIC (with -KPIC) is the default.
13882       lt_prog_compiler_static_F77='-non_shared'
13883       ;;
13884
13885     newsos6)
13886       lt_prog_compiler_pic_F77='-KPIC'
13887       lt_prog_compiler_static_F77='-Bstatic'
13888       ;;
13889
13890     linux* | k*bsd*-gnu)
13891       case $cc_basename in
13892       icc* | ecc*)
13893         lt_prog_compiler_wl_F77='-Wl,'
13894         lt_prog_compiler_pic_F77='-KPIC'
13895         lt_prog_compiler_static_F77='-static'
13896         ;;
13897       pgcc* | pgf77* | pgf90* | pgf95*)
13898         # Portland Group compilers (*not* the Pentium gcc compiler,
13899         # which looks to be a dead project)
13900         lt_prog_compiler_wl_F77='-Wl,'
13901         lt_prog_compiler_pic_F77='-fpic'
13902         lt_prog_compiler_static_F77='-Bstatic'
13903         ;;
13904       ccc*)
13905         lt_prog_compiler_wl_F77='-Wl,'
13906         # All Alpha code is PIC.
13907         lt_prog_compiler_static_F77='-non_shared'
13908         ;;
13909       *)
13910         case `$CC -V 2>&1 | sed 5q` in
13911         *Sun\ C*)
13912           # Sun C 5.9
13913           lt_prog_compiler_pic_F77='-KPIC'
13914           lt_prog_compiler_static_F77='-Bstatic'
13915           lt_prog_compiler_wl_F77='-Wl,'
13916           ;;
13917         *Sun\ F*)
13918           # Sun Fortran 8.3 passes all unrecognized flags to the linker
13919           lt_prog_compiler_pic_F77='-KPIC'
13920           lt_prog_compiler_static_F77='-Bstatic'
13921           lt_prog_compiler_wl_F77=''
13922           ;;
13923         esac
13924         ;;
13925       esac
13926       ;;
13927
13928     osf3* | osf4* | osf5*)
13929       lt_prog_compiler_wl_F77='-Wl,'
13930       # All OSF/1 code is PIC.
13931       lt_prog_compiler_static_F77='-non_shared'
13932       ;;
13933
13934     rdos*)
13935       lt_prog_compiler_static_F77='-non_shared'
13936       ;;
13937
13938     solaris*)
13939       lt_prog_compiler_pic_F77='-KPIC'
13940       lt_prog_compiler_static_F77='-Bstatic'
13941       case $cc_basename in
13942       f77* | f90* | f95*)
13943         lt_prog_compiler_wl_F77='-Qoption ld ';;
13944       *)
13945         lt_prog_compiler_wl_F77='-Wl,';;
13946       esac
13947       ;;
13948
13949     sunos4*)
13950       lt_prog_compiler_wl_F77='-Qoption ld '
13951       lt_prog_compiler_pic_F77='-PIC'
13952       lt_prog_compiler_static_F77='-Bstatic'
13953       ;;
13954
13955     sysv4 | sysv4.2uw2* | sysv4.3*)
13956       lt_prog_compiler_wl_F77='-Wl,'
13957       lt_prog_compiler_pic_F77='-KPIC'
13958       lt_prog_compiler_static_F77='-Bstatic'
13959       ;;
13960
13961     sysv4*MP*)
13962       if test -d /usr/nec ;then
13963         lt_prog_compiler_pic_F77='-Kconform_pic'
13964         lt_prog_compiler_static_F77='-Bstatic'
13965       fi
13966       ;;
13967
13968     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13969       lt_prog_compiler_wl_F77='-Wl,'
13970       lt_prog_compiler_pic_F77='-KPIC'
13971       lt_prog_compiler_static_F77='-Bstatic'
13972       ;;
13973
13974     unicos*)
13975       lt_prog_compiler_wl_F77='-Wl,'
13976       lt_prog_compiler_can_build_shared_F77=no
13977       ;;
13978
13979     uts4*)
13980       lt_prog_compiler_pic_F77='-pic'
13981       lt_prog_compiler_static_F77='-Bstatic'
13982       ;;
13983
13984     *)
13985       lt_prog_compiler_can_build_shared_F77=no
13986       ;;
13987     esac
13988   fi
13989
13990 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13991 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
13992
13993 #
13994 # Check to make sure the PIC flag actually works.
13995 #
13996 if test -n "$lt_prog_compiler_pic_F77"; then
13997
13998 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13999 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14000 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14001   echo $ECHO_N "(cached) $ECHO_C" >&6
14002 else
14003   lt_prog_compiler_pic_works_F77=no
14004   ac_outfile=conftest.$ac_objext
14005    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14006    lt_compiler_flag="$lt_prog_compiler_pic_F77"
14007    # Insert the option either (1) after the last *FLAGS variable, or
14008    # (2) before a word containing "conftest.", or (3) at the end.
14009    # Note that $ac_compile itself does not contain backslashes and begins
14010    # with a dollar sign (not a hyphen), so the echo should work correctly.
14011    # The option is referenced via a variable to avoid confusing sed.
14012    lt_compile=`echo "$ac_compile" | $SED \
14013    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14014    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14015    -e 's:$: $lt_compiler_flag:'`
14016    (eval echo "\"\$as_me:14016: $lt_compile\"" >&5)
14017    (eval "$lt_compile" 2>conftest.err)
14018    ac_status=$?
14019    cat conftest.err >&5
14020    echo "$as_me:14020: \$? = $ac_status" >&5
14021    if (exit $ac_status) && test -s "$ac_outfile"; then
14022      # The compiler can only warn and ignore the option if not recognized
14023      # So say no if there are warnings other than the usual output.
14024      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14025      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14026      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14027        lt_prog_compiler_pic_works_F77=yes
14028      fi
14029    fi
14030    $rm conftest*
14031
14032 fi
14033 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14034 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14035
14036 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14037     case $lt_prog_compiler_pic_F77 in
14038      "" | " "*) ;;
14039      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14040      esac
14041 else
14042     lt_prog_compiler_pic_F77=
14043      lt_prog_compiler_can_build_shared_F77=no
14044 fi
14045
14046 fi
14047 case $host_os in
14048   # For platforms which do not support PIC, -DPIC is meaningless:
14049   *djgpp*)
14050     lt_prog_compiler_pic_F77=
14051     ;;
14052   *)
14053     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14054     ;;
14055 esac
14056
14057 #
14058 # Check to make sure the static flag actually works.
14059 #
14060 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14061 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14062 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14063 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14064   echo $ECHO_N "(cached) $ECHO_C" >&6
14065 else
14066   lt_prog_compiler_static_works_F77=no
14067    save_LDFLAGS="$LDFLAGS"
14068    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14069    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14070    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14071      # The linker can only warn and ignore the option if not recognized
14072      # So say no if there are warnings
14073      if test -s conftest.err; then
14074        # Append any errors to the config.log.
14075        cat conftest.err 1>&5
14076        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14077        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14078        if diff conftest.exp conftest.er2 >/dev/null; then
14079          lt_prog_compiler_static_works_F77=yes
14080        fi
14081      else
14082        lt_prog_compiler_static_works_F77=yes
14083      fi
14084    fi
14085    $rm conftest*
14086    LDFLAGS="$save_LDFLAGS"
14087
14088 fi
14089 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14090 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14091
14092 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14093     :
14094 else
14095     lt_prog_compiler_static_F77=
14096 fi
14097
14098
14099 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14100 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14101 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14102   echo $ECHO_N "(cached) $ECHO_C" >&6
14103 else
14104   lt_cv_prog_compiler_c_o_F77=no
14105    $rm -r conftest 2>/dev/null
14106    mkdir conftest
14107    cd conftest
14108    mkdir out
14109    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14110
14111    lt_compiler_flag="-o out/conftest2.$ac_objext"
14112    # Insert the option either (1) after the last *FLAGS variable, or
14113    # (2) before a word containing "conftest.", or (3) at the end.
14114    # Note that $ac_compile itself does not contain backslashes and begins
14115    # with a dollar sign (not a hyphen), so the echo should work correctly.
14116    lt_compile=`echo "$ac_compile" | $SED \
14117    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14118    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14119    -e 's:$: $lt_compiler_flag:'`
14120    (eval echo "\"\$as_me:14120: $lt_compile\"" >&5)
14121    (eval "$lt_compile" 2>out/conftest.err)
14122    ac_status=$?
14123    cat out/conftest.err >&5
14124    echo "$as_me:14124: \$? = $ac_status" >&5
14125    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14126    then
14127      # The compiler can only warn and ignore the option if not recognized
14128      # So say no if there are warnings
14129      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14130      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14131      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14132        lt_cv_prog_compiler_c_o_F77=yes
14133      fi
14134    fi
14135    chmod u+w . 2>&5
14136    $rm conftest*
14137    # SGI C++ compiler will create directory out/ii_files/ for
14138    # template instantiation
14139    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14140    $rm out/* && rmdir out
14141    cd ..
14142    rmdir conftest
14143    $rm conftest*
14144
14145 fi
14146 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14147 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14148
14149
14150 hard_links="nottested"
14151 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14152   # do not overwrite the value of need_locks provided by the user
14153   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14154 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14155   hard_links=yes
14156   $rm conftest*
14157   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14158   touch conftest.a
14159   ln conftest.a conftest.b 2>&5 || hard_links=no
14160   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14161   { echo "$as_me:$LINENO: result: $hard_links" >&5
14162 echo "${ECHO_T}$hard_links" >&6; }
14163   if test "$hard_links" = no; then
14164     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14165 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14166     need_locks=warn
14167   fi
14168 else
14169   need_locks=no
14170 fi
14171
14172 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14173 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14174
14175   runpath_var=
14176   allow_undefined_flag_F77=
14177   enable_shared_with_static_runtimes_F77=no
14178   archive_cmds_F77=
14179   archive_expsym_cmds_F77=
14180   old_archive_From_new_cmds_F77=
14181   old_archive_from_expsyms_cmds_F77=
14182   export_dynamic_flag_spec_F77=
14183   whole_archive_flag_spec_F77=
14184   thread_safe_flag_spec_F77=
14185   hardcode_libdir_flag_spec_F77=
14186   hardcode_libdir_flag_spec_ld_F77=
14187   hardcode_libdir_separator_F77=
14188   hardcode_direct_F77=no
14189   hardcode_minus_L_F77=no
14190   hardcode_shlibpath_var_F77=unsupported
14191   link_all_deplibs_F77=unknown
14192   hardcode_automatic_F77=no
14193   module_cmds_F77=
14194   module_expsym_cmds_F77=
14195   always_export_symbols_F77=no
14196   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14197   # include_expsyms should be a list of space-separated symbols to be *always*
14198   # included in the symbol list
14199   include_expsyms_F77=
14200   # exclude_expsyms can be an extended regexp of symbols to exclude
14201   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14202   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14203   # as well as any symbol that contains `d'.
14204   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14205   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14206   # platforms (ab)use it in PIC code, but their linkers get confused if
14207   # the symbol is explicitly referenced.  Since portable code cannot
14208   # rely on this symbol name, it's probably fine to never include it in
14209   # preloaded symbol tables.
14210   extract_expsyms_cmds=
14211   # Just being paranoid about ensuring that cc_basename is set.
14212   for cc_temp in $compiler""; do
14213   case $cc_temp in
14214     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14215     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14216     \-*) ;;
14217     *) break;;
14218   esac
14219 done
14220 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14221
14222   case $host_os in
14223   cygwin* | mingw* | pw32*)
14224     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14225     # When not using gcc, we currently assume that we are using
14226     # Microsoft Visual C++.
14227     if test "$GCC" != yes; then
14228       with_gnu_ld=no
14229     fi
14230     ;;
14231   interix*)
14232     # we just hope/assume this is gcc and not c89 (= MSVC++)
14233     with_gnu_ld=yes
14234     ;;
14235   openbsd*)
14236     with_gnu_ld=no
14237     ;;
14238   esac
14239
14240   ld_shlibs_F77=yes
14241   if test "$with_gnu_ld" = yes; then
14242     # If archive_cmds runs LD, not CC, wlarc should be empty
14243     wlarc='${wl}'
14244
14245     # Set some defaults for GNU ld with shared library support. These
14246     # are reset later if shared libraries are not supported. Putting them
14247     # here allows them to be overridden if necessary.
14248     runpath_var=LD_RUN_PATH
14249     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14250     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14251     # ancient GNU ld didn't support --whole-archive et. al.
14252     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14253         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14254       else
14255         whole_archive_flag_spec_F77=
14256     fi
14257     supports_anon_versioning=no
14258     case `$LD -v 2>/dev/null` in
14259       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14260       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14261       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14262       *\ 2.11.*) ;; # other 2.11 versions
14263       *) supports_anon_versioning=yes ;;
14264     esac
14265
14266     # See if GNU ld supports shared libraries.
14267     case $host_os in
14268     aix3* | aix4* | aix5*)
14269       # On AIX/PPC, the GNU linker is very broken
14270       if test "$host_cpu" != ia64; then
14271         ld_shlibs_F77=no
14272         cat <<EOF 1>&2
14273
14274 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14275 *** to be unable to reliably create shared libraries on AIX.
14276 *** Therefore, libtool is disabling shared libraries support.  If you
14277 *** really care for shared libraries, you may want to modify your PATH
14278 *** so that a non-GNU linker is found, and then restart.
14279
14280 EOF
14281       fi
14282       ;;
14283
14284     amigaos*)
14285       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)'
14286       hardcode_libdir_flag_spec_F77='-L$libdir'
14287       hardcode_minus_L_F77=yes
14288
14289       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14290       # that the semantics of dynamic libraries on AmigaOS, at least up
14291       # to version 4, is to share data among multiple programs linked
14292       # with the same dynamic library.  Since this doesn't match the
14293       # behavior of shared libraries on other platforms, we can't use
14294       # them.
14295       ld_shlibs_F77=no
14296       ;;
14297
14298     beos*)
14299       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14300         allow_undefined_flag_F77=unsupported
14301         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14302         # support --undefined.  This deserves some investigation.  FIXME
14303         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14304       else
14305         ld_shlibs_F77=no
14306       fi
14307       ;;
14308
14309     cygwin* | mingw* | pw32*)
14310       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14311       # as there is no search path for DLLs.
14312       hardcode_libdir_flag_spec_F77='-L$libdir'
14313       allow_undefined_flag_F77=unsupported
14314       always_export_symbols_F77=no
14315       enable_shared_with_static_runtimes_F77=yes
14316       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14317
14318       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14319         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14320         # If the export-symbols file already is a .def file (1st line
14321         # is EXPORTS), use it as is; otherwise, prepend...
14322         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14323           cp $export_symbols $output_objdir/$soname.def;
14324         else
14325           echo EXPORTS > $output_objdir/$soname.def;
14326           cat $export_symbols >> $output_objdir/$soname.def;
14327         fi~
14328         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14329       else
14330         ld_shlibs_F77=no
14331       fi
14332       ;;
14333
14334     interix[3-9]*)
14335       hardcode_direct_F77=no
14336       hardcode_shlibpath_var_F77=no
14337       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14338       export_dynamic_flag_spec_F77='${wl}-E'
14339       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14340       # Instead, shared libraries are loaded at an image base (0x10000000 by
14341       # default) and relocated if they conflict, which is a slow very memory
14342       # consuming and fragmenting process.  To avoid this, we pick a random,
14343       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14344       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14345       archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14346       archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14347       ;;
14348
14349     gnu* | linux* | k*bsd*-gnu)
14350       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14351         tmp_addflag=
14352         case $cc_basename,$host_cpu in
14353         pgcc*)                          # Portland Group C compiler
14354           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'
14355           tmp_addflag=' $pic_flag'
14356           ;;
14357         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
14358           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'
14359           tmp_addflag=' $pic_flag -Mnomain' ;;
14360         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
14361           tmp_addflag=' -i_dynamic' ;;
14362         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14363           tmp_addflag=' -i_dynamic -nofor_main' ;;
14364         ifc* | ifort*)                  # Intel Fortran compiler
14365           tmp_addflag=' -nofor_main' ;;
14366         esac
14367         case `$CC -V 2>&1 | sed 5q` in
14368         *Sun\ C*)                       # Sun C 5.9
14369           whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14370           tmp_sharedflag='-G' ;;
14371         *Sun\ F*)                       # Sun Fortran 8.3
14372           tmp_sharedflag='-G' ;;
14373         *)
14374           tmp_sharedflag='-shared' ;;
14375         esac
14376         archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14377
14378         if test $supports_anon_versioning = yes; then
14379           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14380   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14381   $echo "local: *; };" >> $output_objdir/$libname.ver~
14382           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14383         fi
14384       else
14385         ld_shlibs_F77=no
14386       fi
14387       ;;
14388
14389     netbsd*)
14390       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14391         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14392         wlarc=
14393       else
14394         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14395         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14396       fi
14397       ;;
14398
14399     solaris*)
14400       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14401         ld_shlibs_F77=no
14402         cat <<EOF 1>&2
14403
14404 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14405 *** create shared libraries on Solaris systems.  Therefore, libtool
14406 *** is disabling shared libraries support.  We urge you to upgrade GNU
14407 *** binutils to release 2.9.1 or newer.  Another option is to modify
14408 *** your PATH or compiler configuration so that the native linker is
14409 *** used, and then restart.
14410
14411 EOF
14412       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14413         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14414         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14415       else
14416         ld_shlibs_F77=no
14417       fi
14418       ;;
14419
14420     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14421       case `$LD -v 2>&1` in
14422         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14423         ld_shlibs_F77=no
14424         cat <<_LT_EOF 1>&2
14425
14426 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14427 *** reliably create shared libraries on SCO systems.  Therefore, libtool
14428 *** is disabling shared libraries support.  We urge you to upgrade GNU
14429 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14430 *** your PATH or compiler configuration so that the native linker is
14431 *** used, and then restart.
14432
14433 _LT_EOF
14434         ;;
14435         *)
14436           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14437             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14438             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14439             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14440           else
14441             ld_shlibs_F77=no
14442           fi
14443         ;;
14444       esac
14445       ;;
14446
14447     sunos4*)
14448       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14449       wlarc=
14450       hardcode_direct_F77=yes
14451       hardcode_shlibpath_var_F77=no
14452       ;;
14453
14454     *)
14455       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14456         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14457         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14458       else
14459         ld_shlibs_F77=no
14460       fi
14461       ;;
14462     esac
14463
14464     if test "$ld_shlibs_F77" = no; then
14465       runpath_var=
14466       hardcode_libdir_flag_spec_F77=
14467       export_dynamic_flag_spec_F77=
14468       whole_archive_flag_spec_F77=
14469     fi
14470   else
14471     # PORTME fill in a description of your system's linker (not GNU ld)
14472     case $host_os in
14473     aix3*)
14474       allow_undefined_flag_F77=unsupported
14475       always_export_symbols_F77=yes
14476       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'
14477       # Note: this linker hardcodes the directories in LIBPATH if there
14478       # are no directories specified by -L.
14479       hardcode_minus_L_F77=yes
14480       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14481         # Neither direct hardcoding nor static linking is supported with a
14482         # broken collect2.
14483         hardcode_direct_F77=unsupported
14484       fi
14485       ;;
14486
14487     aix4* | aix5*)
14488       if test "$host_cpu" = ia64; then
14489         # On IA64, the linker does run time linking by default, so we don't
14490         # have to do anything special.
14491         aix_use_runtimelinking=no
14492         exp_sym_flag='-Bexport'
14493         no_entry_flag=""
14494       else
14495         # If we're using GNU nm, then we don't want the "-C" option.
14496         # -C means demangle to AIX nm, but means don't demangle with GNU nm
14497         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14498           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'
14499         else
14500           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'
14501         fi
14502         aix_use_runtimelinking=no
14503
14504         # Test if we are trying to use run time linking or normal
14505         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14506         # need to do runtime linking.
14507         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14508           for ld_flag in $LDFLAGS; do
14509           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14510             aix_use_runtimelinking=yes
14511             break
14512           fi
14513           done
14514           ;;
14515         esac
14516
14517         exp_sym_flag='-bexport'
14518         no_entry_flag='-bnoentry'
14519       fi
14520
14521       # When large executables or shared objects are built, AIX ld can
14522       # have problems creating the table of contents.  If linking a library
14523       # or program results in "error TOC overflow" add -mminimal-toc to
14524       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14525       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14526
14527       archive_cmds_F77=''
14528       hardcode_direct_F77=yes
14529       hardcode_libdir_separator_F77=':'
14530       link_all_deplibs_F77=yes
14531
14532       if test "$GCC" = yes; then
14533         case $host_os in aix4.[012]|aix4.[012].*)
14534         # We only want to do this on AIX 4.2 and lower, the check
14535         # below for broken collect2 doesn't work under 4.3+
14536           collect2name=`${CC} -print-prog-name=collect2`
14537           if test -f "$collect2name" && \
14538            strings "$collect2name" | grep resolve_lib_name >/dev/null
14539           then
14540           # We have reworked collect2
14541           :
14542           else
14543           # We have old collect2
14544           hardcode_direct_F77=unsupported
14545           # It fails to find uninstalled libraries when the uninstalled
14546           # path is not listed in the libpath.  Setting hardcode_minus_L
14547           # to unsupported forces relinking
14548           hardcode_minus_L_F77=yes
14549           hardcode_libdir_flag_spec_F77='-L$libdir'
14550           hardcode_libdir_separator_F77=
14551           fi
14552           ;;
14553         esac
14554         shared_flag='-shared'
14555         if test "$aix_use_runtimelinking" = yes; then
14556           shared_flag="$shared_flag "'${wl}-G'
14557         fi
14558       else
14559         # not using gcc
14560         if test "$host_cpu" = ia64; then
14561         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14562         # chokes on -Wl,-G. The following line is correct:
14563           shared_flag='-G'
14564         else
14565           if test "$aix_use_runtimelinking" = yes; then
14566             shared_flag='${wl}-G'
14567           else
14568             shared_flag='${wl}-bM:SRE'
14569           fi
14570         fi
14571       fi
14572
14573       # It seems that -bexpall does not export symbols beginning with
14574       # underscore (_), so it is better to generate a list of symbols to export.
14575       always_export_symbols_F77=yes
14576       if test "$aix_use_runtimelinking" = yes; then
14577         # Warning - without using the other runtime loading flags (-brtl),
14578         # -berok will link without error, but may produce a broken library.
14579         allow_undefined_flag_F77='-berok'
14580        # Determine the default libpath from the value encoded in an empty executable.
14581        cat >conftest.$ac_ext <<_ACEOF
14582       program main
14583
14584       end
14585 _ACEOF
14586 rm -f conftest.$ac_objext conftest$ac_exeext
14587 if { (ac_try="$ac_link"
14588 case "(($ac_try" in
14589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14590   *) ac_try_echo=$ac_try;;
14591 esac
14592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14593   (eval "$ac_link") 2>conftest.er1
14594   ac_status=$?
14595   grep -v '^ *+' conftest.er1 >conftest.err
14596   rm -f conftest.er1
14597   cat conftest.err >&5
14598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14599   (exit $ac_status); } && {
14600          test -z "$ac_f77_werror_flag" ||
14601          test ! -s conftest.err
14602        } && test -s conftest$ac_exeext &&
14603        $as_test_x conftest$ac_exeext; then
14604
14605 lt_aix_libpath_sed='
14606     /Import File Strings/,/^$/ {
14607         /^0/ {
14608             s/^0  *\(.*\)$/\1/
14609             p
14610         }
14611     }'
14612 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14613 # Check for a 64-bit object if we didn't find anything.
14614 if test -z "$aix_libpath"; then
14615   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14616 fi
14617 else
14618   echo "$as_me: failed program was:" >&5
14619 sed 's/^/| /' conftest.$ac_ext >&5
14620
14621
14622 fi
14623
14624 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14625       conftest$ac_exeext conftest.$ac_ext
14626 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14627
14628        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14629         archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14630        else
14631         if test "$host_cpu" = ia64; then
14632           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14633           allow_undefined_flag_F77="-z nodefs"
14634           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
14635         else
14636          # Determine the default libpath from the value encoded in an empty executable.
14637          cat >conftest.$ac_ext <<_ACEOF
14638       program main
14639
14640       end
14641 _ACEOF
14642 rm -f conftest.$ac_objext conftest$ac_exeext
14643 if { (ac_try="$ac_link"
14644 case "(($ac_try" in
14645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14646   *) ac_try_echo=$ac_try;;
14647 esac
14648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14649   (eval "$ac_link") 2>conftest.er1
14650   ac_status=$?
14651   grep -v '^ *+' conftest.er1 >conftest.err
14652   rm -f conftest.er1
14653   cat conftest.err >&5
14654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14655   (exit $ac_status); } && {
14656          test -z "$ac_f77_werror_flag" ||
14657          test ! -s conftest.err
14658        } && test -s conftest$ac_exeext &&
14659        $as_test_x conftest$ac_exeext; then
14660
14661 lt_aix_libpath_sed='
14662     /Import File Strings/,/^$/ {
14663         /^0/ {
14664             s/^0  *\(.*\)$/\1/
14665             p
14666         }
14667     }'
14668 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14669 # Check for a 64-bit object if we didn't find anything.
14670 if test -z "$aix_libpath"; then
14671   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14672 fi
14673 else
14674   echo "$as_me: failed program was:" >&5
14675 sed 's/^/| /' conftest.$ac_ext >&5
14676
14677
14678 fi
14679
14680 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14681       conftest$ac_exeext conftest.$ac_ext
14682 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14683
14684          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14685           # Warning - without using the other run time loading flags,
14686           # -berok will link without error, but may produce a broken library.
14687           no_undefined_flag_F77=' ${wl}-bernotok'
14688           allow_undefined_flag_F77=' ${wl}-berok'
14689           # Exported symbols can be pulled into shared objects from archives
14690           whole_archive_flag_spec_F77='$convenience'
14691           archive_cmds_need_lc_F77=yes
14692           # This is similar to how AIX traditionally builds its shared libraries.
14693           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14694         fi
14695       fi
14696       ;;
14697
14698     amigaos*)
14699       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)'
14700       hardcode_libdir_flag_spec_F77='-L$libdir'
14701       hardcode_minus_L_F77=yes
14702       # see comment about different semantics on the GNU ld section
14703       ld_shlibs_F77=no
14704       ;;
14705
14706     bsdi[45]*)
14707       export_dynamic_flag_spec_F77=-rdynamic
14708       ;;
14709
14710     cygwin* | mingw* | pw32*)
14711       # When not using gcc, we currently assume that we are using
14712       # Microsoft Visual C++.
14713       # hardcode_libdir_flag_spec is actually meaningless, as there is
14714       # no search path for DLLs.
14715       hardcode_libdir_flag_spec_F77=' '
14716       allow_undefined_flag_F77=unsupported
14717       # Tell ltmain to make .lib files, not .a files.
14718       libext=lib
14719       # Tell ltmain to make .dll files, not .so files.
14720       shrext_cmds=".dll"
14721       # FIXME: Setting linknames here is a bad hack.
14722       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14723       # The linker will automatically build a .lib file if we build a DLL.
14724       old_archive_From_new_cmds_F77='true'
14725       # FIXME: Should let the user specify the lib program.
14726       old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
14727       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14728       enable_shared_with_static_runtimes_F77=yes
14729       ;;
14730
14731     darwin* | rhapsody*)
14732       case $host_os in
14733         rhapsody* | darwin1.[012])
14734          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14735          ;;
14736        *) # Darwin 1.3 on
14737          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14738            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14739          else
14740            case ${MACOSX_DEPLOYMENT_TARGET} in
14741              10.[012])
14742                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14743                ;;
14744              10.*)
14745                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14746                ;;
14747            esac
14748          fi
14749          ;;
14750       esac
14751       archive_cmds_need_lc_F77=no
14752       hardcode_direct_F77=no
14753       hardcode_automatic_F77=yes
14754       hardcode_shlibpath_var_F77=unsupported
14755       whole_archive_flag_spec_F77=''
14756       link_all_deplibs_F77=yes
14757     if test "$GCC" = yes ; then
14758         output_verbose_link_cmd='echo'
14759         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14760       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14761       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14762       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}'
14763       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}'
14764     else
14765       case $cc_basename in
14766         xlc*)
14767          output_verbose_link_cmd='echo'
14768          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
14769          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14770           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14771          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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14772           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}'
14773           ;;
14774        *)
14775          ld_shlibs_F77=no
14776           ;;
14777       esac
14778     fi
14779       ;;
14780
14781     dgux*)
14782       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14783       hardcode_libdir_flag_spec_F77='-L$libdir'
14784       hardcode_shlibpath_var_F77=no
14785       ;;
14786
14787     freebsd1*)
14788       ld_shlibs_F77=no
14789       ;;
14790
14791     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14792     # support.  Future versions do this automatically, but an explicit c++rt0.o
14793     # does not break anything, and helps significantly (at the cost of a little
14794     # extra space).
14795     freebsd2.2*)
14796       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14797       hardcode_libdir_flag_spec_F77='-R$libdir'
14798       hardcode_direct_F77=yes
14799       hardcode_shlibpath_var_F77=no
14800       ;;
14801
14802     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14803     freebsd2*)
14804       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14805       hardcode_direct_F77=yes
14806       hardcode_minus_L_F77=yes
14807       hardcode_shlibpath_var_F77=no
14808       ;;
14809
14810     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14811     freebsd* | dragonfly*)
14812       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14813       hardcode_libdir_flag_spec_F77='-R$libdir'
14814       hardcode_direct_F77=yes
14815       hardcode_shlibpath_var_F77=no
14816       ;;
14817
14818     hpux9*)
14819       if test "$GCC" = yes; then
14820         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'
14821       else
14822         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'
14823       fi
14824       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14825       hardcode_libdir_separator_F77=:
14826       hardcode_direct_F77=yes
14827
14828       # hardcode_minus_L: Not really in the search PATH,
14829       # but as the default location of the library.
14830       hardcode_minus_L_F77=yes
14831       export_dynamic_flag_spec_F77='${wl}-E'
14832       ;;
14833
14834     hpux10*)
14835       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14836         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14837       else
14838         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14839       fi
14840       if test "$with_gnu_ld" = no; then
14841         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14842         hardcode_libdir_separator_F77=:
14843
14844         hardcode_direct_F77=yes
14845         export_dynamic_flag_spec_F77='${wl}-E'
14846
14847         # hardcode_minus_L: Not really in the search PATH,
14848         # but as the default location of the library.
14849         hardcode_minus_L_F77=yes
14850       fi
14851       ;;
14852
14853     hpux11*)
14854       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14855         case $host_cpu in
14856         hppa*64*)
14857           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14858           ;;
14859         ia64*)
14860           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14861           ;;
14862         *)
14863           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14864           ;;
14865         esac
14866       else
14867         case $host_cpu in
14868         hppa*64*)
14869           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14870           ;;
14871         ia64*)
14872           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14873           ;;
14874         *)
14875           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14876           ;;
14877         esac
14878       fi
14879       if test "$with_gnu_ld" = no; then
14880         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14881         hardcode_libdir_separator_F77=:
14882
14883         case $host_cpu in
14884         hppa*64*|ia64*)
14885           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14886           hardcode_direct_F77=no
14887           hardcode_shlibpath_var_F77=no
14888           ;;
14889         *)
14890           hardcode_direct_F77=yes
14891           export_dynamic_flag_spec_F77='${wl}-E'
14892
14893           # hardcode_minus_L: Not really in the search PATH,
14894           # but as the default location of the library.
14895           hardcode_minus_L_F77=yes
14896           ;;
14897         esac
14898       fi
14899       ;;
14900
14901     irix5* | irix6* | nonstopux*)
14902       if test "$GCC" = yes; then
14903         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'
14904       else
14905         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'
14906         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14907       fi
14908       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14909       hardcode_libdir_separator_F77=:
14910       link_all_deplibs_F77=yes
14911       ;;
14912
14913     netbsd*)
14914       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14915         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14916       else
14917         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14918       fi
14919       hardcode_libdir_flag_spec_F77='-R$libdir'
14920       hardcode_direct_F77=yes
14921       hardcode_shlibpath_var_F77=no
14922       ;;
14923
14924     newsos6)
14925       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14926       hardcode_direct_F77=yes
14927       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14928       hardcode_libdir_separator_F77=:
14929       hardcode_shlibpath_var_F77=no
14930       ;;
14931
14932     openbsd*)
14933       if test -f /usr/libexec/ld.so; then
14934         hardcode_direct_F77=yes
14935         hardcode_shlibpath_var_F77=no
14936         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14937           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14938           archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14939           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14940           export_dynamic_flag_spec_F77='${wl}-E'
14941         else
14942           case $host_os in
14943            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14944              archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14945              hardcode_libdir_flag_spec_F77='-R$libdir'
14946              ;;
14947            *)
14948              archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14949              hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14950              ;;
14951           esac
14952         fi
14953       else
14954         ld_shlibs_F77=no
14955       fi
14956       ;;
14957
14958     os2*)
14959       hardcode_libdir_flag_spec_F77='-L$libdir'
14960       hardcode_minus_L_F77=yes
14961       allow_undefined_flag_F77=unsupported
14962       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'
14963       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14964       ;;
14965
14966     osf3*)
14967       if test "$GCC" = yes; then
14968         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14969         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'
14970       else
14971         allow_undefined_flag_F77=' -expect_unresolved \*'
14972         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'
14973       fi
14974       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14975       hardcode_libdir_separator_F77=:
14976       ;;
14977
14978     osf4* | osf5*)      # as osf3* with the addition of -msym flag
14979       if test "$GCC" = yes; then
14980         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14981         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'
14982         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14983       else
14984         allow_undefined_flag_F77=' -expect_unresolved \*'
14985         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'
14986         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~
14987         $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'
14988
14989         # Both c and cxx compiler support -rpath directly
14990         hardcode_libdir_flag_spec_F77='-rpath $libdir'
14991       fi
14992       hardcode_libdir_separator_F77=:
14993       ;;
14994
14995     solaris*)
14996       no_undefined_flag_F77=' -z text'
14997       if test "$GCC" = yes; then
14998         wlarc='${wl}'
14999         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15000         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15001           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15002       else
15003         wlarc=''
15004         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15005         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15006         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15007       fi
15008       hardcode_libdir_flag_spec_F77='-R$libdir'
15009       hardcode_shlibpath_var_F77=no
15010       case $host_os in
15011       solaris2.[0-5] | solaris2.[0-5].*) ;;
15012       *)
15013         # The compiler driver will combine and reorder linker options,
15014         # but understands `-z linker_flag'.  GCC discards it without `$wl',
15015         # but is careful enough not to reorder.
15016         # Supported since Solaris 2.6 (maybe 2.5.1?)
15017         if test "$GCC" = yes; then
15018           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15019         else
15020           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15021         fi
15022         ;;
15023       esac
15024       link_all_deplibs_F77=yes
15025       ;;
15026
15027     sunos4*)
15028       if test "x$host_vendor" = xsequent; then
15029         # Use $CC to link under sequent, because it throws in some extra .o
15030         # files that make .init and .fini sections work.
15031         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15032       else
15033         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15034       fi
15035       hardcode_libdir_flag_spec_F77='-L$libdir'
15036       hardcode_direct_F77=yes
15037       hardcode_minus_L_F77=yes
15038       hardcode_shlibpath_var_F77=no
15039       ;;
15040
15041     sysv4)
15042       case $host_vendor in
15043         sni)
15044           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15045           hardcode_direct_F77=yes # is this really true???
15046         ;;
15047         siemens)
15048           ## LD is ld it makes a PLAMLIB
15049           ## CC just makes a GrossModule.
15050           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15051           reload_cmds_F77='$CC -r -o $output$reload_objs'
15052           hardcode_direct_F77=no
15053         ;;
15054         motorola)
15055           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15056           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15057         ;;
15058       esac
15059       runpath_var='LD_RUN_PATH'
15060       hardcode_shlibpath_var_F77=no
15061       ;;
15062
15063     sysv4.3*)
15064       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15065       hardcode_shlibpath_var_F77=no
15066       export_dynamic_flag_spec_F77='-Bexport'
15067       ;;
15068
15069     sysv4*MP*)
15070       if test -d /usr/nec; then
15071         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15072         hardcode_shlibpath_var_F77=no
15073         runpath_var=LD_RUN_PATH
15074         hardcode_runpath_var=yes
15075         ld_shlibs_F77=yes
15076       fi
15077       ;;
15078
15079     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15080       no_undefined_flag_F77='${wl}-z,text'
15081       archive_cmds_need_lc_F77=no
15082       hardcode_shlibpath_var_F77=no
15083       runpath_var='LD_RUN_PATH'
15084
15085       if test "$GCC" = yes; then
15086         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15087         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15088       else
15089         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15090         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15091       fi
15092       ;;
15093
15094     sysv5* | sco3.2v5* | sco5v6*)
15095       # Note: We can NOT use -z defs as we might desire, because we do not
15096       # link with -lc, and that would cause any symbols used from libc to
15097       # always be unresolved, which means just about no library would
15098       # ever link correctly.  If we're not using GNU ld we use -z text
15099       # though, which does catch some bad symbols but isn't as heavy-handed
15100       # as -z defs.
15101       no_undefined_flag_F77='${wl}-z,text'
15102       allow_undefined_flag_F77='${wl}-z,nodefs'
15103       archive_cmds_need_lc_F77=no
15104       hardcode_shlibpath_var_F77=no
15105       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15106       hardcode_libdir_separator_F77=':'
15107       link_all_deplibs_F77=yes
15108       export_dynamic_flag_spec_F77='${wl}-Bexport'
15109       runpath_var='LD_RUN_PATH'
15110
15111       if test "$GCC" = yes; then
15112         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15113         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15114       else
15115         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15116         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15117       fi
15118       ;;
15119
15120     uts4*)
15121       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15122       hardcode_libdir_flag_spec_F77='-L$libdir'
15123       hardcode_shlibpath_var_F77=no
15124       ;;
15125
15126     *)
15127       ld_shlibs_F77=no
15128       ;;
15129     esac
15130   fi
15131
15132 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15133 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15134 test "$ld_shlibs_F77" = no && can_build_shared=no
15135
15136 #
15137 # Do we need to explicitly link libc?
15138 #
15139 case "x$archive_cmds_need_lc_F77" in
15140 x|xyes)
15141   # Assume -lc should be added
15142   archive_cmds_need_lc_F77=yes
15143
15144   if test "$enable_shared" = yes && test "$GCC" = yes; then
15145     case $archive_cmds_F77 in
15146     *'~'*)
15147       # FIXME: we may have to deal with multi-command sequences.
15148       ;;
15149     '$CC '*)
15150       # Test whether the compiler implicitly links with -lc since on some
15151       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15152       # to ld, don't add -lc before -lgcc.
15153       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15154 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15155       $rm conftest*
15156       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15157
15158       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15159   (eval $ac_compile) 2>&5
15160   ac_status=$?
15161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15162   (exit $ac_status); } 2>conftest.err; then
15163         soname=conftest
15164         lib=conftest
15165         libobjs=conftest.$ac_objext
15166         deplibs=
15167         wl=$lt_prog_compiler_wl_F77
15168         pic_flag=$lt_prog_compiler_pic_F77
15169         compiler_flags=-v
15170         linker_flags=-v
15171         verstring=
15172         output_objdir=.
15173         libname=conftest
15174         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15175         allow_undefined_flag_F77=
15176         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15177   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15178   ac_status=$?
15179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15180   (exit $ac_status); }
15181         then
15182           archive_cmds_need_lc_F77=no
15183         else
15184           archive_cmds_need_lc_F77=yes
15185         fi
15186         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15187       else
15188         cat conftest.err 1>&5
15189       fi
15190       $rm conftest*
15191       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15192 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15193       ;;
15194     esac
15195   fi
15196   ;;
15197 esac
15198
15199 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15200 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15201 library_names_spec=
15202 libname_spec='lib$name'
15203 soname_spec=
15204 shrext_cmds=".so"
15205 postinstall_cmds=
15206 postuninstall_cmds=
15207 finish_cmds=
15208 finish_eval=
15209 shlibpath_var=
15210 shlibpath_overrides_runpath=unknown
15211 version_type=none
15212 dynamic_linker="$host_os ld.so"
15213 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15214
15215 need_lib_prefix=unknown
15216 hardcode_into_libs=no
15217
15218 # when you set need_version to no, make sure it does not cause -set_version
15219 # flags to be left without arguments
15220 need_version=unknown
15221
15222 case $host_os in
15223 aix3*)
15224   version_type=linux
15225   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15226   shlibpath_var=LIBPATH
15227
15228   # AIX 3 has no versioning support, so we append a major version to the name.
15229   soname_spec='${libname}${release}${shared_ext}$major'
15230   ;;
15231
15232 aix4* | aix5*)
15233   version_type=linux
15234   need_lib_prefix=no
15235   need_version=no
15236   hardcode_into_libs=yes
15237   if test "$host_cpu" = ia64; then
15238     # AIX 5 supports IA64
15239     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15240     shlibpath_var=LD_LIBRARY_PATH
15241   else
15242     # With GCC up to 2.95.x, collect2 would create an import file
15243     # for dependence libraries.  The import file would start with
15244     # the line `#! .'.  This would cause the generated library to
15245     # depend on `.', always an invalid library.  This was fixed in
15246     # development snapshots of GCC prior to 3.0.
15247     case $host_os in
15248       aix4 | aix4.[01] | aix4.[01].*)
15249       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15250            echo ' yes '
15251            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15252         :
15253       else
15254         can_build_shared=no
15255       fi
15256       ;;
15257     esac
15258     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15259     # soname into executable. Probably we can add versioning support to
15260     # collect2, so additional links can be useful in future.
15261     if test "$aix_use_runtimelinking" = yes; then
15262       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15263       # instead of lib<name>.a to let people know that these are not
15264       # typical AIX shared libraries.
15265       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15266     else
15267       # We preserve .a as extension for shared libraries through AIX4.2
15268       # and later when we are not doing run time linking.
15269       library_names_spec='${libname}${release}.a $libname.a'
15270       soname_spec='${libname}${release}${shared_ext}$major'
15271     fi
15272     shlibpath_var=LIBPATH
15273   fi
15274   ;;
15275
15276 amigaos*)
15277   library_names_spec='$libname.ixlibrary $libname.a'
15278   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15279   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'
15280   ;;
15281
15282 beos*)
15283   library_names_spec='${libname}${shared_ext}'
15284   dynamic_linker="$host_os ld.so"
15285   shlibpath_var=LIBRARY_PATH
15286   ;;
15287
15288 bsdi[45]*)
15289   version_type=linux
15290   need_version=no
15291   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15292   soname_spec='${libname}${release}${shared_ext}$major'
15293   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15294   shlibpath_var=LD_LIBRARY_PATH
15295   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15296   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15297   # the default ld.so.conf also contains /usr/contrib/lib and
15298   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15299   # libtool to hard-code these into programs
15300   ;;
15301
15302 cygwin* | mingw* | pw32*)
15303   version_type=windows
15304   shrext_cmds=".dll"
15305   need_version=no
15306   need_lib_prefix=no
15307
15308   case $GCC,$host_os in
15309   yes,cygwin* | yes,mingw* | yes,pw32*)
15310     library_names_spec='$libname.dll.a'
15311     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15312     postinstall_cmds='base_file=`basename \${file}`~
15313       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15314       dldir=$destdir/`dirname \$dlpath`~
15315       test -d \$dldir || mkdir -p \$dldir~
15316       $install_prog $dir/$dlname \$dldir/$dlname~
15317       chmod a+x \$dldir/$dlname'
15318     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15319       dlpath=$dir/\$dldll~
15320        $rm \$dlpath'
15321     shlibpath_overrides_runpath=yes
15322
15323     case $host_os in
15324     cygwin*)
15325       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15326       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15327       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15328       ;;
15329     mingw*)
15330       # MinGW DLLs use traditional 'lib' prefix
15331       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15332       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15333       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15334         # It is most probably a Windows format PATH printed by
15335         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15336         # path with ; separators, and with drive letters. We can handle the
15337         # drive letters (cygwin fileutils understands them), so leave them,
15338         # especially as we might pass files found there to a mingw objdump,
15339         # which wouldn't understand a cygwinified path. Ahh.
15340         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15341       else
15342         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15343       fi
15344       ;;
15345     pw32*)
15346       # pw32 DLLs use 'pw' prefix rather than 'lib'
15347       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15348       ;;
15349     esac
15350     ;;
15351
15352   *)
15353     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15354     ;;
15355   esac
15356   dynamic_linker='Win32 ld.exe'
15357   # FIXME: first we should search . and the directory the executable is in
15358   shlibpath_var=PATH
15359   ;;
15360
15361 darwin* | rhapsody*)
15362   dynamic_linker="$host_os dyld"
15363   version_type=darwin
15364   need_lib_prefix=no
15365   need_version=no
15366   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15367   soname_spec='${libname}${release}${major}$shared_ext'
15368   shlibpath_overrides_runpath=yes
15369   shlibpath_var=DYLD_LIBRARY_PATH
15370   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15371
15372   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15373   ;;
15374
15375 dgux*)
15376   version_type=linux
15377   need_lib_prefix=no
15378   need_version=no
15379   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15380   soname_spec='${libname}${release}${shared_ext}$major'
15381   shlibpath_var=LD_LIBRARY_PATH
15382   ;;
15383
15384 freebsd1*)
15385   dynamic_linker=no
15386   ;;
15387
15388 freebsd* | dragonfly*)
15389   # DragonFly does not have aout.  When/if they implement a new
15390   # versioning mechanism, adjust this.
15391   if test -x /usr/bin/objformat; then
15392     objformat=`/usr/bin/objformat`
15393   else
15394     case $host_os in
15395     freebsd[123]*) objformat=aout ;;
15396     *) objformat=elf ;;
15397     esac
15398   fi
15399   version_type=freebsd-$objformat
15400   case $version_type in
15401     freebsd-elf*)
15402       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15403       need_version=no
15404       need_lib_prefix=no
15405       ;;
15406     freebsd-*)
15407       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15408       need_version=yes
15409       ;;
15410   esac
15411   shlibpath_var=LD_LIBRARY_PATH
15412   case $host_os in
15413   freebsd2*)
15414     shlibpath_overrides_runpath=yes
15415     ;;
15416   freebsd3.[01]* | freebsdelf3.[01]*)
15417     shlibpath_overrides_runpath=yes
15418     hardcode_into_libs=yes
15419     ;;
15420   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15421   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15422     shlibpath_overrides_runpath=no
15423     hardcode_into_libs=yes
15424     ;;
15425   *) # from 4.6 on, and DragonFly
15426     shlibpath_overrides_runpath=yes
15427     hardcode_into_libs=yes
15428     ;;
15429   esac
15430   ;;
15431
15432 gnu*)
15433   version_type=linux
15434   need_lib_prefix=no
15435   need_version=no
15436   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15437   soname_spec='${libname}${release}${shared_ext}$major'
15438   shlibpath_var=LD_LIBRARY_PATH
15439   hardcode_into_libs=yes
15440   ;;
15441
15442 hpux9* | hpux10* | hpux11*)
15443   # Give a soname corresponding to the major version so that dld.sl refuses to
15444   # link against other versions.
15445   version_type=sunos
15446   need_lib_prefix=no
15447   need_version=no
15448   case $host_cpu in
15449   ia64*)
15450     shrext_cmds='.so'
15451     hardcode_into_libs=yes
15452     dynamic_linker="$host_os dld.so"
15453     shlibpath_var=LD_LIBRARY_PATH
15454     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15455     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15456     soname_spec='${libname}${release}${shared_ext}$major'
15457     if test "X$HPUX_IA64_MODE" = X32; then
15458       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15459     else
15460       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15461     fi
15462     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15463     ;;
15464    hppa*64*)
15465      shrext_cmds='.sl'
15466      hardcode_into_libs=yes
15467      dynamic_linker="$host_os dld.sl"
15468      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15469      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15470      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15471      soname_spec='${libname}${release}${shared_ext}$major'
15472      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15473      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15474      ;;
15475    *)
15476     shrext_cmds='.sl'
15477     dynamic_linker="$host_os dld.sl"
15478     shlibpath_var=SHLIB_PATH
15479     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15480     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15481     soname_spec='${libname}${release}${shared_ext}$major'
15482     ;;
15483   esac
15484   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15485   postinstall_cmds='chmod 555 $lib'
15486   ;;
15487
15488 interix[3-9]*)
15489   version_type=linux
15490   need_lib_prefix=no
15491   need_version=no
15492   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15493   soname_spec='${libname}${release}${shared_ext}$major'
15494   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15495   shlibpath_var=LD_LIBRARY_PATH
15496   shlibpath_overrides_runpath=no
15497   hardcode_into_libs=yes
15498   ;;
15499
15500 irix5* | irix6* | nonstopux*)
15501   case $host_os in
15502     nonstopux*) version_type=nonstopux ;;
15503     *)
15504         if test "$lt_cv_prog_gnu_ld" = yes; then
15505                 version_type=linux
15506         else
15507                 version_type=irix
15508         fi ;;
15509   esac
15510   need_lib_prefix=no
15511   need_version=no
15512   soname_spec='${libname}${release}${shared_ext}$major'
15513   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15514   case $host_os in
15515   irix5* | nonstopux*)
15516     libsuff= shlibsuff=
15517     ;;
15518   *)
15519     case $LD in # libtool.m4 will add one of these switches to LD
15520     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15521       libsuff= shlibsuff= libmagic=32-bit;;
15522     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15523       libsuff=32 shlibsuff=N32 libmagic=N32;;
15524     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15525       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15526     *) libsuff= shlibsuff= libmagic=never-match;;
15527     esac
15528     ;;
15529   esac
15530   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15531   shlibpath_overrides_runpath=no
15532   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15533   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15534   hardcode_into_libs=yes
15535   ;;
15536
15537 # No shared lib support for Linux oldld, aout, or coff.
15538 linux*oldld* | linux*aout* | linux*coff*)
15539   dynamic_linker=no
15540   ;;
15541
15542 # This must be Linux ELF.
15543 linux* | k*bsd*-gnu)
15544   version_type=linux
15545   need_lib_prefix=no
15546   need_version=no
15547   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15548   soname_spec='${libname}${release}${shared_ext}$major'
15549   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15550   shlibpath_var=LD_LIBRARY_PATH
15551   shlibpath_overrides_runpath=no
15552   # This implies no fast_install, which is unacceptable.
15553   # Some rework will be needed to allow for fast_install
15554   # before this can be enabled.
15555   hardcode_into_libs=yes
15556
15557   # find out which ABI we are using
15558   libsuff=
15559   case "$host_cpu" in
15560   x86_64*|s390x*|powerpc64*)
15561     echo '#line 15561 "configure"' > conftest.$ac_ext
15562     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15563   (eval $ac_compile) 2>&5
15564   ac_status=$?
15565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15566   (exit $ac_status); }; then
15567       case `/usr/bin/file conftest.$ac_objext` in
15568       *64-bit*)
15569         libsuff=64
15570         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
15571         ;;
15572       esac
15573     fi
15574     rm -rf conftest*
15575     ;;
15576   esac
15577
15578   # Append ld.so.conf contents to the search path
15579   if test -f /etc/ld.so.conf; then
15580     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15581     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
15582   fi
15583
15584   # We used to test for /lib/ld.so.1 and disable shared libraries on
15585   # powerpc, because MkLinux only supported shared libraries with the
15586   # GNU dynamic linker.  Since this was broken with cross compilers,
15587   # most powerpc-linux boxes support dynamic linking these days and
15588   # people can always --disable-shared, the test was removed, and we
15589   # assume the GNU/Linux dynamic linker is in use.
15590   dynamic_linker='GNU/Linux ld.so'
15591   ;;
15592
15593 netbsd*)
15594   version_type=sunos
15595   need_lib_prefix=no
15596   need_version=no
15597   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15598     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15599     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15600     dynamic_linker='NetBSD (a.out) ld.so'
15601   else
15602     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15603     soname_spec='${libname}${release}${shared_ext}$major'
15604     dynamic_linker='NetBSD ld.elf_so'
15605   fi
15606   shlibpath_var=LD_LIBRARY_PATH
15607   shlibpath_overrides_runpath=yes
15608   hardcode_into_libs=yes
15609   ;;
15610
15611 newsos6)
15612   version_type=linux
15613   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15614   shlibpath_var=LD_LIBRARY_PATH
15615   shlibpath_overrides_runpath=yes
15616   ;;
15617
15618 nto-qnx*)
15619   version_type=linux
15620   need_lib_prefix=no
15621   need_version=no
15622   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15623   soname_spec='${libname}${release}${shared_ext}$major'
15624   shlibpath_var=LD_LIBRARY_PATH
15625   shlibpath_overrides_runpath=yes
15626   ;;
15627
15628 openbsd*)
15629   version_type=sunos
15630   sys_lib_dlsearch_path_spec="/usr/lib"
15631   need_lib_prefix=no
15632   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15633   case $host_os in
15634     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15635     *)                         need_version=no  ;;
15636   esac
15637   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15638   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15639   shlibpath_var=LD_LIBRARY_PATH
15640   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15641     case $host_os in
15642       openbsd2.[89] | openbsd2.[89].*)
15643         shlibpath_overrides_runpath=no
15644         ;;
15645       *)
15646         shlibpath_overrides_runpath=yes
15647         ;;
15648       esac
15649   else
15650     shlibpath_overrides_runpath=yes
15651   fi
15652   ;;
15653
15654 os2*)
15655   libname_spec='$name'
15656   shrext_cmds=".dll"
15657   need_lib_prefix=no
15658   library_names_spec='$libname${shared_ext} $libname.a'
15659   dynamic_linker='OS/2 ld.exe'
15660   shlibpath_var=LIBPATH
15661   ;;
15662
15663 osf3* | osf4* | osf5*)
15664   version_type=osf
15665   need_lib_prefix=no
15666   need_version=no
15667   soname_spec='${libname}${release}${shared_ext}$major'
15668   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15669   shlibpath_var=LD_LIBRARY_PATH
15670   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15671   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15672   ;;
15673
15674 rdos*)
15675   dynamic_linker=no
15676   ;;
15677
15678 solaris*)
15679   version_type=linux
15680   need_lib_prefix=no
15681   need_version=no
15682   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15683   soname_spec='${libname}${release}${shared_ext}$major'
15684   shlibpath_var=LD_LIBRARY_PATH
15685   shlibpath_overrides_runpath=yes
15686   hardcode_into_libs=yes
15687   # ldd complains unless libraries are executable
15688   postinstall_cmds='chmod +x $lib'
15689   ;;
15690
15691 sunos4*)
15692   version_type=sunos
15693   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15694   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15695   shlibpath_var=LD_LIBRARY_PATH
15696   shlibpath_overrides_runpath=yes
15697   if test "$with_gnu_ld" = yes; then
15698     need_lib_prefix=no
15699   fi
15700   need_version=yes
15701   ;;
15702
15703 sysv4 | sysv4.3*)
15704   version_type=linux
15705   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15706   soname_spec='${libname}${release}${shared_ext}$major'
15707   shlibpath_var=LD_LIBRARY_PATH
15708   case $host_vendor in
15709     sni)
15710       shlibpath_overrides_runpath=no
15711       need_lib_prefix=no
15712       export_dynamic_flag_spec='${wl}-Blargedynsym'
15713       runpath_var=LD_RUN_PATH
15714       ;;
15715     siemens)
15716       need_lib_prefix=no
15717       ;;
15718     motorola)
15719       need_lib_prefix=no
15720       need_version=no
15721       shlibpath_overrides_runpath=no
15722       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15723       ;;
15724   esac
15725   ;;
15726
15727 sysv4*MP*)
15728   if test -d /usr/nec ;then
15729     version_type=linux
15730     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15731     soname_spec='$libname${shared_ext}.$major'
15732     shlibpath_var=LD_LIBRARY_PATH
15733   fi
15734   ;;
15735
15736 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15737   version_type=freebsd-elf
15738   need_lib_prefix=no
15739   need_version=no
15740   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15741   soname_spec='${libname}${release}${shared_ext}$major'
15742   shlibpath_var=LD_LIBRARY_PATH
15743   hardcode_into_libs=yes
15744   if test "$with_gnu_ld" = yes; then
15745     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15746     shlibpath_overrides_runpath=no
15747   else
15748     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15749     shlibpath_overrides_runpath=yes
15750     case $host_os in
15751       sco3.2v5*)
15752         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15753         ;;
15754     esac
15755   fi
15756   sys_lib_dlsearch_path_spec='/usr/lib'
15757   ;;
15758
15759 uts4*)
15760   version_type=linux
15761   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15762   soname_spec='${libname}${release}${shared_ext}$major'
15763   shlibpath_var=LD_LIBRARY_PATH
15764   ;;
15765
15766 *)
15767   dynamic_linker=no
15768   ;;
15769 esac
15770 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15771 echo "${ECHO_T}$dynamic_linker" >&6; }
15772 test "$dynamic_linker" = no && can_build_shared=no
15773
15774 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15775 if test "$GCC" = yes; then
15776   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15777 fi
15778
15779 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15780 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15781 hardcode_action_F77=
15782 if test -n "$hardcode_libdir_flag_spec_F77" || \
15783    test -n "$runpath_var_F77" || \
15784    test "X$hardcode_automatic_F77" = "Xyes" ; then
15785
15786   # We can hardcode non-existant directories.
15787   if test "$hardcode_direct_F77" != no &&
15788      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15789      # have to relink, otherwise we might link with an installed library
15790      # when we should be linking with a yet-to-be-installed one
15791      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15792      test "$hardcode_minus_L_F77" != no; then
15793     # Linking always hardcodes the temporary library directory.
15794     hardcode_action_F77=relink
15795   else
15796     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15797     hardcode_action_F77=immediate
15798   fi
15799 else
15800   # We cannot hardcode anything, or else we can only hardcode existing
15801   # directories.
15802   hardcode_action_F77=unsupported
15803 fi
15804 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15805 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15806
15807 if test "$hardcode_action_F77" = relink; then
15808   # Fast installation is not supported
15809   enable_fast_install=no
15810 elif test "$shlibpath_overrides_runpath" = yes ||
15811      test "$enable_shared" = no; then
15812   # Fast installation is not necessary
15813   enable_fast_install=needless
15814 fi
15815
15816
15817 # The else clause should only fire when bootstrapping the
15818 # libtool distribution, otherwise you forgot to ship ltmain.sh
15819 # with your package, and you will get complaints that there are
15820 # no rules to generate ltmain.sh.
15821 if test -f "$ltmain"; then
15822   # See if we are running on zsh, and set the options which allow our commands through
15823   # without removal of \ escapes.
15824   if test -n "${ZSH_VERSION+set}" ; then
15825     setopt NO_GLOB_SUBST
15826   fi
15827   # Now quote all the things that may contain metacharacters while being
15828   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15829   # variables and quote the copies for generation of the libtool script.
15830   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15831     SED SHELL STRIP \
15832     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15833     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15834     deplibs_check_method reload_flag reload_cmds need_locks \
15835     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15836     lt_cv_sys_global_symbol_to_c_name_address \
15837     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15838     old_postinstall_cmds old_postuninstall_cmds \
15839     compiler_F77 \
15840     CC_F77 \
15841     LD_F77 \
15842     lt_prog_compiler_wl_F77 \
15843     lt_prog_compiler_pic_F77 \
15844     lt_prog_compiler_static_F77 \
15845     lt_prog_compiler_no_builtin_flag_F77 \
15846     export_dynamic_flag_spec_F77 \
15847     thread_safe_flag_spec_F77 \
15848     whole_archive_flag_spec_F77 \
15849     enable_shared_with_static_runtimes_F77 \
15850     old_archive_cmds_F77 \
15851     old_archive_from_new_cmds_F77 \
15852     predep_objects_F77 \
15853     postdep_objects_F77 \
15854     predeps_F77 \
15855     postdeps_F77 \
15856     compiler_lib_search_path_F77 \
15857     archive_cmds_F77 \
15858     archive_expsym_cmds_F77 \
15859     postinstall_cmds_F77 \
15860     postuninstall_cmds_F77 \
15861     old_archive_from_expsyms_cmds_F77 \
15862     allow_undefined_flag_F77 \
15863     no_undefined_flag_F77 \
15864     export_symbols_cmds_F77 \
15865     hardcode_libdir_flag_spec_F77 \
15866     hardcode_libdir_flag_spec_ld_F77 \
15867     hardcode_libdir_separator_F77 \
15868     hardcode_automatic_F77 \
15869     module_cmds_F77 \
15870     module_expsym_cmds_F77 \
15871     lt_cv_prog_compiler_c_o_F77 \
15872     fix_srcfile_path_F77 \
15873     exclude_expsyms_F77 \
15874     include_expsyms_F77; do
15875
15876     case $var in
15877     old_archive_cmds_F77 | \
15878     old_archive_from_new_cmds_F77 | \
15879     archive_cmds_F77 | \
15880     archive_expsym_cmds_F77 | \
15881     module_cmds_F77 | \
15882     module_expsym_cmds_F77 | \
15883     old_archive_from_expsyms_cmds_F77 | \
15884     export_symbols_cmds_F77 | \
15885     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15886     postinstall_cmds | postuninstall_cmds | \
15887     old_postinstall_cmds | old_postuninstall_cmds | \
15888     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15889       # Double-quote double-evaled strings.
15890       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15891       ;;
15892     *)
15893       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15894       ;;
15895     esac
15896   done
15897
15898   case $lt_echo in
15899   *'\$0 --fallback-echo"')
15900     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15901     ;;
15902   esac
15903
15904 cfgfile="$ofile"
15905
15906   cat <<__EOF__ >> "$cfgfile"
15907 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15908
15909 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15910
15911 # Shell to use when invoking shell scripts.
15912 SHELL=$lt_SHELL
15913
15914 # Whether or not to build shared libraries.
15915 build_libtool_libs=$enable_shared
15916
15917 # Whether or not to build static libraries.
15918 build_old_libs=$enable_static
15919
15920 # Whether or not to add -lc for building shared libraries.
15921 build_libtool_need_lc=$archive_cmds_need_lc_F77
15922
15923 # Whether or not to disallow shared libs when runtime libs are static
15924 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15925
15926 # Whether or not to optimize for fast installation.
15927 fast_install=$enable_fast_install
15928
15929 # The host system.
15930 host_alias=$host_alias
15931 host=$host
15932 host_os=$host_os
15933
15934 # The build system.
15935 build_alias=$build_alias
15936 build=$build
15937 build_os=$build_os
15938
15939 # An echo program that does not interpret backslashes.
15940 echo=$lt_echo
15941
15942 # The archiver.
15943 AR=$lt_AR
15944 AR_FLAGS=$lt_AR_FLAGS
15945
15946 # A C compiler.
15947 LTCC=$lt_LTCC
15948
15949 # LTCC compiler flags.
15950 LTCFLAGS=$lt_LTCFLAGS
15951
15952 # A language-specific compiler.
15953 CC=$lt_compiler_F77
15954
15955 # Is the compiler the GNU C compiler?
15956 with_gcc=$GCC_F77
15957
15958 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
15959 gcc_ver=\`gcc -dumpversion\`
15960
15961 # An ERE matcher.
15962 EGREP=$lt_EGREP
15963
15964 # The linker used to build libraries.
15965 LD=$lt_LD_F77
15966
15967 # Whether we need hard or soft links.
15968 LN_S=$lt_LN_S
15969
15970 # A BSD-compatible nm program.
15971 NM=$lt_NM
15972
15973 # A symbol stripping program
15974 STRIP=$lt_STRIP
15975
15976 # Used to examine libraries when file_magic_cmd begins "file"
15977 MAGIC_CMD=$MAGIC_CMD
15978
15979 # Used on cygwin: DLL creation program.
15980 DLLTOOL="$DLLTOOL"
15981
15982 # Used on cygwin: object dumper.
15983 OBJDUMP="$OBJDUMP"
15984
15985 # Used on cygwin: assembler.
15986 AS="$AS"
15987
15988 # The name of the directory that contains temporary libtool files.
15989 objdir=$objdir
15990
15991 # How to create reloadable object files.
15992 reload_flag=$lt_reload_flag
15993 reload_cmds=$lt_reload_cmds
15994
15995 # How to pass a linker flag through the compiler.
15996 wl=$lt_lt_prog_compiler_wl_F77
15997
15998 # Object file suffix (normally "o").
15999 objext="$ac_objext"
16000
16001 # Old archive suffix (normally "a").
16002 libext="$libext"
16003
16004 # Shared library suffix (normally ".so").
16005 shrext_cmds='$shrext_cmds'
16006
16007 # Executable file suffix (normally "").
16008 exeext="$exeext"
16009
16010 # Additional compiler flags for building library objects.
16011 pic_flag=$lt_lt_prog_compiler_pic_F77
16012 pic_mode=$pic_mode
16013
16014 # What is the maximum length of a command?
16015 max_cmd_len=$lt_cv_sys_max_cmd_len
16016
16017 # Does compiler simultaneously support -c and -o options?
16018 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16019
16020 # Must we lock files when doing compilation?
16021 need_locks=$lt_need_locks
16022
16023 # Do we need the lib prefix for modules?
16024 need_lib_prefix=$need_lib_prefix
16025
16026 # Do we need a version for libraries?
16027 need_version=$need_version
16028
16029 # Whether dlopen is supported.
16030 dlopen_support=$enable_dlopen
16031
16032 # Whether dlopen of programs is supported.
16033 dlopen_self=$enable_dlopen_self
16034
16035 # Whether dlopen of statically linked programs is supported.
16036 dlopen_self_static=$enable_dlopen_self_static
16037
16038 # Compiler flag to prevent dynamic linking.
16039 link_static_flag=$lt_lt_prog_compiler_static_F77
16040
16041 # Compiler flag to turn off builtin functions.
16042 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16043
16044 # Compiler flag to allow reflexive dlopens.
16045 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16046
16047 # Compiler flag to generate shared objects directly from archives.
16048 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16049
16050 # Compiler flag to generate thread-safe objects.
16051 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16052
16053 # Library versioning type.
16054 version_type=$version_type
16055
16056 # Format of library name prefix.
16057 libname_spec=$lt_libname_spec
16058
16059 # List of archive names.  First name is the real one, the rest are links.
16060 # The last name is the one that the linker finds with -lNAME.
16061 library_names_spec=$lt_library_names_spec
16062
16063 # The coded name of the library, if different from the real name.
16064 soname_spec=$lt_soname_spec
16065
16066 # Commands used to build and install an old-style archive.
16067 RANLIB=$lt_RANLIB
16068 old_archive_cmds=$lt_old_archive_cmds_F77
16069 old_postinstall_cmds=$lt_old_postinstall_cmds
16070 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16071
16072 # Create an old-style archive from a shared archive.
16073 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16074
16075 # Create a temporary old-style archive to link instead of a shared archive.
16076 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16077
16078 # Commands used to build and install a shared archive.
16079 archive_cmds=$lt_archive_cmds_F77
16080 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16081 postinstall_cmds=$lt_postinstall_cmds
16082 postuninstall_cmds=$lt_postuninstall_cmds
16083
16084 # Commands used to build a loadable module (assumed same as above if empty)
16085 module_cmds=$lt_module_cmds_F77
16086 module_expsym_cmds=$lt_module_expsym_cmds_F77
16087
16088 # Commands to strip libraries.
16089 old_striplib=$lt_old_striplib
16090 striplib=$lt_striplib
16091
16092 # Dependencies to place before the objects being linked to create a
16093 # shared library.
16094 predep_objects=\`echo $lt_predep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
16095
16096 # Dependencies to place after the objects being linked to create a
16097 # shared library.
16098 postdep_objects=\`echo $lt_postdep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
16099
16100 # Dependencies to place before the objects being linked to create a
16101 # shared library.
16102 predeps=$lt_predeps_F77
16103
16104 # Dependencies to place after the objects being linked to create a
16105 # shared library.
16106 postdeps=$lt_postdeps_F77
16107
16108 # The library search path used internally by the compiler when linking
16109 # a shared library.
16110 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
16111
16112 # Method to check whether dependent libraries are shared objects.
16113 deplibs_check_method=$lt_deplibs_check_method
16114
16115 # Command to use when deplibs_check_method == file_magic.
16116 file_magic_cmd=$lt_file_magic_cmd
16117
16118 # Flag that allows shared libraries with undefined symbols to be built.
16119 allow_undefined_flag=$lt_allow_undefined_flag_F77
16120
16121 # Flag that forces no undefined symbols.
16122 no_undefined_flag=$lt_no_undefined_flag_F77
16123
16124 # Commands used to finish a libtool library installation in a directory.
16125 finish_cmds=$lt_finish_cmds
16126
16127 # Same as above, but a single script fragment to be evaled but not shown.
16128 finish_eval=$lt_finish_eval
16129
16130 # Take the output of nm and produce a listing of raw symbols and C names.
16131 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16132
16133 # Transform the output of nm in a proper C declaration
16134 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16135
16136 # Transform the output of nm in a C name address pair
16137 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16138
16139 # This is the shared library runtime path variable.
16140 runpath_var=$runpath_var
16141
16142 # This is the shared library path variable.
16143 shlibpath_var=$shlibpath_var
16144
16145 # Is shlibpath searched before the hard-coded library search path?
16146 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16147
16148 # How to hardcode a shared library path into an executable.
16149 hardcode_action=$hardcode_action_F77
16150
16151 # Whether we should hardcode library paths into libraries.
16152 hardcode_into_libs=$hardcode_into_libs
16153
16154 # Flag to hardcode \$libdir into a binary during linking.
16155 # This must work even if \$libdir does not exist.
16156 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16157
16158 # If ld is used when linking, flag to hardcode \$libdir into
16159 # a binary during linking. This must work even if \$libdir does
16160 # not exist.
16161 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16162
16163 # Whether we need a single -rpath flag with a separated argument.
16164 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16165
16166 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16167 # resulting binary.
16168 hardcode_direct=$hardcode_direct_F77
16169
16170 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16171 # resulting binary.
16172 hardcode_minus_L=$hardcode_minus_L_F77
16173
16174 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16175 # the resulting binary.
16176 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16177
16178 # Set to yes if building a shared library automatically hardcodes DIR into the library
16179 # and all subsequent libraries and executables linked against it.
16180 hardcode_automatic=$hardcode_automatic_F77
16181
16182 # Variables whose values should be saved in libtool wrapper scripts and
16183 # restored at relink time.
16184 variables_saved_for_relink="$variables_saved_for_relink"
16185
16186 # Whether libtool must link a program against all its dependency libraries.
16187 link_all_deplibs=$link_all_deplibs_F77
16188
16189 # Compile-time system search path for libraries
16190 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
16191
16192 # Run-time system search path for libraries
16193 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16194
16195 # Fix the shell variable \$srcfile for the compiler.
16196 fix_srcfile_path=$lt_fix_srcfile_path
16197
16198 # Set to yes if exported symbols are required.
16199 always_export_symbols=$always_export_symbols_F77
16200
16201 # The commands to list exported symbols.
16202 export_symbols_cmds=$lt_export_symbols_cmds_F77
16203
16204 # The commands to extract the exported symbol list from a shared archive.
16205 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16206
16207 # Symbols that should not be listed in the preloaded symbols.
16208 exclude_expsyms=$lt_exclude_expsyms_F77
16209
16210 # Symbols that must always be exported.
16211 include_expsyms=$lt_include_expsyms_F77
16212
16213 # ### END LIBTOOL TAG CONFIG: $tagname
16214
16215 __EOF__
16216
16217
16218 else
16219   # If there is no Makefile yet, we rely on a make rule to execute
16220   # `config.status --recheck' to rerun these tests and create the
16221   # libtool script then.
16222   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16223   if test -f "$ltmain_in"; then
16224     test -f Makefile && make "$ltmain"
16225   fi
16226 fi
16227
16228
16229 ac_ext=c
16230 ac_cpp='$CPP $CPPFLAGS'
16231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16234
16235 CC="$lt_save_CC"
16236
16237         else
16238           tagname=""
16239         fi
16240         ;;
16241
16242       GCJ)
16243         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16244
16245
16246 # Source file extension for Java test sources.
16247 ac_ext=java
16248
16249 # Object file extension for compiled Java test sources.
16250 objext=o
16251 objext_GCJ=$objext
16252
16253 # Code to be used in simple compile tests
16254 lt_simple_compile_test_code="class foo {}"
16255
16256 # Code to be used in simple link tests
16257 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16258
16259 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16260
16261 # If no C compiler was specified, use CC.
16262 LTCC=${LTCC-"$CC"}
16263
16264 # If no C compiler flags were specified, use CFLAGS.
16265 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16266
16267 # Allow CC to be a program name with arguments.
16268 compiler=$CC
16269
16270
16271 # save warnings/boilerplate of simple test code
16272 ac_outfile=conftest.$ac_objext
16273 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16274 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16275 _lt_compiler_boilerplate=`cat conftest.err`
16276 $rm conftest*
16277
16278 ac_outfile=conftest.$ac_objext
16279 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16280 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16281 _lt_linker_boilerplate=`cat conftest.err`
16282 $rm conftest*
16283
16284
16285 # Allow CC to be a program name with arguments.
16286 lt_save_CC="$CC"
16287 CC=${GCJ-"gcj"}
16288 compiler=$CC
16289 compiler_GCJ=$CC
16290 for cc_temp in $compiler""; do
16291   case $cc_temp in
16292     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16293     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16294     \-*) ;;
16295     *) break;;
16296   esac
16297 done
16298 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16299
16300 LD_GCJ="$LD"
16301
16302 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16303 archive_cmds_need_lc_GCJ=no
16304
16305 old_archive_cmds_GCJ=$old_archive_cmds
16306
16307
16308 lt_prog_compiler_no_builtin_flag_GCJ=
16309
16310 if test "$GCC" = yes; then
16311   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16312
16313
16314 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16315 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16316 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16317   echo $ECHO_N "(cached) $ECHO_C" >&6
16318 else
16319   lt_cv_prog_compiler_rtti_exceptions=no
16320   ac_outfile=conftest.$ac_objext
16321    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16322    lt_compiler_flag="-fno-rtti -fno-exceptions"
16323    # Insert the option either (1) after the last *FLAGS variable, or
16324    # (2) before a word containing "conftest.", or (3) at the end.
16325    # Note that $ac_compile itself does not contain backslashes and begins
16326    # with a dollar sign (not a hyphen), so the echo should work correctly.
16327    # The option is referenced via a variable to avoid confusing sed.
16328    lt_compile=`echo "$ac_compile" | $SED \
16329    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16330    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16331    -e 's:$: $lt_compiler_flag:'`
16332    (eval echo "\"\$as_me:16332: $lt_compile\"" >&5)
16333    (eval "$lt_compile" 2>conftest.err)
16334    ac_status=$?
16335    cat conftest.err >&5
16336    echo "$as_me:16336: \$? = $ac_status" >&5
16337    if (exit $ac_status) && test -s "$ac_outfile"; then
16338      # The compiler can only warn and ignore the option if not recognized
16339      # So say no if there are warnings other than the usual output.
16340      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16341      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16342      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16343        lt_cv_prog_compiler_rtti_exceptions=yes
16344      fi
16345    fi
16346    $rm conftest*
16347
16348 fi
16349 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16350 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16351
16352 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16353     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16354 else
16355     :
16356 fi
16357
16358 fi
16359
16360 lt_prog_compiler_wl_GCJ=
16361 lt_prog_compiler_pic_GCJ=
16362 lt_prog_compiler_static_GCJ=
16363
16364 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16365 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16366
16367   if test "$GCC" = yes; then
16368     lt_prog_compiler_wl_GCJ='-Wl,'
16369     lt_prog_compiler_static_GCJ='-static'
16370
16371     case $host_os in
16372       aix*)
16373       # All AIX code is PIC.
16374       if test "$host_cpu" = ia64; then
16375         # AIX 5 now supports IA64 processor
16376         lt_prog_compiler_static_GCJ='-Bstatic'
16377       fi
16378       ;;
16379
16380     amigaos*)
16381       # FIXME: we need at least 68020 code to build shared libraries, but
16382       # adding the `-m68020' flag to GCC prevents building anything better,
16383       # like `-m68040'.
16384       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16385       ;;
16386
16387     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16388       # PIC is the default for these OSes.
16389       ;;
16390
16391     mingw* | cygwin* | pw32* | os2*)
16392       # This hack is so that the source file can tell whether it is being
16393       # built for inclusion in a dll (and should export symbols for example).
16394       # Although the cygwin gcc ignores -fPIC, still need this for old-style
16395       # (--disable-auto-import) libraries
16396       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16397       ;;
16398
16399     darwin* | rhapsody*)
16400       # PIC is the default on this platform
16401       # Common symbols not allowed in MH_DYLIB files
16402       lt_prog_compiler_pic_GCJ='-fno-common'
16403       ;;
16404
16405     interix[3-9]*)
16406       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16407       # Instead, we relocate shared libraries at runtime.
16408       ;;
16409
16410     msdosdjgpp*)
16411       # Just because we use GCC doesn't mean we suddenly get shared libraries
16412       # on systems that don't support them.
16413       lt_prog_compiler_can_build_shared_GCJ=no
16414       enable_shared=no
16415       ;;
16416
16417     sysv4*MP*)
16418       if test -d /usr/nec; then
16419         lt_prog_compiler_pic_GCJ=-Kconform_pic
16420       fi
16421       ;;
16422
16423     hpux*)
16424       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16425       # not for PA HP-UX.
16426       case $host_cpu in
16427       hppa*64*|ia64*)
16428         # +Z the default
16429         ;;
16430       *)
16431         lt_prog_compiler_pic_GCJ='-fPIC'
16432         ;;
16433       esac
16434       ;;
16435
16436     *)
16437       lt_prog_compiler_pic_GCJ='-fPIC'
16438       ;;
16439     esac
16440   else
16441     # PORTME Check for flag to pass linker flags through the system compiler.
16442     case $host_os in
16443     aix*)
16444       lt_prog_compiler_wl_GCJ='-Wl,'
16445       if test "$host_cpu" = ia64; then
16446         # AIX 5 now supports IA64 processor
16447         lt_prog_compiler_static_GCJ='-Bstatic'
16448       else
16449         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16450       fi
16451       ;;
16452       darwin*)
16453         # PIC is the default on this platform
16454         # Common symbols not allowed in MH_DYLIB files
16455        case $cc_basename in
16456          xlc*)
16457          lt_prog_compiler_pic_GCJ='-qnocommon'
16458          lt_prog_compiler_wl_GCJ='-Wl,'
16459          ;;
16460        esac
16461        ;;
16462
16463     mingw* | cygwin* | pw32* | os2*)
16464       # This hack is so that the source file can tell whether it is being
16465       # built for inclusion in a dll (and should export symbols for example).
16466       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16467       ;;
16468
16469     hpux9* | hpux10* | hpux11*)
16470       lt_prog_compiler_wl_GCJ='-Wl,'
16471       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16472       # not for PA HP-UX.
16473       case $host_cpu in
16474       hppa*64*|ia64*)
16475         # +Z the default
16476         ;;
16477       *)
16478         lt_prog_compiler_pic_GCJ='+Z'
16479         ;;
16480       esac
16481       # Is there a better lt_prog_compiler_static that works with the bundled CC?
16482       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16483       ;;
16484
16485     irix5* | irix6* | nonstopux*)
16486       lt_prog_compiler_wl_GCJ='-Wl,'
16487       # PIC (with -KPIC) is the default.
16488       lt_prog_compiler_static_GCJ='-non_shared'
16489       ;;
16490
16491     newsos6)
16492       lt_prog_compiler_pic_GCJ='-KPIC'
16493       lt_prog_compiler_static_GCJ='-Bstatic'
16494       ;;
16495
16496     linux* | k*bsd*-gnu)
16497       case $cc_basename in
16498       icc* | ecc*)
16499         lt_prog_compiler_wl_GCJ='-Wl,'
16500         lt_prog_compiler_pic_GCJ='-KPIC'
16501         lt_prog_compiler_static_GCJ='-static'
16502         ;;
16503       pgcc* | pgf77* | pgf90* | pgf95*)
16504         # Portland Group compilers (*not* the Pentium gcc compiler,
16505         # which looks to be a dead project)
16506         lt_prog_compiler_wl_GCJ='-Wl,'
16507         lt_prog_compiler_pic_GCJ='-fpic'
16508         lt_prog_compiler_static_GCJ='-Bstatic'
16509         ;;
16510       ccc*)
16511         lt_prog_compiler_wl_GCJ='-Wl,'
16512         # All Alpha code is PIC.
16513         lt_prog_compiler_static_GCJ='-non_shared'
16514         ;;
16515       *)
16516         case `$CC -V 2>&1 | sed 5q` in
16517         *Sun\ C*)
16518           # Sun C 5.9
16519           lt_prog_compiler_pic_GCJ='-KPIC'
16520           lt_prog_compiler_static_GCJ='-Bstatic'
16521           lt_prog_compiler_wl_GCJ='-Wl,'
16522           ;;
16523         *Sun\ F*)
16524           # Sun Fortran 8.3 passes all unrecognized flags to the linker
16525           lt_prog_compiler_pic_GCJ='-KPIC'
16526           lt_prog_compiler_static_GCJ='-Bstatic'
16527           lt_prog_compiler_wl_GCJ=''
16528           ;;
16529         esac
16530         ;;
16531       esac
16532       ;;
16533
16534     osf3* | osf4* | osf5*)
16535       lt_prog_compiler_wl_GCJ='-Wl,'
16536       # All OSF/1 code is PIC.
16537       lt_prog_compiler_static_GCJ='-non_shared'
16538       ;;
16539
16540     rdos*)
16541       lt_prog_compiler_static_GCJ='-non_shared'
16542       ;;
16543
16544     solaris*)
16545       lt_prog_compiler_pic_GCJ='-KPIC'
16546       lt_prog_compiler_static_GCJ='-Bstatic'
16547       case $cc_basename in
16548       f77* | f90* | f95*)
16549         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16550       *)
16551         lt_prog_compiler_wl_GCJ='-Wl,';;
16552       esac
16553       ;;
16554
16555     sunos4*)
16556       lt_prog_compiler_wl_GCJ='-Qoption ld '
16557       lt_prog_compiler_pic_GCJ='-PIC'
16558       lt_prog_compiler_static_GCJ='-Bstatic'
16559       ;;
16560
16561     sysv4 | sysv4.2uw2* | sysv4.3*)
16562       lt_prog_compiler_wl_GCJ='-Wl,'
16563       lt_prog_compiler_pic_GCJ='-KPIC'
16564       lt_prog_compiler_static_GCJ='-Bstatic'
16565       ;;
16566
16567     sysv4*MP*)
16568       if test -d /usr/nec ;then
16569         lt_prog_compiler_pic_GCJ='-Kconform_pic'
16570         lt_prog_compiler_static_GCJ='-Bstatic'
16571       fi
16572       ;;
16573
16574     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16575       lt_prog_compiler_wl_GCJ='-Wl,'
16576       lt_prog_compiler_pic_GCJ='-KPIC'
16577       lt_prog_compiler_static_GCJ='-Bstatic'
16578       ;;
16579
16580     unicos*)
16581       lt_prog_compiler_wl_GCJ='-Wl,'
16582       lt_prog_compiler_can_build_shared_GCJ=no
16583       ;;
16584
16585     uts4*)
16586       lt_prog_compiler_pic_GCJ='-pic'
16587       lt_prog_compiler_static_GCJ='-Bstatic'
16588       ;;
16589
16590     *)
16591       lt_prog_compiler_can_build_shared_GCJ=no
16592       ;;
16593     esac
16594   fi
16595
16596 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16597 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16598
16599 #
16600 # Check to make sure the PIC flag actually works.
16601 #
16602 if test -n "$lt_prog_compiler_pic_GCJ"; then
16603
16604 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16605 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16606 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16607   echo $ECHO_N "(cached) $ECHO_C" >&6
16608 else
16609   lt_prog_compiler_pic_works_GCJ=no
16610   ac_outfile=conftest.$ac_objext
16611    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16612    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16613    # Insert the option either (1) after the last *FLAGS variable, or
16614    # (2) before a word containing "conftest.", or (3) at the end.
16615    # Note that $ac_compile itself does not contain backslashes and begins
16616    # with a dollar sign (not a hyphen), so the echo should work correctly.
16617    # The option is referenced via a variable to avoid confusing sed.
16618    lt_compile=`echo "$ac_compile" | $SED \
16619    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16620    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16621    -e 's:$: $lt_compiler_flag:'`
16622    (eval echo "\"\$as_me:16622: $lt_compile\"" >&5)
16623    (eval "$lt_compile" 2>conftest.err)
16624    ac_status=$?
16625    cat conftest.err >&5
16626    echo "$as_me:16626: \$? = $ac_status" >&5
16627    if (exit $ac_status) && test -s "$ac_outfile"; then
16628      # The compiler can only warn and ignore the option if not recognized
16629      # So say no if there are warnings other than the usual output.
16630      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16631      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16632      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16633        lt_prog_compiler_pic_works_GCJ=yes
16634      fi
16635    fi
16636    $rm conftest*
16637
16638 fi
16639 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16640 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16641
16642 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16643     case $lt_prog_compiler_pic_GCJ in
16644      "" | " "*) ;;
16645      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16646      esac
16647 else
16648     lt_prog_compiler_pic_GCJ=
16649      lt_prog_compiler_can_build_shared_GCJ=no
16650 fi
16651
16652 fi
16653 case $host_os in
16654   # For platforms which do not support PIC, -DPIC is meaningless:
16655   *djgpp*)
16656     lt_prog_compiler_pic_GCJ=
16657     ;;
16658   *)
16659     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16660     ;;
16661 esac
16662
16663 #
16664 # Check to make sure the static flag actually works.
16665 #
16666 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16667 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16668 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16669 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16670   echo $ECHO_N "(cached) $ECHO_C" >&6
16671 else
16672   lt_prog_compiler_static_works_GCJ=no
16673    save_LDFLAGS="$LDFLAGS"
16674    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16675    echo "$lt_simple_link_test_code" > conftest.$ac_ext
16676    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16677      # The linker can only warn and ignore the option if not recognized
16678      # So say no if there are warnings
16679      if test -s conftest.err; then
16680        # Append any errors to the config.log.
16681        cat conftest.err 1>&5
16682        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16683        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16684        if diff conftest.exp conftest.er2 >/dev/null; then
16685          lt_prog_compiler_static_works_GCJ=yes
16686        fi
16687      else
16688        lt_prog_compiler_static_works_GCJ=yes
16689      fi
16690    fi
16691    $rm conftest*
16692    LDFLAGS="$save_LDFLAGS"
16693
16694 fi
16695 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16696 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16697
16698 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16699     :
16700 else
16701     lt_prog_compiler_static_GCJ=
16702 fi
16703
16704
16705 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16706 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16707 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16708   echo $ECHO_N "(cached) $ECHO_C" >&6
16709 else
16710   lt_cv_prog_compiler_c_o_GCJ=no
16711    $rm -r conftest 2>/dev/null
16712    mkdir conftest
16713    cd conftest
16714    mkdir out
16715    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16716
16717    lt_compiler_flag="-o out/conftest2.$ac_objext"
16718    # Insert the option either (1) after the last *FLAGS variable, or
16719    # (2) before a word containing "conftest.", or (3) at the end.
16720    # Note that $ac_compile itself does not contain backslashes and begins
16721    # with a dollar sign (not a hyphen), so the echo should work correctly.
16722    lt_compile=`echo "$ac_compile" | $SED \
16723    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16724    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16725    -e 's:$: $lt_compiler_flag:'`
16726    (eval echo "\"\$as_me:16726: $lt_compile\"" >&5)
16727    (eval "$lt_compile" 2>out/conftest.err)
16728    ac_status=$?
16729    cat out/conftest.err >&5
16730    echo "$as_me:16730: \$? = $ac_status" >&5
16731    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16732    then
16733      # The compiler can only warn and ignore the option if not recognized
16734      # So say no if there are warnings
16735      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16736      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16737      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16738        lt_cv_prog_compiler_c_o_GCJ=yes
16739      fi
16740    fi
16741    chmod u+w . 2>&5
16742    $rm conftest*
16743    # SGI C++ compiler will create directory out/ii_files/ for
16744    # template instantiation
16745    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16746    $rm out/* && rmdir out
16747    cd ..
16748    rmdir conftest
16749    $rm conftest*
16750
16751 fi
16752 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16753 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16754
16755
16756 hard_links="nottested"
16757 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16758   # do not overwrite the value of need_locks provided by the user
16759   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16760 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16761   hard_links=yes
16762   $rm conftest*
16763   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16764   touch conftest.a
16765   ln conftest.a conftest.b 2>&5 || hard_links=no
16766   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16767   { echo "$as_me:$LINENO: result: $hard_links" >&5
16768 echo "${ECHO_T}$hard_links" >&6; }
16769   if test "$hard_links" = no; then
16770     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16771 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16772     need_locks=warn
16773   fi
16774 else
16775   need_locks=no
16776 fi
16777
16778 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16779 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16780
16781   runpath_var=
16782   allow_undefined_flag_GCJ=
16783   enable_shared_with_static_runtimes_GCJ=no
16784   archive_cmds_GCJ=
16785   archive_expsym_cmds_GCJ=
16786   old_archive_From_new_cmds_GCJ=
16787   old_archive_from_expsyms_cmds_GCJ=
16788   export_dynamic_flag_spec_GCJ=
16789   whole_archive_flag_spec_GCJ=
16790   thread_safe_flag_spec_GCJ=
16791   hardcode_libdir_flag_spec_GCJ=
16792   hardcode_libdir_flag_spec_ld_GCJ=
16793   hardcode_libdir_separator_GCJ=
16794   hardcode_direct_GCJ=no
16795   hardcode_minus_L_GCJ=no
16796   hardcode_shlibpath_var_GCJ=unsupported
16797   link_all_deplibs_GCJ=unknown
16798   hardcode_automatic_GCJ=no
16799   module_cmds_GCJ=
16800   module_expsym_cmds_GCJ=
16801   always_export_symbols_GCJ=no
16802   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16803   # include_expsyms should be a list of space-separated symbols to be *always*
16804   # included in the symbol list
16805   include_expsyms_GCJ=
16806   # exclude_expsyms can be an extended regexp of symbols to exclude
16807   # it will be wrapped by ` (' and `)$', so one must not match beginning or
16808   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16809   # as well as any symbol that contains `d'.
16810   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16811   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16812   # platforms (ab)use it in PIC code, but their linkers get confused if
16813   # the symbol is explicitly referenced.  Since portable code cannot
16814   # rely on this symbol name, it's probably fine to never include it in
16815   # preloaded symbol tables.
16816   extract_expsyms_cmds=
16817   # Just being paranoid about ensuring that cc_basename is set.
16818   for cc_temp in $compiler""; do
16819   case $cc_temp in
16820     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16821     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16822     \-*) ;;
16823     *) break;;
16824   esac
16825 done
16826 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16827
16828   case $host_os in
16829   cygwin* | mingw* | pw32*)
16830     # FIXME: the MSVC++ port hasn't been tested in a loooong time
16831     # When not using gcc, we currently assume that we are using
16832     # Microsoft Visual C++.
16833     if test "$GCC" != yes; then
16834       with_gnu_ld=no
16835     fi
16836     ;;
16837   interix*)
16838     # we just hope/assume this is gcc and not c89 (= MSVC++)
16839     with_gnu_ld=yes
16840     ;;
16841   openbsd*)
16842     with_gnu_ld=no
16843     ;;
16844   esac
16845
16846   ld_shlibs_GCJ=yes
16847   if test "$with_gnu_ld" = yes; then
16848     # If archive_cmds runs LD, not CC, wlarc should be empty
16849     wlarc='${wl}'
16850
16851     # Set some defaults for GNU ld with shared library support. These
16852     # are reset later if shared libraries are not supported. Putting them
16853     # here allows them to be overridden if necessary.
16854     runpath_var=LD_RUN_PATH
16855     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16856     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16857     # ancient GNU ld didn't support --whole-archive et. al.
16858     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16859         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16860       else
16861         whole_archive_flag_spec_GCJ=
16862     fi
16863     supports_anon_versioning=no
16864     case `$LD -v 2>/dev/null` in
16865       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16866       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16867       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16868       *\ 2.11.*) ;; # other 2.11 versions
16869       *) supports_anon_versioning=yes ;;
16870     esac
16871
16872     # See if GNU ld supports shared libraries.
16873     case $host_os in
16874     aix3* | aix4* | aix5*)
16875       # On AIX/PPC, the GNU linker is very broken
16876       if test "$host_cpu" != ia64; then
16877         ld_shlibs_GCJ=no
16878         cat <<EOF 1>&2
16879
16880 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16881 *** to be unable to reliably create shared libraries on AIX.
16882 *** Therefore, libtool is disabling shared libraries support.  If you
16883 *** really care for shared libraries, you may want to modify your PATH
16884 *** so that a non-GNU linker is found, and then restart.
16885
16886 EOF
16887       fi
16888       ;;
16889
16890     amigaos*)
16891       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)'
16892       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16893       hardcode_minus_L_GCJ=yes
16894
16895       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16896       # that the semantics of dynamic libraries on AmigaOS, at least up
16897       # to version 4, is to share data among multiple programs linked
16898       # with the same dynamic library.  Since this doesn't match the
16899       # behavior of shared libraries on other platforms, we can't use
16900       # them.
16901       ld_shlibs_GCJ=no
16902       ;;
16903
16904     beos*)
16905       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16906         allow_undefined_flag_GCJ=unsupported
16907         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16908         # support --undefined.  This deserves some investigation.  FIXME
16909         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16910       else
16911         ld_shlibs_GCJ=no
16912       fi
16913       ;;
16914
16915     cygwin* | mingw* | pw32*)
16916       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16917       # as there is no search path for DLLs.
16918       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16919       allow_undefined_flag_GCJ=unsupported
16920       always_export_symbols_GCJ=no
16921       enable_shared_with_static_runtimes_GCJ=yes
16922       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16923
16924       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16925         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16926         # If the export-symbols file already is a .def file (1st line
16927         # is EXPORTS), use it as is; otherwise, prepend...
16928         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16929           cp $export_symbols $output_objdir/$soname.def;
16930         else
16931           echo EXPORTS > $output_objdir/$soname.def;
16932           cat $export_symbols >> $output_objdir/$soname.def;
16933         fi~
16934         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16935       else
16936         ld_shlibs_GCJ=no
16937       fi
16938       ;;
16939
16940     interix[3-9]*)
16941       hardcode_direct_GCJ=no
16942       hardcode_shlibpath_var_GCJ=no
16943       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16944       export_dynamic_flag_spec_GCJ='${wl}-E'
16945       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16946       # Instead, shared libraries are loaded at an image base (0x10000000 by
16947       # default) and relocated if they conflict, which is a slow very memory
16948       # consuming and fragmenting process.  To avoid this, we pick a random,
16949       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16950       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16951       archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16952       archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16953       ;;
16954
16955     gnu* | linux* | k*bsd*-gnu)
16956       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16957         tmp_addflag=
16958         case $cc_basename,$host_cpu in
16959         pgcc*)                          # Portland Group C compiler
16960           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'
16961           tmp_addflag=' $pic_flag'
16962           ;;
16963         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
16964           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'
16965           tmp_addflag=' $pic_flag -Mnomain' ;;
16966         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
16967           tmp_addflag=' -i_dynamic' ;;
16968         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
16969           tmp_addflag=' -i_dynamic -nofor_main' ;;
16970         ifc* | ifort*)                  # Intel Fortran compiler
16971           tmp_addflag=' -nofor_main' ;;
16972         esac
16973         case `$CC -V 2>&1 | sed 5q` in
16974         *Sun\ C*)                       # Sun C 5.9
16975           whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16976           tmp_sharedflag='-G' ;;
16977         *Sun\ F*)                       # Sun Fortran 8.3
16978           tmp_sharedflag='-G' ;;
16979         *)
16980           tmp_sharedflag='-shared' ;;
16981         esac
16982         archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16983
16984         if test $supports_anon_versioning = yes; then
16985           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16986   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16987   $echo "local: *; };" >> $output_objdir/$libname.ver~
16988           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16989         fi
16990       else
16991         ld_shlibs_GCJ=no
16992       fi
16993       ;;
16994
16995     netbsd*)
16996       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16997         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16998         wlarc=
16999       else
17000         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17001         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17002       fi
17003       ;;
17004
17005     solaris*)
17006       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17007         ld_shlibs_GCJ=no
17008         cat <<EOF 1>&2
17009
17010 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17011 *** create shared libraries on Solaris systems.  Therefore, libtool
17012 *** is disabling shared libraries support.  We urge you to upgrade GNU
17013 *** binutils to release 2.9.1 or newer.  Another option is to modify
17014 *** your PATH or compiler configuration so that the native linker is
17015 *** used, and then restart.
17016
17017 EOF
17018       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17019         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17020         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17021       else
17022         ld_shlibs_GCJ=no
17023       fi
17024       ;;
17025
17026     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17027       case `$LD -v 2>&1` in
17028         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17029         ld_shlibs_GCJ=no
17030         cat <<_LT_EOF 1>&2
17031
17032 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17033 *** reliably create shared libraries on SCO systems.  Therefore, libtool
17034 *** is disabling shared libraries support.  We urge you to upgrade GNU
17035 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17036 *** your PATH or compiler configuration so that the native linker is
17037 *** used, and then restart.
17038
17039 _LT_EOF
17040         ;;
17041         *)
17042           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17043             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17044             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17045             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17046           else
17047             ld_shlibs_GCJ=no
17048           fi
17049         ;;
17050       esac
17051       ;;
17052
17053     sunos4*)
17054       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17055       wlarc=
17056       hardcode_direct_GCJ=yes
17057       hardcode_shlibpath_var_GCJ=no
17058       ;;
17059
17060     *)
17061       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17062         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17063         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17064       else
17065         ld_shlibs_GCJ=no
17066       fi
17067       ;;
17068     esac
17069
17070     if test "$ld_shlibs_GCJ" = no; then
17071       runpath_var=
17072       hardcode_libdir_flag_spec_GCJ=
17073       export_dynamic_flag_spec_GCJ=
17074       whole_archive_flag_spec_GCJ=
17075     fi
17076   else
17077     # PORTME fill in a description of your system's linker (not GNU ld)
17078     case $host_os in
17079     aix3*)
17080       allow_undefined_flag_GCJ=unsupported
17081       always_export_symbols_GCJ=yes
17082       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'
17083       # Note: this linker hardcodes the directories in LIBPATH if there
17084       # are no directories specified by -L.
17085       hardcode_minus_L_GCJ=yes
17086       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17087         # Neither direct hardcoding nor static linking is supported with a
17088         # broken collect2.
17089         hardcode_direct_GCJ=unsupported
17090       fi
17091       ;;
17092
17093     aix4* | aix5*)
17094       if test "$host_cpu" = ia64; then
17095         # On IA64, the linker does run time linking by default, so we don't
17096         # have to do anything special.
17097         aix_use_runtimelinking=no
17098         exp_sym_flag='-Bexport'
17099         no_entry_flag=""
17100       else
17101         # If we're using GNU nm, then we don't want the "-C" option.
17102         # -C means demangle to AIX nm, but means don't demangle with GNU nm
17103         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17104           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'
17105         else
17106           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'
17107         fi
17108         aix_use_runtimelinking=no
17109
17110         # Test if we are trying to use run time linking or normal
17111         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17112         # need to do runtime linking.
17113         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17114           for ld_flag in $LDFLAGS; do
17115           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17116             aix_use_runtimelinking=yes
17117             break
17118           fi
17119           done
17120           ;;
17121         esac
17122
17123         exp_sym_flag='-bexport'
17124         no_entry_flag='-bnoentry'
17125       fi
17126
17127       # When large executables or shared objects are built, AIX ld can
17128       # have problems creating the table of contents.  If linking a library
17129       # or program results in "error TOC overflow" add -mminimal-toc to
17130       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17131       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17132
17133       archive_cmds_GCJ=''
17134       hardcode_direct_GCJ=yes
17135       hardcode_libdir_separator_GCJ=':'
17136       link_all_deplibs_GCJ=yes
17137
17138       if test "$GCC" = yes; then
17139         case $host_os in aix4.[012]|aix4.[012].*)
17140         # We only want to do this on AIX 4.2 and lower, the check
17141         # below for broken collect2 doesn't work under 4.3+
17142           collect2name=`${CC} -print-prog-name=collect2`
17143           if test -f "$collect2name" && \
17144            strings "$collect2name" | grep resolve_lib_name >/dev/null
17145           then
17146           # We have reworked collect2
17147           :
17148           else
17149           # We have old collect2
17150           hardcode_direct_GCJ=unsupported
17151           # It fails to find uninstalled libraries when the uninstalled
17152           # path is not listed in the libpath.  Setting hardcode_minus_L
17153           # to unsupported forces relinking
17154           hardcode_minus_L_GCJ=yes
17155           hardcode_libdir_flag_spec_GCJ='-L$libdir'
17156           hardcode_libdir_separator_GCJ=
17157           fi
17158           ;;
17159         esac
17160         shared_flag='-shared'
17161         if test "$aix_use_runtimelinking" = yes; then
17162           shared_flag="$shared_flag "'${wl}-G'
17163         fi
17164       else
17165         # not using gcc
17166         if test "$host_cpu" = ia64; then
17167         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17168         # chokes on -Wl,-G. The following line is correct:
17169           shared_flag='-G'
17170         else
17171           if test "$aix_use_runtimelinking" = yes; then
17172             shared_flag='${wl}-G'
17173           else
17174             shared_flag='${wl}-bM:SRE'
17175           fi
17176         fi
17177       fi
17178
17179       # It seems that -bexpall does not export symbols beginning with
17180       # underscore (_), so it is better to generate a list of symbols to export.
17181       always_export_symbols_GCJ=yes
17182       if test "$aix_use_runtimelinking" = yes; then
17183         # Warning - without using the other runtime loading flags (-brtl),
17184         # -berok will link without error, but may produce a broken library.
17185         allow_undefined_flag_GCJ='-berok'
17186        # Determine the default libpath from the value encoded in an empty executable.
17187        cat >conftest.$ac_ext <<_ACEOF
17188 /* confdefs.h.  */
17189 _ACEOF
17190 cat confdefs.h >>conftest.$ac_ext
17191 cat >>conftest.$ac_ext <<_ACEOF
17192 /* end confdefs.h.  */
17193
17194 int
17195 main ()
17196 {
17197
17198   ;
17199   return 0;
17200 }
17201 _ACEOF
17202 rm -f conftest.$ac_objext conftest$ac_exeext
17203 if { (ac_try="$ac_link"
17204 case "(($ac_try" in
17205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17206   *) ac_try_echo=$ac_try;;
17207 esac
17208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17209   (eval "$ac_link") 2>conftest.er1
17210   ac_status=$?
17211   grep -v '^ *+' conftest.er1 >conftest.err
17212   rm -f conftest.er1
17213   cat conftest.err >&5
17214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17215   (exit $ac_status); } && {
17216          test -z "$ac_c_werror_flag" ||
17217          test ! -s conftest.err
17218        } && test -s conftest$ac_exeext &&
17219        $as_test_x conftest$ac_exeext; then
17220
17221 lt_aix_libpath_sed='
17222     /Import File Strings/,/^$/ {
17223         /^0/ {
17224             s/^0  *\(.*\)$/\1/
17225             p
17226         }
17227     }'
17228 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17229 # Check for a 64-bit object if we didn't find anything.
17230 if test -z "$aix_libpath"; then
17231   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17232 fi
17233 else
17234   echo "$as_me: failed program was:" >&5
17235 sed 's/^/| /' conftest.$ac_ext >&5
17236
17237
17238 fi
17239
17240 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17241       conftest$ac_exeext conftest.$ac_ext
17242 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17243
17244        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17245         archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17246        else
17247         if test "$host_cpu" = ia64; then
17248           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17249           allow_undefined_flag_GCJ="-z nodefs"
17250           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
17251         else
17252          # Determine the default libpath from the value encoded in an empty executable.
17253          cat >conftest.$ac_ext <<_ACEOF
17254 /* confdefs.h.  */
17255 _ACEOF
17256 cat confdefs.h >>conftest.$ac_ext
17257 cat >>conftest.$ac_ext <<_ACEOF
17258 /* end confdefs.h.  */
17259
17260 int
17261 main ()
17262 {
17263
17264   ;
17265   return 0;
17266 }
17267 _ACEOF
17268 rm -f conftest.$ac_objext conftest$ac_exeext
17269 if { (ac_try="$ac_link"
17270 case "(($ac_try" in
17271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17272   *) ac_try_echo=$ac_try;;
17273 esac
17274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17275   (eval "$ac_link") 2>conftest.er1
17276   ac_status=$?
17277   grep -v '^ *+' conftest.er1 >conftest.err
17278   rm -f conftest.er1
17279   cat conftest.err >&5
17280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17281   (exit $ac_status); } && {
17282          test -z "$ac_c_werror_flag" ||
17283          test ! -s conftest.err
17284        } && test -s conftest$ac_exeext &&
17285        $as_test_x conftest$ac_exeext; then
17286
17287 lt_aix_libpath_sed='
17288     /Import File Strings/,/^$/ {
17289         /^0/ {
17290             s/^0  *\(.*\)$/\1/
17291             p
17292         }
17293     }'
17294 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17295 # Check for a 64-bit object if we didn't find anything.
17296 if test -z "$aix_libpath"; then
17297   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17298 fi
17299 else
17300   echo "$as_me: failed program was:" >&5
17301 sed 's/^/| /' conftest.$ac_ext >&5
17302
17303
17304 fi
17305
17306 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17307       conftest$ac_exeext conftest.$ac_ext
17308 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17309
17310          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17311           # Warning - without using the other run time loading flags,
17312           # -berok will link without error, but may produce a broken library.
17313           no_undefined_flag_GCJ=' ${wl}-bernotok'
17314           allow_undefined_flag_GCJ=' ${wl}-berok'
17315           # Exported symbols can be pulled into shared objects from archives
17316           whole_archive_flag_spec_GCJ='$convenience'
17317           archive_cmds_need_lc_GCJ=yes
17318           # This is similar to how AIX traditionally builds its shared libraries.
17319           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
17320         fi
17321       fi
17322       ;;
17323
17324     amigaos*)
17325       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)'
17326       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17327       hardcode_minus_L_GCJ=yes
17328       # see comment about different semantics on the GNU ld section
17329       ld_shlibs_GCJ=no
17330       ;;
17331
17332     bsdi[45]*)
17333       export_dynamic_flag_spec_GCJ=-rdynamic
17334       ;;
17335
17336     cygwin* | mingw* | pw32*)
17337       # When not using gcc, we currently assume that we are using
17338       # Microsoft Visual C++.
17339       # hardcode_libdir_flag_spec is actually meaningless, as there is
17340       # no search path for DLLs.
17341       hardcode_libdir_flag_spec_GCJ=' '
17342       allow_undefined_flag_GCJ=unsupported
17343       # Tell ltmain to make .lib files, not .a files.
17344       libext=lib
17345       # Tell ltmain to make .dll files, not .so files.
17346       shrext_cmds=".dll"
17347       # FIXME: Setting linknames here is a bad hack.
17348       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17349       # The linker will automatically build a .lib file if we build a DLL.
17350       old_archive_From_new_cmds_GCJ='true'
17351       # FIXME: Should let the user specify the lib program.
17352       old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17353       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17354       enable_shared_with_static_runtimes_GCJ=yes
17355       ;;
17356
17357     darwin* | rhapsody*)
17358       case $host_os in
17359         rhapsody* | darwin1.[012])
17360          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17361          ;;
17362        *) # Darwin 1.3 on
17363          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17364            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17365          else
17366            case ${MACOSX_DEPLOYMENT_TARGET} in
17367              10.[012])
17368                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17369                ;;
17370              10.*)
17371                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17372                ;;
17373            esac
17374          fi
17375          ;;
17376       esac
17377       archive_cmds_need_lc_GCJ=no
17378       hardcode_direct_GCJ=no
17379       hardcode_automatic_GCJ=yes
17380       hardcode_shlibpath_var_GCJ=unsupported
17381       whole_archive_flag_spec_GCJ=''
17382       link_all_deplibs_GCJ=yes
17383     if test "$GCC" = yes ; then
17384         output_verbose_link_cmd='echo'
17385         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17386       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17387       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17388       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}'
17389       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}'
17390     else
17391       case $cc_basename in
17392         xlc*)
17393          output_verbose_link_cmd='echo'
17394          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17395          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17396           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17397          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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17398           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}'
17399           ;;
17400        *)
17401          ld_shlibs_GCJ=no
17402           ;;
17403       esac
17404     fi
17405       ;;
17406
17407     dgux*)
17408       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17409       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17410       hardcode_shlibpath_var_GCJ=no
17411       ;;
17412
17413     freebsd1*)
17414       ld_shlibs_GCJ=no
17415       ;;
17416
17417     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17418     # support.  Future versions do this automatically, but an explicit c++rt0.o
17419     # does not break anything, and helps significantly (at the cost of a little
17420     # extra space).
17421     freebsd2.2*)
17422       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17423       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17424       hardcode_direct_GCJ=yes
17425       hardcode_shlibpath_var_GCJ=no
17426       ;;
17427
17428     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17429     freebsd2*)
17430       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17431       hardcode_direct_GCJ=yes
17432       hardcode_minus_L_GCJ=yes
17433       hardcode_shlibpath_var_GCJ=no
17434       ;;
17435
17436     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17437     freebsd* | dragonfly*)
17438       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17439       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17440       hardcode_direct_GCJ=yes
17441       hardcode_shlibpath_var_GCJ=no
17442       ;;
17443
17444     hpux9*)
17445       if test "$GCC" = yes; then
17446         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'
17447       else
17448         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'
17449       fi
17450       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17451       hardcode_libdir_separator_GCJ=:
17452       hardcode_direct_GCJ=yes
17453
17454       # hardcode_minus_L: Not really in the search PATH,
17455       # but as the default location of the library.
17456       hardcode_minus_L_GCJ=yes
17457       export_dynamic_flag_spec_GCJ='${wl}-E'
17458       ;;
17459
17460     hpux10*)
17461       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17462         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17463       else
17464         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17465       fi
17466       if test "$with_gnu_ld" = no; then
17467         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17468         hardcode_libdir_separator_GCJ=:
17469
17470         hardcode_direct_GCJ=yes
17471         export_dynamic_flag_spec_GCJ='${wl}-E'
17472
17473         # hardcode_minus_L: Not really in the search PATH,
17474         # but as the default location of the library.
17475         hardcode_minus_L_GCJ=yes
17476       fi
17477       ;;
17478
17479     hpux11*)
17480       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17481         case $host_cpu in
17482         hppa*64*)
17483           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17484           ;;
17485         ia64*)
17486           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17487           ;;
17488         *)
17489           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17490           ;;
17491         esac
17492       else
17493         case $host_cpu in
17494         hppa*64*)
17495           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17496           ;;
17497         ia64*)
17498           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17499           ;;
17500         *)
17501           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17502           ;;
17503         esac
17504       fi
17505       if test "$with_gnu_ld" = no; then
17506         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17507         hardcode_libdir_separator_GCJ=:
17508
17509         case $host_cpu in
17510         hppa*64*|ia64*)
17511           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17512           hardcode_direct_GCJ=no
17513           hardcode_shlibpath_var_GCJ=no
17514           ;;
17515         *)
17516           hardcode_direct_GCJ=yes
17517           export_dynamic_flag_spec_GCJ='${wl}-E'
17518
17519           # hardcode_minus_L: Not really in the search PATH,
17520           # but as the default location of the library.
17521           hardcode_minus_L_GCJ=yes
17522           ;;
17523         esac
17524       fi
17525       ;;
17526
17527     irix5* | irix6* | nonstopux*)
17528       if test "$GCC" = yes; then
17529         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'
17530       else
17531         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'
17532         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17533       fi
17534       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17535       hardcode_libdir_separator_GCJ=:
17536       link_all_deplibs_GCJ=yes
17537       ;;
17538
17539     netbsd*)
17540       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17541         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17542       else
17543         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17544       fi
17545       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17546       hardcode_direct_GCJ=yes
17547       hardcode_shlibpath_var_GCJ=no
17548       ;;
17549
17550     newsos6)
17551       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17552       hardcode_direct_GCJ=yes
17553       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17554       hardcode_libdir_separator_GCJ=:
17555       hardcode_shlibpath_var_GCJ=no
17556       ;;
17557
17558     openbsd*)
17559       if test -f /usr/libexec/ld.so; then
17560         hardcode_direct_GCJ=yes
17561         hardcode_shlibpath_var_GCJ=no
17562         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17563           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17564           archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17565           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17566           export_dynamic_flag_spec_GCJ='${wl}-E'
17567         else
17568           case $host_os in
17569            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17570              archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17571              hardcode_libdir_flag_spec_GCJ='-R$libdir'
17572              ;;
17573            *)
17574              archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17575              hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17576              ;;
17577           esac
17578         fi
17579       else
17580         ld_shlibs_GCJ=no
17581       fi
17582       ;;
17583
17584     os2*)
17585       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17586       hardcode_minus_L_GCJ=yes
17587       allow_undefined_flag_GCJ=unsupported
17588       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'
17589       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17590       ;;
17591
17592     osf3*)
17593       if test "$GCC" = yes; then
17594         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17595         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'
17596       else
17597         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17598         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'
17599       fi
17600       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17601       hardcode_libdir_separator_GCJ=:
17602       ;;
17603
17604     osf4* | osf5*)      # as osf3* with the addition of -msym flag
17605       if test "$GCC" = yes; then
17606         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17607         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'
17608         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17609       else
17610         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17611         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'
17612         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~
17613         $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'
17614
17615         # Both c and cxx compiler support -rpath directly
17616         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17617       fi
17618       hardcode_libdir_separator_GCJ=:
17619       ;;
17620
17621     solaris*)
17622       no_undefined_flag_GCJ=' -z text'
17623       if test "$GCC" = yes; then
17624         wlarc='${wl}'
17625         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17626         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17627           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17628       else
17629         wlarc=''
17630         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17631         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17632         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17633       fi
17634       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17635       hardcode_shlibpath_var_GCJ=no
17636       case $host_os in
17637       solaris2.[0-5] | solaris2.[0-5].*) ;;
17638       *)
17639         # The compiler driver will combine and reorder linker options,
17640         # but understands `-z linker_flag'.  GCC discards it without `$wl',
17641         # but is careful enough not to reorder.
17642         # Supported since Solaris 2.6 (maybe 2.5.1?)
17643         if test "$GCC" = yes; then
17644           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17645         else
17646           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
17647         fi
17648         ;;
17649       esac
17650       link_all_deplibs_GCJ=yes
17651       ;;
17652
17653     sunos4*)
17654       if test "x$host_vendor" = xsequent; then
17655         # Use $CC to link under sequent, because it throws in some extra .o
17656         # files that make .init and .fini sections work.
17657         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17658       else
17659         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17660       fi
17661       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17662       hardcode_direct_GCJ=yes
17663       hardcode_minus_L_GCJ=yes
17664       hardcode_shlibpath_var_GCJ=no
17665       ;;
17666
17667     sysv4)
17668       case $host_vendor in
17669         sni)
17670           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17671           hardcode_direct_GCJ=yes # is this really true???
17672         ;;
17673         siemens)
17674           ## LD is ld it makes a PLAMLIB
17675           ## CC just makes a GrossModule.
17676           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17677           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17678           hardcode_direct_GCJ=no
17679         ;;
17680         motorola)
17681           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17682           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17683         ;;
17684       esac
17685       runpath_var='LD_RUN_PATH'
17686       hardcode_shlibpath_var_GCJ=no
17687       ;;
17688
17689     sysv4.3*)
17690       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17691       hardcode_shlibpath_var_GCJ=no
17692       export_dynamic_flag_spec_GCJ='-Bexport'
17693       ;;
17694
17695     sysv4*MP*)
17696       if test -d /usr/nec; then
17697         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17698         hardcode_shlibpath_var_GCJ=no
17699         runpath_var=LD_RUN_PATH
17700         hardcode_runpath_var=yes
17701         ld_shlibs_GCJ=yes
17702       fi
17703       ;;
17704
17705     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17706       no_undefined_flag_GCJ='${wl}-z,text'
17707       archive_cmds_need_lc_GCJ=no
17708       hardcode_shlibpath_var_GCJ=no
17709       runpath_var='LD_RUN_PATH'
17710
17711       if test "$GCC" = yes; then
17712         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17713         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17714       else
17715         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17716         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17717       fi
17718       ;;
17719
17720     sysv5* | sco3.2v5* | sco5v6*)
17721       # Note: We can NOT use -z defs as we might desire, because we do not
17722       # link with -lc, and that would cause any symbols used from libc to
17723       # always be unresolved, which means just about no library would
17724       # ever link correctly.  If we're not using GNU ld we use -z text
17725       # though, which does catch some bad symbols but isn't as heavy-handed
17726       # as -z defs.
17727       no_undefined_flag_GCJ='${wl}-z,text'
17728       allow_undefined_flag_GCJ='${wl}-z,nodefs'
17729       archive_cmds_need_lc_GCJ=no
17730       hardcode_shlibpath_var_GCJ=no
17731       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17732       hardcode_libdir_separator_GCJ=':'
17733       link_all_deplibs_GCJ=yes
17734       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17735       runpath_var='LD_RUN_PATH'
17736
17737       if test "$GCC" = yes; then
17738         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17739         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17740       else
17741         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17742         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17743       fi
17744       ;;
17745
17746     uts4*)
17747       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17748       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17749       hardcode_shlibpath_var_GCJ=no
17750       ;;
17751
17752     *)
17753       ld_shlibs_GCJ=no
17754       ;;
17755     esac
17756   fi
17757
17758 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17759 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17760 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17761
17762 #
17763 # Do we need to explicitly link libc?
17764 #
17765 case "x$archive_cmds_need_lc_GCJ" in
17766 x|xyes)
17767   # Assume -lc should be added
17768   archive_cmds_need_lc_GCJ=yes
17769
17770   if test "$enable_shared" = yes && test "$GCC" = yes; then
17771     case $archive_cmds_GCJ in
17772     *'~'*)
17773       # FIXME: we may have to deal with multi-command sequences.
17774       ;;
17775     '$CC '*)
17776       # Test whether the compiler implicitly links with -lc since on some
17777       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17778       # to ld, don't add -lc before -lgcc.
17779       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17780 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17781       $rm conftest*
17782       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17783
17784       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17785   (eval $ac_compile) 2>&5
17786   ac_status=$?
17787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17788   (exit $ac_status); } 2>conftest.err; then
17789         soname=conftest
17790         lib=conftest
17791         libobjs=conftest.$ac_objext
17792         deplibs=
17793         wl=$lt_prog_compiler_wl_GCJ
17794         pic_flag=$lt_prog_compiler_pic_GCJ
17795         compiler_flags=-v
17796         linker_flags=-v
17797         verstring=
17798         output_objdir=.
17799         libname=conftest
17800         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17801         allow_undefined_flag_GCJ=
17802         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17803   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17804   ac_status=$?
17805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17806   (exit $ac_status); }
17807         then
17808           archive_cmds_need_lc_GCJ=no
17809         else
17810           archive_cmds_need_lc_GCJ=yes
17811         fi
17812         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17813       else
17814         cat conftest.err 1>&5
17815       fi
17816       $rm conftest*
17817       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17818 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17819       ;;
17820     esac
17821   fi
17822   ;;
17823 esac
17824
17825 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17826 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17827 library_names_spec=
17828 libname_spec='lib$name'
17829 soname_spec=
17830 shrext_cmds=".so"
17831 postinstall_cmds=
17832 postuninstall_cmds=
17833 finish_cmds=
17834 finish_eval=
17835 shlibpath_var=
17836 shlibpath_overrides_runpath=unknown
17837 version_type=none
17838 dynamic_linker="$host_os ld.so"
17839 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17840
17841 need_lib_prefix=unknown
17842 hardcode_into_libs=no
17843
17844 # when you set need_version to no, make sure it does not cause -set_version
17845 # flags to be left without arguments
17846 need_version=unknown
17847
17848 case $host_os in
17849 aix3*)
17850   version_type=linux
17851   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17852   shlibpath_var=LIBPATH
17853
17854   # AIX 3 has no versioning support, so we append a major version to the name.
17855   soname_spec='${libname}${release}${shared_ext}$major'
17856   ;;
17857
17858 aix4* | aix5*)
17859   version_type=linux
17860   need_lib_prefix=no
17861   need_version=no
17862   hardcode_into_libs=yes
17863   if test "$host_cpu" = ia64; then
17864     # AIX 5 supports IA64
17865     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17866     shlibpath_var=LD_LIBRARY_PATH
17867   else
17868     # With GCC up to 2.95.x, collect2 would create an import file
17869     # for dependence libraries.  The import file would start with
17870     # the line `#! .'.  This would cause the generated library to
17871     # depend on `.', always an invalid library.  This was fixed in
17872     # development snapshots of GCC prior to 3.0.
17873     case $host_os in
17874       aix4 | aix4.[01] | aix4.[01].*)
17875       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17876            echo ' yes '
17877            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17878         :
17879       else
17880         can_build_shared=no
17881       fi
17882       ;;
17883     esac
17884     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17885     # soname into executable. Probably we can add versioning support to
17886     # collect2, so additional links can be useful in future.
17887     if test "$aix_use_runtimelinking" = yes; then
17888       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17889       # instead of lib<name>.a to let people know that these are not
17890       # typical AIX shared libraries.
17891       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17892     else
17893       # We preserve .a as extension for shared libraries through AIX4.2
17894       # and later when we are not doing run time linking.
17895       library_names_spec='${libname}${release}.a $libname.a'
17896       soname_spec='${libname}${release}${shared_ext}$major'
17897     fi
17898     shlibpath_var=LIBPATH
17899   fi
17900   ;;
17901
17902 amigaos*)
17903   library_names_spec='$libname.ixlibrary $libname.a'
17904   # Create ${libname}_ixlibrary.a entries in /sys/libs.
17905   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'
17906   ;;
17907
17908 beos*)
17909   library_names_spec='${libname}${shared_ext}'
17910   dynamic_linker="$host_os ld.so"
17911   shlibpath_var=LIBRARY_PATH
17912   ;;
17913
17914 bsdi[45]*)
17915   version_type=linux
17916   need_version=no
17917   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17918   soname_spec='${libname}${release}${shared_ext}$major'
17919   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17920   shlibpath_var=LD_LIBRARY_PATH
17921   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17922   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17923   # the default ld.so.conf also contains /usr/contrib/lib and
17924   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17925   # libtool to hard-code these into programs
17926   ;;
17927
17928 cygwin* | mingw* | pw32*)
17929   version_type=windows
17930   shrext_cmds=".dll"
17931   need_version=no
17932   need_lib_prefix=no
17933
17934   case $GCC,$host_os in
17935   yes,cygwin* | yes,mingw* | yes,pw32*)
17936     library_names_spec='$libname.dll.a'
17937     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17938     postinstall_cmds='base_file=`basename \${file}`~
17939       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17940       dldir=$destdir/`dirname \$dlpath`~
17941       test -d \$dldir || mkdir -p \$dldir~
17942       $install_prog $dir/$dlname \$dldir/$dlname~
17943       chmod a+x \$dldir/$dlname'
17944     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17945       dlpath=$dir/\$dldll~
17946        $rm \$dlpath'
17947     shlibpath_overrides_runpath=yes
17948
17949     case $host_os in
17950     cygwin*)
17951       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17952       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17953       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17954       ;;
17955     mingw*)
17956       # MinGW DLLs use traditional 'lib' prefix
17957       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17958       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17959       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17960         # It is most probably a Windows format PATH printed by
17961         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17962         # path with ; separators, and with drive letters. We can handle the
17963         # drive letters (cygwin fileutils understands them), so leave them,
17964         # especially as we might pass files found there to a mingw objdump,
17965         # which wouldn't understand a cygwinified path. Ahh.
17966         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17967       else
17968         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17969       fi
17970       ;;
17971     pw32*)
17972       # pw32 DLLs use 'pw' prefix rather than 'lib'
17973       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17974       ;;
17975     esac
17976     ;;
17977
17978   *)
17979     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17980     ;;
17981   esac
17982   dynamic_linker='Win32 ld.exe'
17983   # FIXME: first we should search . and the directory the executable is in
17984   shlibpath_var=PATH
17985   ;;
17986
17987 darwin* | rhapsody*)
17988   dynamic_linker="$host_os dyld"
17989   version_type=darwin
17990   need_lib_prefix=no
17991   need_version=no
17992   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17993   soname_spec='${libname}${release}${major}$shared_ext'
17994   shlibpath_overrides_runpath=yes
17995   shlibpath_var=DYLD_LIBRARY_PATH
17996   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17997
17998   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17999   ;;
18000
18001 dgux*)
18002   version_type=linux
18003   need_lib_prefix=no
18004   need_version=no
18005   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18006   soname_spec='${libname}${release}${shared_ext}$major'
18007   shlibpath_var=LD_LIBRARY_PATH
18008   ;;
18009
18010 freebsd1*)
18011   dynamic_linker=no
18012   ;;
18013
18014 freebsd* | dragonfly*)
18015   # DragonFly does not have aout.  When/if they implement a new
18016   # versioning mechanism, adjust this.
18017   if test -x /usr/bin/objformat; then
18018     objformat=`/usr/bin/objformat`
18019   else
18020     case $host_os in
18021     freebsd[123]*) objformat=aout ;;
18022     *) objformat=elf ;;
18023     esac
18024   fi
18025   version_type=freebsd-$objformat
18026   case $version_type in
18027     freebsd-elf*)
18028       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18029       need_version=no
18030       need_lib_prefix=no
18031       ;;
18032     freebsd-*)
18033       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18034       need_version=yes
18035       ;;
18036   esac
18037   shlibpath_var=LD_LIBRARY_PATH
18038   case $host_os in
18039   freebsd2*)
18040     shlibpath_overrides_runpath=yes
18041     ;;
18042   freebsd3.[01]* | freebsdelf3.[01]*)
18043     shlibpath_overrides_runpath=yes
18044     hardcode_into_libs=yes
18045     ;;
18046   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18047   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18048     shlibpath_overrides_runpath=no
18049     hardcode_into_libs=yes
18050     ;;
18051   *) # from 4.6 on, and DragonFly
18052     shlibpath_overrides_runpath=yes
18053     hardcode_into_libs=yes
18054     ;;
18055   esac
18056   ;;
18057
18058 gnu*)
18059   version_type=linux
18060   need_lib_prefix=no
18061   need_version=no
18062   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18063   soname_spec='${libname}${release}${shared_ext}$major'
18064   shlibpath_var=LD_LIBRARY_PATH
18065   hardcode_into_libs=yes
18066   ;;
18067
18068 hpux9* | hpux10* | hpux11*)
18069   # Give a soname corresponding to the major version so that dld.sl refuses to
18070   # link against other versions.
18071   version_type=sunos
18072   need_lib_prefix=no
18073   need_version=no
18074   case $host_cpu in
18075   ia64*)
18076     shrext_cmds='.so'
18077     hardcode_into_libs=yes
18078     dynamic_linker="$host_os dld.so"
18079     shlibpath_var=LD_LIBRARY_PATH
18080     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18081     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18082     soname_spec='${libname}${release}${shared_ext}$major'
18083     if test "X$HPUX_IA64_MODE" = X32; then
18084       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18085     else
18086       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18087     fi
18088     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18089     ;;
18090    hppa*64*)
18091      shrext_cmds='.sl'
18092      hardcode_into_libs=yes
18093      dynamic_linker="$host_os dld.sl"
18094      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18095      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18096      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18097      soname_spec='${libname}${release}${shared_ext}$major'
18098      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18099      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18100      ;;
18101    *)
18102     shrext_cmds='.sl'
18103     dynamic_linker="$host_os dld.sl"
18104     shlibpath_var=SHLIB_PATH
18105     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18106     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18107     soname_spec='${libname}${release}${shared_ext}$major'
18108     ;;
18109   esac
18110   # HP-UX runs *really* slowly unless shared libraries are mode 555.
18111   postinstall_cmds='chmod 555 $lib'
18112   ;;
18113
18114 interix[3-9]*)
18115   version_type=linux
18116   need_lib_prefix=no
18117   need_version=no
18118   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18119   soname_spec='${libname}${release}${shared_ext}$major'
18120   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18121   shlibpath_var=LD_LIBRARY_PATH
18122   shlibpath_overrides_runpath=no
18123   hardcode_into_libs=yes
18124   ;;
18125
18126 irix5* | irix6* | nonstopux*)
18127   case $host_os in
18128     nonstopux*) version_type=nonstopux ;;
18129     *)
18130         if test "$lt_cv_prog_gnu_ld" = yes; then
18131                 version_type=linux
18132         else
18133                 version_type=irix
18134         fi ;;
18135   esac
18136   need_lib_prefix=no
18137   need_version=no
18138   soname_spec='${libname}${release}${shared_ext}$major'
18139   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18140   case $host_os in
18141   irix5* | nonstopux*)
18142     libsuff= shlibsuff=
18143     ;;
18144   *)
18145     case $LD in # libtool.m4 will add one of these switches to LD
18146     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18147       libsuff= shlibsuff= libmagic=32-bit;;
18148     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18149       libsuff=32 shlibsuff=N32 libmagic=N32;;
18150     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18151       libsuff=64 shlibsuff=64 libmagic=64-bit;;
18152     *) libsuff= shlibsuff= libmagic=never-match;;
18153     esac
18154     ;;
18155   esac
18156   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18157   shlibpath_overrides_runpath=no
18158   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18159   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18160   hardcode_into_libs=yes
18161   ;;
18162
18163 # No shared lib support for Linux oldld, aout, or coff.
18164 linux*oldld* | linux*aout* | linux*coff*)
18165   dynamic_linker=no
18166   ;;
18167
18168 # This must be Linux ELF.
18169 linux* | k*bsd*-gnu)
18170   version_type=linux
18171   need_lib_prefix=no
18172   need_version=no
18173   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18174   soname_spec='${libname}${release}${shared_ext}$major'
18175   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18176   shlibpath_var=LD_LIBRARY_PATH
18177   shlibpath_overrides_runpath=no
18178   # This implies no fast_install, which is unacceptable.
18179   # Some rework will be needed to allow for fast_install
18180   # before this can be enabled.
18181   hardcode_into_libs=yes
18182
18183   # find out which ABI we are using
18184   libsuff=
18185   case "$host_cpu" in
18186   x86_64*|s390x*|powerpc64*)
18187     echo '#line 18187 "configure"' > conftest.$ac_ext
18188     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18189   (eval $ac_compile) 2>&5
18190   ac_status=$?
18191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18192   (exit $ac_status); }; then
18193       case `/usr/bin/file conftest.$ac_objext` in
18194       *64-bit*)
18195         libsuff=64
18196         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
18197         ;;
18198       esac
18199     fi
18200     rm -rf conftest*
18201     ;;
18202   esac
18203
18204   # Append ld.so.conf contents to the search path
18205   if test -f /etc/ld.so.conf; then
18206     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18207     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
18208   fi
18209
18210   # We used to test for /lib/ld.so.1 and disable shared libraries on
18211   # powerpc, because MkLinux only supported shared libraries with the
18212   # GNU dynamic linker.  Since this was broken with cross compilers,
18213   # most powerpc-linux boxes support dynamic linking these days and
18214   # people can always --disable-shared, the test was removed, and we
18215   # assume the GNU/Linux dynamic linker is in use.
18216   dynamic_linker='GNU/Linux ld.so'
18217   ;;
18218
18219 netbsd*)
18220   version_type=sunos
18221   need_lib_prefix=no
18222   need_version=no
18223   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18224     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18225     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18226     dynamic_linker='NetBSD (a.out) ld.so'
18227   else
18228     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18229     soname_spec='${libname}${release}${shared_ext}$major'
18230     dynamic_linker='NetBSD ld.elf_so'
18231   fi
18232   shlibpath_var=LD_LIBRARY_PATH
18233   shlibpath_overrides_runpath=yes
18234   hardcode_into_libs=yes
18235   ;;
18236
18237 newsos6)
18238   version_type=linux
18239   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18240   shlibpath_var=LD_LIBRARY_PATH
18241   shlibpath_overrides_runpath=yes
18242   ;;
18243
18244 nto-qnx*)
18245   version_type=linux
18246   need_lib_prefix=no
18247   need_version=no
18248   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18249   soname_spec='${libname}${release}${shared_ext}$major'
18250   shlibpath_var=LD_LIBRARY_PATH
18251   shlibpath_overrides_runpath=yes
18252   ;;
18253
18254 openbsd*)
18255   version_type=sunos
18256   sys_lib_dlsearch_path_spec="/usr/lib"
18257   need_lib_prefix=no
18258   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18259   case $host_os in
18260     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18261     *)                         need_version=no  ;;
18262   esac
18263   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18264   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18265   shlibpath_var=LD_LIBRARY_PATH
18266   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18267     case $host_os in
18268       openbsd2.[89] | openbsd2.[89].*)
18269         shlibpath_overrides_runpath=no
18270         ;;
18271       *)
18272         shlibpath_overrides_runpath=yes
18273         ;;
18274       esac
18275   else
18276     shlibpath_overrides_runpath=yes
18277   fi
18278   ;;
18279
18280 os2*)
18281   libname_spec='$name'
18282   shrext_cmds=".dll"
18283   need_lib_prefix=no
18284   library_names_spec='$libname${shared_ext} $libname.a'
18285   dynamic_linker='OS/2 ld.exe'
18286   shlibpath_var=LIBPATH
18287   ;;
18288
18289 osf3* | osf4* | osf5*)
18290   version_type=osf
18291   need_lib_prefix=no
18292   need_version=no
18293   soname_spec='${libname}${release}${shared_ext}$major'
18294   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18295   shlibpath_var=LD_LIBRARY_PATH
18296   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18297   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18298   ;;
18299
18300 rdos*)
18301   dynamic_linker=no
18302   ;;
18303
18304 solaris*)
18305   version_type=linux
18306   need_lib_prefix=no
18307   need_version=no
18308   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18309   soname_spec='${libname}${release}${shared_ext}$major'
18310   shlibpath_var=LD_LIBRARY_PATH
18311   shlibpath_overrides_runpath=yes
18312   hardcode_into_libs=yes
18313   # ldd complains unless libraries are executable
18314   postinstall_cmds='chmod +x $lib'
18315   ;;
18316
18317 sunos4*)
18318   version_type=sunos
18319   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18320   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18321   shlibpath_var=LD_LIBRARY_PATH
18322   shlibpath_overrides_runpath=yes
18323   if test "$with_gnu_ld" = yes; then
18324     need_lib_prefix=no
18325   fi
18326   need_version=yes
18327   ;;
18328
18329 sysv4 | sysv4.3*)
18330   version_type=linux
18331   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18332   soname_spec='${libname}${release}${shared_ext}$major'
18333   shlibpath_var=LD_LIBRARY_PATH
18334   case $host_vendor in
18335     sni)
18336       shlibpath_overrides_runpath=no
18337       need_lib_prefix=no
18338       export_dynamic_flag_spec='${wl}-Blargedynsym'
18339       runpath_var=LD_RUN_PATH
18340       ;;
18341     siemens)
18342       need_lib_prefix=no
18343       ;;
18344     motorola)
18345       need_lib_prefix=no
18346       need_version=no
18347       shlibpath_overrides_runpath=no
18348       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18349       ;;
18350   esac
18351   ;;
18352
18353 sysv4*MP*)
18354   if test -d /usr/nec ;then
18355     version_type=linux
18356     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18357     soname_spec='$libname${shared_ext}.$major'
18358     shlibpath_var=LD_LIBRARY_PATH
18359   fi
18360   ;;
18361
18362 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18363   version_type=freebsd-elf
18364   need_lib_prefix=no
18365   need_version=no
18366   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18367   soname_spec='${libname}${release}${shared_ext}$major'
18368   shlibpath_var=LD_LIBRARY_PATH
18369   hardcode_into_libs=yes
18370   if test "$with_gnu_ld" = yes; then
18371     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18372     shlibpath_overrides_runpath=no
18373   else
18374     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18375     shlibpath_overrides_runpath=yes
18376     case $host_os in
18377       sco3.2v5*)
18378         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18379         ;;
18380     esac
18381   fi
18382   sys_lib_dlsearch_path_spec='/usr/lib'
18383   ;;
18384
18385 uts4*)
18386   version_type=linux
18387   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18388   soname_spec='${libname}${release}${shared_ext}$major'
18389   shlibpath_var=LD_LIBRARY_PATH
18390   ;;
18391
18392 *)
18393   dynamic_linker=no
18394   ;;
18395 esac
18396 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18397 echo "${ECHO_T}$dynamic_linker" >&6; }
18398 test "$dynamic_linker" = no && can_build_shared=no
18399
18400 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18401 if test "$GCC" = yes; then
18402   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18403 fi
18404
18405 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18406 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18407 hardcode_action_GCJ=
18408 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18409    test -n "$runpath_var_GCJ" || \
18410    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18411
18412   # We can hardcode non-existant directories.
18413   if test "$hardcode_direct_GCJ" != no &&
18414      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18415      # have to relink, otherwise we might link with an installed library
18416      # when we should be linking with a yet-to-be-installed one
18417      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18418      test "$hardcode_minus_L_GCJ" != no; then
18419     # Linking always hardcodes the temporary library directory.
18420     hardcode_action_GCJ=relink
18421   else
18422     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18423     hardcode_action_GCJ=immediate
18424   fi
18425 else
18426   # We cannot hardcode anything, or else we can only hardcode existing
18427   # directories.
18428   hardcode_action_GCJ=unsupported
18429 fi
18430 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18431 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18432
18433 if test "$hardcode_action_GCJ" = relink; then
18434   # Fast installation is not supported
18435   enable_fast_install=no
18436 elif test "$shlibpath_overrides_runpath" = yes ||
18437      test "$enable_shared" = no; then
18438   # Fast installation is not necessary
18439   enable_fast_install=needless
18440 fi
18441
18442
18443 # The else clause should only fire when bootstrapping the
18444 # libtool distribution, otherwise you forgot to ship ltmain.sh
18445 # with your package, and you will get complaints that there are
18446 # no rules to generate ltmain.sh.
18447 if test -f "$ltmain"; then
18448   # See if we are running on zsh, and set the options which allow our commands through
18449   # without removal of \ escapes.
18450   if test -n "${ZSH_VERSION+set}" ; then
18451     setopt NO_GLOB_SUBST
18452   fi
18453   # Now quote all the things that may contain metacharacters while being
18454   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18455   # variables and quote the copies for generation of the libtool script.
18456   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18457     SED SHELL STRIP \
18458     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18459     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18460     deplibs_check_method reload_flag reload_cmds need_locks \
18461     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18462     lt_cv_sys_global_symbol_to_c_name_address \
18463     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18464     old_postinstall_cmds old_postuninstall_cmds \
18465     compiler_GCJ \
18466     CC_GCJ \
18467     LD_GCJ \
18468     lt_prog_compiler_wl_GCJ \
18469     lt_prog_compiler_pic_GCJ \
18470     lt_prog_compiler_static_GCJ \
18471     lt_prog_compiler_no_builtin_flag_GCJ \
18472     export_dynamic_flag_spec_GCJ \
18473     thread_safe_flag_spec_GCJ \
18474     whole_archive_flag_spec_GCJ \
18475     enable_shared_with_static_runtimes_GCJ \
18476     old_archive_cmds_GCJ \
18477     old_archive_from_new_cmds_GCJ \
18478     predep_objects_GCJ \
18479     postdep_objects_GCJ \
18480     predeps_GCJ \
18481     postdeps_GCJ \
18482     compiler_lib_search_path_GCJ \
18483     archive_cmds_GCJ \
18484     archive_expsym_cmds_GCJ \
18485     postinstall_cmds_GCJ \
18486     postuninstall_cmds_GCJ \
18487     old_archive_from_expsyms_cmds_GCJ \
18488     allow_undefined_flag_GCJ \
18489     no_undefined_flag_GCJ \
18490     export_symbols_cmds_GCJ \
18491     hardcode_libdir_flag_spec_GCJ \
18492     hardcode_libdir_flag_spec_ld_GCJ \
18493     hardcode_libdir_separator_GCJ \
18494     hardcode_automatic_GCJ \
18495     module_cmds_GCJ \
18496     module_expsym_cmds_GCJ \
18497     lt_cv_prog_compiler_c_o_GCJ \
18498     fix_srcfile_path_GCJ \
18499     exclude_expsyms_GCJ \
18500     include_expsyms_GCJ; do
18501
18502     case $var in
18503     old_archive_cmds_GCJ | \
18504     old_archive_from_new_cmds_GCJ | \
18505     archive_cmds_GCJ | \
18506     archive_expsym_cmds_GCJ | \
18507     module_cmds_GCJ | \
18508     module_expsym_cmds_GCJ | \
18509     old_archive_from_expsyms_cmds_GCJ | \
18510     export_symbols_cmds_GCJ | \
18511     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18512     postinstall_cmds | postuninstall_cmds | \
18513     old_postinstall_cmds | old_postuninstall_cmds | \
18514     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18515       # Double-quote double-evaled strings.
18516       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18517       ;;
18518     *)
18519       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18520       ;;
18521     esac
18522   done
18523
18524   case $lt_echo in
18525   *'\$0 --fallback-echo"')
18526     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18527     ;;
18528   esac
18529
18530 cfgfile="$ofile"
18531
18532   cat <<__EOF__ >> "$cfgfile"
18533 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18534
18535 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18536
18537 # Shell to use when invoking shell scripts.
18538 SHELL=$lt_SHELL
18539
18540 # Whether or not to build shared libraries.
18541 build_libtool_libs=$enable_shared
18542
18543 # Whether or not to build static libraries.
18544 build_old_libs=$enable_static
18545
18546 # Whether or not to add -lc for building shared libraries.
18547 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18548
18549 # Whether or not to disallow shared libs when runtime libs are static
18550 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18551
18552 # Whether or not to optimize for fast installation.
18553 fast_install=$enable_fast_install
18554
18555 # The host system.
18556 host_alias=$host_alias
18557 host=$host
18558 host_os=$host_os
18559
18560 # The build system.
18561 build_alias=$build_alias
18562 build=$build
18563 build_os=$build_os
18564
18565 # An echo program that does not interpret backslashes.
18566 echo=$lt_echo
18567
18568 # The archiver.
18569 AR=$lt_AR
18570 AR_FLAGS=$lt_AR_FLAGS
18571
18572 # A C compiler.
18573 LTCC=$lt_LTCC
18574
18575 # LTCC compiler flags.
18576 LTCFLAGS=$lt_LTCFLAGS
18577
18578 # A language-specific compiler.
18579 CC=$lt_compiler_GCJ
18580
18581 # Is the compiler the GNU C compiler?
18582 with_gcc=$GCC_GCJ
18583
18584 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
18585 gcc_ver=\`gcc -dumpversion\`
18586
18587 # An ERE matcher.
18588 EGREP=$lt_EGREP
18589
18590 # The linker used to build libraries.
18591 LD=$lt_LD_GCJ
18592
18593 # Whether we need hard or soft links.
18594 LN_S=$lt_LN_S
18595
18596 # A BSD-compatible nm program.
18597 NM=$lt_NM
18598
18599 # A symbol stripping program
18600 STRIP=$lt_STRIP
18601
18602 # Used to examine libraries when file_magic_cmd begins "file"
18603 MAGIC_CMD=$MAGIC_CMD
18604
18605 # Used on cygwin: DLL creation program.
18606 DLLTOOL="$DLLTOOL"
18607
18608 # Used on cygwin: object dumper.
18609 OBJDUMP="$OBJDUMP"
18610
18611 # Used on cygwin: assembler.
18612 AS="$AS"
18613
18614 # The name of the directory that contains temporary libtool files.
18615 objdir=$objdir
18616
18617 # How to create reloadable object files.
18618 reload_flag=$lt_reload_flag
18619 reload_cmds=$lt_reload_cmds
18620
18621 # How to pass a linker flag through the compiler.
18622 wl=$lt_lt_prog_compiler_wl_GCJ
18623
18624 # Object file suffix (normally "o").
18625 objext="$ac_objext"
18626
18627 # Old archive suffix (normally "a").
18628 libext="$libext"
18629
18630 # Shared library suffix (normally ".so").
18631 shrext_cmds='$shrext_cmds'
18632
18633 # Executable file suffix (normally "").
18634 exeext="$exeext"
18635
18636 # Additional compiler flags for building library objects.
18637 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18638 pic_mode=$pic_mode
18639
18640 # What is the maximum length of a command?
18641 max_cmd_len=$lt_cv_sys_max_cmd_len
18642
18643 # Does compiler simultaneously support -c and -o options?
18644 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18645
18646 # Must we lock files when doing compilation?
18647 need_locks=$lt_need_locks
18648
18649 # Do we need the lib prefix for modules?
18650 need_lib_prefix=$need_lib_prefix
18651
18652 # Do we need a version for libraries?
18653 need_version=$need_version
18654
18655 # Whether dlopen is supported.
18656 dlopen_support=$enable_dlopen
18657
18658 # Whether dlopen of programs is supported.
18659 dlopen_self=$enable_dlopen_self
18660
18661 # Whether dlopen of statically linked programs is supported.
18662 dlopen_self_static=$enable_dlopen_self_static
18663
18664 # Compiler flag to prevent dynamic linking.
18665 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18666
18667 # Compiler flag to turn off builtin functions.
18668 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18669
18670 # Compiler flag to allow reflexive dlopens.
18671 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18672
18673 # Compiler flag to generate shared objects directly from archives.
18674 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18675
18676 # Compiler flag to generate thread-safe objects.
18677 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18678
18679 # Library versioning type.
18680 version_type=$version_type
18681
18682 # Format of library name prefix.
18683 libname_spec=$lt_libname_spec
18684
18685 # List of archive names.  First name is the real one, the rest are links.
18686 # The last name is the one that the linker finds with -lNAME.
18687 library_names_spec=$lt_library_names_spec
18688
18689 # The coded name of the library, if different from the real name.
18690 soname_spec=$lt_soname_spec
18691
18692 # Commands used to build and install an old-style archive.
18693 RANLIB=$lt_RANLIB
18694 old_archive_cmds=$lt_old_archive_cmds_GCJ
18695 old_postinstall_cmds=$lt_old_postinstall_cmds
18696 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18697
18698 # Create an old-style archive from a shared archive.
18699 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18700
18701 # Create a temporary old-style archive to link instead of a shared archive.
18702 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18703
18704 # Commands used to build and install a shared archive.
18705 archive_cmds=$lt_archive_cmds_GCJ
18706 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18707 postinstall_cmds=$lt_postinstall_cmds
18708 postuninstall_cmds=$lt_postuninstall_cmds
18709
18710 # Commands used to build a loadable module (assumed same as above if empty)
18711 module_cmds=$lt_module_cmds_GCJ
18712 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18713
18714 # Commands to strip libraries.
18715 old_striplib=$lt_old_striplib
18716 striplib=$lt_striplib
18717
18718 # Dependencies to place before the objects being linked to create a
18719 # shared library.
18720 predep_objects=\`echo $lt_predep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18721
18722 # Dependencies to place after the objects being linked to create a
18723 # shared library.
18724 postdep_objects=\`echo $lt_postdep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18725
18726 # Dependencies to place before the objects being linked to create a
18727 # shared library.
18728 predeps=$lt_predeps_GCJ
18729
18730 # Dependencies to place after the objects being linked to create a
18731 # shared library.
18732 postdeps=$lt_postdeps_GCJ
18733
18734 # The library search path used internally by the compiler when linking
18735 # a shared library.
18736 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18737
18738 # Method to check whether dependent libraries are shared objects.
18739 deplibs_check_method=$lt_deplibs_check_method
18740
18741 # Command to use when deplibs_check_method == file_magic.
18742 file_magic_cmd=$lt_file_magic_cmd
18743
18744 # Flag that allows shared libraries with undefined symbols to be built.
18745 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18746
18747 # Flag that forces no undefined symbols.
18748 no_undefined_flag=$lt_no_undefined_flag_GCJ
18749
18750 # Commands used to finish a libtool library installation in a directory.
18751 finish_cmds=$lt_finish_cmds
18752
18753 # Same as above, but a single script fragment to be evaled but not shown.
18754 finish_eval=$lt_finish_eval
18755
18756 # Take the output of nm and produce a listing of raw symbols and C names.
18757 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18758
18759 # Transform the output of nm in a proper C declaration
18760 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18761
18762 # Transform the output of nm in a C name address pair
18763 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18764
18765 # This is the shared library runtime path variable.
18766 runpath_var=$runpath_var
18767
18768 # This is the shared library path variable.
18769 shlibpath_var=$shlibpath_var
18770
18771 # Is shlibpath searched before the hard-coded library search path?
18772 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18773
18774 # How to hardcode a shared library path into an executable.
18775 hardcode_action=$hardcode_action_GCJ
18776
18777 # Whether we should hardcode library paths into libraries.
18778 hardcode_into_libs=$hardcode_into_libs
18779
18780 # Flag to hardcode \$libdir into a binary during linking.
18781 # This must work even if \$libdir does not exist.
18782 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18783
18784 # If ld is used when linking, flag to hardcode \$libdir into
18785 # a binary during linking. This must work even if \$libdir does
18786 # not exist.
18787 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18788
18789 # Whether we need a single -rpath flag with a separated argument.
18790 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18791
18792 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18793 # resulting binary.
18794 hardcode_direct=$hardcode_direct_GCJ
18795
18796 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18797 # resulting binary.
18798 hardcode_minus_L=$hardcode_minus_L_GCJ
18799
18800 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18801 # the resulting binary.
18802 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18803
18804 # Set to yes if building a shared library automatically hardcodes DIR into the library
18805 # and all subsequent libraries and executables linked against it.
18806 hardcode_automatic=$hardcode_automatic_GCJ
18807
18808 # Variables whose values should be saved in libtool wrapper scripts and
18809 # restored at relink time.
18810 variables_saved_for_relink="$variables_saved_for_relink"
18811
18812 # Whether libtool must link a program against all its dependency libraries.
18813 link_all_deplibs=$link_all_deplibs_GCJ
18814
18815 # Compile-time system search path for libraries
18816 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18817
18818 # Run-time system search path for libraries
18819 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18820
18821 # Fix the shell variable \$srcfile for the compiler.
18822 fix_srcfile_path=$lt_fix_srcfile_path
18823
18824 # Set to yes if exported symbols are required.
18825 always_export_symbols=$always_export_symbols_GCJ
18826
18827 # The commands to list exported symbols.
18828 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18829
18830 # The commands to extract the exported symbol list from a shared archive.
18831 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18832
18833 # Symbols that should not be listed in the preloaded symbols.
18834 exclude_expsyms=$lt_exclude_expsyms_GCJ
18835
18836 # Symbols that must always be exported.
18837 include_expsyms=$lt_include_expsyms_GCJ
18838
18839 # ### END LIBTOOL TAG CONFIG: $tagname
18840
18841 __EOF__
18842
18843
18844 else
18845   # If there is no Makefile yet, we rely on a make rule to execute
18846   # `config.status --recheck' to rerun these tests and create the
18847   # libtool script then.
18848   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18849   if test -f "$ltmain_in"; then
18850     test -f Makefile && make "$ltmain"
18851   fi
18852 fi
18853
18854
18855 ac_ext=c
18856 ac_cpp='$CPP $CPPFLAGS'
18857 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18858 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18859 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18860
18861 CC="$lt_save_CC"
18862
18863         else
18864           tagname=""
18865         fi
18866         ;;
18867
18868       RC)
18869
18870
18871 # Source file extension for RC test sources.
18872 ac_ext=rc
18873
18874 # Object file extension for compiled RC test sources.
18875 objext=o
18876 objext_RC=$objext
18877
18878 # Code to be used in simple compile tests
18879 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
18880
18881 # Code to be used in simple link tests
18882 lt_simple_link_test_code="$lt_simple_compile_test_code"
18883
18884 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18885
18886 # If no C compiler was specified, use CC.
18887 LTCC=${LTCC-"$CC"}
18888
18889 # If no C compiler flags were specified, use CFLAGS.
18890 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18891
18892 # Allow CC to be a program name with arguments.
18893 compiler=$CC
18894
18895
18896 # save warnings/boilerplate of simple test code
18897 ac_outfile=conftest.$ac_objext
18898 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18899 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18900 _lt_compiler_boilerplate=`cat conftest.err`
18901 $rm conftest*
18902
18903 ac_outfile=conftest.$ac_objext
18904 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18905 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18906 _lt_linker_boilerplate=`cat conftest.err`
18907 $rm conftest*
18908
18909
18910 # Allow CC to be a program name with arguments.
18911 lt_save_CC="$CC"
18912 CC=${RC-"windres"}
18913 compiler=$CC
18914 compiler_RC=$CC
18915 for cc_temp in $compiler""; do
18916   case $cc_temp in
18917     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18918     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18919     \-*) ;;
18920     *) break;;
18921   esac
18922 done
18923 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18924
18925 lt_cv_prog_compiler_c_o_RC=yes
18926
18927 # The else clause should only fire when bootstrapping the
18928 # libtool distribution, otherwise you forgot to ship ltmain.sh
18929 # with your package, and you will get complaints that there are
18930 # no rules to generate ltmain.sh.
18931 if test -f "$ltmain"; then
18932   # See if we are running on zsh, and set the options which allow our commands through
18933   # without removal of \ escapes.
18934   if test -n "${ZSH_VERSION+set}" ; then
18935     setopt NO_GLOB_SUBST
18936   fi
18937   # Now quote all the things that may contain metacharacters while being
18938   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18939   # variables and quote the copies for generation of the libtool script.
18940   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18941     SED SHELL STRIP \
18942     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18943     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18944     deplibs_check_method reload_flag reload_cmds need_locks \
18945     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18946     lt_cv_sys_global_symbol_to_c_name_address \
18947     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18948     old_postinstall_cmds old_postuninstall_cmds \
18949     compiler_RC \
18950     CC_RC \
18951     LD_RC \
18952     lt_prog_compiler_wl_RC \
18953     lt_prog_compiler_pic_RC \
18954     lt_prog_compiler_static_RC \
18955     lt_prog_compiler_no_builtin_flag_RC \
18956     export_dynamic_flag_spec_RC \
18957     thread_safe_flag_spec_RC \
18958     whole_archive_flag_spec_RC \
18959     enable_shared_with_static_runtimes_RC \
18960     old_archive_cmds_RC \
18961     old_archive_from_new_cmds_RC \
18962     predep_objects_RC \
18963     postdep_objects_RC \
18964     predeps_RC \
18965     postdeps_RC \
18966     compiler_lib_search_path_RC \
18967     archive_cmds_RC \
18968     archive_expsym_cmds_RC \
18969     postinstall_cmds_RC \
18970     postuninstall_cmds_RC \
18971     old_archive_from_expsyms_cmds_RC \
18972     allow_undefined_flag_RC \
18973     no_undefined_flag_RC \
18974     export_symbols_cmds_RC \
18975     hardcode_libdir_flag_spec_RC \
18976     hardcode_libdir_flag_spec_ld_RC \
18977     hardcode_libdir_separator_RC \
18978     hardcode_automatic_RC \
18979     module_cmds_RC \
18980     module_expsym_cmds_RC \
18981     lt_cv_prog_compiler_c_o_RC \
18982     fix_srcfile_path_RC \
18983     exclude_expsyms_RC \
18984     include_expsyms_RC; do
18985
18986     case $var in
18987     old_archive_cmds_RC | \
18988     old_archive_from_new_cmds_RC | \
18989     archive_cmds_RC | \
18990     archive_expsym_cmds_RC | \
18991     module_cmds_RC | \
18992     module_expsym_cmds_RC | \
18993     old_archive_from_expsyms_cmds_RC | \
18994     export_symbols_cmds_RC | \
18995     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18996     postinstall_cmds | postuninstall_cmds | \
18997     old_postinstall_cmds | old_postuninstall_cmds | \
18998     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18999       # Double-quote double-evaled strings.
19000       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19001       ;;
19002     *)
19003       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19004       ;;
19005     esac
19006   done
19007
19008   case $lt_echo in
19009   *'\$0 --fallback-echo"')
19010     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19011     ;;
19012   esac
19013
19014 cfgfile="$ofile"
19015
19016   cat <<__EOF__ >> "$cfgfile"
19017 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19018
19019 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19020
19021 # Shell to use when invoking shell scripts.
19022 SHELL=$lt_SHELL
19023
19024 # Whether or not to build shared libraries.
19025 build_libtool_libs=$enable_shared
19026
19027 # Whether or not to build static libraries.
19028 build_old_libs=$enable_static
19029
19030 # Whether or not to add -lc for building shared libraries.
19031 build_libtool_need_lc=$archive_cmds_need_lc_RC
19032
19033 # Whether or not to disallow shared libs when runtime libs are static
19034 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19035
19036 # Whether or not to optimize for fast installation.
19037 fast_install=$enable_fast_install
19038
19039 # The host system.
19040 host_alias=$host_alias
19041 host=$host
19042 host_os=$host_os
19043
19044 # The build system.
19045 build_alias=$build_alias
19046 build=$build
19047 build_os=$build_os
19048
19049 # An echo program that does not interpret backslashes.
19050 echo=$lt_echo
19051
19052 # The archiver.
19053 AR=$lt_AR
19054 AR_FLAGS=$lt_AR_FLAGS
19055
19056 # A C compiler.
19057 LTCC=$lt_LTCC
19058
19059 # LTCC compiler flags.
19060 LTCFLAGS=$lt_LTCFLAGS
19061
19062 # A language-specific compiler.
19063 CC=$lt_compiler_RC
19064
19065 # Is the compiler the GNU C compiler?
19066 with_gcc=$GCC_RC
19067
19068 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
19069 gcc_ver=\`gcc -dumpversion\`
19070
19071 # An ERE matcher.
19072 EGREP=$lt_EGREP
19073
19074 # The linker used to build libraries.
19075 LD=$lt_LD_RC
19076
19077 # Whether we need hard or soft links.
19078 LN_S=$lt_LN_S
19079
19080 # A BSD-compatible nm program.
19081 NM=$lt_NM
19082
19083 # A symbol stripping program
19084 STRIP=$lt_STRIP
19085
19086 # Used to examine libraries when file_magic_cmd begins "file"
19087 MAGIC_CMD=$MAGIC_CMD
19088
19089 # Used on cygwin: DLL creation program.
19090 DLLTOOL="$DLLTOOL"
19091
19092 # Used on cygwin: object dumper.
19093 OBJDUMP="$OBJDUMP"
19094
19095 # Used on cygwin: assembler.
19096 AS="$AS"
19097
19098 # The name of the directory that contains temporary libtool files.
19099 objdir=$objdir
19100
19101 # How to create reloadable object files.
19102 reload_flag=$lt_reload_flag
19103 reload_cmds=$lt_reload_cmds
19104
19105 # How to pass a linker flag through the compiler.
19106 wl=$lt_lt_prog_compiler_wl_RC
19107
19108 # Object file suffix (normally "o").
19109 objext="$ac_objext"
19110
19111 # Old archive suffix (normally "a").
19112 libext="$libext"
19113
19114 # Shared library suffix (normally ".so").
19115 shrext_cmds='$shrext_cmds'
19116
19117 # Executable file suffix (normally "").
19118 exeext="$exeext"
19119
19120 # Additional compiler flags for building library objects.
19121 pic_flag=$lt_lt_prog_compiler_pic_RC
19122 pic_mode=$pic_mode
19123
19124 # What is the maximum length of a command?
19125 max_cmd_len=$lt_cv_sys_max_cmd_len
19126
19127 # Does compiler simultaneously support -c and -o options?
19128 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19129
19130 # Must we lock files when doing compilation?
19131 need_locks=$lt_need_locks
19132
19133 # Do we need the lib prefix for modules?
19134 need_lib_prefix=$need_lib_prefix
19135
19136 # Do we need a version for libraries?
19137 need_version=$need_version
19138
19139 # Whether dlopen is supported.
19140 dlopen_support=$enable_dlopen
19141
19142 # Whether dlopen of programs is supported.
19143 dlopen_self=$enable_dlopen_self
19144
19145 # Whether dlopen of statically linked programs is supported.
19146 dlopen_self_static=$enable_dlopen_self_static
19147
19148 # Compiler flag to prevent dynamic linking.
19149 link_static_flag=$lt_lt_prog_compiler_static_RC
19150
19151 # Compiler flag to turn off builtin functions.
19152 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19153
19154 # Compiler flag to allow reflexive dlopens.
19155 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19156
19157 # Compiler flag to generate shared objects directly from archives.
19158 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19159
19160 # Compiler flag to generate thread-safe objects.
19161 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19162
19163 # Library versioning type.
19164 version_type=$version_type
19165
19166 # Format of library name prefix.
19167 libname_spec=$lt_libname_spec
19168
19169 # List of archive names.  First name is the real one, the rest are links.
19170 # The last name is the one that the linker finds with -lNAME.
19171 library_names_spec=$lt_library_names_spec
19172
19173 # The coded name of the library, if different from the real name.
19174 soname_spec=$lt_soname_spec
19175
19176 # Commands used to build and install an old-style archive.
19177 RANLIB=$lt_RANLIB
19178 old_archive_cmds=$lt_old_archive_cmds_RC
19179 old_postinstall_cmds=$lt_old_postinstall_cmds
19180 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19181
19182 # Create an old-style archive from a shared archive.
19183 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19184
19185 # Create a temporary old-style archive to link instead of a shared archive.
19186 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19187
19188 # Commands used to build and install a shared archive.
19189 archive_cmds=$lt_archive_cmds_RC
19190 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19191 postinstall_cmds=$lt_postinstall_cmds
19192 postuninstall_cmds=$lt_postuninstall_cmds
19193
19194 # Commands used to build a loadable module (assumed same as above if empty)
19195 module_cmds=$lt_module_cmds_RC
19196 module_expsym_cmds=$lt_module_expsym_cmds_RC
19197
19198 # Commands to strip libraries.
19199 old_striplib=$lt_old_striplib
19200 striplib=$lt_striplib
19201
19202 # Dependencies to place before the objects being linked to create a
19203 # shared library.
19204 predep_objects=\`echo $lt_predep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
19205
19206 # Dependencies to place after the objects being linked to create a
19207 # shared library.
19208 postdep_objects=\`echo $lt_postdep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
19209
19210 # Dependencies to place before the objects being linked to create a
19211 # shared library.
19212 predeps=$lt_predeps_RC
19213
19214 # Dependencies to place after the objects being linked to create a
19215 # shared library.
19216 postdeps=$lt_postdeps_RC
19217
19218 # The library search path used internally by the compiler when linking
19219 # a shared library.
19220 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
19221
19222 # Method to check whether dependent libraries are shared objects.
19223 deplibs_check_method=$lt_deplibs_check_method
19224
19225 # Command to use when deplibs_check_method == file_magic.
19226 file_magic_cmd=$lt_file_magic_cmd
19227
19228 # Flag that allows shared libraries with undefined symbols to be built.
19229 allow_undefined_flag=$lt_allow_undefined_flag_RC
19230
19231 # Flag that forces no undefined symbols.
19232 no_undefined_flag=$lt_no_undefined_flag_RC
19233
19234 # Commands used to finish a libtool library installation in a directory.
19235 finish_cmds=$lt_finish_cmds
19236
19237 # Same as above, but a single script fragment to be evaled but not shown.
19238 finish_eval=$lt_finish_eval
19239
19240 # Take the output of nm and produce a listing of raw symbols and C names.
19241 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19242
19243 # Transform the output of nm in a proper C declaration
19244 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19245
19246 # Transform the output of nm in a C name address pair
19247 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19248
19249 # This is the shared library runtime path variable.
19250 runpath_var=$runpath_var
19251
19252 # This is the shared library path variable.
19253 shlibpath_var=$shlibpath_var
19254
19255 # Is shlibpath searched before the hard-coded library search path?
19256 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19257
19258 # How to hardcode a shared library path into an executable.
19259 hardcode_action=$hardcode_action_RC
19260
19261 # Whether we should hardcode library paths into libraries.
19262 hardcode_into_libs=$hardcode_into_libs
19263
19264 # Flag to hardcode \$libdir into a binary during linking.
19265 # This must work even if \$libdir does not exist.
19266 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19267
19268 # If ld is used when linking, flag to hardcode \$libdir into
19269 # a binary during linking. This must work even if \$libdir does
19270 # not exist.
19271 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19272
19273 # Whether we need a single -rpath flag with a separated argument.
19274 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19275
19276 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19277 # resulting binary.
19278 hardcode_direct=$hardcode_direct_RC
19279
19280 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19281 # resulting binary.
19282 hardcode_minus_L=$hardcode_minus_L_RC
19283
19284 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19285 # the resulting binary.
19286 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19287
19288 # Set to yes if building a shared library automatically hardcodes DIR into the library
19289 # and all subsequent libraries and executables linked against it.
19290 hardcode_automatic=$hardcode_automatic_RC
19291
19292 # Variables whose values should be saved in libtool wrapper scripts and
19293 # restored at relink time.
19294 variables_saved_for_relink="$variables_saved_for_relink"
19295
19296 # Whether libtool must link a program against all its dependency libraries.
19297 link_all_deplibs=$link_all_deplibs_RC
19298
19299 # Compile-time system search path for libraries
19300 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
19301
19302 # Run-time system search path for libraries
19303 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19304
19305 # Fix the shell variable \$srcfile for the compiler.
19306 fix_srcfile_path=$lt_fix_srcfile_path
19307
19308 # Set to yes if exported symbols are required.
19309 always_export_symbols=$always_export_symbols_RC
19310
19311 # The commands to list exported symbols.
19312 export_symbols_cmds=$lt_export_symbols_cmds_RC
19313
19314 # The commands to extract the exported symbol list from a shared archive.
19315 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19316
19317 # Symbols that should not be listed in the preloaded symbols.
19318 exclude_expsyms=$lt_exclude_expsyms_RC
19319
19320 # Symbols that must always be exported.
19321 include_expsyms=$lt_include_expsyms_RC
19322
19323 # ### END LIBTOOL TAG CONFIG: $tagname
19324
19325 __EOF__
19326
19327
19328 else
19329   # If there is no Makefile yet, we rely on a make rule to execute
19330   # `config.status --recheck' to rerun these tests and create the
19331   # libtool script then.
19332   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19333   if test -f "$ltmain_in"; then
19334     test -f Makefile && make "$ltmain"
19335   fi
19336 fi
19337
19338
19339 ac_ext=c
19340 ac_cpp='$CPP $CPPFLAGS'
19341 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19342 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19343 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19344
19345 CC="$lt_save_CC"
19346
19347         ;;
19348
19349       *)
19350         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19351 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19352    { (exit 1); exit 1; }; }
19353         ;;
19354       esac
19355
19356       # Append the new tag name to the list of available tags.
19357       if test -n "$tagname" ; then
19358       available_tags="$available_tags $tagname"
19359     fi
19360     fi
19361   done
19362   IFS="$lt_save_ifs"
19363
19364   # Now substitute the updated list of available tags.
19365   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19366     mv "${ofile}T" "$ofile"
19367     chmod +x "$ofile"
19368   else
19369     rm -f "${ofile}T"
19370     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19371 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19372    { (exit 1); exit 1; }; }
19373   fi
19374 fi
19375
19376
19377
19378 # This can be used to rebuild libtool when needed
19379 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19380
19381 # Always use our own libtool.
19382 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19383
19384 # Prevent multiple expansion
19385
19386
19387
19388
19389
19390
19391
19392
19393
19394
19395
19396
19397
19398
19399
19400
19401
19402
19403
19404
19405
19406 ac_ext=c
19407 ac_cpp='$CPP $CPPFLAGS'
19408 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19409 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19410 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19411
19412
19413 ac_ext=c
19414 ac_cpp='$CPP $CPPFLAGS'
19415 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19416 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19417 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19418 if test -n "$ac_tool_prefix"; then
19419   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
19420 set dummy ${ac_tool_prefix}gcc; ac_word=$2
19421 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19422 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19423 if test "${ac_cv_prog_CC+set}" = set; then
19424   echo $ECHO_N "(cached) $ECHO_C" >&6
19425 else
19426   if test -n "$CC"; then
19427   ac_cv_prog_CC="$CC" # Let the user override the test.
19428 else
19429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19430 for as_dir in $PATH
19431 do
19432   IFS=$as_save_IFS
19433   test -z "$as_dir" && as_dir=.
19434   for ac_exec_ext in '' $ac_executable_extensions; do
19435   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19436     ac_cv_prog_CC="${ac_tool_prefix}gcc"
19437     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19438     break 2
19439   fi
19440 done
19441 done
19442 IFS=$as_save_IFS
19443
19444 fi
19445 fi
19446 CC=$ac_cv_prog_CC
19447 if test -n "$CC"; then
19448   { echo "$as_me:$LINENO: result: $CC" >&5
19449 echo "${ECHO_T}$CC" >&6; }
19450 else
19451   { echo "$as_me:$LINENO: result: no" >&5
19452 echo "${ECHO_T}no" >&6; }
19453 fi
19454
19455
19456 fi
19457 if test -z "$ac_cv_prog_CC"; then
19458   ac_ct_CC=$CC
19459   # Extract the first word of "gcc", so it can be a program name with args.
19460 set dummy gcc; ac_word=$2
19461 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19462 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19463 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19464   echo $ECHO_N "(cached) $ECHO_C" >&6
19465 else
19466   if test -n "$ac_ct_CC"; then
19467   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19468 else
19469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19470 for as_dir in $PATH
19471 do
19472   IFS=$as_save_IFS
19473   test -z "$as_dir" && as_dir=.
19474   for ac_exec_ext in '' $ac_executable_extensions; do
19475   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19476     ac_cv_prog_ac_ct_CC="gcc"
19477     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19478     break 2
19479   fi
19480 done
19481 done
19482 IFS=$as_save_IFS
19483
19484 fi
19485 fi
19486 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19487 if test -n "$ac_ct_CC"; then
19488   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19489 echo "${ECHO_T}$ac_ct_CC" >&6; }
19490 else
19491   { echo "$as_me:$LINENO: result: no" >&5
19492 echo "${ECHO_T}no" >&6; }
19493 fi
19494
19495   if test "x$ac_ct_CC" = x; then
19496     CC=""
19497   else
19498     case $cross_compiling:$ac_tool_warned in
19499 yes:)
19500 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19501 whose name does not start with the host triplet.  If you think this
19502 configuration is useful to you, please write to autoconf@gnu.org." >&5
19503 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19504 whose name does not start with the host triplet.  If you think this
19505 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19506 ac_tool_warned=yes ;;
19507 esac
19508     CC=$ac_ct_CC
19509   fi
19510 else
19511   CC="$ac_cv_prog_CC"
19512 fi
19513
19514 if test -z "$CC"; then
19515           if test -n "$ac_tool_prefix"; then
19516     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
19517 set dummy ${ac_tool_prefix}cc; ac_word=$2
19518 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19520 if test "${ac_cv_prog_CC+set}" = set; then
19521   echo $ECHO_N "(cached) $ECHO_C" >&6
19522 else
19523   if test -n "$CC"; then
19524   ac_cv_prog_CC="$CC" # Let the user override the test.
19525 else
19526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19527 for as_dir in $PATH
19528 do
19529   IFS=$as_save_IFS
19530   test -z "$as_dir" && as_dir=.
19531   for ac_exec_ext in '' $ac_executable_extensions; do
19532   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19533     ac_cv_prog_CC="${ac_tool_prefix}cc"
19534     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19535     break 2
19536   fi
19537 done
19538 done
19539 IFS=$as_save_IFS
19540
19541 fi
19542 fi
19543 CC=$ac_cv_prog_CC
19544 if test -n "$CC"; then
19545   { echo "$as_me:$LINENO: result: $CC" >&5
19546 echo "${ECHO_T}$CC" >&6; }
19547 else
19548   { echo "$as_me:$LINENO: result: no" >&5
19549 echo "${ECHO_T}no" >&6; }
19550 fi
19551
19552
19553   fi
19554 fi
19555 if test -z "$CC"; then
19556   # Extract the first word of "cc", so it can be a program name with args.
19557 set dummy cc; ac_word=$2
19558 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19560 if test "${ac_cv_prog_CC+set}" = set; then
19561   echo $ECHO_N "(cached) $ECHO_C" >&6
19562 else
19563   if test -n "$CC"; then
19564   ac_cv_prog_CC="$CC" # Let the user override the test.
19565 else
19566   ac_prog_rejected=no
19567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19568 for as_dir in $PATH
19569 do
19570   IFS=$as_save_IFS
19571   test -z "$as_dir" && as_dir=.
19572   for ac_exec_ext in '' $ac_executable_extensions; do
19573   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19574     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
19575        ac_prog_rejected=yes
19576        continue
19577      fi
19578     ac_cv_prog_CC="cc"
19579     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19580     break 2
19581   fi
19582 done
19583 done
19584 IFS=$as_save_IFS
19585
19586 if test $ac_prog_rejected = yes; then
19587   # We found a bogon in the path, so make sure we never use it.
19588   set dummy $ac_cv_prog_CC
19589   shift
19590   if test $# != 0; then
19591     # We chose a different compiler from the bogus one.
19592     # However, it has the same basename, so the bogon will be chosen
19593     # first if we set CC to just the basename; use the full file name.
19594     shift
19595     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
19596   fi
19597 fi
19598 fi
19599 fi
19600 CC=$ac_cv_prog_CC
19601 if test -n "$CC"; then
19602   { echo "$as_me:$LINENO: result: $CC" >&5
19603 echo "${ECHO_T}$CC" >&6; }
19604 else
19605   { echo "$as_me:$LINENO: result: no" >&5
19606 echo "${ECHO_T}no" >&6; }
19607 fi
19608
19609
19610 fi
19611 if test -z "$CC"; then
19612   if test -n "$ac_tool_prefix"; then
19613   for ac_prog in cl.exe
19614   do
19615     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19616 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19617 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19618 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19619 if test "${ac_cv_prog_CC+set}" = set; then
19620   echo $ECHO_N "(cached) $ECHO_C" >&6
19621 else
19622   if test -n "$CC"; then
19623   ac_cv_prog_CC="$CC" # Let the user override the test.
19624 else
19625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19626 for as_dir in $PATH
19627 do
19628   IFS=$as_save_IFS
19629   test -z "$as_dir" && as_dir=.
19630   for ac_exec_ext in '' $ac_executable_extensions; do
19631   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19632     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
19633     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19634     break 2
19635   fi
19636 done
19637 done
19638 IFS=$as_save_IFS
19639
19640 fi
19641 fi
19642 CC=$ac_cv_prog_CC
19643 if test -n "$CC"; then
19644   { echo "$as_me:$LINENO: result: $CC" >&5
19645 echo "${ECHO_T}$CC" >&6; }
19646 else
19647   { echo "$as_me:$LINENO: result: no" >&5
19648 echo "${ECHO_T}no" >&6; }
19649 fi
19650
19651
19652     test -n "$CC" && break
19653   done
19654 fi
19655 if test -z "$CC"; then
19656   ac_ct_CC=$CC
19657   for ac_prog in cl.exe
19658 do
19659   # Extract the first word of "$ac_prog", so it can be a program name with args.
19660 set dummy $ac_prog; ac_word=$2
19661 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19662 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19663 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19664   echo $ECHO_N "(cached) $ECHO_C" >&6
19665 else
19666   if test -n "$ac_ct_CC"; then
19667   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19668 else
19669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19670 for as_dir in $PATH
19671 do
19672   IFS=$as_save_IFS
19673   test -z "$as_dir" && as_dir=.
19674   for ac_exec_ext in '' $ac_executable_extensions; do
19675   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19676     ac_cv_prog_ac_ct_CC="$ac_prog"
19677     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19678     break 2
19679   fi
19680 done
19681 done
19682 IFS=$as_save_IFS
19683
19684 fi
19685 fi
19686 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19687 if test -n "$ac_ct_CC"; then
19688   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19689 echo "${ECHO_T}$ac_ct_CC" >&6; }
19690 else
19691   { echo "$as_me:$LINENO: result: no" >&5
19692 echo "${ECHO_T}no" >&6; }
19693 fi
19694
19695
19696   test -n "$ac_ct_CC" && break
19697 done
19698
19699   if test "x$ac_ct_CC" = x; then
19700     CC=""
19701   else
19702     case $cross_compiling:$ac_tool_warned in
19703 yes:)
19704 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19705 whose name does not start with the host triplet.  If you think this
19706 configuration is useful to you, please write to autoconf@gnu.org." >&5
19707 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19708 whose name does not start with the host triplet.  If you think this
19709 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19710 ac_tool_warned=yes ;;
19711 esac
19712     CC=$ac_ct_CC
19713   fi
19714 fi
19715
19716 fi
19717
19718
19719 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
19720 See \`config.log' for more details." >&5
19721 echo "$as_me: error: no acceptable C compiler found in \$PATH
19722 See \`config.log' for more details." >&2;}
19723    { (exit 1); exit 1; }; }
19724
19725 # Provide some information about the compiler.
19726 echo "$as_me:$LINENO: checking for C compiler version" >&5
19727 ac_compiler=`set X $ac_compile; echo $2`
19728 { (ac_try="$ac_compiler --version >&5"
19729 case "(($ac_try" in
19730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19731   *) ac_try_echo=$ac_try;;
19732 esac
19733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19734   (eval "$ac_compiler --version >&5") 2>&5
19735   ac_status=$?
19736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19737   (exit $ac_status); }
19738 { (ac_try="$ac_compiler -v >&5"
19739 case "(($ac_try" in
19740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19741   *) ac_try_echo=$ac_try;;
19742 esac
19743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19744   (eval "$ac_compiler -v >&5") 2>&5
19745   ac_status=$?
19746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19747   (exit $ac_status); }
19748 { (ac_try="$ac_compiler -V >&5"
19749 case "(($ac_try" in
19750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19751   *) ac_try_echo=$ac_try;;
19752 esac
19753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19754   (eval "$ac_compiler -V >&5") 2>&5
19755   ac_status=$?
19756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19757   (exit $ac_status); }
19758
19759 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
19760 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
19761 if test "${ac_cv_c_compiler_gnu+set}" = set; then
19762   echo $ECHO_N "(cached) $ECHO_C" >&6
19763 else
19764   cat >conftest.$ac_ext <<_ACEOF
19765 /* confdefs.h.  */
19766 _ACEOF
19767 cat confdefs.h >>conftest.$ac_ext
19768 cat >>conftest.$ac_ext <<_ACEOF
19769 /* end confdefs.h.  */
19770
19771 int
19772 main ()
19773 {
19774 #ifndef __GNUC__
19775        choke me
19776 #endif
19777
19778   ;
19779   return 0;
19780 }
19781 _ACEOF
19782 rm -f conftest.$ac_objext
19783 if { (ac_try="$ac_compile"
19784 case "(($ac_try" in
19785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19786   *) ac_try_echo=$ac_try;;
19787 esac
19788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19789   (eval "$ac_compile") 2>conftest.er1
19790   ac_status=$?
19791   grep -v '^ *+' conftest.er1 >conftest.err
19792   rm -f conftest.er1
19793   cat conftest.err >&5
19794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19795   (exit $ac_status); } && {
19796          test -z "$ac_c_werror_flag" ||
19797          test ! -s conftest.err
19798        } && test -s conftest.$ac_objext; then
19799   ac_compiler_gnu=yes
19800 else
19801   echo "$as_me: failed program was:" >&5
19802 sed 's/^/| /' conftest.$ac_ext >&5
19803
19804         ac_compiler_gnu=no
19805 fi
19806
19807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19808 ac_cv_c_compiler_gnu=$ac_compiler_gnu
19809
19810 fi
19811 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
19812 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
19813 GCC=`test $ac_compiler_gnu = yes && echo yes`
19814 ac_test_CFLAGS=${CFLAGS+set}
19815 ac_save_CFLAGS=$CFLAGS
19816 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
19817 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
19818 if test "${ac_cv_prog_cc_g+set}" = set; then
19819   echo $ECHO_N "(cached) $ECHO_C" >&6
19820 else
19821   ac_save_c_werror_flag=$ac_c_werror_flag
19822    ac_c_werror_flag=yes
19823    ac_cv_prog_cc_g=no
19824    CFLAGS="-g"
19825    cat >conftest.$ac_ext <<_ACEOF
19826 /* confdefs.h.  */
19827 _ACEOF
19828 cat confdefs.h >>conftest.$ac_ext
19829 cat >>conftest.$ac_ext <<_ACEOF
19830 /* end confdefs.h.  */
19831
19832 int
19833 main ()
19834 {
19835
19836   ;
19837   return 0;
19838 }
19839 _ACEOF
19840 rm -f conftest.$ac_objext
19841 if { (ac_try="$ac_compile"
19842 case "(($ac_try" in
19843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19844   *) ac_try_echo=$ac_try;;
19845 esac
19846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19847   (eval "$ac_compile") 2>conftest.er1
19848   ac_status=$?
19849   grep -v '^ *+' conftest.er1 >conftest.err
19850   rm -f conftest.er1
19851   cat conftest.err >&5
19852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19853   (exit $ac_status); } && {
19854          test -z "$ac_c_werror_flag" ||
19855          test ! -s conftest.err
19856        } && test -s conftest.$ac_objext; then
19857   ac_cv_prog_cc_g=yes
19858 else
19859   echo "$as_me: failed program was:" >&5
19860 sed 's/^/| /' conftest.$ac_ext >&5
19861
19862         CFLAGS=""
19863       cat >conftest.$ac_ext <<_ACEOF
19864 /* confdefs.h.  */
19865 _ACEOF
19866 cat confdefs.h >>conftest.$ac_ext
19867 cat >>conftest.$ac_ext <<_ACEOF
19868 /* end confdefs.h.  */
19869
19870 int
19871 main ()
19872 {
19873
19874   ;
19875   return 0;
19876 }
19877 _ACEOF
19878 rm -f conftest.$ac_objext
19879 if { (ac_try="$ac_compile"
19880 case "(($ac_try" in
19881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19882   *) ac_try_echo=$ac_try;;
19883 esac
19884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19885   (eval "$ac_compile") 2>conftest.er1
19886   ac_status=$?
19887   grep -v '^ *+' conftest.er1 >conftest.err
19888   rm -f conftest.er1
19889   cat conftest.err >&5
19890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19891   (exit $ac_status); } && {
19892          test -z "$ac_c_werror_flag" ||
19893          test ! -s conftest.err
19894        } && test -s conftest.$ac_objext; then
19895   :
19896 else
19897   echo "$as_me: failed program was:" >&5
19898 sed 's/^/| /' conftest.$ac_ext >&5
19899
19900         ac_c_werror_flag=$ac_save_c_werror_flag
19901          CFLAGS="-g"
19902          cat >conftest.$ac_ext <<_ACEOF
19903 /* confdefs.h.  */
19904 _ACEOF
19905 cat confdefs.h >>conftest.$ac_ext
19906 cat >>conftest.$ac_ext <<_ACEOF
19907 /* end confdefs.h.  */
19908
19909 int
19910 main ()
19911 {
19912
19913   ;
19914   return 0;
19915 }
19916 _ACEOF
19917 rm -f conftest.$ac_objext
19918 if { (ac_try="$ac_compile"
19919 case "(($ac_try" in
19920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19921   *) ac_try_echo=$ac_try;;
19922 esac
19923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19924   (eval "$ac_compile") 2>conftest.er1
19925   ac_status=$?
19926   grep -v '^ *+' conftest.er1 >conftest.err
19927   rm -f conftest.er1
19928   cat conftest.err >&5
19929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19930   (exit $ac_status); } && {
19931          test -z "$ac_c_werror_flag" ||
19932          test ! -s conftest.err
19933        } && test -s conftest.$ac_objext; then
19934   ac_cv_prog_cc_g=yes
19935 else
19936   echo "$as_me: failed program was:" >&5
19937 sed 's/^/| /' conftest.$ac_ext >&5
19938
19939
19940 fi
19941
19942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19943 fi
19944
19945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19946 fi
19947
19948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19949    ac_c_werror_flag=$ac_save_c_werror_flag
19950 fi
19951 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
19952 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
19953 if test "$ac_test_CFLAGS" = set; then
19954   CFLAGS=$ac_save_CFLAGS
19955 elif test $ac_cv_prog_cc_g = yes; then
19956   if test "$GCC" = yes; then
19957     CFLAGS="-g -O2"
19958   else
19959     CFLAGS="-g"
19960   fi
19961 else
19962   if test "$GCC" = yes; then
19963     CFLAGS="-O2"
19964   else
19965     CFLAGS=
19966   fi
19967 fi
19968 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
19969 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
19970 if test "${ac_cv_prog_cc_c89+set}" = set; then
19971   echo $ECHO_N "(cached) $ECHO_C" >&6
19972 else
19973   ac_cv_prog_cc_c89=no
19974 ac_save_CC=$CC
19975 cat >conftest.$ac_ext <<_ACEOF
19976 /* confdefs.h.  */
19977 _ACEOF
19978 cat confdefs.h >>conftest.$ac_ext
19979 cat >>conftest.$ac_ext <<_ACEOF
19980 /* end confdefs.h.  */
19981 #include <stdarg.h>
19982 #include <stdio.h>
19983 #include <sys/types.h>
19984 #include <sys/stat.h>
19985 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
19986 struct buf { int x; };
19987 FILE * (*rcsopen) (struct buf *, struct stat *, int);
19988 static char *e (p, i)
19989      char **p;
19990      int i;
19991 {
19992   return p[i];
19993 }
19994 static char *f (char * (*g) (char **, int), char **p, ...)
19995 {
19996   char *s;
19997   va_list v;
19998   va_start (v,p);
19999   s = g (p, va_arg (v,int));
20000   va_end (v);
20001   return s;
20002 }
20003
20004 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
20005    function prototypes and stuff, but not '\xHH' hex character constants.
20006    These don't provoke an error unfortunately, instead are silently treated
20007    as 'x'.  The following induces an error, until -std is added to get
20008    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
20009    array size at least.  It's necessary to write '\x00'==0 to get something
20010    that's true only with -std.  */
20011 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
20012
20013 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
20014    inside strings and character constants.  */
20015 #define FOO(x) 'x'
20016 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
20017
20018 int test (int i, double x);
20019 struct s1 {int (*f) (int a);};
20020 struct s2 {int (*f) (double a);};
20021 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
20022 int argc;
20023 char **argv;
20024 int
20025 main ()
20026 {
20027 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
20028   ;
20029   return 0;
20030 }
20031 _ACEOF
20032 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
20033         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
20034 do
20035   CC="$ac_save_CC $ac_arg"
20036   rm -f conftest.$ac_objext
20037 if { (ac_try="$ac_compile"
20038 case "(($ac_try" in
20039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20040   *) ac_try_echo=$ac_try;;
20041 esac
20042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20043   (eval "$ac_compile") 2>conftest.er1
20044   ac_status=$?
20045   grep -v '^ *+' conftest.er1 >conftest.err
20046   rm -f conftest.er1
20047   cat conftest.err >&5
20048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20049   (exit $ac_status); } && {
20050          test -z "$ac_c_werror_flag" ||
20051          test ! -s conftest.err
20052        } && test -s conftest.$ac_objext; then
20053   ac_cv_prog_cc_c89=$ac_arg
20054 else
20055   echo "$as_me: failed program was:" >&5
20056 sed 's/^/| /' conftest.$ac_ext >&5
20057
20058
20059 fi
20060
20061 rm -f core conftest.err conftest.$ac_objext
20062   test "x$ac_cv_prog_cc_c89" != "xno" && break
20063 done
20064 rm -f conftest.$ac_ext
20065 CC=$ac_save_CC
20066
20067 fi
20068 # AC_CACHE_VAL
20069 case "x$ac_cv_prog_cc_c89" in
20070   x)
20071     { echo "$as_me:$LINENO: result: none needed" >&5
20072 echo "${ECHO_T}none needed" >&6; } ;;
20073   xno)
20074     { echo "$as_me:$LINENO: result: unsupported" >&5
20075 echo "${ECHO_T}unsupported" >&6; } ;;
20076   *)
20077     CC="$CC $ac_cv_prog_cc_c89"
20078     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
20079 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
20080 esac
20081
20082
20083 ac_ext=c
20084 ac_cpp='$CPP $CPPFLAGS'
20085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20088
20089 depcc="$CC"   am_compiler_list=
20090
20091 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
20092 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
20093 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
20094   echo $ECHO_N "(cached) $ECHO_C" >&6
20095 else
20096   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
20097   # We make a subdir and do the tests there.  Otherwise we can end up
20098   # making bogus files that we don't know about and never remove.  For
20099   # instance it was reported that on HP-UX the gcc test will end up
20100   # making a dummy file named `D' -- because `-MD' means `put the output
20101   # in D'.
20102   mkdir conftest.dir
20103   # Copy depcomp to subdir because otherwise we won't find it if we're
20104   # using a relative directory.
20105   cp "$am_depcomp" conftest.dir
20106   cd conftest.dir
20107   # We will build objects and dependencies in a subdirectory because
20108   # it helps to detect inapplicable dependency modes.  For instance
20109   # both Tru64's cc and ICC support -MD to output dependencies as a
20110   # side effect of compilation, but ICC will put the dependencies in
20111   # the current directory while Tru64 will put them in the object
20112   # directory.
20113   mkdir sub
20114
20115   am_cv_CC_dependencies_compiler_type=none
20116   if test "$am_compiler_list" = ""; then
20117      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
20118   fi
20119   for depmode in $am_compiler_list; do
20120     # Setup a source with many dependencies, because some compilers
20121     # like to wrap large dependency lists on column 80 (with \), and
20122     # we should not choose a depcomp mode which is confused by this.
20123     #
20124     # We need to recreate these files for each test, as the compiler may
20125     # overwrite some of them when testing with obscure command lines.
20126     # This happens at least with the AIX C compiler.
20127     : > sub/conftest.c
20128     for i in 1 2 3 4 5 6; do
20129       echo '#include "conftst'$i'.h"' >> sub/conftest.c
20130       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
20131       # Solaris 8's {/usr,}/bin/sh.
20132       touch sub/conftst$i.h
20133     done
20134     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
20135
20136     case $depmode in
20137     nosideeffect)
20138       # after this tag, mechanisms are not by side-effect, so they'll
20139       # only be used when explicitly requested
20140       if test "x$enable_dependency_tracking" = xyes; then
20141         continue
20142       else
20143         break
20144       fi
20145       ;;
20146     none) break ;;
20147     esac
20148     # We check with `-c' and `-o' for the sake of the "dashmstdout"
20149     # mode.  It turns out that the SunPro C++ compiler does not properly
20150     # handle `-M -o', and we need to detect this.
20151     if depmode=$depmode \
20152        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
20153        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
20154        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
20155          >/dev/null 2>conftest.err &&
20156        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
20157        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
20158        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
20159        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
20160       # icc doesn't choke on unknown options, it will just issue warnings
20161       # or remarks (even with -Werror).  So we grep stderr for any message
20162       # that says an option was ignored or not supported.
20163       # When given -MP, icc 7.0 and 7.1 complain thusly:
20164       #   icc: Command line warning: ignoring option '-M'; no argument required
20165       # The diagnosis changed in icc 8.0:
20166       #   icc: Command line remark: option '-MP' not supported
20167       if (grep 'ignoring option' conftest.err ||
20168           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
20169         am_cv_CC_dependencies_compiler_type=$depmode
20170         break
20171       fi
20172     fi
20173   done
20174
20175   cd ..
20176   rm -rf conftest.dir
20177 else
20178   am_cv_CC_dependencies_compiler_type=none
20179 fi
20180
20181 fi
20182 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
20183 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
20184 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
20185
20186  if
20187   test "x$enable_dependency_tracking" != xno \
20188   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
20189   am__fastdepCC_TRUE=
20190   am__fastdepCC_FALSE='#'
20191 else
20192   am__fastdepCC_TRUE='#'
20193   am__fastdepCC_FALSE=
20194 fi
20195
20196
20197
20198 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
20199 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
20200 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
20201 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
20202   echo $ECHO_N "(cached) $ECHO_C" >&6
20203 else
20204   cat >conftest.make <<\_ACEOF
20205 SHELL = /bin/sh
20206 all:
20207         @echo '@@@%%%=$(MAKE)=@@@%%%'
20208 _ACEOF
20209 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
20210 case `${MAKE-make} -f conftest.make 2>/dev/null` in
20211   *@@@%%%=?*=@@@%%%*)
20212     eval ac_cv_prog_make_${ac_make}_set=yes;;
20213   *)
20214     eval ac_cv_prog_make_${ac_make}_set=no;;
20215 esac
20216 rm -f conftest.make
20217 fi
20218 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
20219   { echo "$as_me:$LINENO: result: yes" >&5
20220 echo "${ECHO_T}yes" >&6; }
20221   SET_MAKE=
20222 else
20223   { echo "$as_me:$LINENO: result: no" >&5
20224 echo "${ECHO_T}no" >&6; }
20225   SET_MAKE="MAKE=${MAKE-make}"
20226 fi
20227
20228
20229 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20230 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20231 if test "${ac_cv_header_stdc+set}" = set; then
20232   echo $ECHO_N "(cached) $ECHO_C" >&6
20233 else
20234   cat >conftest.$ac_ext <<_ACEOF
20235 /* confdefs.h.  */
20236 _ACEOF
20237 cat confdefs.h >>conftest.$ac_ext
20238 cat >>conftest.$ac_ext <<_ACEOF
20239 /* end confdefs.h.  */
20240 #include <stdlib.h>
20241 #include <stdarg.h>
20242 #include <string.h>
20243 #include <float.h>
20244
20245 int
20246 main ()
20247 {
20248
20249   ;
20250   return 0;
20251 }
20252 _ACEOF
20253 rm -f conftest.$ac_objext
20254 if { (ac_try="$ac_compile"
20255 case "(($ac_try" in
20256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20257   *) ac_try_echo=$ac_try;;
20258 esac
20259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20260   (eval "$ac_compile") 2>conftest.er1
20261   ac_status=$?
20262   grep -v '^ *+' conftest.er1 >conftest.err
20263   rm -f conftest.er1
20264   cat conftest.err >&5
20265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20266   (exit $ac_status); } && {
20267          test -z "$ac_c_werror_flag" ||
20268          test ! -s conftest.err
20269        } && test -s conftest.$ac_objext; then
20270   ac_cv_header_stdc=yes
20271 else
20272   echo "$as_me: failed program was:" >&5
20273 sed 's/^/| /' conftest.$ac_ext >&5
20274
20275         ac_cv_header_stdc=no
20276 fi
20277
20278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20279
20280 if test $ac_cv_header_stdc = yes; then
20281   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20282   cat >conftest.$ac_ext <<_ACEOF
20283 /* confdefs.h.  */
20284 _ACEOF
20285 cat confdefs.h >>conftest.$ac_ext
20286 cat >>conftest.$ac_ext <<_ACEOF
20287 /* end confdefs.h.  */
20288 #include <string.h>
20289
20290 _ACEOF
20291 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20292   $EGREP "memchr" >/dev/null 2>&1; then
20293   :
20294 else
20295   ac_cv_header_stdc=no
20296 fi
20297 rm -f conftest*
20298
20299 fi
20300
20301 if test $ac_cv_header_stdc = yes; then
20302   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20303   cat >conftest.$ac_ext <<_ACEOF
20304 /* confdefs.h.  */
20305 _ACEOF
20306 cat confdefs.h >>conftest.$ac_ext
20307 cat >>conftest.$ac_ext <<_ACEOF
20308 /* end confdefs.h.  */
20309 #include <stdlib.h>
20310
20311 _ACEOF
20312 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20313   $EGREP "free" >/dev/null 2>&1; then
20314   :
20315 else
20316   ac_cv_header_stdc=no
20317 fi
20318 rm -f conftest*
20319
20320 fi
20321
20322 if test $ac_cv_header_stdc = yes; then
20323   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20324   if test "$cross_compiling" = yes; then
20325   :
20326 else
20327   cat >conftest.$ac_ext <<_ACEOF
20328 /* confdefs.h.  */
20329 _ACEOF
20330 cat confdefs.h >>conftest.$ac_ext
20331 cat >>conftest.$ac_ext <<_ACEOF
20332 /* end confdefs.h.  */
20333 #include <ctype.h>
20334 #include <stdlib.h>
20335 #if ((' ' & 0x0FF) == 0x020)
20336 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20337 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20338 #else
20339 # define ISLOWER(c) \
20340                    (('a' <= (c) && (c) <= 'i') \
20341                      || ('j' <= (c) && (c) <= 'r') \
20342                      || ('s' <= (c) && (c) <= 'z'))
20343 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20344 #endif
20345
20346 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20347 int
20348 main ()
20349 {
20350   int i;
20351   for (i = 0; i < 256; i++)
20352     if (XOR (islower (i), ISLOWER (i))
20353         || toupper (i) != TOUPPER (i))
20354       return 2;
20355   return 0;
20356 }
20357 _ACEOF
20358 rm -f conftest$ac_exeext
20359 if { (ac_try="$ac_link"
20360 case "(($ac_try" in
20361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20362   *) ac_try_echo=$ac_try;;
20363 esac
20364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20365   (eval "$ac_link") 2>&5
20366   ac_status=$?
20367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20368   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20369   { (case "(($ac_try" in
20370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20371   *) ac_try_echo=$ac_try;;
20372 esac
20373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20374   (eval "$ac_try") 2>&5
20375   ac_status=$?
20376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20377   (exit $ac_status); }; }; then
20378   :
20379 else
20380   echo "$as_me: program exited with status $ac_status" >&5
20381 echo "$as_me: failed program was:" >&5
20382 sed 's/^/| /' conftest.$ac_ext >&5
20383
20384 ( exit $ac_status )
20385 ac_cv_header_stdc=no
20386 fi
20387 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20388 fi
20389
20390
20391 fi
20392 fi
20393 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20394 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20395 if test $ac_cv_header_stdc = yes; then
20396
20397 cat >>confdefs.h <<\_ACEOF
20398 #define STDC_HEADERS 1
20399 _ACEOF
20400
20401 fi
20402
20403
20404
20405
20406
20407
20408
20409 ac_header_dirent=no
20410 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20411   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
20412 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
20413 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
20414 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20415   echo $ECHO_N "(cached) $ECHO_C" >&6
20416 else
20417   cat >conftest.$ac_ext <<_ACEOF
20418 /* confdefs.h.  */
20419 _ACEOF
20420 cat confdefs.h >>conftest.$ac_ext
20421 cat >>conftest.$ac_ext <<_ACEOF
20422 /* end confdefs.h.  */
20423 #include <sys/types.h>
20424 #include <$ac_hdr>
20425
20426 int
20427 main ()
20428 {
20429 if ((DIR *) 0)
20430 return 0;
20431   ;
20432   return 0;
20433 }
20434 _ACEOF
20435 rm -f conftest.$ac_objext
20436 if { (ac_try="$ac_compile"
20437 case "(($ac_try" in
20438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20439   *) ac_try_echo=$ac_try;;
20440 esac
20441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20442   (eval "$ac_compile") 2>conftest.er1
20443   ac_status=$?
20444   grep -v '^ *+' conftest.er1 >conftest.err
20445   rm -f conftest.er1
20446   cat conftest.err >&5
20447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20448   (exit $ac_status); } && {
20449          test -z "$ac_c_werror_flag" ||
20450          test ! -s conftest.err
20451        } && test -s conftest.$ac_objext; then
20452   eval "$as_ac_Header=yes"
20453 else
20454   echo "$as_me: failed program was:" >&5
20455 sed 's/^/| /' conftest.$ac_ext >&5
20456
20457         eval "$as_ac_Header=no"
20458 fi
20459
20460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20461 fi
20462 ac_res=`eval echo '${'$as_ac_Header'}'`
20463                { echo "$as_me:$LINENO: result: $ac_res" >&5
20464 echo "${ECHO_T}$ac_res" >&6; }
20465 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20466   cat >>confdefs.h <<_ACEOF
20467 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20468 _ACEOF
20469
20470 ac_header_dirent=$ac_hdr; break
20471 fi
20472
20473 done
20474 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20475 if test $ac_header_dirent = dirent.h; then
20476   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
20477 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
20478 if test "${ac_cv_search_opendir+set}" = set; then
20479   echo $ECHO_N "(cached) $ECHO_C" >&6
20480 else
20481   ac_func_search_save_LIBS=$LIBS
20482 cat >conftest.$ac_ext <<_ACEOF
20483 /* confdefs.h.  */
20484 _ACEOF
20485 cat confdefs.h >>conftest.$ac_ext
20486 cat >>conftest.$ac_ext <<_ACEOF
20487 /* end confdefs.h.  */
20488
20489 /* Override any GCC internal prototype to avoid an error.
20490    Use char because int might match the return type of a GCC
20491    builtin and then its argument prototype would still apply.  */
20492 #ifdef __cplusplus
20493 extern "C"
20494 #endif
20495 char opendir ();
20496 int
20497 main ()
20498 {
20499 return opendir ();
20500   ;
20501   return 0;
20502 }
20503 _ACEOF
20504 for ac_lib in '' dir; do
20505   if test -z "$ac_lib"; then
20506     ac_res="none required"
20507   else
20508     ac_res=-l$ac_lib
20509     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20510   fi
20511   rm -f conftest.$ac_objext conftest$ac_exeext
20512 if { (ac_try="$ac_link"
20513 case "(($ac_try" in
20514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20515   *) ac_try_echo=$ac_try;;
20516 esac
20517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20518   (eval "$ac_link") 2>conftest.er1
20519   ac_status=$?
20520   grep -v '^ *+' conftest.er1 >conftest.err
20521   rm -f conftest.er1
20522   cat conftest.err >&5
20523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20524   (exit $ac_status); } && {
20525          test -z "$ac_c_werror_flag" ||
20526          test ! -s conftest.err
20527        } && test -s conftest$ac_exeext &&
20528        $as_test_x conftest$ac_exeext; then
20529   ac_cv_search_opendir=$ac_res
20530 else
20531   echo "$as_me: failed program was:" >&5
20532 sed 's/^/| /' conftest.$ac_ext >&5
20533
20534
20535 fi
20536
20537 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20538       conftest$ac_exeext
20539   if test "${ac_cv_search_opendir+set}" = set; then
20540   break
20541 fi
20542 done
20543 if test "${ac_cv_search_opendir+set}" = set; then
20544   :
20545 else
20546   ac_cv_search_opendir=no
20547 fi
20548 rm conftest.$ac_ext
20549 LIBS=$ac_func_search_save_LIBS
20550 fi
20551 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20552 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
20553 ac_res=$ac_cv_search_opendir
20554 if test "$ac_res" != no; then
20555   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20556
20557 fi
20558
20559 else
20560   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
20561 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
20562 if test "${ac_cv_search_opendir+set}" = set; then
20563   echo $ECHO_N "(cached) $ECHO_C" >&6
20564 else
20565   ac_func_search_save_LIBS=$LIBS
20566 cat >conftest.$ac_ext <<_ACEOF
20567 /* confdefs.h.  */
20568 _ACEOF
20569 cat confdefs.h >>conftest.$ac_ext
20570 cat >>conftest.$ac_ext <<_ACEOF
20571 /* end confdefs.h.  */
20572
20573 /* Override any GCC internal prototype to avoid an error.
20574    Use char because int might match the return type of a GCC
20575    builtin and then its argument prototype would still apply.  */
20576 #ifdef __cplusplus
20577 extern "C"
20578 #endif
20579 char opendir ();
20580 int
20581 main ()
20582 {
20583 return opendir ();
20584   ;
20585   return 0;
20586 }
20587 _ACEOF
20588 for ac_lib in '' x; do
20589   if test -z "$ac_lib"; then
20590     ac_res="none required"
20591   else
20592     ac_res=-l$ac_lib
20593     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20594   fi
20595   rm -f conftest.$ac_objext conftest$ac_exeext
20596 if { (ac_try="$ac_link"
20597 case "(($ac_try" in
20598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20599   *) ac_try_echo=$ac_try;;
20600 esac
20601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20602   (eval "$ac_link") 2>conftest.er1
20603   ac_status=$?
20604   grep -v '^ *+' conftest.er1 >conftest.err
20605   rm -f conftest.er1
20606   cat conftest.err >&5
20607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20608   (exit $ac_status); } && {
20609          test -z "$ac_c_werror_flag" ||
20610          test ! -s conftest.err
20611        } && test -s conftest$ac_exeext &&
20612        $as_test_x conftest$ac_exeext; then
20613   ac_cv_search_opendir=$ac_res
20614 else
20615   echo "$as_me: failed program was:" >&5
20616 sed 's/^/| /' conftest.$ac_ext >&5
20617
20618
20619 fi
20620
20621 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20622       conftest$ac_exeext
20623   if test "${ac_cv_search_opendir+set}" = set; then
20624   break
20625 fi
20626 done
20627 if test "${ac_cv_search_opendir+set}" = set; then
20628   :
20629 else
20630   ac_cv_search_opendir=no
20631 fi
20632 rm conftest.$ac_ext
20633 LIBS=$ac_func_search_save_LIBS
20634 fi
20635 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20636 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
20637 ac_res=$ac_cv_search_opendir
20638 if test "$ac_res" != no; then
20639   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20640
20641 fi
20642
20643 fi
20644
20645
20646
20647 for ac_header in unistd.h
20648 do
20649 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20650 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20651   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20652 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20653 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20654   echo $ECHO_N "(cached) $ECHO_C" >&6
20655 fi
20656 ac_res=`eval echo '${'$as_ac_Header'}'`
20657                { echo "$as_me:$LINENO: result: $ac_res" >&5
20658 echo "${ECHO_T}$ac_res" >&6; }
20659 else
20660   # Is the header compilable?
20661 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20662 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20663 cat >conftest.$ac_ext <<_ACEOF
20664 /* confdefs.h.  */
20665 _ACEOF
20666 cat confdefs.h >>conftest.$ac_ext
20667 cat >>conftest.$ac_ext <<_ACEOF
20668 /* end confdefs.h.  */
20669 $ac_includes_default
20670 #include <$ac_header>
20671 _ACEOF
20672 rm -f conftest.$ac_objext
20673 if { (ac_try="$ac_compile"
20674 case "(($ac_try" in
20675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20676   *) ac_try_echo=$ac_try;;
20677 esac
20678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20679   (eval "$ac_compile") 2>conftest.er1
20680   ac_status=$?
20681   grep -v '^ *+' conftest.er1 >conftest.err
20682   rm -f conftest.er1
20683   cat conftest.err >&5
20684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20685   (exit $ac_status); } && {
20686          test -z "$ac_c_werror_flag" ||
20687          test ! -s conftest.err
20688        } && test -s conftest.$ac_objext; then
20689   ac_header_compiler=yes
20690 else
20691   echo "$as_me: failed program was:" >&5
20692 sed 's/^/| /' conftest.$ac_ext >&5
20693
20694         ac_header_compiler=no
20695 fi
20696
20697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20698 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20699 echo "${ECHO_T}$ac_header_compiler" >&6; }
20700
20701 # Is the header present?
20702 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20703 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20704 cat >conftest.$ac_ext <<_ACEOF
20705 /* confdefs.h.  */
20706 _ACEOF
20707 cat confdefs.h >>conftest.$ac_ext
20708 cat >>conftest.$ac_ext <<_ACEOF
20709 /* end confdefs.h.  */
20710 #include <$ac_header>
20711 _ACEOF
20712 if { (ac_try="$ac_cpp conftest.$ac_ext"
20713 case "(($ac_try" in
20714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20715   *) ac_try_echo=$ac_try;;
20716 esac
20717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20718   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20719   ac_status=$?
20720   grep -v '^ *+' conftest.er1 >conftest.err
20721   rm -f conftest.er1
20722   cat conftest.err >&5
20723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20724   (exit $ac_status); } >/dev/null && {
20725          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20726          test ! -s conftest.err
20727        }; then
20728   ac_header_preproc=yes
20729 else
20730   echo "$as_me: failed program was:" >&5
20731 sed 's/^/| /' conftest.$ac_ext >&5
20732
20733   ac_header_preproc=no
20734 fi
20735
20736 rm -f conftest.err conftest.$ac_ext
20737 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20738 echo "${ECHO_T}$ac_header_preproc" >&6; }
20739
20740 # So?  What about this header?
20741 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20742   yes:no: )
20743     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20744 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20745     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20746 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20747     ac_header_preproc=yes
20748     ;;
20749   no:yes:* )
20750     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20751 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20752     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20753 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20754     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20755 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20756     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20757 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20758     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20759 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20760     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20761 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20762
20763     ;;
20764 esac
20765 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20766 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20767 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20768   echo $ECHO_N "(cached) $ECHO_C" >&6
20769 else
20770   eval "$as_ac_Header=\$ac_header_preproc"
20771 fi
20772 ac_res=`eval echo '${'$as_ac_Header'}'`
20773                { echo "$as_me:$LINENO: result: $ac_res" >&5
20774 echo "${ECHO_T}$ac_res" >&6; }
20775
20776 fi
20777 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20778   cat >>confdefs.h <<_ACEOF
20779 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20780 _ACEOF
20781
20782 else
20783   { { echo "$as_me:$LINENO: error: required header file missing" >&5
20784 echo "$as_me: error: required header file missing" >&2;}
20785    { (exit 1); exit 1; }; }
20786 fi
20787
20788 done
20789
20790
20791
20792
20793 for ac_header in sys/stat.h sys/wait.h
20794 do
20795 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20796 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20797   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20798 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20799 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20800   echo $ECHO_N "(cached) $ECHO_C" >&6
20801 fi
20802 ac_res=`eval echo '${'$as_ac_Header'}'`
20803                { echo "$as_me:$LINENO: result: $ac_res" >&5
20804 echo "${ECHO_T}$ac_res" >&6; }
20805 else
20806   # Is the header compilable?
20807 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20808 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20809 cat >conftest.$ac_ext <<_ACEOF
20810 /* confdefs.h.  */
20811 _ACEOF
20812 cat confdefs.h >>conftest.$ac_ext
20813 cat >>conftest.$ac_ext <<_ACEOF
20814 /* end confdefs.h.  */
20815 $ac_includes_default
20816 #include <$ac_header>
20817 _ACEOF
20818 rm -f conftest.$ac_objext
20819 if { (ac_try="$ac_compile"
20820 case "(($ac_try" in
20821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20822   *) ac_try_echo=$ac_try;;
20823 esac
20824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20825   (eval "$ac_compile") 2>conftest.er1
20826   ac_status=$?
20827   grep -v '^ *+' conftest.er1 >conftest.err
20828   rm -f conftest.er1
20829   cat conftest.err >&5
20830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20831   (exit $ac_status); } && {
20832          test -z "$ac_c_werror_flag" ||
20833          test ! -s conftest.err
20834        } && test -s conftest.$ac_objext; then
20835   ac_header_compiler=yes
20836 else
20837   echo "$as_me: failed program was:" >&5
20838 sed 's/^/| /' conftest.$ac_ext >&5
20839
20840         ac_header_compiler=no
20841 fi
20842
20843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20844 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20845 echo "${ECHO_T}$ac_header_compiler" >&6; }
20846
20847 # Is the header present?
20848 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20849 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20850 cat >conftest.$ac_ext <<_ACEOF
20851 /* confdefs.h.  */
20852 _ACEOF
20853 cat confdefs.h >>conftest.$ac_ext
20854 cat >>conftest.$ac_ext <<_ACEOF
20855 /* end confdefs.h.  */
20856 #include <$ac_header>
20857 _ACEOF
20858 if { (ac_try="$ac_cpp conftest.$ac_ext"
20859 case "(($ac_try" in
20860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20861   *) ac_try_echo=$ac_try;;
20862 esac
20863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20864   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20865   ac_status=$?
20866   grep -v '^ *+' conftest.er1 >conftest.err
20867   rm -f conftest.er1
20868   cat conftest.err >&5
20869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20870   (exit $ac_status); } >/dev/null && {
20871          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20872          test ! -s conftest.err
20873        }; then
20874   ac_header_preproc=yes
20875 else
20876   echo "$as_me: failed program was:" >&5
20877 sed 's/^/| /' conftest.$ac_ext >&5
20878
20879   ac_header_preproc=no
20880 fi
20881
20882 rm -f conftest.err conftest.$ac_ext
20883 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20884 echo "${ECHO_T}$ac_header_preproc" >&6; }
20885
20886 # So?  What about this header?
20887 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20888   yes:no: )
20889     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20890 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20891     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20892 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20893     ac_header_preproc=yes
20894     ;;
20895   no:yes:* )
20896     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20897 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20898     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20899 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20900     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20901 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20902     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20903 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20904     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20905 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20906     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20907 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20908
20909     ;;
20910 esac
20911 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20912 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20913 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20914   echo $ECHO_N "(cached) $ECHO_C" >&6
20915 else
20916   eval "$as_ac_Header=\$ac_header_preproc"
20917 fi
20918 ac_res=`eval echo '${'$as_ac_Header'}'`
20919                { echo "$as_me:$LINENO: result: $ac_res" >&5
20920 echo "${ECHO_T}$ac_res" >&6; }
20921
20922 fi
20923 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20924   cat >>confdefs.h <<_ACEOF
20925 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20926 _ACEOF
20927
20928 fi
20929
20930 done
20931
20932
20933
20934
20935 for ac_func in access atoi
20936 do
20937 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20938 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20939 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20940 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20941   echo $ECHO_N "(cached) $ECHO_C" >&6
20942 else
20943   cat >conftest.$ac_ext <<_ACEOF
20944 /* confdefs.h.  */
20945 _ACEOF
20946 cat confdefs.h >>conftest.$ac_ext
20947 cat >>conftest.$ac_ext <<_ACEOF
20948 /* end confdefs.h.  */
20949 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20950    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20951 #define $ac_func innocuous_$ac_func
20952
20953 /* System header to define __stub macros and hopefully few prototypes,
20954     which can conflict with char $ac_func (); below.
20955     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20956     <limits.h> exists even on freestanding compilers.  */
20957
20958 #ifdef __STDC__
20959 # include <limits.h>
20960 #else
20961 # include <assert.h>
20962 #endif
20963
20964 #undef $ac_func
20965
20966 /* Override any GCC internal prototype to avoid an error.
20967    Use char because int might match the return type of a GCC
20968    builtin and then its argument prototype would still apply.  */
20969 #ifdef __cplusplus
20970 extern "C"
20971 #endif
20972 char $ac_func ();
20973 /* The GNU C library defines this for functions which it implements
20974     to always fail with ENOSYS.  Some functions are actually named
20975     something starting with __ and the normal name is an alias.  */
20976 #if defined __stub_$ac_func || defined __stub___$ac_func
20977 choke me
20978 #endif
20979
20980 int
20981 main ()
20982 {
20983 return $ac_func ();
20984   ;
20985   return 0;
20986 }
20987 _ACEOF
20988 rm -f conftest.$ac_objext conftest$ac_exeext
20989 if { (ac_try="$ac_link"
20990 case "(($ac_try" in
20991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20992   *) ac_try_echo=$ac_try;;
20993 esac
20994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20995   (eval "$ac_link") 2>conftest.er1
20996   ac_status=$?
20997   grep -v '^ *+' conftest.er1 >conftest.err
20998   rm -f conftest.er1
20999   cat conftest.err >&5
21000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21001   (exit $ac_status); } && {
21002          test -z "$ac_c_werror_flag" ||
21003          test ! -s conftest.err
21004        } && test -s conftest$ac_exeext &&
21005        $as_test_x conftest$ac_exeext; then
21006   eval "$as_ac_var=yes"
21007 else
21008   echo "$as_me: failed program was:" >&5
21009 sed 's/^/| /' conftest.$ac_ext >&5
21010
21011         eval "$as_ac_var=no"
21012 fi
21013
21014 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21015       conftest$ac_exeext conftest.$ac_ext
21016 fi
21017 ac_res=`eval echo '${'$as_ac_var'}'`
21018                { echo "$as_me:$LINENO: result: $ac_res" >&5
21019 echo "${ECHO_T}$ac_res" >&6; }
21020 if test `eval echo '${'$as_ac_var'}'` = yes; then
21021   cat >>confdefs.h <<_ACEOF
21022 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21023 _ACEOF
21024
21025 else
21026   { { echo "$as_me:$LINENO: error: required standard library function missing" >&5
21027 echo "$as_me: error: required standard library function missing" >&2;}
21028    { (exit 1); exit 1; }; }
21029 fi
21030 done
21031
21032
21033
21034
21035
21036
21037
21038 for ac_func in snprintf gettimeofday ftime mkstemp mktemp
21039 do
21040 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21041 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21042 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21043 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21044   echo $ECHO_N "(cached) $ECHO_C" >&6
21045 else
21046   cat >conftest.$ac_ext <<_ACEOF
21047 /* confdefs.h.  */
21048 _ACEOF
21049 cat confdefs.h >>conftest.$ac_ext
21050 cat >>conftest.$ac_ext <<_ACEOF
21051 /* end confdefs.h.  */
21052 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21053    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21054 #define $ac_func innocuous_$ac_func
21055
21056 /* System header to define __stub macros and hopefully few prototypes,
21057     which can conflict with char $ac_func (); below.
21058     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21059     <limits.h> exists even on freestanding compilers.  */
21060
21061 #ifdef __STDC__
21062 # include <limits.h>
21063 #else
21064 # include <assert.h>
21065 #endif
21066
21067 #undef $ac_func
21068
21069 /* Override any GCC internal prototype to avoid an error.
21070    Use char because int might match the return type of a GCC
21071    builtin and then its argument prototype would still apply.  */
21072 #ifdef __cplusplus
21073 extern "C"
21074 #endif
21075 char $ac_func ();
21076 /* The GNU C library defines this for functions which it implements
21077     to always fail with ENOSYS.  Some functions are actually named
21078     something starting with __ and the normal name is an alias.  */
21079 #if defined __stub_$ac_func || defined __stub___$ac_func
21080 choke me
21081 #endif
21082
21083 int
21084 main ()
21085 {
21086 return $ac_func ();
21087   ;
21088   return 0;
21089 }
21090 _ACEOF
21091 rm -f conftest.$ac_objext conftest$ac_exeext
21092 if { (ac_try="$ac_link"
21093 case "(($ac_try" in
21094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21095   *) ac_try_echo=$ac_try;;
21096 esac
21097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21098   (eval "$ac_link") 2>conftest.er1
21099   ac_status=$?
21100   grep -v '^ *+' conftest.er1 >conftest.err
21101   rm -f conftest.er1
21102   cat conftest.err >&5
21103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21104   (exit $ac_status); } && {
21105          test -z "$ac_c_werror_flag" ||
21106          test ! -s conftest.err
21107        } && test -s conftest$ac_exeext &&
21108        $as_test_x conftest$ac_exeext; then
21109   eval "$as_ac_var=yes"
21110 else
21111   echo "$as_me: failed program was:" >&5
21112 sed 's/^/| /' conftest.$ac_ext >&5
21113
21114         eval "$as_ac_var=no"
21115 fi
21116
21117 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21118       conftest$ac_exeext conftest.$ac_ext
21119 fi
21120 ac_res=`eval echo '${'$as_ac_var'}'`
21121                { echo "$as_me:$LINENO: result: $ac_res" >&5
21122 echo "${ECHO_T}$ac_res" >&6; }
21123 if test `eval echo '${'$as_ac_var'}'` = yes; then
21124   cat >>confdefs.h <<_ACEOF
21125 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21126 _ACEOF
21127
21128 fi
21129 done
21130
21131
21132
21133
21134 { echo "$as_me:$LINENO: checking for st_mtim in struct stat" >&5
21135 echo $ECHO_N "checking for st_mtim in struct stat... $ECHO_C" >&6; }
21136 if test "${ac_cv_struct_st_mtim+set}" = set; then
21137   echo $ECHO_N "(cached) $ECHO_C" >&6
21138 else
21139   cat >conftest.$ac_ext <<_ACEOF
21140 /* confdefs.h.  */
21141 _ACEOF
21142 cat confdefs.h >>conftest.$ac_ext
21143 cat >>conftest.$ac_ext <<_ACEOF
21144 /* end confdefs.h.  */
21145 #include <sys/types.h>
21146 #include <sys/stat.h>
21147 int
21148 main ()
21149 {
21150 struct stat s; s.st_mtim;
21151   ;
21152   return 0;
21153 }
21154 _ACEOF
21155 rm -f conftest.$ac_objext
21156 if { (ac_try="$ac_compile"
21157 case "(($ac_try" in
21158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21159   *) ac_try_echo=$ac_try;;
21160 esac
21161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21162   (eval "$ac_compile") 2>conftest.er1
21163   ac_status=$?
21164   grep -v '^ *+' conftest.er1 >conftest.err
21165   rm -f conftest.er1
21166   cat conftest.err >&5
21167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21168   (exit $ac_status); } && {
21169          test -z "$ac_c_werror_flag" ||
21170          test ! -s conftest.err
21171        } && test -s conftest.$ac_objext; then
21172   ac_cv_struct_st_mtim=yes
21173 else
21174   echo "$as_me: failed program was:" >&5
21175 sed 's/^/| /' conftest.$ac_ext >&5
21176
21177         ac_cv_struct_st_mtim=no
21178 fi
21179
21180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21181 fi
21182 { echo "$as_me:$LINENO: result: $ac_cv_struct_st_mtim" >&5
21183 echo "${ECHO_T}$ac_cv_struct_st_mtim" >&6; }
21184 if test $ac_cv_struct_st_mtim = yes; then
21185
21186 cat >>confdefs.h <<\_ACEOF
21187 #define HAVE_ST_MTIM 1
21188 _ACEOF
21189
21190 fi
21191
21192
21193
21194 ac_config_files="$ac_config_files Makefile"
21195
21196 cat >confcache <<\_ACEOF
21197 # This file is a shell script that caches the results of configure
21198 # tests run on this system so they can be shared between configure
21199 # scripts and configure runs, see configure's option --config-cache.
21200 # It is not useful on other systems.  If it contains results you don't
21201 # want to keep, you may remove or edit it.
21202 #
21203 # config.status only pays attention to the cache file if you give it
21204 # the --recheck option to rerun configure.
21205 #
21206 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21207 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21208 # following values.
21209
21210 _ACEOF
21211
21212 # The following way of writing the cache mishandles newlines in values,
21213 # but we know of no workaround that is simple, portable, and efficient.
21214 # So, we kill variables containing newlines.
21215 # Ultrix sh set writes to stderr and can't be redirected directly,
21216 # and sets the high bit in the cache file unless we assign to the vars.
21217 (
21218   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21219     eval ac_val=\$$ac_var
21220     case $ac_val in #(
21221     *${as_nl}*)
21222       case $ac_var in #(
21223       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21224 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21225       esac
21226       case $ac_var in #(
21227       _ | IFS | as_nl) ;; #(
21228       *) $as_unset $ac_var ;;
21229       esac ;;
21230     esac
21231   done
21232
21233   (set) 2>&1 |
21234     case $as_nl`(ac_space=' '; set) 2>&1` in #(
21235     *${as_nl}ac_space=\ *)
21236       # `set' does not quote correctly, so add quotes (double-quote
21237       # substitution turns \\\\ into \\, and sed turns \\ into \).
21238       sed -n \
21239         "s/'/'\\\\''/g;
21240           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21241       ;; #(
21242     *)
21243       # `set' quotes correctly as required by POSIX, so do not add quotes.
21244       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21245       ;;
21246     esac |
21247     sort
21248 ) |
21249   sed '
21250      /^ac_cv_env_/b end
21251      t clear
21252      :clear
21253      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21254      t end
21255      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21256      :end' >>confcache
21257 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21258   if test -w "$cache_file"; then
21259     test "x$cache_file" != "x/dev/null" &&
21260       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21261 echo "$as_me: updating cache $cache_file" >&6;}
21262     cat confcache >$cache_file
21263   else
21264     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21265 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21266   fi
21267 fi
21268 rm -f confcache
21269
21270 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21271 # Let make expand exec_prefix.
21272 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21273
21274 DEFS=-DHAVE_CONFIG_H
21275
21276 ac_libobjs=
21277 ac_ltlibobjs=
21278 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21279   # 1. Remove the extension, and $U if already installed.
21280   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21281   ac_i=`echo "$ac_i" | sed "$ac_script"`
21282   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21283   #    will be set to the directory where LIBOBJS objects are built.
21284   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21285   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21286 done
21287 LIBOBJS=$ac_libobjs
21288
21289 LTLIBOBJS=$ac_ltlibobjs
21290
21291
21292 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21293   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21294 Usually this means the macro was only invoked conditionally." >&5
21295 echo "$as_me: error: conditional \"AMDEP\" was never defined.
21296 Usually this means the macro was only invoked conditionally." >&2;}
21297    { (exit 1); exit 1; }; }
21298 fi
21299 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21300   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21301 Usually this means the macro was only invoked conditionally." >&5
21302 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21303 Usually this means the macro was only invoked conditionally." >&2;}
21304    { (exit 1); exit 1; }; }
21305 fi
21306 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21307   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
21308 Usually this means the macro was only invoked conditionally." >&5
21309 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
21310 Usually this means the macro was only invoked conditionally." >&2;}
21311    { (exit 1); exit 1; }; }
21312 fi
21313 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21314   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21315 Usually this means the macro was only invoked conditionally." >&5
21316 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21317 Usually this means the macro was only invoked conditionally." >&2;}
21318    { (exit 1); exit 1; }; }
21319 fi
21320
21321 : ${CONFIG_STATUS=./config.status}
21322 ac_clean_files_save=$ac_clean_files
21323 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21324 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21325 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21326 cat >$CONFIG_STATUS <<_ACEOF
21327 #! $SHELL
21328 # Generated by $as_me.
21329 # Run this file to recreate the current configuration.
21330 # Compiler output produced by configure, useful for debugging
21331 # configure, is in config.log if it exists.
21332
21333 debug=false
21334 ac_cs_recheck=false
21335 ac_cs_silent=false
21336 SHELL=\${CONFIG_SHELL-$SHELL}
21337 _ACEOF
21338
21339 cat >>$CONFIG_STATUS <<\_ACEOF
21340 ## --------------------- ##
21341 ## M4sh Initialization.  ##
21342 ## --------------------- ##
21343
21344 # Be more Bourne compatible
21345 DUALCASE=1; export DUALCASE # for MKS sh
21346 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21347   emulate sh
21348   NULLCMD=:
21349   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21350   # is contrary to our usage.  Disable this feature.
21351   alias -g '${1+"$@"}'='"$@"'
21352   setopt NO_GLOB_SUBST
21353 else
21354   case `(set -o) 2>/dev/null` in
21355   *posix*) set -o posix ;;
21356 esac
21357
21358 fi
21359
21360
21361
21362
21363 # PATH needs CR
21364 # Avoid depending upon Character Ranges.
21365 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21366 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21367 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21368 as_cr_digits='0123456789'
21369 as_cr_alnum=$as_cr_Letters$as_cr_digits
21370
21371 # The user is always right.
21372 if test "${PATH_SEPARATOR+set}" != set; then
21373   echo "#! /bin/sh" >conf$$.sh
21374   echo  "exit 0"   >>conf$$.sh
21375   chmod +x conf$$.sh
21376   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21377     PATH_SEPARATOR=';'
21378   else
21379     PATH_SEPARATOR=:
21380   fi
21381   rm -f conf$$.sh
21382 fi
21383
21384 # Support unset when possible.
21385 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21386   as_unset=unset
21387 else
21388   as_unset=false
21389 fi
21390
21391
21392 # IFS
21393 # We need space, tab and new line, in precisely that order.  Quoting is
21394 # there to prevent editors from complaining about space-tab.
21395 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21396 # splitting by setting IFS to empty value.)
21397 as_nl='
21398 '
21399 IFS=" ""        $as_nl"
21400
21401 # Find who we are.  Look in the path if we contain no directory separator.
21402 case $0 in
21403   *[\\/]* ) as_myself=$0 ;;
21404   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21405 for as_dir in $PATH
21406 do
21407   IFS=$as_save_IFS
21408   test -z "$as_dir" && as_dir=.
21409   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21410 done
21411 IFS=$as_save_IFS
21412
21413      ;;
21414 esac
21415 # We did not find ourselves, most probably we were run as `sh COMMAND'
21416 # in which case we are not to be found in the path.
21417 if test "x$as_myself" = x; then
21418   as_myself=$0
21419 fi
21420 if test ! -f "$as_myself"; then
21421   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21422   { (exit 1); exit 1; }
21423 fi
21424
21425 # Work around bugs in pre-3.0 UWIN ksh.
21426 for as_var in ENV MAIL MAILPATH
21427 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21428 done
21429 PS1='$ '
21430 PS2='> '
21431 PS4='+ '
21432
21433 # NLS nuisances.
21434 for as_var in \
21435   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21436   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21437   LC_TELEPHONE LC_TIME
21438 do
21439   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21440     eval $as_var=C; export $as_var
21441   else
21442     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21443   fi
21444 done
21445
21446 # Required to use basename.
21447 if expr a : '\(a\)' >/dev/null 2>&1 &&
21448    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21449   as_expr=expr
21450 else
21451   as_expr=false
21452 fi
21453
21454 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21455   as_basename=basename
21456 else
21457   as_basename=false
21458 fi
21459
21460
21461 # Name of the executable.
21462 as_me=`$as_basename -- "$0" ||
21463 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21464          X"$0" : 'X\(//\)$' \| \
21465          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21466 echo X/"$0" |
21467     sed '/^.*\/\([^/][^/]*\)\/*$/{
21468             s//\1/
21469             q
21470           }
21471           /^X\/\(\/\/\)$/{
21472             s//\1/
21473             q
21474           }
21475           /^X\/\(\/\).*/{
21476             s//\1/
21477             q
21478           }
21479           s/.*/./; q'`
21480
21481 # CDPATH.
21482 $as_unset CDPATH
21483
21484
21485
21486   as_lineno_1=$LINENO
21487   as_lineno_2=$LINENO
21488   test "x$as_lineno_1" != "x$as_lineno_2" &&
21489   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21490
21491   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21492   # uniformly replaced by the line number.  The first 'sed' inserts a
21493   # line-number line after each line using $LINENO; the second 'sed'
21494   # does the real work.  The second script uses 'N' to pair each
21495   # line-number line with the line containing $LINENO, and appends
21496   # trailing '-' during substitution so that $LINENO is not a special
21497   # case at line end.
21498   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21499   # scripts with optimization help from Paolo Bonzini.  Blame Lee
21500   # E. McMahon (1931-1989) for sed's syntax.  :-)
21501   sed -n '
21502     p
21503     /[$]LINENO/=
21504   ' <$as_myself |
21505     sed '
21506       s/[$]LINENO.*/&-/
21507       t lineno
21508       b
21509       :lineno
21510       N
21511       :loop
21512       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21513       t loop
21514       s/-\n.*//
21515     ' >$as_me.lineno &&
21516   chmod +x "$as_me.lineno" ||
21517     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21518    { (exit 1); exit 1; }; }
21519
21520   # Don't try to exec as it changes $[0], causing all sort of problems
21521   # (the dirname of $[0] is not the place where we might find the
21522   # original and so on.  Autoconf is especially sensitive to this).
21523   . "./$as_me.lineno"
21524   # Exit status is that of the last command.
21525   exit
21526 }
21527
21528
21529 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21530   as_dirname=dirname
21531 else
21532   as_dirname=false
21533 fi
21534
21535 ECHO_C= ECHO_N= ECHO_T=
21536 case `echo -n x` in
21537 -n*)
21538   case `echo 'x\c'` in
21539   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
21540   *)   ECHO_C='\c';;
21541   esac;;
21542 *)
21543   ECHO_N='-n';;
21544 esac
21545
21546 if expr a : '\(a\)' >/dev/null 2>&1 &&
21547    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21548   as_expr=expr
21549 else
21550   as_expr=false
21551 fi
21552
21553 rm -f conf$$ conf$$.exe conf$$.file
21554 if test -d conf$$.dir; then
21555   rm -f conf$$.dir/conf$$.file
21556 else
21557   rm -f conf$$.dir
21558   mkdir conf$$.dir
21559 fi
21560 echo >conf$$.file
21561 if ln -s conf$$.file conf$$ 2>/dev/null; then
21562   as_ln_s='ln -s'
21563   # ... but there are two gotchas:
21564   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21565   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21566   # In both cases, we have to default to `cp -p'.
21567   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21568     as_ln_s='cp -p'
21569 elif ln conf$$.file conf$$ 2>/dev/null; then
21570   as_ln_s=ln
21571 else
21572   as_ln_s='cp -p'
21573 fi
21574 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21575 rmdir conf$$.dir 2>/dev/null
21576
21577 if mkdir -p . 2>/dev/null; then
21578   as_mkdir_p=:
21579 else
21580   test -d ./-p && rmdir ./-p
21581   as_mkdir_p=false
21582 fi
21583
21584 if test -x / >/dev/null 2>&1; then
21585   as_test_x='test -x'
21586 else
21587   if ls -dL / >/dev/null 2>&1; then
21588     as_ls_L_option=L
21589   else
21590     as_ls_L_option=
21591   fi
21592   as_test_x='
21593     eval sh -c '\''
21594       if test -d "$1"; then
21595         test -d "$1/.";
21596       else
21597         case $1 in
21598         -*)set "./$1";;
21599         esac;
21600         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
21601         ???[sx]*):;;*)false;;esac;fi
21602     '\'' sh
21603   '
21604 fi
21605 as_executable_p=$as_test_x
21606
21607 # Sed expression to map a string onto a valid CPP name.
21608 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21609
21610 # Sed expression to map a string onto a valid variable name.
21611 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21612
21613
21614 exec 6>&1
21615
21616 # Save the log message, to keep $[0] and so on meaningful, and to
21617 # report actual input values of CONFIG_FILES etc. instead of their
21618 # values after options handling.
21619 ac_log="
21620 This file was extended by $as_me, which was
21621 generated by GNU Autoconf 2.61.  Invocation command line was
21622
21623   CONFIG_FILES    = $CONFIG_FILES
21624   CONFIG_HEADERS  = $CONFIG_HEADERS
21625   CONFIG_LINKS    = $CONFIG_LINKS
21626   CONFIG_COMMANDS = $CONFIG_COMMANDS
21627   $ $0 $@
21628
21629 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21630 "
21631
21632 _ACEOF
21633
21634 cat >>$CONFIG_STATUS <<_ACEOF
21635 # Files that config.status was made for.
21636 config_files="$ac_config_files"
21637 config_headers="$ac_config_headers"
21638 config_commands="$ac_config_commands"
21639
21640 _ACEOF
21641
21642 cat >>$CONFIG_STATUS <<\_ACEOF
21643 ac_cs_usage="\
21644 \`$as_me' instantiates files from templates according to the
21645 current configuration.
21646
21647 Usage: $0 [OPTIONS] [FILE]...
21648
21649   -h, --help       print this help, then exit
21650   -V, --version    print version number and configuration settings, then exit
21651   -q, --quiet      do not print progress messages
21652   -d, --debug      don't remove temporary files
21653       --recheck    update $as_me by reconfiguring in the same conditions
21654   --file=FILE[:TEMPLATE]
21655                    instantiate the configuration file FILE
21656   --header=FILE[:TEMPLATE]
21657                    instantiate the configuration header FILE
21658
21659 Configuration files:
21660 $config_files
21661
21662 Configuration headers:
21663 $config_headers
21664
21665 Configuration commands:
21666 $config_commands
21667
21668 Report bugs to <bug-autoconf@gnu.org>."
21669
21670 _ACEOF
21671 cat >>$CONFIG_STATUS <<_ACEOF
21672 ac_cs_version="\\
21673 config.status
21674 configured by $0, generated by GNU Autoconf 2.61,
21675   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21676
21677 Copyright (C) 2006 Free Software Foundation, Inc.
21678 This config.status script is free software; the Free Software Foundation
21679 gives unlimited permission to copy, distribute and modify it."
21680
21681 ac_pwd='$ac_pwd'
21682 srcdir='$srcdir'
21683 INSTALL='$INSTALL'
21684 MKDIR_P='$MKDIR_P'
21685 _ACEOF
21686
21687 cat >>$CONFIG_STATUS <<\_ACEOF
21688 # If no file are specified by the user, then we need to provide default
21689 # value.  By we need to know if files were specified by the user.
21690 ac_need_defaults=:
21691 while test $# != 0
21692 do
21693   case $1 in
21694   --*=*)
21695     ac_option=`expr "X$1" : 'X\([^=]*\)='`
21696     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21697     ac_shift=:
21698     ;;
21699   *)
21700     ac_option=$1
21701     ac_optarg=$2
21702     ac_shift=shift
21703     ;;
21704   esac
21705
21706   case $ac_option in
21707   # Handling of the options.
21708   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21709     ac_cs_recheck=: ;;
21710   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21711     echo "$ac_cs_version"; exit ;;
21712   --debug | --debu | --deb | --de | --d | -d )
21713     debug=: ;;
21714   --file | --fil | --fi | --f )
21715     $ac_shift
21716     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21717     ac_need_defaults=false;;
21718   --header | --heade | --head | --hea )
21719     $ac_shift
21720     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21721     ac_need_defaults=false;;
21722   --he | --h)
21723     # Conflict between --help and --header
21724     { echo "$as_me: error: ambiguous option: $1
21725 Try \`$0 --help' for more information." >&2
21726    { (exit 1); exit 1; }; };;
21727   --help | --hel | -h )
21728     echo "$ac_cs_usage"; exit ;;
21729   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21730   | -silent | --silent | --silen | --sile | --sil | --si | --s)
21731     ac_cs_silent=: ;;
21732
21733   # This is an error.
21734   -*) { echo "$as_me: error: unrecognized option: $1
21735 Try \`$0 --help' for more information." >&2
21736    { (exit 1); exit 1; }; } ;;
21737
21738   *) ac_config_targets="$ac_config_targets $1"
21739      ac_need_defaults=false ;;
21740
21741   esac
21742   shift
21743 done
21744
21745 ac_configure_extra_args=
21746
21747 if $ac_cs_silent; then
21748   exec 6>/dev/null
21749   ac_configure_extra_args="$ac_configure_extra_args --silent"
21750 fi
21751
21752 _ACEOF
21753 cat >>$CONFIG_STATUS <<_ACEOF
21754 if \$ac_cs_recheck; then
21755   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21756   CONFIG_SHELL=$SHELL
21757   export CONFIG_SHELL
21758   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21759 fi
21760
21761 _ACEOF
21762 cat >>$CONFIG_STATUS <<\_ACEOF
21763 exec 5>>config.log
21764 {
21765   echo
21766   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21767 ## Running $as_me. ##
21768 _ASBOX
21769   echo "$ac_log"
21770 } >&5
21771
21772 _ACEOF
21773 cat >>$CONFIG_STATUS <<_ACEOF
21774 #
21775 # INIT-COMMANDS
21776 #
21777 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21778
21779 _ACEOF
21780
21781 cat >>$CONFIG_STATUS <<\_ACEOF
21782
21783 # Handling of arguments.
21784 for ac_config_target in $ac_config_targets
21785 do
21786   case $ac_config_target in
21787     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21788     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21789     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21790
21791   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21792 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21793    { (exit 1); exit 1; }; };;
21794   esac
21795 done
21796
21797
21798 # If the user did not use the arguments to specify the items to instantiate,
21799 # then the envvar interface is used.  Set only those that are not.
21800 # We use the long form for the default assignment because of an extremely
21801 # bizarre bug on SunOS 4.1.3.
21802 if $ac_need_defaults; then
21803   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21804   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21805   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21806 fi
21807
21808 # Have a temporary directory for convenience.  Make it in the build tree
21809 # simply because there is no reason against having it here, and in addition,
21810 # creating and moving files from /tmp can sometimes cause problems.
21811 # Hook for its removal unless debugging.
21812 # Note that there is a small window in which the directory will not be cleaned:
21813 # after its creation but before its name has been assigned to `$tmp'.
21814 $debug ||
21815 {
21816   tmp=
21817   trap 'exit_status=$?
21818   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21819 ' 0
21820   trap '{ (exit 1); exit 1; }' 1 2 13 15
21821 }
21822 # Create a (secure) tmp directory for tmp files.
21823
21824 {
21825   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21826   test -n "$tmp" && test -d "$tmp"
21827 }  ||
21828 {
21829   tmp=./conf$$-$RANDOM
21830   (umask 077 && mkdir "$tmp")
21831 } ||
21832 {
21833    echo "$me: cannot create a temporary directory in ." >&2
21834    { (exit 1); exit 1; }
21835 }
21836
21837 #
21838 # Set up the sed scripts for CONFIG_FILES section.
21839 #
21840
21841 # No need to generate the scripts if there are no CONFIG_FILES.
21842 # This happens for instance when ./config.status config.h
21843 if test -n "$CONFIG_FILES"; then
21844
21845 _ACEOF
21846
21847
21848
21849 ac_delim='%!_!# '
21850 for ac_last_try in false false false false false :; do
21851   cat >conf$$subs.sed <<_ACEOF
21852 SHELL!$SHELL$ac_delim
21853 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21854 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21855 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21856 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21857 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21858 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21859 exec_prefix!$exec_prefix$ac_delim
21860 prefix!$prefix$ac_delim
21861 program_transform_name!$program_transform_name$ac_delim
21862 bindir!$bindir$ac_delim
21863 sbindir!$sbindir$ac_delim
21864 libexecdir!$libexecdir$ac_delim
21865 datarootdir!$datarootdir$ac_delim
21866 datadir!$datadir$ac_delim
21867 sysconfdir!$sysconfdir$ac_delim
21868 sharedstatedir!$sharedstatedir$ac_delim
21869 localstatedir!$localstatedir$ac_delim
21870 includedir!$includedir$ac_delim
21871 oldincludedir!$oldincludedir$ac_delim
21872 docdir!$docdir$ac_delim
21873 infodir!$infodir$ac_delim
21874 htmldir!$htmldir$ac_delim
21875 dvidir!$dvidir$ac_delim
21876 pdfdir!$pdfdir$ac_delim
21877 psdir!$psdir$ac_delim
21878 libdir!$libdir$ac_delim
21879 localedir!$localedir$ac_delim
21880 mandir!$mandir$ac_delim
21881 DEFS!$DEFS$ac_delim
21882 ECHO_C!$ECHO_C$ac_delim
21883 ECHO_N!$ECHO_N$ac_delim
21884 ECHO_T!$ECHO_T$ac_delim
21885 LIBS!$LIBS$ac_delim
21886 build_alias!$build_alias$ac_delim
21887 host_alias!$host_alias$ac_delim
21888 target_alias!$target_alias$ac_delim
21889 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21890 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21891 INSTALL_DATA!$INSTALL_DATA$ac_delim
21892 am__isrc!$am__isrc$ac_delim
21893 CYGPATH_W!$CYGPATH_W$ac_delim
21894 PACKAGE!$PACKAGE$ac_delim
21895 VERSION!$VERSION$ac_delim
21896 ACLOCAL!$ACLOCAL$ac_delim
21897 AUTOCONF!$AUTOCONF$ac_delim
21898 AUTOMAKE!$AUTOMAKE$ac_delim
21899 AUTOHEADER!$AUTOHEADER$ac_delim
21900 MAKEINFO!$MAKEINFO$ac_delim
21901 install_sh!$install_sh$ac_delim
21902 STRIP!$STRIP$ac_delim
21903 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
21904 mkdir_p!$mkdir_p$ac_delim
21905 AWK!$AWK$ac_delim
21906 SET_MAKE!$SET_MAKE$ac_delim
21907 am__leading_dot!$am__leading_dot$ac_delim
21908 AMTAR!$AMTAR$ac_delim
21909 am__tar!$am__tar$ac_delim
21910 am__untar!$am__untar$ac_delim
21911 build!$build$ac_delim
21912 build_cpu!$build_cpu$ac_delim
21913 build_vendor!$build_vendor$ac_delim
21914 build_os!$build_os$ac_delim
21915 host!$host$ac_delim
21916 host_cpu!$host_cpu$ac_delim
21917 host_vendor!$host_vendor$ac_delim
21918 host_os!$host_os$ac_delim
21919 CC!$CC$ac_delim
21920 CFLAGS!$CFLAGS$ac_delim
21921 LDFLAGS!$LDFLAGS$ac_delim
21922 CPPFLAGS!$CPPFLAGS$ac_delim
21923 ac_ct_CC!$ac_ct_CC$ac_delim
21924 EXEEXT!$EXEEXT$ac_delim
21925 OBJEXT!$OBJEXT$ac_delim
21926 DEPDIR!$DEPDIR$ac_delim
21927 am__include!$am__include$ac_delim
21928 am__quote!$am__quote$ac_delim
21929 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
21930 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
21931 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
21932 CCDEPMODE!$CCDEPMODE$ac_delim
21933 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
21934 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
21935 SED!$SED$ac_delim
21936 GREP!$GREP$ac_delim
21937 EGREP!$EGREP$ac_delim
21938 LN_S!$LN_S$ac_delim
21939 ECHO!$ECHO$ac_delim
21940 AR!$AR$ac_delim
21941 RANLIB!$RANLIB$ac_delim
21942 CPP!$CPP$ac_delim
21943 CXX!$CXX$ac_delim
21944 CXXFLAGS!$CXXFLAGS$ac_delim
21945 ac_ct_CXX!$ac_ct_CXX$ac_delim
21946 CXXDEPMODE!$CXXDEPMODE$ac_delim
21947 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
21948 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
21949 _ACEOF
21950
21951   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21952     break
21953   elif $ac_last_try; then
21954     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21955 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21956    { (exit 1); exit 1; }; }
21957   else
21958     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21959   fi
21960 done
21961
21962 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21963 if test -n "$ac_eof"; then
21964   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21965   ac_eof=`expr $ac_eof + 1`
21966 fi
21967
21968 cat >>$CONFIG_STATUS <<_ACEOF
21969 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21970 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21971 _ACEOF
21972 sed '
21973 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21974 s/^/s,@/; s/!/@,|#_!!_#|/
21975 :n
21976 t n
21977 s/'"$ac_delim"'$/,g/; t
21978 s/$/\\/; p
21979 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21980 ' >>$CONFIG_STATUS <conf$$subs.sed
21981 rm -f conf$$subs.sed
21982 cat >>$CONFIG_STATUS <<_ACEOF
21983 CEOF$ac_eof
21984 _ACEOF
21985
21986
21987 ac_delim='%!_!# '
21988 for ac_last_try in false false false false false :; do
21989   cat >conf$$subs.sed <<_ACEOF
21990 CXXCPP!$CXXCPP$ac_delim
21991 F77!$F77$ac_delim
21992 FFLAGS!$FFLAGS$ac_delim
21993 ac_ct_F77!$ac_ct_F77$ac_delim
21994 LIBTOOL!$LIBTOOL$ac_delim
21995 LIBOBJS!$LIBOBJS$ac_delim
21996 LTLIBOBJS!$LTLIBOBJS$ac_delim
21997 _ACEOF
21998
21999   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 7; then
22000     break
22001   elif $ac_last_try; then
22002     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22003 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22004    { (exit 1); exit 1; }; }
22005   else
22006     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22007   fi
22008 done
22009
22010 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22011 if test -n "$ac_eof"; then
22012   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22013   ac_eof=`expr $ac_eof + 1`
22014 fi
22015
22016 cat >>$CONFIG_STATUS <<_ACEOF
22017 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22018 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22019 _ACEOF
22020 sed '
22021 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22022 s/^/s,@/; s/!/@,|#_!!_#|/
22023 :n
22024 t n
22025 s/'"$ac_delim"'$/,g/; t
22026 s/$/\\/; p
22027 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22028 ' >>$CONFIG_STATUS <conf$$subs.sed
22029 rm -f conf$$subs.sed
22030 cat >>$CONFIG_STATUS <<_ACEOF
22031 :end
22032 s/|#_!!_#|//g
22033 CEOF$ac_eof
22034 _ACEOF
22035
22036
22037 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22038 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22039 # trailing colons and then remove the whole line if VPATH becomes empty
22040 # (actually we leave an empty line to preserve line numbers).
22041 if test "x$srcdir" = x.; then
22042   ac_vpsub='/^[  ]*VPATH[        ]*=/{
22043 s/:*\$(srcdir):*/:/
22044 s/:*\${srcdir}:*/:/
22045 s/:*@srcdir@:*/:/
22046 s/^\([^=]*=[     ]*\):*/\1/
22047 s/:*$//
22048 s/^[^=]*=[       ]*$//
22049 }'
22050 fi
22051
22052 cat >>$CONFIG_STATUS <<\_ACEOF
22053 fi # test -n "$CONFIG_FILES"
22054
22055
22056 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
22057 do
22058   case $ac_tag in
22059   :[FHLC]) ac_mode=$ac_tag; continue;;
22060   esac
22061   case $ac_mode$ac_tag in
22062   :[FHL]*:*);;
22063   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22064 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22065    { (exit 1); exit 1; }; };;
22066   :[FH]-) ac_tag=-:-;;
22067   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22068   esac
22069   ac_save_IFS=$IFS
22070   IFS=:
22071   set x $ac_tag
22072   IFS=$ac_save_IFS
22073   shift
22074   ac_file=$1
22075   shift
22076
22077   case $ac_mode in
22078   :L) ac_source=$1;;
22079   :[FH])
22080     ac_file_inputs=
22081     for ac_f
22082     do
22083       case $ac_f in
22084       -) ac_f="$tmp/stdin";;
22085       *) # Look for the file first in the build tree, then in the source tree
22086          # (if the path is not absolute).  The absolute path cannot be DOS-style,
22087          # because $ac_f cannot contain `:'.
22088          test -f "$ac_f" ||
22089            case $ac_f in
22090            [\\/$]*) false;;
22091            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22092            esac ||
22093            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22094 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22095    { (exit 1); exit 1; }; };;
22096       esac
22097       ac_file_inputs="$ac_file_inputs $ac_f"
22098     done
22099
22100     # Let's still pretend it is `configure' which instantiates (i.e., don't
22101     # use $as_me), people would be surprised to read:
22102     #    /* config.h.  Generated by config.status.  */
22103     configure_input="Generated from "`IFS=:
22104           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22105     if test x"$ac_file" != x-; then
22106       configure_input="$ac_file.  $configure_input"
22107       { echo "$as_me:$LINENO: creating $ac_file" >&5
22108 echo "$as_me: creating $ac_file" >&6;}
22109     fi
22110
22111     case $ac_tag in
22112     *:-:* | *:-) cat >"$tmp/stdin";;
22113     esac
22114     ;;
22115   esac
22116
22117   ac_dir=`$as_dirname -- "$ac_file" ||
22118 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22119          X"$ac_file" : 'X\(//\)[^/]' \| \
22120          X"$ac_file" : 'X\(//\)$' \| \
22121          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22122 echo X"$ac_file" |
22123     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22124             s//\1/
22125             q
22126           }
22127           /^X\(\/\/\)[^/].*/{
22128             s//\1/
22129             q
22130           }
22131           /^X\(\/\/\)$/{
22132             s//\1/
22133             q
22134           }
22135           /^X\(\/\).*/{
22136             s//\1/
22137             q
22138           }
22139           s/.*/./; q'`
22140   { as_dir="$ac_dir"
22141   case $as_dir in #(
22142   -*) as_dir=./$as_dir;;
22143   esac
22144   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22145     as_dirs=
22146     while :; do
22147       case $as_dir in #(
22148       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22149       *) as_qdir=$as_dir;;
22150       esac
22151       as_dirs="'$as_qdir' $as_dirs"
22152       as_dir=`$as_dirname -- "$as_dir" ||
22153 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22154          X"$as_dir" : 'X\(//\)[^/]' \| \
22155          X"$as_dir" : 'X\(//\)$' \| \
22156          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22157 echo X"$as_dir" |
22158     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22159             s//\1/
22160             q
22161           }
22162           /^X\(\/\/\)[^/].*/{
22163             s//\1/
22164             q
22165           }
22166           /^X\(\/\/\)$/{
22167             s//\1/
22168             q
22169           }
22170           /^X\(\/\).*/{
22171             s//\1/
22172             q
22173           }
22174           s/.*/./; q'`
22175       test -d "$as_dir" && break
22176     done
22177     test -z "$as_dirs" || eval "mkdir $as_dirs"
22178   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22179 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22180    { (exit 1); exit 1; }; }; }
22181   ac_builddir=.
22182
22183 case "$ac_dir" in
22184 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22185 *)
22186   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22187   # A ".." for each directory in $ac_dir_suffix.
22188   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22189   case $ac_top_builddir_sub in
22190   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22191   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22192   esac ;;
22193 esac
22194 ac_abs_top_builddir=$ac_pwd
22195 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22196 # for backward compatibility:
22197 ac_top_builddir=$ac_top_build_prefix
22198
22199 case $srcdir in
22200   .)  # We are building in place.
22201     ac_srcdir=.
22202     ac_top_srcdir=$ac_top_builddir_sub
22203     ac_abs_top_srcdir=$ac_pwd ;;
22204   [\\/]* | ?:[\\/]* )  # Absolute name.
22205     ac_srcdir=$srcdir$ac_dir_suffix;
22206     ac_top_srcdir=$srcdir
22207     ac_abs_top_srcdir=$srcdir ;;
22208   *) # Relative name.
22209     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22210     ac_top_srcdir=$ac_top_build_prefix$srcdir
22211     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22212 esac
22213 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22214
22215
22216   case $ac_mode in
22217   :F)
22218   #
22219   # CONFIG_FILE
22220   #
22221
22222   case $INSTALL in
22223   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22224   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22225   esac
22226   ac_MKDIR_P=$MKDIR_P
22227   case $MKDIR_P in
22228   [\\/$]* | ?:[\\/]* ) ;;
22229   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22230   esac
22231 _ACEOF
22232
22233 cat >>$CONFIG_STATUS <<\_ACEOF
22234 # If the template does not know about datarootdir, expand it.
22235 # FIXME: This hack should be removed a few years after 2.60.
22236 ac_datarootdir_hack=; ac_datarootdir_seen=
22237
22238 case `sed -n '/datarootdir/ {
22239   p
22240   q
22241 }
22242 /@datadir@/p
22243 /@docdir@/p
22244 /@infodir@/p
22245 /@localedir@/p
22246 /@mandir@/p
22247 ' $ac_file_inputs` in
22248 *datarootdir*) ac_datarootdir_seen=yes;;
22249 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22250   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22251 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22252 _ACEOF
22253 cat >>$CONFIG_STATUS <<_ACEOF
22254   ac_datarootdir_hack='
22255   s&@datadir@&$datadir&g
22256   s&@docdir@&$docdir&g
22257   s&@infodir@&$infodir&g
22258   s&@localedir@&$localedir&g
22259   s&@mandir@&$mandir&g
22260     s&\\\${datarootdir}&$datarootdir&g' ;;
22261 esac
22262 _ACEOF
22263
22264 # Neutralize VPATH when `$srcdir' = `.'.
22265 # Shell code in configure.ac might set extrasub.
22266 # FIXME: do we really want to maintain this feature?
22267 cat >>$CONFIG_STATUS <<_ACEOF
22268   sed "$ac_vpsub
22269 $extrasub
22270 _ACEOF
22271 cat >>$CONFIG_STATUS <<\_ACEOF
22272 :t
22273 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22274 s&@configure_input@&$configure_input&;t t
22275 s&@top_builddir@&$ac_top_builddir_sub&;t t
22276 s&@srcdir@&$ac_srcdir&;t t
22277 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22278 s&@top_srcdir@&$ac_top_srcdir&;t t
22279 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22280 s&@builddir@&$ac_builddir&;t t
22281 s&@abs_builddir@&$ac_abs_builddir&;t t
22282 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22283 s&@INSTALL@&$ac_INSTALL&;t t
22284 s&@MKDIR_P@&$ac_MKDIR_P&;t t
22285 $ac_datarootdir_hack
22286 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22287
22288 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22289   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22290   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22291   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22292 which seems to be undefined.  Please make sure it is defined." >&5
22293 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22294 which seems to be undefined.  Please make sure it is defined." >&2;}
22295
22296   rm -f "$tmp/stdin"
22297   case $ac_file in
22298   -) cat "$tmp/out"; rm -f "$tmp/out";;
22299   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22300   esac
22301  ;;
22302   :H)
22303   #
22304   # CONFIG_HEADER
22305   #
22306 _ACEOF
22307
22308 # Transform confdefs.h into a sed script `conftest.defines', that
22309 # substitutes the proper values into config.h.in to produce config.h.
22310 rm -f conftest.defines conftest.tail
22311 # First, append a space to every undef/define line, to ease matching.
22312 echo 's/$/ /' >conftest.defines
22313 # Then, protect against being on the right side of a sed subst, or in
22314 # an unquoted here document, in config.status.  If some macros were
22315 # called several times there might be several #defines for the same
22316 # symbol, which is useless.  But do not sort them, since the last
22317 # AC_DEFINE must be honored.
22318 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22319 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22320 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22321 # PARAMS is the parameter list in the macro definition--in most cases, it's
22322 # just an empty string.
22323 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
22324 ac_dB='\\)[      (].*,\\1define\\2'
22325 ac_dC=' '
22326 ac_dD=' ,'
22327
22328 uniq confdefs.h |
22329   sed -n '
22330         t rset
22331         :rset
22332         s/^[     ]*#[    ]*define[       ][      ]*//
22333         t ok
22334         d
22335         :ok
22336         s/[\\&,]/\\&/g
22337         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22338         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22339   ' >>conftest.defines
22340
22341 # Remove the space that was appended to ease matching.
22342 # Then replace #undef with comments.  This is necessary, for
22343 # example, in the case of _POSIX_SOURCE, which is predefined and required
22344 # on some systems where configure will not decide to define it.
22345 # (The regexp can be short, since the line contains either #define or #undef.)
22346 echo 's/ $//
22347 s,^[     #]*u.*,/* & */,' >>conftest.defines
22348
22349 # Break up conftest.defines:
22350 ac_max_sed_lines=50
22351
22352 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22353 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22354 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22355 # et cetera.
22356 ac_in='$ac_file_inputs'
22357 ac_out='"$tmp/out1"'
22358 ac_nxt='"$tmp/out2"'
22359
22360 while :
22361 do
22362   # Write a here document:
22363     cat >>$CONFIG_STATUS <<_ACEOF
22364     # First, check the format of the line:
22365     cat >"\$tmp/defines.sed" <<\\CEOF
22366 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
22367 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
22368 b
22369 :def
22370 _ACEOF
22371   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22372   echo 'CEOF
22373     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22374   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22375   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22376   grep . conftest.tail >/dev/null || break
22377   rm -f conftest.defines
22378   mv conftest.tail conftest.defines
22379 done
22380 rm -f conftest.defines conftest.tail
22381
22382 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22383 cat >>$CONFIG_STATUS <<\_ACEOF
22384   if test x"$ac_file" != x-; then
22385     echo "/* $configure_input  */" >"$tmp/config.h"
22386     cat "$ac_result" >>"$tmp/config.h"
22387     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22388       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22389 echo "$as_me: $ac_file is unchanged" >&6;}
22390     else
22391       rm -f $ac_file
22392       mv "$tmp/config.h" $ac_file
22393     fi
22394   else
22395     echo "/* $configure_input  */"
22396     cat "$ac_result"
22397   fi
22398   rm -f "$tmp/out12"
22399 # Compute $ac_file's index in $config_headers.
22400 _am_arg=$ac_file
22401 _am_stamp_count=1
22402 for _am_header in $config_headers :; do
22403   case $_am_header in
22404     $_am_arg | $_am_arg:* )
22405       break ;;
22406     * )
22407       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22408   esac
22409 done
22410 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22411 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22412          X"$_am_arg" : 'X\(//\)[^/]' \| \
22413          X"$_am_arg" : 'X\(//\)$' \| \
22414          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22415 echo X"$_am_arg" |
22416     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22417             s//\1/
22418             q
22419           }
22420           /^X\(\/\/\)[^/].*/{
22421             s//\1/
22422             q
22423           }
22424           /^X\(\/\/\)$/{
22425             s//\1/
22426             q
22427           }
22428           /^X\(\/\).*/{
22429             s//\1/
22430             q
22431           }
22432           s/.*/./; q'`/stamp-h$_am_stamp_count
22433  ;;
22434
22435   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22436 echo "$as_me: executing $ac_file commands" >&6;}
22437  ;;
22438   esac
22439
22440
22441   case $ac_file$ac_mode in
22442     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22443   # Strip MF so we end up with the name of the file.
22444   mf=`echo "$mf" | sed -e 's/:.*$//'`
22445   # Check whether this is an Automake generated Makefile or not.
22446   # We used to match only the files named `Makefile.in', but
22447   # some people rename them; so instead we look at the file content.
22448   # Grep'ing the first line is not enough: some people post-process
22449   # each Makefile.in and add a new line on top of each file to say so.
22450   # Grep'ing the whole file is not good either: AIX grep has a line
22451   # limit of 2048, but all sed's we know have understand at least 4000.
22452   if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
22453     dirpart=`$as_dirname -- "$mf" ||
22454 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22455          X"$mf" : 'X\(//\)[^/]' \| \
22456          X"$mf" : 'X\(//\)$' \| \
22457          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22458 echo X"$mf" |
22459     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22460             s//\1/
22461             q
22462           }
22463           /^X\(\/\/\)[^/].*/{
22464             s//\1/
22465             q
22466           }
22467           /^X\(\/\/\)$/{
22468             s//\1/
22469             q
22470           }
22471           /^X\(\/\).*/{
22472             s//\1/
22473             q
22474           }
22475           s/.*/./; q'`
22476   else
22477     continue
22478   fi
22479   # Extract the definition of DEPDIR, am__include, and am__quote
22480   # from the Makefile without running `make'.
22481   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22482   test -z "$DEPDIR" && continue
22483   am__include=`sed -n 's/^am__include = //p' < "$mf"`
22484   test -z "am__include" && continue
22485   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22486   # When using ansi2knr, U may be empty or an underscore; expand it
22487   U=`sed -n 's/^U = //p' < "$mf"`
22488   # Find all dependency output files, they are included files with
22489   # $(DEPDIR) in their names.  We invoke sed twice because it is the
22490   # simplest approach to changing $(DEPDIR) to its actual value in the
22491   # expansion.
22492   for file in `sed -n "
22493     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22494        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22495     # Make sure the directory exists.
22496     test -f "$dirpart/$file" && continue
22497     fdir=`$as_dirname -- "$file" ||
22498 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22499          X"$file" : 'X\(//\)[^/]' \| \
22500          X"$file" : 'X\(//\)$' \| \
22501          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22502 echo X"$file" |
22503     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22504             s//\1/
22505             q
22506           }
22507           /^X\(\/\/\)[^/].*/{
22508             s//\1/
22509             q
22510           }
22511           /^X\(\/\/\)$/{
22512             s//\1/
22513             q
22514           }
22515           /^X\(\/\).*/{
22516             s//\1/
22517             q
22518           }
22519           s/.*/./; q'`
22520     { as_dir=$dirpart/$fdir
22521   case $as_dir in #(
22522   -*) as_dir=./$as_dir;;
22523   esac
22524   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22525     as_dirs=
22526     while :; do
22527       case $as_dir in #(
22528       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22529       *) as_qdir=$as_dir;;
22530       esac
22531       as_dirs="'$as_qdir' $as_dirs"
22532       as_dir=`$as_dirname -- "$as_dir" ||
22533 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22534          X"$as_dir" : 'X\(//\)[^/]' \| \
22535          X"$as_dir" : 'X\(//\)$' \| \
22536          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22537 echo X"$as_dir" |
22538     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22539             s//\1/
22540             q
22541           }
22542           /^X\(\/\/\)[^/].*/{
22543             s//\1/
22544             q
22545           }
22546           /^X\(\/\/\)$/{
22547             s//\1/
22548             q
22549           }
22550           /^X\(\/\).*/{
22551             s//\1/
22552             q
22553           }
22554           s/.*/./; q'`
22555       test -d "$as_dir" && break
22556     done
22557     test -z "$as_dirs" || eval "mkdir $as_dirs"
22558   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22559 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22560    { (exit 1); exit 1; }; }; }
22561     # echo "creating $dirpart/$file"
22562     echo '# dummy' > "$dirpart/$file"
22563   done
22564 done
22565  ;;
22566
22567   esac
22568 done # for ac_tag
22569
22570
22571 { (exit 0); exit 0; }
22572 _ACEOF
22573 chmod +x $CONFIG_STATUS
22574 ac_clean_files=$ac_clean_files_save
22575
22576
22577 # configure is writing to config.log, and then calls config.status.
22578 # config.status does its own redirection, appending to config.log.
22579 # Unfortunately, on DOS this fails, as config.log is still kept open
22580 # by configure, so config.status won't be able to write to it; its
22581 # output is simply discarded.  So we exec the FD to /dev/null,
22582 # effectively closing config.log, so it can be properly (re)opened and
22583 # appended to by config.status.  When coming back to configure, we
22584 # need to make the FD available again.
22585 if test "$no_create" != yes; then
22586   ac_cs_success=:
22587   ac_config_status_args=
22588   test "$silent" = yes &&
22589     ac_config_status_args="$ac_config_status_args --quiet"
22590   exec 5>/dev/null
22591   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22592   exec 5>>config.log
22593   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22594   # would make configure fail if this is the last instruction.
22595   $ac_cs_success || { (exit 1); exit 1; }
22596 fi
22597
22598