]> asedeno.scripts.mit.edu Git - 1ts-debian.git/blob - zephyr/configure
sys/socket.h for struct sockaddr
[1ts-debian.git] / zephyr / 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 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
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="server/server.c"
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 lbindir
808 lsbindir
809 build
810 build_cpu
811 build_vendor
812 build_os
813 host
814 host_cpu
815 host_vendor
816 host_os
817 target
818 target_cpu
819 target_vendor
820 target_os
821 CC
822 CFLAGS
823 LDFLAGS
824 CPPFLAGS
825 ac_ct_CC
826 EXEEXT
827 OBJEXT
828 YACC
829 YFLAGS
830 LEX
831 LEX_OUTPUT_ROOT
832 LEXLIB
833 INSTALL_PROGRAM
834 INSTALL_SCRIPT
835 INSTALL_DATA
836 RANLIB
837 GREP
838 EGREP
839 LN_S
840 ECHO
841 AR
842 STRIP
843 CPP
844 CXX
845 CXXFLAGS
846 ac_ct_CXX
847 CXXCPP
848 F77
849 FFLAGS
850 ac_ct_F77
851 LIBTOOL
852 XMKMF
853 X_CFLAGS
854 X_PRE_LIBS
855 X_LIBS
856 X_EXTRA_LIBS
857 XCLIENTS
858 ZWGC_LIBX11
859 TLIB
860 RLIB
861 SLIB
862 KRB4_LIBS
863 krb5config
864 KRB5_LIBS
865 HESIOD_LIBS
866 REGEX_LIBS
867 ARES_LIBS
868 LIBOBJS
869 LTLIBOBJS'
870 ac_subst_files=''
871       ac_precious_vars='build_alias
872 host_alias
873 target_alias
874 CC
875 CFLAGS
876 LDFLAGS
877 LIBS
878 CPPFLAGS
879 YACC
880 YFLAGS
881 CPP
882 CXX
883 CXXFLAGS
884 CCC
885 CXXCPP
886 F77
887 FFLAGS
888 XMKMF'
889
890
891 # Initialize some variables set by options.
892 ac_init_help=
893 ac_init_version=false
894 # The variables have the same names as the options, with
895 # dashes changed to underlines.
896 cache_file=/dev/null
897 exec_prefix=NONE
898 no_create=
899 no_recursion=
900 prefix=NONE
901 program_prefix=NONE
902 program_suffix=NONE
903 program_transform_name=s,x,x,
904 silent=
905 site=
906 srcdir=
907 verbose=
908 x_includes=NONE
909 x_libraries=NONE
910
911 # Installation directory options.
912 # These are left unexpanded so users can "make install exec_prefix=/foo"
913 # and all the variables that are supposed to be based on exec_prefix
914 # by default will actually change.
915 # Use braces instead of parens because sh, perl, etc. also accept them.
916 # (The list follows the same order as the GNU Coding Standards.)
917 bindir='${exec_prefix}/bin'
918 sbindir='${exec_prefix}/sbin'
919 libexecdir='${exec_prefix}/libexec'
920 datarootdir='${prefix}/share'
921 datadir='${datarootdir}'
922 sysconfdir='${prefix}/etc'
923 sharedstatedir='${prefix}/com'
924 localstatedir='${prefix}/var'
925 includedir='${prefix}/include'
926 oldincludedir='/usr/include'
927 docdir='${datarootdir}/doc/${PACKAGE}'
928 infodir='${datarootdir}/info'
929 htmldir='${docdir}'
930 dvidir='${docdir}'
931 pdfdir='${docdir}'
932 psdir='${docdir}'
933 libdir='${exec_prefix}/lib'
934 localedir='${datarootdir}/locale'
935 mandir='${datarootdir}/man'
936
937 ac_prev=
938 ac_dashdash=
939 for ac_option
940 do
941   # If the previous option needs an argument, assign it.
942   if test -n "$ac_prev"; then
943     eval $ac_prev=\$ac_option
944     ac_prev=
945     continue
946   fi
947
948   case $ac_option in
949   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
950   *)    ac_optarg=yes ;;
951   esac
952
953   # Accept the important Cygnus configure options, so we can diagnose typos.
954
955   case $ac_dashdash$ac_option in
956   --)
957     ac_dashdash=yes ;;
958
959   -bindir | --bindir | --bindi | --bind | --bin | --bi)
960     ac_prev=bindir ;;
961   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
962     bindir=$ac_optarg ;;
963
964   -build | --build | --buil | --bui | --bu)
965     ac_prev=build_alias ;;
966   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
967     build_alias=$ac_optarg ;;
968
969   -cache-file | --cache-file | --cache-fil | --cache-fi \
970   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
971     ac_prev=cache_file ;;
972   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
973   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
974     cache_file=$ac_optarg ;;
975
976   --config-cache | -C)
977     cache_file=config.cache ;;
978
979   -datadir | --datadir | --datadi | --datad)
980     ac_prev=datadir ;;
981   -datadir=* | --datadir=* | --datadi=* | --datad=*)
982     datadir=$ac_optarg ;;
983
984   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
985   | --dataroo | --dataro | --datar)
986     ac_prev=datarootdir ;;
987   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
988   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
989     datarootdir=$ac_optarg ;;
990
991   -disable-* | --disable-*)
992     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
993     # Reject names that are not valid shell variable names.
994     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
995       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
996    { (exit 1); exit 1; }; }
997     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
998     eval enable_$ac_feature=no ;;
999
1000   -docdir | --docdir | --docdi | --doc | --do)
1001     ac_prev=docdir ;;
1002   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1003     docdir=$ac_optarg ;;
1004
1005   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1006     ac_prev=dvidir ;;
1007   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1008     dvidir=$ac_optarg ;;
1009
1010   -enable-* | --enable-*)
1011     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1012     # Reject names that are not valid shell variable names.
1013     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1014       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1015    { (exit 1); exit 1; }; }
1016     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1017     eval enable_$ac_feature=\$ac_optarg ;;
1018
1019   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1020   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1021   | --exec | --exe | --ex)
1022     ac_prev=exec_prefix ;;
1023   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1024   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1025   | --exec=* | --exe=* | --ex=*)
1026     exec_prefix=$ac_optarg ;;
1027
1028   -gas | --gas | --ga | --g)
1029     # Obsolete; use --with-gas.
1030     with_gas=yes ;;
1031
1032   -help | --help | --hel | --he | -h)
1033     ac_init_help=long ;;
1034   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1035     ac_init_help=recursive ;;
1036   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1037     ac_init_help=short ;;
1038
1039   -host | --host | --hos | --ho)
1040     ac_prev=host_alias ;;
1041   -host=* | --host=* | --hos=* | --ho=*)
1042     host_alias=$ac_optarg ;;
1043
1044   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1045     ac_prev=htmldir ;;
1046   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1047   | --ht=*)
1048     htmldir=$ac_optarg ;;
1049
1050   -includedir | --includedir | --includedi | --included | --include \
1051   | --includ | --inclu | --incl | --inc)
1052     ac_prev=includedir ;;
1053   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1054   | --includ=* | --inclu=* | --incl=* | --inc=*)
1055     includedir=$ac_optarg ;;
1056
1057   -infodir | --infodir | --infodi | --infod | --info | --inf)
1058     ac_prev=infodir ;;
1059   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1060     infodir=$ac_optarg ;;
1061
1062   -libdir | --libdir | --libdi | --libd)
1063     ac_prev=libdir ;;
1064   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1065     libdir=$ac_optarg ;;
1066
1067   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1068   | --libexe | --libex | --libe)
1069     ac_prev=libexecdir ;;
1070   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1071   | --libexe=* | --libex=* | --libe=*)
1072     libexecdir=$ac_optarg ;;
1073
1074   -localedir | --localedir | --localedi | --localed | --locale)
1075     ac_prev=localedir ;;
1076   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1077     localedir=$ac_optarg ;;
1078
1079   -localstatedir | --localstatedir | --localstatedi | --localstated \
1080   | --localstate | --localstat | --localsta | --localst | --locals)
1081     ac_prev=localstatedir ;;
1082   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1083   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1084     localstatedir=$ac_optarg ;;
1085
1086   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1087     ac_prev=mandir ;;
1088   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1089     mandir=$ac_optarg ;;
1090
1091   -nfp | --nfp | --nf)
1092     # Obsolete; use --without-fp.
1093     with_fp=no ;;
1094
1095   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1096   | --no-cr | --no-c | -n)
1097     no_create=yes ;;
1098
1099   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1100   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1101     no_recursion=yes ;;
1102
1103   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1104   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1105   | --oldin | --oldi | --old | --ol | --o)
1106     ac_prev=oldincludedir ;;
1107   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1108   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1109   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1110     oldincludedir=$ac_optarg ;;
1111
1112   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1113     ac_prev=prefix ;;
1114   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1115     prefix=$ac_optarg ;;
1116
1117   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1118   | --program-pre | --program-pr | --program-p)
1119     ac_prev=program_prefix ;;
1120   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1121   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1122     program_prefix=$ac_optarg ;;
1123
1124   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1125   | --program-suf | --program-su | --program-s)
1126     ac_prev=program_suffix ;;
1127   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1128   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1129     program_suffix=$ac_optarg ;;
1130
1131   -program-transform-name | --program-transform-name \
1132   | --program-transform-nam | --program-transform-na \
1133   | --program-transform-n | --program-transform- \
1134   | --program-transform | --program-transfor \
1135   | --program-transfo | --program-transf \
1136   | --program-trans | --program-tran \
1137   | --progr-tra | --program-tr | --program-t)
1138     ac_prev=program_transform_name ;;
1139   -program-transform-name=* | --program-transform-name=* \
1140   | --program-transform-nam=* | --program-transform-na=* \
1141   | --program-transform-n=* | --program-transform-=* \
1142   | --program-transform=* | --program-transfor=* \
1143   | --program-transfo=* | --program-transf=* \
1144   | --program-trans=* | --program-tran=* \
1145   | --progr-tra=* | --program-tr=* | --program-t=*)
1146     program_transform_name=$ac_optarg ;;
1147
1148   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1149     ac_prev=pdfdir ;;
1150   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1151     pdfdir=$ac_optarg ;;
1152
1153   -psdir | --psdir | --psdi | --psd | --ps)
1154     ac_prev=psdir ;;
1155   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1156     psdir=$ac_optarg ;;
1157
1158   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1159   | -silent | --silent | --silen | --sile | --sil)
1160     silent=yes ;;
1161
1162   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1163     ac_prev=sbindir ;;
1164   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1165   | --sbi=* | --sb=*)
1166     sbindir=$ac_optarg ;;
1167
1168   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1169   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1170   | --sharedst | --shareds | --shared | --share | --shar \
1171   | --sha | --sh)
1172     ac_prev=sharedstatedir ;;
1173   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1174   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1175   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1176   | --sha=* | --sh=*)
1177     sharedstatedir=$ac_optarg ;;
1178
1179   -site | --site | --sit)
1180     ac_prev=site ;;
1181   -site=* | --site=* | --sit=*)
1182     site=$ac_optarg ;;
1183
1184   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1185     ac_prev=srcdir ;;
1186   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1187     srcdir=$ac_optarg ;;
1188
1189   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1190   | --syscon | --sysco | --sysc | --sys | --sy)
1191     ac_prev=sysconfdir ;;
1192   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1193   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1194     sysconfdir=$ac_optarg ;;
1195
1196   -target | --target | --targe | --targ | --tar | --ta | --t)
1197     ac_prev=target_alias ;;
1198   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1199     target_alias=$ac_optarg ;;
1200
1201   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1202     verbose=yes ;;
1203
1204   -version | --version | --versio | --versi | --vers | -V)
1205     ac_init_version=: ;;
1206
1207   -with-* | --with-*)
1208     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1209     # Reject names that are not valid shell variable names.
1210     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1211       { echo "$as_me: error: invalid package name: $ac_package" >&2
1212    { (exit 1); exit 1; }; }
1213     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1214     eval with_$ac_package=\$ac_optarg ;;
1215
1216   -without-* | --without-*)
1217     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1218     # Reject names that are not valid shell variable names.
1219     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1220       { echo "$as_me: error: invalid package name: $ac_package" >&2
1221    { (exit 1); exit 1; }; }
1222     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1223     eval with_$ac_package=no ;;
1224
1225   --x)
1226     # Obsolete; use --with-x.
1227     with_x=yes ;;
1228
1229   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1230   | --x-incl | --x-inc | --x-in | --x-i)
1231     ac_prev=x_includes ;;
1232   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1233   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1234     x_includes=$ac_optarg ;;
1235
1236   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1237   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1238     ac_prev=x_libraries ;;
1239   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1240   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1241     x_libraries=$ac_optarg ;;
1242
1243   -*) { echo "$as_me: error: unrecognized option: $ac_option
1244 Try \`$0 --help' for more information." >&2
1245    { (exit 1); exit 1; }; }
1246     ;;
1247
1248   *=*)
1249     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1250     # Reject names that are not valid shell variable names.
1251     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1252       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1253    { (exit 1); exit 1; }; }
1254     eval $ac_envvar=\$ac_optarg
1255     export $ac_envvar ;;
1256
1257   *)
1258     # FIXME: should be removed in autoconf 3.0.
1259     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1260     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1261       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1262     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1263     ;;
1264
1265   esac
1266 done
1267
1268 if test -n "$ac_prev"; then
1269   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1270   { echo "$as_me: error: missing argument to $ac_option" >&2
1271    { (exit 1); exit 1; }; }
1272 fi
1273
1274 # Be sure to have absolute directory names.
1275 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1276                 datadir sysconfdir sharedstatedir localstatedir includedir \
1277                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1278                 libdir localedir mandir
1279 do
1280   eval ac_val=\$$ac_var
1281   case $ac_val in
1282     [\\/$]* | ?:[\\/]* )  continue;;
1283     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1284   esac
1285   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1286    { (exit 1); exit 1; }; }
1287 done
1288
1289 # There might be people who depend on the old broken behavior: `$host'
1290 # used to hold the argument of --host etc.
1291 # FIXME: To remove some day.
1292 build=$build_alias
1293 host=$host_alias
1294 target=$target_alias
1295
1296 # FIXME: To remove some day.
1297 if test "x$host_alias" != x; then
1298   if test "x$build_alias" = x; then
1299     cross_compiling=maybe
1300     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1301     If a cross compiler is detected then cross compile mode will be used." >&2
1302   elif test "x$build_alias" != "x$host_alias"; then
1303     cross_compiling=yes
1304   fi
1305 fi
1306
1307 ac_tool_prefix=
1308 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1309
1310 test "$silent" = yes && exec 6>/dev/null
1311
1312
1313 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1314 ac_ls_di=`ls -di .` &&
1315 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1316   { echo "$as_me: error: Working directory cannot be determined" >&2
1317    { (exit 1); exit 1; }; }
1318 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1319   { echo "$as_me: error: pwd does not report name of working directory" >&2
1320    { (exit 1); exit 1; }; }
1321
1322
1323 # Find the source files, if location was not specified.
1324 if test -z "$srcdir"; then
1325   ac_srcdir_defaulted=yes
1326   # Try the directory containing this script, then the parent directory.
1327   ac_confdir=`$as_dirname -- "$0" ||
1328 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1329          X"$0" : 'X\(//\)[^/]' \| \
1330          X"$0" : 'X\(//\)$' \| \
1331          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1332 echo X"$0" |
1333     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1334             s//\1/
1335             q
1336           }
1337           /^X\(\/\/\)[^/].*/{
1338             s//\1/
1339             q
1340           }
1341           /^X\(\/\/\)$/{
1342             s//\1/
1343             q
1344           }
1345           /^X\(\/\).*/{
1346             s//\1/
1347             q
1348           }
1349           s/.*/./; q'`
1350   srcdir=$ac_confdir
1351   if test ! -r "$srcdir/$ac_unique_file"; then
1352     srcdir=..
1353   fi
1354 else
1355   ac_srcdir_defaulted=no
1356 fi
1357 if test ! -r "$srcdir/$ac_unique_file"; then
1358   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1359   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1360    { (exit 1); exit 1; }; }
1361 fi
1362 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1363 ac_abs_confdir=`(
1364         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1365    { (exit 1); exit 1; }; }
1366         pwd)`
1367 # When building in place, set srcdir=.
1368 if test "$ac_abs_confdir" = "$ac_pwd"; then
1369   srcdir=.
1370 fi
1371 # Remove unnecessary trailing slashes from srcdir.
1372 # Double slashes in file names in object file debugging info
1373 # mess up M-x gdb in Emacs.
1374 case $srcdir in
1375 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1376 esac
1377 for ac_var in $ac_precious_vars; do
1378   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1379   eval ac_env_${ac_var}_value=\$${ac_var}
1380   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1381   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1382 done
1383
1384 #
1385 # Report the --help message.
1386 #
1387 if test "$ac_init_help" = "long"; then
1388   # Omit some internal or obsolete options to make the list less imposing.
1389   # This message is too long to be a string in the A/UX 3.1 sh.
1390   cat <<_ACEOF
1391 \`configure' configures this package to adapt to many kinds of systems.
1392
1393 Usage: $0 [OPTION]... [VAR=VALUE]...
1394
1395 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1396 VAR=VALUE.  See below for descriptions of some of the useful variables.
1397
1398 Defaults for the options are specified in brackets.
1399
1400 Configuration:
1401   -h, --help              display this help and exit
1402       --help=short        display options specific to this package
1403       --help=recursive    display the short help of all the included packages
1404   -V, --version           display version information and exit
1405   -q, --quiet, --silent   do not print \`checking...' messages
1406       --cache-file=FILE   cache test results in FILE [disabled]
1407   -C, --config-cache      alias for \`--cache-file=config.cache'
1408   -n, --no-create         do not create output files
1409       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1410
1411 Installation directories:
1412   --prefix=PREFIX         install architecture-independent files in PREFIX
1413                           [$ac_default_prefix]
1414   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1415                           [PREFIX]
1416
1417 By default, \`make install' will install all the files in
1418 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1419 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1420 for instance \`--prefix=\$HOME'.
1421
1422 For better control, use the options below.
1423
1424 Fine tuning of the installation directories:
1425   --bindir=DIR           user executables [EPREFIX/bin]
1426   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1427   --libexecdir=DIR       program executables [EPREFIX/libexec]
1428   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1429   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1430   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1431   --libdir=DIR           object code libraries [EPREFIX/lib]
1432   --includedir=DIR       C header files [PREFIX/include]
1433   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1434   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1435   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1436   --infodir=DIR          info documentation [DATAROOTDIR/info]
1437   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1438   --mandir=DIR           man documentation [DATAROOTDIR/man]
1439   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1440   --htmldir=DIR          html documentation [DOCDIR]
1441   --dvidir=DIR           dvi documentation [DOCDIR]
1442   --pdfdir=DIR           pdf documentation [DOCDIR]
1443   --psdir=DIR            ps documentation [DOCDIR]
1444 _ACEOF
1445
1446   cat <<\_ACEOF
1447
1448 X features:
1449   --x-includes=DIR    X include files are in DIR
1450   --x-libraries=DIR   X library files are in DIR
1451
1452 System types:
1453   --build=BUILD     configure for building on BUILD [guessed]
1454   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1455   --target=TARGET   configure for building compilers for TARGET [HOST]
1456 _ACEOF
1457 fi
1458
1459 if test -n "$ac_init_help"; then
1460
1461   cat <<\_ACEOF
1462
1463 Optional Features:
1464   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1465   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1466   --enable-shared[=PKGS]  build shared libraries [default=yes]
1467   --enable-static[=PKGS]  build static libraries [default=yes]
1468   --enable-fast-install[=PKGS]
1469                           optimize for fast installation [default=yes]
1470   --disable-libtool-lock  avoid locking (might break parallel builds)
1471
1472 Optional Packages:
1473   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1474   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1475   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1476   --with-pic              try to use only PIC/non-PIC objects [default=use
1477                           both]
1478   --with-tags[=TAGS]      include additional configurations [automatic]
1479   --with-x                use the X Window System
1480   --with-krb4=PREFIX      Use Kerberos 4
1481   --with-krb5=PREFIX      Use Kerberos 5
1482   --with-hesiod=PREFIX    Use Hesiod
1483   --with-regex=PREFIX     Use installed regex library
1484   --with-ares=PREFIX      Use libares
1485   --with-com_err=PREFIX   Specify location of com_err
1486   --with-ss=PREFIX        Specify location of ss (requires com_err)
1487
1488 Some influential environment variables:
1489   CC          C compiler command
1490   CFLAGS      C compiler flags
1491   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1492               nonstandard directory <lib dir>
1493   LIBS        libraries to pass to the linker, e.g. -l<library>
1494   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1495               you have headers in a nonstandard directory <include dir>
1496   YACC        The `Yet Another C Compiler' implementation to use. Defaults to
1497               the first program found out of: `bison -y', `byacc', `yacc'.
1498   YFLAGS      The list of arguments that will be passed by default to $YACC.
1499               This script will default YFLAGS to the empty string to avoid a
1500               default value of `-d' given by some make applications.
1501   CPP         C preprocessor
1502   CXX         C++ compiler command
1503   CXXFLAGS    C++ compiler flags
1504   CXXCPP      C++ preprocessor
1505   F77         Fortran 77 compiler command
1506   FFLAGS      Fortran 77 compiler flags
1507   XMKMF       Path to xmkmf, Makefile generator for X Window System
1508
1509 Use these variables to override the choices made by `configure' or to help
1510 it to find libraries and programs with nonstandard names/locations.
1511
1512 _ACEOF
1513 ac_status=$?
1514 fi
1515
1516 if test "$ac_init_help" = "recursive"; then
1517   # If there are subdirs, report their specific --help.
1518   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1519     test -d "$ac_dir" || continue
1520     ac_builddir=.
1521
1522 case "$ac_dir" in
1523 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1524 *)
1525   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1526   # A ".." for each directory in $ac_dir_suffix.
1527   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1528   case $ac_top_builddir_sub in
1529   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1530   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1531   esac ;;
1532 esac
1533 ac_abs_top_builddir=$ac_pwd
1534 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1535 # for backward compatibility:
1536 ac_top_builddir=$ac_top_build_prefix
1537
1538 case $srcdir in
1539   .)  # We are building in place.
1540     ac_srcdir=.
1541     ac_top_srcdir=$ac_top_builddir_sub
1542     ac_abs_top_srcdir=$ac_pwd ;;
1543   [\\/]* | ?:[\\/]* )  # Absolute name.
1544     ac_srcdir=$srcdir$ac_dir_suffix;
1545     ac_top_srcdir=$srcdir
1546     ac_abs_top_srcdir=$srcdir ;;
1547   *) # Relative name.
1548     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1549     ac_top_srcdir=$ac_top_build_prefix$srcdir
1550     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1551 esac
1552 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1553
1554     cd "$ac_dir" || { ac_status=$?; continue; }
1555     # Check for guested configure.
1556     if test -f "$ac_srcdir/configure.gnu"; then
1557       echo &&
1558       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1559     elif test -f "$ac_srcdir/configure"; then
1560       echo &&
1561       $SHELL "$ac_srcdir/configure" --help=recursive
1562     else
1563       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1564     fi || ac_status=$?
1565     cd "$ac_pwd" || { ac_status=$?; break; }
1566   done
1567 fi
1568
1569 test -n "$ac_init_help" && exit $ac_status
1570 if $ac_init_version; then
1571   cat <<\_ACEOF
1572 configure
1573 generated by GNU Autoconf 2.61
1574
1575 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1576 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1577 This configure script is free software; the Free Software Foundation
1578 gives unlimited permission to copy, distribute and modify it.
1579 _ACEOF
1580   exit
1581 fi
1582 cat >config.log <<_ACEOF
1583 This file contains any messages produced by compilers while
1584 running configure, to aid debugging if configure makes a mistake.
1585
1586 It was created by $as_me, which was
1587 generated by GNU Autoconf 2.61.  Invocation command line was
1588
1589   $ $0 $@
1590
1591 _ACEOF
1592 exec 5>>config.log
1593 {
1594 cat <<_ASUNAME
1595 ## --------- ##
1596 ## Platform. ##
1597 ## --------- ##
1598
1599 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1600 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1601 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1602 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1603 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1604
1605 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1606 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1607
1608 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1609 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1610 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1611 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1612 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1613 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1614 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1615
1616 _ASUNAME
1617
1618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1619 for as_dir in $PATH
1620 do
1621   IFS=$as_save_IFS
1622   test -z "$as_dir" && as_dir=.
1623   echo "PATH: $as_dir"
1624 done
1625 IFS=$as_save_IFS
1626
1627 } >&5
1628
1629 cat >&5 <<_ACEOF
1630
1631
1632 ## ----------- ##
1633 ## Core tests. ##
1634 ## ----------- ##
1635
1636 _ACEOF
1637
1638
1639 # Keep a trace of the command line.
1640 # Strip out --no-create and --no-recursion so they do not pile up.
1641 # Strip out --silent because we don't want to record it for future runs.
1642 # Also quote any args containing shell meta-characters.
1643 # Make two passes to allow for proper duplicate-argument suppression.
1644 ac_configure_args=
1645 ac_configure_args0=
1646 ac_configure_args1=
1647 ac_must_keep_next=false
1648 for ac_pass in 1 2
1649 do
1650   for ac_arg
1651   do
1652     case $ac_arg in
1653     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1654     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1655     | -silent | --silent | --silen | --sile | --sil)
1656       continue ;;
1657     *\'*)
1658       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1659     esac
1660     case $ac_pass in
1661     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1662     2)
1663       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1664       if test $ac_must_keep_next = true; then
1665         ac_must_keep_next=false # Got value, back to normal.
1666       else
1667         case $ac_arg in
1668           *=* | --config-cache | -C | -disable-* | --disable-* \
1669           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1670           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1671           | -with-* | --with-* | -without-* | --without-* | --x)
1672             case "$ac_configure_args0 " in
1673               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1674             esac
1675             ;;
1676           -* ) ac_must_keep_next=true ;;
1677         esac
1678       fi
1679       ac_configure_args="$ac_configure_args '$ac_arg'"
1680       ;;
1681     esac
1682   done
1683 done
1684 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1685 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1686
1687 # When interrupted or exit'd, cleanup temporary files, and complete
1688 # config.log.  We remove comments because anyway the quotes in there
1689 # would cause problems or look ugly.
1690 # WARNING: Use '\'' to represent an apostrophe within the trap.
1691 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1692 trap 'exit_status=$?
1693   # Save into config.log some information that might help in debugging.
1694   {
1695     echo
1696
1697     cat <<\_ASBOX
1698 ## ---------------- ##
1699 ## Cache variables. ##
1700 ## ---------------- ##
1701 _ASBOX
1702     echo
1703     # The following way of writing the cache mishandles newlines in values,
1704 (
1705   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1706     eval ac_val=\$$ac_var
1707     case $ac_val in #(
1708     *${as_nl}*)
1709       case $ac_var in #(
1710       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1711 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1712       esac
1713       case $ac_var in #(
1714       _ | IFS | as_nl) ;; #(
1715       *) $as_unset $ac_var ;;
1716       esac ;;
1717     esac
1718   done
1719   (set) 2>&1 |
1720     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1721     *${as_nl}ac_space=\ *)
1722       sed -n \
1723         "s/'\''/'\''\\\\'\'''\''/g;
1724           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1725       ;; #(
1726     *)
1727       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1728       ;;
1729     esac |
1730     sort
1731 )
1732     echo
1733
1734     cat <<\_ASBOX
1735 ## ----------------- ##
1736 ## Output variables. ##
1737 ## ----------------- ##
1738 _ASBOX
1739     echo
1740     for ac_var in $ac_subst_vars
1741     do
1742       eval ac_val=\$$ac_var
1743       case $ac_val in
1744       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1745       esac
1746       echo "$ac_var='\''$ac_val'\''"
1747     done | sort
1748     echo
1749
1750     if test -n "$ac_subst_files"; then
1751       cat <<\_ASBOX
1752 ## ------------------- ##
1753 ## File substitutions. ##
1754 ## ------------------- ##
1755 _ASBOX
1756       echo
1757       for ac_var in $ac_subst_files
1758       do
1759         eval ac_val=\$$ac_var
1760         case $ac_val in
1761         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1762         esac
1763         echo "$ac_var='\''$ac_val'\''"
1764       done | sort
1765       echo
1766     fi
1767
1768     if test -s confdefs.h; then
1769       cat <<\_ASBOX
1770 ## ----------- ##
1771 ## confdefs.h. ##
1772 ## ----------- ##
1773 _ASBOX
1774       echo
1775       cat confdefs.h
1776       echo
1777     fi
1778     test "$ac_signal" != 0 &&
1779       echo "$as_me: caught signal $ac_signal"
1780     echo "$as_me: exit $exit_status"
1781   } >&5
1782   rm -f core *.core core.conftest.* &&
1783     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1784     exit $exit_status
1785 ' 0
1786 for ac_signal in 1 2 13 15; do
1787   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1788 done
1789 ac_signal=0
1790
1791 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1792 rm -f -r conftest* confdefs.h
1793
1794 # Predefined preprocessor variables.
1795
1796 cat >>confdefs.h <<_ACEOF
1797 #define PACKAGE_NAME "$PACKAGE_NAME"
1798 _ACEOF
1799
1800
1801 cat >>confdefs.h <<_ACEOF
1802 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1803 _ACEOF
1804
1805
1806 cat >>confdefs.h <<_ACEOF
1807 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1808 _ACEOF
1809
1810
1811 cat >>confdefs.h <<_ACEOF
1812 #define PACKAGE_STRING "$PACKAGE_STRING"
1813 _ACEOF
1814
1815
1816 cat >>confdefs.h <<_ACEOF
1817 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1818 _ACEOF
1819
1820
1821 # Let the site file select an alternate cache file if it wants to.
1822 # Prefer explicitly selected file to automatically selected ones.
1823 if test -n "$CONFIG_SITE"; then
1824   set x "$CONFIG_SITE"
1825 elif test "x$prefix" != xNONE; then
1826   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1827 else
1828   set x "$ac_default_prefix/share/config.site" \
1829         "$ac_default_prefix/etc/config.site"
1830 fi
1831 shift
1832 for ac_site_file
1833 do
1834   if test -r "$ac_site_file"; then
1835     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1836 echo "$as_me: loading site script $ac_site_file" >&6;}
1837     sed 's/^/| /' "$ac_site_file" >&5
1838     . "$ac_site_file"
1839   fi
1840 done
1841
1842 if test -r "$cache_file"; then
1843   # Some versions of bash will fail to source /dev/null (special
1844   # files actually), so we avoid doing that.
1845   if test -f "$cache_file"; then
1846     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1847 echo "$as_me: loading cache $cache_file" >&6;}
1848     case $cache_file in
1849       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1850       *)                      . "./$cache_file";;
1851     esac
1852   fi
1853 else
1854   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1855 echo "$as_me: creating cache $cache_file" >&6;}
1856   >$cache_file
1857 fi
1858
1859 # Check that the precious variables saved in the cache have kept the same
1860 # value.
1861 ac_cache_corrupted=false
1862 for ac_var in $ac_precious_vars; do
1863   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1864   eval ac_new_set=\$ac_env_${ac_var}_set
1865   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1866   eval ac_new_val=\$ac_env_${ac_var}_value
1867   case $ac_old_set,$ac_new_set in
1868     set,)
1869       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1870 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1871       ac_cache_corrupted=: ;;
1872     ,set)
1873       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1874 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1875       ac_cache_corrupted=: ;;
1876     ,);;
1877     *)
1878       if test "x$ac_old_val" != "x$ac_new_val"; then
1879         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1880 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1881         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1882 echo "$as_me:   former value:  $ac_old_val" >&2;}
1883         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1884 echo "$as_me:   current value: $ac_new_val" >&2;}
1885         ac_cache_corrupted=:
1886       fi;;
1887   esac
1888   # Pass precious variables to config.status.
1889   if test "$ac_new_set" = set; then
1890     case $ac_new_val in
1891     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1892     *) ac_arg=$ac_var=$ac_new_val ;;
1893     esac
1894     case " $ac_configure_args " in
1895       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1896       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1897     esac
1898   fi
1899 done
1900 if $ac_cache_corrupted; then
1901   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1902 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1903   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1904 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1905    { (exit 1); exit 1; }; }
1906 fi
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924 ac_ext=c
1925 ac_cpp='$CPP $CPPFLAGS'
1926 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1927 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1928 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1929
1930
1931
1932 test -d h || mkdir h
1933 test -d h/zephyr || mkdir h/zephyr
1934
1935 test -z "$lbindir" && lbindir='${bindir}'
1936 test -z "$lsbindir" && lsbindir='${sbindir}'
1937
1938
1939
1940 ac_aux_dir=
1941 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1942   if test -f "$ac_dir/install-sh"; then
1943     ac_aux_dir=$ac_dir
1944     ac_install_sh="$ac_aux_dir/install-sh -c"
1945     break
1946   elif test -f "$ac_dir/install.sh"; then
1947     ac_aux_dir=$ac_dir
1948     ac_install_sh="$ac_aux_dir/install.sh -c"
1949     break
1950   elif test -f "$ac_dir/shtool"; then
1951     ac_aux_dir=$ac_dir
1952     ac_install_sh="$ac_aux_dir/shtool install -c"
1953     break
1954   fi
1955 done
1956 if test -z "$ac_aux_dir"; then
1957   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1958 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1959    { (exit 1); exit 1; }; }
1960 fi
1961
1962 # These three variables are undocumented and unsupported,
1963 # and are intended to be withdrawn in a future Autoconf release.
1964 # They can cause serious problems if a builder's source tree is in a directory
1965 # whose full name contains unusual characters.
1966 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1967 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1968 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1969
1970
1971 # Make sure we can run config.sub.
1972 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1973   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1974 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1975    { (exit 1); exit 1; }; }
1976
1977 { echo "$as_me:$LINENO: checking build system type" >&5
1978 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1979 if test "${ac_cv_build+set}" = set; then
1980   echo $ECHO_N "(cached) $ECHO_C" >&6
1981 else
1982   ac_build_alias=$build_alias
1983 test "x$ac_build_alias" = x &&
1984   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1985 test "x$ac_build_alias" = x &&
1986   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1987 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1988    { (exit 1); exit 1; }; }
1989 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1990   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1991 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1992    { (exit 1); exit 1; }; }
1993
1994 fi
1995 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1996 echo "${ECHO_T}$ac_cv_build" >&6; }
1997 case $ac_cv_build in
1998 *-*-*) ;;
1999 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2000 echo "$as_me: error: invalid value of canonical build" >&2;}
2001    { (exit 1); exit 1; }; };;
2002 esac
2003 build=$ac_cv_build
2004 ac_save_IFS=$IFS; IFS='-'
2005 set x $ac_cv_build
2006 shift
2007 build_cpu=$1
2008 build_vendor=$2
2009 shift; shift
2010 # Remember, the first character of IFS is used to create $*,
2011 # except with old shells:
2012 build_os=$*
2013 IFS=$ac_save_IFS
2014 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2015
2016
2017 { echo "$as_me:$LINENO: checking host system type" >&5
2018 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2019 if test "${ac_cv_host+set}" = set; then
2020   echo $ECHO_N "(cached) $ECHO_C" >&6
2021 else
2022   if test "x$host_alias" = x; then
2023   ac_cv_host=$ac_cv_build
2024 else
2025   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2026     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2027 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2028    { (exit 1); exit 1; }; }
2029 fi
2030
2031 fi
2032 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2033 echo "${ECHO_T}$ac_cv_host" >&6; }
2034 case $ac_cv_host in
2035 *-*-*) ;;
2036 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2037 echo "$as_me: error: invalid value of canonical host" >&2;}
2038    { (exit 1); exit 1; }; };;
2039 esac
2040 host=$ac_cv_host
2041 ac_save_IFS=$IFS; IFS='-'
2042 set x $ac_cv_host
2043 shift
2044 host_cpu=$1
2045 host_vendor=$2
2046 shift; shift
2047 # Remember, the first character of IFS is used to create $*,
2048 # except with old shells:
2049 host_os=$*
2050 IFS=$ac_save_IFS
2051 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2052
2053
2054 { echo "$as_me:$LINENO: checking target system type" >&5
2055 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2056 if test "${ac_cv_target+set}" = set; then
2057   echo $ECHO_N "(cached) $ECHO_C" >&6
2058 else
2059   if test "x$target_alias" = x; then
2060   ac_cv_target=$ac_cv_host
2061 else
2062   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2063     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2064 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2065    { (exit 1); exit 1; }; }
2066 fi
2067
2068 fi
2069 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2070 echo "${ECHO_T}$ac_cv_target" >&6; }
2071 case $ac_cv_target in
2072 *-*-*) ;;
2073 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2074 echo "$as_me: error: invalid value of canonical target" >&2;}
2075    { (exit 1); exit 1; }; };;
2076 esac
2077 target=$ac_cv_target
2078 ac_save_IFS=$IFS; IFS='-'
2079 set x $ac_cv_target
2080 shift
2081 target_cpu=$1
2082 target_vendor=$2
2083 shift; shift
2084 # Remember, the first character of IFS is used to create $*,
2085 # except with old shells:
2086 target_os=$*
2087 IFS=$ac_save_IFS
2088 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2089
2090
2091 # The aliases save the names the user supplied, while $host etc.
2092 # will get canonicalized.
2093 test -n "$target_alias" &&
2094   test "$program_prefix$program_suffix$program_transform_name" = \
2095     NONENONEs,x,x, &&
2096   program_prefix=${target_alias}-
2097 cat >>confdefs.h <<_ACEOF
2098 #define MACHINE_TYPE "$host"
2099 _ACEOF
2100
2101
2102 ac_ext=c
2103 ac_cpp='$CPP $CPPFLAGS'
2104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2107 if test -n "$ac_tool_prefix"; then
2108   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2109 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2110 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2111 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2112 if test "${ac_cv_prog_CC+set}" = set; then
2113   echo $ECHO_N "(cached) $ECHO_C" >&6
2114 else
2115   if test -n "$CC"; then
2116   ac_cv_prog_CC="$CC" # Let the user override the test.
2117 else
2118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2119 for as_dir in $PATH
2120 do
2121   IFS=$as_save_IFS
2122   test -z "$as_dir" && as_dir=.
2123   for ac_exec_ext in '' $ac_executable_extensions; do
2124   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2125     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2126     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2127     break 2
2128   fi
2129 done
2130 done
2131 IFS=$as_save_IFS
2132
2133 fi
2134 fi
2135 CC=$ac_cv_prog_CC
2136 if test -n "$CC"; then
2137   { echo "$as_me:$LINENO: result: $CC" >&5
2138 echo "${ECHO_T}$CC" >&6; }
2139 else
2140   { echo "$as_me:$LINENO: result: no" >&5
2141 echo "${ECHO_T}no" >&6; }
2142 fi
2143
2144
2145 fi
2146 if test -z "$ac_cv_prog_CC"; then
2147   ac_ct_CC=$CC
2148   # Extract the first word of "gcc", so it can be a program name with args.
2149 set dummy gcc; ac_word=$2
2150 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2151 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2152 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2153   echo $ECHO_N "(cached) $ECHO_C" >&6
2154 else
2155   if test -n "$ac_ct_CC"; then
2156   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2157 else
2158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2159 for as_dir in $PATH
2160 do
2161   IFS=$as_save_IFS
2162   test -z "$as_dir" && as_dir=.
2163   for ac_exec_ext in '' $ac_executable_extensions; do
2164   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2165     ac_cv_prog_ac_ct_CC="gcc"
2166     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2167     break 2
2168   fi
2169 done
2170 done
2171 IFS=$as_save_IFS
2172
2173 fi
2174 fi
2175 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2176 if test -n "$ac_ct_CC"; then
2177   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2178 echo "${ECHO_T}$ac_ct_CC" >&6; }
2179 else
2180   { echo "$as_me:$LINENO: result: no" >&5
2181 echo "${ECHO_T}no" >&6; }
2182 fi
2183
2184   if test "x$ac_ct_CC" = x; then
2185     CC=""
2186   else
2187     case $cross_compiling:$ac_tool_warned in
2188 yes:)
2189 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2190 whose name does not start with the host triplet.  If you think this
2191 configuration is useful to you, please write to autoconf@gnu.org." >&5
2192 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2193 whose name does not start with the host triplet.  If you think this
2194 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2195 ac_tool_warned=yes ;;
2196 esac
2197     CC=$ac_ct_CC
2198   fi
2199 else
2200   CC="$ac_cv_prog_CC"
2201 fi
2202
2203 if test -z "$CC"; then
2204           if test -n "$ac_tool_prefix"; then
2205     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2206 set dummy ${ac_tool_prefix}cc; ac_word=$2
2207 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2208 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2209 if test "${ac_cv_prog_CC+set}" = set; then
2210   echo $ECHO_N "(cached) $ECHO_C" >&6
2211 else
2212   if test -n "$CC"; then
2213   ac_cv_prog_CC="$CC" # Let the user override the test.
2214 else
2215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2216 for as_dir in $PATH
2217 do
2218   IFS=$as_save_IFS
2219   test -z "$as_dir" && as_dir=.
2220   for ac_exec_ext in '' $ac_executable_extensions; do
2221   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2222     ac_cv_prog_CC="${ac_tool_prefix}cc"
2223     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2224     break 2
2225   fi
2226 done
2227 done
2228 IFS=$as_save_IFS
2229
2230 fi
2231 fi
2232 CC=$ac_cv_prog_CC
2233 if test -n "$CC"; then
2234   { echo "$as_me:$LINENO: result: $CC" >&5
2235 echo "${ECHO_T}$CC" >&6; }
2236 else
2237   { echo "$as_me:$LINENO: result: no" >&5
2238 echo "${ECHO_T}no" >&6; }
2239 fi
2240
2241
2242   fi
2243 fi
2244 if test -z "$CC"; then
2245   # Extract the first word of "cc", so it can be a program name with args.
2246 set dummy cc; ac_word=$2
2247 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2248 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2249 if test "${ac_cv_prog_CC+set}" = set; then
2250   echo $ECHO_N "(cached) $ECHO_C" >&6
2251 else
2252   if test -n "$CC"; then
2253   ac_cv_prog_CC="$CC" # Let the user override the test.
2254 else
2255   ac_prog_rejected=no
2256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2257 for as_dir in $PATH
2258 do
2259   IFS=$as_save_IFS
2260   test -z "$as_dir" && as_dir=.
2261   for ac_exec_ext in '' $ac_executable_extensions; do
2262   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2263     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2264        ac_prog_rejected=yes
2265        continue
2266      fi
2267     ac_cv_prog_CC="cc"
2268     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2269     break 2
2270   fi
2271 done
2272 done
2273 IFS=$as_save_IFS
2274
2275 if test $ac_prog_rejected = yes; then
2276   # We found a bogon in the path, so make sure we never use it.
2277   set dummy $ac_cv_prog_CC
2278   shift
2279   if test $# != 0; then
2280     # We chose a different compiler from the bogus one.
2281     # However, it has the same basename, so the bogon will be chosen
2282     # first if we set CC to just the basename; use the full file name.
2283     shift
2284     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2285   fi
2286 fi
2287 fi
2288 fi
2289 CC=$ac_cv_prog_CC
2290 if test -n "$CC"; then
2291   { echo "$as_me:$LINENO: result: $CC" >&5
2292 echo "${ECHO_T}$CC" >&6; }
2293 else
2294   { echo "$as_me:$LINENO: result: no" >&5
2295 echo "${ECHO_T}no" >&6; }
2296 fi
2297
2298
2299 fi
2300 if test -z "$CC"; then
2301   if test -n "$ac_tool_prefix"; then
2302   for ac_prog in cl.exe
2303   do
2304     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2305 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2306 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2308 if test "${ac_cv_prog_CC+set}" = set; then
2309   echo $ECHO_N "(cached) $ECHO_C" >&6
2310 else
2311   if test -n "$CC"; then
2312   ac_cv_prog_CC="$CC" # Let the user override the test.
2313 else
2314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2315 for as_dir in $PATH
2316 do
2317   IFS=$as_save_IFS
2318   test -z "$as_dir" && as_dir=.
2319   for ac_exec_ext in '' $ac_executable_extensions; do
2320   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2321     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2322     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2323     break 2
2324   fi
2325 done
2326 done
2327 IFS=$as_save_IFS
2328
2329 fi
2330 fi
2331 CC=$ac_cv_prog_CC
2332 if test -n "$CC"; then
2333   { echo "$as_me:$LINENO: result: $CC" >&5
2334 echo "${ECHO_T}$CC" >&6; }
2335 else
2336   { echo "$as_me:$LINENO: result: no" >&5
2337 echo "${ECHO_T}no" >&6; }
2338 fi
2339
2340
2341     test -n "$CC" && break
2342   done
2343 fi
2344 if test -z "$CC"; then
2345   ac_ct_CC=$CC
2346   for ac_prog in cl.exe
2347 do
2348   # Extract the first word of "$ac_prog", so it can be a program name with args.
2349 set dummy $ac_prog; ac_word=$2
2350 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2352 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2353   echo $ECHO_N "(cached) $ECHO_C" >&6
2354 else
2355   if test -n "$ac_ct_CC"; then
2356   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2357 else
2358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2359 for as_dir in $PATH
2360 do
2361   IFS=$as_save_IFS
2362   test -z "$as_dir" && as_dir=.
2363   for ac_exec_ext in '' $ac_executable_extensions; do
2364   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2365     ac_cv_prog_ac_ct_CC="$ac_prog"
2366     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2367     break 2
2368   fi
2369 done
2370 done
2371 IFS=$as_save_IFS
2372
2373 fi
2374 fi
2375 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2376 if test -n "$ac_ct_CC"; then
2377   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2378 echo "${ECHO_T}$ac_ct_CC" >&6; }
2379 else
2380   { echo "$as_me:$LINENO: result: no" >&5
2381 echo "${ECHO_T}no" >&6; }
2382 fi
2383
2384
2385   test -n "$ac_ct_CC" && break
2386 done
2387
2388   if test "x$ac_ct_CC" = x; then
2389     CC=""
2390   else
2391     case $cross_compiling:$ac_tool_warned in
2392 yes:)
2393 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2394 whose name does not start with the host triplet.  If you think this
2395 configuration is useful to you, please write to autoconf@gnu.org." >&5
2396 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2397 whose name does not start with the host triplet.  If you think this
2398 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2399 ac_tool_warned=yes ;;
2400 esac
2401     CC=$ac_ct_CC
2402   fi
2403 fi
2404
2405 fi
2406
2407
2408 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2409 See \`config.log' for more details." >&5
2410 echo "$as_me: error: no acceptable C compiler found in \$PATH
2411 See \`config.log' for more details." >&2;}
2412    { (exit 1); exit 1; }; }
2413
2414 # Provide some information about the compiler.
2415 echo "$as_me:$LINENO: checking for C compiler version" >&5
2416 ac_compiler=`set X $ac_compile; echo $2`
2417 { (ac_try="$ac_compiler --version >&5"
2418 case "(($ac_try" in
2419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2420   *) ac_try_echo=$ac_try;;
2421 esac
2422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2423   (eval "$ac_compiler --version >&5") 2>&5
2424   ac_status=$?
2425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2426   (exit $ac_status); }
2427 { (ac_try="$ac_compiler -v >&5"
2428 case "(($ac_try" in
2429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2430   *) ac_try_echo=$ac_try;;
2431 esac
2432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2433   (eval "$ac_compiler -v >&5") 2>&5
2434   ac_status=$?
2435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2436   (exit $ac_status); }
2437 { (ac_try="$ac_compiler -V >&5"
2438 case "(($ac_try" in
2439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2440   *) ac_try_echo=$ac_try;;
2441 esac
2442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2443   (eval "$ac_compiler -V >&5") 2>&5
2444   ac_status=$?
2445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2446   (exit $ac_status); }
2447
2448 cat >conftest.$ac_ext <<_ACEOF
2449 /* confdefs.h.  */
2450 _ACEOF
2451 cat confdefs.h >>conftest.$ac_ext
2452 cat >>conftest.$ac_ext <<_ACEOF
2453 /* end confdefs.h.  */
2454
2455 int
2456 main ()
2457 {
2458
2459   ;
2460   return 0;
2461 }
2462 _ACEOF
2463 ac_clean_files_save=$ac_clean_files
2464 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2465 # Try to create an executable without -o first, disregard a.out.
2466 # It will help us diagnose broken compilers, and finding out an intuition
2467 # of exeext.
2468 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2469 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2470 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2471 #
2472 # List of possible output files, starting from the most likely.
2473 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2474 # only as a last resort.  b.out is created by i960 compilers.
2475 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2476 #
2477 # The IRIX 6 linker writes into existing files which may not be
2478 # executable, retaining their permissions.  Remove them first so a
2479 # subsequent execution test works.
2480 ac_rmfiles=
2481 for ac_file in $ac_files
2482 do
2483   case $ac_file in
2484     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2485     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2486   esac
2487 done
2488 rm -f $ac_rmfiles
2489
2490 if { (ac_try="$ac_link_default"
2491 case "(($ac_try" in
2492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2493   *) ac_try_echo=$ac_try;;
2494 esac
2495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2496   (eval "$ac_link_default") 2>&5
2497   ac_status=$?
2498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2499   (exit $ac_status); }; then
2500   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2501 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2502 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2503 # so that the user can short-circuit this test for compilers unknown to
2504 # Autoconf.
2505 for ac_file in $ac_files ''
2506 do
2507   test -f "$ac_file" || continue
2508   case $ac_file in
2509     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2510         ;;
2511     [ab].out )
2512         # We found the default executable, but exeext='' is most
2513         # certainly right.
2514         break;;
2515     *.* )
2516         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2517         then :; else
2518            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2519         fi
2520         # We set ac_cv_exeext here because the later test for it is not
2521         # safe: cross compilers may not add the suffix if given an `-o'
2522         # argument, so we may need to know it at that point already.
2523         # Even if this section looks crufty: it has the advantage of
2524         # actually working.
2525         break;;
2526     * )
2527         break;;
2528   esac
2529 done
2530 test "$ac_cv_exeext" = no && ac_cv_exeext=
2531
2532 else
2533   ac_file=''
2534 fi
2535
2536 { echo "$as_me:$LINENO: result: $ac_file" >&5
2537 echo "${ECHO_T}$ac_file" >&6; }
2538 if test -z "$ac_file"; then
2539   echo "$as_me: failed program was:" >&5
2540 sed 's/^/| /' conftest.$ac_ext >&5
2541
2542 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2543 See \`config.log' for more details." >&5
2544 echo "$as_me: error: C compiler cannot create executables
2545 See \`config.log' for more details." >&2;}
2546    { (exit 77); exit 77; }; }
2547 fi
2548
2549 ac_exeext=$ac_cv_exeext
2550
2551 # Check that the compiler produces executables we can run.  If not, either
2552 # the compiler is broken, or we cross compile.
2553 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2554 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2555 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2556 # If not cross compiling, check that we can run a simple program.
2557 if test "$cross_compiling" != yes; then
2558   if { ac_try='./$ac_file'
2559   { (case "(($ac_try" in
2560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2561   *) ac_try_echo=$ac_try;;
2562 esac
2563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2564   (eval "$ac_try") 2>&5
2565   ac_status=$?
2566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2567   (exit $ac_status); }; }; then
2568     cross_compiling=no
2569   else
2570     if test "$cross_compiling" = maybe; then
2571         cross_compiling=yes
2572     else
2573         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2574 If you meant to cross compile, use \`--host'.
2575 See \`config.log' for more details." >&5
2576 echo "$as_me: error: cannot run C compiled programs.
2577 If you meant to cross compile, use \`--host'.
2578 See \`config.log' for more details." >&2;}
2579    { (exit 1); exit 1; }; }
2580     fi
2581   fi
2582 fi
2583 { echo "$as_me:$LINENO: result: yes" >&5
2584 echo "${ECHO_T}yes" >&6; }
2585
2586 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2587 ac_clean_files=$ac_clean_files_save
2588 # Check that the compiler produces executables we can run.  If not, either
2589 # the compiler is broken, or we cross compile.
2590 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2591 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2592 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2593 echo "${ECHO_T}$cross_compiling" >&6; }
2594
2595 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2596 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2597 if { (ac_try="$ac_link"
2598 case "(($ac_try" in
2599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2600   *) ac_try_echo=$ac_try;;
2601 esac
2602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2603   (eval "$ac_link") 2>&5
2604   ac_status=$?
2605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2606   (exit $ac_status); }; then
2607   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2608 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2609 # work properly (i.e., refer to `conftest.exe'), while it won't with
2610 # `rm'.
2611 for ac_file in conftest.exe conftest conftest.*; do
2612   test -f "$ac_file" || continue
2613   case $ac_file in
2614     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2615     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2616           break;;
2617     * ) break;;
2618   esac
2619 done
2620 else
2621   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2622 See \`config.log' for more details." >&5
2623 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2624 See \`config.log' for more details." >&2;}
2625    { (exit 1); exit 1; }; }
2626 fi
2627
2628 rm -f conftest$ac_cv_exeext
2629 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2630 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2631
2632 rm -f conftest.$ac_ext
2633 EXEEXT=$ac_cv_exeext
2634 ac_exeext=$EXEEXT
2635 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2636 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2637 if test "${ac_cv_objext+set}" = set; then
2638   echo $ECHO_N "(cached) $ECHO_C" >&6
2639 else
2640   cat >conftest.$ac_ext <<_ACEOF
2641 /* confdefs.h.  */
2642 _ACEOF
2643 cat confdefs.h >>conftest.$ac_ext
2644 cat >>conftest.$ac_ext <<_ACEOF
2645 /* end confdefs.h.  */
2646
2647 int
2648 main ()
2649 {
2650
2651   ;
2652   return 0;
2653 }
2654 _ACEOF
2655 rm -f conftest.o conftest.obj
2656 if { (ac_try="$ac_compile"
2657 case "(($ac_try" in
2658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2659   *) ac_try_echo=$ac_try;;
2660 esac
2661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2662   (eval "$ac_compile") 2>&5
2663   ac_status=$?
2664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2665   (exit $ac_status); }; then
2666   for ac_file in conftest.o conftest.obj conftest.*; do
2667   test -f "$ac_file" || continue;
2668   case $ac_file in
2669     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2670     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2671        break;;
2672   esac
2673 done
2674 else
2675   echo "$as_me: failed program was:" >&5
2676 sed 's/^/| /' conftest.$ac_ext >&5
2677
2678 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2679 See \`config.log' for more details." >&5
2680 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2681 See \`config.log' for more details." >&2;}
2682    { (exit 1); exit 1; }; }
2683 fi
2684
2685 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2686 fi
2687 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2688 echo "${ECHO_T}$ac_cv_objext" >&6; }
2689 OBJEXT=$ac_cv_objext
2690 ac_objext=$OBJEXT
2691 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2692 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2693 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2694   echo $ECHO_N "(cached) $ECHO_C" >&6
2695 else
2696   cat >conftest.$ac_ext <<_ACEOF
2697 /* confdefs.h.  */
2698 _ACEOF
2699 cat confdefs.h >>conftest.$ac_ext
2700 cat >>conftest.$ac_ext <<_ACEOF
2701 /* end confdefs.h.  */
2702
2703 int
2704 main ()
2705 {
2706 #ifndef __GNUC__
2707        choke me
2708 #endif
2709
2710   ;
2711   return 0;
2712 }
2713 _ACEOF
2714 rm -f conftest.$ac_objext
2715 if { (ac_try="$ac_compile"
2716 case "(($ac_try" in
2717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2718   *) ac_try_echo=$ac_try;;
2719 esac
2720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2721   (eval "$ac_compile") 2>conftest.er1
2722   ac_status=$?
2723   grep -v '^ *+' conftest.er1 >conftest.err
2724   rm -f conftest.er1
2725   cat conftest.err >&5
2726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727   (exit $ac_status); } && {
2728          test -z "$ac_c_werror_flag" ||
2729          test ! -s conftest.err
2730        } && test -s conftest.$ac_objext; then
2731   ac_compiler_gnu=yes
2732 else
2733   echo "$as_me: failed program was:" >&5
2734 sed 's/^/| /' conftest.$ac_ext >&5
2735
2736         ac_compiler_gnu=no
2737 fi
2738
2739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2740 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2741
2742 fi
2743 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2744 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2745 GCC=`test $ac_compiler_gnu = yes && echo yes`
2746 ac_test_CFLAGS=${CFLAGS+set}
2747 ac_save_CFLAGS=$CFLAGS
2748 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2749 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2750 if test "${ac_cv_prog_cc_g+set}" = set; then
2751   echo $ECHO_N "(cached) $ECHO_C" >&6
2752 else
2753   ac_save_c_werror_flag=$ac_c_werror_flag
2754    ac_c_werror_flag=yes
2755    ac_cv_prog_cc_g=no
2756    CFLAGS="-g"
2757    cat >conftest.$ac_ext <<_ACEOF
2758 /* confdefs.h.  */
2759 _ACEOF
2760 cat confdefs.h >>conftest.$ac_ext
2761 cat >>conftest.$ac_ext <<_ACEOF
2762 /* end confdefs.h.  */
2763
2764 int
2765 main ()
2766 {
2767
2768   ;
2769   return 0;
2770 }
2771 _ACEOF
2772 rm -f conftest.$ac_objext
2773 if { (ac_try="$ac_compile"
2774 case "(($ac_try" in
2775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2776   *) ac_try_echo=$ac_try;;
2777 esac
2778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2779   (eval "$ac_compile") 2>conftest.er1
2780   ac_status=$?
2781   grep -v '^ *+' conftest.er1 >conftest.err
2782   rm -f conftest.er1
2783   cat conftest.err >&5
2784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2785   (exit $ac_status); } && {
2786          test -z "$ac_c_werror_flag" ||
2787          test ! -s conftest.err
2788        } && test -s conftest.$ac_objext; then
2789   ac_cv_prog_cc_g=yes
2790 else
2791   echo "$as_me: failed program was:" >&5
2792 sed 's/^/| /' conftest.$ac_ext >&5
2793
2794         CFLAGS=""
2795       cat >conftest.$ac_ext <<_ACEOF
2796 /* confdefs.h.  */
2797 _ACEOF
2798 cat confdefs.h >>conftest.$ac_ext
2799 cat >>conftest.$ac_ext <<_ACEOF
2800 /* end confdefs.h.  */
2801
2802 int
2803 main ()
2804 {
2805
2806   ;
2807   return 0;
2808 }
2809 _ACEOF
2810 rm -f conftest.$ac_objext
2811 if { (ac_try="$ac_compile"
2812 case "(($ac_try" in
2813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2814   *) ac_try_echo=$ac_try;;
2815 esac
2816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2817   (eval "$ac_compile") 2>conftest.er1
2818   ac_status=$?
2819   grep -v '^ *+' conftest.er1 >conftest.err
2820   rm -f conftest.er1
2821   cat conftest.err >&5
2822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2823   (exit $ac_status); } && {
2824          test -z "$ac_c_werror_flag" ||
2825          test ! -s conftest.err
2826        } && test -s conftest.$ac_objext; then
2827   :
2828 else
2829   echo "$as_me: failed program was:" >&5
2830 sed 's/^/| /' conftest.$ac_ext >&5
2831
2832         ac_c_werror_flag=$ac_save_c_werror_flag
2833          CFLAGS="-g"
2834          cat >conftest.$ac_ext <<_ACEOF
2835 /* confdefs.h.  */
2836 _ACEOF
2837 cat confdefs.h >>conftest.$ac_ext
2838 cat >>conftest.$ac_ext <<_ACEOF
2839 /* end confdefs.h.  */
2840
2841 int
2842 main ()
2843 {
2844
2845   ;
2846   return 0;
2847 }
2848 _ACEOF
2849 rm -f conftest.$ac_objext
2850 if { (ac_try="$ac_compile"
2851 case "(($ac_try" in
2852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2853   *) ac_try_echo=$ac_try;;
2854 esac
2855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2856   (eval "$ac_compile") 2>conftest.er1
2857   ac_status=$?
2858   grep -v '^ *+' conftest.er1 >conftest.err
2859   rm -f conftest.er1
2860   cat conftest.err >&5
2861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2862   (exit $ac_status); } && {
2863          test -z "$ac_c_werror_flag" ||
2864          test ! -s conftest.err
2865        } && test -s conftest.$ac_objext; then
2866   ac_cv_prog_cc_g=yes
2867 else
2868   echo "$as_me: failed program was:" >&5
2869 sed 's/^/| /' conftest.$ac_ext >&5
2870
2871
2872 fi
2873
2874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2875 fi
2876
2877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2878 fi
2879
2880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2881    ac_c_werror_flag=$ac_save_c_werror_flag
2882 fi
2883 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2884 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2885 if test "$ac_test_CFLAGS" = set; then
2886   CFLAGS=$ac_save_CFLAGS
2887 elif test $ac_cv_prog_cc_g = yes; then
2888   if test "$GCC" = yes; then
2889     CFLAGS="-g -O2"
2890   else
2891     CFLAGS="-g"
2892   fi
2893 else
2894   if test "$GCC" = yes; then
2895     CFLAGS="-O2"
2896   else
2897     CFLAGS=
2898   fi
2899 fi
2900 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2901 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2902 if test "${ac_cv_prog_cc_c89+set}" = set; then
2903   echo $ECHO_N "(cached) $ECHO_C" >&6
2904 else
2905   ac_cv_prog_cc_c89=no
2906 ac_save_CC=$CC
2907 cat >conftest.$ac_ext <<_ACEOF
2908 /* confdefs.h.  */
2909 _ACEOF
2910 cat confdefs.h >>conftest.$ac_ext
2911 cat >>conftest.$ac_ext <<_ACEOF
2912 /* end confdefs.h.  */
2913 #include <stdarg.h>
2914 #include <stdio.h>
2915 #include <sys/types.h>
2916 #include <sys/stat.h>
2917 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2918 struct buf { int x; };
2919 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2920 static char *e (p, i)
2921      char **p;
2922      int i;
2923 {
2924   return p[i];
2925 }
2926 static char *f (char * (*g) (char **, int), char **p, ...)
2927 {
2928   char *s;
2929   va_list v;
2930   va_start (v,p);
2931   s = g (p, va_arg (v,int));
2932   va_end (v);
2933   return s;
2934 }
2935
2936 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2937    function prototypes and stuff, but not '\xHH' hex character constants.
2938    These don't provoke an error unfortunately, instead are silently treated
2939    as 'x'.  The following induces an error, until -std is added to get
2940    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2941    array size at least.  It's necessary to write '\x00'==0 to get something
2942    that's true only with -std.  */
2943 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2944
2945 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2946    inside strings and character constants.  */
2947 #define FOO(x) 'x'
2948 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2949
2950 int test (int i, double x);
2951 struct s1 {int (*f) (int a);};
2952 struct s2 {int (*f) (double a);};
2953 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2954 int argc;
2955 char **argv;
2956 int
2957 main ()
2958 {
2959 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2960   ;
2961   return 0;
2962 }
2963 _ACEOF
2964 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2965         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2966 do
2967   CC="$ac_save_CC $ac_arg"
2968   rm -f conftest.$ac_objext
2969 if { (ac_try="$ac_compile"
2970 case "(($ac_try" in
2971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2972   *) ac_try_echo=$ac_try;;
2973 esac
2974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2975   (eval "$ac_compile") 2>conftest.er1
2976   ac_status=$?
2977   grep -v '^ *+' conftest.er1 >conftest.err
2978   rm -f conftest.er1
2979   cat conftest.err >&5
2980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2981   (exit $ac_status); } && {
2982          test -z "$ac_c_werror_flag" ||
2983          test ! -s conftest.err
2984        } && test -s conftest.$ac_objext; then
2985   ac_cv_prog_cc_c89=$ac_arg
2986 else
2987   echo "$as_me: failed program was:" >&5
2988 sed 's/^/| /' conftest.$ac_ext >&5
2989
2990
2991 fi
2992
2993 rm -f core conftest.err conftest.$ac_objext
2994   test "x$ac_cv_prog_cc_c89" != "xno" && break
2995 done
2996 rm -f conftest.$ac_ext
2997 CC=$ac_save_CC
2998
2999 fi
3000 # AC_CACHE_VAL
3001 case "x$ac_cv_prog_cc_c89" in
3002   x)
3003     { echo "$as_me:$LINENO: result: none needed" >&5
3004 echo "${ECHO_T}none needed" >&6; } ;;
3005   xno)
3006     { echo "$as_me:$LINENO: result: unsupported" >&5
3007 echo "${ECHO_T}unsupported" >&6; } ;;
3008   *)
3009     CC="$CC $ac_cv_prog_cc_c89"
3010     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3011 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3012 esac
3013
3014
3015 ac_ext=c
3016 ac_cpp='$CPP $CPPFLAGS'
3017 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3018 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3019 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3020
3021 for ac_prog in 'bison -y' byacc
3022 do
3023   # Extract the first word of "$ac_prog", so it can be a program name with args.
3024 set dummy $ac_prog; ac_word=$2
3025 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3027 if test "${ac_cv_prog_YACC+set}" = set; then
3028   echo $ECHO_N "(cached) $ECHO_C" >&6
3029 else
3030   if test -n "$YACC"; then
3031   ac_cv_prog_YACC="$YACC" # Let the user override the test.
3032 else
3033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3034 for as_dir in $PATH
3035 do
3036   IFS=$as_save_IFS
3037   test -z "$as_dir" && as_dir=.
3038   for ac_exec_ext in '' $ac_executable_extensions; do
3039   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3040     ac_cv_prog_YACC="$ac_prog"
3041     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3042     break 2
3043   fi
3044 done
3045 done
3046 IFS=$as_save_IFS
3047
3048 fi
3049 fi
3050 YACC=$ac_cv_prog_YACC
3051 if test -n "$YACC"; then
3052   { echo "$as_me:$LINENO: result: $YACC" >&5
3053 echo "${ECHO_T}$YACC" >&6; }
3054 else
3055   { echo "$as_me:$LINENO: result: no" >&5
3056 echo "${ECHO_T}no" >&6; }
3057 fi
3058
3059
3060   test -n "$YACC" && break
3061 done
3062 test -n "$YACC" || YACC="yacc"
3063
3064
3065 for ac_prog in flex lex
3066 do
3067   # Extract the first word of "$ac_prog", so it can be a program name with args.
3068 set dummy $ac_prog; ac_word=$2
3069 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3070 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3071 if test "${ac_cv_prog_LEX+set}" = set; then
3072   echo $ECHO_N "(cached) $ECHO_C" >&6
3073 else
3074   if test -n "$LEX"; then
3075   ac_cv_prog_LEX="$LEX" # Let the user override the test.
3076 else
3077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3078 for as_dir in $PATH
3079 do
3080   IFS=$as_save_IFS
3081   test -z "$as_dir" && as_dir=.
3082   for ac_exec_ext in '' $ac_executable_extensions; do
3083   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3084     ac_cv_prog_LEX="$ac_prog"
3085     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3086     break 2
3087   fi
3088 done
3089 done
3090 IFS=$as_save_IFS
3091
3092 fi
3093 fi
3094 LEX=$ac_cv_prog_LEX
3095 if test -n "$LEX"; then
3096   { echo "$as_me:$LINENO: result: $LEX" >&5
3097 echo "${ECHO_T}$LEX" >&6; }
3098 else
3099   { echo "$as_me:$LINENO: result: no" >&5
3100 echo "${ECHO_T}no" >&6; }
3101 fi
3102
3103
3104   test -n "$LEX" && break
3105 done
3106 test -n "$LEX" || LEX=":"
3107
3108 if test "x$LEX" != "x:"; then
3109   cat >conftest.l <<_ACEOF
3110 %%
3111 a { ECHO; }
3112 b { REJECT; }
3113 c { yymore (); }
3114 d { yyless (1); }
3115 e { yyless (input () != 0); }
3116 f { unput (yytext[0]); }
3117 . { BEGIN INITIAL; }
3118 %%
3119 #ifdef YYTEXT_POINTER
3120 extern char *yytext;
3121 #endif
3122 int
3123 main (void)
3124 {
3125   return ! yylex () + ! yywrap ();
3126 }
3127 _ACEOF
3128 { (ac_try="$LEX conftest.l"
3129 case "(($ac_try" in
3130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3131   *) ac_try_echo=$ac_try;;
3132 esac
3133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3134   (eval "$LEX conftest.l") 2>&5
3135   ac_status=$?
3136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3137   (exit $ac_status); }
3138 { echo "$as_me:$LINENO: checking lex output file root" >&5
3139 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
3140 if test "${ac_cv_prog_lex_root+set}" = set; then
3141   echo $ECHO_N "(cached) $ECHO_C" >&6
3142 else
3143
3144 if test -f lex.yy.c; then
3145   ac_cv_prog_lex_root=lex.yy
3146 elif test -f lexyy.c; then
3147   ac_cv_prog_lex_root=lexyy
3148 else
3149   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3150 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3151    { (exit 1); exit 1; }; }
3152 fi
3153 fi
3154 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3155 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
3156 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3157
3158 if test -z "${LEXLIB+set}"; then
3159   { echo "$as_me:$LINENO: checking lex library" >&5
3160 echo $ECHO_N "checking lex library... $ECHO_C" >&6; }
3161 if test "${ac_cv_lib_lex+set}" = set; then
3162   echo $ECHO_N "(cached) $ECHO_C" >&6
3163 else
3164
3165     ac_save_LIBS=$LIBS
3166     ac_cv_lib_lex='none needed'
3167     for ac_lib in '' -lfl -ll; do
3168       LIBS="$ac_lib $ac_save_LIBS"
3169       cat >conftest.$ac_ext <<_ACEOF
3170 `cat $LEX_OUTPUT_ROOT.c`
3171 _ACEOF
3172 rm -f conftest.$ac_objext conftest$ac_exeext
3173 if { (ac_try="$ac_link"
3174 case "(($ac_try" in
3175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3176   *) ac_try_echo=$ac_try;;
3177 esac
3178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3179   (eval "$ac_link") 2>conftest.er1
3180   ac_status=$?
3181   grep -v '^ *+' conftest.er1 >conftest.err
3182   rm -f conftest.er1
3183   cat conftest.err >&5
3184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3185   (exit $ac_status); } && {
3186          test -z "$ac_c_werror_flag" ||
3187          test ! -s conftest.err
3188        } && test -s conftest$ac_exeext &&
3189        $as_test_x conftest$ac_exeext; then
3190   ac_cv_lib_lex=$ac_lib
3191 else
3192   echo "$as_me: failed program was:" >&5
3193 sed 's/^/| /' conftest.$ac_ext >&5
3194
3195
3196 fi
3197
3198 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3199       conftest$ac_exeext conftest.$ac_ext
3200       test "$ac_cv_lib_lex" != 'none needed' && break
3201     done
3202     LIBS=$ac_save_LIBS
3203
3204 fi
3205 { echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
3206 echo "${ECHO_T}$ac_cv_lib_lex" >&6; }
3207   test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
3208 fi
3209
3210
3211 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3212 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
3213 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3214   echo $ECHO_N "(cached) $ECHO_C" >&6
3215 else
3216   # POSIX says lex can declare yytext either as a pointer or an array; the
3217 # default is implementation-dependent.  Figure out which it is, since
3218 # not all implementations provide the %pointer and %array declarations.
3219 ac_cv_prog_lex_yytext_pointer=no
3220 ac_save_LIBS=$LIBS
3221 LIBS="$LEXLIB $ac_save_LIBS"
3222 cat >conftest.$ac_ext <<_ACEOF
3223 #define YYTEXT_POINTER 1
3224 `cat $LEX_OUTPUT_ROOT.c`
3225 _ACEOF
3226 rm -f conftest.$ac_objext conftest$ac_exeext
3227 if { (ac_try="$ac_link"
3228 case "(($ac_try" in
3229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3230   *) ac_try_echo=$ac_try;;
3231 esac
3232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3233   (eval "$ac_link") 2>conftest.er1
3234   ac_status=$?
3235   grep -v '^ *+' conftest.er1 >conftest.err
3236   rm -f conftest.er1
3237   cat conftest.err >&5
3238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3239   (exit $ac_status); } && {
3240          test -z "$ac_c_werror_flag" ||
3241          test ! -s conftest.err
3242        } && test -s conftest$ac_exeext &&
3243        $as_test_x conftest$ac_exeext; then
3244   ac_cv_prog_lex_yytext_pointer=yes
3245 else
3246   echo "$as_me: failed program was:" >&5
3247 sed 's/^/| /' conftest.$ac_ext >&5
3248
3249
3250 fi
3251
3252 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3253       conftest$ac_exeext conftest.$ac_ext
3254 LIBS=$ac_save_LIBS
3255
3256 fi
3257 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3258 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
3259 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3260
3261 cat >>confdefs.h <<\_ACEOF
3262 #define YYTEXT_POINTER 1
3263 _ACEOF
3264
3265 fi
3266 rm -f conftest.l $LEX_OUTPUT_ROOT.c
3267
3268 fi
3269 # Find a good install program.  We prefer a C program (faster),
3270 # so one script is as good as another.  But avoid the broken or
3271 # incompatible versions:
3272 # SysV /etc/install, /usr/sbin/install
3273 # SunOS /usr/etc/install
3274 # IRIX /sbin/install
3275 # AIX /bin/install
3276 # AmigaOS /C/install, which installs bootblocks on floppy discs
3277 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3278 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3279 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3280 # OS/2's system install, which has a completely different semantic
3281 # ./install, which can be erroneously created by make from ./install.sh.
3282 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3283 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3284 if test -z "$INSTALL"; then
3285 if test "${ac_cv_path_install+set}" = set; then
3286   echo $ECHO_N "(cached) $ECHO_C" >&6
3287 else
3288   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3289 for as_dir in $PATH
3290 do
3291   IFS=$as_save_IFS
3292   test -z "$as_dir" && as_dir=.
3293   # Account for people who put trailing slashes in PATH elements.
3294 case $as_dir/ in
3295   ./ | .// | /cC/* | \
3296   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3297   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3298   /usr/ucb/* ) ;;
3299   *)
3300     # OSF1 and SCO ODT 3.0 have their own names for install.
3301     # Don't use installbsd from OSF since it installs stuff as root
3302     # by default.
3303     for ac_prog in ginstall scoinst install; do
3304       for ac_exec_ext in '' $ac_executable_extensions; do
3305         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3306           if test $ac_prog = install &&
3307             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3308             # AIX install.  It has an incompatible calling convention.
3309             :
3310           elif test $ac_prog = install &&
3311             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3312             # program-specific install script used by HP pwplus--don't use.
3313             :
3314           else
3315             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3316             break 3
3317           fi
3318         fi
3319       done
3320     done
3321     ;;
3322 esac
3323 done
3324 IFS=$as_save_IFS
3325
3326
3327 fi
3328   if test "${ac_cv_path_install+set}" = set; then
3329     INSTALL=$ac_cv_path_install
3330   else
3331     # As a last resort, use the slow shell script.  Don't cache a
3332     # value for INSTALL within a source directory, because that will
3333     # break other packages using the cache if that directory is
3334     # removed, or if the value is a relative name.
3335     INSTALL=$ac_install_sh
3336   fi
3337 fi
3338 { echo "$as_me:$LINENO: result: $INSTALL" >&5
3339 echo "${ECHO_T}$INSTALL" >&6; }
3340
3341 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3342 # It thinks the first close brace ends the variable substitution.
3343 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3344
3345 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3346
3347 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3348
3349 if test -n "$ac_tool_prefix"; then
3350   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3351 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3352 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3353 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3354 if test "${ac_cv_prog_RANLIB+set}" = set; then
3355   echo $ECHO_N "(cached) $ECHO_C" >&6
3356 else
3357   if test -n "$RANLIB"; then
3358   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3359 else
3360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3361 for as_dir in $PATH
3362 do
3363   IFS=$as_save_IFS
3364   test -z "$as_dir" && as_dir=.
3365   for ac_exec_ext in '' $ac_executable_extensions; do
3366   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3367     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3368     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3369     break 2
3370   fi
3371 done
3372 done
3373 IFS=$as_save_IFS
3374
3375 fi
3376 fi
3377 RANLIB=$ac_cv_prog_RANLIB
3378 if test -n "$RANLIB"; then
3379   { echo "$as_me:$LINENO: result: $RANLIB" >&5
3380 echo "${ECHO_T}$RANLIB" >&6; }
3381 else
3382   { echo "$as_me:$LINENO: result: no" >&5
3383 echo "${ECHO_T}no" >&6; }
3384 fi
3385
3386
3387 fi
3388 if test -z "$ac_cv_prog_RANLIB"; then
3389   ac_ct_RANLIB=$RANLIB
3390   # Extract the first word of "ranlib", so it can be a program name with args.
3391 set dummy ranlib; ac_word=$2
3392 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3393 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3394 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3395   echo $ECHO_N "(cached) $ECHO_C" >&6
3396 else
3397   if test -n "$ac_ct_RANLIB"; then
3398   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3399 else
3400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3401 for as_dir in $PATH
3402 do
3403   IFS=$as_save_IFS
3404   test -z "$as_dir" && as_dir=.
3405   for ac_exec_ext in '' $ac_executable_extensions; do
3406   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3407     ac_cv_prog_ac_ct_RANLIB="ranlib"
3408     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3409     break 2
3410   fi
3411 done
3412 done
3413 IFS=$as_save_IFS
3414
3415 fi
3416 fi
3417 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3418 if test -n "$ac_ct_RANLIB"; then
3419   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3420 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
3421 else
3422   { echo "$as_me:$LINENO: result: no" >&5
3423 echo "${ECHO_T}no" >&6; }
3424 fi
3425
3426   if test "x$ac_ct_RANLIB" = x; then
3427     RANLIB=":"
3428   else
3429     case $cross_compiling:$ac_tool_warned in
3430 yes:)
3431 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3432 whose name does not start with the host triplet.  If you think this
3433 configuration is useful to you, please write to autoconf@gnu.org." >&5
3434 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3435 whose name does not start with the host triplet.  If you think this
3436 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3437 ac_tool_warned=yes ;;
3438 esac
3439     RANLIB=$ac_ct_RANLIB
3440   fi
3441 else
3442   RANLIB="$ac_cv_prog_RANLIB"
3443 fi
3444
3445 # Check whether --enable-shared was given.
3446 if test "${enable_shared+set}" = set; then
3447   enableval=$enable_shared; p=${PACKAGE-default}
3448     case $enableval in
3449     yes) enable_shared=yes ;;
3450     no) enable_shared=no ;;
3451     *)
3452       enable_shared=no
3453       # Look at the argument we got.  We use all the common list separators.
3454       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3455       for pkg in $enableval; do
3456         IFS="$lt_save_ifs"
3457         if test "X$pkg" = "X$p"; then
3458           enable_shared=yes
3459         fi
3460       done
3461       IFS="$lt_save_ifs"
3462       ;;
3463     esac
3464 else
3465   enable_shared=yes
3466 fi
3467
3468
3469 # Check whether --enable-static was given.
3470 if test "${enable_static+set}" = set; then
3471   enableval=$enable_static; p=${PACKAGE-default}
3472     case $enableval in
3473     yes) enable_static=yes ;;
3474     no) enable_static=no ;;
3475     *)
3476      enable_static=no
3477       # Look at the argument we got.  We use all the common list separators.
3478       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3479       for pkg in $enableval; do
3480         IFS="$lt_save_ifs"
3481         if test "X$pkg" = "X$p"; then
3482           enable_static=yes
3483         fi
3484       done
3485       IFS="$lt_save_ifs"
3486       ;;
3487     esac
3488 else
3489   enable_static=yes
3490 fi
3491
3492
3493 # Check whether --enable-fast-install was given.
3494 if test "${enable_fast_install+set}" = set; then
3495   enableval=$enable_fast_install; p=${PACKAGE-default}
3496     case $enableval in
3497     yes) enable_fast_install=yes ;;
3498     no) enable_fast_install=no ;;
3499     *)
3500       enable_fast_install=no
3501       # Look at the argument we got.  We use all the common list separators.
3502       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3503       for pkg in $enableval; do
3504         IFS="$lt_save_ifs"
3505         if test "X$pkg" = "X$p"; then
3506           enable_fast_install=yes
3507         fi
3508       done
3509       IFS="$lt_save_ifs"
3510       ;;
3511     esac
3512 else
3513   enable_fast_install=yes
3514 fi
3515
3516
3517 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3518 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3519 if test "${lt_cv_path_SED+set}" = set; then
3520   echo $ECHO_N "(cached) $ECHO_C" >&6
3521 else
3522   # Loop through the user's path and test for sed and gsed.
3523 # Then use that list of sed's as ones to test for truncation.
3524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3525 for as_dir in $PATH
3526 do
3527   IFS=$as_save_IFS
3528   test -z "$as_dir" && as_dir=.
3529   for lt_ac_prog in sed gsed; do
3530     for ac_exec_ext in '' $ac_executable_extensions; do
3531       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3532         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3533       fi
3534     done
3535   done
3536 done
3537 lt_ac_max=0
3538 lt_ac_count=0
3539 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3540 # along with /bin/sed that truncates output.
3541 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3542   test ! -f $lt_ac_sed && break
3543   cat /dev/null > conftest.in
3544   lt_ac_count=0
3545   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3546   # Check for GNU sed and select it if it is found.
3547   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3548     lt_cv_path_SED=$lt_ac_sed
3549     break
3550   fi
3551   while true; do
3552     cat conftest.in conftest.in >conftest.tmp
3553     mv conftest.tmp conftest.in
3554     cp conftest.in conftest.nl
3555     echo >>conftest.nl
3556     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3557     cmp -s conftest.out conftest.nl || break
3558     # 10000 chars as input seems more than enough
3559     test $lt_ac_count -gt 10 && break
3560     lt_ac_count=`expr $lt_ac_count + 1`
3561     if test $lt_ac_count -gt $lt_ac_max; then
3562       lt_ac_max=$lt_ac_count
3563       lt_cv_path_SED=$lt_ac_sed
3564     fi
3565   done
3566 done
3567 SED=$lt_cv_path_SED
3568
3569 fi
3570
3571 { echo "$as_me:$LINENO: result: $SED" >&5
3572 echo "${ECHO_T}$SED" >&6; }
3573
3574 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3575 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3576 if test "${ac_cv_path_GREP+set}" = set; then
3577   echo $ECHO_N "(cached) $ECHO_C" >&6
3578 else
3579   # Extract the first word of "grep ggrep" to use in msg output
3580 if test -z "$GREP"; then
3581 set dummy grep ggrep; ac_prog_name=$2
3582 if test "${ac_cv_path_GREP+set}" = set; then
3583   echo $ECHO_N "(cached) $ECHO_C" >&6
3584 else
3585   ac_path_GREP_found=false
3586 # Loop through the user's path and test for each of PROGNAME-LIST
3587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3588 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3589 do
3590   IFS=$as_save_IFS
3591   test -z "$as_dir" && as_dir=.
3592   for ac_prog in grep ggrep; do
3593   for ac_exec_ext in '' $ac_executable_extensions; do
3594     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3595     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3596     # Check for GNU ac_path_GREP and select it if it is found.
3597   # Check for GNU $ac_path_GREP
3598 case `"$ac_path_GREP" --version 2>&1` in
3599 *GNU*)
3600   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3601 *)
3602   ac_count=0
3603   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3604   while :
3605   do
3606     cat "conftest.in" "conftest.in" >"conftest.tmp"
3607     mv "conftest.tmp" "conftest.in"
3608     cp "conftest.in" "conftest.nl"
3609     echo 'GREP' >> "conftest.nl"
3610     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3611     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3612     ac_count=`expr $ac_count + 1`
3613     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3614       # Best one so far, save it but keep looking for a better one
3615       ac_cv_path_GREP="$ac_path_GREP"
3616       ac_path_GREP_max=$ac_count
3617     fi
3618     # 10*(2^10) chars as input seems more than enough
3619     test $ac_count -gt 10 && break
3620   done
3621   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3622 esac
3623
3624
3625     $ac_path_GREP_found && break 3
3626   done
3627 done
3628
3629 done
3630 IFS=$as_save_IFS
3631
3632
3633 fi
3634
3635 GREP="$ac_cv_path_GREP"
3636 if test -z "$GREP"; then
3637   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3638 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3639    { (exit 1); exit 1; }; }
3640 fi
3641
3642 else
3643   ac_cv_path_GREP=$GREP
3644 fi
3645
3646
3647 fi
3648 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3649 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3650  GREP="$ac_cv_path_GREP"
3651
3652
3653 { echo "$as_me:$LINENO: checking for egrep" >&5
3654 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3655 if test "${ac_cv_path_EGREP+set}" = set; then
3656   echo $ECHO_N "(cached) $ECHO_C" >&6
3657 else
3658   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3659    then ac_cv_path_EGREP="$GREP -E"
3660    else
3661      # Extract the first word of "egrep" to use in msg output
3662 if test -z "$EGREP"; then
3663 set dummy egrep; ac_prog_name=$2
3664 if test "${ac_cv_path_EGREP+set}" = set; then
3665   echo $ECHO_N "(cached) $ECHO_C" >&6
3666 else
3667   ac_path_EGREP_found=false
3668 # Loop through the user's path and test for each of PROGNAME-LIST
3669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3670 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3671 do
3672   IFS=$as_save_IFS
3673   test -z "$as_dir" && as_dir=.
3674   for ac_prog in egrep; do
3675   for ac_exec_ext in '' $ac_executable_extensions; do
3676     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3677     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3678     # Check for GNU ac_path_EGREP and select it if it is found.
3679   # Check for GNU $ac_path_EGREP
3680 case `"$ac_path_EGREP" --version 2>&1` in
3681 *GNU*)
3682   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3683 *)
3684   ac_count=0
3685   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3686   while :
3687   do
3688     cat "conftest.in" "conftest.in" >"conftest.tmp"
3689     mv "conftest.tmp" "conftest.in"
3690     cp "conftest.in" "conftest.nl"
3691     echo 'EGREP' >> "conftest.nl"
3692     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3693     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3694     ac_count=`expr $ac_count + 1`
3695     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3696       # Best one so far, save it but keep looking for a better one
3697       ac_cv_path_EGREP="$ac_path_EGREP"
3698       ac_path_EGREP_max=$ac_count
3699     fi
3700     # 10*(2^10) chars as input seems more than enough
3701     test $ac_count -gt 10 && break
3702   done
3703   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3704 esac
3705
3706
3707     $ac_path_EGREP_found && break 3
3708   done
3709 done
3710
3711 done
3712 IFS=$as_save_IFS
3713
3714
3715 fi
3716
3717 EGREP="$ac_cv_path_EGREP"
3718 if test -z "$EGREP"; then
3719   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3720 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3721    { (exit 1); exit 1; }; }
3722 fi
3723
3724 else
3725   ac_cv_path_EGREP=$EGREP
3726 fi
3727
3728
3729    fi
3730 fi
3731 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3732 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3733  EGREP="$ac_cv_path_EGREP"
3734
3735
3736
3737 # Check whether --with-gnu-ld was given.
3738 if test "${with_gnu_ld+set}" = set; then
3739   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3740 else
3741   with_gnu_ld=no
3742 fi
3743
3744 ac_prog=ld
3745 if test "$GCC" = yes; then
3746   # Check if gcc -print-prog-name=ld gives a path.
3747   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3748 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
3749   case $host in
3750   *-*-mingw*)
3751     # gcc leaves a trailing carriage return which upsets mingw
3752     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3753   *)
3754     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3755   esac
3756   case $ac_prog in
3757     # Accept absolute paths.
3758     [\\/]* | ?:[\\/]*)
3759       re_direlt='/[^/][^/]*/\.\./'
3760       # Canonicalize the pathname of ld
3761       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3762       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3763         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3764       done
3765       test -z "$LD" && LD="$ac_prog"
3766       ;;
3767   "")
3768     # If it fails, then pretend we aren't using GCC.
3769     ac_prog=ld
3770     ;;
3771   *)
3772     # If it is relative, then search for the first ld in PATH.
3773     with_gnu_ld=unknown
3774     ;;
3775   esac
3776 elif test "$with_gnu_ld" = yes; then
3777   { echo "$as_me:$LINENO: checking for GNU ld" >&5
3778 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
3779 else
3780   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3781 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
3782 fi
3783 if test "${lt_cv_path_LD+set}" = set; then
3784   echo $ECHO_N "(cached) $ECHO_C" >&6
3785 else
3786   if test -z "$LD"; then
3787   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3788   for ac_dir in $PATH; do
3789     IFS="$lt_save_ifs"
3790     test -z "$ac_dir" && ac_dir=.
3791     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3792       lt_cv_path_LD="$ac_dir/$ac_prog"
3793       # Check to see if the program is GNU ld.  I'd rather use --version,
3794       # but apparently some GNU ld's only accept -v.
3795       # Break only if it was the GNU/non-GNU ld that we prefer.
3796       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3797       *GNU* | *'with BFD'*)
3798         test "$with_gnu_ld" != no && break
3799         ;;
3800       *)
3801         test "$with_gnu_ld" != yes && break
3802         ;;
3803       esac
3804     fi
3805   done
3806   IFS="$lt_save_ifs"
3807 else
3808   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3809 fi
3810 fi
3811
3812 LD="$lt_cv_path_LD"
3813 if test -n "$LD"; then
3814   { echo "$as_me:$LINENO: result: $LD" >&5
3815 echo "${ECHO_T}$LD" >&6; }
3816 else
3817   { echo "$as_me:$LINENO: result: no" >&5
3818 echo "${ECHO_T}no" >&6; }
3819 fi
3820 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3821 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3822    { (exit 1); exit 1; }; }
3823 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3824 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
3825 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3826   echo $ECHO_N "(cached) $ECHO_C" >&6
3827 else
3828   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3829 case `$LD -v 2>&1 </dev/null` in
3830 *GNU* | *'with BFD'*)
3831   lt_cv_prog_gnu_ld=yes
3832   ;;
3833 *)
3834   lt_cv_prog_gnu_ld=no
3835   ;;
3836 esac
3837 fi
3838 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3839 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
3840 with_gnu_ld=$lt_cv_prog_gnu_ld
3841
3842
3843 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3844 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
3845 if test "${lt_cv_ld_reload_flag+set}" = set; then
3846   echo $ECHO_N "(cached) $ECHO_C" >&6
3847 else
3848   lt_cv_ld_reload_flag='-r'
3849 fi
3850 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3851 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
3852 reload_flag=$lt_cv_ld_reload_flag
3853 case $reload_flag in
3854 "" | " "*) ;;
3855 *) reload_flag=" $reload_flag" ;;
3856 esac
3857 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3858
3859 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3860 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
3861 if test "${lt_cv_path_NM+set}" = set; then
3862   echo $ECHO_N "(cached) $ECHO_C" >&6
3863 else
3864   if test -n "$NM"; then
3865   # Let the user override the test.
3866   lt_cv_path_NM="$NM"
3867 else
3868   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3869   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3870     IFS="$lt_save_ifs"
3871     test -z "$ac_dir" && ac_dir=.
3872     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3873     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3874       # Check to see if the nm accepts a BSD-compat flag.
3875       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3876       #   nm: unknown option "B" ignored
3877       # Tru64's nm complains that /dev/null is an invalid object file
3878       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3879       */dev/null* | *'Invalid file or object type'*)
3880         lt_cv_path_NM="$tmp_nm -B"
3881         break
3882         ;;
3883       *)
3884         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3885         */dev/null*)
3886           lt_cv_path_NM="$tmp_nm -p"
3887           break
3888           ;;
3889         *)
3890           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3891           continue # so that we can try to find one that supports BSD flags
3892           ;;
3893         esac
3894       esac
3895     fi
3896   done
3897   IFS="$lt_save_ifs"
3898   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3899 fi
3900 fi
3901 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3902 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
3903 NM="$lt_cv_path_NM"
3904
3905 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
3906 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
3907 LN_S=$as_ln_s
3908 if test "$LN_S" = "ln -s"; then
3909   { echo "$as_me:$LINENO: result: yes" >&5
3910 echo "${ECHO_T}yes" >&6; }
3911 else
3912   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3913 echo "${ECHO_T}no, using $LN_S" >&6; }
3914 fi
3915
3916 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3917 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
3918 if test "${lt_cv_deplibs_check_method+set}" = set; then
3919   echo $ECHO_N "(cached) $ECHO_C" >&6
3920 else
3921   lt_cv_file_magic_cmd='$MAGIC_CMD'
3922 lt_cv_file_magic_test_file=
3923 lt_cv_deplibs_check_method='unknown'
3924 # Need to set the preceding variable on all platforms that support
3925 # interlibrary dependencies.
3926 # 'none' -- dependencies not supported.
3927 # `unknown' -- same as none, but documents that we really don't know.
3928 # 'pass_all' -- all dependencies passed with no checks.
3929 # 'test_compile' -- check by making test program.
3930 # 'file_magic [[regex]]' -- check by looking for files in library path
3931 # which responds to the $file_magic_cmd with a given extended regex.
3932 # If you have `file' or equivalent on your system and you're not sure
3933 # whether `pass_all' will *always* work, you probably want this one.
3934
3935 case $host_os in
3936 aix4* | aix5*)
3937   lt_cv_deplibs_check_method=pass_all
3938   ;;
3939
3940 beos*)
3941   lt_cv_deplibs_check_method=pass_all
3942   ;;
3943
3944 bsdi4*)
3945   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3946   lt_cv_file_magic_cmd='/usr/bin/file -L'
3947   lt_cv_file_magic_test_file=/shlib/libc.so
3948   ;;
3949
3950 cygwin*)
3951   # func_win32_libid is a shell function defined in ltmain.sh
3952   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3953   lt_cv_file_magic_cmd='func_win32_libid'
3954   ;;
3955
3956 mingw* | pw32*)
3957   # Base MSYS/MinGW do not provide the 'file' command needed by
3958   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3959   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3960   lt_cv_file_magic_cmd='$OBJDUMP -f'
3961   ;;
3962
3963 darwin* | rhapsody*)
3964   lt_cv_deplibs_check_method=pass_all
3965   ;;
3966
3967 freebsd* | kfreebsd*-gnu)
3968   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3969     case $host_cpu in
3970     i*86 )
3971       # Not sure whether the presence of OpenBSD here was a mistake.
3972       # Let's accept both of them until this is cleared up.
3973       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3974       lt_cv_file_magic_cmd=/usr/bin/file
3975       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3976       ;;
3977     esac
3978   else
3979     lt_cv_deplibs_check_method=pass_all
3980   fi
3981   ;;
3982
3983 gnu*)
3984   lt_cv_deplibs_check_method=pass_all
3985   ;;
3986
3987 hpux10.20* | hpux11*)
3988   lt_cv_file_magic_cmd=/usr/bin/file
3989   case "$host_cpu" in
3990   ia64*)
3991     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3992     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3993     ;;
3994   hppa*64*)
3995     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]'
3996     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3997     ;;
3998   *)
3999     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4000     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4001     ;;
4002   esac
4003   ;;
4004
4005 irix5* | irix6* | nonstopux*)
4006   case $LD in
4007   *-32|*"-32 ") libmagic=32-bit;;
4008   *-n32|*"-n32 ") libmagic=N32;;
4009   *-64|*"-64 ") libmagic=64-bit;;
4010   *) libmagic=never-match;;
4011   esac
4012   lt_cv_deplibs_check_method=pass_all
4013   ;;
4014
4015 # This must be Linux ELF.
4016 linux*)
4017   case $host_cpu in
4018   alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*|x86_64*)
4019     lt_cv_deplibs_check_method=pass_all ;;
4020   *)
4021     # glibc up to 2.1.1 does not perform some relocations on ARM
4022     # this will be overridden with pass_all, but let us keep it just in case
4023     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4024   esac
4025   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4026   lt_cv_deplibs_check_method=pass_all
4027   ;;
4028
4029 netbsd*)
4030   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4031     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4032   else
4033     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4034   fi
4035   ;;
4036
4037 newos6*)
4038   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4039   lt_cv_file_magic_cmd=/usr/bin/file
4040   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4041   ;;
4042
4043 nto-qnx*)
4044   lt_cv_deplibs_check_method=unknown
4045   ;;
4046
4047 openbsd*)
4048   lt_cv_file_magic_cmd=/usr/bin/file
4049   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4050   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4051     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4052   else
4053     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4054   fi
4055   ;;
4056
4057 osf3* | osf4* | osf5*)
4058   lt_cv_deplibs_check_method=pass_all
4059   ;;
4060
4061 sco3.2v5*)
4062   lt_cv_deplibs_check_method=pass_all
4063   ;;
4064
4065 solaris*)
4066   lt_cv_deplibs_check_method=pass_all
4067   ;;
4068
4069 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4070   case $host_vendor in
4071   motorola)
4072     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]'
4073     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4074     ;;
4075   ncr)
4076     lt_cv_deplibs_check_method=pass_all
4077     ;;
4078   sequent)
4079     lt_cv_file_magic_cmd='/bin/file'
4080     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4081     ;;
4082   sni)
4083     lt_cv_file_magic_cmd='/bin/file'
4084     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4085     lt_cv_file_magic_test_file=/lib/libc.so
4086     ;;
4087   siemens)
4088     lt_cv_deplibs_check_method=pass_all
4089     ;;
4090   esac
4091   ;;
4092
4093 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4094   lt_cv_deplibs_check_method=pass_all
4095   ;;
4096 esac
4097
4098 fi
4099 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4100 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4101 file_magic_cmd=$lt_cv_file_magic_cmd
4102 deplibs_check_method=$lt_cv_deplibs_check_method
4103 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4104
4105
4106
4107
4108 # If no C compiler was specified, use CC.
4109 LTCC=${LTCC-"$CC"}
4110
4111 # Allow CC to be a program name with arguments.
4112 compiler=$CC
4113
4114 # Check whether --enable-libtool-lock was given.
4115 if test "${enable_libtool_lock+set}" = set; then
4116   enableval=$enable_libtool_lock;
4117 fi
4118
4119 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4120
4121 # Some flags need to be propagated to the compiler or linker for good
4122 # libtool support.
4123 case $host in
4124 ia64-*-hpux*)
4125   # Find out which ABI we are using.
4126   echo 'int i;' > conftest.$ac_ext
4127   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4128   (eval $ac_compile) 2>&5
4129   ac_status=$?
4130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4131   (exit $ac_status); }; then
4132     case `/usr/bin/file conftest.$ac_objext` in
4133     *ELF-32*)
4134       HPUX_IA64_MODE="32"
4135       ;;
4136     *ELF-64*)
4137       HPUX_IA64_MODE="64"
4138       ;;
4139     esac
4140   fi
4141   rm -rf conftest*
4142   ;;
4143 *-*-irix6*)
4144   # Find out which ABI we are using.
4145   echo '#line 4145 "configure"' > conftest.$ac_ext
4146   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4147   (eval $ac_compile) 2>&5
4148   ac_status=$?
4149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4150   (exit $ac_status); }; then
4151    if test "$lt_cv_prog_gnu_ld" = yes; then
4152     case `/usr/bin/file conftest.$ac_objext` in
4153     *32-bit*)
4154       LD="${LD-ld} -melf32bsmip"
4155       ;;
4156     *N32*)
4157       LD="${LD-ld} -melf32bmipn32"
4158       ;;
4159     *64-bit*)
4160       LD="${LD-ld} -melf64bmip"
4161       ;;
4162     esac
4163    else
4164     case `/usr/bin/file conftest.$ac_objext` in
4165     *32-bit*)
4166       LD="${LD-ld} -32"
4167       ;;
4168     *N32*)
4169       LD="${LD-ld} -n32"
4170       ;;
4171     *64-bit*)
4172       LD="${LD-ld} -64"
4173       ;;
4174     esac
4175    fi
4176   fi
4177   rm -rf conftest*
4178   ;;
4179
4180 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4181   # Find out which ABI we are using.
4182   echo 'int i;' > conftest.$ac_ext
4183   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4184   (eval $ac_compile) 2>&5
4185   ac_status=$?
4186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4187   (exit $ac_status); }; then
4188     case "`/usr/bin/file conftest.o`" in
4189     *32-bit*)
4190       case $host in
4191         x86_64-*linux*)
4192           LD="${LD-ld} -m elf_i386"
4193           ;;
4194         ppc64-*linux*|powerpc64-*linux*)
4195           LD="${LD-ld} -m elf32ppclinux"
4196           ;;
4197         s390x-*linux*)
4198           LD="${LD-ld} -m elf_s390"
4199           ;;
4200         sparc64-*linux*)
4201           LD="${LD-ld} -m elf32_sparc"
4202           ;;
4203       esac
4204       ;;
4205     *64-bit*)
4206       case $host in
4207         x86_64-*linux*)
4208           LD="${LD-ld} -m elf_x86_64"
4209           ;;
4210         ppc*-*linux*|powerpc*-*linux*)
4211           LD="${LD-ld} -m elf64ppc"
4212           ;;
4213         s390*-*linux*)
4214           LD="${LD-ld} -m elf64_s390"
4215           ;;
4216         sparc*-*linux*)
4217           LD="${LD-ld} -m elf64_sparc"
4218           ;;
4219       esac
4220       ;;
4221     esac
4222   fi
4223   rm -rf conftest*
4224   ;;
4225
4226 *-*-sco3.2v5*)
4227   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4228   SAVE_CFLAGS="$CFLAGS"
4229   CFLAGS="$CFLAGS -belf"
4230   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4231 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4232 if test "${lt_cv_cc_needs_belf+set}" = set; then
4233   echo $ECHO_N "(cached) $ECHO_C" >&6
4234 else
4235   ac_ext=c
4236 ac_cpp='$CPP $CPPFLAGS'
4237 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4238 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4239 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4240
4241      cat >conftest.$ac_ext <<_ACEOF
4242 /* confdefs.h.  */
4243 _ACEOF
4244 cat confdefs.h >>conftest.$ac_ext
4245 cat >>conftest.$ac_ext <<_ACEOF
4246 /* end confdefs.h.  */
4247
4248 int
4249 main ()
4250 {
4251
4252   ;
4253   return 0;
4254 }
4255 _ACEOF
4256 rm -f conftest.$ac_objext conftest$ac_exeext
4257 if { (ac_try="$ac_link"
4258 case "(($ac_try" in
4259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4260   *) ac_try_echo=$ac_try;;
4261 esac
4262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4263   (eval "$ac_link") 2>conftest.er1
4264   ac_status=$?
4265   grep -v '^ *+' conftest.er1 >conftest.err
4266   rm -f conftest.er1
4267   cat conftest.err >&5
4268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4269   (exit $ac_status); } && {
4270          test -z "$ac_c_werror_flag" ||
4271          test ! -s conftest.err
4272        } && test -s conftest$ac_exeext &&
4273        $as_test_x conftest$ac_exeext; then
4274   lt_cv_cc_needs_belf=yes
4275 else
4276   echo "$as_me: failed program was:" >&5
4277 sed 's/^/| /' conftest.$ac_ext >&5
4278
4279         lt_cv_cc_needs_belf=no
4280 fi
4281
4282 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4283       conftest$ac_exeext conftest.$ac_ext
4284      ac_ext=c
4285 ac_cpp='$CPP $CPPFLAGS'
4286 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4287 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4288 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4289
4290 fi
4291 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4292 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4293   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4294     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4295     CFLAGS="$SAVE_CFLAGS"
4296   fi
4297   ;;
4298
4299 esac
4300
4301 need_locks="$enable_libtool_lock"
4302
4303
4304 ac_ext=c
4305 ac_cpp='$CPP $CPPFLAGS'
4306 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4307 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4308 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4309 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4310 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4311 # On Suns, sometimes $CPP names a directory.
4312 if test -n "$CPP" && test -d "$CPP"; then
4313   CPP=
4314 fi
4315 if test -z "$CPP"; then
4316   if test "${ac_cv_prog_CPP+set}" = set; then
4317   echo $ECHO_N "(cached) $ECHO_C" >&6
4318 else
4319       # Double quotes because CPP needs to be expanded
4320     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4321     do
4322       ac_preproc_ok=false
4323 for ac_c_preproc_warn_flag in '' yes
4324 do
4325   # Use a header file that comes with gcc, so configuring glibc
4326   # with a fresh cross-compiler works.
4327   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4328   # <limits.h> exists even on freestanding compilers.
4329   # On the NeXT, cc -E runs the code through the compiler's parser,
4330   # not just through cpp. "Syntax error" is here to catch this case.
4331   cat >conftest.$ac_ext <<_ACEOF
4332 /* confdefs.h.  */
4333 _ACEOF
4334 cat confdefs.h >>conftest.$ac_ext
4335 cat >>conftest.$ac_ext <<_ACEOF
4336 /* end confdefs.h.  */
4337 #ifdef __STDC__
4338 # include <limits.h>
4339 #else
4340 # include <assert.h>
4341 #endif
4342                      Syntax error
4343 _ACEOF
4344 if { (ac_try="$ac_cpp conftest.$ac_ext"
4345 case "(($ac_try" in
4346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4347   *) ac_try_echo=$ac_try;;
4348 esac
4349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4350   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4351   ac_status=$?
4352   grep -v '^ *+' conftest.er1 >conftest.err
4353   rm -f conftest.er1
4354   cat conftest.err >&5
4355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4356   (exit $ac_status); } >/dev/null && {
4357          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4358          test ! -s conftest.err
4359        }; then
4360   :
4361 else
4362   echo "$as_me: failed program was:" >&5
4363 sed 's/^/| /' conftest.$ac_ext >&5
4364
4365   # Broken: fails on valid input.
4366 continue
4367 fi
4368
4369 rm -f conftest.err conftest.$ac_ext
4370
4371   # OK, works on sane cases.  Now check whether nonexistent headers
4372   # can be detected and how.
4373   cat >conftest.$ac_ext <<_ACEOF
4374 /* confdefs.h.  */
4375 _ACEOF
4376 cat confdefs.h >>conftest.$ac_ext
4377 cat >>conftest.$ac_ext <<_ACEOF
4378 /* end confdefs.h.  */
4379 #include <ac_nonexistent.h>
4380 _ACEOF
4381 if { (ac_try="$ac_cpp conftest.$ac_ext"
4382 case "(($ac_try" in
4383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4384   *) ac_try_echo=$ac_try;;
4385 esac
4386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4387   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4388   ac_status=$?
4389   grep -v '^ *+' conftest.er1 >conftest.err
4390   rm -f conftest.er1
4391   cat conftest.err >&5
4392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4393   (exit $ac_status); } >/dev/null && {
4394          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4395          test ! -s conftest.err
4396        }; then
4397   # Broken: success on invalid input.
4398 continue
4399 else
4400   echo "$as_me: failed program was:" >&5
4401 sed 's/^/| /' conftest.$ac_ext >&5
4402
4403   # Passes both tests.
4404 ac_preproc_ok=:
4405 break
4406 fi
4407
4408 rm -f conftest.err conftest.$ac_ext
4409
4410 done
4411 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4412 rm -f conftest.err conftest.$ac_ext
4413 if $ac_preproc_ok; then
4414   break
4415 fi
4416
4417     done
4418     ac_cv_prog_CPP=$CPP
4419
4420 fi
4421   CPP=$ac_cv_prog_CPP
4422 else
4423   ac_cv_prog_CPP=$CPP
4424 fi
4425 { echo "$as_me:$LINENO: result: $CPP" >&5
4426 echo "${ECHO_T}$CPP" >&6; }
4427 ac_preproc_ok=false
4428 for ac_c_preproc_warn_flag in '' yes
4429 do
4430   # Use a header file that comes with gcc, so configuring glibc
4431   # with a fresh cross-compiler works.
4432   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4433   # <limits.h> exists even on freestanding compilers.
4434   # On the NeXT, cc -E runs the code through the compiler's parser,
4435   # not just through cpp. "Syntax error" is here to catch this case.
4436   cat >conftest.$ac_ext <<_ACEOF
4437 /* confdefs.h.  */
4438 _ACEOF
4439 cat confdefs.h >>conftest.$ac_ext
4440 cat >>conftest.$ac_ext <<_ACEOF
4441 /* end confdefs.h.  */
4442 #ifdef __STDC__
4443 # include <limits.h>
4444 #else
4445 # include <assert.h>
4446 #endif
4447                      Syntax error
4448 _ACEOF
4449 if { (ac_try="$ac_cpp conftest.$ac_ext"
4450 case "(($ac_try" in
4451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4452   *) ac_try_echo=$ac_try;;
4453 esac
4454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4455   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4456   ac_status=$?
4457   grep -v '^ *+' conftest.er1 >conftest.err
4458   rm -f conftest.er1
4459   cat conftest.err >&5
4460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4461   (exit $ac_status); } >/dev/null && {
4462          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4463          test ! -s conftest.err
4464        }; then
4465   :
4466 else
4467   echo "$as_me: failed program was:" >&5
4468 sed 's/^/| /' conftest.$ac_ext >&5
4469
4470   # Broken: fails on valid input.
4471 continue
4472 fi
4473
4474 rm -f conftest.err conftest.$ac_ext
4475
4476   # OK, works on sane cases.  Now check whether nonexistent headers
4477   # can be detected and how.
4478   cat >conftest.$ac_ext <<_ACEOF
4479 /* confdefs.h.  */
4480 _ACEOF
4481 cat confdefs.h >>conftest.$ac_ext
4482 cat >>conftest.$ac_ext <<_ACEOF
4483 /* end confdefs.h.  */
4484 #include <ac_nonexistent.h>
4485 _ACEOF
4486 if { (ac_try="$ac_cpp conftest.$ac_ext"
4487 case "(($ac_try" in
4488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4489   *) ac_try_echo=$ac_try;;
4490 esac
4491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4492   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4493   ac_status=$?
4494   grep -v '^ *+' conftest.er1 >conftest.err
4495   rm -f conftest.er1
4496   cat conftest.err >&5
4497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4498   (exit $ac_status); } >/dev/null && {
4499          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4500          test ! -s conftest.err
4501        }; then
4502   # Broken: success on invalid input.
4503 continue
4504 else
4505   echo "$as_me: failed program was:" >&5
4506 sed 's/^/| /' conftest.$ac_ext >&5
4507
4508   # Passes both tests.
4509 ac_preproc_ok=:
4510 break
4511 fi
4512
4513 rm -f conftest.err conftest.$ac_ext
4514
4515 done
4516 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4517 rm -f conftest.err conftest.$ac_ext
4518 if $ac_preproc_ok; then
4519   :
4520 else
4521   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4522 See \`config.log' for more details." >&5
4523 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4524 See \`config.log' for more details." >&2;}
4525    { (exit 1); exit 1; }; }
4526 fi
4527
4528 ac_ext=c
4529 ac_cpp='$CPP $CPPFLAGS'
4530 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4531 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4532 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4533
4534
4535 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4536 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4537 if test "${ac_cv_header_stdc+set}" = set; then
4538   echo $ECHO_N "(cached) $ECHO_C" >&6
4539 else
4540   cat >conftest.$ac_ext <<_ACEOF
4541 /* confdefs.h.  */
4542 _ACEOF
4543 cat confdefs.h >>conftest.$ac_ext
4544 cat >>conftest.$ac_ext <<_ACEOF
4545 /* end confdefs.h.  */
4546 #include <stdlib.h>
4547 #include <stdarg.h>
4548 #include <string.h>
4549 #include <float.h>
4550
4551 int
4552 main ()
4553 {
4554
4555   ;
4556   return 0;
4557 }
4558 _ACEOF
4559 rm -f conftest.$ac_objext
4560 if { (ac_try="$ac_compile"
4561 case "(($ac_try" in
4562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4563   *) ac_try_echo=$ac_try;;
4564 esac
4565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4566   (eval "$ac_compile") 2>conftest.er1
4567   ac_status=$?
4568   grep -v '^ *+' conftest.er1 >conftest.err
4569   rm -f conftest.er1
4570   cat conftest.err >&5
4571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4572   (exit $ac_status); } && {
4573          test -z "$ac_c_werror_flag" ||
4574          test ! -s conftest.err
4575        } && test -s conftest.$ac_objext; then
4576   ac_cv_header_stdc=yes
4577 else
4578   echo "$as_me: failed program was:" >&5
4579 sed 's/^/| /' conftest.$ac_ext >&5
4580
4581         ac_cv_header_stdc=no
4582 fi
4583
4584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4585
4586 if test $ac_cv_header_stdc = yes; then
4587   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4588   cat >conftest.$ac_ext <<_ACEOF
4589 /* confdefs.h.  */
4590 _ACEOF
4591 cat confdefs.h >>conftest.$ac_ext
4592 cat >>conftest.$ac_ext <<_ACEOF
4593 /* end confdefs.h.  */
4594 #include <string.h>
4595
4596 _ACEOF
4597 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4598   $EGREP "memchr" >/dev/null 2>&1; then
4599   :
4600 else
4601   ac_cv_header_stdc=no
4602 fi
4603 rm -f conftest*
4604
4605 fi
4606
4607 if test $ac_cv_header_stdc = yes; then
4608   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4609   cat >conftest.$ac_ext <<_ACEOF
4610 /* confdefs.h.  */
4611 _ACEOF
4612 cat confdefs.h >>conftest.$ac_ext
4613 cat >>conftest.$ac_ext <<_ACEOF
4614 /* end confdefs.h.  */
4615 #include <stdlib.h>
4616
4617 _ACEOF
4618 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4619   $EGREP "free" >/dev/null 2>&1; then
4620   :
4621 else
4622   ac_cv_header_stdc=no
4623 fi
4624 rm -f conftest*
4625
4626 fi
4627
4628 if test $ac_cv_header_stdc = yes; then
4629   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4630   if test "$cross_compiling" = yes; then
4631   :
4632 else
4633   cat >conftest.$ac_ext <<_ACEOF
4634 /* confdefs.h.  */
4635 _ACEOF
4636 cat confdefs.h >>conftest.$ac_ext
4637 cat >>conftest.$ac_ext <<_ACEOF
4638 /* end confdefs.h.  */
4639 #include <ctype.h>
4640 #include <stdlib.h>
4641 #if ((' ' & 0x0FF) == 0x020)
4642 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4643 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4644 #else
4645 # define ISLOWER(c) \
4646                    (('a' <= (c) && (c) <= 'i') \
4647                      || ('j' <= (c) && (c) <= 'r') \
4648                      || ('s' <= (c) && (c) <= 'z'))
4649 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4650 #endif
4651
4652 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4653 int
4654 main ()
4655 {
4656   int i;
4657   for (i = 0; i < 256; i++)
4658     if (XOR (islower (i), ISLOWER (i))
4659         || toupper (i) != TOUPPER (i))
4660       return 2;
4661   return 0;
4662 }
4663 _ACEOF
4664 rm -f conftest$ac_exeext
4665 if { (ac_try="$ac_link"
4666 case "(($ac_try" in
4667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4668   *) ac_try_echo=$ac_try;;
4669 esac
4670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4671   (eval "$ac_link") 2>&5
4672   ac_status=$?
4673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4674   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4675   { (case "(($ac_try" in
4676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4677   *) ac_try_echo=$ac_try;;
4678 esac
4679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4680   (eval "$ac_try") 2>&5
4681   ac_status=$?
4682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4683   (exit $ac_status); }; }; then
4684   :
4685 else
4686   echo "$as_me: program exited with status $ac_status" >&5
4687 echo "$as_me: failed program was:" >&5
4688 sed 's/^/| /' conftest.$ac_ext >&5
4689
4690 ( exit $ac_status )
4691 ac_cv_header_stdc=no
4692 fi
4693 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4694 fi
4695
4696
4697 fi
4698 fi
4699 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4700 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4701 if test $ac_cv_header_stdc = yes; then
4702
4703 cat >>confdefs.h <<\_ACEOF
4704 #define STDC_HEADERS 1
4705 _ACEOF
4706
4707 fi
4708
4709 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4720                   inttypes.h stdint.h unistd.h
4721 do
4722 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4723 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4724 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4725 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4726   echo $ECHO_N "(cached) $ECHO_C" >&6
4727 else
4728   cat >conftest.$ac_ext <<_ACEOF
4729 /* confdefs.h.  */
4730 _ACEOF
4731 cat confdefs.h >>conftest.$ac_ext
4732 cat >>conftest.$ac_ext <<_ACEOF
4733 /* end confdefs.h.  */
4734 $ac_includes_default
4735
4736 #include <$ac_header>
4737 _ACEOF
4738 rm -f conftest.$ac_objext
4739 if { (ac_try="$ac_compile"
4740 case "(($ac_try" in
4741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4742   *) ac_try_echo=$ac_try;;
4743 esac
4744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4745   (eval "$ac_compile") 2>conftest.er1
4746   ac_status=$?
4747   grep -v '^ *+' conftest.er1 >conftest.err
4748   rm -f conftest.er1
4749   cat conftest.err >&5
4750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4751   (exit $ac_status); } && {
4752          test -z "$ac_c_werror_flag" ||
4753          test ! -s conftest.err
4754        } && test -s conftest.$ac_objext; then
4755   eval "$as_ac_Header=yes"
4756 else
4757   echo "$as_me: failed program was:" >&5
4758 sed 's/^/| /' conftest.$ac_ext >&5
4759
4760         eval "$as_ac_Header=no"
4761 fi
4762
4763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4764 fi
4765 ac_res=`eval echo '${'$as_ac_Header'}'`
4766                { echo "$as_me:$LINENO: result: $ac_res" >&5
4767 echo "${ECHO_T}$ac_res" >&6; }
4768 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4769   cat >>confdefs.h <<_ACEOF
4770 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4771 _ACEOF
4772
4773 fi
4774
4775 done
4776
4777
4778
4779 for ac_header in dlfcn.h
4780 do
4781 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4782 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4783   { echo "$as_me:$LINENO: checking for $ac_header" >&5
4784 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4785 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4786   echo $ECHO_N "(cached) $ECHO_C" >&6
4787 fi
4788 ac_res=`eval echo '${'$as_ac_Header'}'`
4789                { echo "$as_me:$LINENO: result: $ac_res" >&5
4790 echo "${ECHO_T}$ac_res" >&6; }
4791 else
4792   # Is the header compilable?
4793 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4794 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4795 cat >conftest.$ac_ext <<_ACEOF
4796 /* confdefs.h.  */
4797 _ACEOF
4798 cat confdefs.h >>conftest.$ac_ext
4799 cat >>conftest.$ac_ext <<_ACEOF
4800 /* end confdefs.h.  */
4801 $ac_includes_default
4802 #include <$ac_header>
4803 _ACEOF
4804 rm -f conftest.$ac_objext
4805 if { (ac_try="$ac_compile"
4806 case "(($ac_try" in
4807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4808   *) ac_try_echo=$ac_try;;
4809 esac
4810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4811   (eval "$ac_compile") 2>conftest.er1
4812   ac_status=$?
4813   grep -v '^ *+' conftest.er1 >conftest.err
4814   rm -f conftest.er1
4815   cat conftest.err >&5
4816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4817   (exit $ac_status); } && {
4818          test -z "$ac_c_werror_flag" ||
4819          test ! -s conftest.err
4820        } && test -s conftest.$ac_objext; then
4821   ac_header_compiler=yes
4822 else
4823   echo "$as_me: failed program was:" >&5
4824 sed 's/^/| /' conftest.$ac_ext >&5
4825
4826         ac_header_compiler=no
4827 fi
4828
4829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4830 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4831 echo "${ECHO_T}$ac_header_compiler" >&6; }
4832
4833 # Is the header present?
4834 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4835 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4836 cat >conftest.$ac_ext <<_ACEOF
4837 /* confdefs.h.  */
4838 _ACEOF
4839 cat confdefs.h >>conftest.$ac_ext
4840 cat >>conftest.$ac_ext <<_ACEOF
4841 /* end confdefs.h.  */
4842 #include <$ac_header>
4843 _ACEOF
4844 if { (ac_try="$ac_cpp conftest.$ac_ext"
4845 case "(($ac_try" in
4846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4847   *) ac_try_echo=$ac_try;;
4848 esac
4849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4850   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4851   ac_status=$?
4852   grep -v '^ *+' conftest.er1 >conftest.err
4853   rm -f conftest.er1
4854   cat conftest.err >&5
4855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4856   (exit $ac_status); } >/dev/null && {
4857          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4858          test ! -s conftest.err
4859        }; then
4860   ac_header_preproc=yes
4861 else
4862   echo "$as_me: failed program was:" >&5
4863 sed 's/^/| /' conftest.$ac_ext >&5
4864
4865   ac_header_preproc=no
4866 fi
4867
4868 rm -f conftest.err conftest.$ac_ext
4869 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4870 echo "${ECHO_T}$ac_header_preproc" >&6; }
4871
4872 # So?  What about this header?
4873 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4874   yes:no: )
4875     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4876 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4877     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4878 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4879     ac_header_preproc=yes
4880     ;;
4881   no:yes:* )
4882     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4883 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4884     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4885 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4886     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4887 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4888     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4889 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4890     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4891 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4892     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4893 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4894
4895     ;;
4896 esac
4897 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4898 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4899 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4900   echo $ECHO_N "(cached) $ECHO_C" >&6
4901 else
4902   eval "$as_ac_Header=\$ac_header_preproc"
4903 fi
4904 ac_res=`eval echo '${'$as_ac_Header'}'`
4905                { echo "$as_me:$LINENO: result: $ac_res" >&5
4906 echo "${ECHO_T}$ac_res" >&6; }
4907
4908 fi
4909 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4910   cat >>confdefs.h <<_ACEOF
4911 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4912 _ACEOF
4913
4914 fi
4915
4916 done
4917
4918 ac_ext=cpp
4919 ac_cpp='$CXXCPP $CPPFLAGS'
4920 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4921 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4922 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4923 if test -z "$CXX"; then
4924   if test -n "$CCC"; then
4925     CXX=$CCC
4926   else
4927     if test -n "$ac_tool_prefix"; then
4928   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4929   do
4930     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4931 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4932 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4933 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4934 if test "${ac_cv_prog_CXX+set}" = set; then
4935   echo $ECHO_N "(cached) $ECHO_C" >&6
4936 else
4937   if test -n "$CXX"; then
4938   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4939 else
4940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4941 for as_dir in $PATH
4942 do
4943   IFS=$as_save_IFS
4944   test -z "$as_dir" && as_dir=.
4945   for ac_exec_ext in '' $ac_executable_extensions; do
4946   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4947     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4948     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4949     break 2
4950   fi
4951 done
4952 done
4953 IFS=$as_save_IFS
4954
4955 fi
4956 fi
4957 CXX=$ac_cv_prog_CXX
4958 if test -n "$CXX"; then
4959   { echo "$as_me:$LINENO: result: $CXX" >&5
4960 echo "${ECHO_T}$CXX" >&6; }
4961 else
4962   { echo "$as_me:$LINENO: result: no" >&5
4963 echo "${ECHO_T}no" >&6; }
4964 fi
4965
4966
4967     test -n "$CXX" && break
4968   done
4969 fi
4970 if test -z "$CXX"; then
4971   ac_ct_CXX=$CXX
4972   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4973 do
4974   # Extract the first word of "$ac_prog", so it can be a program name with args.
4975 set dummy $ac_prog; ac_word=$2
4976 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4977 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4978 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4979   echo $ECHO_N "(cached) $ECHO_C" >&6
4980 else
4981   if test -n "$ac_ct_CXX"; then
4982   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4983 else
4984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4985 for as_dir in $PATH
4986 do
4987   IFS=$as_save_IFS
4988   test -z "$as_dir" && as_dir=.
4989   for ac_exec_ext in '' $ac_executable_extensions; do
4990   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4991     ac_cv_prog_ac_ct_CXX="$ac_prog"
4992     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4993     break 2
4994   fi
4995 done
4996 done
4997 IFS=$as_save_IFS
4998
4999 fi
5000 fi
5001 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5002 if test -n "$ac_ct_CXX"; then
5003   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5004 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5005 else
5006   { echo "$as_me:$LINENO: result: no" >&5
5007 echo "${ECHO_T}no" >&6; }
5008 fi
5009
5010
5011   test -n "$ac_ct_CXX" && break
5012 done
5013
5014   if test "x$ac_ct_CXX" = x; then
5015     CXX="g++"
5016   else
5017     case $cross_compiling:$ac_tool_warned in
5018 yes:)
5019 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5020 whose name does not start with the host triplet.  If you think this
5021 configuration is useful to you, please write to autoconf@gnu.org." >&5
5022 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5023 whose name does not start with the host triplet.  If you think this
5024 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5025 ac_tool_warned=yes ;;
5026 esac
5027     CXX=$ac_ct_CXX
5028   fi
5029 fi
5030
5031   fi
5032 fi
5033 # Provide some information about the compiler.
5034 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5035 ac_compiler=`set X $ac_compile; echo $2`
5036 { (ac_try="$ac_compiler --version >&5"
5037 case "(($ac_try" in
5038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5039   *) ac_try_echo=$ac_try;;
5040 esac
5041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5042   (eval "$ac_compiler --version >&5") 2>&5
5043   ac_status=$?
5044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5045   (exit $ac_status); }
5046 { (ac_try="$ac_compiler -v >&5"
5047 case "(($ac_try" in
5048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5049   *) ac_try_echo=$ac_try;;
5050 esac
5051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5052   (eval "$ac_compiler -v >&5") 2>&5
5053   ac_status=$?
5054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5055   (exit $ac_status); }
5056 { (ac_try="$ac_compiler -V >&5"
5057 case "(($ac_try" in
5058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5059   *) ac_try_echo=$ac_try;;
5060 esac
5061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5062   (eval "$ac_compiler -V >&5") 2>&5
5063   ac_status=$?
5064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5065   (exit $ac_status); }
5066
5067 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5068 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5069 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5070   echo $ECHO_N "(cached) $ECHO_C" >&6
5071 else
5072   cat >conftest.$ac_ext <<_ACEOF
5073 /* confdefs.h.  */
5074 _ACEOF
5075 cat confdefs.h >>conftest.$ac_ext
5076 cat >>conftest.$ac_ext <<_ACEOF
5077 /* end confdefs.h.  */
5078
5079 int
5080 main ()
5081 {
5082 #ifndef __GNUC__
5083        choke me
5084 #endif
5085
5086   ;
5087   return 0;
5088 }
5089 _ACEOF
5090 rm -f conftest.$ac_objext
5091 if { (ac_try="$ac_compile"
5092 case "(($ac_try" in
5093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5094   *) ac_try_echo=$ac_try;;
5095 esac
5096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5097   (eval "$ac_compile") 2>conftest.er1
5098   ac_status=$?
5099   grep -v '^ *+' conftest.er1 >conftest.err
5100   rm -f conftest.er1
5101   cat conftest.err >&5
5102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5103   (exit $ac_status); } && {
5104          test -z "$ac_cxx_werror_flag" ||
5105          test ! -s conftest.err
5106        } && test -s conftest.$ac_objext; then
5107   ac_compiler_gnu=yes
5108 else
5109   echo "$as_me: failed program was:" >&5
5110 sed 's/^/| /' conftest.$ac_ext >&5
5111
5112         ac_compiler_gnu=no
5113 fi
5114
5115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5116 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5117
5118 fi
5119 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5120 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5121 GXX=`test $ac_compiler_gnu = yes && echo yes`
5122 ac_test_CXXFLAGS=${CXXFLAGS+set}
5123 ac_save_CXXFLAGS=$CXXFLAGS
5124 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5125 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5126 if test "${ac_cv_prog_cxx_g+set}" = set; then
5127   echo $ECHO_N "(cached) $ECHO_C" >&6
5128 else
5129   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5130    ac_cxx_werror_flag=yes
5131    ac_cv_prog_cxx_g=no
5132    CXXFLAGS="-g"
5133    cat >conftest.$ac_ext <<_ACEOF
5134 /* confdefs.h.  */
5135 _ACEOF
5136 cat confdefs.h >>conftest.$ac_ext
5137 cat >>conftest.$ac_ext <<_ACEOF
5138 /* end confdefs.h.  */
5139
5140 int
5141 main ()
5142 {
5143
5144   ;
5145   return 0;
5146 }
5147 _ACEOF
5148 rm -f conftest.$ac_objext
5149 if { (ac_try="$ac_compile"
5150 case "(($ac_try" in
5151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5152   *) ac_try_echo=$ac_try;;
5153 esac
5154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5155   (eval "$ac_compile") 2>conftest.er1
5156   ac_status=$?
5157   grep -v '^ *+' conftest.er1 >conftest.err
5158   rm -f conftest.er1
5159   cat conftest.err >&5
5160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5161   (exit $ac_status); } && {
5162          test -z "$ac_cxx_werror_flag" ||
5163          test ! -s conftest.err
5164        } && test -s conftest.$ac_objext; then
5165   ac_cv_prog_cxx_g=yes
5166 else
5167   echo "$as_me: failed program was:" >&5
5168 sed 's/^/| /' conftest.$ac_ext >&5
5169
5170         CXXFLAGS=""
5171       cat >conftest.$ac_ext <<_ACEOF
5172 /* confdefs.h.  */
5173 _ACEOF
5174 cat confdefs.h >>conftest.$ac_ext
5175 cat >>conftest.$ac_ext <<_ACEOF
5176 /* end confdefs.h.  */
5177
5178 int
5179 main ()
5180 {
5181
5182   ;
5183   return 0;
5184 }
5185 _ACEOF
5186 rm -f conftest.$ac_objext
5187 if { (ac_try="$ac_compile"
5188 case "(($ac_try" in
5189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5190   *) ac_try_echo=$ac_try;;
5191 esac
5192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5193   (eval "$ac_compile") 2>conftest.er1
5194   ac_status=$?
5195   grep -v '^ *+' conftest.er1 >conftest.err
5196   rm -f conftest.er1
5197   cat conftest.err >&5
5198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5199   (exit $ac_status); } && {
5200          test -z "$ac_cxx_werror_flag" ||
5201          test ! -s conftest.err
5202        } && test -s conftest.$ac_objext; then
5203   :
5204 else
5205   echo "$as_me: failed program was:" >&5
5206 sed 's/^/| /' conftest.$ac_ext >&5
5207
5208         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5209          CXXFLAGS="-g"
5210          cat >conftest.$ac_ext <<_ACEOF
5211 /* confdefs.h.  */
5212 _ACEOF
5213 cat confdefs.h >>conftest.$ac_ext
5214 cat >>conftest.$ac_ext <<_ACEOF
5215 /* end confdefs.h.  */
5216
5217 int
5218 main ()
5219 {
5220
5221   ;
5222   return 0;
5223 }
5224 _ACEOF
5225 rm -f conftest.$ac_objext
5226 if { (ac_try="$ac_compile"
5227 case "(($ac_try" in
5228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5229   *) ac_try_echo=$ac_try;;
5230 esac
5231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5232   (eval "$ac_compile") 2>conftest.er1
5233   ac_status=$?
5234   grep -v '^ *+' conftest.er1 >conftest.err
5235   rm -f conftest.er1
5236   cat conftest.err >&5
5237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5238   (exit $ac_status); } && {
5239          test -z "$ac_cxx_werror_flag" ||
5240          test ! -s conftest.err
5241        } && test -s conftest.$ac_objext; then
5242   ac_cv_prog_cxx_g=yes
5243 else
5244   echo "$as_me: failed program was:" >&5
5245 sed 's/^/| /' conftest.$ac_ext >&5
5246
5247
5248 fi
5249
5250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5251 fi
5252
5253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5254 fi
5255
5256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5257    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5258 fi
5259 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5260 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5261 if test "$ac_test_CXXFLAGS" = set; then
5262   CXXFLAGS=$ac_save_CXXFLAGS
5263 elif test $ac_cv_prog_cxx_g = yes; then
5264   if test "$GXX" = yes; then
5265     CXXFLAGS="-g -O2"
5266   else
5267     CXXFLAGS="-g"
5268   fi
5269 else
5270   if test "$GXX" = yes; then
5271     CXXFLAGS="-O2"
5272   else
5273     CXXFLAGS=
5274   fi
5275 fi
5276 ac_ext=cpp
5277 ac_cpp='$CXXCPP $CPPFLAGS'
5278 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5279 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5280 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5281
5282 ac_ext=cpp
5283 ac_cpp='$CXXCPP $CPPFLAGS'
5284 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5285 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5286 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5287 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5288 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5289 if test -z "$CXXCPP"; then
5290   if test "${ac_cv_prog_CXXCPP+set}" = set; then
5291   echo $ECHO_N "(cached) $ECHO_C" >&6
5292 else
5293       # Double quotes because CXXCPP needs to be expanded
5294     for CXXCPP in "$CXX -E" "/lib/cpp"
5295     do
5296       ac_preproc_ok=false
5297 for ac_cxx_preproc_warn_flag in '' yes
5298 do
5299   # Use a header file that comes with gcc, so configuring glibc
5300   # with a fresh cross-compiler works.
5301   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5302   # <limits.h> exists even on freestanding compilers.
5303   # On the NeXT, cc -E runs the code through the compiler's parser,
5304   # not just through cpp. "Syntax error" is here to catch this case.
5305   cat >conftest.$ac_ext <<_ACEOF
5306 /* confdefs.h.  */
5307 _ACEOF
5308 cat confdefs.h >>conftest.$ac_ext
5309 cat >>conftest.$ac_ext <<_ACEOF
5310 /* end confdefs.h.  */
5311 #ifdef __STDC__
5312 # include <limits.h>
5313 #else
5314 # include <assert.h>
5315 #endif
5316                      Syntax error
5317 _ACEOF
5318 if { (ac_try="$ac_cpp conftest.$ac_ext"
5319 case "(($ac_try" in
5320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5321   *) ac_try_echo=$ac_try;;
5322 esac
5323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5324   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5325   ac_status=$?
5326   grep -v '^ *+' conftest.er1 >conftest.err
5327   rm -f conftest.er1
5328   cat conftest.err >&5
5329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5330   (exit $ac_status); } >/dev/null && {
5331          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5332          test ! -s conftest.err
5333        }; then
5334   :
5335 else
5336   echo "$as_me: failed program was:" >&5
5337 sed 's/^/| /' conftest.$ac_ext >&5
5338
5339   # Broken: fails on valid input.
5340 continue
5341 fi
5342
5343 rm -f conftest.err conftest.$ac_ext
5344
5345   # OK, works on sane cases.  Now check whether nonexistent headers
5346   # can be detected and how.
5347   cat >conftest.$ac_ext <<_ACEOF
5348 /* confdefs.h.  */
5349 _ACEOF
5350 cat confdefs.h >>conftest.$ac_ext
5351 cat >>conftest.$ac_ext <<_ACEOF
5352 /* end confdefs.h.  */
5353 #include <ac_nonexistent.h>
5354 _ACEOF
5355 if { (ac_try="$ac_cpp conftest.$ac_ext"
5356 case "(($ac_try" in
5357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5358   *) ac_try_echo=$ac_try;;
5359 esac
5360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5361   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5362   ac_status=$?
5363   grep -v '^ *+' conftest.er1 >conftest.err
5364   rm -f conftest.er1
5365   cat conftest.err >&5
5366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5367   (exit $ac_status); } >/dev/null && {
5368          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5369          test ! -s conftest.err
5370        }; then
5371   # Broken: success on invalid input.
5372 continue
5373 else
5374   echo "$as_me: failed program was:" >&5
5375 sed 's/^/| /' conftest.$ac_ext >&5
5376
5377   # Passes both tests.
5378 ac_preproc_ok=:
5379 break
5380 fi
5381
5382 rm -f conftest.err conftest.$ac_ext
5383
5384 done
5385 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5386 rm -f conftest.err conftest.$ac_ext
5387 if $ac_preproc_ok; then
5388   break
5389 fi
5390
5391     done
5392     ac_cv_prog_CXXCPP=$CXXCPP
5393
5394 fi
5395   CXXCPP=$ac_cv_prog_CXXCPP
5396 else
5397   ac_cv_prog_CXXCPP=$CXXCPP
5398 fi
5399 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5400 echo "${ECHO_T}$CXXCPP" >&6; }
5401 ac_preproc_ok=false
5402 for ac_cxx_preproc_warn_flag in '' yes
5403 do
5404   # Use a header file that comes with gcc, so configuring glibc
5405   # with a fresh cross-compiler works.
5406   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5407   # <limits.h> exists even on freestanding compilers.
5408   # On the NeXT, cc -E runs the code through the compiler's parser,
5409   # not just through cpp. "Syntax error" is here to catch this case.
5410   cat >conftest.$ac_ext <<_ACEOF
5411 /* confdefs.h.  */
5412 _ACEOF
5413 cat confdefs.h >>conftest.$ac_ext
5414 cat >>conftest.$ac_ext <<_ACEOF
5415 /* end confdefs.h.  */
5416 #ifdef __STDC__
5417 # include <limits.h>
5418 #else
5419 # include <assert.h>
5420 #endif
5421                      Syntax error
5422 _ACEOF
5423 if { (ac_try="$ac_cpp conftest.$ac_ext"
5424 case "(($ac_try" in
5425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5426   *) ac_try_echo=$ac_try;;
5427 esac
5428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5429   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5430   ac_status=$?
5431   grep -v '^ *+' conftest.er1 >conftest.err
5432   rm -f conftest.er1
5433   cat conftest.err >&5
5434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5435   (exit $ac_status); } >/dev/null && {
5436          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5437          test ! -s conftest.err
5438        }; then
5439   :
5440 else
5441   echo "$as_me: failed program was:" >&5
5442 sed 's/^/| /' conftest.$ac_ext >&5
5443
5444   # Broken: fails on valid input.
5445 continue
5446 fi
5447
5448 rm -f conftest.err conftest.$ac_ext
5449
5450   # OK, works on sane cases.  Now check whether nonexistent headers
5451   # can be detected and how.
5452   cat >conftest.$ac_ext <<_ACEOF
5453 /* confdefs.h.  */
5454 _ACEOF
5455 cat confdefs.h >>conftest.$ac_ext
5456 cat >>conftest.$ac_ext <<_ACEOF
5457 /* end confdefs.h.  */
5458 #include <ac_nonexistent.h>
5459 _ACEOF
5460 if { (ac_try="$ac_cpp conftest.$ac_ext"
5461 case "(($ac_try" in
5462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5463   *) ac_try_echo=$ac_try;;
5464 esac
5465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5466   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5467   ac_status=$?
5468   grep -v '^ *+' conftest.er1 >conftest.err
5469   rm -f conftest.er1
5470   cat conftest.err >&5
5471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5472   (exit $ac_status); } >/dev/null && {
5473          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5474          test ! -s conftest.err
5475        }; then
5476   # Broken: success on invalid input.
5477 continue
5478 else
5479   echo "$as_me: failed program was:" >&5
5480 sed 's/^/| /' conftest.$ac_ext >&5
5481
5482   # Passes both tests.
5483 ac_preproc_ok=:
5484 break
5485 fi
5486
5487 rm -f conftest.err conftest.$ac_ext
5488
5489 done
5490 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5491 rm -f conftest.err conftest.$ac_ext
5492 if $ac_preproc_ok; then
5493   :
5494 else
5495   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5496 See \`config.log' for more details." >&5
5497 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5498 See \`config.log' for more details." >&2;}
5499    { (exit 1); exit 1; }; }
5500 fi
5501
5502 ac_ext=cpp
5503 ac_cpp='$CXXCPP $CPPFLAGS'
5504 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5505 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5506 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5507
5508
5509 ac_ext=f
5510 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5511 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5512 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5513 if test -n "$ac_tool_prefix"; then
5514   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
5515   do
5516     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5517 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5518 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5520 if test "${ac_cv_prog_F77+set}" = set; then
5521   echo $ECHO_N "(cached) $ECHO_C" >&6
5522 else
5523   if test -n "$F77"; then
5524   ac_cv_prog_F77="$F77" # Let the user override the test.
5525 else
5526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5527 for as_dir in $PATH
5528 do
5529   IFS=$as_save_IFS
5530   test -z "$as_dir" && as_dir=.
5531   for ac_exec_ext in '' $ac_executable_extensions; do
5532   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5533     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5534     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5535     break 2
5536   fi
5537 done
5538 done
5539 IFS=$as_save_IFS
5540
5541 fi
5542 fi
5543 F77=$ac_cv_prog_F77
5544 if test -n "$F77"; then
5545   { echo "$as_me:$LINENO: result: $F77" >&5
5546 echo "${ECHO_T}$F77" >&6; }
5547 else
5548   { echo "$as_me:$LINENO: result: no" >&5
5549 echo "${ECHO_T}no" >&6; }
5550 fi
5551
5552
5553     test -n "$F77" && break
5554   done
5555 fi
5556 if test -z "$F77"; then
5557   ac_ct_F77=$F77
5558   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
5559 do
5560   # Extract the first word of "$ac_prog", so it can be a program name with args.
5561 set dummy $ac_prog; ac_word=$2
5562 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5563 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5564 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5565   echo $ECHO_N "(cached) $ECHO_C" >&6
5566 else
5567   if test -n "$ac_ct_F77"; then
5568   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5569 else
5570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5571 for as_dir in $PATH
5572 do
5573   IFS=$as_save_IFS
5574   test -z "$as_dir" && as_dir=.
5575   for ac_exec_ext in '' $ac_executable_extensions; do
5576   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5577     ac_cv_prog_ac_ct_F77="$ac_prog"
5578     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5579     break 2
5580   fi
5581 done
5582 done
5583 IFS=$as_save_IFS
5584
5585 fi
5586 fi
5587 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5588 if test -n "$ac_ct_F77"; then
5589   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5590 echo "${ECHO_T}$ac_ct_F77" >&6; }
5591 else
5592   { echo "$as_me:$LINENO: result: no" >&5
5593 echo "${ECHO_T}no" >&6; }
5594 fi
5595
5596
5597   test -n "$ac_ct_F77" && break
5598 done
5599
5600   if test "x$ac_ct_F77" = x; then
5601     F77=""
5602   else
5603     case $cross_compiling:$ac_tool_warned in
5604 yes:)
5605 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5606 whose name does not start with the host triplet.  If you think this
5607 configuration is useful to you, please write to autoconf@gnu.org." >&5
5608 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5609 whose name does not start with the host triplet.  If you think this
5610 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5611 ac_tool_warned=yes ;;
5612 esac
5613     F77=$ac_ct_F77
5614   fi
5615 fi
5616
5617
5618 # Provide some information about the compiler.
5619 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5620 ac_compiler=`set X $ac_compile; echo $2`
5621 { (ac_try="$ac_compiler --version >&5"
5622 case "(($ac_try" in
5623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5624   *) ac_try_echo=$ac_try;;
5625 esac
5626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5627   (eval "$ac_compiler --version >&5") 2>&5
5628   ac_status=$?
5629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5630   (exit $ac_status); }
5631 { (ac_try="$ac_compiler -v >&5"
5632 case "(($ac_try" in
5633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5634   *) ac_try_echo=$ac_try;;
5635 esac
5636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5637   (eval "$ac_compiler -v >&5") 2>&5
5638   ac_status=$?
5639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5640   (exit $ac_status); }
5641 { (ac_try="$ac_compiler -V >&5"
5642 case "(($ac_try" in
5643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5644   *) ac_try_echo=$ac_try;;
5645 esac
5646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5647   (eval "$ac_compiler -V >&5") 2>&5
5648   ac_status=$?
5649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5650   (exit $ac_status); }
5651 rm -f a.out
5652
5653 # If we don't use `.F' as extension, the preprocessor is not run on the
5654 # input file.  (Note that this only needs to work for GNU compilers.)
5655 ac_save_ext=$ac_ext
5656 ac_ext=F
5657 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5658 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
5659 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5660   echo $ECHO_N "(cached) $ECHO_C" >&6
5661 else
5662   cat >conftest.$ac_ext <<_ACEOF
5663       program main
5664 #ifndef __GNUC__
5665        choke me
5666 #endif
5667
5668       end
5669 _ACEOF
5670 rm -f conftest.$ac_objext
5671 if { (ac_try="$ac_compile"
5672 case "(($ac_try" in
5673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5674   *) ac_try_echo=$ac_try;;
5675 esac
5676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5677   (eval "$ac_compile") 2>conftest.er1
5678   ac_status=$?
5679   grep -v '^ *+' conftest.er1 >conftest.err
5680   rm -f conftest.er1
5681   cat conftest.err >&5
5682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5683   (exit $ac_status); } && {
5684          test -z "$ac_f77_werror_flag" ||
5685          test ! -s conftest.err
5686        } && test -s conftest.$ac_objext; then
5687   ac_compiler_gnu=yes
5688 else
5689   echo "$as_me: failed program was:" >&5
5690 sed 's/^/| /' conftest.$ac_ext >&5
5691
5692         ac_compiler_gnu=no
5693 fi
5694
5695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5696 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5697
5698 fi
5699 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5700 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
5701 ac_ext=$ac_save_ext
5702 ac_test_FFLAGS=${FFLAGS+set}
5703 ac_save_FFLAGS=$FFLAGS
5704 FFLAGS=
5705 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5706 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
5707 if test "${ac_cv_prog_f77_g+set}" = set; then
5708   echo $ECHO_N "(cached) $ECHO_C" >&6
5709 else
5710   FFLAGS=-g
5711 cat >conftest.$ac_ext <<_ACEOF
5712       program main
5713
5714       end
5715 _ACEOF
5716 rm -f conftest.$ac_objext
5717 if { (ac_try="$ac_compile"
5718 case "(($ac_try" in
5719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5720   *) ac_try_echo=$ac_try;;
5721 esac
5722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5723   (eval "$ac_compile") 2>conftest.er1
5724   ac_status=$?
5725   grep -v '^ *+' conftest.er1 >conftest.err
5726   rm -f conftest.er1
5727   cat conftest.err >&5
5728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5729   (exit $ac_status); } && {
5730          test -z "$ac_f77_werror_flag" ||
5731          test ! -s conftest.err
5732        } && test -s conftest.$ac_objext; then
5733   ac_cv_prog_f77_g=yes
5734 else
5735   echo "$as_me: failed program was:" >&5
5736 sed 's/^/| /' conftest.$ac_ext >&5
5737
5738         ac_cv_prog_f77_g=no
5739 fi
5740
5741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5742
5743 fi
5744 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5745 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
5746 if test "$ac_test_FFLAGS" = set; then
5747   FFLAGS=$ac_save_FFLAGS
5748 elif test $ac_cv_prog_f77_g = yes; then
5749   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5750     FFLAGS="-g -O2"
5751   else
5752     FFLAGS="-g"
5753   fi
5754 else
5755   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5756     FFLAGS="-O2"
5757   else
5758     FFLAGS=
5759   fi
5760 fi
5761
5762 G77=`test $ac_compiler_gnu = yes && echo yes`
5763 ac_ext=c
5764 ac_cpp='$CPP $CPPFLAGS'
5765 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5766 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5767 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5768
5769
5770
5771 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5772
5773 # find the maximum length of command line arguments
5774 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5775 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
5776 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5777   echo $ECHO_N "(cached) $ECHO_C" >&6
5778 else
5779     i=0
5780   teststring="ABCD"
5781
5782   case $build_os in
5783   msdosdjgpp*)
5784     # On DJGPP, this test can blow up pretty badly due to problems in libc
5785     # (any single argument exceeding 2000 bytes causes a buffer overrun
5786     # during glob expansion).  Even if it were fixed, the result of this
5787     # check would be larger than it should be.
5788     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5789     ;;
5790
5791   gnu*)
5792     # Under GNU Hurd, this test is not required because there is
5793     # no limit to the length of command line arguments.
5794     # Libtool will interpret -1 as no limit whatsoever
5795     lt_cv_sys_max_cmd_len=-1;
5796     ;;
5797
5798   cygwin* | mingw*)
5799     # On Win9x/ME, this test blows up -- it succeeds, but takes
5800     # about 5 minutes as the teststring grows exponentially.
5801     # Worse, since 9x/ME are not pre-emptively multitasking,
5802     # you end up with a "frozen" computer, even though with patience
5803     # the test eventually succeeds (with a max line length of 256k).
5804     # Instead, let's just punt: use the minimum linelength reported by
5805     # all of the supported platforms: 8192 (on NT/2K/XP).
5806     lt_cv_sys_max_cmd_len=8192;
5807     ;;
5808
5809   amigaos*)
5810     # On AmigaOS with pdksh, this test takes hours, literally.
5811     # So we just punt and use a minimum line length of 8192.
5812     lt_cv_sys_max_cmd_len=8192;
5813     ;;
5814
5815  *)
5816     # If test is not a shell built-in, we'll probably end up computing a
5817     # maximum length that is only half of the actual maximum length, but
5818     # we can't tell.
5819     while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5820                = "XX$teststring") >/dev/null 2>&1 &&
5821             new_result=`expr "X$teststring" : ".*" 2>&1` &&
5822             lt_cv_sys_max_cmd_len=$new_result &&
5823             test $i != 17 # 1/2 MB should be enough
5824     do
5825       i=`expr $i + 1`
5826       teststring=$teststring$teststring
5827     done
5828     teststring=
5829     # Add a significant safety factor because C++ compilers can tack on massive
5830     # amounts of additional arguments before passing them to the linker.
5831     # It appears as though 1/2 is a usable value.
5832     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5833     ;;
5834   esac
5835
5836 fi
5837
5838 if test -n $lt_cv_sys_max_cmd_len ; then
5839   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5840 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
5841 else
5842   { echo "$as_me:$LINENO: result: none" >&5
5843 echo "${ECHO_T}none" >&6; }
5844 fi
5845
5846
5847
5848
5849 # Check for command to grab the raw symbol name followed by C symbol from nm.
5850 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5851 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
5852 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5853   echo $ECHO_N "(cached) $ECHO_C" >&6
5854 else
5855
5856 # These are sane defaults that work on at least a few old systems.
5857 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5858
5859 # Character class describing NM global symbol codes.
5860 symcode='[BCDEGRST]'
5861
5862 # Regexp to match symbols that can be accessed directly from C.
5863 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5864
5865 # Transform the above into a raw symbol and a C symbol.
5866 symxfrm='\1 \2\3 \3'
5867
5868 # Transform an extracted symbol line into a proper C declaration
5869 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5870
5871 # Transform an extracted symbol line into symbol name and symbol address
5872 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'"
5873
5874 # Define system-specific variables.
5875 case $host_os in
5876 aix*)
5877   symcode='[BCDT]'
5878   ;;
5879 cygwin* | mingw* | pw32*)
5880   symcode='[ABCDGISTW]'
5881   ;;
5882 hpux*) # Its linker distinguishes data from code symbols
5883   if test "$host_cpu" = ia64; then
5884     symcode='[ABCDEGRST]'
5885   fi
5886   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5887   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'"
5888   ;;
5889 irix* | nonstopux*)
5890   symcode='[BCDEGRST]'
5891   ;;
5892 osf*)
5893   symcode='[BCDEGQRST]'
5894   ;;
5895 solaris* | sysv5*)
5896   symcode='[BDRT]'
5897   ;;
5898 sysv4)
5899   symcode='[DFNSTU]'
5900   ;;
5901 esac
5902
5903 # Handle CRLF in mingw tool chain
5904 opt_cr=
5905 case $build_os in
5906 mingw*)
5907   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5908   ;;
5909 esac
5910
5911 # If we're using GNU nm, then use its standard symbol codes.
5912 case `$NM -V 2>&1` in
5913 *GNU* | *'with BFD'*)
5914   symcode='[ABCDGIRSTW]' ;;
5915 esac
5916
5917 # Try without a prefix undercore, then with it.
5918 for ac_symprfx in "" "_"; do
5919
5920   # Write the raw and C identifiers.
5921   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5922
5923   # Check to see that the pipe works correctly.
5924   pipe_works=no
5925
5926   rm -f conftest*
5927   cat > conftest.$ac_ext <<EOF
5928 #ifdef __cplusplus
5929 extern "C" {
5930 #endif
5931 char nm_test_var;
5932 void nm_test_func(){}
5933 #ifdef __cplusplus
5934 }
5935 #endif
5936 int main(){nm_test_var='a';nm_test_func();return(0);}
5937 EOF
5938
5939   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5940   (eval $ac_compile) 2>&5
5941   ac_status=$?
5942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5943   (exit $ac_status); }; then
5944     # Now try to grab the symbols.
5945     nlist=conftest.nm
5946     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5947   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5948   ac_status=$?
5949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5950   (exit $ac_status); } && test -s "$nlist"; then
5951       # Try sorting and uniquifying the output.
5952       if sort "$nlist" | uniq > "$nlist"T; then
5953         mv -f "$nlist"T "$nlist"
5954       else
5955         rm -f "$nlist"T
5956       fi
5957
5958       # Make sure that we snagged all the symbols we need.
5959       if grep ' nm_test_var$' "$nlist" >/dev/null; then
5960         if grep ' nm_test_func$' "$nlist" >/dev/null; then
5961           cat <<EOF > conftest.$ac_ext
5962 #ifdef __cplusplus
5963 extern "C" {
5964 #endif
5965
5966 EOF
5967           # Now generate the symbol file.
5968           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5969
5970           cat <<EOF >> conftest.$ac_ext
5971 #if defined (__STDC__) && __STDC__
5972 # define lt_ptr_t void *
5973 #else
5974 # define lt_ptr_t char *
5975 # define const
5976 #endif
5977
5978 /* The mapping between symbol names and symbols. */
5979 const struct {
5980   const char *name;
5981   lt_ptr_t address;
5982 }
5983 lt_preloaded_symbols[] =
5984 {
5985 EOF
5986           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5987           cat <<\EOF >> conftest.$ac_ext
5988   {0, (lt_ptr_t) 0}
5989 };
5990
5991 #ifdef __cplusplus
5992 }
5993 #endif
5994 EOF
5995           # Now try linking the two files.
5996           mv conftest.$ac_objext conftstm.$ac_objext
5997           lt_save_LIBS="$LIBS"
5998           lt_save_CFLAGS="$CFLAGS"
5999           LIBS="conftstm.$ac_objext"
6000           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6001           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6002   (eval $ac_link) 2>&5
6003   ac_status=$?
6004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6005   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6006             pipe_works=yes
6007           fi
6008           LIBS="$lt_save_LIBS"
6009           CFLAGS="$lt_save_CFLAGS"
6010         else
6011           echo "cannot find nm_test_func in $nlist" >&5
6012         fi
6013       else
6014         echo "cannot find nm_test_var in $nlist" >&5
6015       fi
6016     else
6017       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6018     fi
6019   else
6020     echo "$progname: failed program was:" >&5
6021     cat conftest.$ac_ext >&5
6022   fi
6023   rm -f conftest* conftst*
6024
6025   # Do not use the global_symbol_pipe unless it works.
6026   if test "$pipe_works" = yes; then
6027     break
6028   else
6029     lt_cv_sys_global_symbol_pipe=
6030   fi
6031 done
6032
6033 fi
6034
6035 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6036   lt_cv_sys_global_symbol_to_cdecl=
6037 fi
6038 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6039   { echo "$as_me:$LINENO: result: failed" >&5
6040 echo "${ECHO_T}failed" >&6; }
6041 else
6042   { echo "$as_me:$LINENO: result: ok" >&5
6043 echo "${ECHO_T}ok" >&6; }
6044 fi
6045
6046 { echo "$as_me:$LINENO: checking for objdir" >&5
6047 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6048 if test "${lt_cv_objdir+set}" = set; then
6049   echo $ECHO_N "(cached) $ECHO_C" >&6
6050 else
6051   rm -f .libs 2>/dev/null
6052 mkdir .libs 2>/dev/null
6053 if test -d .libs; then
6054   lt_cv_objdir=.libs
6055 else
6056   # MS-DOS does not allow filenames that begin with a dot.
6057   lt_cv_objdir=_libs
6058 fi
6059 rmdir .libs 2>/dev/null
6060 fi
6061 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6062 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6063 objdir=$lt_cv_objdir
6064
6065
6066
6067
6068
6069 case $host_os in
6070 aix3*)
6071   # AIX sometimes has problems with the GCC collect2 program.  For some
6072   # reason, if we set the COLLECT_NAMES environment variable, the problems
6073   # vanish in a puff of smoke.
6074   if test "X${COLLECT_NAMES+set}" != Xset; then
6075     COLLECT_NAMES=
6076     export COLLECT_NAMES
6077   fi
6078   ;;
6079 esac
6080
6081 # Sed substitution that helps us do robust quoting.  It backslashifies
6082 # metacharacters that are still active within double-quoted strings.
6083 Xsed='sed -e s/^X//'
6084 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6085
6086 # Same as above, but do not quote variable references.
6087 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6088
6089 # Sed substitution to delay expansion of an escaped shell variable in a
6090 # double_quote_subst'ed string.
6091 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6092
6093 # Sed substitution to avoid accidental globbing in evaled expressions
6094 no_glob_subst='s/\*/\\\*/g'
6095
6096 # Constants:
6097 rm="rm -f"
6098
6099 # Global variables:
6100 default_ofile=libtool
6101 can_build_shared=yes
6102
6103 # All known linkers require a `.a' archive for static linking (except M$VC,
6104 # which needs '.lib').
6105 libext=a
6106 ltmain="$ac_aux_dir/ltmain.sh"
6107 ofile="$default_ofile"
6108 with_gnu_ld="$lt_cv_prog_gnu_ld"
6109
6110 if test -n "$ac_tool_prefix"; then
6111   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6112 set dummy ${ac_tool_prefix}ar; ac_word=$2
6113 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6114 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6115 if test "${ac_cv_prog_AR+set}" = set; then
6116   echo $ECHO_N "(cached) $ECHO_C" >&6
6117 else
6118   if test -n "$AR"; then
6119   ac_cv_prog_AR="$AR" # Let the user override the test.
6120 else
6121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6122 for as_dir in $PATH
6123 do
6124   IFS=$as_save_IFS
6125   test -z "$as_dir" && as_dir=.
6126   for ac_exec_ext in '' $ac_executable_extensions; do
6127   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6128     ac_cv_prog_AR="${ac_tool_prefix}ar"
6129     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6130     break 2
6131   fi
6132 done
6133 done
6134 IFS=$as_save_IFS
6135
6136 fi
6137 fi
6138 AR=$ac_cv_prog_AR
6139 if test -n "$AR"; then
6140   { echo "$as_me:$LINENO: result: $AR" >&5
6141 echo "${ECHO_T}$AR" >&6; }
6142 else
6143   { echo "$as_me:$LINENO: result: no" >&5
6144 echo "${ECHO_T}no" >&6; }
6145 fi
6146
6147
6148 fi
6149 if test -z "$ac_cv_prog_AR"; then
6150   ac_ct_AR=$AR
6151   # Extract the first word of "ar", so it can be a program name with args.
6152 set dummy ar; ac_word=$2
6153 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6154 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6155 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6156   echo $ECHO_N "(cached) $ECHO_C" >&6
6157 else
6158   if test -n "$ac_ct_AR"; then
6159   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6160 else
6161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6162 for as_dir in $PATH
6163 do
6164   IFS=$as_save_IFS
6165   test -z "$as_dir" && as_dir=.
6166   for ac_exec_ext in '' $ac_executable_extensions; do
6167   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6168     ac_cv_prog_ac_ct_AR="ar"
6169     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6170     break 2
6171   fi
6172 done
6173 done
6174 IFS=$as_save_IFS
6175
6176 fi
6177 fi
6178 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6179 if test -n "$ac_ct_AR"; then
6180   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6181 echo "${ECHO_T}$ac_ct_AR" >&6; }
6182 else
6183   { echo "$as_me:$LINENO: result: no" >&5
6184 echo "${ECHO_T}no" >&6; }
6185 fi
6186
6187   if test "x$ac_ct_AR" = x; then
6188     AR="false"
6189   else
6190     case $cross_compiling:$ac_tool_warned in
6191 yes:)
6192 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6193 whose name does not start with the host triplet.  If you think this
6194 configuration is useful to you, please write to autoconf@gnu.org." >&5
6195 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6196 whose name does not start with the host triplet.  If you think this
6197 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6198 ac_tool_warned=yes ;;
6199 esac
6200     AR=$ac_ct_AR
6201   fi
6202 else
6203   AR="$ac_cv_prog_AR"
6204 fi
6205
6206 if test -n "$ac_tool_prefix"; then
6207   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6208 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6209 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6210 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6211 if test "${ac_cv_prog_RANLIB+set}" = set; then
6212   echo $ECHO_N "(cached) $ECHO_C" >&6
6213 else
6214   if test -n "$RANLIB"; then
6215   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6216 else
6217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6218 for as_dir in $PATH
6219 do
6220   IFS=$as_save_IFS
6221   test -z "$as_dir" && as_dir=.
6222   for ac_exec_ext in '' $ac_executable_extensions; do
6223   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6224     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6225     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6226     break 2
6227   fi
6228 done
6229 done
6230 IFS=$as_save_IFS
6231
6232 fi
6233 fi
6234 RANLIB=$ac_cv_prog_RANLIB
6235 if test -n "$RANLIB"; then
6236   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6237 echo "${ECHO_T}$RANLIB" >&6; }
6238 else
6239   { echo "$as_me:$LINENO: result: no" >&5
6240 echo "${ECHO_T}no" >&6; }
6241 fi
6242
6243
6244 fi
6245 if test -z "$ac_cv_prog_RANLIB"; then
6246   ac_ct_RANLIB=$RANLIB
6247   # Extract the first word of "ranlib", so it can be a program name with args.
6248 set dummy ranlib; ac_word=$2
6249 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6250 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6251 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6252   echo $ECHO_N "(cached) $ECHO_C" >&6
6253 else
6254   if test -n "$ac_ct_RANLIB"; then
6255   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6256 else
6257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6258 for as_dir in $PATH
6259 do
6260   IFS=$as_save_IFS
6261   test -z "$as_dir" && as_dir=.
6262   for ac_exec_ext in '' $ac_executable_extensions; do
6263   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6264     ac_cv_prog_ac_ct_RANLIB="ranlib"
6265     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6266     break 2
6267   fi
6268 done
6269 done
6270 IFS=$as_save_IFS
6271
6272 fi
6273 fi
6274 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6275 if test -n "$ac_ct_RANLIB"; then
6276   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6277 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6278 else
6279   { echo "$as_me:$LINENO: result: no" >&5
6280 echo "${ECHO_T}no" >&6; }
6281 fi
6282
6283   if test "x$ac_ct_RANLIB" = x; then
6284     RANLIB=":"
6285   else
6286     case $cross_compiling:$ac_tool_warned in
6287 yes:)
6288 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6289 whose name does not start with the host triplet.  If you think this
6290 configuration is useful to you, please write to autoconf@gnu.org." >&5
6291 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6292 whose name does not start with the host triplet.  If you think this
6293 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6294 ac_tool_warned=yes ;;
6295 esac
6296     RANLIB=$ac_ct_RANLIB
6297   fi
6298 else
6299   RANLIB="$ac_cv_prog_RANLIB"
6300 fi
6301
6302 if test -n "$ac_tool_prefix"; then
6303   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6304 set dummy ${ac_tool_prefix}strip; ac_word=$2
6305 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6306 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6307 if test "${ac_cv_prog_STRIP+set}" = set; then
6308   echo $ECHO_N "(cached) $ECHO_C" >&6
6309 else
6310   if test -n "$STRIP"; then
6311   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6312 else
6313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6314 for as_dir in $PATH
6315 do
6316   IFS=$as_save_IFS
6317   test -z "$as_dir" && as_dir=.
6318   for ac_exec_ext in '' $ac_executable_extensions; do
6319   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6320     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6321     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6322     break 2
6323   fi
6324 done
6325 done
6326 IFS=$as_save_IFS
6327
6328 fi
6329 fi
6330 STRIP=$ac_cv_prog_STRIP
6331 if test -n "$STRIP"; then
6332   { echo "$as_me:$LINENO: result: $STRIP" >&5
6333 echo "${ECHO_T}$STRIP" >&6; }
6334 else
6335   { echo "$as_me:$LINENO: result: no" >&5
6336 echo "${ECHO_T}no" >&6; }
6337 fi
6338
6339
6340 fi
6341 if test -z "$ac_cv_prog_STRIP"; then
6342   ac_ct_STRIP=$STRIP
6343   # Extract the first word of "strip", so it can be a program name with args.
6344 set dummy strip; ac_word=$2
6345 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6346 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6347 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6348   echo $ECHO_N "(cached) $ECHO_C" >&6
6349 else
6350   if test -n "$ac_ct_STRIP"; then
6351   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6352 else
6353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6354 for as_dir in $PATH
6355 do
6356   IFS=$as_save_IFS
6357   test -z "$as_dir" && as_dir=.
6358   for ac_exec_ext in '' $ac_executable_extensions; do
6359   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6360     ac_cv_prog_ac_ct_STRIP="strip"
6361     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6362     break 2
6363   fi
6364 done
6365 done
6366 IFS=$as_save_IFS
6367
6368 fi
6369 fi
6370 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6371 if test -n "$ac_ct_STRIP"; then
6372   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6373 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6374 else
6375   { echo "$as_me:$LINENO: result: no" >&5
6376 echo "${ECHO_T}no" >&6; }
6377 fi
6378
6379   if test "x$ac_ct_STRIP" = x; then
6380     STRIP=":"
6381   else
6382     case $cross_compiling:$ac_tool_warned in
6383 yes:)
6384 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6385 whose name does not start with the host triplet.  If you think this
6386 configuration is useful to you, please write to autoconf@gnu.org." >&5
6387 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6388 whose name does not start with the host triplet.  If you think this
6389 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6390 ac_tool_warned=yes ;;
6391 esac
6392     STRIP=$ac_ct_STRIP
6393   fi
6394 else
6395   STRIP="$ac_cv_prog_STRIP"
6396 fi
6397
6398
6399 old_CC="$CC"
6400 old_CFLAGS="$CFLAGS"
6401
6402 # Set sane defaults for various variables
6403 test -z "$AR" && AR=ar
6404 test -z "$AR_FLAGS" && AR_FLAGS=cru
6405 test -z "$AS" && AS=as
6406 test -z "$CC" && CC=cc
6407 test -z "$LTCC" && LTCC=$CC
6408 test -z "$DLLTOOL" && DLLTOOL=dlltool
6409 test -z "$LD" && LD=ld
6410 test -z "$LN_S" && LN_S="ln -s"
6411 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6412 test -z "$NM" && NM=nm
6413 test -z "$SED" && SED=sed
6414 test -z "$OBJDUMP" && OBJDUMP=objdump
6415 test -z "$RANLIB" && RANLIB=:
6416 test -z "$STRIP" && STRIP=:
6417 test -z "$ac_objext" && ac_objext=o
6418
6419 # Determine commands to create old-style static archives.
6420 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6421 old_postinstall_cmds='chmod 644 $oldlib'
6422 old_postuninstall_cmds=
6423
6424 if test -n "$RANLIB"; then
6425   case $host_os in
6426   openbsd*)
6427     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6428     ;;
6429   *)
6430     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6431     ;;
6432   esac
6433   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6434 fi
6435
6436 # Only perform the check for file, if the check method requires it
6437 case $deplibs_check_method in
6438 file_magic*)
6439   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6440     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6441 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6442 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6443   echo $ECHO_N "(cached) $ECHO_C" >&6
6444 else
6445   case $MAGIC_CMD in
6446 [\\/*] |  ?:[\\/]*)
6447   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6448   ;;
6449 *)
6450   lt_save_MAGIC_CMD="$MAGIC_CMD"
6451   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6452   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6453   for ac_dir in $ac_dummy; do
6454     IFS="$lt_save_ifs"
6455     test -z "$ac_dir" && ac_dir=.
6456     if test -f $ac_dir/${ac_tool_prefix}file; then
6457       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6458       if test -n "$file_magic_test_file"; then
6459         case $deplibs_check_method in
6460         "file_magic "*)
6461           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6462           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6463           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6464             $EGREP "$file_magic_regex" > /dev/null; then
6465             :
6466           else
6467             cat <<EOF 1>&2
6468
6469 *** Warning: the command libtool uses to detect shared libraries,
6470 *** $file_magic_cmd, produces output that libtool cannot recognize.
6471 *** The result is that libtool may fail to recognize shared libraries
6472 *** as such.  This will affect the creation of libtool libraries that
6473 *** depend on shared libraries, but programs linked with such libtool
6474 *** libraries will work regardless of this problem.  Nevertheless, you
6475 *** may want to report the problem to your system manager and/or to
6476 *** bug-libtool@gnu.org
6477
6478 EOF
6479           fi ;;
6480         esac
6481       fi
6482       break
6483     fi
6484   done
6485   IFS="$lt_save_ifs"
6486   MAGIC_CMD="$lt_save_MAGIC_CMD"
6487   ;;
6488 esac
6489 fi
6490
6491 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6492 if test -n "$MAGIC_CMD"; then
6493   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6494 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6495 else
6496   { echo "$as_me:$LINENO: result: no" >&5
6497 echo "${ECHO_T}no" >&6; }
6498 fi
6499
6500 if test -z "$lt_cv_path_MAGIC_CMD"; then
6501   if test -n "$ac_tool_prefix"; then
6502     { echo "$as_me:$LINENO: checking for file" >&5
6503 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6504 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6505   echo $ECHO_N "(cached) $ECHO_C" >&6
6506 else
6507   case $MAGIC_CMD in
6508 [\\/*] |  ?:[\\/]*)
6509   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6510   ;;
6511 *)
6512   lt_save_MAGIC_CMD="$MAGIC_CMD"
6513   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6514   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6515   for ac_dir in $ac_dummy; do
6516     IFS="$lt_save_ifs"
6517     test -z "$ac_dir" && ac_dir=.
6518     if test -f $ac_dir/file; then
6519       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6520       if test -n "$file_magic_test_file"; then
6521         case $deplibs_check_method in
6522         "file_magic "*)
6523           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6524           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6525           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6526             $EGREP "$file_magic_regex" > /dev/null; then
6527             :
6528           else
6529             cat <<EOF 1>&2
6530
6531 *** Warning: the command libtool uses to detect shared libraries,
6532 *** $file_magic_cmd, produces output that libtool cannot recognize.
6533 *** The result is that libtool may fail to recognize shared libraries
6534 *** as such.  This will affect the creation of libtool libraries that
6535 *** depend on shared libraries, but programs linked with such libtool
6536 *** libraries will work regardless of this problem.  Nevertheless, you
6537 *** may want to report the problem to your system manager and/or to
6538 *** bug-libtool@gnu.org
6539
6540 EOF
6541           fi ;;
6542         esac
6543       fi
6544       break
6545     fi
6546   done
6547   IFS="$lt_save_ifs"
6548   MAGIC_CMD="$lt_save_MAGIC_CMD"
6549   ;;
6550 esac
6551 fi
6552
6553 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6554 if test -n "$MAGIC_CMD"; then
6555   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6556 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6557 else
6558   { echo "$as_me:$LINENO: result: no" >&5
6559 echo "${ECHO_T}no" >&6; }
6560 fi
6561
6562   else
6563     MAGIC_CMD=:
6564   fi
6565 fi
6566
6567   fi
6568   ;;
6569 esac
6570
6571 enable_dlopen=no
6572 enable_win32_dll=no
6573
6574 # Check whether --enable-libtool-lock was given.
6575 if test "${enable_libtool_lock+set}" = set; then
6576   enableval=$enable_libtool_lock;
6577 fi
6578
6579 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6580
6581
6582 # Check whether --with-pic was given.
6583 if test "${with_pic+set}" = set; then
6584   withval=$with_pic; pic_mode="$withval"
6585 else
6586   pic_mode=default
6587 fi
6588
6589 test -z "$pic_mode" && pic_mode=default
6590
6591 # Use C for the default configuration in the libtool script
6592 tagname=
6593 lt_save_CC="$CC"
6594 ac_ext=c
6595 ac_cpp='$CPP $CPPFLAGS'
6596 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6597 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6598 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6599
6600
6601 # Source file extension for C test sources.
6602 ac_ext=c
6603
6604 # Object file extension for compiled C test sources.
6605 objext=o
6606 objext=$objext
6607
6608 # Code to be used in simple compile tests
6609 lt_simple_compile_test_code="int some_variable = 0;\n"
6610
6611 # Code to be used in simple link tests
6612 lt_simple_link_test_code='int main(){return(0);}\n'
6613
6614
6615 # If no C compiler was specified, use CC.
6616 LTCC=${LTCC-"$CC"}
6617
6618 # Allow CC to be a program name with arguments.
6619 compiler=$CC
6620
6621
6622 #
6623 # Check for any special shared library compilation flags.
6624 #
6625 lt_prog_cc_shlib=
6626 if test "$GCC" = no; then
6627   case $host_os in
6628   sco3.2v5*)
6629     lt_prog_cc_shlib='-belf'
6630     ;;
6631   esac
6632 fi
6633 if test -n "$lt_prog_cc_shlib"; then
6634   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6635 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6636   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
6637   else
6638     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6639 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6640     lt_cv_prog_cc_can_build_shared=no
6641   fi
6642 fi
6643
6644
6645 #
6646 # Check to make sure the static flag actually works.
6647 #
6648 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6649 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6; }
6650 if test "${lt_prog_compiler_static_works+set}" = set; then
6651   echo $ECHO_N "(cached) $ECHO_C" >&6
6652 else
6653   lt_prog_compiler_static_works=no
6654    save_LDFLAGS="$LDFLAGS"
6655    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6656    printf "$lt_simple_link_test_code" > conftest.$ac_ext
6657    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6658      # The compiler can only warn and ignore the option if not recognized
6659      # So say no if there are warnings
6660      if test -s conftest.err; then
6661        # Append any errors to the config.log.
6662        cat conftest.err 1>&5
6663      else
6664        lt_prog_compiler_static_works=yes
6665      fi
6666    fi
6667    $rm conftest*
6668    LDFLAGS="$save_LDFLAGS"
6669
6670 fi
6671 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6672 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
6673
6674 if test x"$lt_prog_compiler_static_works" = xyes; then
6675     :
6676 else
6677     lt_prog_compiler_static=
6678 fi
6679
6680
6681
6682 ## CAVEAT EMPTOR:
6683 ## There is no encapsulation within the following macros, do not change
6684 ## the running order or otherwise move them around unless you know exactly
6685 ## what you are doing...
6686
6687 lt_prog_compiler_no_builtin_flag=
6688
6689 if test "$GCC" = yes; then
6690   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6691
6692
6693 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6694 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
6695 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6696   echo $ECHO_N "(cached) $ECHO_C" >&6
6697 else
6698   lt_cv_prog_compiler_rtti_exceptions=no
6699   ac_outfile=conftest.$ac_objext
6700    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6701    lt_compiler_flag="-fno-rtti -fno-exceptions"
6702    # Insert the option either (1) after the last *FLAGS variable, or
6703    # (2) before a word containing "conftest.", or (3) at the end.
6704    # Note that $ac_compile itself does not contain backslashes and begins
6705    # with a dollar sign (not a hyphen), so the echo should work correctly.
6706    # The option is referenced via a variable to avoid confusing sed.
6707    lt_compile=`echo "$ac_compile" | $SED \
6708    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6709    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6710    -e 's:$: $lt_compiler_flag:'`
6711    (eval echo "\"\$as_me:6711: $lt_compile\"" >&5)
6712    (eval "$lt_compile" 2>conftest.err)
6713    ac_status=$?
6714    cat conftest.err >&5
6715    echo "$as_me:6715: \$? = $ac_status" >&5
6716    if (exit $ac_status) && test -s "$ac_outfile"; then
6717      # The compiler can only warn and ignore the option if not recognized
6718      # So say no if there are warnings
6719      if test ! -s conftest.err; then
6720        lt_cv_prog_compiler_rtti_exceptions=yes
6721      fi
6722    fi
6723    $rm conftest*
6724
6725 fi
6726 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6727 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
6728
6729 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6730     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6731 else
6732     :
6733 fi
6734
6735 fi
6736
6737 lt_prog_compiler_wl=
6738 lt_prog_compiler_pic=
6739 lt_prog_compiler_static=
6740
6741 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6742 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
6743
6744   if test "$GCC" = yes; then
6745     lt_prog_compiler_wl='-Wl,'
6746     lt_prog_compiler_static='-static'
6747
6748     case $host_os in
6749       aix*)
6750       # All AIX code is PIC.
6751       if test "$host_cpu" = ia64; then
6752         # AIX 5 now supports IA64 processor
6753         lt_prog_compiler_static='-Bstatic'
6754       fi
6755       ;;
6756
6757     amigaos*)
6758       # FIXME: we need at least 68020 code to build shared libraries, but
6759       # adding the `-m68020' flag to GCC prevents building anything better,
6760       # like `-m68040'.
6761       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6762       ;;
6763
6764     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6765       # PIC is the default for these OSes.
6766       ;;
6767
6768     mingw* | pw32* | os2*)
6769       # This hack is so that the source file can tell whether it is being
6770       # built for inclusion in a dll (and should export symbols for example).
6771       lt_prog_compiler_pic='-DDLL_EXPORT'
6772       ;;
6773
6774     darwin* | rhapsody*)
6775       # PIC is the default on this platform
6776       # Common symbols not allowed in MH_DYLIB files
6777       lt_prog_compiler_pic='-fno-common'
6778       ;;
6779
6780     msdosdjgpp*)
6781       # Just because we use GCC doesn't mean we suddenly get shared libraries
6782       # on systems that don't support them.
6783       lt_prog_compiler_can_build_shared=no
6784       enable_shared=no
6785       ;;
6786
6787     sysv4*MP*)
6788       if test -d /usr/nec; then
6789         lt_prog_compiler_pic=-Kconform_pic
6790       fi
6791       ;;
6792
6793     hpux*)
6794       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6795       # not for PA HP-UX.
6796       case "$host_cpu" in
6797       hppa*64*|ia64*)
6798         # +Z the default
6799         ;;
6800       *)
6801         lt_prog_compiler_pic='-fPIC'
6802         ;;
6803       esac
6804       ;;
6805
6806     *)
6807       lt_prog_compiler_pic='-fPIC'
6808       ;;
6809     esac
6810   else
6811     # PORTME Check for flag to pass linker flags through the system compiler.
6812     case $host_os in
6813     aix*)
6814       lt_prog_compiler_wl='-Wl,'
6815       if test "$host_cpu" = ia64; then
6816         # AIX 5 now supports IA64 processor
6817         lt_prog_compiler_static='-Bstatic'
6818       else
6819         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6820       fi
6821       ;;
6822
6823     mingw* | pw32* | os2*)
6824       # This hack is so that the source file can tell whether it is being
6825       # built for inclusion in a dll (and should export symbols for example).
6826       lt_prog_compiler_pic='-DDLL_EXPORT'
6827       ;;
6828
6829     hpux9* | hpux10* | hpux11*)
6830       lt_prog_compiler_wl='-Wl,'
6831       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6832       # not for PA HP-UX.
6833       case "$host_cpu" in
6834       hppa*64*|ia64*)
6835         # +Z the default
6836         ;;
6837       *)
6838         lt_prog_compiler_pic='+Z'
6839         ;;
6840       esac
6841       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6842       lt_prog_compiler_static='${wl}-a ${wl}archive'
6843       ;;
6844
6845     irix5* | irix6* | nonstopux*)
6846       lt_prog_compiler_wl='-Wl,'
6847       # PIC (with -KPIC) is the default.
6848       lt_prog_compiler_static='-non_shared'
6849       ;;
6850
6851     newsos6)
6852       lt_prog_compiler_pic='-KPIC'
6853       lt_prog_compiler_static='-Bstatic'
6854       ;;
6855
6856     linux*)
6857       case $CC in
6858       icc* | ecc*)
6859         lt_prog_compiler_wl='-Wl,'
6860         lt_prog_compiler_pic='-KPIC'
6861         lt_prog_compiler_static='-static'
6862         ;;
6863       ccc*)
6864         lt_prog_compiler_wl='-Wl,'
6865         # All Alpha code is PIC.
6866         lt_prog_compiler_static='-non_shared'
6867         ;;
6868       esac
6869       ;;
6870
6871     osf3* | osf4* | osf5*)
6872       lt_prog_compiler_wl='-Wl,'
6873       # All OSF/1 code is PIC.
6874       lt_prog_compiler_static='-non_shared'
6875       ;;
6876
6877     sco3.2v5*)
6878       lt_prog_compiler_pic='-Kpic'
6879       lt_prog_compiler_static='-dn'
6880       ;;
6881
6882     solaris*)
6883       lt_prog_compiler_wl='-Wl,'
6884       lt_prog_compiler_pic='-KPIC'
6885       lt_prog_compiler_static='-Bstatic'
6886       ;;
6887
6888     sunos4*)
6889       lt_prog_compiler_wl='-Qoption ld '
6890       lt_prog_compiler_pic='-PIC'
6891       lt_prog_compiler_static='-Bstatic'
6892       ;;
6893
6894     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6895       lt_prog_compiler_wl='-Wl,'
6896       lt_prog_compiler_pic='-KPIC'
6897       lt_prog_compiler_static='-Bstatic'
6898       ;;
6899
6900     sysv4*MP*)
6901       if test -d /usr/nec ;then
6902         lt_prog_compiler_pic='-Kconform_pic'
6903         lt_prog_compiler_static='-Bstatic'
6904       fi
6905       ;;
6906
6907     uts4*)
6908       lt_prog_compiler_pic='-pic'
6909       lt_prog_compiler_static='-Bstatic'
6910       ;;
6911
6912     *)
6913       lt_prog_compiler_can_build_shared=no
6914       ;;
6915     esac
6916   fi
6917
6918 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6919 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
6920
6921 #
6922 # Check to make sure the PIC flag actually works.
6923 #
6924 if test -n "$lt_prog_compiler_pic"; then
6925
6926 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6927 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
6928 if test "${lt_prog_compiler_pic_works+set}" = set; then
6929   echo $ECHO_N "(cached) $ECHO_C" >&6
6930 else
6931   lt_prog_compiler_pic_works=no
6932   ac_outfile=conftest.$ac_objext
6933    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6934    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6935    # Insert the option either (1) after the last *FLAGS variable, or
6936    # (2) before a word containing "conftest.", or (3) at the end.
6937    # Note that $ac_compile itself does not contain backslashes and begins
6938    # with a dollar sign (not a hyphen), so the echo should work correctly.
6939    # The option is referenced via a variable to avoid confusing sed.
6940    lt_compile=`echo "$ac_compile" | $SED \
6941    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6942    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6943    -e 's:$: $lt_compiler_flag:'`
6944    (eval echo "\"\$as_me:6944: $lt_compile\"" >&5)
6945    (eval "$lt_compile" 2>conftest.err)
6946    ac_status=$?
6947    cat conftest.err >&5
6948    echo "$as_me:6948: \$? = $ac_status" >&5
6949    if (exit $ac_status) && test -s "$ac_outfile"; then
6950      # The compiler can only warn and ignore the option if not recognized
6951      # So say no if there are warnings
6952      if test ! -s conftest.err; then
6953        lt_prog_compiler_pic_works=yes
6954      fi
6955    fi
6956    $rm conftest*
6957
6958 fi
6959 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6960 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
6961
6962 if test x"$lt_prog_compiler_pic_works" = xyes; then
6963     case $lt_prog_compiler_pic in
6964      "" | " "*) ;;
6965      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6966      esac
6967 else
6968     lt_prog_compiler_pic=
6969      lt_prog_compiler_can_build_shared=no
6970 fi
6971
6972 fi
6973 case "$host_os" in
6974   # For platforms which do not support PIC, -DPIC is meaningless:
6975   *djgpp*)
6976     lt_prog_compiler_pic=
6977     ;;
6978   *)
6979     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6980     ;;
6981 esac
6982
6983 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6984 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
6985 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6986   echo $ECHO_N "(cached) $ECHO_C" >&6
6987 else
6988   lt_cv_prog_compiler_c_o=no
6989    $rm -r conftest 2>/dev/null
6990    mkdir conftest
6991    cd conftest
6992    mkdir out
6993    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6994
6995    lt_compiler_flag="-o out/conftest2.$ac_objext"
6996    # Insert the option either (1) after the last *FLAGS variable, or
6997    # (2) before a word containing "conftest.", or (3) at the end.
6998    # Note that $ac_compile itself does not contain backslashes and begins
6999    # with a dollar sign (not a hyphen), so the echo should work correctly.
7000    lt_compile=`echo "$ac_compile" | $SED \
7001    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7002    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7003    -e 's:$: $lt_compiler_flag:'`
7004    (eval echo "\"\$as_me:7004: $lt_compile\"" >&5)
7005    (eval "$lt_compile" 2>out/conftest.err)
7006    ac_status=$?
7007    cat out/conftest.err >&5
7008    echo "$as_me:7008: \$? = $ac_status" >&5
7009    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7010    then
7011      # The compiler can only warn and ignore the option if not recognized
7012      # So say no if there are warnings
7013      if test ! -s out/conftest.err; then
7014        lt_cv_prog_compiler_c_o=yes
7015      fi
7016    fi
7017    chmod u+w .
7018    $rm conftest*
7019    # SGI C++ compiler will create directory out/ii_files/ for
7020    # template instantiation
7021    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7022    $rm out/* && rmdir out
7023    cd ..
7024    rmdir conftest
7025    $rm conftest*
7026
7027 fi
7028 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7029 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7030
7031
7032 hard_links="nottested"
7033 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7034   # do not overwrite the value of need_locks provided by the user
7035   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7036 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7037   hard_links=yes
7038   $rm conftest*
7039   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7040   touch conftest.a
7041   ln conftest.a conftest.b 2>&5 || hard_links=no
7042   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7043   { echo "$as_me:$LINENO: result: $hard_links" >&5
7044 echo "${ECHO_T}$hard_links" >&6; }
7045   if test "$hard_links" = no; then
7046     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7047 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7048     need_locks=warn
7049   fi
7050 else
7051   need_locks=no
7052 fi
7053
7054 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7055 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7056
7057   runpath_var=
7058   allow_undefined_flag=
7059   enable_shared_with_static_runtimes=no
7060   archive_cmds=
7061   archive_expsym_cmds=
7062   old_archive_From_new_cmds=
7063   old_archive_from_expsyms_cmds=
7064   export_dynamic_flag_spec=
7065   whole_archive_flag_spec=
7066   thread_safe_flag_spec=
7067   hardcode_libdir_flag_spec=
7068   hardcode_libdir_flag_spec_ld=
7069   hardcode_libdir_separator=
7070   hardcode_direct=no
7071   hardcode_minus_L=no
7072   hardcode_shlibpath_var=unsupported
7073   link_all_deplibs=unknown
7074   hardcode_automatic=no
7075   module_cmds=
7076   module_expsym_cmds=
7077   always_export_symbols=no
7078   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7079   # include_expsyms should be a list of space-separated symbols to be *always*
7080   # included in the symbol list
7081   include_expsyms=
7082   # exclude_expsyms can be an extended regexp of symbols to exclude
7083   # it will be wrapped by ` (' and `)$', so one must not match beginning or
7084   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7085   # as well as any symbol that contains `d'.
7086   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7087   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7088   # platforms (ab)use it in PIC code, but their linkers get confused if
7089   # the symbol is explicitly referenced.  Since portable code cannot
7090   # rely on this symbol name, it's probably fine to never include it in
7091   # preloaded symbol tables.
7092   extract_expsyms_cmds=
7093
7094   case $host_os in
7095   cygwin* | mingw* | pw32*)
7096     # FIXME: the MSVC++ port hasn't been tested in a loooong time
7097     # When not using gcc, we currently assume that we are using
7098     # Microsoft Visual C++.
7099     if test "$GCC" != yes; then
7100       with_gnu_ld=no
7101     fi
7102     ;;
7103   openbsd*)
7104     with_gnu_ld=no
7105     ;;
7106   esac
7107
7108   ld_shlibs=yes
7109   if test "$with_gnu_ld" = yes; then
7110     # If archive_cmds runs LD, not CC, wlarc should be empty
7111     wlarc='${wl}'
7112
7113     # See if GNU ld supports shared libraries.
7114     case $host_os in
7115     aix3* | aix4* | aix5*)
7116       # On AIX/PPC, the GNU linker is very broken
7117       if test "$host_cpu" != ia64; then
7118         ld_shlibs=no
7119         cat <<EOF 1>&2
7120
7121 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7122 *** to be unable to reliably create shared libraries on AIX.
7123 *** Therefore, libtool is disabling shared libraries support.  If you
7124 *** really care for shared libraries, you may want to modify your PATH
7125 *** so that a non-GNU linker is found, and then restart.
7126
7127 EOF
7128       fi
7129       ;;
7130
7131     amigaos*)
7132       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)'
7133       hardcode_libdir_flag_spec='-L$libdir'
7134       hardcode_minus_L=yes
7135
7136       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7137       # that the semantics of dynamic libraries on AmigaOS, at least up
7138       # to version 4, is to share data among multiple programs linked
7139       # with the same dynamic library.  Since this doesn't match the
7140       # behavior of shared libraries on other platforms, we can't use
7141       # them.
7142       ld_shlibs=no
7143       ;;
7144
7145     beos*)
7146       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7147         allow_undefined_flag=unsupported
7148         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7149         # support --undefined.  This deserves some investigation.  FIXME
7150         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7151       else
7152         ld_shlibs=no
7153       fi
7154       ;;
7155
7156     cygwin* | mingw* | pw32*)
7157       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7158       # as there is no search path for DLLs.
7159       hardcode_libdir_flag_spec='-L$libdir'
7160       allow_undefined_flag=unsupported
7161       always_export_symbols=no
7162       enable_shared_with_static_runtimes=yes
7163       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7164
7165       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7166         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7167         # If the export-symbols file already is a .def file (1st line
7168         # is EXPORTS), use it as is; otherwise, prepend...
7169         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7170           cp $export_symbols $output_objdir/$soname.def;
7171         else
7172           echo EXPORTS > $output_objdir/$soname.def;
7173           cat $export_symbols >> $output_objdir/$soname.def;
7174         fi~
7175         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
7176       else
7177         ld_shlibs=no
7178       fi
7179       ;;
7180
7181     netbsd*)
7182       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7183         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7184         wlarc=
7185       else
7186         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7187         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7188       fi
7189       ;;
7190
7191     solaris* | sysv5*)
7192       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7193         ld_shlibs=no
7194         cat <<EOF 1>&2
7195
7196 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7197 *** create shared libraries on Solaris systems.  Therefore, libtool
7198 *** is disabling shared libraries support.  We urge you to upgrade GNU
7199 *** binutils to release 2.9.1 or newer.  Another option is to modify
7200 *** your PATH or compiler configuration so that the native linker is
7201 *** used, and then restart.
7202
7203 EOF
7204       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7205         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7206         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7207       else
7208         ld_shlibs=no
7209       fi
7210       ;;
7211
7212     sunos4*)
7213       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7214       wlarc=
7215       hardcode_direct=yes
7216       hardcode_shlibpath_var=no
7217       ;;
7218
7219   linux*)
7220     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7221         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7222         archive_cmds="$tmp_archive_cmds"
7223       supports_anon_versioning=no
7224       case `$LD -v 2>/dev/null` in
7225         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7226         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7227         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7228         *\ 2.11.*) ;; # other 2.11 versions
7229         *) supports_anon_versioning=yes ;;
7230       esac
7231       if test $supports_anon_versioning = yes; then
7232         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7233 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7234 $echo "local: *; };" >> $output_objdir/$libname.ver~
7235         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7236       else
7237         archive_expsym_cmds="$tmp_archive_cmds"
7238       fi
7239     else
7240       ld_shlibs=no
7241     fi
7242     ;;
7243
7244     *)
7245       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7246         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7247         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7248       else
7249         ld_shlibs=no
7250       fi
7251       ;;
7252     esac
7253
7254     if test "$ld_shlibs" = yes; then
7255       runpath_var=LD_RUN_PATH
7256       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7257       export_dynamic_flag_spec='${wl}--export-dynamic'
7258       # ancient GNU ld didn't support --whole-archive et. al.
7259       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7260         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7261       else
7262         whole_archive_flag_spec=
7263       fi
7264     fi
7265   else
7266     # PORTME fill in a description of your system's linker (not GNU ld)
7267     case $host_os in
7268     aix3*)
7269       allow_undefined_flag=unsupported
7270       always_export_symbols=yes
7271       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'
7272       # Note: this linker hardcodes the directories in LIBPATH if there
7273       # are no directories specified by -L.
7274       hardcode_minus_L=yes
7275       if test "$GCC" = yes && test -z "$link_static_flag"; then
7276         # Neither direct hardcoding nor static linking is supported with a
7277         # broken collect2.
7278         hardcode_direct=unsupported
7279       fi
7280       ;;
7281
7282     aix4* | aix5*)
7283       if test "$host_cpu" = ia64; then
7284         # On IA64, the linker does run time linking by default, so we don't
7285         # have to do anything special.
7286         aix_use_runtimelinking=no
7287         exp_sym_flag='-Bexport'
7288         no_entry_flag=""
7289       else
7290         # If we're using GNU nm, then we don't want the "-C" option.
7291         # -C means demangle to AIX nm, but means don't demangle with GNU nm
7292         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7293           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'
7294         else
7295           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'
7296         fi
7297         aix_use_runtimelinking=no
7298
7299         # Test if we are trying to use run time linking or normal
7300         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7301         # need to do runtime linking.
7302         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7303           for ld_flag in $LDFLAGS; do
7304           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7305             aix_use_runtimelinking=yes
7306             break
7307           fi
7308           done
7309         esac
7310
7311         exp_sym_flag='-bexport'
7312         no_entry_flag='-bnoentry'
7313       fi
7314
7315       # When large executables or shared objects are built, AIX ld can
7316       # have problems creating the table of contents.  If linking a library
7317       # or program results in "error TOC overflow" add -mminimal-toc to
7318       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7319       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7320
7321       archive_cmds=''
7322       hardcode_direct=yes
7323       hardcode_libdir_separator=':'
7324       link_all_deplibs=yes
7325
7326       if test "$GCC" = yes; then
7327         case $host_os in aix4.012|aix4.012.*)
7328         # We only want to do this on AIX 4.2 and lower, the check
7329         # below for broken collect2 doesn't work under 4.3+
7330           collect2name=`${CC} -print-prog-name=collect2`
7331           if test -f "$collect2name" && \
7332            strings "$collect2name" | grep resolve_lib_name >/dev/null
7333           then
7334           # We have reworked collect2
7335           hardcode_direct=yes
7336           else
7337           # We have old collect2
7338           hardcode_direct=unsupported
7339           # It fails to find uninstalled libraries when the uninstalled
7340           # path is not listed in the libpath.  Setting hardcode_minus_L
7341           # to unsupported forces relinking
7342           hardcode_minus_L=yes
7343           hardcode_libdir_flag_spec='-L$libdir'
7344           hardcode_libdir_separator=
7345           fi
7346         esac
7347         shared_flag='-shared'
7348       else
7349         # not using gcc
7350         if test "$host_cpu" = ia64; then
7351         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7352         # chokes on -Wl,-G. The following line is correct:
7353           shared_flag='-G'
7354         else
7355         if test "$aix_use_runtimelinking" = yes; then
7356             shared_flag='${wl}-G'
7357           else
7358             shared_flag='${wl}-bM:SRE'
7359         fi
7360         fi
7361       fi
7362
7363       # It seems that -bexpall does not export symbols beginning with
7364       # underscore (_), so it is better to generate a list of symbols to export.
7365       always_export_symbols=yes
7366       if test "$aix_use_runtimelinking" = yes; then
7367         # Warning - without using the other runtime loading flags (-brtl),
7368         # -berok will link without error, but may produce a broken library.
7369         allow_undefined_flag='-berok'
7370        # Determine the default libpath from the value encoded in an empty executable.
7371        cat >conftest.$ac_ext <<_ACEOF
7372 /* confdefs.h.  */
7373 _ACEOF
7374 cat confdefs.h >>conftest.$ac_ext
7375 cat >>conftest.$ac_ext <<_ACEOF
7376 /* end confdefs.h.  */
7377
7378 int
7379 main ()
7380 {
7381
7382   ;
7383   return 0;
7384 }
7385 _ACEOF
7386 rm -f conftest.$ac_objext conftest$ac_exeext
7387 if { (ac_try="$ac_link"
7388 case "(($ac_try" in
7389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7390   *) ac_try_echo=$ac_try;;
7391 esac
7392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7393   (eval "$ac_link") 2>conftest.er1
7394   ac_status=$?
7395   grep -v '^ *+' conftest.er1 >conftest.err
7396   rm -f conftest.er1
7397   cat conftest.err >&5
7398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7399   (exit $ac_status); } && {
7400          test -z "$ac_c_werror_flag" ||
7401          test ! -s conftest.err
7402        } && test -s conftest$ac_exeext &&
7403        $as_test_x conftest$ac_exeext; then
7404
7405 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7406 }'`
7407 # Check for a 64-bit object if we didn't find anything.
7408 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7409 }'`; fi
7410 else
7411   echo "$as_me: failed program was:" >&5
7412 sed 's/^/| /' conftest.$ac_ext >&5
7413
7414
7415 fi
7416
7417 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7418       conftest$ac_exeext conftest.$ac_ext
7419 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7420
7421        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7422         archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7423        else
7424         if test "$host_cpu" = ia64; then
7425           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7426           allow_undefined_flag="-z nodefs"
7427           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
7428         else
7429          # Determine the default libpath from the value encoded in an empty executable.
7430          cat >conftest.$ac_ext <<_ACEOF
7431 /* confdefs.h.  */
7432 _ACEOF
7433 cat confdefs.h >>conftest.$ac_ext
7434 cat >>conftest.$ac_ext <<_ACEOF
7435 /* end confdefs.h.  */
7436
7437 int
7438 main ()
7439 {
7440
7441   ;
7442   return 0;
7443 }
7444 _ACEOF
7445 rm -f conftest.$ac_objext conftest$ac_exeext
7446 if { (ac_try="$ac_link"
7447 case "(($ac_try" in
7448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7449   *) ac_try_echo=$ac_try;;
7450 esac
7451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7452   (eval "$ac_link") 2>conftest.er1
7453   ac_status=$?
7454   grep -v '^ *+' conftest.er1 >conftest.err
7455   rm -f conftest.er1
7456   cat conftest.err >&5
7457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7458   (exit $ac_status); } && {
7459          test -z "$ac_c_werror_flag" ||
7460          test ! -s conftest.err
7461        } && test -s conftest$ac_exeext &&
7462        $as_test_x conftest$ac_exeext; then
7463
7464 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7465 }'`
7466 # Check for a 64-bit object if we didn't find anything.
7467 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7468 }'`; fi
7469 else
7470   echo "$as_me: failed program was:" >&5
7471 sed 's/^/| /' conftest.$ac_ext >&5
7472
7473
7474 fi
7475
7476 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7477       conftest$ac_exeext conftest.$ac_ext
7478 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7479
7480          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7481           # Warning - without using the other run time loading flags,
7482           # -berok will link without error, but may produce a broken library.
7483           no_undefined_flag=' ${wl}-bernotok'
7484           allow_undefined_flag=' ${wl}-berok'
7485           # -bexpall does not export symbols beginning with underscore (_)
7486           always_export_symbols=yes
7487           # Exported symbols can be pulled into shared objects from archives
7488           whole_archive_flag_spec=' '
7489           archive_cmds_need_lc=yes
7490           # This is similar to how AIX traditionally builds it's shared libraries.
7491           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7492         fi
7493       fi
7494       ;;
7495
7496     amigaos*)
7497       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)'
7498       hardcode_libdir_flag_spec='-L$libdir'
7499       hardcode_minus_L=yes
7500       # see comment about different semantics on the GNU ld section
7501       ld_shlibs=no
7502       ;;
7503
7504     bsdi4*)
7505       export_dynamic_flag_spec=-rdynamic
7506       ;;
7507
7508     cygwin* | mingw* | pw32*)
7509       # When not using gcc, we currently assume that we are using
7510       # Microsoft Visual C++.
7511       # hardcode_libdir_flag_spec is actually meaningless, as there is
7512       # no search path for DLLs.
7513       hardcode_libdir_flag_spec=' '
7514       allow_undefined_flag=unsupported
7515       # Tell ltmain to make .lib files, not .a files.
7516       libext=lib
7517       # Tell ltmain to make .dll files, not .so files.
7518       shrext_cmds=".dll"
7519       # FIXME: Setting linknames here is a bad hack.
7520       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7521       # The linker will automatically build a .lib file if we build a DLL.
7522       old_archive_From_new_cmds='true'
7523       # FIXME: Should let the user specify the lib program.
7524       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7525       fix_srcfile_path='`cygpath -w "$srcfile"`'
7526       enable_shared_with_static_runtimes=yes
7527       ;;
7528
7529     darwin* | rhapsody*)
7530     if test "$GXX" = yes ; then
7531       archive_cmds_need_lc=no
7532       case "$host_os" in
7533       rhapsody* | darwin1.[012])
7534         allow_undefined_flag='-undefined suppress'
7535         ;;
7536       *) # Darwin 1.3 on
7537       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7538         allow_undefined_flag='-flat_namespace -undefined suppress'
7539       else
7540         case ${MACOSX_DEPLOYMENT_TARGET} in
7541           10.[012])
7542             allow_undefined_flag='-flat_namespace -undefined suppress'
7543             ;;
7544           10.*)
7545             allow_undefined_flag='-undefined dynamic_lookup'
7546             ;;
7547         esac
7548       fi
7549         ;;
7550       esac
7551         lt_int_apple_cc_single_mod=no
7552         output_verbose_link_cmd='echo'
7553         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7554           lt_int_apple_cc_single_mod=yes
7555         fi
7556         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7557           archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7558         else
7559         archive_cmds='$CC -r ${wl}-bind_at_load -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'
7560       fi
7561       module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7562       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7563         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7564           archive_expsym_cmds='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}'
7565         else
7566           archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
7567         fi
7568           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}'
7569       hardcode_direct=no
7570       hardcode_automatic=yes
7571       hardcode_shlibpath_var=unsupported
7572       whole_archive_flag_spec='-all_load $convenience'
7573       link_all_deplibs=yes
7574     else
7575       ld_shlibs=no
7576     fi
7577       ;;
7578
7579     dgux*)
7580       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7581       hardcode_libdir_flag_spec='-L$libdir'
7582       hardcode_shlibpath_var=no
7583       ;;
7584
7585     freebsd1*)
7586       ld_shlibs=no
7587       ;;
7588
7589     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7590     # support.  Future versions do this automatically, but an explicit c++rt0.o
7591     # does not break anything, and helps significantly (at the cost of a little
7592     # extra space).
7593     freebsd2.2*)
7594       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7595       hardcode_libdir_flag_spec='-R$libdir'
7596       hardcode_direct=yes
7597       hardcode_shlibpath_var=no
7598       ;;
7599
7600     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7601     freebsd2*)
7602       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7603       hardcode_direct=yes
7604       hardcode_minus_L=yes
7605       hardcode_shlibpath_var=no
7606       ;;
7607
7608     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7609     freebsd* | kfreebsd*-gnu)
7610       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7611       hardcode_libdir_flag_spec='-R$libdir'
7612       hardcode_direct=yes
7613       hardcode_shlibpath_var=no
7614       ;;
7615
7616     hpux9*)
7617       if test "$GCC" = yes; then
7618         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'
7619       else
7620         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'
7621       fi
7622       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7623       hardcode_libdir_separator=:
7624       hardcode_direct=yes
7625
7626       # hardcode_minus_L: Not really in the search PATH,
7627       # but as the default location of the library.
7628       hardcode_minus_L=yes
7629       export_dynamic_flag_spec='${wl}-E'
7630       ;;
7631
7632     hpux10* | hpux11*)
7633       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7634         case "$host_cpu" in
7635         hppa*64*|ia64*)
7636           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7637           ;;
7638         *)
7639           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7640           ;;
7641         esac
7642       else
7643         case "$host_cpu" in
7644         hppa*64*|ia64*)
7645           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7646           ;;
7647         *)
7648           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7649           ;;
7650         esac
7651       fi
7652       if test "$with_gnu_ld" = no; then
7653         case "$host_cpu" in
7654         hppa*64*)
7655           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7656           hardcode_libdir_flag_spec_ld='+b $libdir'
7657           hardcode_libdir_separator=:
7658           hardcode_direct=no
7659           hardcode_shlibpath_var=no
7660           ;;
7661         ia64*)
7662           hardcode_libdir_flag_spec='-L$libdir'
7663           hardcode_direct=no
7664           hardcode_shlibpath_var=no
7665
7666           # hardcode_minus_L: Not really in the search PATH,
7667           # but as the default location of the library.
7668           hardcode_minus_L=yes
7669           ;;
7670         *)
7671           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7672           hardcode_libdir_separator=:
7673           hardcode_direct=yes
7674           export_dynamic_flag_spec='${wl}-E'
7675
7676           # hardcode_minus_L: Not really in the search PATH,
7677           # but as the default location of the library.
7678           hardcode_minus_L=yes
7679           ;;
7680         esac
7681       fi
7682       ;;
7683
7684     irix5* | irix6* | nonstopux*)
7685       if test "$GCC" = yes; then
7686         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'
7687       else
7688         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'
7689         hardcode_libdir_flag_spec_ld='-rpath $libdir'
7690       fi
7691       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7692       hardcode_libdir_separator=:
7693       link_all_deplibs=yes
7694       ;;
7695
7696     netbsd*)
7697       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7698         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7699       else
7700         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7701       fi
7702       hardcode_libdir_flag_spec='-R$libdir'
7703       hardcode_direct=yes
7704       hardcode_shlibpath_var=no
7705       ;;
7706
7707     newsos6)
7708       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7709       hardcode_direct=yes
7710       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7711       hardcode_libdir_separator=:
7712       hardcode_shlibpath_var=no
7713       ;;
7714
7715     openbsd*)
7716       hardcode_direct=yes
7717       hardcode_shlibpath_var=no
7718       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7719         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7720         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7721         export_dynamic_flag_spec='${wl}-E'
7722       else
7723        case $host_os in
7724          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7725            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7726            hardcode_libdir_flag_spec='-R$libdir'
7727            ;;
7728          *)
7729            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7730            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7731            ;;
7732        esac
7733       fi
7734       ;;
7735
7736     os2*)
7737       hardcode_libdir_flag_spec='-L$libdir'
7738       hardcode_minus_L=yes
7739       allow_undefined_flag=unsupported
7740       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'
7741       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7742       ;;
7743
7744     osf3*)
7745       if test "$GCC" = yes; then
7746         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7747         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'
7748       else
7749         allow_undefined_flag=' -expect_unresolved \*'
7750         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'
7751       fi
7752       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7753       hardcode_libdir_separator=:
7754       ;;
7755
7756     osf4* | osf5*)      # as osf3* with the addition of -msym flag
7757       if test "$GCC" = yes; then
7758         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7759         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'
7760         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7761       else
7762         allow_undefined_flag=' -expect_unresolved \*'
7763         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'
7764         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7765         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
7766
7767         # Both c and cxx compiler support -rpath directly
7768         hardcode_libdir_flag_spec='-rpath $libdir'
7769       fi
7770       hardcode_libdir_separator=:
7771       ;;
7772
7773     sco3.2v5*)
7774       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7775       hardcode_shlibpath_var=no
7776       export_dynamic_flag_spec='${wl}-Bexport'
7777       runpath_var=LD_RUN_PATH
7778       hardcode_runpath_var=yes
7779       ;;
7780
7781     solaris*)
7782       no_undefined_flag=' -z text'
7783       if test "$GCC" = yes; then
7784         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7785         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7786           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7787       else
7788         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7789         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7790         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7791       fi
7792       hardcode_libdir_flag_spec='-R$libdir'
7793       hardcode_shlibpath_var=no
7794       case $host_os in
7795       solaris2.[0-5] | solaris2.[0-5].*) ;;
7796       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7797         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7798       esac
7799       link_all_deplibs=yes
7800       ;;
7801
7802     sunos4*)
7803       if test "x$host_vendor" = xsequent; then
7804         # Use $CC to link under sequent, because it throws in some extra .o
7805         # files that make .init and .fini sections work.
7806         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7807       else
7808         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7809       fi
7810       hardcode_libdir_flag_spec='-L$libdir'
7811       hardcode_direct=yes
7812       hardcode_minus_L=yes
7813       hardcode_shlibpath_var=no
7814       ;;
7815
7816     sysv4)
7817       case $host_vendor in
7818         sni)
7819           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7820           hardcode_direct=yes # is this really true???
7821         ;;
7822         siemens)
7823           ## LD is ld it makes a PLAMLIB
7824           ## CC just makes a GrossModule.
7825           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7826           reload_cmds='$CC -r -o $output$reload_objs'
7827           hardcode_direct=no
7828         ;;
7829         motorola)
7830           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7831           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7832         ;;
7833       esac
7834       runpath_var='LD_RUN_PATH'
7835       hardcode_shlibpath_var=no
7836       ;;
7837
7838     sysv4.3*)
7839       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7840       hardcode_shlibpath_var=no
7841       export_dynamic_flag_spec='-Bexport'
7842       ;;
7843
7844     sysv4*MP*)
7845       if test -d /usr/nec; then
7846         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7847         hardcode_shlibpath_var=no
7848         runpath_var=LD_RUN_PATH
7849         hardcode_runpath_var=yes
7850         ld_shlibs=yes
7851       fi
7852       ;;
7853
7854     sysv4.2uw2*)
7855       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7856       hardcode_direct=yes
7857       hardcode_minus_L=no
7858       hardcode_shlibpath_var=no
7859       hardcode_runpath_var=yes
7860       runpath_var=LD_RUN_PATH
7861       ;;
7862
7863    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7864       no_undefined_flag='${wl}-z ${wl}text'
7865       if test "$GCC" = yes; then
7866         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7867       else
7868         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7869       fi
7870       runpath_var='LD_RUN_PATH'
7871       hardcode_shlibpath_var=no
7872       ;;
7873
7874     sysv5*)
7875       no_undefined_flag=' -z text'
7876       # $CC -shared without GNU ld will not create a library from C++
7877       # object files and a static libstdc++, better avoid it by now
7878       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7879       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7880                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7881       hardcode_libdir_flag_spec=
7882       hardcode_shlibpath_var=no
7883       runpath_var='LD_RUN_PATH'
7884       ;;
7885
7886     uts4*)
7887       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7888       hardcode_libdir_flag_spec='-L$libdir'
7889       hardcode_shlibpath_var=no
7890       ;;
7891
7892     *)
7893       ld_shlibs=no
7894       ;;
7895     esac
7896   fi
7897
7898 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7899 echo "${ECHO_T}$ld_shlibs" >&6; }
7900 test "$ld_shlibs" = no && can_build_shared=no
7901
7902 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7903 if test "$GCC" = yes; then
7904   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7905 fi
7906
7907 #
7908 # Do we need to explicitly link libc?
7909 #
7910 case "x$archive_cmds_need_lc" in
7911 x|xyes)
7912   # Assume -lc should be added
7913   archive_cmds_need_lc=yes
7914
7915   if test "$enable_shared" = yes && test "$GCC" = yes; then
7916     case $archive_cmds in
7917     *'~'*)
7918       # FIXME: we may have to deal with multi-command sequences.
7919       ;;
7920     '$CC '*)
7921       # Test whether the compiler implicitly links with -lc since on some
7922       # systems, -lgcc has to come before -lc. If gcc already passes -lc
7923       # to ld, don't add -lc before -lgcc.
7924       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7925 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
7926       $rm conftest*
7927       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7928
7929       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7930   (eval $ac_compile) 2>&5
7931   ac_status=$?
7932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7933   (exit $ac_status); } 2>conftest.err; then
7934         soname=conftest
7935         lib=conftest
7936         libobjs=conftest.$ac_objext
7937         deplibs=
7938         wl=$lt_prog_compiler_wl
7939         compiler_flags=-v
7940         linker_flags=-v
7941         verstring=
7942         output_objdir=.
7943         libname=conftest
7944         lt_save_allow_undefined_flag=$allow_undefined_flag
7945         allow_undefined_flag=
7946         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7947   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7948   ac_status=$?
7949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7950   (exit $ac_status); }
7951         then
7952           archive_cmds_need_lc=no
7953         else
7954           archive_cmds_need_lc=yes
7955         fi
7956         allow_undefined_flag=$lt_save_allow_undefined_flag
7957       else
7958         cat conftest.err 1>&5
7959       fi
7960       $rm conftest*
7961       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7962 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
7963       ;;
7964     esac
7965   fi
7966   ;;
7967 esac
7968
7969 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7970 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
7971 library_names_spec=
7972 libname_spec='lib$name'
7973 soname_spec=
7974 shrext_cmds=".so"
7975 postinstall_cmds=
7976 postuninstall_cmds=
7977 finish_cmds=
7978 finish_eval=
7979 shlibpath_var=
7980 shlibpath_overrides_runpath=unknown
7981 version_type=none
7982 dynamic_linker="$host_os ld.so"
7983 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7984 if test "$GCC" = yes; then
7985   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7986   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7987     # if the path contains ";" then we assume it to be the separator
7988     # otherwise default to the standard path separator (i.e. ":") - it is
7989     # assumed that no part of a normal pathname contains ";" but that should
7990     # okay in the real world where ";" in dirpaths is itself problematic.
7991     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7992   else
7993     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7994   fi
7995 else
7996   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7997 fi
7998 need_lib_prefix=unknown
7999 hardcode_into_libs=no
8000
8001 # when you set need_version to no, make sure it does not cause -set_version
8002 # flags to be left without arguments
8003 need_version=unknown
8004
8005 case $host_os in
8006 aix3*)
8007   version_type=linux
8008   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8009   shlibpath_var=LIBPATH
8010
8011   # AIX 3 has no versioning support, so we append a major version to the name.
8012   soname_spec='${libname}${release}${shared_ext}$major'
8013   ;;
8014
8015 aix4* | aix5*)
8016   version_type=linux
8017   need_lib_prefix=no
8018   need_version=no
8019   hardcode_into_libs=yes
8020   if test "$host_cpu" = ia64; then
8021     # AIX 5 supports IA64
8022     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8023     shlibpath_var=LD_LIBRARY_PATH
8024   else
8025     # With GCC up to 2.95.x, collect2 would create an import file
8026     # for dependence libraries.  The import file would start with
8027     # the line `#! .'.  This would cause the generated library to
8028     # depend on `.', always an invalid library.  This was fixed in
8029     # development snapshots of GCC prior to 3.0.
8030     case $host_os in
8031       aix4 | aix4.[01] | aix4.[01].*)
8032       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8033            echo ' yes '
8034            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8035         :
8036       else
8037         can_build_shared=no
8038       fi
8039       ;;
8040     esac
8041     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8042     # soname into executable. Probably we can add versioning support to
8043     # collect2, so additional links can be useful in future.
8044     if test "$aix_use_runtimelinking" = yes; then
8045       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8046       # instead of lib<name>.a to let people know that these are not
8047       # typical AIX shared libraries.
8048       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8049     else
8050       # We preserve .a as extension for shared libraries through AIX4.2
8051       # and later when we are not doing run time linking.
8052       library_names_spec='${libname}${release}.a $libname.a'
8053       soname_spec='${libname}${release}${shared_ext}$major'
8054     fi
8055     shlibpath_var=LIBPATH
8056   fi
8057   ;;
8058
8059 amigaos*)
8060   library_names_spec='$libname.ixlibrary $libname.a'
8061   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8062   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'
8063   ;;
8064
8065 beos*)
8066   library_names_spec='${libname}${shared_ext}'
8067   dynamic_linker="$host_os ld.so"
8068   shlibpath_var=LIBRARY_PATH
8069   ;;
8070
8071 bsdi4*)
8072   version_type=linux
8073   need_version=no
8074   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8075   soname_spec='${libname}${release}${shared_ext}$major'
8076   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8077   shlibpath_var=LD_LIBRARY_PATH
8078   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8079   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8080   # the default ld.so.conf also contains /usr/contrib/lib and
8081   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8082   # libtool to hard-code these into programs
8083   ;;
8084
8085 cygwin* | mingw* | pw32*)
8086   version_type=windows
8087   shrext_cmds=".dll"
8088   need_version=no
8089   need_lib_prefix=no
8090
8091   case $GCC,$host_os in
8092   yes,cygwin* | yes,mingw* | yes,pw32*)
8093     library_names_spec='$libname.dll.a'
8094     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8095     postinstall_cmds='base_file=`basename \${file}`~
8096       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8097       dldir=$destdir/`dirname \$dlpath`~
8098       test -d \$dldir || mkdir -p \$dldir~
8099       $install_prog $dir/$dlname \$dldir/$dlname'
8100     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8101       dlpath=$dir/\$dldll~
8102        $rm \$dlpath'
8103     shlibpath_overrides_runpath=yes
8104
8105     case $host_os in
8106     cygwin*)
8107       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8108       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8109       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8110       ;;
8111     mingw*)
8112       # MinGW DLLs use traditional 'lib' prefix
8113       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8114       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8115       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8116         # It is most probably a Windows format PATH printed by
8117         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8118         # path with ; separators, and with drive letters. We can handle the
8119         # drive letters (cygwin fileutils understands them), so leave them,
8120         # especially as we might pass files found there to a mingw objdump,
8121         # which wouldn't understand a cygwinified path. Ahh.
8122         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8123       else
8124         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8125       fi
8126       ;;
8127     pw32*)
8128       # pw32 DLLs use 'pw' prefix rather than 'lib'
8129       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
8130       ;;
8131     esac
8132     ;;
8133
8134   *)
8135     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8136     ;;
8137   esac
8138   dynamic_linker='Win32 ld.exe'
8139   # FIXME: first we should search . and the directory the executable is in
8140   shlibpath_var=PATH
8141   ;;
8142
8143 darwin* | rhapsody*)
8144   dynamic_linker="$host_os dyld"
8145   version_type=darwin
8146   need_lib_prefix=no
8147   need_version=no
8148   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8149   soname_spec='${libname}${release}${major}$shared_ext'
8150   shlibpath_overrides_runpath=yes
8151   shlibpath_var=DYLD_LIBRARY_PATH
8152   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
8153   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8154   if test "$GCC" = yes; then
8155     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
8156   else
8157     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8158   fi
8159   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8160   ;;
8161
8162 dgux*)
8163   version_type=linux
8164   need_lib_prefix=no
8165   need_version=no
8166   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8167   soname_spec='${libname}${release}${shared_ext}$major'
8168   shlibpath_var=LD_LIBRARY_PATH
8169   ;;
8170
8171 freebsd1*)
8172   dynamic_linker=no
8173   ;;
8174
8175 kfreebsd*-gnu)
8176   version_type=linux
8177   need_lib_prefix=no
8178   need_version=no
8179   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8180   soname_spec='${libname}${release}${shared_ext}$major'
8181   shlibpath_var=LD_LIBRARY_PATH
8182   shlibpath_overrides_runpath=no
8183   hardcode_into_libs=yes
8184   dynamic_linker='GNU ld.so'
8185   ;;
8186
8187 freebsd*)
8188   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
8189   version_type=freebsd-$objformat
8190   case $version_type in
8191     freebsd-elf*)
8192       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8193       need_version=no
8194       need_lib_prefix=no
8195       ;;
8196     freebsd-*)
8197       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8198       need_version=yes
8199       ;;
8200   esac
8201   shlibpath_var=LD_LIBRARY_PATH
8202   case $host_os in
8203   freebsd2*)
8204     shlibpath_overrides_runpath=yes
8205     ;;
8206   freebsd3.01* | freebsdelf3.01*)
8207     shlibpath_overrides_runpath=yes
8208     hardcode_into_libs=yes
8209     ;;
8210   *) # from 3.2 on
8211     shlibpath_overrides_runpath=no
8212     hardcode_into_libs=yes
8213     ;;
8214   esac
8215   ;;
8216
8217 gnu*)
8218   version_type=linux
8219   need_lib_prefix=no
8220   need_version=no
8221   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8222   soname_spec='${libname}${release}${shared_ext}$major'
8223   shlibpath_var=LD_LIBRARY_PATH
8224   hardcode_into_libs=yes
8225   ;;
8226
8227 hpux9* | hpux10* | hpux11*)
8228   # Give a soname corresponding to the major version so that dld.sl refuses to
8229   # link against other versions.
8230   version_type=sunos
8231   need_lib_prefix=no
8232   need_version=no
8233   case "$host_cpu" in
8234   ia64*)
8235     shrext_cmds='.so'
8236     hardcode_into_libs=yes
8237     dynamic_linker="$host_os dld.so"
8238     shlibpath_var=LD_LIBRARY_PATH
8239     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8240     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8241     soname_spec='${libname}${release}${shared_ext}$major'
8242     if test "X$HPUX_IA64_MODE" = X32; then
8243       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8244     else
8245       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8246     fi
8247     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8248     ;;
8249    hppa*64*)
8250      shrext_cmds='.sl'
8251      hardcode_into_libs=yes
8252      dynamic_linker="$host_os dld.sl"
8253      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8254      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8255      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8256      soname_spec='${libname}${release}${shared_ext}$major'
8257      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8258      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8259      ;;
8260    *)
8261     shrext_cmds='.sl'
8262     dynamic_linker="$host_os dld.sl"
8263     shlibpath_var=SHLIB_PATH
8264     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8265     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8266     soname_spec='${libname}${release}${shared_ext}$major'
8267     ;;
8268   esac
8269   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8270   postinstall_cmds='chmod 555 $lib'
8271   ;;
8272
8273 irix5* | irix6* | nonstopux*)
8274   case $host_os in
8275     nonstopux*) version_type=nonstopux ;;
8276     *)
8277         if test "$lt_cv_prog_gnu_ld" = yes; then
8278                 version_type=linux
8279         else
8280                 version_type=irix
8281         fi ;;
8282   esac
8283   need_lib_prefix=no
8284   need_version=no
8285   soname_spec='${libname}${release}${shared_ext}$major'
8286   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8287   case $host_os in
8288   irix5* | nonstopux*)
8289     libsuff= shlibsuff=
8290     ;;
8291   *)
8292     case $LD in # libtool.m4 will add one of these switches to LD
8293     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8294       libsuff= shlibsuff= libmagic=32-bit;;
8295     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8296       libsuff=32 shlibsuff=N32 libmagic=N32;;
8297     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8298       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8299     *) libsuff= shlibsuff= libmagic=never-match;;
8300     esac
8301     ;;
8302   esac
8303   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8304   shlibpath_overrides_runpath=no
8305   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8306   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8307   hardcode_into_libs=yes
8308   ;;
8309
8310 # No shared lib support for Linux oldld, aout, or coff.
8311 linux*oldld* | linux*aout* | linux*coff*)
8312   dynamic_linker=no
8313   ;;
8314
8315 # This must be Linux ELF.
8316 linux*)
8317   version_type=linux
8318   need_lib_prefix=no
8319   need_version=no
8320   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8321   soname_spec='${libname}${release}${shared_ext}$major'
8322   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8323   shlibpath_var=LD_LIBRARY_PATH
8324   shlibpath_overrides_runpath=no
8325   # This implies no fast_install, which is unacceptable.
8326   # Some rework will be needed to allow for fast_install
8327   # before this can be enabled.
8328   hardcode_into_libs=yes
8329
8330   # find out which ABI we are using
8331   libsuff=
8332   case "$host_cpu" in
8333   x86_64*|s390x*|powerpc64*)
8334     echo '#line 8334 "configure"' > conftest.$ac_ext
8335     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8336   (eval $ac_compile) 2>&5
8337   ac_status=$?
8338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8339   (exit $ac_status); }; then
8340       case `/usr/bin/file conftest.$ac_objext` in
8341       *64-bit*)
8342         libsuff=64
8343         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
8344         ;;
8345       esac
8346     fi
8347     rm -rf conftest*
8348     ;;
8349   esac
8350
8351   # Append ld.so.conf contents to the search path
8352   if test -f /etc/ld.so.conf; then
8353     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
8354     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
8355   fi
8356
8357   # We used to test for /lib/ld.so.1 and disable shared libraries on
8358   # powerpc, because MkLinux only supported shared libraries with the
8359   # GNU dynamic linker.  Since this was broken with cross compilers,
8360   # most powerpc-linux boxes support dynamic linking these days and
8361   # people can always --disable-shared, the test was removed, and we
8362   # assume the GNU/Linux dynamic linker is in use.
8363   dynamic_linker='GNU/Linux ld.so'
8364   ;;
8365
8366 knetbsd*-gnu)
8367   version_type=linux
8368   need_lib_prefix=no
8369   need_version=no
8370   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8371   soname_spec='${libname}${release}${shared_ext}$major'
8372   shlibpath_var=LD_LIBRARY_PATH
8373   shlibpath_overrides_runpath=no
8374   hardcode_into_libs=yes
8375   dynamic_linker='GNU ld.so'
8376   ;;
8377
8378 netbsd*)
8379   version_type=sunos
8380   need_lib_prefix=no
8381   need_version=no
8382   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8383     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8384     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8385     dynamic_linker='NetBSD (a.out) ld.so'
8386   else
8387     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8388     soname_spec='${libname}${release}${shared_ext}$major'
8389     dynamic_linker='NetBSD ld.elf_so'
8390   fi
8391   shlibpath_var=LD_LIBRARY_PATH
8392   shlibpath_overrides_runpath=yes
8393   hardcode_into_libs=yes
8394   ;;
8395
8396 newsos6)
8397   version_type=linux
8398   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8399   shlibpath_var=LD_LIBRARY_PATH
8400   shlibpath_overrides_runpath=yes
8401   ;;
8402
8403 nto-qnx*)
8404   version_type=linux
8405   need_lib_prefix=no
8406   need_version=no
8407   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8408   soname_spec='${libname}${release}${shared_ext}$major'
8409   shlibpath_var=LD_LIBRARY_PATH
8410   shlibpath_overrides_runpath=yes
8411   ;;
8412
8413 openbsd*)
8414   version_type=sunos
8415   need_lib_prefix=no
8416   need_version=yes
8417   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8418   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8419   shlibpath_var=LD_LIBRARY_PATH
8420   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8421     case $host_os in
8422       openbsd2.[89] | openbsd2.[89].*)
8423         shlibpath_overrides_runpath=no
8424         ;;
8425       *)
8426         shlibpath_overrides_runpath=yes
8427         ;;
8428       esac
8429   else
8430     shlibpath_overrides_runpath=yes
8431   fi
8432   ;;
8433
8434 os2*)
8435   libname_spec='$name'
8436   shrext_cmds=".dll"
8437   need_lib_prefix=no
8438   library_names_spec='$libname${shared_ext} $libname.a'
8439   dynamic_linker='OS/2 ld.exe'
8440   shlibpath_var=LIBPATH
8441   ;;
8442
8443 osf3* | osf4* | osf5*)
8444   version_type=osf
8445   need_lib_prefix=no
8446   need_version=no
8447   soname_spec='${libname}${release}${shared_ext}$major'
8448   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8449   shlibpath_var=LD_LIBRARY_PATH
8450   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8451   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8452   ;;
8453
8454 sco3.2v5*)
8455   version_type=osf
8456   soname_spec='${libname}${release}${shared_ext}$major'
8457   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8458   shlibpath_var=LD_LIBRARY_PATH
8459   ;;
8460
8461 solaris*)
8462   version_type=linux
8463   need_lib_prefix=no
8464   need_version=no
8465   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8466   soname_spec='${libname}${release}${shared_ext}$major'
8467   shlibpath_var=LD_LIBRARY_PATH
8468   shlibpath_overrides_runpath=yes
8469   hardcode_into_libs=yes
8470   # ldd complains unless libraries are executable
8471   postinstall_cmds='chmod +x $lib'
8472   ;;
8473
8474 sunos4*)
8475   version_type=sunos
8476   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8477   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8478   shlibpath_var=LD_LIBRARY_PATH
8479   shlibpath_overrides_runpath=yes
8480   if test "$with_gnu_ld" = yes; then
8481     need_lib_prefix=no
8482   fi
8483   need_version=yes
8484   ;;
8485
8486 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8487   version_type=linux
8488   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8489   soname_spec='${libname}${release}${shared_ext}$major'
8490   shlibpath_var=LD_LIBRARY_PATH
8491   case $host_vendor in
8492     sni)
8493       shlibpath_overrides_runpath=no
8494       need_lib_prefix=no
8495       export_dynamic_flag_spec='${wl}-Blargedynsym'
8496       runpath_var=LD_RUN_PATH
8497       ;;
8498     siemens)
8499       need_lib_prefix=no
8500       ;;
8501     motorola)
8502       need_lib_prefix=no
8503       need_version=no
8504       shlibpath_overrides_runpath=no
8505       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8506       ;;
8507   esac
8508   ;;
8509
8510 sysv4*MP*)
8511   if test -d /usr/nec ;then
8512     version_type=linux
8513     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8514     soname_spec='$libname${shared_ext}.$major'
8515     shlibpath_var=LD_LIBRARY_PATH
8516   fi
8517   ;;
8518
8519 uts4*)
8520   version_type=linux
8521   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8522   soname_spec='${libname}${release}${shared_ext}$major'
8523   shlibpath_var=LD_LIBRARY_PATH
8524   ;;
8525
8526 *)
8527   dynamic_linker=no
8528   ;;
8529 esac
8530 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8531 echo "${ECHO_T}$dynamic_linker" >&6; }
8532 test "$dynamic_linker" = no && can_build_shared=no
8533
8534 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8535 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
8536 hardcode_action=
8537 if test -n "$hardcode_libdir_flag_spec" || \
8538    test -n "$runpath_var " || \
8539    test "X$hardcode_automatic"="Xyes" ; then
8540
8541   # We can hardcode non-existant directories.
8542   if test "$hardcode_direct" != no &&
8543      # If the only mechanism to avoid hardcoding is shlibpath_var, we
8544      # have to relink, otherwise we might link with an installed library
8545      # when we should be linking with a yet-to-be-installed one
8546      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8547      test "$hardcode_minus_L" != no; then
8548     # Linking always hardcodes the temporary library directory.
8549     hardcode_action=relink
8550   else
8551     # We can link without hardcoding, and we can hardcode nonexisting dirs.
8552     hardcode_action=immediate
8553   fi
8554 else
8555   # We cannot hardcode anything, or else we can only hardcode existing
8556   # directories.
8557   hardcode_action=unsupported
8558 fi
8559 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
8560 echo "${ECHO_T}$hardcode_action" >&6; }
8561
8562 if test "$hardcode_action" = relink; then
8563   # Fast installation is not supported
8564   enable_fast_install=no
8565 elif test "$shlibpath_overrides_runpath" = yes ||
8566      test "$enable_shared" = no; then
8567   # Fast installation is not necessary
8568   enable_fast_install=needless
8569 fi
8570
8571 striplib=
8572 old_striplib=
8573 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8574 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
8575 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8576   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8577   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8578   { echo "$as_me:$LINENO: result: yes" >&5
8579 echo "${ECHO_T}yes" >&6; }
8580 else
8581 # FIXME - insert some real tests, host_os isn't really good enough
8582   case $host_os in
8583    darwin*)
8584        if test -n "$STRIP" ; then
8585          striplib="$STRIP -x"
8586          { echo "$as_me:$LINENO: result: yes" >&5
8587 echo "${ECHO_T}yes" >&6; }
8588        else
8589   { echo "$as_me:$LINENO: result: no" >&5
8590 echo "${ECHO_T}no" >&6; }
8591 fi
8592        ;;
8593    *)
8594   { echo "$as_me:$LINENO: result: no" >&5
8595 echo "${ECHO_T}no" >&6; }
8596     ;;
8597   esac
8598 fi
8599
8600 if test "x$enable_dlopen" != xyes; then
8601   enable_dlopen=unknown
8602   enable_dlopen_self=unknown
8603   enable_dlopen_self_static=unknown
8604 else
8605   lt_cv_dlopen=no
8606   lt_cv_dlopen_libs=
8607
8608   case $host_os in
8609   beos*)
8610     lt_cv_dlopen="load_add_on"
8611     lt_cv_dlopen_libs=
8612     lt_cv_dlopen_self=yes
8613     ;;
8614
8615   mingw* | pw32*)
8616     lt_cv_dlopen="LoadLibrary"
8617     lt_cv_dlopen_libs=
8618    ;;
8619
8620   cygwin*)
8621     lt_cv_dlopen="dlopen"
8622     lt_cv_dlopen_libs=
8623    ;;
8624
8625   darwin*)
8626   # if libdl is installed we need to link against it
8627     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8628 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
8629 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8630   echo $ECHO_N "(cached) $ECHO_C" >&6
8631 else
8632   ac_check_lib_save_LIBS=$LIBS
8633 LIBS="-ldl  $LIBS"
8634 cat >conftest.$ac_ext <<_ACEOF
8635 /* confdefs.h.  */
8636 _ACEOF
8637 cat confdefs.h >>conftest.$ac_ext
8638 cat >>conftest.$ac_ext <<_ACEOF
8639 /* end confdefs.h.  */
8640
8641 /* Override any GCC internal prototype to avoid an error.
8642    Use char because int might match the return type of a GCC
8643    builtin and then its argument prototype would still apply.  */
8644 #ifdef __cplusplus
8645 extern "C"
8646 #endif
8647 char dlopen ();
8648 int
8649 main ()
8650 {
8651 return dlopen ();
8652   ;
8653   return 0;
8654 }
8655 _ACEOF
8656 rm -f conftest.$ac_objext conftest$ac_exeext
8657 if { (ac_try="$ac_link"
8658 case "(($ac_try" in
8659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8660   *) ac_try_echo=$ac_try;;
8661 esac
8662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8663   (eval "$ac_link") 2>conftest.er1
8664   ac_status=$?
8665   grep -v '^ *+' conftest.er1 >conftest.err
8666   rm -f conftest.er1
8667   cat conftest.err >&5
8668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8669   (exit $ac_status); } && {
8670          test -z "$ac_c_werror_flag" ||
8671          test ! -s conftest.err
8672        } && test -s conftest$ac_exeext &&
8673        $as_test_x conftest$ac_exeext; then
8674   ac_cv_lib_dl_dlopen=yes
8675 else
8676   echo "$as_me: failed program was:" >&5
8677 sed 's/^/| /' conftest.$ac_ext >&5
8678
8679         ac_cv_lib_dl_dlopen=no
8680 fi
8681
8682 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8683       conftest$ac_exeext conftest.$ac_ext
8684 LIBS=$ac_check_lib_save_LIBS
8685 fi
8686 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8687 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
8688 if test $ac_cv_lib_dl_dlopen = yes; then
8689   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8690 else
8691
8692     lt_cv_dlopen="dyld"
8693     lt_cv_dlopen_libs=
8694     lt_cv_dlopen_self=yes
8695
8696 fi
8697
8698    ;;
8699
8700   *)
8701     { echo "$as_me:$LINENO: checking for shl_load" >&5
8702 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
8703 if test "${ac_cv_func_shl_load+set}" = set; then
8704   echo $ECHO_N "(cached) $ECHO_C" >&6
8705 else
8706   cat >conftest.$ac_ext <<_ACEOF
8707 /* confdefs.h.  */
8708 _ACEOF
8709 cat confdefs.h >>conftest.$ac_ext
8710 cat >>conftest.$ac_ext <<_ACEOF
8711 /* end confdefs.h.  */
8712 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8713    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8714 #define shl_load innocuous_shl_load
8715
8716 /* System header to define __stub macros and hopefully few prototypes,
8717     which can conflict with char shl_load (); below.
8718     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8719     <limits.h> exists even on freestanding compilers.  */
8720
8721 #ifdef __STDC__
8722 # include <limits.h>
8723 #else
8724 # include <assert.h>
8725 #endif
8726
8727 #undef shl_load
8728
8729 /* Override any GCC internal prototype to avoid an error.
8730    Use char because int might match the return type of a GCC
8731    builtin and then its argument prototype would still apply.  */
8732 #ifdef __cplusplus
8733 extern "C"
8734 #endif
8735 char shl_load ();
8736 /* The GNU C library defines this for functions which it implements
8737     to always fail with ENOSYS.  Some functions are actually named
8738     something starting with __ and the normal name is an alias.  */
8739 #if defined __stub_shl_load || defined __stub___shl_load
8740 choke me
8741 #endif
8742
8743 int
8744 main ()
8745 {
8746 return shl_load ();
8747   ;
8748   return 0;
8749 }
8750 _ACEOF
8751 rm -f conftest.$ac_objext conftest$ac_exeext
8752 if { (ac_try="$ac_link"
8753 case "(($ac_try" in
8754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8755   *) ac_try_echo=$ac_try;;
8756 esac
8757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8758   (eval "$ac_link") 2>conftest.er1
8759   ac_status=$?
8760   grep -v '^ *+' conftest.er1 >conftest.err
8761   rm -f conftest.er1
8762   cat conftest.err >&5
8763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8764   (exit $ac_status); } && {
8765          test -z "$ac_c_werror_flag" ||
8766          test ! -s conftest.err
8767        } && test -s conftest$ac_exeext &&
8768        $as_test_x conftest$ac_exeext; then
8769   ac_cv_func_shl_load=yes
8770 else
8771   echo "$as_me: failed program was:" >&5
8772 sed 's/^/| /' conftest.$ac_ext >&5
8773
8774         ac_cv_func_shl_load=no
8775 fi
8776
8777 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8778       conftest$ac_exeext conftest.$ac_ext
8779 fi
8780 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8781 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
8782 if test $ac_cv_func_shl_load = yes; then
8783   lt_cv_dlopen="shl_load"
8784 else
8785   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8786 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
8787 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8788   echo $ECHO_N "(cached) $ECHO_C" >&6
8789 else
8790   ac_check_lib_save_LIBS=$LIBS
8791 LIBS="-ldld  $LIBS"
8792 cat >conftest.$ac_ext <<_ACEOF
8793 /* confdefs.h.  */
8794 _ACEOF
8795 cat confdefs.h >>conftest.$ac_ext
8796 cat >>conftest.$ac_ext <<_ACEOF
8797 /* end confdefs.h.  */
8798
8799 /* Override any GCC internal prototype to avoid an error.
8800    Use char because int might match the return type of a GCC
8801    builtin and then its argument prototype would still apply.  */
8802 #ifdef __cplusplus
8803 extern "C"
8804 #endif
8805 char shl_load ();
8806 int
8807 main ()
8808 {
8809 return shl_load ();
8810   ;
8811   return 0;
8812 }
8813 _ACEOF
8814 rm -f conftest.$ac_objext conftest$ac_exeext
8815 if { (ac_try="$ac_link"
8816 case "(($ac_try" in
8817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8818   *) ac_try_echo=$ac_try;;
8819 esac
8820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8821   (eval "$ac_link") 2>conftest.er1
8822   ac_status=$?
8823   grep -v '^ *+' conftest.er1 >conftest.err
8824   rm -f conftest.er1
8825   cat conftest.err >&5
8826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8827   (exit $ac_status); } && {
8828          test -z "$ac_c_werror_flag" ||
8829          test ! -s conftest.err
8830        } && test -s conftest$ac_exeext &&
8831        $as_test_x conftest$ac_exeext; then
8832   ac_cv_lib_dld_shl_load=yes
8833 else
8834   echo "$as_me: failed program was:" >&5
8835 sed 's/^/| /' conftest.$ac_ext >&5
8836
8837         ac_cv_lib_dld_shl_load=no
8838 fi
8839
8840 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8841       conftest$ac_exeext conftest.$ac_ext
8842 LIBS=$ac_check_lib_save_LIBS
8843 fi
8844 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8845 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
8846 if test $ac_cv_lib_dld_shl_load = yes; then
8847   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8848 else
8849   { echo "$as_me:$LINENO: checking for dlopen" >&5
8850 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
8851 if test "${ac_cv_func_dlopen+set}" = set; then
8852   echo $ECHO_N "(cached) $ECHO_C" >&6
8853 else
8854   cat >conftest.$ac_ext <<_ACEOF
8855 /* confdefs.h.  */
8856 _ACEOF
8857 cat confdefs.h >>conftest.$ac_ext
8858 cat >>conftest.$ac_ext <<_ACEOF
8859 /* end confdefs.h.  */
8860 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8861    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8862 #define dlopen innocuous_dlopen
8863
8864 /* System header to define __stub macros and hopefully few prototypes,
8865     which can conflict with char dlopen (); below.
8866     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8867     <limits.h> exists even on freestanding compilers.  */
8868
8869 #ifdef __STDC__
8870 # include <limits.h>
8871 #else
8872 # include <assert.h>
8873 #endif
8874
8875 #undef dlopen
8876
8877 /* Override any GCC internal prototype to avoid an error.
8878    Use char because int might match the return type of a GCC
8879    builtin and then its argument prototype would still apply.  */
8880 #ifdef __cplusplus
8881 extern "C"
8882 #endif
8883 char dlopen ();
8884 /* The GNU C library defines this for functions which it implements
8885     to always fail with ENOSYS.  Some functions are actually named
8886     something starting with __ and the normal name is an alias.  */
8887 #if defined __stub_dlopen || defined __stub___dlopen
8888 choke me
8889 #endif
8890
8891 int
8892 main ()
8893 {
8894 return dlopen ();
8895   ;
8896   return 0;
8897 }
8898 _ACEOF
8899 rm -f conftest.$ac_objext conftest$ac_exeext
8900 if { (ac_try="$ac_link"
8901 case "(($ac_try" in
8902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8903   *) ac_try_echo=$ac_try;;
8904 esac
8905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8906   (eval "$ac_link") 2>conftest.er1
8907   ac_status=$?
8908   grep -v '^ *+' conftest.er1 >conftest.err
8909   rm -f conftest.er1
8910   cat conftest.err >&5
8911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8912   (exit $ac_status); } && {
8913          test -z "$ac_c_werror_flag" ||
8914          test ! -s conftest.err
8915        } && test -s conftest$ac_exeext &&
8916        $as_test_x conftest$ac_exeext; then
8917   ac_cv_func_dlopen=yes
8918 else
8919   echo "$as_me: failed program was:" >&5
8920 sed 's/^/| /' conftest.$ac_ext >&5
8921
8922         ac_cv_func_dlopen=no
8923 fi
8924
8925 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8926       conftest$ac_exeext conftest.$ac_ext
8927 fi
8928 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8929 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
8930 if test $ac_cv_func_dlopen = yes; then
8931   lt_cv_dlopen="dlopen"
8932 else
8933   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8934 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
8935 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8936   echo $ECHO_N "(cached) $ECHO_C" >&6
8937 else
8938   ac_check_lib_save_LIBS=$LIBS
8939 LIBS="-ldl  $LIBS"
8940 cat >conftest.$ac_ext <<_ACEOF
8941 /* confdefs.h.  */
8942 _ACEOF
8943 cat confdefs.h >>conftest.$ac_ext
8944 cat >>conftest.$ac_ext <<_ACEOF
8945 /* end confdefs.h.  */
8946
8947 /* Override any GCC internal prototype to avoid an error.
8948    Use char because int might match the return type of a GCC
8949    builtin and then its argument prototype would still apply.  */
8950 #ifdef __cplusplus
8951 extern "C"
8952 #endif
8953 char dlopen ();
8954 int
8955 main ()
8956 {
8957 return dlopen ();
8958   ;
8959   return 0;
8960 }
8961 _ACEOF
8962 rm -f conftest.$ac_objext conftest$ac_exeext
8963 if { (ac_try="$ac_link"
8964 case "(($ac_try" in
8965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8966   *) ac_try_echo=$ac_try;;
8967 esac
8968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8969   (eval "$ac_link") 2>conftest.er1
8970   ac_status=$?
8971   grep -v '^ *+' conftest.er1 >conftest.err
8972   rm -f conftest.er1
8973   cat conftest.err >&5
8974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8975   (exit $ac_status); } && {
8976          test -z "$ac_c_werror_flag" ||
8977          test ! -s conftest.err
8978        } && test -s conftest$ac_exeext &&
8979        $as_test_x conftest$ac_exeext; then
8980   ac_cv_lib_dl_dlopen=yes
8981 else
8982   echo "$as_me: failed program was:" >&5
8983 sed 's/^/| /' conftest.$ac_ext >&5
8984
8985         ac_cv_lib_dl_dlopen=no
8986 fi
8987
8988 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8989       conftest$ac_exeext conftest.$ac_ext
8990 LIBS=$ac_check_lib_save_LIBS
8991 fi
8992 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8993 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
8994 if test $ac_cv_lib_dl_dlopen = yes; then
8995   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8996 else
8997   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8998 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
8999 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9000   echo $ECHO_N "(cached) $ECHO_C" >&6
9001 else
9002   ac_check_lib_save_LIBS=$LIBS
9003 LIBS="-lsvld  $LIBS"
9004 cat >conftest.$ac_ext <<_ACEOF
9005 /* confdefs.h.  */
9006 _ACEOF
9007 cat confdefs.h >>conftest.$ac_ext
9008 cat >>conftest.$ac_ext <<_ACEOF
9009 /* end confdefs.h.  */
9010
9011 /* Override any GCC internal prototype to avoid an error.
9012    Use char because int might match the return type of a GCC
9013    builtin and then its argument prototype would still apply.  */
9014 #ifdef __cplusplus
9015 extern "C"
9016 #endif
9017 char dlopen ();
9018 int
9019 main ()
9020 {
9021 return dlopen ();
9022   ;
9023   return 0;
9024 }
9025 _ACEOF
9026 rm -f conftest.$ac_objext conftest$ac_exeext
9027 if { (ac_try="$ac_link"
9028 case "(($ac_try" in
9029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9030   *) ac_try_echo=$ac_try;;
9031 esac
9032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9033   (eval "$ac_link") 2>conftest.er1
9034   ac_status=$?
9035   grep -v '^ *+' conftest.er1 >conftest.err
9036   rm -f conftest.er1
9037   cat conftest.err >&5
9038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9039   (exit $ac_status); } && {
9040          test -z "$ac_c_werror_flag" ||
9041          test ! -s conftest.err
9042        } && test -s conftest$ac_exeext &&
9043        $as_test_x conftest$ac_exeext; then
9044   ac_cv_lib_svld_dlopen=yes
9045 else
9046   echo "$as_me: failed program was:" >&5
9047 sed 's/^/| /' conftest.$ac_ext >&5
9048
9049         ac_cv_lib_svld_dlopen=no
9050 fi
9051
9052 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9053       conftest$ac_exeext conftest.$ac_ext
9054 LIBS=$ac_check_lib_save_LIBS
9055 fi
9056 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9057 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9058 if test $ac_cv_lib_svld_dlopen = yes; then
9059   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9060 else
9061   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9062 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9063 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9064   echo $ECHO_N "(cached) $ECHO_C" >&6
9065 else
9066   ac_check_lib_save_LIBS=$LIBS
9067 LIBS="-ldld  $LIBS"
9068 cat >conftest.$ac_ext <<_ACEOF
9069 /* confdefs.h.  */
9070 _ACEOF
9071 cat confdefs.h >>conftest.$ac_ext
9072 cat >>conftest.$ac_ext <<_ACEOF
9073 /* end confdefs.h.  */
9074
9075 /* Override any GCC internal prototype to avoid an error.
9076    Use char because int might match the return type of a GCC
9077    builtin and then its argument prototype would still apply.  */
9078 #ifdef __cplusplus
9079 extern "C"
9080 #endif
9081 char dld_link ();
9082 int
9083 main ()
9084 {
9085 return dld_link ();
9086   ;
9087   return 0;
9088 }
9089 _ACEOF
9090 rm -f conftest.$ac_objext conftest$ac_exeext
9091 if { (ac_try="$ac_link"
9092 case "(($ac_try" in
9093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9094   *) ac_try_echo=$ac_try;;
9095 esac
9096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9097   (eval "$ac_link") 2>conftest.er1
9098   ac_status=$?
9099   grep -v '^ *+' conftest.er1 >conftest.err
9100   rm -f conftest.er1
9101   cat conftest.err >&5
9102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9103   (exit $ac_status); } && {
9104          test -z "$ac_c_werror_flag" ||
9105          test ! -s conftest.err
9106        } && test -s conftest$ac_exeext &&
9107        $as_test_x conftest$ac_exeext; then
9108   ac_cv_lib_dld_dld_link=yes
9109 else
9110   echo "$as_me: failed program was:" >&5
9111 sed 's/^/| /' conftest.$ac_ext >&5
9112
9113         ac_cv_lib_dld_dld_link=no
9114 fi
9115
9116 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9117       conftest$ac_exeext conftest.$ac_ext
9118 LIBS=$ac_check_lib_save_LIBS
9119 fi
9120 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9121 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9122 if test $ac_cv_lib_dld_dld_link = yes; then
9123   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9124 fi
9125
9126
9127 fi
9128
9129
9130 fi
9131
9132
9133 fi
9134
9135
9136 fi
9137
9138
9139 fi
9140
9141     ;;
9142   esac
9143
9144   if test "x$lt_cv_dlopen" != xno; then
9145     enable_dlopen=yes
9146   else
9147     enable_dlopen=no
9148   fi
9149
9150   case $lt_cv_dlopen in
9151   dlopen)
9152     save_CPPFLAGS="$CPPFLAGS"
9153     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9154
9155     save_LDFLAGS="$LDFLAGS"
9156     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9157
9158     save_LIBS="$LIBS"
9159     LIBS="$lt_cv_dlopen_libs $LIBS"
9160
9161     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9162 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9163 if test "${lt_cv_dlopen_self+set}" = set; then
9164   echo $ECHO_N "(cached) $ECHO_C" >&6
9165 else
9166           if test "$cross_compiling" = yes; then :
9167   lt_cv_dlopen_self=cross
9168 else
9169   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9170   lt_status=$lt_dlunknown
9171   cat > conftest.$ac_ext <<EOF
9172 #line 9172 "configure"
9173 #include "confdefs.h"
9174
9175 #if HAVE_DLFCN_H
9176 #include <dlfcn.h>
9177 #endif
9178
9179 #include <stdio.h>
9180
9181 #ifdef RTLD_GLOBAL
9182 #  define LT_DLGLOBAL           RTLD_GLOBAL
9183 #else
9184 #  ifdef DL_GLOBAL
9185 #    define LT_DLGLOBAL         DL_GLOBAL
9186 #  else
9187 #    define LT_DLGLOBAL         0
9188 #  endif
9189 #endif
9190
9191 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9192    find out it does not work in some platform. */
9193 #ifndef LT_DLLAZY_OR_NOW
9194 #  ifdef RTLD_LAZY
9195 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9196 #  else
9197 #    ifdef DL_LAZY
9198 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9199 #    else
9200 #      ifdef RTLD_NOW
9201 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9202 #      else
9203 #        ifdef DL_NOW
9204 #          define LT_DLLAZY_OR_NOW      DL_NOW
9205 #        else
9206 #          define LT_DLLAZY_OR_NOW      0
9207 #        endif
9208 #      endif
9209 #    endif
9210 #  endif
9211 #endif
9212
9213 #ifdef __cplusplus
9214 extern "C" void exit (int);
9215 #endif
9216
9217 void fnord() { int i=42;}
9218 int main ()
9219 {
9220   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9221   int status = $lt_dlunknown;
9222
9223   if (self)
9224     {
9225       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9226       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9227       /* dlclose (self); */
9228     }
9229
9230     exit (status);
9231 }
9232 EOF
9233   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9234   (eval $ac_link) 2>&5
9235   ac_status=$?
9236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9237   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9238     (./conftest; exit; ) 2>/dev/null
9239     lt_status=$?
9240     case x$lt_status in
9241       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9242       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9243       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
9244     esac
9245   else :
9246     # compilation failed
9247     lt_cv_dlopen_self=no
9248   fi
9249 fi
9250 rm -fr conftest*
9251
9252
9253 fi
9254 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9255 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9256
9257     if test "x$lt_cv_dlopen_self" = xyes; then
9258       LDFLAGS="$LDFLAGS $link_static_flag"
9259       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9260 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9261 if test "${lt_cv_dlopen_self_static+set}" = set; then
9262   echo $ECHO_N "(cached) $ECHO_C" >&6
9263 else
9264           if test "$cross_compiling" = yes; then :
9265   lt_cv_dlopen_self_static=cross
9266 else
9267   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9268   lt_status=$lt_dlunknown
9269   cat > conftest.$ac_ext <<EOF
9270 #line 9270 "configure"
9271 #include "confdefs.h"
9272
9273 #if HAVE_DLFCN_H
9274 #include <dlfcn.h>
9275 #endif
9276
9277 #include <stdio.h>
9278
9279 #ifdef RTLD_GLOBAL
9280 #  define LT_DLGLOBAL           RTLD_GLOBAL
9281 #else
9282 #  ifdef DL_GLOBAL
9283 #    define LT_DLGLOBAL         DL_GLOBAL
9284 #  else
9285 #    define LT_DLGLOBAL         0
9286 #  endif
9287 #endif
9288
9289 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9290    find out it does not work in some platform. */
9291 #ifndef LT_DLLAZY_OR_NOW
9292 #  ifdef RTLD_LAZY
9293 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9294 #  else
9295 #    ifdef DL_LAZY
9296 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9297 #    else
9298 #      ifdef RTLD_NOW
9299 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9300 #      else
9301 #        ifdef DL_NOW
9302 #          define LT_DLLAZY_OR_NOW      DL_NOW
9303 #        else
9304 #          define LT_DLLAZY_OR_NOW      0
9305 #        endif
9306 #      endif
9307 #    endif
9308 #  endif
9309 #endif
9310
9311 #ifdef __cplusplus
9312 extern "C" void exit (int);
9313 #endif
9314
9315 void fnord() { int i=42;}
9316 int main ()
9317 {
9318   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9319   int status = $lt_dlunknown;
9320
9321   if (self)
9322     {
9323       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9324       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9325       /* dlclose (self); */
9326     }
9327
9328     exit (status);
9329 }
9330 EOF
9331   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9332   (eval $ac_link) 2>&5
9333   ac_status=$?
9334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9335   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9336     (./conftest; exit; ) 2>/dev/null
9337     lt_status=$?
9338     case x$lt_status in
9339       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9340       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9341       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
9342     esac
9343   else :
9344     # compilation failed
9345     lt_cv_dlopen_self_static=no
9346   fi
9347 fi
9348 rm -fr conftest*
9349
9350
9351 fi
9352 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9353 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
9354     fi
9355
9356     CPPFLAGS="$save_CPPFLAGS"
9357     LDFLAGS="$save_LDFLAGS"
9358     LIBS="$save_LIBS"
9359     ;;
9360   esac
9361
9362   case $lt_cv_dlopen_self in
9363   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9364   *) enable_dlopen_self=unknown ;;
9365   esac
9366
9367   case $lt_cv_dlopen_self_static in
9368   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9369   *) enable_dlopen_self_static=unknown ;;
9370   esac
9371 fi
9372
9373
9374 # Report which librarie types wil actually be built
9375 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9376 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
9377 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
9378 echo "${ECHO_T}$can_build_shared" >&6; }
9379
9380 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9381 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
9382 test "$can_build_shared" = "no" && enable_shared=no
9383
9384 # On AIX, shared libraries and static libraries use the same namespace, and
9385 # are all built from PIC.
9386 case "$host_os" in
9387 aix3*)
9388   test "$enable_shared" = yes && enable_static=no
9389   if test -n "$RANLIB"; then
9390     archive_cmds="$archive_cmds~\$RANLIB \$lib"
9391     postinstall_cmds='$RANLIB $lib'
9392   fi
9393   ;;
9394
9395 aix4* | aix5*)
9396   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9397     test "$enable_shared" = yes && enable_static=no
9398   fi
9399   ;;
9400   darwin* | rhapsody*)
9401   if test "$GCC" = yes; then
9402     archive_cmds_need_lc=no
9403     case "$host_os" in
9404     rhapsody* | darwin1.[012])
9405       allow_undefined_flag='-undefined suppress'
9406       ;;
9407     *) # Darwin 1.3 on
9408       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9409         allow_undefined_flag='-flat_namespace -undefined suppress'
9410       else
9411         case ${MACOSX_DEPLOYMENT_TARGET} in
9412           10.[012])
9413             allow_undefined_flag='-flat_namespace -undefined suppress'
9414             ;;
9415           10.*)
9416             allow_undefined_flag='-undefined dynamic_lookup'
9417             ;;
9418         esac
9419       fi
9420       ;;
9421     esac
9422     output_verbose_link_cmd='echo'
9423     archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
9424     module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9425     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9426     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}'
9427     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}'
9428     hardcode_direct=no
9429     hardcode_automatic=yes
9430     hardcode_shlibpath_var=unsupported
9431     whole_archive_flag_spec='-all_load $convenience'
9432     link_all_deplibs=yes
9433   else
9434     ld_shlibs=no
9435   fi
9436     ;;
9437 esac
9438 { echo "$as_me:$LINENO: result: $enable_shared" >&5
9439 echo "${ECHO_T}$enable_shared" >&6; }
9440
9441 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9442 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
9443 # Make sure either enable_shared or enable_static is yes.
9444 test "$enable_shared" = yes || enable_static=yes
9445 { echo "$as_me:$LINENO: result: $enable_static" >&5
9446 echo "${ECHO_T}$enable_static" >&6; }
9447
9448 # The else clause should only fire when bootstrapping the
9449 # libtool distribution, otherwise you forgot to ship ltmain.sh
9450 # with your package, and you will get complaints that there are
9451 # no rules to generate ltmain.sh.
9452 if test -f "$ltmain"; then
9453   # See if we are running on zsh, and set the options which allow our commands through
9454   # without removal of \ escapes.
9455   if test -n "${ZSH_VERSION+set}" ; then
9456     setopt NO_GLOB_SUBST
9457   fi
9458   # Now quote all the things that may contain metacharacters while being
9459   # careful not to overquote the AC_SUBSTed values.  We take copies of the
9460   # variables and quote the copies for generation of the libtool script.
9461   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9462     SED SHELL STRIP \
9463     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9464     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9465     deplibs_check_method reload_flag reload_cmds need_locks \
9466     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9467     lt_cv_sys_global_symbol_to_c_name_address \
9468     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9469     old_postinstall_cmds old_postuninstall_cmds \
9470     compiler \
9471     CC \
9472     LD \
9473     lt_prog_compiler_wl \
9474     lt_prog_compiler_pic \
9475     lt_prog_compiler_static \
9476     lt_prog_compiler_no_builtin_flag \
9477     export_dynamic_flag_spec \
9478     thread_safe_flag_spec \
9479     whole_archive_flag_spec \
9480     enable_shared_with_static_runtimes \
9481     old_archive_cmds \
9482     old_archive_from_new_cmds \
9483     predep_objects \
9484     postdep_objects \
9485     predeps \
9486     postdeps \
9487     compiler_lib_search_path \
9488     archive_cmds \
9489     archive_expsym_cmds \
9490     postinstall_cmds \
9491     postuninstall_cmds \
9492     old_archive_from_expsyms_cmds \
9493     allow_undefined_flag \
9494     no_undefined_flag \
9495     export_symbols_cmds \
9496     hardcode_libdir_flag_spec \
9497     hardcode_libdir_flag_spec_ld \
9498     hardcode_libdir_separator \
9499     hardcode_automatic \
9500     module_cmds \
9501     module_expsym_cmds \
9502     lt_cv_prog_compiler_c_o \
9503     exclude_expsyms \
9504     include_expsyms; do
9505
9506     case $var in
9507     old_archive_cmds | \
9508     old_archive_from_new_cmds | \
9509     archive_cmds | \
9510     archive_expsym_cmds | \
9511     module_cmds | \
9512     module_expsym_cmds | \
9513     old_archive_from_expsyms_cmds | \
9514     export_symbols_cmds | \
9515     extract_expsyms_cmds | reload_cmds | finish_cmds | \
9516     postinstall_cmds | postuninstall_cmds | \
9517     old_postinstall_cmds | old_postuninstall_cmds | \
9518     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9519       # Double-quote double-evaled strings.
9520       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9521       ;;
9522     *)
9523       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9524       ;;
9525     esac
9526   done
9527
9528   case $lt_echo in
9529   *'\$0 --fallback-echo"')
9530     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9531     ;;
9532   esac
9533
9534 cfgfile="${ofile}T"
9535   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9536   $rm -f "$cfgfile"
9537   { echo "$as_me:$LINENO: creating $ofile" >&5
9538 echo "$as_me: creating $ofile" >&6;}
9539
9540   cat <<__EOF__ >> "$cfgfile"
9541 #! $SHELL
9542
9543 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9544 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9545 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9546 #
9547 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9548 # Free Software Foundation, Inc.
9549 #
9550 # This file is part of GNU Libtool:
9551 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9552 #
9553 # This program is free software; you can redistribute it and/or modify
9554 # it under the terms of the GNU General Public License as published by
9555 # the Free Software Foundation; either version 2 of the License, or
9556 # (at your option) any later version.
9557 #
9558 # This program is distributed in the hope that it will be useful, but
9559 # WITHOUT ANY WARRANTY; without even the implied warranty of
9560 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9561 # General Public License for more details.
9562 #
9563 # You should have received a copy of the GNU General Public License
9564 # along with this program; if not, write to the Free Software
9565 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9566 #
9567 # As a special exception to the GNU General Public License, if you
9568 # distribute this file as part of a program that contains a
9569 # configuration script generated by Autoconf, you may include it under
9570 # the same distribution terms that you use for the rest of that program.
9571
9572 # A sed program that does not truncate output.
9573 SED=$lt_SED
9574
9575 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9576 Xsed="$SED -e s/^X//"
9577
9578 # The HP-UX ksh and POSIX shell print the target directory to stdout
9579 # if CDPATH is set.
9580 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9581
9582 # The names of the tagged configurations supported by this script.
9583 available_tags=
9584
9585 # ### BEGIN LIBTOOL CONFIG
9586
9587 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9588
9589 # Shell to use when invoking shell scripts.
9590 SHELL=$lt_SHELL
9591
9592 # Whether or not to build shared libraries.
9593 build_libtool_libs=$enable_shared
9594
9595 # Whether or not to build static libraries.
9596 build_old_libs=$enable_static
9597
9598 # Whether or not to add -lc for building shared libraries.
9599 build_libtool_need_lc=$archive_cmds_need_lc
9600
9601 # Whether or not to disallow shared libs when runtime libs are static
9602 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9603
9604 # Whether or not to optimize for fast installation.
9605 fast_install=$enable_fast_install
9606
9607 # The host system.
9608 host_alias=$host_alias
9609 host=$host
9610
9611 # An echo program that does not interpret backslashes.
9612 echo=$lt_echo
9613
9614 # The archiver.
9615 AR=$lt_AR
9616 AR_FLAGS=$lt_AR_FLAGS
9617
9618 # A C compiler.
9619 LTCC=$lt_LTCC
9620
9621 # A language-specific compiler.
9622 CC=$lt_compiler
9623
9624 # Is the compiler the GNU C compiler?
9625 with_gcc=$GCC
9626
9627 # An ERE matcher.
9628 EGREP=$lt_EGREP
9629
9630 # The linker used to build libraries.
9631 LD=$lt_LD
9632
9633 # Whether we need hard or soft links.
9634 LN_S=$lt_LN_S
9635
9636 # A BSD-compatible nm program.
9637 NM=$lt_NM
9638
9639 # A symbol stripping program
9640 STRIP=$lt_STRIP
9641
9642 # Used to examine libraries when file_magic_cmd begins "file"
9643 MAGIC_CMD=$MAGIC_CMD
9644
9645 # Used on cygwin: DLL creation program.
9646 DLLTOOL="$DLLTOOL"
9647
9648 # Used on cygwin: object dumper.
9649 OBJDUMP="$OBJDUMP"
9650
9651 # Used on cygwin: assembler.
9652 AS="$AS"
9653
9654 # The name of the directory that contains temporary libtool files.
9655 objdir=$objdir
9656
9657 # How to create reloadable object files.
9658 reload_flag=$lt_reload_flag
9659 reload_cmds=$lt_reload_cmds
9660
9661 # How to pass a linker flag through the compiler.
9662 wl=$lt_lt_prog_compiler_wl
9663
9664 # Object file suffix (normally "o").
9665 objext="$ac_objext"
9666
9667 # Old archive suffix (normally "a").
9668 libext="$libext"
9669
9670 # Shared library suffix (normally ".so").
9671 shrext_cmds='$shrext_cmds'
9672
9673 # Executable file suffix (normally "").
9674 exeext="$exeext"
9675
9676 # Additional compiler flags for building library objects.
9677 pic_flag=$lt_lt_prog_compiler_pic
9678 pic_mode=$pic_mode
9679
9680 # What is the maximum length of a command?
9681 max_cmd_len=$lt_cv_sys_max_cmd_len
9682
9683 # Does compiler simultaneously support -c and -o options?
9684 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9685
9686 # Must we lock files when doing compilation ?
9687 need_locks=$lt_need_locks
9688
9689 # Do we need the lib prefix for modules?
9690 need_lib_prefix=$need_lib_prefix
9691
9692 # Do we need a version for libraries?
9693 need_version=$need_version
9694
9695 # Whether dlopen is supported.
9696 dlopen_support=$enable_dlopen
9697
9698 # Whether dlopen of programs is supported.
9699 dlopen_self=$enable_dlopen_self
9700
9701 # Whether dlopen of statically linked programs is supported.
9702 dlopen_self_static=$enable_dlopen_self_static
9703
9704 # Compiler flag to prevent dynamic linking.
9705 link_static_flag=$lt_lt_prog_compiler_static
9706
9707 # Compiler flag to turn off builtin functions.
9708 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9709
9710 # Compiler flag to allow reflexive dlopens.
9711 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9712
9713 # Compiler flag to generate shared objects directly from archives.
9714 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9715
9716 # Compiler flag to generate thread-safe objects.
9717 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9718
9719 # Library versioning type.
9720 version_type=$version_type
9721
9722 # Format of library name prefix.
9723 libname_spec=$lt_libname_spec
9724
9725 # List of archive names.  First name is the real one, the rest are links.
9726 # The last name is the one that the linker finds with -lNAME.
9727 library_names_spec=$lt_library_names_spec
9728
9729 # The coded name of the library, if different from the real name.
9730 soname_spec=$lt_soname_spec
9731
9732 # Commands used to build and install an old-style archive.
9733 RANLIB=$lt_RANLIB
9734 old_archive_cmds=$lt_old_archive_cmds
9735 old_postinstall_cmds=$lt_old_postinstall_cmds
9736 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9737
9738 # Create an old-style archive from a shared archive.
9739 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9740
9741 # Create a temporary old-style archive to link instead of a shared archive.
9742 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9743
9744 # Commands used to build and install a shared archive.
9745 archive_cmds=$lt_archive_cmds
9746 archive_expsym_cmds=$lt_archive_expsym_cmds
9747 postinstall_cmds=$lt_postinstall_cmds
9748 postuninstall_cmds=$lt_postuninstall_cmds
9749
9750 # Commands used to build a loadable module (assumed same as above if empty)
9751 module_cmds=$lt_module_cmds
9752 module_expsym_cmds=$lt_module_expsym_cmds
9753
9754 # Commands to strip libraries.
9755 old_striplib=$lt_old_striplib
9756 striplib=$lt_striplib
9757
9758 # Dependencies to place before the objects being linked to create a
9759 # shared library.
9760 predep_objects=$lt_predep_objects
9761
9762 # Dependencies to place after the objects being linked to create a
9763 # shared library.
9764 postdep_objects=$lt_postdep_objects
9765
9766 # Dependencies to place before the objects being linked to create a
9767 # shared library.
9768 predeps=$lt_predeps
9769
9770 # Dependencies to place after the objects being linked to create a
9771 # shared library.
9772 postdeps=$lt_postdeps
9773
9774 # The library search path used internally by the compiler when linking
9775 # a shared library.
9776 compiler_lib_search_path=$lt_compiler_lib_search_path
9777
9778 # Method to check whether dependent libraries are shared objects.
9779 deplibs_check_method=$lt_deplibs_check_method
9780
9781 # Command to use when deplibs_check_method == file_magic.
9782 file_magic_cmd=$lt_file_magic_cmd
9783
9784 # Flag that allows shared libraries with undefined symbols to be built.
9785 allow_undefined_flag=$lt_allow_undefined_flag
9786
9787 # Flag that forces no undefined symbols.
9788 no_undefined_flag=$lt_no_undefined_flag
9789
9790 # Commands used to finish a libtool library installation in a directory.
9791 finish_cmds=$lt_finish_cmds
9792
9793 # Same as above, but a single script fragment to be evaled but not shown.
9794 finish_eval=$lt_finish_eval
9795
9796 # Take the output of nm and produce a listing of raw symbols and C names.
9797 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9798
9799 # Transform the output of nm in a proper C declaration
9800 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9801
9802 # Transform the output of nm in a C name address pair
9803 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9804
9805 # This is the shared library runtime path variable.
9806 runpath_var=$runpath_var
9807
9808 # This is the shared library path variable.
9809 shlibpath_var=$shlibpath_var
9810
9811 # Is shlibpath searched before the hard-coded library search path?
9812 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9813
9814 # How to hardcode a shared library path into an executable.
9815 hardcode_action=$hardcode_action
9816
9817 # Whether we should hardcode library paths into libraries.
9818 hardcode_into_libs=$hardcode_into_libs
9819
9820 # Flag to hardcode \$libdir into a binary during linking.
9821 # This must work even if \$libdir does not exist.
9822 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9823
9824 # If ld is used when linking, flag to hardcode \$libdir into
9825 # a binary during linking. This must work even if \$libdir does
9826 # not exist.
9827 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9828
9829 # Whether we need a single -rpath flag with a separated argument.
9830 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9831
9832 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9833 # resulting binary.
9834 hardcode_direct=$hardcode_direct
9835
9836 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9837 # resulting binary.
9838 hardcode_minus_L=$hardcode_minus_L
9839
9840 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9841 # the resulting binary.
9842 hardcode_shlibpath_var=$hardcode_shlibpath_var
9843
9844 # Set to yes if building a shared library automatically hardcodes DIR into the library
9845 # and all subsequent libraries and executables linked against it.
9846 hardcode_automatic=$hardcode_automatic
9847
9848 # Variables whose values should be saved in libtool wrapper scripts and
9849 # restored at relink time.
9850 variables_saved_for_relink="$variables_saved_for_relink"
9851
9852 # Whether libtool must link a program against all its dependency libraries.
9853 link_all_deplibs=$link_all_deplibs
9854
9855 # Compile-time system search path for libraries
9856 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9857
9858 # Run-time system search path for libraries
9859 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9860
9861 # Fix the shell variable \$srcfile for the compiler.
9862 fix_srcfile_path="$fix_srcfile_path"
9863
9864 # Set to yes if exported symbols are required.
9865 always_export_symbols=$always_export_symbols
9866
9867 # The commands to list exported symbols.
9868 export_symbols_cmds=$lt_export_symbols_cmds
9869
9870 # The commands to extract the exported symbol list from a shared archive.
9871 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9872
9873 # Symbols that should not be listed in the preloaded symbols.
9874 exclude_expsyms=$lt_exclude_expsyms
9875
9876 # Symbols that must always be exported.
9877 include_expsyms=$lt_include_expsyms
9878
9879 # ### END LIBTOOL CONFIG
9880
9881 __EOF__
9882
9883
9884   case $host_os in
9885   aix3*)
9886     cat <<\EOF >> "$cfgfile"
9887
9888 # AIX sometimes has problems with the GCC collect2 program.  For some
9889 # reason, if we set the COLLECT_NAMES environment variable, the problems
9890 # vanish in a puff of smoke.
9891 if test "X${COLLECT_NAMES+set}" != Xset; then
9892   COLLECT_NAMES=
9893   export COLLECT_NAMES
9894 fi
9895 EOF
9896     ;;
9897   esac
9898
9899   # We use sed instead of cat because bash on DJGPP gets confused if
9900   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9901   # text mode, it properly converts lines to CR/LF.  This bash problem
9902   # is reportedly fixed, but why not run on old versions too?
9903   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9904
9905   mv -f "$cfgfile" "$ofile" || \
9906     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9907   chmod +x "$ofile"
9908
9909 else
9910   # If there is no Makefile yet, we rely on a make rule to execute
9911   # `config.status --recheck' to rerun these tests and create the
9912   # libtool script then.
9913   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9914   if test -f "$ltmain_in"; then
9915     test -f Makefile && make "$ltmain"
9916   fi
9917 fi
9918
9919
9920 ac_ext=c
9921 ac_cpp='$CPP $CPPFLAGS'
9922 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9923 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9924 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9925
9926 CC="$lt_save_CC"
9927
9928
9929 # Check whether --with-tags was given.
9930 if test "${with_tags+set}" = set; then
9931   withval=$with_tags; tagnames="$withval"
9932 fi
9933
9934
9935 if test -f "$ltmain" && test -n "$tagnames"; then
9936   if test ! -f "${ofile}"; then
9937     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9938 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9939   fi
9940
9941   if test -z "$LTCC"; then
9942     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9943     if test -z "$LTCC"; then
9944       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9945 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9946     else
9947       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9948 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9949     fi
9950   fi
9951
9952   # Extract list of available tagged configurations in $ofile.
9953   # Note that this assumes the entire list is on one line.
9954   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9955
9956   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9957   for tagname in $tagnames; do
9958     IFS="$lt_save_ifs"
9959     # Check whether tagname contains only valid characters
9960     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9961     "") ;;
9962     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9963 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9964    { (exit 1); exit 1; }; }
9965         ;;
9966     esac
9967
9968     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9969     then
9970       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9971 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9972    { (exit 1); exit 1; }; }
9973     fi
9974
9975     # Update the list of available tags.
9976     if test -n "$tagname"; then
9977       echo appending configuration tag \"$tagname\" to $ofile
9978
9979       case $tagname in
9980       CXX)
9981         if test -n "$CXX" && test "X$CXX" != "Xno"; then
9982           ac_ext=cpp
9983 ac_cpp='$CXXCPP $CPPFLAGS'
9984 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9985 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9986 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9987
9988
9989
9990
9991 archive_cmds_need_lc_CXX=no
9992 allow_undefined_flag_CXX=
9993 always_export_symbols_CXX=no
9994 archive_expsym_cmds_CXX=
9995 export_dynamic_flag_spec_CXX=
9996 hardcode_direct_CXX=no
9997 hardcode_libdir_flag_spec_CXX=
9998 hardcode_libdir_flag_spec_ld_CXX=
9999 hardcode_libdir_separator_CXX=
10000 hardcode_minus_L_CXX=no
10001 hardcode_automatic_CXX=no
10002 module_cmds_CXX=
10003 module_expsym_cmds_CXX=
10004 link_all_deplibs_CXX=unknown
10005 old_archive_cmds_CXX=$old_archive_cmds
10006 no_undefined_flag_CXX=
10007 whole_archive_flag_spec_CXX=
10008 enable_shared_with_static_runtimes_CXX=no
10009
10010 # Dependencies to place before and after the object being linked:
10011 predep_objects_CXX=
10012 postdep_objects_CXX=
10013 predeps_CXX=
10014 postdeps_CXX=
10015 compiler_lib_search_path_CXX=
10016
10017 # Source file extension for C++ test sources.
10018 ac_ext=cc
10019
10020 # Object file extension for compiled C++ test sources.
10021 objext=o
10022 objext_CXX=$objext
10023
10024 # Code to be used in simple compile tests
10025 lt_simple_compile_test_code="int some_variable = 0;\n"
10026
10027 # Code to be used in simple link tests
10028 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
10029
10030 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10031
10032 # If no C compiler was specified, use CC.
10033 LTCC=${LTCC-"$CC"}
10034
10035 # Allow CC to be a program name with arguments.
10036 compiler=$CC
10037
10038
10039 # Allow CC to be a program name with arguments.
10040 lt_save_CC=$CC
10041 lt_save_LD=$LD
10042 lt_save_GCC=$GCC
10043 GCC=$GXX
10044 lt_save_with_gnu_ld=$with_gnu_ld
10045 lt_save_path_LD=$lt_cv_path_LD
10046 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10047   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10048 else
10049   unset lt_cv_prog_gnu_ld
10050 fi
10051 if test -n "${lt_cv_path_LDCXX+set}"; then
10052   lt_cv_path_LD=$lt_cv_path_LDCXX
10053 else
10054   unset lt_cv_path_LD
10055 fi
10056 test -z "${LDCXX+set}" || LD=$LDCXX
10057 CC=${CXX-"c++"}
10058 compiler=$CC
10059 compiler_CXX=$CC
10060 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
10061
10062 # We don't want -fno-exception wen compiling C++ code, so set the
10063 # no_builtin_flag separately
10064 if test "$GXX" = yes; then
10065   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10066 else
10067   lt_prog_compiler_no_builtin_flag_CXX=
10068 fi
10069
10070 if test "$GXX" = yes; then
10071   # Set up default GNU C++ configuration
10072
10073
10074 # Check whether --with-gnu-ld was given.
10075 if test "${with_gnu_ld+set}" = set; then
10076   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10077 else
10078   with_gnu_ld=no
10079 fi
10080
10081 ac_prog=ld
10082 if test "$GCC" = yes; then
10083   # Check if gcc -print-prog-name=ld gives a path.
10084   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10085 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10086   case $host in
10087   *-*-mingw*)
10088     # gcc leaves a trailing carriage return which upsets mingw
10089     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10090   *)
10091     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10092   esac
10093   case $ac_prog in
10094     # Accept absolute paths.
10095     [\\/]* | ?:[\\/]*)
10096       re_direlt='/[^/][^/]*/\.\./'
10097       # Canonicalize the pathname of ld
10098       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10099       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10100         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10101       done
10102       test -z "$LD" && LD="$ac_prog"
10103       ;;
10104   "")
10105     # If it fails, then pretend we aren't using GCC.
10106     ac_prog=ld
10107     ;;
10108   *)
10109     # If it is relative, then search for the first ld in PATH.
10110     with_gnu_ld=unknown
10111     ;;
10112   esac
10113 elif test "$with_gnu_ld" = yes; then
10114   { echo "$as_me:$LINENO: checking for GNU ld" >&5
10115 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10116 else
10117   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10118 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10119 fi
10120 if test "${lt_cv_path_LD+set}" = set; then
10121   echo $ECHO_N "(cached) $ECHO_C" >&6
10122 else
10123   if test -z "$LD"; then
10124   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10125   for ac_dir in $PATH; do
10126     IFS="$lt_save_ifs"
10127     test -z "$ac_dir" && ac_dir=.
10128     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10129       lt_cv_path_LD="$ac_dir/$ac_prog"
10130       # Check to see if the program is GNU ld.  I'd rather use --version,
10131       # but apparently some GNU ld's only accept -v.
10132       # Break only if it was the GNU/non-GNU ld that we prefer.
10133       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10134       *GNU* | *'with BFD'*)
10135         test "$with_gnu_ld" != no && break
10136         ;;
10137       *)
10138         test "$with_gnu_ld" != yes && break
10139         ;;
10140       esac
10141     fi
10142   done
10143   IFS="$lt_save_ifs"
10144 else
10145   lt_cv_path_LD="$LD" # Let the user override the test with a path.
10146 fi
10147 fi
10148
10149 LD="$lt_cv_path_LD"
10150 if test -n "$LD"; then
10151   { echo "$as_me:$LINENO: result: $LD" >&5
10152 echo "${ECHO_T}$LD" >&6; }
10153 else
10154   { echo "$as_me:$LINENO: result: no" >&5
10155 echo "${ECHO_T}no" >&6; }
10156 fi
10157 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10158 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10159    { (exit 1); exit 1; }; }
10160 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10161 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10162 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10163   echo $ECHO_N "(cached) $ECHO_C" >&6
10164 else
10165   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10166 case `$LD -v 2>&1 </dev/null` in
10167 *GNU* | *'with BFD'*)
10168   lt_cv_prog_gnu_ld=yes
10169   ;;
10170 *)
10171   lt_cv_prog_gnu_ld=no
10172   ;;
10173 esac
10174 fi
10175 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10176 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10177 with_gnu_ld=$lt_cv_prog_gnu_ld
10178
10179
10180
10181   # Check if GNU C++ uses GNU ld as the underlying linker, since the
10182   # archiving commands below assume that GNU ld is being used.
10183   if test "$with_gnu_ld" = yes; then
10184     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10185     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'
10186
10187     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10188     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10189
10190     # If archive_cmds runs LD, not CC, wlarc should be empty
10191     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10192     #     investigate it a little bit more. (MM)
10193     wlarc='${wl}'
10194
10195     # ancient GNU ld didn't support --whole-archive et. al.
10196     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10197         grep 'no-whole-archive' > /dev/null; then
10198       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10199     else
10200       whole_archive_flag_spec_CXX=
10201     fi
10202   else
10203     with_gnu_ld=no
10204     wlarc=
10205
10206     # A generic and very simple default shared library creation
10207     # command for GNU C++ for the case where it uses the native
10208     # linker, instead of GNU ld.  If possible, this setting should
10209     # overridden to take advantage of the native linker features on
10210     # the platform it is being used on.
10211     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10212   fi
10213
10214   # Commands to make compiler produce verbose output that lists
10215   # what "hidden" libraries, object files and flags are used when
10216   # linking a shared library.
10217   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10218
10219 else
10220   GXX=no
10221   with_gnu_ld=no
10222   wlarc=
10223 fi
10224
10225 # PORTME: fill in a description of your system's C++ link characteristics
10226 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10227 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10228 ld_shlibs_CXX=yes
10229 case $host_os in
10230   aix3*)
10231     # FIXME: insert proper C++ library support
10232     ld_shlibs_CXX=no
10233     ;;
10234   aix4* | aix5*)
10235     if test "$host_cpu" = ia64; then
10236       # On IA64, the linker does run time linking by default, so we don't
10237       # have to do anything special.
10238       aix_use_runtimelinking=no
10239       exp_sym_flag='-Bexport'
10240       no_entry_flag=""
10241     else
10242       aix_use_runtimelinking=no
10243
10244       # Test if we are trying to use run time linking or normal
10245       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10246       # need to do runtime linking.
10247       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10248         for ld_flag in $LDFLAGS; do
10249           case $ld_flag in
10250           *-brtl*)
10251             aix_use_runtimelinking=yes
10252             break
10253             ;;
10254           esac
10255         done
10256       esac
10257
10258       exp_sym_flag='-bexport'
10259       no_entry_flag='-bnoentry'
10260     fi
10261
10262     # When large executables or shared objects are built, AIX ld can
10263     # have problems creating the table of contents.  If linking a library
10264     # or program results in "error TOC overflow" add -mminimal-toc to
10265     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10266     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10267
10268     archive_cmds_CXX=''
10269     hardcode_direct_CXX=yes
10270     hardcode_libdir_separator_CXX=':'
10271     link_all_deplibs_CXX=yes
10272
10273     if test "$GXX" = yes; then
10274       case $host_os in aix4.012|aix4.012.*)
10275       # We only want to do this on AIX 4.2 and lower, the check
10276       # below for broken collect2 doesn't work under 4.3+
10277         collect2name=`${CC} -print-prog-name=collect2`
10278         if test -f "$collect2name" && \
10279            strings "$collect2name" | grep resolve_lib_name >/dev/null
10280         then
10281           # We have reworked collect2
10282           hardcode_direct_CXX=yes
10283         else
10284           # We have old collect2
10285           hardcode_direct_CXX=unsupported
10286           # It fails to find uninstalled libraries when the uninstalled
10287           # path is not listed in the libpath.  Setting hardcode_minus_L
10288           # to unsupported forces relinking
10289           hardcode_minus_L_CXX=yes
10290           hardcode_libdir_flag_spec_CXX='-L$libdir'
10291           hardcode_libdir_separator_CXX=
10292         fi
10293       esac
10294       shared_flag='-shared'
10295     else
10296       # not using gcc
10297       if test "$host_cpu" = ia64; then
10298         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10299         # chokes on -Wl,-G. The following line is correct:
10300         shared_flag='-G'
10301       else
10302         if test "$aix_use_runtimelinking" = yes; then
10303           shared_flag='${wl}-G'
10304         else
10305           shared_flag='${wl}-bM:SRE'
10306         fi
10307       fi
10308     fi
10309
10310     # It seems that -bexpall does not export symbols beginning with
10311     # underscore (_), so it is better to generate a list of symbols to export.
10312     always_export_symbols_CXX=yes
10313     if test "$aix_use_runtimelinking" = yes; then
10314       # Warning - without using the other runtime loading flags (-brtl),
10315       # -berok will link without error, but may produce a broken library.
10316       allow_undefined_flag_CXX='-berok'
10317       # Determine the default libpath from the value encoded in an empty executable.
10318       cat >conftest.$ac_ext <<_ACEOF
10319 /* confdefs.h.  */
10320 _ACEOF
10321 cat confdefs.h >>conftest.$ac_ext
10322 cat >>conftest.$ac_ext <<_ACEOF
10323 /* end confdefs.h.  */
10324
10325 int
10326 main ()
10327 {
10328
10329   ;
10330   return 0;
10331 }
10332 _ACEOF
10333 rm -f conftest.$ac_objext conftest$ac_exeext
10334 if { (ac_try="$ac_link"
10335 case "(($ac_try" in
10336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10337   *) ac_try_echo=$ac_try;;
10338 esac
10339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10340   (eval "$ac_link") 2>conftest.er1
10341   ac_status=$?
10342   grep -v '^ *+' conftest.er1 >conftest.err
10343   rm -f conftest.er1
10344   cat conftest.err >&5
10345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10346   (exit $ac_status); } && {
10347          test -z "$ac_cxx_werror_flag" ||
10348          test ! -s conftest.err
10349        } && test -s conftest$ac_exeext &&
10350        $as_test_x conftest$ac_exeext; then
10351
10352 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10353 }'`
10354 # Check for a 64-bit object if we didn't find anything.
10355 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10356 }'`; fi
10357 else
10358   echo "$as_me: failed program was:" >&5
10359 sed 's/^/| /' conftest.$ac_ext >&5
10360
10361
10362 fi
10363
10364 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10365       conftest$ac_exeext conftest.$ac_ext
10366 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10367
10368       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10369
10370       archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10371      else
10372       if test "$host_cpu" = ia64; then
10373         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10374         allow_undefined_flag_CXX="-z nodefs"
10375         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
10376       else
10377         # Determine the default libpath from the value encoded in an empty executable.
10378         cat >conftest.$ac_ext <<_ACEOF
10379 /* confdefs.h.  */
10380 _ACEOF
10381 cat confdefs.h >>conftest.$ac_ext
10382 cat >>conftest.$ac_ext <<_ACEOF
10383 /* end confdefs.h.  */
10384
10385 int
10386 main ()
10387 {
10388
10389   ;
10390   return 0;
10391 }
10392 _ACEOF
10393 rm -f conftest.$ac_objext conftest$ac_exeext
10394 if { (ac_try="$ac_link"
10395 case "(($ac_try" in
10396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10397   *) ac_try_echo=$ac_try;;
10398 esac
10399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10400   (eval "$ac_link") 2>conftest.er1
10401   ac_status=$?
10402   grep -v '^ *+' conftest.er1 >conftest.err
10403   rm -f conftest.er1
10404   cat conftest.err >&5
10405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10406   (exit $ac_status); } && {
10407          test -z "$ac_cxx_werror_flag" ||
10408          test ! -s conftest.err
10409        } && test -s conftest$ac_exeext &&
10410        $as_test_x conftest$ac_exeext; then
10411
10412 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10413 }'`
10414 # Check for a 64-bit object if we didn't find anything.
10415 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10416 }'`; fi
10417 else
10418   echo "$as_me: failed program was:" >&5
10419 sed 's/^/| /' conftest.$ac_ext >&5
10420
10421
10422 fi
10423
10424 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10425       conftest$ac_exeext conftest.$ac_ext
10426 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10427
10428         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10429         # Warning - without using the other run time loading flags,
10430         # -berok will link without error, but may produce a broken library.
10431         no_undefined_flag_CXX=' ${wl}-bernotok'
10432         allow_undefined_flag_CXX=' ${wl}-berok'
10433         # -bexpall does not export symbols beginning with underscore (_)
10434         always_export_symbols_CXX=yes
10435         # Exported symbols can be pulled into shared objects from archives
10436         whole_archive_flag_spec_CXX=' '
10437         archive_cmds_need_lc_CXX=yes
10438         # This is similar to how AIX traditionally builds it's shared libraries.
10439         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10440       fi
10441     fi
10442     ;;
10443   chorus*)
10444     case $cc_basename in
10445       *)
10446         # FIXME: insert proper C++ library support
10447         ld_shlibs_CXX=no
10448         ;;
10449     esac
10450     ;;
10451
10452   cygwin* | mingw* | pw32*)
10453     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10454     # as there is no search path for DLLs.
10455     hardcode_libdir_flag_spec_CXX='-L$libdir'
10456     allow_undefined_flag_CXX=unsupported
10457     always_export_symbols_CXX=no
10458     enable_shared_with_static_runtimes_CXX=yes
10459
10460     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10461       archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10462       # If the export-symbols file already is a .def file (1st line
10463       # is EXPORTS), use it as is; otherwise, prepend...
10464       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10465         cp $export_symbols $output_objdir/$soname.def;
10466       else
10467         echo EXPORTS > $output_objdir/$soname.def;
10468         cat $export_symbols >> $output_objdir/$soname.def;
10469       fi~
10470       $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10471     else
10472       ld_shlibs_CXX=no
10473     fi
10474   ;;
10475
10476   darwin* | rhapsody*)
10477   if test "$GXX" = yes; then
10478     archive_cmds_need_lc_CXX=no
10479     case "$host_os" in
10480     rhapsody* | darwin1.[012])
10481       allow_undefined_flag_CXX='-undefined suppress'
10482       ;;
10483     *) # Darwin 1.3 on
10484       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10485         allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10486       else
10487         case ${MACOSX_DEPLOYMENT_TARGET} in
10488           10.[012])
10489             allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10490             ;;
10491           10.*)
10492             allow_undefined_flag_CXX='-undefined dynamic_lookup'
10493             ;;
10494         esac
10495       fi
10496       ;;
10497     esac
10498     lt_int_apple_cc_single_mod=no
10499     output_verbose_link_cmd='echo'
10500     if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10501       lt_int_apple_cc_single_mod=yes
10502     fi
10503     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10504       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10505     else
10506       archive_cmds_CXX='$CC -r ${wl}-bind_at_load -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'
10507     fi
10508     module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10509
10510     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10511     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10512       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}'
10513     else
10514       archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
10515     fi
10516     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}'
10517     hardcode_direct_CXX=no
10518     hardcode_automatic_CXX=yes
10519     hardcode_shlibpath_var_CXX=unsupported
10520     whole_archive_flag_spec_CXX='-all_load $convenience'
10521     link_all_deplibs_CXX=yes
10522   else
10523     ld_shlibs_CXX=no
10524   fi
10525     ;;
10526
10527   dgux*)
10528     case $cc_basename in
10529       ec++)
10530         # FIXME: insert proper C++ library support
10531         ld_shlibs_CXX=no
10532         ;;
10533       ghcx)
10534         # Green Hills C++ Compiler
10535         # FIXME: insert proper C++ library support
10536         ld_shlibs_CXX=no
10537         ;;
10538       *)
10539         # FIXME: insert proper C++ library support
10540         ld_shlibs_CXX=no
10541         ;;
10542     esac
10543     ;;
10544   freebsd12*)
10545     # C++ shared libraries reported to be fairly broken before switch to ELF
10546     ld_shlibs_CXX=no
10547     ;;
10548   freebsd-elf*)
10549     archive_cmds_need_lc_CXX=no
10550     ;;
10551   freebsd* | kfreebsd*-gnu)
10552     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10553     # conventions
10554     ld_shlibs_CXX=yes
10555     ;;
10556   gnu*)
10557     ;;
10558   hpux9*)
10559     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10560     hardcode_libdir_separator_CXX=:
10561     export_dynamic_flag_spec_CXX='${wl}-E'
10562     hardcode_direct_CXX=yes
10563     hardcode_minus_L_CXX=yes # Not in the search PATH,
10564                                 # but as the default
10565                                 # location of the library.
10566
10567     case $cc_basename in
10568     CC)
10569       # FIXME: insert proper C++ library support
10570       ld_shlibs_CXX=no
10571       ;;
10572     aCC)
10573       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'
10574       # Commands to make compiler produce verbose output that lists
10575       # what "hidden" libraries, object files and flags are used when
10576       # linking a shared library.
10577       #
10578       # There doesn't appear to be a way to prevent this compiler from
10579       # explicitly linking system object files so we need to strip them
10580       # from the output so that they don't get included in the library
10581       # dependencies.
10582       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'
10583       ;;
10584     *)
10585       if test "$GXX" = yes; then
10586         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'
10587       else
10588         # FIXME: insert proper C++ library support
10589         ld_shlibs_CXX=no
10590       fi
10591       ;;
10592     esac
10593     ;;
10594   hpux10*|hpux11*)
10595     if test $with_gnu_ld = no; then
10596       case "$host_cpu" in
10597       hppa*64*)
10598         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10599         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10600         hardcode_libdir_separator_CXX=:
10601         ;;
10602       ia64*)
10603         hardcode_libdir_flag_spec_CXX='-L$libdir'
10604         ;;
10605       *)
10606         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10607         hardcode_libdir_separator_CXX=:
10608         export_dynamic_flag_spec_CXX='${wl}-E'
10609         ;;
10610       esac
10611     fi
10612     case "$host_cpu" in
10613     hppa*64*)
10614       hardcode_direct_CXX=no
10615       hardcode_shlibpath_var_CXX=no
10616       ;;
10617     ia64*)
10618       hardcode_direct_CXX=no
10619       hardcode_shlibpath_var_CXX=no
10620       hardcode_minus_L_CXX=yes # Not in the search PATH,
10621                                               # but as the default
10622                                               # location of the library.
10623       ;;
10624     *)
10625       hardcode_direct_CXX=yes
10626       hardcode_minus_L_CXX=yes # Not in the search PATH,
10627                                               # but as the default
10628                                               # location of the library.
10629       ;;
10630     esac
10631
10632     case $cc_basename in
10633       CC)
10634         # FIXME: insert proper C++ library support
10635         ld_shlibs_CXX=no
10636         ;;
10637       aCC)
10638         case "$host_cpu" in
10639         hppa*64*|ia64*)
10640           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10641           ;;
10642         *)
10643           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10644           ;;
10645         esac
10646         # Commands to make compiler produce verbose output that lists
10647         # what "hidden" libraries, object files and flags are used when
10648         # linking a shared library.
10649         #
10650         # There doesn't appear to be a way to prevent this compiler from
10651         # explicitly linking system object files so we need to strip them
10652         # from the output so that they don't get included in the library
10653         # dependencies.
10654         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'
10655         ;;
10656       *)
10657         if test "$GXX" = yes; then
10658           if test $with_gnu_ld = no; then
10659             case "$host_cpu" in
10660             ia64*|hppa*64*)
10661               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10662               ;;
10663             *)
10664               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'
10665               ;;
10666             esac
10667           fi
10668         else
10669           # FIXME: insert proper C++ library support
10670           ld_shlibs_CXX=no
10671         fi
10672         ;;
10673     esac
10674     ;;
10675   irix5* | irix6*)
10676     case $cc_basename in
10677       CC)
10678         # SGI C++
10679         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 ${objdir}/so_locations -o $lib'
10680
10681         # Archives containing C++ object files must be created using
10682         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10683         # necessary to make sure instantiated templates are included
10684         # in the archive.
10685         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10686         ;;
10687       *)
10688         if test "$GXX" = yes; then
10689           if test "$with_gnu_ld" = no; then
10690             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}${objdir}/so_locations -o $lib'
10691           else
10692             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'
10693           fi
10694         fi
10695         link_all_deplibs_CXX=yes
10696         ;;
10697     esac
10698     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10699     hardcode_libdir_separator_CXX=:
10700     ;;
10701   linux*)
10702     case $cc_basename in
10703       KCC)
10704         # Kuck and Associates, Inc. (KAI) C++ Compiler
10705
10706         # KCC will only create a shared library if the output file
10707         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10708         # to its proper name (with version) after linking.
10709         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'
10710         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'
10711         # Commands to make compiler produce verbose output that lists
10712         # what "hidden" libraries, object files and flags are used when
10713         # linking a shared library.
10714         #
10715         # There doesn't appear to be a way to prevent this compiler from
10716         # explicitly linking system object files so we need to strip them
10717         # from the output so that they don't get included in the library
10718         # dependencies.
10719         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'
10720
10721         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10722         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10723
10724         # Archives containing C++ object files must be created using
10725         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10726         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10727         ;;
10728       icpc)
10729         # Intel C++
10730         with_gnu_ld=yes
10731         archive_cmds_need_lc_CXX=no
10732         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10733         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'
10734         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10735         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10736         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10737         ;;
10738       cxx)
10739         # Compaq C++
10740         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10741         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'
10742
10743         runpath_var=LD_RUN_PATH
10744         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10745         hardcode_libdir_separator_CXX=:
10746
10747         # Commands to make compiler produce verbose output that lists
10748         # what "hidden" libraries, object files and flags are used when
10749         # linking a shared library.
10750         #
10751         # There doesn't appear to be a way to prevent this compiler from
10752         # explicitly linking system object files so we need to strip them
10753         # from the output so that they don't get included in the library
10754         # dependencies.
10755         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'
10756         ;;
10757     esac
10758     ;;
10759   lynxos*)
10760     # FIXME: insert proper C++ library support
10761     ld_shlibs_CXX=no
10762     ;;
10763   m88k*)
10764     # FIXME: insert proper C++ library support
10765     ld_shlibs_CXX=no
10766     ;;
10767   mvs*)
10768     case $cc_basename in
10769       cxx)
10770         # FIXME: insert proper C++ library support
10771         ld_shlibs_CXX=no
10772         ;;
10773       *)
10774         # FIXME: insert proper C++ library support
10775         ld_shlibs_CXX=no
10776         ;;
10777     esac
10778     ;;
10779   netbsd*)
10780     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10781       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10782       wlarc=
10783       hardcode_libdir_flag_spec_CXX='-R$libdir'
10784       hardcode_direct_CXX=yes
10785       hardcode_shlibpath_var_CXX=no
10786     fi
10787     # Workaround some broken pre-1.5 toolchains
10788     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10789     ;;
10790   osf3*)
10791     case $cc_basename in
10792       KCC)
10793         # Kuck and Associates, Inc. (KAI) C++ Compiler
10794
10795         # KCC will only create a shared library if the output file
10796         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10797         # to its proper name (with version) after linking.
10798         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'
10799
10800         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10801         hardcode_libdir_separator_CXX=:
10802
10803         # Archives containing C++ object files must be created using
10804         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10805         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10806
10807         ;;
10808       RCC)
10809         # Rational C++ 2.4.1
10810         # FIXME: insert proper C++ library support
10811         ld_shlibs_CXX=no
10812         ;;
10813       cxx)
10814         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10815         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 ${objdir}/so_locations -o $lib'
10816
10817         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10818         hardcode_libdir_separator_CXX=:
10819
10820         # Commands to make compiler produce verbose output that lists
10821         # what "hidden" libraries, object files and flags are used when
10822         # linking a shared library.
10823         #
10824         # There doesn't appear to be a way to prevent this compiler from
10825         # explicitly linking system object files so we need to strip them
10826         # from the output so that they don't get included in the library
10827         # dependencies.
10828         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'
10829         ;;
10830       *)
10831         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10832           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10833           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}${objdir}/so_locations -o $lib'
10834
10835           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10836           hardcode_libdir_separator_CXX=:
10837
10838           # Commands to make compiler produce verbose output that lists
10839           # what "hidden" libraries, object files and flags are used when
10840           # linking a shared library.
10841           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10842
10843         else
10844           # FIXME: insert proper C++ library support
10845           ld_shlibs_CXX=no
10846         fi
10847         ;;
10848     esac
10849     ;;
10850   osf4* | osf5*)
10851     case $cc_basename in
10852       KCC)
10853         # Kuck and Associates, Inc. (KAI) C++ Compiler
10854
10855         # KCC will only create a shared library if the output file
10856         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10857         # to its proper name (with version) after linking.
10858         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'
10859
10860         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10861         hardcode_libdir_separator_CXX=:
10862
10863         # Archives containing C++ object files must be created using
10864         # the KAI C++ compiler.
10865         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10866         ;;
10867       RCC)
10868         # Rational C++ 2.4.1
10869         # FIXME: insert proper C++ library support
10870         ld_shlibs_CXX=no
10871         ;;
10872       cxx)
10873         allow_undefined_flag_CXX=' -expect_unresolved \*'
10874         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 ${objdir}/so_locations -o $lib'
10875         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10876           echo "-hidden">> $lib.exp~
10877           $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 $objdir/so_locations -o $lib~
10878           $rm $lib.exp'
10879
10880         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10881         hardcode_libdir_separator_CXX=:
10882
10883         # Commands to make compiler produce verbose output that lists
10884         # what "hidden" libraries, object files and flags are used when
10885         # linking a shared library.
10886         #
10887         # There doesn't appear to be a way to prevent this compiler from
10888         # explicitly linking system object files so we need to strip them
10889         # from the output so that they don't get included in the library
10890         # dependencies.
10891         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'
10892         ;;
10893       *)
10894         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10895           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10896          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}${objdir}/so_locations -o $lib'
10897
10898           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10899           hardcode_libdir_separator_CXX=:
10900
10901           # Commands to make compiler produce verbose output that lists
10902           # what "hidden" libraries, object files and flags are used when
10903           # linking a shared library.
10904           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10905
10906         else
10907           # FIXME: insert proper C++ library support
10908           ld_shlibs_CXX=no
10909         fi
10910         ;;
10911     esac
10912     ;;
10913   psos*)
10914     # FIXME: insert proper C++ library support
10915     ld_shlibs_CXX=no
10916     ;;
10917   sco*)
10918     archive_cmds_need_lc_CXX=no
10919     case $cc_basename in
10920       CC)
10921         # FIXME: insert proper C++ library support
10922         ld_shlibs_CXX=no
10923         ;;
10924       *)
10925         # FIXME: insert proper C++ library support
10926         ld_shlibs_CXX=no
10927         ;;
10928     esac
10929     ;;
10930   sunos4*)
10931     case $cc_basename in
10932       CC)
10933         # Sun C++ 4.x
10934         # FIXME: insert proper C++ library support
10935         ld_shlibs_CXX=no
10936         ;;
10937       lcc)
10938         # Lucid
10939         # FIXME: insert proper C++ library support
10940         ld_shlibs_CXX=no
10941         ;;
10942       *)
10943         # FIXME: insert proper C++ library support
10944         ld_shlibs_CXX=no
10945         ;;
10946     esac
10947     ;;
10948   solaris*)
10949     case $cc_basename in
10950       CC)
10951         # Sun C++ 4.2, 5.x and Centerline C++
10952         no_undefined_flag_CXX=' -zdefs'
10953         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10954         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10955         $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10956
10957         hardcode_libdir_flag_spec_CXX='-R$libdir'
10958         hardcode_shlibpath_var_CXX=no
10959         case $host_os in
10960           solaris2.0-5 | solaris2.0-5.*) ;;
10961           *)
10962             # The C++ compiler is used as linker so we must use $wl
10963             # flag to pass the commands to the underlying system
10964             # linker.
10965             # Supported since Solaris 2.6 (maybe 2.5.1?)
10966             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10967             ;;
10968         esac
10969         link_all_deplibs_CXX=yes
10970
10971         # Commands to make compiler produce verbose output that lists
10972         # what "hidden" libraries, object files and flags are used when
10973         # linking a shared library.
10974         #
10975         # There doesn't appear to be a way to prevent this compiler from
10976         # explicitly linking system object files so we need to strip them
10977         # from the output so that they don't get included in the library
10978         # dependencies.
10979         output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10980
10981         # Archives containing C++ object files must be created using
10982         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
10983         # necessary to make sure instantiated templates are included
10984         # in the archive.
10985         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10986         ;;
10987       gcx)
10988         # Green Hills C++ Compiler
10989         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10990
10991         # The C++ compiler must be used to create the archive.
10992         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10993         ;;
10994       *)
10995         # GNU C++ compiler with Solaris linker
10996         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10997           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10998           if $CC --version | grep -v '^2\.7' > /dev/null; then
10999             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11000             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11001                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11002
11003             # Commands to make compiler produce verbose output that lists
11004             # what "hidden" libraries, object files and flags are used when
11005             # linking a shared library.
11006             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11007           else
11008             # g++ 2.7 appears to require `-G' NOT `-shared' on this
11009             # platform.
11010             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11011             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11012                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11013
11014             # Commands to make compiler produce verbose output that lists
11015             # what "hidden" libraries, object files and flags are used when
11016             # linking a shared library.
11017             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11018           fi
11019
11020           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11021         fi
11022         ;;
11023     esac
11024     ;;
11025   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
11026     archive_cmds_need_lc_CXX=no
11027     ;;
11028   tandem*)
11029     case $cc_basename in
11030       NCC)
11031         # NonStop-UX NCC 3.20
11032         # FIXME: insert proper C++ library support
11033         ld_shlibs_CXX=no
11034         ;;
11035       *)
11036         # FIXME: insert proper C++ library support
11037         ld_shlibs_CXX=no
11038         ;;
11039     esac
11040     ;;
11041   vxworks*)
11042     # FIXME: insert proper C++ library support
11043     ld_shlibs_CXX=no
11044     ;;
11045   *)
11046     # FIXME: insert proper C++ library support
11047     ld_shlibs_CXX=no
11048     ;;
11049 esac
11050 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11051 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11052 test "$ld_shlibs_CXX" = no && can_build_shared=no
11053
11054 GCC_CXX="$GXX"
11055 LD_CXX="$LD"
11056
11057 ## CAVEAT EMPTOR:
11058 ## There is no encapsulation within the following macros, do not change
11059 ## the running order or otherwise move them around unless you know exactly
11060 ## what you are doing...
11061
11062 cat > conftest.$ac_ext <<EOF
11063 class Foo
11064 {
11065 public:
11066   Foo (void) { a = 0; }
11067 private:
11068   int a;
11069 };
11070 EOF
11071
11072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11073   (eval $ac_compile) 2>&5
11074   ac_status=$?
11075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11076   (exit $ac_status); }; then
11077   # Parse the compiler output and extract the necessary
11078   # objects, libraries and library flags.
11079
11080   # Sentinel used to keep track of whether or not we are before
11081   # the conftest object file.
11082   pre_test_object_deps_done=no
11083
11084   # The `*' in the case matches for architectures that use `case' in
11085   # $output_verbose_cmd can trigger glob expansion during the loop
11086   # eval without this substitution.
11087   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
11088
11089   for p in `eval $output_verbose_link_cmd`; do
11090     case $p in
11091
11092     -L* | -R* | -l*)
11093        # Some compilers place space between "-{L,R}" and the path.
11094        # Remove the space.
11095        if test $p = "-L" \
11096           || test $p = "-R"; then
11097          prev=$p
11098          continue
11099        else
11100          prev=
11101        fi
11102
11103        if test "$pre_test_object_deps_done" = no; then
11104          case $p in
11105          -L* | -R*)
11106            # Internal compiler library paths should come after those
11107            # provided the user.  The postdeps already come after the
11108            # user supplied libs so there is no need to process them.
11109            if test -z "$compiler_lib_search_path_CXX"; then
11110              compiler_lib_search_path_CXX="${prev}${p}"
11111            else
11112              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11113            fi
11114            ;;
11115          # The "-l" case would never come before the object being
11116          # linked, so don't bother handling this case.
11117          esac
11118        else
11119          if test -z "$postdeps_CXX"; then
11120            postdeps_CXX="${prev}${p}"
11121          else
11122            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11123          fi
11124        fi
11125        ;;
11126
11127     *.$objext)
11128        # This assumes that the test object file only shows up
11129        # once in the compiler output.
11130        if test "$p" = "conftest.$objext"; then
11131          pre_test_object_deps_done=yes
11132          continue
11133        fi
11134
11135        if test "$pre_test_object_deps_done" = no; then
11136          if test -z "$predep_objects_CXX"; then
11137            predep_objects_CXX="$p"
11138          else
11139            predep_objects_CXX="$predep_objects_CXX $p"
11140          fi
11141        else
11142          if test -z "$postdep_objects_CXX"; then
11143            postdep_objects_CXX="$p"
11144          else
11145            postdep_objects_CXX="$postdep_objects_CXX $p"
11146          fi
11147        fi
11148        ;;
11149
11150     *) ;; # Ignore the rest.
11151
11152     esac
11153   done
11154
11155   # Clean up.
11156   rm -f a.out a.exe
11157 else
11158   echo "libtool.m4: error: problem compiling CXX test program"
11159 fi
11160
11161 $rm -f confest.$objext
11162
11163 case " $postdeps_CXX " in
11164 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11165 esac
11166
11167 lt_prog_compiler_wl_CXX=
11168 lt_prog_compiler_pic_CXX=
11169 lt_prog_compiler_static_CXX=
11170
11171 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11172 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
11173
11174   # C++ specific cases for pic, static, wl, etc.
11175   if test "$GXX" = yes; then
11176     lt_prog_compiler_wl_CXX='-Wl,'
11177     lt_prog_compiler_static_CXX='-static'
11178
11179     case $host_os in
11180     aix*)
11181       # All AIX code is PIC.
11182       if test "$host_cpu" = ia64; then
11183         # AIX 5 now supports IA64 processor
11184         lt_prog_compiler_static_CXX='-Bstatic'
11185       fi
11186       ;;
11187     amigaos*)
11188       # FIXME: we need at least 68020 code to build shared libraries, but
11189       # adding the `-m68020' flag to GCC prevents building anything better,
11190       # like `-m68040'.
11191       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11192       ;;
11193     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11194       # PIC is the default for these OSes.
11195       ;;
11196     mingw* | os2* | pw32*)
11197       # This hack is so that the source file can tell whether it is being
11198       # built for inclusion in a dll (and should export symbols for example).
11199       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11200       ;;
11201     darwin* | rhapsody*)
11202       # PIC is the default on this platform
11203       # Common symbols not allowed in MH_DYLIB files
11204       lt_prog_compiler_pic_CXX='-fno-common'
11205       ;;
11206     *djgpp*)
11207       # DJGPP does not support shared libraries at all
11208       lt_prog_compiler_pic_CXX=
11209       ;;
11210     sysv4*MP*)
11211       if test -d /usr/nec; then
11212         lt_prog_compiler_pic_CXX=-Kconform_pic
11213       fi
11214       ;;
11215     hpux*)
11216       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11217       # not for PA HP-UX.
11218       case "$host_cpu" in
11219       hppa*64*|ia64*)
11220         ;;
11221       *)
11222         lt_prog_compiler_pic_CXX='-fPIC'
11223         ;;
11224       esac
11225       ;;
11226     *)
11227       lt_prog_compiler_pic_CXX='-fPIC'
11228       ;;
11229     esac
11230   else
11231     case $host_os in
11232       aix4* | aix5*)
11233         # All AIX code is PIC.
11234         if test "$host_cpu" = ia64; then
11235           # AIX 5 now supports IA64 processor
11236           lt_prog_compiler_static_CXX='-Bstatic'
11237         else
11238           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11239         fi
11240         ;;
11241       chorus*)
11242         case $cc_basename in
11243         cxch68)
11244           # Green Hills C++ Compiler
11245           # _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"
11246           ;;
11247         esac
11248         ;;
11249       dgux*)
11250         case $cc_basename in
11251           ec++)
11252             lt_prog_compiler_pic_CXX='-KPIC'
11253             ;;
11254           ghcx)
11255             # Green Hills C++ Compiler
11256             lt_prog_compiler_pic_CXX='-pic'
11257             ;;
11258           *)
11259             ;;
11260         esac
11261         ;;
11262       freebsd* | kfreebsd*-gnu)
11263         # FreeBSD uses GNU C++
11264         ;;
11265       hpux9* | hpux10* | hpux11*)
11266         case $cc_basename in
11267           CC)
11268             lt_prog_compiler_wl_CXX='-Wl,'
11269             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11270             if test "$host_cpu" != ia64; then
11271               lt_prog_compiler_pic_CXX='+Z'
11272             fi
11273             ;;
11274           aCC)
11275             lt_prog_compiler_wl_CXX='-Wl,'
11276             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11277             case "$host_cpu" in
11278             hppa*64*|ia64*)
11279               # +Z the default
11280               ;;
11281             *)
11282               lt_prog_compiler_pic_CXX='+Z'
11283               ;;
11284             esac
11285             ;;
11286           *)
11287             ;;
11288         esac
11289         ;;
11290       irix5* | irix6* | nonstopux*)
11291         case $cc_basename in
11292           CC)
11293             lt_prog_compiler_wl_CXX='-Wl,'
11294             lt_prog_compiler_static_CXX='-non_shared'
11295             # CC pic flag -KPIC is the default.
11296             ;;
11297           *)
11298             ;;
11299         esac
11300         ;;
11301       linux*)
11302         case $cc_basename in
11303           KCC)
11304             # KAI C++ Compiler
11305             lt_prog_compiler_wl_CXX='--backend -Wl,'
11306             lt_prog_compiler_pic_CXX='-fPIC'
11307             ;;
11308           icpc)
11309             # Intel C++
11310             lt_prog_compiler_wl_CXX='-Wl,'
11311             lt_prog_compiler_pic_CXX='-KPIC'
11312             lt_prog_compiler_static_CXX='-static'
11313             ;;
11314           cxx)
11315             # Compaq C++
11316             # Make sure the PIC flag is empty.  It appears that all Alpha
11317             # Linux and Compaq Tru64 Unix objects are PIC.
11318             lt_prog_compiler_pic_CXX=
11319             lt_prog_compiler_static_CXX='-non_shared'
11320             ;;
11321           *)
11322             ;;
11323         esac
11324         ;;
11325       lynxos*)
11326         ;;
11327       m88k*)
11328         ;;
11329       mvs*)
11330         case $cc_basename in
11331           cxx)
11332             lt_prog_compiler_pic_CXX='-W c,exportall'
11333             ;;
11334           *)
11335             ;;
11336         esac
11337         ;;
11338       netbsd*)
11339         ;;
11340       osf3* | osf4* | osf5*)
11341         case $cc_basename in
11342           KCC)
11343             lt_prog_compiler_wl_CXX='--backend -Wl,'
11344             ;;
11345           RCC)
11346             # Rational C++ 2.4.1
11347             lt_prog_compiler_pic_CXX='-pic'
11348             ;;
11349           cxx)
11350             # Digital/Compaq C++
11351             lt_prog_compiler_wl_CXX='-Wl,'
11352             # Make sure the PIC flag is empty.  It appears that all Alpha
11353             # Linux and Compaq Tru64 Unix objects are PIC.
11354             lt_prog_compiler_pic_CXX=
11355             lt_prog_compiler_static_CXX='-non_shared'
11356             ;;
11357           *)
11358             ;;
11359         esac
11360         ;;
11361       psos*)
11362         ;;
11363       sco*)
11364         case $cc_basename in
11365           CC)
11366             lt_prog_compiler_pic_CXX='-fPIC'
11367             ;;
11368           *)
11369             ;;
11370         esac
11371         ;;
11372       solaris*)
11373         case $cc_basename in
11374           CC)
11375             # Sun C++ 4.2, 5.x and Centerline C++
11376             lt_prog_compiler_pic_CXX='-KPIC'
11377             lt_prog_compiler_static_CXX='-Bstatic'
11378             lt_prog_compiler_wl_CXX='-Qoption ld '
11379             ;;
11380           gcx)
11381             # Green Hills C++ Compiler
11382             lt_prog_compiler_pic_CXX='-PIC'
11383             ;;
11384           *)
11385             ;;
11386         esac
11387         ;;
11388       sunos4*)
11389         case $cc_basename in
11390           CC)
11391             # Sun C++ 4.x
11392             lt_prog_compiler_pic_CXX='-pic'
11393             lt_prog_compiler_static_CXX='-Bstatic'
11394             ;;
11395           lcc)
11396             # Lucid
11397             lt_prog_compiler_pic_CXX='-pic'
11398             ;;
11399           *)
11400             ;;
11401         esac
11402         ;;
11403       tandem*)
11404         case $cc_basename in
11405           NCC)
11406             # NonStop-UX NCC 3.20
11407             lt_prog_compiler_pic_CXX='-KPIC'
11408             ;;
11409           *)
11410             ;;
11411         esac
11412         ;;
11413       unixware*)
11414         ;;
11415       vxworks*)
11416         ;;
11417       *)
11418         lt_prog_compiler_can_build_shared_CXX=no
11419         ;;
11420     esac
11421   fi
11422
11423 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11424 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
11425
11426 #
11427 # Check to make sure the PIC flag actually works.
11428 #
11429 if test -n "$lt_prog_compiler_pic_CXX"; then
11430
11431 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11432 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
11433 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11434   echo $ECHO_N "(cached) $ECHO_C" >&6
11435 else
11436   lt_prog_compiler_pic_works_CXX=no
11437   ac_outfile=conftest.$ac_objext
11438    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11439    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11440    # Insert the option either (1) after the last *FLAGS variable, or
11441    # (2) before a word containing "conftest.", or (3) at the end.
11442    # Note that $ac_compile itself does not contain backslashes and begins
11443    # with a dollar sign (not a hyphen), so the echo should work correctly.
11444    # The option is referenced via a variable to avoid confusing sed.
11445    lt_compile=`echo "$ac_compile" | $SED \
11446    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11447    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11448    -e 's:$: $lt_compiler_flag:'`
11449    (eval echo "\"\$as_me:11449: $lt_compile\"" >&5)
11450    (eval "$lt_compile" 2>conftest.err)
11451    ac_status=$?
11452    cat conftest.err >&5
11453    echo "$as_me:11453: \$? = $ac_status" >&5
11454    if (exit $ac_status) && test -s "$ac_outfile"; then
11455      # The compiler can only warn and ignore the option if not recognized
11456      # So say no if there are warnings
11457      if test ! -s conftest.err; then
11458        lt_prog_compiler_pic_works_CXX=yes
11459      fi
11460    fi
11461    $rm conftest*
11462
11463 fi
11464 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11465 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
11466
11467 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11468     case $lt_prog_compiler_pic_CXX in
11469      "" | " "*) ;;
11470      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11471      esac
11472 else
11473     lt_prog_compiler_pic_CXX=
11474      lt_prog_compiler_can_build_shared_CXX=no
11475 fi
11476
11477 fi
11478 case "$host_os" in
11479   # For platforms which do not support PIC, -DPIC is meaningless:
11480   *djgpp*)
11481     lt_prog_compiler_pic_CXX=
11482     ;;
11483   *)
11484     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11485     ;;
11486 esac
11487
11488 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11489 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
11490 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11491   echo $ECHO_N "(cached) $ECHO_C" >&6
11492 else
11493   lt_cv_prog_compiler_c_o_CXX=no
11494    $rm -r conftest 2>/dev/null
11495    mkdir conftest
11496    cd conftest
11497    mkdir out
11498    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11499
11500    lt_compiler_flag="-o out/conftest2.$ac_objext"
11501    # Insert the option either (1) after the last *FLAGS variable, or
11502    # (2) before a word containing "conftest.", or (3) at the end.
11503    # Note that $ac_compile itself does not contain backslashes and begins
11504    # with a dollar sign (not a hyphen), so the echo should work correctly.
11505    lt_compile=`echo "$ac_compile" | $SED \
11506    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11507    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11508    -e 's:$: $lt_compiler_flag:'`
11509    (eval echo "\"\$as_me:11509: $lt_compile\"" >&5)
11510    (eval "$lt_compile" 2>out/conftest.err)
11511    ac_status=$?
11512    cat out/conftest.err >&5
11513    echo "$as_me:11513: \$? = $ac_status" >&5
11514    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11515    then
11516      # The compiler can only warn and ignore the option if not recognized
11517      # So say no if there are warnings
11518      if test ! -s out/conftest.err; then
11519        lt_cv_prog_compiler_c_o_CXX=yes
11520      fi
11521    fi
11522    chmod u+w .
11523    $rm conftest*
11524    # SGI C++ compiler will create directory out/ii_files/ for
11525    # template instantiation
11526    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11527    $rm out/* && rmdir out
11528    cd ..
11529    rmdir conftest
11530    $rm conftest*
11531
11532 fi
11533 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11534 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
11535
11536
11537 hard_links="nottested"
11538 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11539   # do not overwrite the value of need_locks provided by the user
11540   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11541 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
11542   hard_links=yes
11543   $rm conftest*
11544   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11545   touch conftest.a
11546   ln conftest.a conftest.b 2>&5 || hard_links=no
11547   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11548   { echo "$as_me:$LINENO: result: $hard_links" >&5
11549 echo "${ECHO_T}$hard_links" >&6; }
11550   if test "$hard_links" = no; then
11551     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11552 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11553     need_locks=warn
11554   fi
11555 else
11556   need_locks=no
11557 fi
11558
11559 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11560 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11561
11562   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11563   case $host_os in
11564   aix4* | aix5*)
11565     # If we're using GNU nm, then we don't want the "-C" option.
11566     # -C means demangle to AIX nm, but means don't demangle with GNU nm
11567     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11568       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'
11569     else
11570       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'
11571     fi
11572     ;;
11573   pw32*)
11574     export_symbols_cmds_CXX="$ltdll_cmds"
11575   ;;
11576   cygwin* | mingw*)
11577     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11578   ;;
11579   *)
11580     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11581   ;;
11582   esac
11583
11584 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11585 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11586 test "$ld_shlibs_CXX" = no && can_build_shared=no
11587
11588 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11589 if test "$GCC" = yes; then
11590   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11591 fi
11592
11593 #
11594 # Do we need to explicitly link libc?
11595 #
11596 case "x$archive_cmds_need_lc_CXX" in
11597 x|xyes)
11598   # Assume -lc should be added
11599   archive_cmds_need_lc_CXX=yes
11600
11601   if test "$enable_shared" = yes && test "$GCC" = yes; then
11602     case $archive_cmds_CXX in
11603     *'~'*)
11604       # FIXME: we may have to deal with multi-command sequences.
11605       ;;
11606     '$CC '*)
11607       # Test whether the compiler implicitly links with -lc since on some
11608       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11609       # to ld, don't add -lc before -lgcc.
11610       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11611 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
11612       $rm conftest*
11613       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11614
11615       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11616   (eval $ac_compile) 2>&5
11617   ac_status=$?
11618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11619   (exit $ac_status); } 2>conftest.err; then
11620         soname=conftest
11621         lib=conftest
11622         libobjs=conftest.$ac_objext
11623         deplibs=
11624         wl=$lt_prog_compiler_wl_CXX
11625         compiler_flags=-v
11626         linker_flags=-v
11627         verstring=
11628         output_objdir=.
11629         libname=conftest
11630         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11631         allow_undefined_flag_CXX=
11632         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11633   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11634   ac_status=$?
11635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11636   (exit $ac_status); }
11637         then
11638           archive_cmds_need_lc_CXX=no
11639         else
11640           archive_cmds_need_lc_CXX=yes
11641         fi
11642         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11643       else
11644         cat conftest.err 1>&5
11645       fi
11646       $rm conftest*
11647       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11648 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
11649       ;;
11650     esac
11651   fi
11652   ;;
11653 esac
11654
11655 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11656 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
11657 library_names_spec=
11658 libname_spec='lib$name'
11659 soname_spec=
11660 shrext_cmds=".so"
11661 postinstall_cmds=
11662 postuninstall_cmds=
11663 finish_cmds=
11664 finish_eval=
11665 shlibpath_var=
11666 shlibpath_overrides_runpath=unknown
11667 version_type=none
11668 dynamic_linker="$host_os ld.so"
11669 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11670 if test "$GCC" = yes; then
11671   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11672   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11673     # if the path contains ";" then we assume it to be the separator
11674     # otherwise default to the standard path separator (i.e. ":") - it is
11675     # assumed that no part of a normal pathname contains ";" but that should
11676     # okay in the real world where ";" in dirpaths is itself problematic.
11677     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11678   else
11679     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11680   fi
11681 else
11682   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11683 fi
11684 need_lib_prefix=unknown
11685 hardcode_into_libs=no
11686
11687 # when you set need_version to no, make sure it does not cause -set_version
11688 # flags to be left without arguments
11689 need_version=unknown
11690
11691 case $host_os in
11692 aix3*)
11693   version_type=linux
11694   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11695   shlibpath_var=LIBPATH
11696
11697   # AIX 3 has no versioning support, so we append a major version to the name.
11698   soname_spec='${libname}${release}${shared_ext}$major'
11699   ;;
11700
11701 aix4* | aix5*)
11702   version_type=linux
11703   need_lib_prefix=no
11704   need_version=no
11705   hardcode_into_libs=yes
11706   if test "$host_cpu" = ia64; then
11707     # AIX 5 supports IA64
11708     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11709     shlibpath_var=LD_LIBRARY_PATH
11710   else
11711     # With GCC up to 2.95.x, collect2 would create an import file
11712     # for dependence libraries.  The import file would start with
11713     # the line `#! .'.  This would cause the generated library to
11714     # depend on `.', always an invalid library.  This was fixed in
11715     # development snapshots of GCC prior to 3.0.
11716     case $host_os in
11717       aix4 | aix4.[01] | aix4.[01].*)
11718       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11719            echo ' yes '
11720            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11721         :
11722       else
11723         can_build_shared=no
11724       fi
11725       ;;
11726     esac
11727     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11728     # soname into executable. Probably we can add versioning support to
11729     # collect2, so additional links can be useful in future.
11730     if test "$aix_use_runtimelinking" = yes; then
11731       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11732       # instead of lib<name>.a to let people know that these are not
11733       # typical AIX shared libraries.
11734       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11735     else
11736       # We preserve .a as extension for shared libraries through AIX4.2
11737       # and later when we are not doing run time linking.
11738       library_names_spec='${libname}${release}.a $libname.a'
11739       soname_spec='${libname}${release}${shared_ext}$major'
11740     fi
11741     shlibpath_var=LIBPATH
11742   fi
11743   ;;
11744
11745 amigaos*)
11746   library_names_spec='$libname.ixlibrary $libname.a'
11747   # Create ${libname}_ixlibrary.a entries in /sys/libs.
11748   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'
11749   ;;
11750
11751 beos*)
11752   library_names_spec='${libname}${shared_ext}'
11753   dynamic_linker="$host_os ld.so"
11754   shlibpath_var=LIBRARY_PATH
11755   ;;
11756
11757 bsdi4*)
11758   version_type=linux
11759   need_version=no
11760   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11761   soname_spec='${libname}${release}${shared_ext}$major'
11762   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11763   shlibpath_var=LD_LIBRARY_PATH
11764   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11765   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11766   # the default ld.so.conf also contains /usr/contrib/lib and
11767   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11768   # libtool to hard-code these into programs
11769   ;;
11770
11771 cygwin* | mingw* | pw32*)
11772   version_type=windows
11773   shrext_cmds=".dll"
11774   need_version=no
11775   need_lib_prefix=no
11776
11777   case $GCC,$host_os in
11778   yes,cygwin* | yes,mingw* | yes,pw32*)
11779     library_names_spec='$libname.dll.a'
11780     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11781     postinstall_cmds='base_file=`basename \${file}`~
11782       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11783       dldir=$destdir/`dirname \$dlpath`~
11784       test -d \$dldir || mkdir -p \$dldir~
11785       $install_prog $dir/$dlname \$dldir/$dlname'
11786     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11787       dlpath=$dir/\$dldll~
11788        $rm \$dlpath'
11789     shlibpath_overrides_runpath=yes
11790
11791     case $host_os in
11792     cygwin*)
11793       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11794       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11795       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11796       ;;
11797     mingw*)
11798       # MinGW DLLs use traditional 'lib' prefix
11799       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11800       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11801       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11802         # It is most probably a Windows format PATH printed by
11803         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11804         # path with ; separators, and with drive letters. We can handle the
11805         # drive letters (cygwin fileutils understands them), so leave them,
11806         # especially as we might pass files found there to a mingw objdump,
11807         # which wouldn't understand a cygwinified path. Ahh.
11808         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11809       else
11810         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11811       fi
11812       ;;
11813     pw32*)
11814       # pw32 DLLs use 'pw' prefix rather than 'lib'
11815       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11816       ;;
11817     esac
11818     ;;
11819
11820   *)
11821     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11822     ;;
11823   esac
11824   dynamic_linker='Win32 ld.exe'
11825   # FIXME: first we should search . and the directory the executable is in
11826   shlibpath_var=PATH
11827   ;;
11828
11829 darwin* | rhapsody*)
11830   dynamic_linker="$host_os dyld"
11831   version_type=darwin
11832   need_lib_prefix=no
11833   need_version=no
11834   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11835   soname_spec='${libname}${release}${major}$shared_ext'
11836   shlibpath_overrides_runpath=yes
11837   shlibpath_var=DYLD_LIBRARY_PATH
11838   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
11839   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11840   if test "$GCC" = yes; then
11841     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
11842   else
11843     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11844   fi
11845   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11846   ;;
11847
11848 dgux*)
11849   version_type=linux
11850   need_lib_prefix=no
11851   need_version=no
11852   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11853   soname_spec='${libname}${release}${shared_ext}$major'
11854   shlibpath_var=LD_LIBRARY_PATH
11855   ;;
11856
11857 freebsd1*)
11858   dynamic_linker=no
11859   ;;
11860
11861 kfreebsd*-gnu)
11862   version_type=linux
11863   need_lib_prefix=no
11864   need_version=no
11865   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11866   soname_spec='${libname}${release}${shared_ext}$major'
11867   shlibpath_var=LD_LIBRARY_PATH
11868   shlibpath_overrides_runpath=no
11869   hardcode_into_libs=yes
11870   dynamic_linker='GNU ld.so'
11871   ;;
11872
11873 freebsd*)
11874   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11875   version_type=freebsd-$objformat
11876   case $version_type in
11877     freebsd-elf*)
11878       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11879       need_version=no
11880       need_lib_prefix=no
11881       ;;
11882     freebsd-*)
11883       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11884       need_version=yes
11885       ;;
11886   esac
11887   shlibpath_var=LD_LIBRARY_PATH
11888   case $host_os in
11889   freebsd2*)
11890     shlibpath_overrides_runpath=yes
11891     ;;
11892   freebsd3.01* | freebsdelf3.01*)
11893     shlibpath_overrides_runpath=yes
11894     hardcode_into_libs=yes
11895     ;;
11896   *) # from 3.2 on
11897     shlibpath_overrides_runpath=no
11898     hardcode_into_libs=yes
11899     ;;
11900   esac
11901   ;;
11902
11903 gnu*)
11904   version_type=linux
11905   need_lib_prefix=no
11906   need_version=no
11907   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11908   soname_spec='${libname}${release}${shared_ext}$major'
11909   shlibpath_var=LD_LIBRARY_PATH
11910   hardcode_into_libs=yes
11911   ;;
11912
11913 hpux9* | hpux10* | hpux11*)
11914   # Give a soname corresponding to the major version so that dld.sl refuses to
11915   # link against other versions.
11916   version_type=sunos
11917   need_lib_prefix=no
11918   need_version=no
11919   case "$host_cpu" in
11920   ia64*)
11921     shrext_cmds='.so'
11922     hardcode_into_libs=yes
11923     dynamic_linker="$host_os dld.so"
11924     shlibpath_var=LD_LIBRARY_PATH
11925     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11926     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11927     soname_spec='${libname}${release}${shared_ext}$major'
11928     if test "X$HPUX_IA64_MODE" = X32; then
11929       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11930     else
11931       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11932     fi
11933     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11934     ;;
11935    hppa*64*)
11936      shrext_cmds='.sl'
11937      hardcode_into_libs=yes
11938      dynamic_linker="$host_os dld.sl"
11939      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11940      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11941      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11942      soname_spec='${libname}${release}${shared_ext}$major'
11943      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11944      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11945      ;;
11946    *)
11947     shrext_cmds='.sl'
11948     dynamic_linker="$host_os dld.sl"
11949     shlibpath_var=SHLIB_PATH
11950     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11951     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11952     soname_spec='${libname}${release}${shared_ext}$major'
11953     ;;
11954   esac
11955   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11956   postinstall_cmds='chmod 555 $lib'
11957   ;;
11958
11959 irix5* | irix6* | nonstopux*)
11960   case $host_os in
11961     nonstopux*) version_type=nonstopux ;;
11962     *)
11963         if test "$lt_cv_prog_gnu_ld" = yes; then
11964                 version_type=linux
11965         else
11966                 version_type=irix
11967         fi ;;
11968   esac
11969   need_lib_prefix=no
11970   need_version=no
11971   soname_spec='${libname}${release}${shared_ext}$major'
11972   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11973   case $host_os in
11974   irix5* | nonstopux*)
11975     libsuff= shlibsuff=
11976     ;;
11977   *)
11978     case $LD in # libtool.m4 will add one of these switches to LD
11979     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11980       libsuff= shlibsuff= libmagic=32-bit;;
11981     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11982       libsuff=32 shlibsuff=N32 libmagic=N32;;
11983     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11984       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11985     *) libsuff= shlibsuff= libmagic=never-match;;
11986     esac
11987     ;;
11988   esac
11989   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11990   shlibpath_overrides_runpath=no
11991   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11992   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11993   hardcode_into_libs=yes
11994   ;;
11995
11996 # No shared lib support for Linux oldld, aout, or coff.
11997 linux*oldld* | linux*aout* | linux*coff*)
11998   dynamic_linker=no
11999   ;;
12000
12001 # This must be Linux ELF.
12002 linux*)
12003   version_type=linux
12004   need_lib_prefix=no
12005   need_version=no
12006   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12007   soname_spec='${libname}${release}${shared_ext}$major'
12008   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12009   shlibpath_var=LD_LIBRARY_PATH
12010   shlibpath_overrides_runpath=no
12011   # This implies no fast_install, which is unacceptable.
12012   # Some rework will be needed to allow for fast_install
12013   # before this can be enabled.
12014   hardcode_into_libs=yes
12015
12016   # find out which ABI we are using
12017   libsuff=
12018   case "$host_cpu" in
12019   x86_64*|s390x*|powerpc64*)
12020     echo '#line 12020 "configure"' > conftest.$ac_ext
12021     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12022   (eval $ac_compile) 2>&5
12023   ac_status=$?
12024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12025   (exit $ac_status); }; then
12026       case `/usr/bin/file conftest.$ac_objext` in
12027       *64-bit*)
12028         libsuff=64
12029         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
12030         ;;
12031       esac
12032     fi
12033     rm -rf conftest*
12034     ;;
12035   esac
12036
12037   # Append ld.so.conf contents to the search path
12038   if test -f /etc/ld.so.conf; then
12039     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
12040     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
12041   fi
12042
12043   # We used to test for /lib/ld.so.1 and disable shared libraries on
12044   # powerpc, because MkLinux only supported shared libraries with the
12045   # GNU dynamic linker.  Since this was broken with cross compilers,
12046   # most powerpc-linux boxes support dynamic linking these days and
12047   # people can always --disable-shared, the test was removed, and we
12048   # assume the GNU/Linux dynamic linker is in use.
12049   dynamic_linker='GNU/Linux ld.so'
12050   ;;
12051
12052 knetbsd*-gnu)
12053   version_type=linux
12054   need_lib_prefix=no
12055   need_version=no
12056   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12057   soname_spec='${libname}${release}${shared_ext}$major'
12058   shlibpath_var=LD_LIBRARY_PATH
12059   shlibpath_overrides_runpath=no
12060   hardcode_into_libs=yes
12061   dynamic_linker='GNU ld.so'
12062   ;;
12063
12064 netbsd*)
12065   version_type=sunos
12066   need_lib_prefix=no
12067   need_version=no
12068   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12069     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12070     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12071     dynamic_linker='NetBSD (a.out) ld.so'
12072   else
12073     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12074     soname_spec='${libname}${release}${shared_ext}$major'
12075     dynamic_linker='NetBSD ld.elf_so'
12076   fi
12077   shlibpath_var=LD_LIBRARY_PATH
12078   shlibpath_overrides_runpath=yes
12079   hardcode_into_libs=yes
12080   ;;
12081
12082 newsos6)
12083   version_type=linux
12084   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12085   shlibpath_var=LD_LIBRARY_PATH
12086   shlibpath_overrides_runpath=yes
12087   ;;
12088
12089 nto-qnx*)
12090   version_type=linux
12091   need_lib_prefix=no
12092   need_version=no
12093   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12094   soname_spec='${libname}${release}${shared_ext}$major'
12095   shlibpath_var=LD_LIBRARY_PATH
12096   shlibpath_overrides_runpath=yes
12097   ;;
12098
12099 openbsd*)
12100   version_type=sunos
12101   need_lib_prefix=no
12102   need_version=yes
12103   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12104   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12105   shlibpath_var=LD_LIBRARY_PATH
12106   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12107     case $host_os in
12108       openbsd2.[89] | openbsd2.[89].*)
12109         shlibpath_overrides_runpath=no
12110         ;;
12111       *)
12112         shlibpath_overrides_runpath=yes
12113         ;;
12114       esac
12115   else
12116     shlibpath_overrides_runpath=yes
12117   fi
12118   ;;
12119
12120 os2*)
12121   libname_spec='$name'
12122   shrext_cmds=".dll"
12123   need_lib_prefix=no
12124   library_names_spec='$libname${shared_ext} $libname.a'
12125   dynamic_linker='OS/2 ld.exe'
12126   shlibpath_var=LIBPATH
12127   ;;
12128
12129 osf3* | osf4* | osf5*)
12130   version_type=osf
12131   need_lib_prefix=no
12132   need_version=no
12133   soname_spec='${libname}${release}${shared_ext}$major'
12134   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12135   shlibpath_var=LD_LIBRARY_PATH
12136   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12137   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12138   ;;
12139
12140 sco3.2v5*)
12141   version_type=osf
12142   soname_spec='${libname}${release}${shared_ext}$major'
12143   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12144   shlibpath_var=LD_LIBRARY_PATH
12145   ;;
12146
12147 solaris*)
12148   version_type=linux
12149   need_lib_prefix=no
12150   need_version=no
12151   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12152   soname_spec='${libname}${release}${shared_ext}$major'
12153   shlibpath_var=LD_LIBRARY_PATH
12154   shlibpath_overrides_runpath=yes
12155   hardcode_into_libs=yes
12156   # ldd complains unless libraries are executable
12157   postinstall_cmds='chmod +x $lib'
12158   ;;
12159
12160 sunos4*)
12161   version_type=sunos
12162   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12163   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12164   shlibpath_var=LD_LIBRARY_PATH
12165   shlibpath_overrides_runpath=yes
12166   if test "$with_gnu_ld" = yes; then
12167     need_lib_prefix=no
12168   fi
12169   need_version=yes
12170   ;;
12171
12172 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12173   version_type=linux
12174   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12175   soname_spec='${libname}${release}${shared_ext}$major'
12176   shlibpath_var=LD_LIBRARY_PATH
12177   case $host_vendor in
12178     sni)
12179       shlibpath_overrides_runpath=no
12180       need_lib_prefix=no
12181       export_dynamic_flag_spec='${wl}-Blargedynsym'
12182       runpath_var=LD_RUN_PATH
12183       ;;
12184     siemens)
12185       need_lib_prefix=no
12186       ;;
12187     motorola)
12188       need_lib_prefix=no
12189       need_version=no
12190       shlibpath_overrides_runpath=no
12191       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12192       ;;
12193   esac
12194   ;;
12195
12196 sysv4*MP*)
12197   if test -d /usr/nec ;then
12198     version_type=linux
12199     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12200     soname_spec='$libname${shared_ext}.$major'
12201     shlibpath_var=LD_LIBRARY_PATH
12202   fi
12203   ;;
12204
12205 uts4*)
12206   version_type=linux
12207   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12208   soname_spec='${libname}${release}${shared_ext}$major'
12209   shlibpath_var=LD_LIBRARY_PATH
12210   ;;
12211
12212 *)
12213   dynamic_linker=no
12214   ;;
12215 esac
12216 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12217 echo "${ECHO_T}$dynamic_linker" >&6; }
12218 test "$dynamic_linker" = no && can_build_shared=no
12219
12220 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12221 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
12222 hardcode_action_CXX=
12223 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12224    test -n "$runpath_var CXX" || \
12225    test "X$hardcode_automatic_CXX"="Xyes" ; then
12226
12227   # We can hardcode non-existant directories.
12228   if test "$hardcode_direct_CXX" != no &&
12229      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12230      # have to relink, otherwise we might link with an installed library
12231      # when we should be linking with a yet-to-be-installed one
12232      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12233      test "$hardcode_minus_L_CXX" != no; then
12234     # Linking always hardcodes the temporary library directory.
12235     hardcode_action_CXX=relink
12236   else
12237     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12238     hardcode_action_CXX=immediate
12239   fi
12240 else
12241   # We cannot hardcode anything, or else we can only hardcode existing
12242   # directories.
12243   hardcode_action_CXX=unsupported
12244 fi
12245 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12246 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
12247
12248 if test "$hardcode_action_CXX" = relink; then
12249   # Fast installation is not supported
12250   enable_fast_install=no
12251 elif test "$shlibpath_overrides_runpath" = yes ||
12252      test "$enable_shared" = no; then
12253   # Fast installation is not necessary
12254   enable_fast_install=needless
12255 fi
12256
12257 striplib=
12258 old_striplib=
12259 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12260 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
12261 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12262   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12263   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12264   { echo "$as_me:$LINENO: result: yes" >&5
12265 echo "${ECHO_T}yes" >&6; }
12266 else
12267 # FIXME - insert some real tests, host_os isn't really good enough
12268   case $host_os in
12269    darwin*)
12270        if test -n "$STRIP" ; then
12271          striplib="$STRIP -x"
12272          { echo "$as_me:$LINENO: result: yes" >&5
12273 echo "${ECHO_T}yes" >&6; }
12274        else
12275   { echo "$as_me:$LINENO: result: no" >&5
12276 echo "${ECHO_T}no" >&6; }
12277 fi
12278        ;;
12279    *)
12280   { echo "$as_me:$LINENO: result: no" >&5
12281 echo "${ECHO_T}no" >&6; }
12282     ;;
12283   esac
12284 fi
12285
12286 if test "x$enable_dlopen" != xyes; then
12287   enable_dlopen=unknown
12288   enable_dlopen_self=unknown
12289   enable_dlopen_self_static=unknown
12290 else
12291   lt_cv_dlopen=no
12292   lt_cv_dlopen_libs=
12293
12294   case $host_os in
12295   beos*)
12296     lt_cv_dlopen="load_add_on"
12297     lt_cv_dlopen_libs=
12298     lt_cv_dlopen_self=yes
12299     ;;
12300
12301   mingw* | pw32*)
12302     lt_cv_dlopen="LoadLibrary"
12303     lt_cv_dlopen_libs=
12304    ;;
12305
12306   cygwin*)
12307     lt_cv_dlopen="dlopen"
12308     lt_cv_dlopen_libs=
12309    ;;
12310
12311   darwin*)
12312   # if libdl is installed we need to link against it
12313     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12314 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12315 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12316   echo $ECHO_N "(cached) $ECHO_C" >&6
12317 else
12318   ac_check_lib_save_LIBS=$LIBS
12319 LIBS="-ldl  $LIBS"
12320 cat >conftest.$ac_ext <<_ACEOF
12321 /* confdefs.h.  */
12322 _ACEOF
12323 cat confdefs.h >>conftest.$ac_ext
12324 cat >>conftest.$ac_ext <<_ACEOF
12325 /* end confdefs.h.  */
12326
12327 /* Override any GCC internal prototype to avoid an error.
12328    Use char because int might match the return type of a GCC
12329    builtin and then its argument prototype would still apply.  */
12330 #ifdef __cplusplus
12331 extern "C"
12332 #endif
12333 char dlopen ();
12334 int
12335 main ()
12336 {
12337 return dlopen ();
12338   ;
12339   return 0;
12340 }
12341 _ACEOF
12342 rm -f conftest.$ac_objext conftest$ac_exeext
12343 if { (ac_try="$ac_link"
12344 case "(($ac_try" in
12345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12346   *) ac_try_echo=$ac_try;;
12347 esac
12348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12349   (eval "$ac_link") 2>conftest.er1
12350   ac_status=$?
12351   grep -v '^ *+' conftest.er1 >conftest.err
12352   rm -f conftest.er1
12353   cat conftest.err >&5
12354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12355   (exit $ac_status); } && {
12356          test -z "$ac_cxx_werror_flag" ||
12357          test ! -s conftest.err
12358        } && test -s conftest$ac_exeext &&
12359        $as_test_x conftest$ac_exeext; then
12360   ac_cv_lib_dl_dlopen=yes
12361 else
12362   echo "$as_me: failed program was:" >&5
12363 sed 's/^/| /' conftest.$ac_ext >&5
12364
12365         ac_cv_lib_dl_dlopen=no
12366 fi
12367
12368 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12369       conftest$ac_exeext conftest.$ac_ext
12370 LIBS=$ac_check_lib_save_LIBS
12371 fi
12372 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12373 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12374 if test $ac_cv_lib_dl_dlopen = yes; then
12375   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12376 else
12377
12378     lt_cv_dlopen="dyld"
12379     lt_cv_dlopen_libs=
12380     lt_cv_dlopen_self=yes
12381
12382 fi
12383
12384    ;;
12385
12386   *)
12387     { echo "$as_me:$LINENO: checking for shl_load" >&5
12388 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
12389 if test "${ac_cv_func_shl_load+set}" = set; then
12390   echo $ECHO_N "(cached) $ECHO_C" >&6
12391 else
12392   cat >conftest.$ac_ext <<_ACEOF
12393 /* confdefs.h.  */
12394 _ACEOF
12395 cat confdefs.h >>conftest.$ac_ext
12396 cat >>conftest.$ac_ext <<_ACEOF
12397 /* end confdefs.h.  */
12398 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12399    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12400 #define shl_load innocuous_shl_load
12401
12402 /* System header to define __stub macros and hopefully few prototypes,
12403     which can conflict with char shl_load (); below.
12404     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12405     <limits.h> exists even on freestanding compilers.  */
12406
12407 #ifdef __STDC__
12408 # include <limits.h>
12409 #else
12410 # include <assert.h>
12411 #endif
12412
12413 #undef shl_load
12414
12415 /* Override any GCC internal prototype to avoid an error.
12416    Use char because int might match the return type of a GCC
12417    builtin and then its argument prototype would still apply.  */
12418 #ifdef __cplusplus
12419 extern "C"
12420 #endif
12421 char shl_load ();
12422 /* The GNU C library defines this for functions which it implements
12423     to always fail with ENOSYS.  Some functions are actually named
12424     something starting with __ and the normal name is an alias.  */
12425 #if defined __stub_shl_load || defined __stub___shl_load
12426 choke me
12427 #endif
12428
12429 int
12430 main ()
12431 {
12432 return shl_load ();
12433   ;
12434   return 0;
12435 }
12436 _ACEOF
12437 rm -f conftest.$ac_objext conftest$ac_exeext
12438 if { (ac_try="$ac_link"
12439 case "(($ac_try" in
12440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12441   *) ac_try_echo=$ac_try;;
12442 esac
12443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12444   (eval "$ac_link") 2>conftest.er1
12445   ac_status=$?
12446   grep -v '^ *+' conftest.er1 >conftest.err
12447   rm -f conftest.er1
12448   cat conftest.err >&5
12449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12450   (exit $ac_status); } && {
12451          test -z "$ac_cxx_werror_flag" ||
12452          test ! -s conftest.err
12453        } && test -s conftest$ac_exeext &&
12454        $as_test_x conftest$ac_exeext; then
12455   ac_cv_func_shl_load=yes
12456 else
12457   echo "$as_me: failed program was:" >&5
12458 sed 's/^/| /' conftest.$ac_ext >&5
12459
12460         ac_cv_func_shl_load=no
12461 fi
12462
12463 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12464       conftest$ac_exeext conftest.$ac_ext
12465 fi
12466 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12467 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
12468 if test $ac_cv_func_shl_load = yes; then
12469   lt_cv_dlopen="shl_load"
12470 else
12471   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12472 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
12473 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12474   echo $ECHO_N "(cached) $ECHO_C" >&6
12475 else
12476   ac_check_lib_save_LIBS=$LIBS
12477 LIBS="-ldld  $LIBS"
12478 cat >conftest.$ac_ext <<_ACEOF
12479 /* confdefs.h.  */
12480 _ACEOF
12481 cat confdefs.h >>conftest.$ac_ext
12482 cat >>conftest.$ac_ext <<_ACEOF
12483 /* end confdefs.h.  */
12484
12485 /* Override any GCC internal prototype to avoid an error.
12486    Use char because int might match the return type of a GCC
12487    builtin and then its argument prototype would still apply.  */
12488 #ifdef __cplusplus
12489 extern "C"
12490 #endif
12491 char shl_load ();
12492 int
12493 main ()
12494 {
12495 return shl_load ();
12496   ;
12497   return 0;
12498 }
12499 _ACEOF
12500 rm -f conftest.$ac_objext conftest$ac_exeext
12501 if { (ac_try="$ac_link"
12502 case "(($ac_try" in
12503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12504   *) ac_try_echo=$ac_try;;
12505 esac
12506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12507   (eval "$ac_link") 2>conftest.er1
12508   ac_status=$?
12509   grep -v '^ *+' conftest.er1 >conftest.err
12510   rm -f conftest.er1
12511   cat conftest.err >&5
12512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12513   (exit $ac_status); } && {
12514          test -z "$ac_cxx_werror_flag" ||
12515          test ! -s conftest.err
12516        } && test -s conftest$ac_exeext &&
12517        $as_test_x conftest$ac_exeext; then
12518   ac_cv_lib_dld_shl_load=yes
12519 else
12520   echo "$as_me: failed program was:" >&5
12521 sed 's/^/| /' conftest.$ac_ext >&5
12522
12523         ac_cv_lib_dld_shl_load=no
12524 fi
12525
12526 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12527       conftest$ac_exeext conftest.$ac_ext
12528 LIBS=$ac_check_lib_save_LIBS
12529 fi
12530 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12531 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
12532 if test $ac_cv_lib_dld_shl_load = yes; then
12533   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12534 else
12535   { echo "$as_me:$LINENO: checking for dlopen" >&5
12536 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
12537 if test "${ac_cv_func_dlopen+set}" = set; then
12538   echo $ECHO_N "(cached) $ECHO_C" >&6
12539 else
12540   cat >conftest.$ac_ext <<_ACEOF
12541 /* confdefs.h.  */
12542 _ACEOF
12543 cat confdefs.h >>conftest.$ac_ext
12544 cat >>conftest.$ac_ext <<_ACEOF
12545 /* end confdefs.h.  */
12546 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12547    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12548 #define dlopen innocuous_dlopen
12549
12550 /* System header to define __stub macros and hopefully few prototypes,
12551     which can conflict with char dlopen (); below.
12552     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12553     <limits.h> exists even on freestanding compilers.  */
12554
12555 #ifdef __STDC__
12556 # include <limits.h>
12557 #else
12558 # include <assert.h>
12559 #endif
12560
12561 #undef dlopen
12562
12563 /* Override any GCC internal prototype to avoid an error.
12564    Use char because int might match the return type of a GCC
12565    builtin and then its argument prototype would still apply.  */
12566 #ifdef __cplusplus
12567 extern "C"
12568 #endif
12569 char dlopen ();
12570 /* The GNU C library defines this for functions which it implements
12571     to always fail with ENOSYS.  Some functions are actually named
12572     something starting with __ and the normal name is an alias.  */
12573 #if defined __stub_dlopen || defined __stub___dlopen
12574 choke me
12575 #endif
12576
12577 int
12578 main ()
12579 {
12580 return dlopen ();
12581   ;
12582   return 0;
12583 }
12584 _ACEOF
12585 rm -f conftest.$ac_objext conftest$ac_exeext
12586 if { (ac_try="$ac_link"
12587 case "(($ac_try" in
12588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12589   *) ac_try_echo=$ac_try;;
12590 esac
12591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12592   (eval "$ac_link") 2>conftest.er1
12593   ac_status=$?
12594   grep -v '^ *+' conftest.er1 >conftest.err
12595   rm -f conftest.er1
12596   cat conftest.err >&5
12597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12598   (exit $ac_status); } && {
12599          test -z "$ac_cxx_werror_flag" ||
12600          test ! -s conftest.err
12601        } && test -s conftest$ac_exeext &&
12602        $as_test_x conftest$ac_exeext; then
12603   ac_cv_func_dlopen=yes
12604 else
12605   echo "$as_me: failed program was:" >&5
12606 sed 's/^/| /' conftest.$ac_ext >&5
12607
12608         ac_cv_func_dlopen=no
12609 fi
12610
12611 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12612       conftest$ac_exeext conftest.$ac_ext
12613 fi
12614 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12615 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
12616 if test $ac_cv_func_dlopen = yes; then
12617   lt_cv_dlopen="dlopen"
12618 else
12619   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12620 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12621 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12622   echo $ECHO_N "(cached) $ECHO_C" >&6
12623 else
12624   ac_check_lib_save_LIBS=$LIBS
12625 LIBS="-ldl  $LIBS"
12626 cat >conftest.$ac_ext <<_ACEOF
12627 /* confdefs.h.  */
12628 _ACEOF
12629 cat confdefs.h >>conftest.$ac_ext
12630 cat >>conftest.$ac_ext <<_ACEOF
12631 /* end confdefs.h.  */
12632
12633 /* Override any GCC internal prototype to avoid an error.
12634    Use char because int might match the return type of a GCC
12635    builtin and then its argument prototype would still apply.  */
12636 #ifdef __cplusplus
12637 extern "C"
12638 #endif
12639 char dlopen ();
12640 int
12641 main ()
12642 {
12643 return dlopen ();
12644   ;
12645   return 0;
12646 }
12647 _ACEOF
12648 rm -f conftest.$ac_objext conftest$ac_exeext
12649 if { (ac_try="$ac_link"
12650 case "(($ac_try" in
12651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12652   *) ac_try_echo=$ac_try;;
12653 esac
12654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12655   (eval "$ac_link") 2>conftest.er1
12656   ac_status=$?
12657   grep -v '^ *+' conftest.er1 >conftest.err
12658   rm -f conftest.er1
12659   cat conftest.err >&5
12660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12661   (exit $ac_status); } && {
12662          test -z "$ac_cxx_werror_flag" ||
12663          test ! -s conftest.err
12664        } && test -s conftest$ac_exeext &&
12665        $as_test_x conftest$ac_exeext; then
12666   ac_cv_lib_dl_dlopen=yes
12667 else
12668   echo "$as_me: failed program was:" >&5
12669 sed 's/^/| /' conftest.$ac_ext >&5
12670
12671         ac_cv_lib_dl_dlopen=no
12672 fi
12673
12674 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12675       conftest$ac_exeext conftest.$ac_ext
12676 LIBS=$ac_check_lib_save_LIBS
12677 fi
12678 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12679 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12680 if test $ac_cv_lib_dl_dlopen = yes; then
12681   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12682 else
12683   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12684 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
12685 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12686   echo $ECHO_N "(cached) $ECHO_C" >&6
12687 else
12688   ac_check_lib_save_LIBS=$LIBS
12689 LIBS="-lsvld  $LIBS"
12690 cat >conftest.$ac_ext <<_ACEOF
12691 /* confdefs.h.  */
12692 _ACEOF
12693 cat confdefs.h >>conftest.$ac_ext
12694 cat >>conftest.$ac_ext <<_ACEOF
12695 /* end confdefs.h.  */
12696
12697 /* Override any GCC internal prototype to avoid an error.
12698    Use char because int might match the return type of a GCC
12699    builtin and then its argument prototype would still apply.  */
12700 #ifdef __cplusplus
12701 extern "C"
12702 #endif
12703 char dlopen ();
12704 int
12705 main ()
12706 {
12707 return dlopen ();
12708   ;
12709   return 0;
12710 }
12711 _ACEOF
12712 rm -f conftest.$ac_objext conftest$ac_exeext
12713 if { (ac_try="$ac_link"
12714 case "(($ac_try" in
12715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12716   *) ac_try_echo=$ac_try;;
12717 esac
12718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12719   (eval "$ac_link") 2>conftest.er1
12720   ac_status=$?
12721   grep -v '^ *+' conftest.er1 >conftest.err
12722   rm -f conftest.er1
12723   cat conftest.err >&5
12724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12725   (exit $ac_status); } && {
12726          test -z "$ac_cxx_werror_flag" ||
12727          test ! -s conftest.err
12728        } && test -s conftest$ac_exeext &&
12729        $as_test_x conftest$ac_exeext; then
12730   ac_cv_lib_svld_dlopen=yes
12731 else
12732   echo "$as_me: failed program was:" >&5
12733 sed 's/^/| /' conftest.$ac_ext >&5
12734
12735         ac_cv_lib_svld_dlopen=no
12736 fi
12737
12738 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12739       conftest$ac_exeext conftest.$ac_ext
12740 LIBS=$ac_check_lib_save_LIBS
12741 fi
12742 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12743 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
12744 if test $ac_cv_lib_svld_dlopen = yes; then
12745   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12746 else
12747   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12748 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
12749 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12750   echo $ECHO_N "(cached) $ECHO_C" >&6
12751 else
12752   ac_check_lib_save_LIBS=$LIBS
12753 LIBS="-ldld  $LIBS"
12754 cat >conftest.$ac_ext <<_ACEOF
12755 /* confdefs.h.  */
12756 _ACEOF
12757 cat confdefs.h >>conftest.$ac_ext
12758 cat >>conftest.$ac_ext <<_ACEOF
12759 /* end confdefs.h.  */
12760
12761 /* Override any GCC internal prototype to avoid an error.
12762    Use char because int might match the return type of a GCC
12763    builtin and then its argument prototype would still apply.  */
12764 #ifdef __cplusplus
12765 extern "C"
12766 #endif
12767 char dld_link ();
12768 int
12769 main ()
12770 {
12771 return dld_link ();
12772   ;
12773   return 0;
12774 }
12775 _ACEOF
12776 rm -f conftest.$ac_objext conftest$ac_exeext
12777 if { (ac_try="$ac_link"
12778 case "(($ac_try" in
12779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12780   *) ac_try_echo=$ac_try;;
12781 esac
12782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12783   (eval "$ac_link") 2>conftest.er1
12784   ac_status=$?
12785   grep -v '^ *+' conftest.er1 >conftest.err
12786   rm -f conftest.er1
12787   cat conftest.err >&5
12788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12789   (exit $ac_status); } && {
12790          test -z "$ac_cxx_werror_flag" ||
12791          test ! -s conftest.err
12792        } && test -s conftest$ac_exeext &&
12793        $as_test_x conftest$ac_exeext; then
12794   ac_cv_lib_dld_dld_link=yes
12795 else
12796   echo "$as_me: failed program was:" >&5
12797 sed 's/^/| /' conftest.$ac_ext >&5
12798
12799         ac_cv_lib_dld_dld_link=no
12800 fi
12801
12802 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12803       conftest$ac_exeext conftest.$ac_ext
12804 LIBS=$ac_check_lib_save_LIBS
12805 fi
12806 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12807 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
12808 if test $ac_cv_lib_dld_dld_link = yes; then
12809   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12810 fi
12811
12812
12813 fi
12814
12815
12816 fi
12817
12818
12819 fi
12820
12821
12822 fi
12823
12824
12825 fi
12826
12827     ;;
12828   esac
12829
12830   if test "x$lt_cv_dlopen" != xno; then
12831     enable_dlopen=yes
12832   else
12833     enable_dlopen=no
12834   fi
12835
12836   case $lt_cv_dlopen in
12837   dlopen)
12838     save_CPPFLAGS="$CPPFLAGS"
12839     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12840
12841     save_LDFLAGS="$LDFLAGS"
12842     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12843
12844     save_LIBS="$LIBS"
12845     LIBS="$lt_cv_dlopen_libs $LIBS"
12846
12847     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12848 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
12849 if test "${lt_cv_dlopen_self+set}" = set; then
12850   echo $ECHO_N "(cached) $ECHO_C" >&6
12851 else
12852           if test "$cross_compiling" = yes; then :
12853   lt_cv_dlopen_self=cross
12854 else
12855   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12856   lt_status=$lt_dlunknown
12857   cat > conftest.$ac_ext <<EOF
12858 #line 12858 "configure"
12859 #include "confdefs.h"
12860
12861 #if HAVE_DLFCN_H
12862 #include <dlfcn.h>
12863 #endif
12864
12865 #include <stdio.h>
12866
12867 #ifdef RTLD_GLOBAL
12868 #  define LT_DLGLOBAL           RTLD_GLOBAL
12869 #else
12870 #  ifdef DL_GLOBAL
12871 #    define LT_DLGLOBAL         DL_GLOBAL
12872 #  else
12873 #    define LT_DLGLOBAL         0
12874 #  endif
12875 #endif
12876
12877 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12878    find out it does not work in some platform. */
12879 #ifndef LT_DLLAZY_OR_NOW
12880 #  ifdef RTLD_LAZY
12881 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12882 #  else
12883 #    ifdef DL_LAZY
12884 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12885 #    else
12886 #      ifdef RTLD_NOW
12887 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12888 #      else
12889 #        ifdef DL_NOW
12890 #          define LT_DLLAZY_OR_NOW      DL_NOW
12891 #        else
12892 #          define LT_DLLAZY_OR_NOW      0
12893 #        endif
12894 #      endif
12895 #    endif
12896 #  endif
12897 #endif
12898
12899 #ifdef __cplusplus
12900 extern "C" void exit (int);
12901 #endif
12902
12903 void fnord() { int i=42;}
12904 int main ()
12905 {
12906   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12907   int status = $lt_dlunknown;
12908
12909   if (self)
12910     {
12911       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12912       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12913       /* dlclose (self); */
12914     }
12915
12916     exit (status);
12917 }
12918 EOF
12919   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12920   (eval $ac_link) 2>&5
12921   ac_status=$?
12922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12923   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12924     (./conftest; exit; ) 2>/dev/null
12925     lt_status=$?
12926     case x$lt_status in
12927       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12928       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12929       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12930     esac
12931   else :
12932     # compilation failed
12933     lt_cv_dlopen_self=no
12934   fi
12935 fi
12936 rm -fr conftest*
12937
12938
12939 fi
12940 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12941 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
12942
12943     if test "x$lt_cv_dlopen_self" = xyes; then
12944       LDFLAGS="$LDFLAGS $link_static_flag"
12945       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12946 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
12947 if test "${lt_cv_dlopen_self_static+set}" = set; then
12948   echo $ECHO_N "(cached) $ECHO_C" >&6
12949 else
12950           if test "$cross_compiling" = yes; then :
12951   lt_cv_dlopen_self_static=cross
12952 else
12953   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12954   lt_status=$lt_dlunknown
12955   cat > conftest.$ac_ext <<EOF
12956 #line 12956 "configure"
12957 #include "confdefs.h"
12958
12959 #if HAVE_DLFCN_H
12960 #include <dlfcn.h>
12961 #endif
12962
12963 #include <stdio.h>
12964
12965 #ifdef RTLD_GLOBAL
12966 #  define LT_DLGLOBAL           RTLD_GLOBAL
12967 #else
12968 #  ifdef DL_GLOBAL
12969 #    define LT_DLGLOBAL         DL_GLOBAL
12970 #  else
12971 #    define LT_DLGLOBAL         0
12972 #  endif
12973 #endif
12974
12975 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12976    find out it does not work in some platform. */
12977 #ifndef LT_DLLAZY_OR_NOW
12978 #  ifdef RTLD_LAZY
12979 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12980 #  else
12981 #    ifdef DL_LAZY
12982 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12983 #    else
12984 #      ifdef RTLD_NOW
12985 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12986 #      else
12987 #        ifdef DL_NOW
12988 #          define LT_DLLAZY_OR_NOW      DL_NOW
12989 #        else
12990 #          define LT_DLLAZY_OR_NOW      0
12991 #        endif
12992 #      endif
12993 #    endif
12994 #  endif
12995 #endif
12996
12997 #ifdef __cplusplus
12998 extern "C" void exit (int);
12999 #endif
13000
13001 void fnord() { int i=42;}
13002 int main ()
13003 {
13004   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13005   int status = $lt_dlunknown;
13006
13007   if (self)
13008     {
13009       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13010       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13011       /* dlclose (self); */
13012     }
13013
13014     exit (status);
13015 }
13016 EOF
13017   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13018   (eval $ac_link) 2>&5
13019   ac_status=$?
13020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13021   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13022     (./conftest; exit; ) 2>/dev/null
13023     lt_status=$?
13024     case x$lt_status in
13025       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13026       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13027       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
13028     esac
13029   else :
13030     # compilation failed
13031     lt_cv_dlopen_self_static=no
13032   fi
13033 fi
13034 rm -fr conftest*
13035
13036
13037 fi
13038 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13039 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
13040     fi
13041
13042     CPPFLAGS="$save_CPPFLAGS"
13043     LDFLAGS="$save_LDFLAGS"
13044     LIBS="$save_LIBS"
13045     ;;
13046   esac
13047
13048   case $lt_cv_dlopen_self in
13049   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13050   *) enable_dlopen_self=unknown ;;
13051   esac
13052
13053   case $lt_cv_dlopen_self_static in
13054   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13055   *) enable_dlopen_self_static=unknown ;;
13056   esac
13057 fi
13058
13059
13060 # The else clause should only fire when bootstrapping the
13061 # libtool distribution, otherwise you forgot to ship ltmain.sh
13062 # with your package, and you will get complaints that there are
13063 # no rules to generate ltmain.sh.
13064 if test -f "$ltmain"; then
13065   # See if we are running on zsh, and set the options which allow our commands through
13066   # without removal of \ escapes.
13067   if test -n "${ZSH_VERSION+set}" ; then
13068     setopt NO_GLOB_SUBST
13069   fi
13070   # Now quote all the things that may contain metacharacters while being
13071   # careful not to overquote the AC_SUBSTed values.  We take copies of the
13072   # variables and quote the copies for generation of the libtool script.
13073   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
13074     SED SHELL STRIP \
13075     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13076     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13077     deplibs_check_method reload_flag reload_cmds need_locks \
13078     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13079     lt_cv_sys_global_symbol_to_c_name_address \
13080     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13081     old_postinstall_cmds old_postuninstall_cmds \
13082     compiler_CXX \
13083     CC_CXX \
13084     LD_CXX \
13085     lt_prog_compiler_wl_CXX \
13086     lt_prog_compiler_pic_CXX \
13087     lt_prog_compiler_static_CXX \
13088     lt_prog_compiler_no_builtin_flag_CXX \
13089     export_dynamic_flag_spec_CXX \
13090     thread_safe_flag_spec_CXX \
13091     whole_archive_flag_spec_CXX \
13092     enable_shared_with_static_runtimes_CXX \
13093     old_archive_cmds_CXX \
13094     old_archive_from_new_cmds_CXX \
13095     predep_objects_CXX \
13096     postdep_objects_CXX \
13097     predeps_CXX \
13098     postdeps_CXX \
13099     compiler_lib_search_path_CXX \
13100     archive_cmds_CXX \
13101     archive_expsym_cmds_CXX \
13102     postinstall_cmds_CXX \
13103     postuninstall_cmds_CXX \
13104     old_archive_from_expsyms_cmds_CXX \
13105     allow_undefined_flag_CXX \
13106     no_undefined_flag_CXX \
13107     export_symbols_cmds_CXX \
13108     hardcode_libdir_flag_spec_CXX \
13109     hardcode_libdir_flag_spec_ld_CXX \
13110     hardcode_libdir_separator_CXX \
13111     hardcode_automatic_CXX \
13112     module_cmds_CXX \
13113     module_expsym_cmds_CXX \
13114     lt_cv_prog_compiler_c_o_CXX \
13115     exclude_expsyms_CXX \
13116     include_expsyms_CXX; do
13117
13118     case $var in
13119     old_archive_cmds_CXX | \
13120     old_archive_from_new_cmds_CXX | \
13121     archive_cmds_CXX | \
13122     archive_expsym_cmds_CXX | \
13123     module_cmds_CXX | \
13124     module_expsym_cmds_CXX | \
13125     old_archive_from_expsyms_cmds_CXX | \
13126     export_symbols_cmds_CXX | \
13127     extract_expsyms_cmds | reload_cmds | finish_cmds | \
13128     postinstall_cmds | postuninstall_cmds | \
13129     old_postinstall_cmds | old_postuninstall_cmds | \
13130     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13131       # Double-quote double-evaled strings.
13132       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13133       ;;
13134     *)
13135       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13136       ;;
13137     esac
13138   done
13139
13140   case $lt_echo in
13141   *'\$0 --fallback-echo"')
13142     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13143     ;;
13144   esac
13145
13146 cfgfile="$ofile"
13147
13148   cat <<__EOF__ >> "$cfgfile"
13149 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13150
13151 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13152
13153 # Shell to use when invoking shell scripts.
13154 SHELL=$lt_SHELL
13155
13156 # Whether or not to build shared libraries.
13157 build_libtool_libs=$enable_shared
13158
13159 # Whether or not to build static libraries.
13160 build_old_libs=$enable_static
13161
13162 # Whether or not to add -lc for building shared libraries.
13163 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13164
13165 # Whether or not to disallow shared libs when runtime libs are static
13166 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13167
13168 # Whether or not to optimize for fast installation.
13169 fast_install=$enable_fast_install
13170
13171 # The host system.
13172 host_alias=$host_alias
13173 host=$host
13174
13175 # An echo program that does not interpret backslashes.
13176 echo=$lt_echo
13177
13178 # The archiver.
13179 AR=$lt_AR
13180 AR_FLAGS=$lt_AR_FLAGS
13181
13182 # A C compiler.
13183 LTCC=$lt_LTCC
13184
13185 # A language-specific compiler.
13186 CC=$lt_compiler_CXX
13187
13188 # Is the compiler the GNU C compiler?
13189 with_gcc=$GCC_CXX
13190
13191 # An ERE matcher.
13192 EGREP=$lt_EGREP
13193
13194 # The linker used to build libraries.
13195 LD=$lt_LD_CXX
13196
13197 # Whether we need hard or soft links.
13198 LN_S=$lt_LN_S
13199
13200 # A BSD-compatible nm program.
13201 NM=$lt_NM
13202
13203 # A symbol stripping program
13204 STRIP=$lt_STRIP
13205
13206 # Used to examine libraries when file_magic_cmd begins "file"
13207 MAGIC_CMD=$MAGIC_CMD
13208
13209 # Used on cygwin: DLL creation program.
13210 DLLTOOL="$DLLTOOL"
13211
13212 # Used on cygwin: object dumper.
13213 OBJDUMP="$OBJDUMP"
13214
13215 # Used on cygwin: assembler.
13216 AS="$AS"
13217
13218 # The name of the directory that contains temporary libtool files.
13219 objdir=$objdir
13220
13221 # How to create reloadable object files.
13222 reload_flag=$lt_reload_flag
13223 reload_cmds=$lt_reload_cmds
13224
13225 # How to pass a linker flag through the compiler.
13226 wl=$lt_lt_prog_compiler_wl_CXX
13227
13228 # Object file suffix (normally "o").
13229 objext="$ac_objext"
13230
13231 # Old archive suffix (normally "a").
13232 libext="$libext"
13233
13234 # Shared library suffix (normally ".so").
13235 shrext_cmds='$shrext_cmds'
13236
13237 # Executable file suffix (normally "").
13238 exeext="$exeext"
13239
13240 # Additional compiler flags for building library objects.
13241 pic_flag=$lt_lt_prog_compiler_pic_CXX
13242 pic_mode=$pic_mode
13243
13244 # What is the maximum length of a command?
13245 max_cmd_len=$lt_cv_sys_max_cmd_len
13246
13247 # Does compiler simultaneously support -c and -o options?
13248 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13249
13250 # Must we lock files when doing compilation ?
13251 need_locks=$lt_need_locks
13252
13253 # Do we need the lib prefix for modules?
13254 need_lib_prefix=$need_lib_prefix
13255
13256 # Do we need a version for libraries?
13257 need_version=$need_version
13258
13259 # Whether dlopen is supported.
13260 dlopen_support=$enable_dlopen
13261
13262 # Whether dlopen of programs is supported.
13263 dlopen_self=$enable_dlopen_self
13264
13265 # Whether dlopen of statically linked programs is supported.
13266 dlopen_self_static=$enable_dlopen_self_static
13267
13268 # Compiler flag to prevent dynamic linking.
13269 link_static_flag=$lt_lt_prog_compiler_static_CXX
13270
13271 # Compiler flag to turn off builtin functions.
13272 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13273
13274 # Compiler flag to allow reflexive dlopens.
13275 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13276
13277 # Compiler flag to generate shared objects directly from archives.
13278 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13279
13280 # Compiler flag to generate thread-safe objects.
13281 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13282
13283 # Library versioning type.
13284 version_type=$version_type
13285
13286 # Format of library name prefix.
13287 libname_spec=$lt_libname_spec
13288
13289 # List of archive names.  First name is the real one, the rest are links.
13290 # The last name is the one that the linker finds with -lNAME.
13291 library_names_spec=$lt_library_names_spec
13292
13293 # The coded name of the library, if different from the real name.
13294 soname_spec=$lt_soname_spec
13295
13296 # Commands used to build and install an old-style archive.
13297 RANLIB=$lt_RANLIB
13298 old_archive_cmds=$lt_old_archive_cmds_CXX
13299 old_postinstall_cmds=$lt_old_postinstall_cmds
13300 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13301
13302 # Create an old-style archive from a shared archive.
13303 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13304
13305 # Create a temporary old-style archive to link instead of a shared archive.
13306 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13307
13308 # Commands used to build and install a shared archive.
13309 archive_cmds=$lt_archive_cmds_CXX
13310 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13311 postinstall_cmds=$lt_postinstall_cmds
13312 postuninstall_cmds=$lt_postuninstall_cmds
13313
13314 # Commands used to build a loadable module (assumed same as above if empty)
13315 module_cmds=$lt_module_cmds_CXX
13316 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13317
13318 # Commands to strip libraries.
13319 old_striplib=$lt_old_striplib
13320 striplib=$lt_striplib
13321
13322 # Dependencies to place before the objects being linked to create a
13323 # shared library.
13324 predep_objects=$lt_predep_objects_CXX
13325
13326 # Dependencies to place after the objects being linked to create a
13327 # shared library.
13328 postdep_objects=$lt_postdep_objects_CXX
13329
13330 # Dependencies to place before the objects being linked to create a
13331 # shared library.
13332 predeps=$lt_predeps_CXX
13333
13334 # Dependencies to place after the objects being linked to create a
13335 # shared library.
13336 postdeps=$lt_postdeps_CXX
13337
13338 # The library search path used internally by the compiler when linking
13339 # a shared library.
13340 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13341
13342 # Method to check whether dependent libraries are shared objects.
13343 deplibs_check_method=$lt_deplibs_check_method
13344
13345 # Command to use when deplibs_check_method == file_magic.
13346 file_magic_cmd=$lt_file_magic_cmd
13347
13348 # Flag that allows shared libraries with undefined symbols to be built.
13349 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13350
13351 # Flag that forces no undefined symbols.
13352 no_undefined_flag=$lt_no_undefined_flag_CXX
13353
13354 # Commands used to finish a libtool library installation in a directory.
13355 finish_cmds=$lt_finish_cmds
13356
13357 # Same as above, but a single script fragment to be evaled but not shown.
13358 finish_eval=$lt_finish_eval
13359
13360 # Take the output of nm and produce a listing of raw symbols and C names.
13361 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13362
13363 # Transform the output of nm in a proper C declaration
13364 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13365
13366 # Transform the output of nm in a C name address pair
13367 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13368
13369 # This is the shared library runtime path variable.
13370 runpath_var=$runpath_var
13371
13372 # This is the shared library path variable.
13373 shlibpath_var=$shlibpath_var
13374
13375 # Is shlibpath searched before the hard-coded library search path?
13376 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13377
13378 # How to hardcode a shared library path into an executable.
13379 hardcode_action=$hardcode_action_CXX
13380
13381 # Whether we should hardcode library paths into libraries.
13382 hardcode_into_libs=$hardcode_into_libs
13383
13384 # Flag to hardcode \$libdir into a binary during linking.
13385 # This must work even if \$libdir does not exist.
13386 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13387
13388 # If ld is used when linking, flag to hardcode \$libdir into
13389 # a binary during linking. This must work even if \$libdir does
13390 # not exist.
13391 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13392
13393 # Whether we need a single -rpath flag with a separated argument.
13394 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13395
13396 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13397 # resulting binary.
13398 hardcode_direct=$hardcode_direct_CXX
13399
13400 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13401 # resulting binary.
13402 hardcode_minus_L=$hardcode_minus_L_CXX
13403
13404 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13405 # the resulting binary.
13406 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13407
13408 # Set to yes if building a shared library automatically hardcodes DIR into the library
13409 # and all subsequent libraries and executables linked against it.
13410 hardcode_automatic=$hardcode_automatic_CXX
13411
13412 # Variables whose values should be saved in libtool wrapper scripts and
13413 # restored at relink time.
13414 variables_saved_for_relink="$variables_saved_for_relink"
13415
13416 # Whether libtool must link a program against all its dependency libraries.
13417 link_all_deplibs=$link_all_deplibs_CXX
13418
13419 # Compile-time system search path for libraries
13420 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13421
13422 # Run-time system search path for libraries
13423 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13424
13425 # Fix the shell variable \$srcfile for the compiler.
13426 fix_srcfile_path="$fix_srcfile_path_CXX"
13427
13428 # Set to yes if exported symbols are required.
13429 always_export_symbols=$always_export_symbols_CXX
13430
13431 # The commands to list exported symbols.
13432 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13433
13434 # The commands to extract the exported symbol list from a shared archive.
13435 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13436
13437 # Symbols that should not be listed in the preloaded symbols.
13438 exclude_expsyms=$lt_exclude_expsyms_CXX
13439
13440 # Symbols that must always be exported.
13441 include_expsyms=$lt_include_expsyms_CXX
13442
13443 # ### END LIBTOOL TAG CONFIG: $tagname
13444
13445 __EOF__
13446
13447
13448 else
13449   # If there is no Makefile yet, we rely on a make rule to execute
13450   # `config.status --recheck' to rerun these tests and create the
13451   # libtool script then.
13452   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13453   if test -f "$ltmain_in"; then
13454     test -f Makefile && make "$ltmain"
13455   fi
13456 fi
13457
13458
13459 ac_ext=c
13460 ac_cpp='$CPP $CPPFLAGS'
13461 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13462 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13463 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13464
13465 CC=$lt_save_CC
13466 LDCXX=$LD
13467 LD=$lt_save_LD
13468 GCC=$lt_save_GCC
13469 with_gnu_ldcxx=$with_gnu_ld
13470 with_gnu_ld=$lt_save_with_gnu_ld
13471 lt_cv_path_LDCXX=$lt_cv_path_LD
13472 lt_cv_path_LD=$lt_save_path_LD
13473 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13474 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13475
13476         else
13477           tagname=""
13478         fi
13479         ;;
13480
13481       F77)
13482         if test -n "$F77" && test "X$F77" != "Xno"; then
13483
13484 ac_ext=f
13485 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13486 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13487 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13488
13489
13490 archive_cmds_need_lc_F77=no
13491 allow_undefined_flag_F77=
13492 always_export_symbols_F77=no
13493 archive_expsym_cmds_F77=
13494 export_dynamic_flag_spec_F77=
13495 hardcode_direct_F77=no
13496 hardcode_libdir_flag_spec_F77=
13497 hardcode_libdir_flag_spec_ld_F77=
13498 hardcode_libdir_separator_F77=
13499 hardcode_minus_L_F77=no
13500 hardcode_automatic_F77=no
13501 module_cmds_F77=
13502 module_expsym_cmds_F77=
13503 link_all_deplibs_F77=unknown
13504 old_archive_cmds_F77=$old_archive_cmds
13505 no_undefined_flag_F77=
13506 whole_archive_flag_spec_F77=
13507 enable_shared_with_static_runtimes_F77=no
13508
13509 # Source file extension for f77 test sources.
13510 ac_ext=f
13511
13512 # Object file extension for compiled f77 test sources.
13513 objext=o
13514 objext_F77=$objext
13515
13516 # Code to be used in simple compile tests
13517 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13518
13519 # Code to be used in simple link tests
13520 lt_simple_link_test_code="      program t\n      end\n"
13521
13522 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13523
13524 # If no C compiler was specified, use CC.
13525 LTCC=${LTCC-"$CC"}
13526
13527 # Allow CC to be a program name with arguments.
13528 compiler=$CC
13529
13530
13531 # Allow CC to be a program name with arguments.
13532 lt_save_CC="$CC"
13533 CC=${F77-"f77"}
13534 compiler=$CC
13535 compiler_F77=$CC
13536 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13537
13538 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13539 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13540 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13541 echo "${ECHO_T}$can_build_shared" >&6; }
13542
13543 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13544 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13545 test "$can_build_shared" = "no" && enable_shared=no
13546
13547 # On AIX, shared libraries and static libraries use the same namespace, and
13548 # are all built from PIC.
13549 case "$host_os" in
13550 aix3*)
13551   test "$enable_shared" = yes && enable_static=no
13552   if test -n "$RANLIB"; then
13553     archive_cmds="$archive_cmds~\$RANLIB \$lib"
13554     postinstall_cmds='$RANLIB $lib'
13555   fi
13556   ;;
13557 aix4* | aix5*)
13558   test "$enable_shared" = yes && enable_static=no
13559   ;;
13560 esac
13561 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13562 echo "${ECHO_T}$enable_shared" >&6; }
13563
13564 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13565 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13566 # Make sure either enable_shared or enable_static is yes.
13567 test "$enable_shared" = yes || enable_static=yes
13568 { echo "$as_me:$LINENO: result: $enable_static" >&5
13569 echo "${ECHO_T}$enable_static" >&6; }
13570
13571 test "$ld_shlibs_F77" = no && can_build_shared=no
13572
13573 GCC_F77="$G77"
13574 LD_F77="$LD"
13575
13576 lt_prog_compiler_wl_F77=
13577 lt_prog_compiler_pic_F77=
13578 lt_prog_compiler_static_F77=
13579
13580 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13581 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13582
13583   if test "$GCC" = yes; then
13584     lt_prog_compiler_wl_F77='-Wl,'
13585     lt_prog_compiler_static_F77='-static'
13586
13587     case $host_os in
13588       aix*)
13589       # All AIX code is PIC.
13590       if test "$host_cpu" = ia64; then
13591         # AIX 5 now supports IA64 processor
13592         lt_prog_compiler_static_F77='-Bstatic'
13593       fi
13594       ;;
13595
13596     amigaos*)
13597       # FIXME: we need at least 68020 code to build shared libraries, but
13598       # adding the `-m68020' flag to GCC prevents building anything better,
13599       # like `-m68040'.
13600       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13601       ;;
13602
13603     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13604       # PIC is the default for these OSes.
13605       ;;
13606
13607     mingw* | pw32* | os2*)
13608       # This hack is so that the source file can tell whether it is being
13609       # built for inclusion in a dll (and should export symbols for example).
13610       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13611       ;;
13612
13613     darwin* | rhapsody*)
13614       # PIC is the default on this platform
13615       # Common symbols not allowed in MH_DYLIB files
13616       lt_prog_compiler_pic_F77='-fno-common'
13617       ;;
13618
13619     msdosdjgpp*)
13620       # Just because we use GCC doesn't mean we suddenly get shared libraries
13621       # on systems that don't support them.
13622       lt_prog_compiler_can_build_shared_F77=no
13623       enable_shared=no
13624       ;;
13625
13626     sysv4*MP*)
13627       if test -d /usr/nec; then
13628         lt_prog_compiler_pic_F77=-Kconform_pic
13629       fi
13630       ;;
13631
13632     hpux*)
13633       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13634       # not for PA HP-UX.
13635       case "$host_cpu" in
13636       hppa*64*|ia64*)
13637         # +Z the default
13638         ;;
13639       *)
13640         lt_prog_compiler_pic_F77='-fPIC'
13641         ;;
13642       esac
13643       ;;
13644
13645     *)
13646       lt_prog_compiler_pic_F77='-fPIC'
13647       ;;
13648     esac
13649   else
13650     # PORTME Check for flag to pass linker flags through the system compiler.
13651     case $host_os in
13652     aix*)
13653       lt_prog_compiler_wl_F77='-Wl,'
13654       if test "$host_cpu" = ia64; then
13655         # AIX 5 now supports IA64 processor
13656         lt_prog_compiler_static_F77='-Bstatic'
13657       else
13658         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13659       fi
13660       ;;
13661
13662     mingw* | pw32* | os2*)
13663       # This hack is so that the source file can tell whether it is being
13664       # built for inclusion in a dll (and should export symbols for example).
13665       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13666       ;;
13667
13668     hpux9* | hpux10* | hpux11*)
13669       lt_prog_compiler_wl_F77='-Wl,'
13670       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13671       # not for PA HP-UX.
13672       case "$host_cpu" in
13673       hppa*64*|ia64*)
13674         # +Z the default
13675         ;;
13676       *)
13677         lt_prog_compiler_pic_F77='+Z'
13678         ;;
13679       esac
13680       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13681       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13682       ;;
13683
13684     irix5* | irix6* | nonstopux*)
13685       lt_prog_compiler_wl_F77='-Wl,'
13686       # PIC (with -KPIC) is the default.
13687       lt_prog_compiler_static_F77='-non_shared'
13688       ;;
13689
13690     newsos6)
13691       lt_prog_compiler_pic_F77='-KPIC'
13692       lt_prog_compiler_static_F77='-Bstatic'
13693       ;;
13694
13695     linux*)
13696       case $CC in
13697       icc* | ecc*)
13698         lt_prog_compiler_wl_F77='-Wl,'
13699         lt_prog_compiler_pic_F77='-KPIC'
13700         lt_prog_compiler_static_F77='-static'
13701         ;;
13702       ccc*)
13703         lt_prog_compiler_wl_F77='-Wl,'
13704         # All Alpha code is PIC.
13705         lt_prog_compiler_static_F77='-non_shared'
13706         ;;
13707       esac
13708       ;;
13709
13710     osf3* | osf4* | osf5*)
13711       lt_prog_compiler_wl_F77='-Wl,'
13712       # All OSF/1 code is PIC.
13713       lt_prog_compiler_static_F77='-non_shared'
13714       ;;
13715
13716     sco3.2v5*)
13717       lt_prog_compiler_pic_F77='-Kpic'
13718       lt_prog_compiler_static_F77='-dn'
13719       ;;
13720
13721     solaris*)
13722       lt_prog_compiler_wl_F77='-Wl,'
13723       lt_prog_compiler_pic_F77='-KPIC'
13724       lt_prog_compiler_static_F77='-Bstatic'
13725       ;;
13726
13727     sunos4*)
13728       lt_prog_compiler_wl_F77='-Qoption ld '
13729       lt_prog_compiler_pic_F77='-PIC'
13730       lt_prog_compiler_static_F77='-Bstatic'
13731       ;;
13732
13733     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13734       lt_prog_compiler_wl_F77='-Wl,'
13735       lt_prog_compiler_pic_F77='-KPIC'
13736       lt_prog_compiler_static_F77='-Bstatic'
13737       ;;
13738
13739     sysv4*MP*)
13740       if test -d /usr/nec ;then
13741         lt_prog_compiler_pic_F77='-Kconform_pic'
13742         lt_prog_compiler_static_F77='-Bstatic'
13743       fi
13744       ;;
13745
13746     uts4*)
13747       lt_prog_compiler_pic_F77='-pic'
13748       lt_prog_compiler_static_F77='-Bstatic'
13749       ;;
13750
13751     *)
13752       lt_prog_compiler_can_build_shared_F77=no
13753       ;;
13754     esac
13755   fi
13756
13757 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13758 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
13759
13760 #
13761 # Check to make sure the PIC flag actually works.
13762 #
13763 if test -n "$lt_prog_compiler_pic_F77"; then
13764
13765 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13766 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
13767 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13768   echo $ECHO_N "(cached) $ECHO_C" >&6
13769 else
13770   lt_prog_compiler_pic_works_F77=no
13771   ac_outfile=conftest.$ac_objext
13772    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13773    lt_compiler_flag="$lt_prog_compiler_pic_F77"
13774    # Insert the option either (1) after the last *FLAGS variable, or
13775    # (2) before a word containing "conftest.", or (3) at the end.
13776    # Note that $ac_compile itself does not contain backslashes and begins
13777    # with a dollar sign (not a hyphen), so the echo should work correctly.
13778    # The option is referenced via a variable to avoid confusing sed.
13779    lt_compile=`echo "$ac_compile" | $SED \
13780    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13781    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13782    -e 's:$: $lt_compiler_flag:'`
13783    (eval echo "\"\$as_me:13783: $lt_compile\"" >&5)
13784    (eval "$lt_compile" 2>conftest.err)
13785    ac_status=$?
13786    cat conftest.err >&5
13787    echo "$as_me:13787: \$? = $ac_status" >&5
13788    if (exit $ac_status) && test -s "$ac_outfile"; then
13789      # The compiler can only warn and ignore the option if not recognized
13790      # So say no if there are warnings
13791      if test ! -s conftest.err; then
13792        lt_prog_compiler_pic_works_F77=yes
13793      fi
13794    fi
13795    $rm conftest*
13796
13797 fi
13798 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13799 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
13800
13801 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13802     case $lt_prog_compiler_pic_F77 in
13803      "" | " "*) ;;
13804      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13805      esac
13806 else
13807     lt_prog_compiler_pic_F77=
13808      lt_prog_compiler_can_build_shared_F77=no
13809 fi
13810
13811 fi
13812 case "$host_os" in
13813   # For platforms which do not support PIC, -DPIC is meaningless:
13814   *djgpp*)
13815     lt_prog_compiler_pic_F77=
13816     ;;
13817   *)
13818     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13819     ;;
13820 esac
13821
13822 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13823 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13824 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13825   echo $ECHO_N "(cached) $ECHO_C" >&6
13826 else
13827   lt_cv_prog_compiler_c_o_F77=no
13828    $rm -r conftest 2>/dev/null
13829    mkdir conftest
13830    cd conftest
13831    mkdir out
13832    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13833
13834    lt_compiler_flag="-o out/conftest2.$ac_objext"
13835    # Insert the option either (1) after the last *FLAGS variable, or
13836    # (2) before a word containing "conftest.", or (3) at the end.
13837    # Note that $ac_compile itself does not contain backslashes and begins
13838    # with a dollar sign (not a hyphen), so the echo should work correctly.
13839    lt_compile=`echo "$ac_compile" | $SED \
13840    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13841    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13842    -e 's:$: $lt_compiler_flag:'`
13843    (eval echo "\"\$as_me:13843: $lt_compile\"" >&5)
13844    (eval "$lt_compile" 2>out/conftest.err)
13845    ac_status=$?
13846    cat out/conftest.err >&5
13847    echo "$as_me:13847: \$? = $ac_status" >&5
13848    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13849    then
13850      # The compiler can only warn and ignore the option if not recognized
13851      # So say no if there are warnings
13852      if test ! -s out/conftest.err; then
13853        lt_cv_prog_compiler_c_o_F77=yes
13854      fi
13855    fi
13856    chmod u+w .
13857    $rm conftest*
13858    # SGI C++ compiler will create directory out/ii_files/ for
13859    # template instantiation
13860    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13861    $rm out/* && rmdir out
13862    cd ..
13863    rmdir conftest
13864    $rm conftest*
13865
13866 fi
13867 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13868 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
13869
13870
13871 hard_links="nottested"
13872 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13873   # do not overwrite the value of need_locks provided by the user
13874   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13875 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13876   hard_links=yes
13877   $rm conftest*
13878   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13879   touch conftest.a
13880   ln conftest.a conftest.b 2>&5 || hard_links=no
13881   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13882   { echo "$as_me:$LINENO: result: $hard_links" >&5
13883 echo "${ECHO_T}$hard_links" >&6; }
13884   if test "$hard_links" = no; then
13885     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13886 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13887     need_locks=warn
13888   fi
13889 else
13890   need_locks=no
13891 fi
13892
13893 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13894 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13895
13896   runpath_var=
13897   allow_undefined_flag_F77=
13898   enable_shared_with_static_runtimes_F77=no
13899   archive_cmds_F77=
13900   archive_expsym_cmds_F77=
13901   old_archive_From_new_cmds_F77=
13902   old_archive_from_expsyms_cmds_F77=
13903   export_dynamic_flag_spec_F77=
13904   whole_archive_flag_spec_F77=
13905   thread_safe_flag_spec_F77=
13906   hardcode_libdir_flag_spec_F77=
13907   hardcode_libdir_flag_spec_ld_F77=
13908   hardcode_libdir_separator_F77=
13909   hardcode_direct_F77=no
13910   hardcode_minus_L_F77=no
13911   hardcode_shlibpath_var_F77=unsupported
13912   link_all_deplibs_F77=unknown
13913   hardcode_automatic_F77=no
13914   module_cmds_F77=
13915   module_expsym_cmds_F77=
13916   always_export_symbols_F77=no
13917   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13918   # include_expsyms should be a list of space-separated symbols to be *always*
13919   # included in the symbol list
13920   include_expsyms_F77=
13921   # exclude_expsyms can be an extended regexp of symbols to exclude
13922   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13923   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13924   # as well as any symbol that contains `d'.
13925   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13926   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13927   # platforms (ab)use it in PIC code, but their linkers get confused if
13928   # the symbol is explicitly referenced.  Since portable code cannot
13929   # rely on this symbol name, it's probably fine to never include it in
13930   # preloaded symbol tables.
13931   extract_expsyms_cmds=
13932
13933   case $host_os in
13934   cygwin* | mingw* | pw32*)
13935     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13936     # When not using gcc, we currently assume that we are using
13937     # Microsoft Visual C++.
13938     if test "$GCC" != yes; then
13939       with_gnu_ld=no
13940     fi
13941     ;;
13942   openbsd*)
13943     with_gnu_ld=no
13944     ;;
13945   esac
13946
13947   ld_shlibs_F77=yes
13948   if test "$with_gnu_ld" = yes; then
13949     # If archive_cmds runs LD, not CC, wlarc should be empty
13950     wlarc='${wl}'
13951
13952     # See if GNU ld supports shared libraries.
13953     case $host_os in
13954     aix3* | aix4* | aix5*)
13955       # On AIX/PPC, the GNU linker is very broken
13956       if test "$host_cpu" != ia64; then
13957         ld_shlibs_F77=no
13958         cat <<EOF 1>&2
13959
13960 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13961 *** to be unable to reliably create shared libraries on AIX.
13962 *** Therefore, libtool is disabling shared libraries support.  If you
13963 *** really care for shared libraries, you may want to modify your PATH
13964 *** so that a non-GNU linker is found, and then restart.
13965
13966 EOF
13967       fi
13968       ;;
13969
13970     amigaos*)
13971       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)'
13972       hardcode_libdir_flag_spec_F77='-L$libdir'
13973       hardcode_minus_L_F77=yes
13974
13975       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13976       # that the semantics of dynamic libraries on AmigaOS, at least up
13977       # to version 4, is to share data among multiple programs linked
13978       # with the same dynamic library.  Since this doesn't match the
13979       # behavior of shared libraries on other platforms, we can't use
13980       # them.
13981       ld_shlibs_F77=no
13982       ;;
13983
13984     beos*)
13985       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13986         allow_undefined_flag_F77=unsupported
13987         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13988         # support --undefined.  This deserves some investigation.  FIXME
13989         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13990       else
13991         ld_shlibs_F77=no
13992       fi
13993       ;;
13994
13995     cygwin* | mingw* | pw32*)
13996       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13997       # as there is no search path for DLLs.
13998       hardcode_libdir_flag_spec_F77='-L$libdir'
13999       allow_undefined_flag_F77=unsupported
14000       always_export_symbols_F77=no
14001       enable_shared_with_static_runtimes_F77=yes
14002       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14003
14004       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14005         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14006         # If the export-symbols file already is a .def file (1st line
14007         # is EXPORTS), use it as is; otherwise, prepend...
14008         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14009           cp $export_symbols $output_objdir/$soname.def;
14010         else
14011           echo EXPORTS > $output_objdir/$soname.def;
14012           cat $export_symbols >> $output_objdir/$soname.def;
14013         fi~
14014         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
14015       else
14016         ld_shlibs=no
14017       fi
14018       ;;
14019
14020     netbsd*)
14021       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14022         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14023         wlarc=
14024       else
14025         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14026         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14027       fi
14028       ;;
14029
14030     solaris* | sysv5*)
14031       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14032         ld_shlibs_F77=no
14033         cat <<EOF 1>&2
14034
14035 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14036 *** create shared libraries on Solaris systems.  Therefore, libtool
14037 *** is disabling shared libraries support.  We urge you to upgrade GNU
14038 *** binutils to release 2.9.1 or newer.  Another option is to modify
14039 *** your PATH or compiler configuration so that the native linker is
14040 *** used, and then restart.
14041
14042 EOF
14043       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14044         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14045         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14046       else
14047         ld_shlibs_F77=no
14048       fi
14049       ;;
14050
14051     sunos4*)
14052       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14053       wlarc=
14054       hardcode_direct_F77=yes
14055       hardcode_shlibpath_var_F77=no
14056       ;;
14057
14058   linux*)
14059     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14060         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14061         archive_cmds_F77="$tmp_archive_cmds"
14062       supports_anon_versioning=no
14063       case `$LD -v 2>/dev/null` in
14064         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14065         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14066         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14067         *\ 2.11.*) ;; # other 2.11 versions
14068         *) supports_anon_versioning=yes ;;
14069       esac
14070       if test $supports_anon_versioning = yes; then
14071         archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14072 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14073 $echo "local: *; };" >> $output_objdir/$libname.ver~
14074         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14075       else
14076         archive_expsym_cmds_F77="$tmp_archive_cmds"
14077       fi
14078     else
14079       ld_shlibs_F77=no
14080     fi
14081     ;;
14082
14083     *)
14084       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14085         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14086         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14087       else
14088         ld_shlibs_F77=no
14089       fi
14090       ;;
14091     esac
14092
14093     if test "$ld_shlibs_F77" = yes; then
14094       runpath_var=LD_RUN_PATH
14095       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14096       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14097       # ancient GNU ld didn't support --whole-archive et. al.
14098       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14099         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14100       else
14101         whole_archive_flag_spec_F77=
14102       fi
14103     fi
14104   else
14105     # PORTME fill in a description of your system's linker (not GNU ld)
14106     case $host_os in
14107     aix3*)
14108       allow_undefined_flag_F77=unsupported
14109       always_export_symbols_F77=yes
14110       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'
14111       # Note: this linker hardcodes the directories in LIBPATH if there
14112       # are no directories specified by -L.
14113       hardcode_minus_L_F77=yes
14114       if test "$GCC" = yes && test -z "$link_static_flag"; then
14115         # Neither direct hardcoding nor static linking is supported with a
14116         # broken collect2.
14117         hardcode_direct_F77=unsupported
14118       fi
14119       ;;
14120
14121     aix4* | aix5*)
14122       if test "$host_cpu" = ia64; then
14123         # On IA64, the linker does run time linking by default, so we don't
14124         # have to do anything special.
14125         aix_use_runtimelinking=no
14126         exp_sym_flag='-Bexport'
14127         no_entry_flag=""
14128       else
14129         # If we're using GNU nm, then we don't want the "-C" option.
14130         # -C means demangle to AIX nm, but means don't demangle with GNU nm
14131         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14132           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'
14133         else
14134           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'
14135         fi
14136         aix_use_runtimelinking=no
14137
14138         # Test if we are trying to use run time linking or normal
14139         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14140         # need to do runtime linking.
14141         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14142           for ld_flag in $LDFLAGS; do
14143           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14144             aix_use_runtimelinking=yes
14145             break
14146           fi
14147           done
14148         esac
14149
14150         exp_sym_flag='-bexport'
14151         no_entry_flag='-bnoentry'
14152       fi
14153
14154       # When large executables or shared objects are built, AIX ld can
14155       # have problems creating the table of contents.  If linking a library
14156       # or program results in "error TOC overflow" add -mminimal-toc to
14157       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14158       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14159
14160       archive_cmds_F77=''
14161       hardcode_direct_F77=yes
14162       hardcode_libdir_separator_F77=':'
14163       link_all_deplibs_F77=yes
14164
14165       if test "$GCC" = yes; then
14166         case $host_os in aix4.012|aix4.012.*)
14167         # We only want to do this on AIX 4.2 and lower, the check
14168         # below for broken collect2 doesn't work under 4.3+
14169           collect2name=`${CC} -print-prog-name=collect2`
14170           if test -f "$collect2name" && \
14171            strings "$collect2name" | grep resolve_lib_name >/dev/null
14172           then
14173           # We have reworked collect2
14174           hardcode_direct_F77=yes
14175           else
14176           # We have old collect2
14177           hardcode_direct_F77=unsupported
14178           # It fails to find uninstalled libraries when the uninstalled
14179           # path is not listed in the libpath.  Setting hardcode_minus_L
14180           # to unsupported forces relinking
14181           hardcode_minus_L_F77=yes
14182           hardcode_libdir_flag_spec_F77='-L$libdir'
14183           hardcode_libdir_separator_F77=
14184           fi
14185         esac
14186         shared_flag='-shared'
14187       else
14188         # not using gcc
14189         if test "$host_cpu" = ia64; then
14190         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14191         # chokes on -Wl,-G. The following line is correct:
14192           shared_flag='-G'
14193         else
14194         if test "$aix_use_runtimelinking" = yes; then
14195             shared_flag='${wl}-G'
14196           else
14197             shared_flag='${wl}-bM:SRE'
14198         fi
14199         fi
14200       fi
14201
14202       # It seems that -bexpall does not export symbols beginning with
14203       # underscore (_), so it is better to generate a list of symbols to export.
14204       always_export_symbols_F77=yes
14205       if test "$aix_use_runtimelinking" = yes; then
14206         # Warning - without using the other runtime loading flags (-brtl),
14207         # -berok will link without error, but may produce a broken library.
14208         allow_undefined_flag_F77='-berok'
14209        # Determine the default libpath from the value encoded in an empty executable.
14210        cat >conftest.$ac_ext <<_ACEOF
14211       program main
14212
14213       end
14214 _ACEOF
14215 rm -f conftest.$ac_objext conftest$ac_exeext
14216 if { (ac_try="$ac_link"
14217 case "(($ac_try" in
14218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14219   *) ac_try_echo=$ac_try;;
14220 esac
14221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14222   (eval "$ac_link") 2>conftest.er1
14223   ac_status=$?
14224   grep -v '^ *+' conftest.er1 >conftest.err
14225   rm -f conftest.er1
14226   cat conftest.err >&5
14227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14228   (exit $ac_status); } && {
14229          test -z "$ac_f77_werror_flag" ||
14230          test ! -s conftest.err
14231        } && test -s conftest$ac_exeext &&
14232        $as_test_x conftest$ac_exeext; then
14233
14234 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14235 }'`
14236 # Check for a 64-bit object if we didn't find anything.
14237 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14238 }'`; fi
14239 else
14240   echo "$as_me: failed program was:" >&5
14241 sed 's/^/| /' conftest.$ac_ext >&5
14242
14243
14244 fi
14245
14246 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14247       conftest$ac_exeext conftest.$ac_ext
14248 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14249
14250        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14251         archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14252        else
14253         if test "$host_cpu" = ia64; then
14254           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14255           allow_undefined_flag_F77="-z nodefs"
14256           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
14257         else
14258          # Determine the default libpath from the value encoded in an empty executable.
14259          cat >conftest.$ac_ext <<_ACEOF
14260       program main
14261
14262       end
14263 _ACEOF
14264 rm -f conftest.$ac_objext conftest$ac_exeext
14265 if { (ac_try="$ac_link"
14266 case "(($ac_try" in
14267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14268   *) ac_try_echo=$ac_try;;
14269 esac
14270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14271   (eval "$ac_link") 2>conftest.er1
14272   ac_status=$?
14273   grep -v '^ *+' conftest.er1 >conftest.err
14274   rm -f conftest.er1
14275   cat conftest.err >&5
14276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14277   (exit $ac_status); } && {
14278          test -z "$ac_f77_werror_flag" ||
14279          test ! -s conftest.err
14280        } && test -s conftest$ac_exeext &&
14281        $as_test_x conftest$ac_exeext; then
14282
14283 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14284 }'`
14285 # Check for a 64-bit object if we didn't find anything.
14286 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14287 }'`; fi
14288 else
14289   echo "$as_me: failed program was:" >&5
14290 sed 's/^/| /' conftest.$ac_ext >&5
14291
14292
14293 fi
14294
14295 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14296       conftest$ac_exeext conftest.$ac_ext
14297 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14298
14299          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14300           # Warning - without using the other run time loading flags,
14301           # -berok will link without error, but may produce a broken library.
14302           no_undefined_flag_F77=' ${wl}-bernotok'
14303           allow_undefined_flag_F77=' ${wl}-berok'
14304           # -bexpall does not export symbols beginning with underscore (_)
14305           always_export_symbols_F77=yes
14306           # Exported symbols can be pulled into shared objects from archives
14307           whole_archive_flag_spec_F77=' '
14308           archive_cmds_need_lc_F77=yes
14309           # This is similar to how AIX traditionally builds it's shared libraries.
14310           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14311         fi
14312       fi
14313       ;;
14314
14315     amigaos*)
14316       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)'
14317       hardcode_libdir_flag_spec_F77='-L$libdir'
14318       hardcode_minus_L_F77=yes
14319       # see comment about different semantics on the GNU ld section
14320       ld_shlibs_F77=no
14321       ;;
14322
14323     bsdi4*)
14324       export_dynamic_flag_spec_F77=-rdynamic
14325       ;;
14326
14327     cygwin* | mingw* | pw32*)
14328       # When not using gcc, we currently assume that we are using
14329       # Microsoft Visual C++.
14330       # hardcode_libdir_flag_spec is actually meaningless, as there is
14331       # no search path for DLLs.
14332       hardcode_libdir_flag_spec_F77=' '
14333       allow_undefined_flag_F77=unsupported
14334       # Tell ltmain to make .lib files, not .a files.
14335       libext=lib
14336       # Tell ltmain to make .dll files, not .so files.
14337       shrext_cmds=".dll"
14338       # FIXME: Setting linknames here is a bad hack.
14339       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14340       # The linker will automatically build a .lib file if we build a DLL.
14341       old_archive_From_new_cmds_F77='true'
14342       # FIXME: Should let the user specify the lib program.
14343       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14344       fix_srcfile_path='`cygpath -w "$srcfile"`'
14345       enable_shared_with_static_runtimes_F77=yes
14346       ;;
14347
14348     darwin* | rhapsody*)
14349     if test "$GXX" = yes ; then
14350       archive_cmds_need_lc_F77=no
14351       case "$host_os" in
14352       rhapsody* | darwin1.[012])
14353         allow_undefined_flag_F77='-undefined suppress'
14354         ;;
14355       *) # Darwin 1.3 on
14356       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14357         allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14358       else
14359         case ${MACOSX_DEPLOYMENT_TARGET} in
14360           10.[012])
14361             allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14362             ;;
14363           10.*)
14364             allow_undefined_flag_F77='-undefined dynamic_lookup'
14365             ;;
14366         esac
14367       fi
14368         ;;
14369       esac
14370         lt_int_apple_cc_single_mod=no
14371         output_verbose_link_cmd='echo'
14372         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
14373           lt_int_apple_cc_single_mod=yes
14374         fi
14375         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14376           archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14377         else
14378         archive_cmds_F77='$CC -r ${wl}-bind_at_load -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'
14379       fi
14380       module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14381       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14382         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14383           archive_expsym_cmds_F77='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}'
14384         else
14385           archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
14386         fi
14387           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}'
14388       hardcode_direct_F77=no
14389       hardcode_automatic_F77=yes
14390       hardcode_shlibpath_var_F77=unsupported
14391       whole_archive_flag_spec_F77='-all_load $convenience'
14392       link_all_deplibs_F77=yes
14393     else
14394       ld_shlibs_F77=no
14395     fi
14396       ;;
14397
14398     dgux*)
14399       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14400       hardcode_libdir_flag_spec_F77='-L$libdir'
14401       hardcode_shlibpath_var_F77=no
14402       ;;
14403
14404     freebsd1*)
14405       ld_shlibs_F77=no
14406       ;;
14407
14408     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14409     # support.  Future versions do this automatically, but an explicit c++rt0.o
14410     # does not break anything, and helps significantly (at the cost of a little
14411     # extra space).
14412     freebsd2.2*)
14413       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14414       hardcode_libdir_flag_spec_F77='-R$libdir'
14415       hardcode_direct_F77=yes
14416       hardcode_shlibpath_var_F77=no
14417       ;;
14418
14419     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14420     freebsd2*)
14421       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14422       hardcode_direct_F77=yes
14423       hardcode_minus_L_F77=yes
14424       hardcode_shlibpath_var_F77=no
14425       ;;
14426
14427     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14428     freebsd* | kfreebsd*-gnu)
14429       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14430       hardcode_libdir_flag_spec_F77='-R$libdir'
14431       hardcode_direct_F77=yes
14432       hardcode_shlibpath_var_F77=no
14433       ;;
14434
14435     hpux9*)
14436       if test "$GCC" = yes; then
14437         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'
14438       else
14439         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'
14440       fi
14441       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14442       hardcode_libdir_separator_F77=:
14443       hardcode_direct_F77=yes
14444
14445       # hardcode_minus_L: Not really in the search PATH,
14446       # but as the default location of the library.
14447       hardcode_minus_L_F77=yes
14448       export_dynamic_flag_spec_F77='${wl}-E'
14449       ;;
14450
14451     hpux10* | hpux11*)
14452       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14453         case "$host_cpu" in
14454         hppa*64*|ia64*)
14455           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14456           ;;
14457         *)
14458           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14459           ;;
14460         esac
14461       else
14462         case "$host_cpu" in
14463         hppa*64*|ia64*)
14464           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14465           ;;
14466         *)
14467           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14468           ;;
14469         esac
14470       fi
14471       if test "$with_gnu_ld" = no; then
14472         case "$host_cpu" in
14473         hppa*64*)
14474           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14475           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14476           hardcode_libdir_separator_F77=:
14477           hardcode_direct_F77=no
14478           hardcode_shlibpath_var_F77=no
14479           ;;
14480         ia64*)
14481           hardcode_libdir_flag_spec_F77='-L$libdir'
14482           hardcode_direct_F77=no
14483           hardcode_shlibpath_var_F77=no
14484
14485           # hardcode_minus_L: Not really in the search PATH,
14486           # but as the default location of the library.
14487           hardcode_minus_L_F77=yes
14488           ;;
14489         *)
14490           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14491           hardcode_libdir_separator_F77=:
14492           hardcode_direct_F77=yes
14493           export_dynamic_flag_spec_F77='${wl}-E'
14494
14495           # hardcode_minus_L: Not really in the search PATH,
14496           # but as the default location of the library.
14497           hardcode_minus_L_F77=yes
14498           ;;
14499         esac
14500       fi
14501       ;;
14502
14503     irix5* | irix6* | nonstopux*)
14504       if test "$GCC" = yes; then
14505         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'
14506       else
14507         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'
14508         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14509       fi
14510       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14511       hardcode_libdir_separator_F77=:
14512       link_all_deplibs_F77=yes
14513       ;;
14514
14515     netbsd*)
14516       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14517         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14518       else
14519         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14520       fi
14521       hardcode_libdir_flag_spec_F77='-R$libdir'
14522       hardcode_direct_F77=yes
14523       hardcode_shlibpath_var_F77=no
14524       ;;
14525
14526     newsos6)
14527       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14528       hardcode_direct_F77=yes
14529       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14530       hardcode_libdir_separator_F77=:
14531       hardcode_shlibpath_var_F77=no
14532       ;;
14533
14534     openbsd*)
14535       hardcode_direct_F77=yes
14536       hardcode_shlibpath_var_F77=no
14537       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14538         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14539         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14540         export_dynamic_flag_spec_F77='${wl}-E'
14541       else
14542        case $host_os in
14543          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14544            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14545            hardcode_libdir_flag_spec_F77='-R$libdir'
14546            ;;
14547          *)
14548            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14549            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14550            ;;
14551        esac
14552       fi
14553       ;;
14554
14555     os2*)
14556       hardcode_libdir_flag_spec_F77='-L$libdir'
14557       hardcode_minus_L_F77=yes
14558       allow_undefined_flag_F77=unsupported
14559       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'
14560       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14561       ;;
14562
14563     osf3*)
14564       if test "$GCC" = yes; then
14565         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14566         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'
14567       else
14568         allow_undefined_flag_F77=' -expect_unresolved \*'
14569         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'
14570       fi
14571       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14572       hardcode_libdir_separator_F77=:
14573       ;;
14574
14575     osf4* | osf5*)      # as osf3* with the addition of -msym flag
14576       if test "$GCC" = yes; then
14577         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14578         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'
14579         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14580       else
14581         allow_undefined_flag_F77=' -expect_unresolved \*'
14582         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'
14583         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~
14584         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
14585
14586         # Both c and cxx compiler support -rpath directly
14587         hardcode_libdir_flag_spec_F77='-rpath $libdir'
14588       fi
14589       hardcode_libdir_separator_F77=:
14590       ;;
14591
14592     sco3.2v5*)
14593       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14594       hardcode_shlibpath_var_F77=no
14595       export_dynamic_flag_spec_F77='${wl}-Bexport'
14596       runpath_var=LD_RUN_PATH
14597       hardcode_runpath_var=yes
14598       ;;
14599
14600     solaris*)
14601       no_undefined_flag_F77=' -z text'
14602       if test "$GCC" = yes; then
14603         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14604         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14605           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14606       else
14607         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14608         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14609         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14610       fi
14611       hardcode_libdir_flag_spec_F77='-R$libdir'
14612       hardcode_shlibpath_var_F77=no
14613       case $host_os in
14614       solaris2.[0-5] | solaris2.[0-5].*) ;;
14615       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14616         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14617       esac
14618       link_all_deplibs_F77=yes
14619       ;;
14620
14621     sunos4*)
14622       if test "x$host_vendor" = xsequent; then
14623         # Use $CC to link under sequent, because it throws in some extra .o
14624         # files that make .init and .fini sections work.
14625         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14626       else
14627         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14628       fi
14629       hardcode_libdir_flag_spec_F77='-L$libdir'
14630       hardcode_direct_F77=yes
14631       hardcode_minus_L_F77=yes
14632       hardcode_shlibpath_var_F77=no
14633       ;;
14634
14635     sysv4)
14636       case $host_vendor in
14637         sni)
14638           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14639           hardcode_direct_F77=yes # is this really true???
14640         ;;
14641         siemens)
14642           ## LD is ld it makes a PLAMLIB
14643           ## CC just makes a GrossModule.
14644           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14645           reload_cmds_F77='$CC -r -o $output$reload_objs'
14646           hardcode_direct_F77=no
14647         ;;
14648         motorola)
14649           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14650           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14651         ;;
14652       esac
14653       runpath_var='LD_RUN_PATH'
14654       hardcode_shlibpath_var_F77=no
14655       ;;
14656
14657     sysv4.3*)
14658       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14659       hardcode_shlibpath_var_F77=no
14660       export_dynamic_flag_spec_F77='-Bexport'
14661       ;;
14662
14663     sysv4*MP*)
14664       if test -d /usr/nec; then
14665         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14666         hardcode_shlibpath_var_F77=no
14667         runpath_var=LD_RUN_PATH
14668         hardcode_runpath_var=yes
14669         ld_shlibs_F77=yes
14670       fi
14671       ;;
14672
14673     sysv4.2uw2*)
14674       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14675       hardcode_direct_F77=yes
14676       hardcode_minus_L_F77=no
14677       hardcode_shlibpath_var_F77=no
14678       hardcode_runpath_var=yes
14679       runpath_var=LD_RUN_PATH
14680       ;;
14681
14682    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
14683       no_undefined_flag_F77='${wl}-z ${wl}text'
14684       if test "$GCC" = yes; then
14685         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14686       else
14687         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14688       fi
14689       runpath_var='LD_RUN_PATH'
14690       hardcode_shlibpath_var_F77=no
14691       ;;
14692
14693     sysv5*)
14694       no_undefined_flag_F77=' -z text'
14695       # $CC -shared without GNU ld will not create a library from C++
14696       # object files and a static libstdc++, better avoid it by now
14697       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14698       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14699                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14700       hardcode_libdir_flag_spec_F77=
14701       hardcode_shlibpath_var_F77=no
14702       runpath_var='LD_RUN_PATH'
14703       ;;
14704
14705     uts4*)
14706       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14707       hardcode_libdir_flag_spec_F77='-L$libdir'
14708       hardcode_shlibpath_var_F77=no
14709       ;;
14710
14711     *)
14712       ld_shlibs_F77=no
14713       ;;
14714     esac
14715   fi
14716
14717 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14718 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
14719 test "$ld_shlibs_F77" = no && can_build_shared=no
14720
14721 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14722 if test "$GCC" = yes; then
14723   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14724 fi
14725
14726 #
14727 # Do we need to explicitly link libc?
14728 #
14729 case "x$archive_cmds_need_lc_F77" in
14730 x|xyes)
14731   # Assume -lc should be added
14732   archive_cmds_need_lc_F77=yes
14733
14734   if test "$enable_shared" = yes && test "$GCC" = yes; then
14735     case $archive_cmds_F77 in
14736     *'~'*)
14737       # FIXME: we may have to deal with multi-command sequences.
14738       ;;
14739     '$CC '*)
14740       # Test whether the compiler implicitly links with -lc since on some
14741       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14742       # to ld, don't add -lc before -lgcc.
14743       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14744 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14745       $rm conftest*
14746       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14747
14748       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14749   (eval $ac_compile) 2>&5
14750   ac_status=$?
14751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14752   (exit $ac_status); } 2>conftest.err; then
14753         soname=conftest
14754         lib=conftest
14755         libobjs=conftest.$ac_objext
14756         deplibs=
14757         wl=$lt_prog_compiler_wl_F77
14758         compiler_flags=-v
14759         linker_flags=-v
14760         verstring=
14761         output_objdir=.
14762         libname=conftest
14763         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14764         allow_undefined_flag_F77=
14765         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14766   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14767   ac_status=$?
14768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14769   (exit $ac_status); }
14770         then
14771           archive_cmds_need_lc_F77=no
14772         else
14773           archive_cmds_need_lc_F77=yes
14774         fi
14775         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14776       else
14777         cat conftest.err 1>&5
14778       fi
14779       $rm conftest*
14780       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14781 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
14782       ;;
14783     esac
14784   fi
14785   ;;
14786 esac
14787
14788 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14789 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14790 library_names_spec=
14791 libname_spec='lib$name'
14792 soname_spec=
14793 shrext_cmds=".so"
14794 postinstall_cmds=
14795 postuninstall_cmds=
14796 finish_cmds=
14797 finish_eval=
14798 shlibpath_var=
14799 shlibpath_overrides_runpath=unknown
14800 version_type=none
14801 dynamic_linker="$host_os ld.so"
14802 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14803 if test "$GCC" = yes; then
14804   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14805   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14806     # if the path contains ";" then we assume it to be the separator
14807     # otherwise default to the standard path separator (i.e. ":") - it is
14808     # assumed that no part of a normal pathname contains ";" but that should
14809     # okay in the real world where ";" in dirpaths is itself problematic.
14810     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14811   else
14812     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14813   fi
14814 else
14815   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14816 fi
14817 need_lib_prefix=unknown
14818 hardcode_into_libs=no
14819
14820 # when you set need_version to no, make sure it does not cause -set_version
14821 # flags to be left without arguments
14822 need_version=unknown
14823
14824 case $host_os in
14825 aix3*)
14826   version_type=linux
14827   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14828   shlibpath_var=LIBPATH
14829
14830   # AIX 3 has no versioning support, so we append a major version to the name.
14831   soname_spec='${libname}${release}${shared_ext}$major'
14832   ;;
14833
14834 aix4* | aix5*)
14835   version_type=linux
14836   need_lib_prefix=no
14837   need_version=no
14838   hardcode_into_libs=yes
14839   if test "$host_cpu" = ia64; then
14840     # AIX 5 supports IA64
14841     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14842     shlibpath_var=LD_LIBRARY_PATH
14843   else
14844     # With GCC up to 2.95.x, collect2 would create an import file
14845     # for dependence libraries.  The import file would start with
14846     # the line `#! .'.  This would cause the generated library to
14847     # depend on `.', always an invalid library.  This was fixed in
14848     # development snapshots of GCC prior to 3.0.
14849     case $host_os in
14850       aix4 | aix4.[01] | aix4.[01].*)
14851       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14852            echo ' yes '
14853            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14854         :
14855       else
14856         can_build_shared=no
14857       fi
14858       ;;
14859     esac
14860     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14861     # soname into executable. Probably we can add versioning support to
14862     # collect2, so additional links can be useful in future.
14863     if test "$aix_use_runtimelinking" = yes; then
14864       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14865       # instead of lib<name>.a to let people know that these are not
14866       # typical AIX shared libraries.
14867       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14868     else
14869       # We preserve .a as extension for shared libraries through AIX4.2
14870       # and later when we are not doing run time linking.
14871       library_names_spec='${libname}${release}.a $libname.a'
14872       soname_spec='${libname}${release}${shared_ext}$major'
14873     fi
14874     shlibpath_var=LIBPATH
14875   fi
14876   ;;
14877
14878 amigaos*)
14879   library_names_spec='$libname.ixlibrary $libname.a'
14880   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14881   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'
14882   ;;
14883
14884 beos*)
14885   library_names_spec='${libname}${shared_ext}'
14886   dynamic_linker="$host_os ld.so"
14887   shlibpath_var=LIBRARY_PATH
14888   ;;
14889
14890 bsdi4*)
14891   version_type=linux
14892   need_version=no
14893   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14894   soname_spec='${libname}${release}${shared_ext}$major'
14895   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14896   shlibpath_var=LD_LIBRARY_PATH
14897   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14898   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14899   # the default ld.so.conf also contains /usr/contrib/lib and
14900   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14901   # libtool to hard-code these into programs
14902   ;;
14903
14904 cygwin* | mingw* | pw32*)
14905   version_type=windows
14906   shrext_cmds=".dll"
14907   need_version=no
14908   need_lib_prefix=no
14909
14910   case $GCC,$host_os in
14911   yes,cygwin* | yes,mingw* | yes,pw32*)
14912     library_names_spec='$libname.dll.a'
14913     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14914     postinstall_cmds='base_file=`basename \${file}`~
14915       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14916       dldir=$destdir/`dirname \$dlpath`~
14917       test -d \$dldir || mkdir -p \$dldir~
14918       $install_prog $dir/$dlname \$dldir/$dlname'
14919     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14920       dlpath=$dir/\$dldll~
14921        $rm \$dlpath'
14922     shlibpath_overrides_runpath=yes
14923
14924     case $host_os in
14925     cygwin*)
14926       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14927       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14928       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14929       ;;
14930     mingw*)
14931       # MinGW DLLs use traditional 'lib' prefix
14932       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14933       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14934       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14935         # It is most probably a Windows format PATH printed by
14936         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14937         # path with ; separators, and with drive letters. We can handle the
14938         # drive letters (cygwin fileutils understands them), so leave them,
14939         # especially as we might pass files found there to a mingw objdump,
14940         # which wouldn't understand a cygwinified path. Ahh.
14941         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14942       else
14943         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14944       fi
14945       ;;
14946     pw32*)
14947       # pw32 DLLs use 'pw' prefix rather than 'lib'
14948       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14949       ;;
14950     esac
14951     ;;
14952
14953   *)
14954     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14955     ;;
14956   esac
14957   dynamic_linker='Win32 ld.exe'
14958   # FIXME: first we should search . and the directory the executable is in
14959   shlibpath_var=PATH
14960   ;;
14961
14962 darwin* | rhapsody*)
14963   dynamic_linker="$host_os dyld"
14964   version_type=darwin
14965   need_lib_prefix=no
14966   need_version=no
14967   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14968   soname_spec='${libname}${release}${major}$shared_ext'
14969   shlibpath_overrides_runpath=yes
14970   shlibpath_var=DYLD_LIBRARY_PATH
14971   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
14972   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14973   if test "$GCC" = yes; then
14974     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
14975   else
14976     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14977   fi
14978   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14979   ;;
14980
14981 dgux*)
14982   version_type=linux
14983   need_lib_prefix=no
14984   need_version=no
14985   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14986   soname_spec='${libname}${release}${shared_ext}$major'
14987   shlibpath_var=LD_LIBRARY_PATH
14988   ;;
14989
14990 freebsd1*)
14991   dynamic_linker=no
14992   ;;
14993
14994 kfreebsd*-gnu)
14995   version_type=linux
14996   need_lib_prefix=no
14997   need_version=no
14998   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14999   soname_spec='${libname}${release}${shared_ext}$major'
15000   shlibpath_var=LD_LIBRARY_PATH
15001   shlibpath_overrides_runpath=no
15002   hardcode_into_libs=yes
15003   dynamic_linker='GNU ld.so'
15004   ;;
15005
15006 freebsd*)
15007   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
15008   version_type=freebsd-$objformat
15009   case $version_type in
15010     freebsd-elf*)
15011       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15012       need_version=no
15013       need_lib_prefix=no
15014       ;;
15015     freebsd-*)
15016       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15017       need_version=yes
15018       ;;
15019   esac
15020   shlibpath_var=LD_LIBRARY_PATH
15021   case $host_os in
15022   freebsd2*)
15023     shlibpath_overrides_runpath=yes
15024     ;;
15025   freebsd3.01* | freebsdelf3.01*)
15026     shlibpath_overrides_runpath=yes
15027     hardcode_into_libs=yes
15028     ;;
15029   *) # from 3.2 on
15030     shlibpath_overrides_runpath=no
15031     hardcode_into_libs=yes
15032     ;;
15033   esac
15034   ;;
15035
15036 gnu*)
15037   version_type=linux
15038   need_lib_prefix=no
15039   need_version=no
15040   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15041   soname_spec='${libname}${release}${shared_ext}$major'
15042   shlibpath_var=LD_LIBRARY_PATH
15043   hardcode_into_libs=yes
15044   ;;
15045
15046 hpux9* | hpux10* | hpux11*)
15047   # Give a soname corresponding to the major version so that dld.sl refuses to
15048   # link against other versions.
15049   version_type=sunos
15050   need_lib_prefix=no
15051   need_version=no
15052   case "$host_cpu" in
15053   ia64*)
15054     shrext_cmds='.so'
15055     hardcode_into_libs=yes
15056     dynamic_linker="$host_os dld.so"
15057     shlibpath_var=LD_LIBRARY_PATH
15058     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15059     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15060     soname_spec='${libname}${release}${shared_ext}$major'
15061     if test "X$HPUX_IA64_MODE" = X32; then
15062       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15063     else
15064       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15065     fi
15066     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15067     ;;
15068    hppa*64*)
15069      shrext_cmds='.sl'
15070      hardcode_into_libs=yes
15071      dynamic_linker="$host_os dld.sl"
15072      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15073      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15074      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15075      soname_spec='${libname}${release}${shared_ext}$major'
15076      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15077      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15078      ;;
15079    *)
15080     shrext_cmds='.sl'
15081     dynamic_linker="$host_os dld.sl"
15082     shlibpath_var=SHLIB_PATH
15083     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15084     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15085     soname_spec='${libname}${release}${shared_ext}$major'
15086     ;;
15087   esac
15088   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15089   postinstall_cmds='chmod 555 $lib'
15090   ;;
15091
15092 irix5* | irix6* | nonstopux*)
15093   case $host_os in
15094     nonstopux*) version_type=nonstopux ;;
15095     *)
15096         if test "$lt_cv_prog_gnu_ld" = yes; then
15097                 version_type=linux
15098         else
15099                 version_type=irix
15100         fi ;;
15101   esac
15102   need_lib_prefix=no
15103   need_version=no
15104   soname_spec='${libname}${release}${shared_ext}$major'
15105   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15106   case $host_os in
15107   irix5* | nonstopux*)
15108     libsuff= shlibsuff=
15109     ;;
15110   *)
15111     case $LD in # libtool.m4 will add one of these switches to LD
15112     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15113       libsuff= shlibsuff= libmagic=32-bit;;
15114     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15115       libsuff=32 shlibsuff=N32 libmagic=N32;;
15116     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15117       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15118     *) libsuff= shlibsuff= libmagic=never-match;;
15119     esac
15120     ;;
15121   esac
15122   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15123   shlibpath_overrides_runpath=no
15124   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15125   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15126   hardcode_into_libs=yes
15127   ;;
15128
15129 # No shared lib support for Linux oldld, aout, or coff.
15130 linux*oldld* | linux*aout* | linux*coff*)
15131   dynamic_linker=no
15132   ;;
15133
15134 # This must be Linux ELF.
15135 linux*)
15136   version_type=linux
15137   need_lib_prefix=no
15138   need_version=no
15139   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15140   soname_spec='${libname}${release}${shared_ext}$major'
15141   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15142   shlibpath_var=LD_LIBRARY_PATH
15143   shlibpath_overrides_runpath=no
15144   # This implies no fast_install, which is unacceptable.
15145   # Some rework will be needed to allow for fast_install
15146   # before this can be enabled.
15147   hardcode_into_libs=yes
15148
15149   # find out which ABI we are using
15150   libsuff=
15151   case "$host_cpu" in
15152   x86_64*|s390x*|powerpc64*)
15153     echo '#line 15153 "configure"' > conftest.$ac_ext
15154     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15155   (eval $ac_compile) 2>&5
15156   ac_status=$?
15157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15158   (exit $ac_status); }; then
15159       case `/usr/bin/file conftest.$ac_objext` in
15160       *64-bit*)
15161         libsuff=64
15162         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
15163         ;;
15164       esac
15165     fi
15166     rm -rf conftest*
15167     ;;
15168   esac
15169
15170   # Append ld.so.conf contents to the search path
15171   if test -f /etc/ld.so.conf; then
15172     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
15173     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
15174   fi
15175
15176   # We used to test for /lib/ld.so.1 and disable shared libraries on
15177   # powerpc, because MkLinux only supported shared libraries with the
15178   # GNU dynamic linker.  Since this was broken with cross compilers,
15179   # most powerpc-linux boxes support dynamic linking these days and
15180   # people can always --disable-shared, the test was removed, and we
15181   # assume the GNU/Linux dynamic linker is in use.
15182   dynamic_linker='GNU/Linux ld.so'
15183   ;;
15184
15185 knetbsd*-gnu)
15186   version_type=linux
15187   need_lib_prefix=no
15188   need_version=no
15189   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15190   soname_spec='${libname}${release}${shared_ext}$major'
15191   shlibpath_var=LD_LIBRARY_PATH
15192   shlibpath_overrides_runpath=no
15193   hardcode_into_libs=yes
15194   dynamic_linker='GNU ld.so'
15195   ;;
15196
15197 netbsd*)
15198   version_type=sunos
15199   need_lib_prefix=no
15200   need_version=no
15201   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15202     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15203     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15204     dynamic_linker='NetBSD (a.out) ld.so'
15205   else
15206     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15207     soname_spec='${libname}${release}${shared_ext}$major'
15208     dynamic_linker='NetBSD ld.elf_so'
15209   fi
15210   shlibpath_var=LD_LIBRARY_PATH
15211   shlibpath_overrides_runpath=yes
15212   hardcode_into_libs=yes
15213   ;;
15214
15215 newsos6)
15216   version_type=linux
15217   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15218   shlibpath_var=LD_LIBRARY_PATH
15219   shlibpath_overrides_runpath=yes
15220   ;;
15221
15222 nto-qnx*)
15223   version_type=linux
15224   need_lib_prefix=no
15225   need_version=no
15226   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15227   soname_spec='${libname}${release}${shared_ext}$major'
15228   shlibpath_var=LD_LIBRARY_PATH
15229   shlibpath_overrides_runpath=yes
15230   ;;
15231
15232 openbsd*)
15233   version_type=sunos
15234   need_lib_prefix=no
15235   need_version=yes
15236   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15237   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15238   shlibpath_var=LD_LIBRARY_PATH
15239   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15240     case $host_os in
15241       openbsd2.[89] | openbsd2.[89].*)
15242         shlibpath_overrides_runpath=no
15243         ;;
15244       *)
15245         shlibpath_overrides_runpath=yes
15246         ;;
15247       esac
15248   else
15249     shlibpath_overrides_runpath=yes
15250   fi
15251   ;;
15252
15253 os2*)
15254   libname_spec='$name'
15255   shrext_cmds=".dll"
15256   need_lib_prefix=no
15257   library_names_spec='$libname${shared_ext} $libname.a'
15258   dynamic_linker='OS/2 ld.exe'
15259   shlibpath_var=LIBPATH
15260   ;;
15261
15262 osf3* | osf4* | osf5*)
15263   version_type=osf
15264   need_lib_prefix=no
15265   need_version=no
15266   soname_spec='${libname}${release}${shared_ext}$major'
15267   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15268   shlibpath_var=LD_LIBRARY_PATH
15269   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15270   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15271   ;;
15272
15273 sco3.2v5*)
15274   version_type=osf
15275   soname_spec='${libname}${release}${shared_ext}$major'
15276   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15277   shlibpath_var=LD_LIBRARY_PATH
15278   ;;
15279
15280 solaris*)
15281   version_type=linux
15282   need_lib_prefix=no
15283   need_version=no
15284   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15285   soname_spec='${libname}${release}${shared_ext}$major'
15286   shlibpath_var=LD_LIBRARY_PATH
15287   shlibpath_overrides_runpath=yes
15288   hardcode_into_libs=yes
15289   # ldd complains unless libraries are executable
15290   postinstall_cmds='chmod +x $lib'
15291   ;;
15292
15293 sunos4*)
15294   version_type=sunos
15295   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15296   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15297   shlibpath_var=LD_LIBRARY_PATH
15298   shlibpath_overrides_runpath=yes
15299   if test "$with_gnu_ld" = yes; then
15300     need_lib_prefix=no
15301   fi
15302   need_version=yes
15303   ;;
15304
15305 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15306   version_type=linux
15307   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15308   soname_spec='${libname}${release}${shared_ext}$major'
15309   shlibpath_var=LD_LIBRARY_PATH
15310   case $host_vendor in
15311     sni)
15312       shlibpath_overrides_runpath=no
15313       need_lib_prefix=no
15314       export_dynamic_flag_spec='${wl}-Blargedynsym'
15315       runpath_var=LD_RUN_PATH
15316       ;;
15317     siemens)
15318       need_lib_prefix=no
15319       ;;
15320     motorola)
15321       need_lib_prefix=no
15322       need_version=no
15323       shlibpath_overrides_runpath=no
15324       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15325       ;;
15326   esac
15327   ;;
15328
15329 sysv4*MP*)
15330   if test -d /usr/nec ;then
15331     version_type=linux
15332     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15333     soname_spec='$libname${shared_ext}.$major'
15334     shlibpath_var=LD_LIBRARY_PATH
15335   fi
15336   ;;
15337
15338 uts4*)
15339   version_type=linux
15340   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15341   soname_spec='${libname}${release}${shared_ext}$major'
15342   shlibpath_var=LD_LIBRARY_PATH
15343   ;;
15344
15345 *)
15346   dynamic_linker=no
15347   ;;
15348 esac
15349 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15350 echo "${ECHO_T}$dynamic_linker" >&6; }
15351 test "$dynamic_linker" = no && can_build_shared=no
15352
15353 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15354 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15355 hardcode_action_F77=
15356 if test -n "$hardcode_libdir_flag_spec_F77" || \
15357    test -n "$runpath_var F77" || \
15358    test "X$hardcode_automatic_F77"="Xyes" ; then
15359
15360   # We can hardcode non-existant directories.
15361   if test "$hardcode_direct_F77" != no &&
15362      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15363      # have to relink, otherwise we might link with an installed library
15364      # when we should be linking with a yet-to-be-installed one
15365      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15366      test "$hardcode_minus_L_F77" != no; then
15367     # Linking always hardcodes the temporary library directory.
15368     hardcode_action_F77=relink
15369   else
15370     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15371     hardcode_action_F77=immediate
15372   fi
15373 else
15374   # We cannot hardcode anything, or else we can only hardcode existing
15375   # directories.
15376   hardcode_action_F77=unsupported
15377 fi
15378 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15379 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15380
15381 if test "$hardcode_action_F77" = relink; then
15382   # Fast installation is not supported
15383   enable_fast_install=no
15384 elif test "$shlibpath_overrides_runpath" = yes ||
15385      test "$enable_shared" = no; then
15386   # Fast installation is not necessary
15387   enable_fast_install=needless
15388 fi
15389
15390 striplib=
15391 old_striplib=
15392 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15393 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
15394 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15395   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15396   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15397   { echo "$as_me:$LINENO: result: yes" >&5
15398 echo "${ECHO_T}yes" >&6; }
15399 else
15400 # FIXME - insert some real tests, host_os isn't really good enough
15401   case $host_os in
15402    darwin*)
15403        if test -n "$STRIP" ; then
15404          striplib="$STRIP -x"
15405          { echo "$as_me:$LINENO: result: yes" >&5
15406 echo "${ECHO_T}yes" >&6; }
15407        else
15408   { echo "$as_me:$LINENO: result: no" >&5
15409 echo "${ECHO_T}no" >&6; }
15410 fi
15411        ;;
15412    *)
15413   { echo "$as_me:$LINENO: result: no" >&5
15414 echo "${ECHO_T}no" >&6; }
15415     ;;
15416   esac
15417 fi
15418
15419
15420
15421 # The else clause should only fire when bootstrapping the
15422 # libtool distribution, otherwise you forgot to ship ltmain.sh
15423 # with your package, and you will get complaints that there are
15424 # no rules to generate ltmain.sh.
15425 if test -f "$ltmain"; then
15426   # See if we are running on zsh, and set the options which allow our commands through
15427   # without removal of \ escapes.
15428   if test -n "${ZSH_VERSION+set}" ; then
15429     setopt NO_GLOB_SUBST
15430   fi
15431   # Now quote all the things that may contain metacharacters while being
15432   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15433   # variables and quote the copies for generation of the libtool script.
15434   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15435     SED SHELL STRIP \
15436     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15437     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15438     deplibs_check_method reload_flag reload_cmds need_locks \
15439     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15440     lt_cv_sys_global_symbol_to_c_name_address \
15441     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15442     old_postinstall_cmds old_postuninstall_cmds \
15443     compiler_F77 \
15444     CC_F77 \
15445     LD_F77 \
15446     lt_prog_compiler_wl_F77 \
15447     lt_prog_compiler_pic_F77 \
15448     lt_prog_compiler_static_F77 \
15449     lt_prog_compiler_no_builtin_flag_F77 \
15450     export_dynamic_flag_spec_F77 \
15451     thread_safe_flag_spec_F77 \
15452     whole_archive_flag_spec_F77 \
15453     enable_shared_with_static_runtimes_F77 \
15454     old_archive_cmds_F77 \
15455     old_archive_from_new_cmds_F77 \
15456     predep_objects_F77 \
15457     postdep_objects_F77 \
15458     predeps_F77 \
15459     postdeps_F77 \
15460     compiler_lib_search_path_F77 \
15461     archive_cmds_F77 \
15462     archive_expsym_cmds_F77 \
15463     postinstall_cmds_F77 \
15464     postuninstall_cmds_F77 \
15465     old_archive_from_expsyms_cmds_F77 \
15466     allow_undefined_flag_F77 \
15467     no_undefined_flag_F77 \
15468     export_symbols_cmds_F77 \
15469     hardcode_libdir_flag_spec_F77 \
15470     hardcode_libdir_flag_spec_ld_F77 \
15471     hardcode_libdir_separator_F77 \
15472     hardcode_automatic_F77 \
15473     module_cmds_F77 \
15474     module_expsym_cmds_F77 \
15475     lt_cv_prog_compiler_c_o_F77 \
15476     exclude_expsyms_F77 \
15477     include_expsyms_F77; do
15478
15479     case $var in
15480     old_archive_cmds_F77 | \
15481     old_archive_from_new_cmds_F77 | \
15482     archive_cmds_F77 | \
15483     archive_expsym_cmds_F77 | \
15484     module_cmds_F77 | \
15485     module_expsym_cmds_F77 | \
15486     old_archive_from_expsyms_cmds_F77 | \
15487     export_symbols_cmds_F77 | \
15488     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15489     postinstall_cmds | postuninstall_cmds | \
15490     old_postinstall_cmds | old_postuninstall_cmds | \
15491     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15492       # Double-quote double-evaled strings.
15493       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15494       ;;
15495     *)
15496       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15497       ;;
15498     esac
15499   done
15500
15501   case $lt_echo in
15502   *'\$0 --fallback-echo"')
15503     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15504     ;;
15505   esac
15506
15507 cfgfile="$ofile"
15508
15509   cat <<__EOF__ >> "$cfgfile"
15510 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15511
15512 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15513
15514 # Shell to use when invoking shell scripts.
15515 SHELL=$lt_SHELL
15516
15517 # Whether or not to build shared libraries.
15518 build_libtool_libs=$enable_shared
15519
15520 # Whether or not to build static libraries.
15521 build_old_libs=$enable_static
15522
15523 # Whether or not to add -lc for building shared libraries.
15524 build_libtool_need_lc=$archive_cmds_need_lc_F77
15525
15526 # Whether or not to disallow shared libs when runtime libs are static
15527 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15528
15529 # Whether or not to optimize for fast installation.
15530 fast_install=$enable_fast_install
15531
15532 # The host system.
15533 host_alias=$host_alias
15534 host=$host
15535
15536 # An echo program that does not interpret backslashes.
15537 echo=$lt_echo
15538
15539 # The archiver.
15540 AR=$lt_AR
15541 AR_FLAGS=$lt_AR_FLAGS
15542
15543 # A C compiler.
15544 LTCC=$lt_LTCC
15545
15546 # A language-specific compiler.
15547 CC=$lt_compiler_F77
15548
15549 # Is the compiler the GNU C compiler?
15550 with_gcc=$GCC_F77
15551
15552 # An ERE matcher.
15553 EGREP=$lt_EGREP
15554
15555 # The linker used to build libraries.
15556 LD=$lt_LD_F77
15557
15558 # Whether we need hard or soft links.
15559 LN_S=$lt_LN_S
15560
15561 # A BSD-compatible nm program.
15562 NM=$lt_NM
15563
15564 # A symbol stripping program
15565 STRIP=$lt_STRIP
15566
15567 # Used to examine libraries when file_magic_cmd begins "file"
15568 MAGIC_CMD=$MAGIC_CMD
15569
15570 # Used on cygwin: DLL creation program.
15571 DLLTOOL="$DLLTOOL"
15572
15573 # Used on cygwin: object dumper.
15574 OBJDUMP="$OBJDUMP"
15575
15576 # Used on cygwin: assembler.
15577 AS="$AS"
15578
15579 # The name of the directory that contains temporary libtool files.
15580 objdir=$objdir
15581
15582 # How to create reloadable object files.
15583 reload_flag=$lt_reload_flag
15584 reload_cmds=$lt_reload_cmds
15585
15586 # How to pass a linker flag through the compiler.
15587 wl=$lt_lt_prog_compiler_wl_F77
15588
15589 # Object file suffix (normally "o").
15590 objext="$ac_objext"
15591
15592 # Old archive suffix (normally "a").
15593 libext="$libext"
15594
15595 # Shared library suffix (normally ".so").
15596 shrext_cmds='$shrext_cmds'
15597
15598 # Executable file suffix (normally "").
15599 exeext="$exeext"
15600
15601 # Additional compiler flags for building library objects.
15602 pic_flag=$lt_lt_prog_compiler_pic_F77
15603 pic_mode=$pic_mode
15604
15605 # What is the maximum length of a command?
15606 max_cmd_len=$lt_cv_sys_max_cmd_len
15607
15608 # Does compiler simultaneously support -c and -o options?
15609 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15610
15611 # Must we lock files when doing compilation ?
15612 need_locks=$lt_need_locks
15613
15614 # Do we need the lib prefix for modules?
15615 need_lib_prefix=$need_lib_prefix
15616
15617 # Do we need a version for libraries?
15618 need_version=$need_version
15619
15620 # Whether dlopen is supported.
15621 dlopen_support=$enable_dlopen
15622
15623 # Whether dlopen of programs is supported.
15624 dlopen_self=$enable_dlopen_self
15625
15626 # Whether dlopen of statically linked programs is supported.
15627 dlopen_self_static=$enable_dlopen_self_static
15628
15629 # Compiler flag to prevent dynamic linking.
15630 link_static_flag=$lt_lt_prog_compiler_static_F77
15631
15632 # Compiler flag to turn off builtin functions.
15633 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15634
15635 # Compiler flag to allow reflexive dlopens.
15636 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15637
15638 # Compiler flag to generate shared objects directly from archives.
15639 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15640
15641 # Compiler flag to generate thread-safe objects.
15642 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15643
15644 # Library versioning type.
15645 version_type=$version_type
15646
15647 # Format of library name prefix.
15648 libname_spec=$lt_libname_spec
15649
15650 # List of archive names.  First name is the real one, the rest are links.
15651 # The last name is the one that the linker finds with -lNAME.
15652 library_names_spec=$lt_library_names_spec
15653
15654 # The coded name of the library, if different from the real name.
15655 soname_spec=$lt_soname_spec
15656
15657 # Commands used to build and install an old-style archive.
15658 RANLIB=$lt_RANLIB
15659 old_archive_cmds=$lt_old_archive_cmds_F77
15660 old_postinstall_cmds=$lt_old_postinstall_cmds
15661 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15662
15663 # Create an old-style archive from a shared archive.
15664 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15665
15666 # Create a temporary old-style archive to link instead of a shared archive.
15667 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15668
15669 # Commands used to build and install a shared archive.
15670 archive_cmds=$lt_archive_cmds_F77
15671 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15672 postinstall_cmds=$lt_postinstall_cmds
15673 postuninstall_cmds=$lt_postuninstall_cmds
15674
15675 # Commands used to build a loadable module (assumed same as above if empty)
15676 module_cmds=$lt_module_cmds_F77
15677 module_expsym_cmds=$lt_module_expsym_cmds_F77
15678
15679 # Commands to strip libraries.
15680 old_striplib=$lt_old_striplib
15681 striplib=$lt_striplib
15682
15683 # Dependencies to place before the objects being linked to create a
15684 # shared library.
15685 predep_objects=$lt_predep_objects_F77
15686
15687 # Dependencies to place after the objects being linked to create a
15688 # shared library.
15689 postdep_objects=$lt_postdep_objects_F77
15690
15691 # Dependencies to place before the objects being linked to create a
15692 # shared library.
15693 predeps=$lt_predeps_F77
15694
15695 # Dependencies to place after the objects being linked to create a
15696 # shared library.
15697 postdeps=$lt_postdeps_F77
15698
15699 # The library search path used internally by the compiler when linking
15700 # a shared library.
15701 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15702
15703 # Method to check whether dependent libraries are shared objects.
15704 deplibs_check_method=$lt_deplibs_check_method
15705
15706 # Command to use when deplibs_check_method == file_magic.
15707 file_magic_cmd=$lt_file_magic_cmd
15708
15709 # Flag that allows shared libraries with undefined symbols to be built.
15710 allow_undefined_flag=$lt_allow_undefined_flag_F77
15711
15712 # Flag that forces no undefined symbols.
15713 no_undefined_flag=$lt_no_undefined_flag_F77
15714
15715 # Commands used to finish a libtool library installation in a directory.
15716 finish_cmds=$lt_finish_cmds
15717
15718 # Same as above, but a single script fragment to be evaled but not shown.
15719 finish_eval=$lt_finish_eval
15720
15721 # Take the output of nm and produce a listing of raw symbols and C names.
15722 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15723
15724 # Transform the output of nm in a proper C declaration
15725 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15726
15727 # Transform the output of nm in a C name address pair
15728 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15729
15730 # This is the shared library runtime path variable.
15731 runpath_var=$runpath_var
15732
15733 # This is the shared library path variable.
15734 shlibpath_var=$shlibpath_var
15735
15736 # Is shlibpath searched before the hard-coded library search path?
15737 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15738
15739 # How to hardcode a shared library path into an executable.
15740 hardcode_action=$hardcode_action_F77
15741
15742 # Whether we should hardcode library paths into libraries.
15743 hardcode_into_libs=$hardcode_into_libs
15744
15745 # Flag to hardcode \$libdir into a binary during linking.
15746 # This must work even if \$libdir does not exist.
15747 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15748
15749 # If ld is used when linking, flag to hardcode \$libdir into
15750 # a binary during linking. This must work even if \$libdir does
15751 # not exist.
15752 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15753
15754 # Whether we need a single -rpath flag with a separated argument.
15755 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15756
15757 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15758 # resulting binary.
15759 hardcode_direct=$hardcode_direct_F77
15760
15761 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15762 # resulting binary.
15763 hardcode_minus_L=$hardcode_minus_L_F77
15764
15765 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15766 # the resulting binary.
15767 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15768
15769 # Set to yes if building a shared library automatically hardcodes DIR into the library
15770 # and all subsequent libraries and executables linked against it.
15771 hardcode_automatic=$hardcode_automatic_F77
15772
15773 # Variables whose values should be saved in libtool wrapper scripts and
15774 # restored at relink time.
15775 variables_saved_for_relink="$variables_saved_for_relink"
15776
15777 # Whether libtool must link a program against all its dependency libraries.
15778 link_all_deplibs=$link_all_deplibs_F77
15779
15780 # Compile-time system search path for libraries
15781 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15782
15783 # Run-time system search path for libraries
15784 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15785
15786 # Fix the shell variable \$srcfile for the compiler.
15787 fix_srcfile_path="$fix_srcfile_path_F77"
15788
15789 # Set to yes if exported symbols are required.
15790 always_export_symbols=$always_export_symbols_F77
15791
15792 # The commands to list exported symbols.
15793 export_symbols_cmds=$lt_export_symbols_cmds_F77
15794
15795 # The commands to extract the exported symbol list from a shared archive.
15796 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15797
15798 # Symbols that should not be listed in the preloaded symbols.
15799 exclude_expsyms=$lt_exclude_expsyms_F77
15800
15801 # Symbols that must always be exported.
15802 include_expsyms=$lt_include_expsyms_F77
15803
15804 # ### END LIBTOOL TAG CONFIG: $tagname
15805
15806 __EOF__
15807
15808
15809 else
15810   # If there is no Makefile yet, we rely on a make rule to execute
15811   # `config.status --recheck' to rerun these tests and create the
15812   # libtool script then.
15813   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15814   if test -f "$ltmain_in"; then
15815     test -f Makefile && make "$ltmain"
15816   fi
15817 fi
15818
15819
15820 ac_ext=c
15821 ac_cpp='$CPP $CPPFLAGS'
15822 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15823 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15824 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15825
15826 CC="$lt_save_CC"
15827
15828         else
15829           tagname=""
15830         fi
15831         ;;
15832
15833       GCJ)
15834         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15835
15836
15837 # Source file extension for Java test sources.
15838 ac_ext=java
15839
15840 # Object file extension for compiled Java test sources.
15841 objext=o
15842 objext_GCJ=$objext
15843
15844 # Code to be used in simple compile tests
15845 lt_simple_compile_test_code="class foo {}\n"
15846
15847 # Code to be used in simple link tests
15848 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15849
15850 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15851
15852 # If no C compiler was specified, use CC.
15853 LTCC=${LTCC-"$CC"}
15854
15855 # Allow CC to be a program name with arguments.
15856 compiler=$CC
15857
15858
15859 # Allow CC to be a program name with arguments.
15860 lt_save_CC="$CC"
15861 CC=${GCJ-"gcj"}
15862 compiler=$CC
15863 compiler_GCJ=$CC
15864
15865 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15866 archive_cmds_need_lc_GCJ=no
15867
15868 ## CAVEAT EMPTOR:
15869 ## There is no encapsulation within the following macros, do not change
15870 ## the running order or otherwise move them around unless you know exactly
15871 ## what you are doing...
15872
15873 lt_prog_compiler_no_builtin_flag_GCJ=
15874
15875 if test "$GCC" = yes; then
15876   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15877
15878
15879 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15880 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
15881 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15882   echo $ECHO_N "(cached) $ECHO_C" >&6
15883 else
15884   lt_cv_prog_compiler_rtti_exceptions=no
15885   ac_outfile=conftest.$ac_objext
15886    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15887    lt_compiler_flag="-fno-rtti -fno-exceptions"
15888    # Insert the option either (1) after the last *FLAGS variable, or
15889    # (2) before a word containing "conftest.", or (3) at the end.
15890    # Note that $ac_compile itself does not contain backslashes and begins
15891    # with a dollar sign (not a hyphen), so the echo should work correctly.
15892    # The option is referenced via a variable to avoid confusing sed.
15893    lt_compile=`echo "$ac_compile" | $SED \
15894    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15895    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15896    -e 's:$: $lt_compiler_flag:'`
15897    (eval echo "\"\$as_me:15897: $lt_compile\"" >&5)
15898    (eval "$lt_compile" 2>conftest.err)
15899    ac_status=$?
15900    cat conftest.err >&5
15901    echo "$as_me:15901: \$? = $ac_status" >&5
15902    if (exit $ac_status) && test -s "$ac_outfile"; then
15903      # The compiler can only warn and ignore the option if not recognized
15904      # So say no if there are warnings
15905      if test ! -s conftest.err; then
15906        lt_cv_prog_compiler_rtti_exceptions=yes
15907      fi
15908    fi
15909    $rm conftest*
15910
15911 fi
15912 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15913 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15914
15915 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15916     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15917 else
15918     :
15919 fi
15920
15921 fi
15922
15923 lt_prog_compiler_wl_GCJ=
15924 lt_prog_compiler_pic_GCJ=
15925 lt_prog_compiler_static_GCJ=
15926
15927 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15928 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
15929
15930   if test "$GCC" = yes; then
15931     lt_prog_compiler_wl_GCJ='-Wl,'
15932     lt_prog_compiler_static_GCJ='-static'
15933
15934     case $host_os in
15935       aix*)
15936       # All AIX code is PIC.
15937       if test "$host_cpu" = ia64; then
15938         # AIX 5 now supports IA64 processor
15939         lt_prog_compiler_static_GCJ='-Bstatic'
15940       fi
15941       ;;
15942
15943     amigaos*)
15944       # FIXME: we need at least 68020 code to build shared libraries, but
15945       # adding the `-m68020' flag to GCC prevents building anything better,
15946       # like `-m68040'.
15947       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15948       ;;
15949
15950     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15951       # PIC is the default for these OSes.
15952       ;;
15953
15954     mingw* | pw32* | os2*)
15955       # This hack is so that the source file can tell whether it is being
15956       # built for inclusion in a dll (and should export symbols for example).
15957       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15958       ;;
15959
15960     darwin* | rhapsody*)
15961       # PIC is the default on this platform
15962       # Common symbols not allowed in MH_DYLIB files
15963       lt_prog_compiler_pic_GCJ='-fno-common'
15964       ;;
15965
15966     msdosdjgpp*)
15967       # Just because we use GCC doesn't mean we suddenly get shared libraries
15968       # on systems that don't support them.
15969       lt_prog_compiler_can_build_shared_GCJ=no
15970       enable_shared=no
15971       ;;
15972
15973     sysv4*MP*)
15974       if test -d /usr/nec; then
15975         lt_prog_compiler_pic_GCJ=-Kconform_pic
15976       fi
15977       ;;
15978
15979     hpux*)
15980       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15981       # not for PA HP-UX.
15982       case "$host_cpu" in
15983       hppa*64*|ia64*)
15984         # +Z the default
15985         ;;
15986       *)
15987         lt_prog_compiler_pic_GCJ='-fPIC'
15988         ;;
15989       esac
15990       ;;
15991
15992     *)
15993       lt_prog_compiler_pic_GCJ='-fPIC'
15994       ;;
15995     esac
15996   else
15997     # PORTME Check for flag to pass linker flags through the system compiler.
15998     case $host_os in
15999     aix*)
16000       lt_prog_compiler_wl_GCJ='-Wl,'
16001       if test "$host_cpu" = ia64; then
16002         # AIX 5 now supports IA64 processor
16003         lt_prog_compiler_static_GCJ='-Bstatic'
16004       else
16005         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16006       fi
16007       ;;
16008
16009     mingw* | pw32* | os2*)
16010       # This hack is so that the source file can tell whether it is being
16011       # built for inclusion in a dll (and should export symbols for example).
16012       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16013       ;;
16014
16015     hpux9* | hpux10* | hpux11*)
16016       lt_prog_compiler_wl_GCJ='-Wl,'
16017       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16018       # not for PA HP-UX.
16019       case "$host_cpu" in
16020       hppa*64*|ia64*)
16021         # +Z the default
16022         ;;
16023       *)
16024         lt_prog_compiler_pic_GCJ='+Z'
16025         ;;
16026       esac
16027       # Is there a better lt_prog_compiler_static that works with the bundled CC?
16028       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16029       ;;
16030
16031     irix5* | irix6* | nonstopux*)
16032       lt_prog_compiler_wl_GCJ='-Wl,'
16033       # PIC (with -KPIC) is the default.
16034       lt_prog_compiler_static_GCJ='-non_shared'
16035       ;;
16036
16037     newsos6)
16038       lt_prog_compiler_pic_GCJ='-KPIC'
16039       lt_prog_compiler_static_GCJ='-Bstatic'
16040       ;;
16041
16042     linux*)
16043       case $CC in
16044       icc* | ecc*)
16045         lt_prog_compiler_wl_GCJ='-Wl,'
16046         lt_prog_compiler_pic_GCJ='-KPIC'
16047         lt_prog_compiler_static_GCJ='-static'
16048         ;;
16049       ccc*)
16050         lt_prog_compiler_wl_GCJ='-Wl,'
16051         # All Alpha code is PIC.
16052         lt_prog_compiler_static_GCJ='-non_shared'
16053         ;;
16054       esac
16055       ;;
16056
16057     osf3* | osf4* | osf5*)
16058       lt_prog_compiler_wl_GCJ='-Wl,'
16059       # All OSF/1 code is PIC.
16060       lt_prog_compiler_static_GCJ='-non_shared'
16061       ;;
16062
16063     sco3.2v5*)
16064       lt_prog_compiler_pic_GCJ='-Kpic'
16065       lt_prog_compiler_static_GCJ='-dn'
16066       ;;
16067
16068     solaris*)
16069       lt_prog_compiler_wl_GCJ='-Wl,'
16070       lt_prog_compiler_pic_GCJ='-KPIC'
16071       lt_prog_compiler_static_GCJ='-Bstatic'
16072       ;;
16073
16074     sunos4*)
16075       lt_prog_compiler_wl_GCJ='-Qoption ld '
16076       lt_prog_compiler_pic_GCJ='-PIC'
16077       lt_prog_compiler_static_GCJ='-Bstatic'
16078       ;;
16079
16080     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16081       lt_prog_compiler_wl_GCJ='-Wl,'
16082       lt_prog_compiler_pic_GCJ='-KPIC'
16083       lt_prog_compiler_static_GCJ='-Bstatic'
16084       ;;
16085
16086     sysv4*MP*)
16087       if test -d /usr/nec ;then
16088         lt_prog_compiler_pic_GCJ='-Kconform_pic'
16089         lt_prog_compiler_static_GCJ='-Bstatic'
16090       fi
16091       ;;
16092
16093     uts4*)
16094       lt_prog_compiler_pic_GCJ='-pic'
16095       lt_prog_compiler_static_GCJ='-Bstatic'
16096       ;;
16097
16098     *)
16099       lt_prog_compiler_can_build_shared_GCJ=no
16100       ;;
16101     esac
16102   fi
16103
16104 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16105 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16106
16107 #
16108 # Check to make sure the PIC flag actually works.
16109 #
16110 if test -n "$lt_prog_compiler_pic_GCJ"; then
16111
16112 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16113 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16114 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16115   echo $ECHO_N "(cached) $ECHO_C" >&6
16116 else
16117   lt_prog_compiler_pic_works_GCJ=no
16118   ac_outfile=conftest.$ac_objext
16119    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16120    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16121    # Insert the option either (1) after the last *FLAGS variable, or
16122    # (2) before a word containing "conftest.", or (3) at the end.
16123    # Note that $ac_compile itself does not contain backslashes and begins
16124    # with a dollar sign (not a hyphen), so the echo should work correctly.
16125    # The option is referenced via a variable to avoid confusing sed.
16126    lt_compile=`echo "$ac_compile" | $SED \
16127    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16128    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16129    -e 's:$: $lt_compiler_flag:'`
16130    (eval echo "\"\$as_me:16130: $lt_compile\"" >&5)
16131    (eval "$lt_compile" 2>conftest.err)
16132    ac_status=$?
16133    cat conftest.err >&5
16134    echo "$as_me:16134: \$? = $ac_status" >&5
16135    if (exit $ac_status) && test -s "$ac_outfile"; then
16136      # The compiler can only warn and ignore the option if not recognized
16137      # So say no if there are warnings
16138      if test ! -s conftest.err; then
16139        lt_prog_compiler_pic_works_GCJ=yes
16140      fi
16141    fi
16142    $rm conftest*
16143
16144 fi
16145 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16146 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16147
16148 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16149     case $lt_prog_compiler_pic_GCJ in
16150      "" | " "*) ;;
16151      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16152      esac
16153 else
16154     lt_prog_compiler_pic_GCJ=
16155      lt_prog_compiler_can_build_shared_GCJ=no
16156 fi
16157
16158 fi
16159 case "$host_os" in
16160   # For platforms which do not support PIC, -DPIC is meaningless:
16161   *djgpp*)
16162     lt_prog_compiler_pic_GCJ=
16163     ;;
16164   *)
16165     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16166     ;;
16167 esac
16168
16169 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16170 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16171 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16172   echo $ECHO_N "(cached) $ECHO_C" >&6
16173 else
16174   lt_cv_prog_compiler_c_o_GCJ=no
16175    $rm -r conftest 2>/dev/null
16176    mkdir conftest
16177    cd conftest
16178    mkdir out
16179    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16180
16181    lt_compiler_flag="-o out/conftest2.$ac_objext"
16182    # Insert the option either (1) after the last *FLAGS variable, or
16183    # (2) before a word containing "conftest.", or (3) at the end.
16184    # Note that $ac_compile itself does not contain backslashes and begins
16185    # with a dollar sign (not a hyphen), so the echo should work correctly.
16186    lt_compile=`echo "$ac_compile" | $SED \
16187    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16188    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16189    -e 's:$: $lt_compiler_flag:'`
16190    (eval echo "\"\$as_me:16190: $lt_compile\"" >&5)
16191    (eval "$lt_compile" 2>out/conftest.err)
16192    ac_status=$?
16193    cat out/conftest.err >&5
16194    echo "$as_me:16194: \$? = $ac_status" >&5
16195    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16196    then
16197      # The compiler can only warn and ignore the option if not recognized
16198      # So say no if there are warnings
16199      if test ! -s out/conftest.err; then
16200        lt_cv_prog_compiler_c_o_GCJ=yes
16201      fi
16202    fi
16203    chmod u+w .
16204    $rm conftest*
16205    # SGI C++ compiler will create directory out/ii_files/ for
16206    # template instantiation
16207    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16208    $rm out/* && rmdir out
16209    cd ..
16210    rmdir conftest
16211    $rm conftest*
16212
16213 fi
16214 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16215 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16216
16217
16218 hard_links="nottested"
16219 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16220   # do not overwrite the value of need_locks provided by the user
16221   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16222 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16223   hard_links=yes
16224   $rm conftest*
16225   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16226   touch conftest.a
16227   ln conftest.a conftest.b 2>&5 || hard_links=no
16228   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16229   { echo "$as_me:$LINENO: result: $hard_links" >&5
16230 echo "${ECHO_T}$hard_links" >&6; }
16231   if test "$hard_links" = no; then
16232     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16233 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16234     need_locks=warn
16235   fi
16236 else
16237   need_locks=no
16238 fi
16239
16240 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16241 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16242
16243   runpath_var=
16244   allow_undefined_flag_GCJ=
16245   enable_shared_with_static_runtimes_GCJ=no
16246   archive_cmds_GCJ=
16247   archive_expsym_cmds_GCJ=
16248   old_archive_From_new_cmds_GCJ=
16249   old_archive_from_expsyms_cmds_GCJ=
16250   export_dynamic_flag_spec_GCJ=
16251   whole_archive_flag_spec_GCJ=
16252   thread_safe_flag_spec_GCJ=
16253   hardcode_libdir_flag_spec_GCJ=
16254   hardcode_libdir_flag_spec_ld_GCJ=
16255   hardcode_libdir_separator_GCJ=
16256   hardcode_direct_GCJ=no
16257   hardcode_minus_L_GCJ=no
16258   hardcode_shlibpath_var_GCJ=unsupported
16259   link_all_deplibs_GCJ=unknown
16260   hardcode_automatic_GCJ=no
16261   module_cmds_GCJ=
16262   module_expsym_cmds_GCJ=
16263   always_export_symbols_GCJ=no
16264   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16265   # include_expsyms should be a list of space-separated symbols to be *always*
16266   # included in the symbol list
16267   include_expsyms_GCJ=
16268   # exclude_expsyms can be an extended regexp of symbols to exclude
16269   # it will be wrapped by ` (' and `)$', so one must not match beginning or
16270   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16271   # as well as any symbol that contains `d'.
16272   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16273   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16274   # platforms (ab)use it in PIC code, but their linkers get confused if
16275   # the symbol is explicitly referenced.  Since portable code cannot
16276   # rely on this symbol name, it's probably fine to never include it in
16277   # preloaded symbol tables.
16278   extract_expsyms_cmds=
16279
16280   case $host_os in
16281   cygwin* | mingw* | pw32*)
16282     # FIXME: the MSVC++ port hasn't been tested in a loooong time
16283     # When not using gcc, we currently assume that we are using
16284     # Microsoft Visual C++.
16285     if test "$GCC" != yes; then
16286       with_gnu_ld=no
16287     fi
16288     ;;
16289   openbsd*)
16290     with_gnu_ld=no
16291     ;;
16292   esac
16293
16294   ld_shlibs_GCJ=yes
16295   if test "$with_gnu_ld" = yes; then
16296     # If archive_cmds runs LD, not CC, wlarc should be empty
16297     wlarc='${wl}'
16298
16299     # See if GNU ld supports shared libraries.
16300     case $host_os in
16301     aix3* | aix4* | aix5*)
16302       # On AIX/PPC, the GNU linker is very broken
16303       if test "$host_cpu" != ia64; then
16304         ld_shlibs_GCJ=no
16305         cat <<EOF 1>&2
16306
16307 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16308 *** to be unable to reliably create shared libraries on AIX.
16309 *** Therefore, libtool is disabling shared libraries support.  If you
16310 *** really care for shared libraries, you may want to modify your PATH
16311 *** so that a non-GNU linker is found, and then restart.
16312
16313 EOF
16314       fi
16315       ;;
16316
16317     amigaos*)
16318       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)'
16319       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16320       hardcode_minus_L_GCJ=yes
16321
16322       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16323       # that the semantics of dynamic libraries on AmigaOS, at least up
16324       # to version 4, is to share data among multiple programs linked
16325       # with the same dynamic library.  Since this doesn't match the
16326       # behavior of shared libraries on other platforms, we can't use
16327       # them.
16328       ld_shlibs_GCJ=no
16329       ;;
16330
16331     beos*)
16332       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16333         allow_undefined_flag_GCJ=unsupported
16334         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16335         # support --undefined.  This deserves some investigation.  FIXME
16336         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16337       else
16338         ld_shlibs_GCJ=no
16339       fi
16340       ;;
16341
16342     cygwin* | mingw* | pw32*)
16343       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16344       # as there is no search path for DLLs.
16345       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16346       allow_undefined_flag_GCJ=unsupported
16347       always_export_symbols_GCJ=no
16348       enable_shared_with_static_runtimes_GCJ=yes
16349       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16350
16351       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16352         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16353         # If the export-symbols file already is a .def file (1st line
16354         # is EXPORTS), use it as is; otherwise, prepend...
16355         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16356           cp $export_symbols $output_objdir/$soname.def;
16357         else
16358           echo EXPORTS > $output_objdir/$soname.def;
16359           cat $export_symbols >> $output_objdir/$soname.def;
16360         fi~
16361         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
16362       else
16363         ld_shlibs=no
16364       fi
16365       ;;
16366
16367     netbsd*)
16368       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16369         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16370         wlarc=
16371       else
16372         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16373         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16374       fi
16375       ;;
16376
16377     solaris* | sysv5*)
16378       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16379         ld_shlibs_GCJ=no
16380         cat <<EOF 1>&2
16381
16382 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16383 *** create shared libraries on Solaris systems.  Therefore, libtool
16384 *** is disabling shared libraries support.  We urge you to upgrade GNU
16385 *** binutils to release 2.9.1 or newer.  Another option is to modify
16386 *** your PATH or compiler configuration so that the native linker is
16387 *** used, and then restart.
16388
16389 EOF
16390       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16391         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16392         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16393       else
16394         ld_shlibs_GCJ=no
16395       fi
16396       ;;
16397
16398     sunos4*)
16399       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16400       wlarc=
16401       hardcode_direct_GCJ=yes
16402       hardcode_shlibpath_var_GCJ=no
16403       ;;
16404
16405   linux*)
16406     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16407         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16408         archive_cmds_GCJ="$tmp_archive_cmds"
16409       supports_anon_versioning=no
16410       case `$LD -v 2>/dev/null` in
16411         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16412         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16413         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16414         *\ 2.11.*) ;; # other 2.11 versions
16415         *) supports_anon_versioning=yes ;;
16416       esac
16417       if test $supports_anon_versioning = yes; then
16418         archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16419 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16420 $echo "local: *; };" >> $output_objdir/$libname.ver~
16421         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16422       else
16423         archive_expsym_cmds_GCJ="$tmp_archive_cmds"
16424       fi
16425     else
16426       ld_shlibs_GCJ=no
16427     fi
16428     ;;
16429
16430     *)
16431       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16432         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16433         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16434       else
16435         ld_shlibs_GCJ=no
16436       fi
16437       ;;
16438     esac
16439
16440     if test "$ld_shlibs_GCJ" = yes; then
16441       runpath_var=LD_RUN_PATH
16442       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16443       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16444       # ancient GNU ld didn't support --whole-archive et. al.
16445       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16446         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16447       else
16448         whole_archive_flag_spec_GCJ=
16449       fi
16450     fi
16451   else
16452     # PORTME fill in a description of your system's linker (not GNU ld)
16453     case $host_os in
16454     aix3*)
16455       allow_undefined_flag_GCJ=unsupported
16456       always_export_symbols_GCJ=yes
16457       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'
16458       # Note: this linker hardcodes the directories in LIBPATH if there
16459       # are no directories specified by -L.
16460       hardcode_minus_L_GCJ=yes
16461       if test "$GCC" = yes && test -z "$link_static_flag"; then
16462         # Neither direct hardcoding nor static linking is supported with a
16463         # broken collect2.
16464         hardcode_direct_GCJ=unsupported
16465       fi
16466       ;;
16467
16468     aix4* | aix5*)
16469       if test "$host_cpu" = ia64; then
16470         # On IA64, the linker does run time linking by default, so we don't
16471         # have to do anything special.
16472         aix_use_runtimelinking=no
16473         exp_sym_flag='-Bexport'
16474         no_entry_flag=""
16475       else
16476         # If we're using GNU nm, then we don't want the "-C" option.
16477         # -C means demangle to AIX nm, but means don't demangle with GNU nm
16478         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16479           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'
16480         else
16481           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'
16482         fi
16483         aix_use_runtimelinking=no
16484
16485         # Test if we are trying to use run time linking or normal
16486         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16487         # need to do runtime linking.
16488         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16489           for ld_flag in $LDFLAGS; do
16490           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16491             aix_use_runtimelinking=yes
16492             break
16493           fi
16494           done
16495         esac
16496
16497         exp_sym_flag='-bexport'
16498         no_entry_flag='-bnoentry'
16499       fi
16500
16501       # When large executables or shared objects are built, AIX ld can
16502       # have problems creating the table of contents.  If linking a library
16503       # or program results in "error TOC overflow" add -mminimal-toc to
16504       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16505       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16506
16507       archive_cmds_GCJ=''
16508       hardcode_direct_GCJ=yes
16509       hardcode_libdir_separator_GCJ=':'
16510       link_all_deplibs_GCJ=yes
16511
16512       if test "$GCC" = yes; then
16513         case $host_os in aix4.012|aix4.012.*)
16514         # We only want to do this on AIX 4.2 and lower, the check
16515         # below for broken collect2 doesn't work under 4.3+
16516           collect2name=`${CC} -print-prog-name=collect2`
16517           if test -f "$collect2name" && \
16518            strings "$collect2name" | grep resolve_lib_name >/dev/null
16519           then
16520           # We have reworked collect2
16521           hardcode_direct_GCJ=yes
16522           else
16523           # We have old collect2
16524           hardcode_direct_GCJ=unsupported
16525           # It fails to find uninstalled libraries when the uninstalled
16526           # path is not listed in the libpath.  Setting hardcode_minus_L
16527           # to unsupported forces relinking
16528           hardcode_minus_L_GCJ=yes
16529           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16530           hardcode_libdir_separator_GCJ=
16531           fi
16532         esac
16533         shared_flag='-shared'
16534       else
16535         # not using gcc
16536         if test "$host_cpu" = ia64; then
16537         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16538         # chokes on -Wl,-G. The following line is correct:
16539           shared_flag='-G'
16540         else
16541         if test "$aix_use_runtimelinking" = yes; then
16542             shared_flag='${wl}-G'
16543           else
16544             shared_flag='${wl}-bM:SRE'
16545         fi
16546         fi
16547       fi
16548
16549       # It seems that -bexpall does not export symbols beginning with
16550       # underscore (_), so it is better to generate a list of symbols to export.
16551       always_export_symbols_GCJ=yes
16552       if test "$aix_use_runtimelinking" = yes; then
16553         # Warning - without using the other runtime loading flags (-brtl),
16554         # -berok will link without error, but may produce a broken library.
16555         allow_undefined_flag_GCJ='-berok'
16556        # Determine the default libpath from the value encoded in an empty executable.
16557        cat >conftest.$ac_ext <<_ACEOF
16558 /* confdefs.h.  */
16559 _ACEOF
16560 cat confdefs.h >>conftest.$ac_ext
16561 cat >>conftest.$ac_ext <<_ACEOF
16562 /* end confdefs.h.  */
16563
16564 int
16565 main ()
16566 {
16567
16568   ;
16569   return 0;
16570 }
16571 _ACEOF
16572 rm -f conftest.$ac_objext conftest$ac_exeext
16573 if { (ac_try="$ac_link"
16574 case "(($ac_try" in
16575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16576   *) ac_try_echo=$ac_try;;
16577 esac
16578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16579   (eval "$ac_link") 2>conftest.er1
16580   ac_status=$?
16581   grep -v '^ *+' conftest.er1 >conftest.err
16582   rm -f conftest.er1
16583   cat conftest.err >&5
16584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16585   (exit $ac_status); } && {
16586          test -z "$ac_c_werror_flag" ||
16587          test ! -s conftest.err
16588        } && test -s conftest$ac_exeext &&
16589        $as_test_x conftest$ac_exeext; then
16590
16591 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16592 }'`
16593 # Check for a 64-bit object if we didn't find anything.
16594 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16595 }'`; fi
16596 else
16597   echo "$as_me: failed program was:" >&5
16598 sed 's/^/| /' conftest.$ac_ext >&5
16599
16600
16601 fi
16602
16603 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16604       conftest$ac_exeext conftest.$ac_ext
16605 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16606
16607        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16608         archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16609        else
16610         if test "$host_cpu" = ia64; then
16611           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16612           allow_undefined_flag_GCJ="-z nodefs"
16613           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
16614         else
16615          # Determine the default libpath from the value encoded in an empty executable.
16616          cat >conftest.$ac_ext <<_ACEOF
16617 /* confdefs.h.  */
16618 _ACEOF
16619 cat confdefs.h >>conftest.$ac_ext
16620 cat >>conftest.$ac_ext <<_ACEOF
16621 /* end confdefs.h.  */
16622
16623 int
16624 main ()
16625 {
16626
16627   ;
16628   return 0;
16629 }
16630 _ACEOF
16631 rm -f conftest.$ac_objext conftest$ac_exeext
16632 if { (ac_try="$ac_link"
16633 case "(($ac_try" in
16634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16635   *) ac_try_echo=$ac_try;;
16636 esac
16637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16638   (eval "$ac_link") 2>conftest.er1
16639   ac_status=$?
16640   grep -v '^ *+' conftest.er1 >conftest.err
16641   rm -f conftest.er1
16642   cat conftest.err >&5
16643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16644   (exit $ac_status); } && {
16645          test -z "$ac_c_werror_flag" ||
16646          test ! -s conftest.err
16647        } && test -s conftest$ac_exeext &&
16648        $as_test_x conftest$ac_exeext; then
16649
16650 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16651 }'`
16652 # Check for a 64-bit object if we didn't find anything.
16653 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16654 }'`; fi
16655 else
16656   echo "$as_me: failed program was:" >&5
16657 sed 's/^/| /' conftest.$ac_ext >&5
16658
16659
16660 fi
16661
16662 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16663       conftest$ac_exeext conftest.$ac_ext
16664 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16665
16666          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16667           # Warning - without using the other run time loading flags,
16668           # -berok will link without error, but may produce a broken library.
16669           no_undefined_flag_GCJ=' ${wl}-bernotok'
16670           allow_undefined_flag_GCJ=' ${wl}-berok'
16671           # -bexpall does not export symbols beginning with underscore (_)
16672           always_export_symbols_GCJ=yes
16673           # Exported symbols can be pulled into shared objects from archives
16674           whole_archive_flag_spec_GCJ=' '
16675           archive_cmds_need_lc_GCJ=yes
16676           # This is similar to how AIX traditionally builds it's shared libraries.
16677           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16678         fi
16679       fi
16680       ;;
16681
16682     amigaos*)
16683       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)'
16684       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16685       hardcode_minus_L_GCJ=yes
16686       # see comment about different semantics on the GNU ld section
16687       ld_shlibs_GCJ=no
16688       ;;
16689
16690     bsdi4*)
16691       export_dynamic_flag_spec_GCJ=-rdynamic
16692       ;;
16693
16694     cygwin* | mingw* | pw32*)
16695       # When not using gcc, we currently assume that we are using
16696       # Microsoft Visual C++.
16697       # hardcode_libdir_flag_spec is actually meaningless, as there is
16698       # no search path for DLLs.
16699       hardcode_libdir_flag_spec_GCJ=' '
16700       allow_undefined_flag_GCJ=unsupported
16701       # Tell ltmain to make .lib files, not .a files.
16702       libext=lib
16703       # Tell ltmain to make .dll files, not .so files.
16704       shrext_cmds=".dll"
16705       # FIXME: Setting linknames here is a bad hack.
16706       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16707       # The linker will automatically build a .lib file if we build a DLL.
16708       old_archive_From_new_cmds_GCJ='true'
16709       # FIXME: Should let the user specify the lib program.
16710       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16711       fix_srcfile_path='`cygpath -w "$srcfile"`'
16712       enable_shared_with_static_runtimes_GCJ=yes
16713       ;;
16714
16715     darwin* | rhapsody*)
16716     if test "$GXX" = yes ; then
16717       archive_cmds_need_lc_GCJ=no
16718       case "$host_os" in
16719       rhapsody* | darwin1.[012])
16720         allow_undefined_flag_GCJ='-undefined suppress'
16721         ;;
16722       *) # Darwin 1.3 on
16723       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16724         allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16725       else
16726         case ${MACOSX_DEPLOYMENT_TARGET} in
16727           10.[012])
16728             allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16729             ;;
16730           10.*)
16731             allow_undefined_flag_GCJ='-undefined dynamic_lookup'
16732             ;;
16733         esac
16734       fi
16735         ;;
16736       esac
16737         lt_int_apple_cc_single_mod=no
16738         output_verbose_link_cmd='echo'
16739         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16740           lt_int_apple_cc_single_mod=yes
16741         fi
16742         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16743           archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16744         else
16745         archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -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'
16746       fi
16747       module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16748       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16749         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16750           archive_expsym_cmds_GCJ='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}'
16751         else
16752           archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
16753         fi
16754           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}'
16755       hardcode_direct_GCJ=no
16756       hardcode_automatic_GCJ=yes
16757       hardcode_shlibpath_var_GCJ=unsupported
16758       whole_archive_flag_spec_GCJ='-all_load $convenience'
16759       link_all_deplibs_GCJ=yes
16760     else
16761       ld_shlibs_GCJ=no
16762     fi
16763       ;;
16764
16765     dgux*)
16766       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16767       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16768       hardcode_shlibpath_var_GCJ=no
16769       ;;
16770
16771     freebsd1*)
16772       ld_shlibs_GCJ=no
16773       ;;
16774
16775     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16776     # support.  Future versions do this automatically, but an explicit c++rt0.o
16777     # does not break anything, and helps significantly (at the cost of a little
16778     # extra space).
16779     freebsd2.2*)
16780       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16781       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16782       hardcode_direct_GCJ=yes
16783       hardcode_shlibpath_var_GCJ=no
16784       ;;
16785
16786     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16787     freebsd2*)
16788       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16789       hardcode_direct_GCJ=yes
16790       hardcode_minus_L_GCJ=yes
16791       hardcode_shlibpath_var_GCJ=no
16792       ;;
16793
16794     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16795     freebsd* | kfreebsd*-gnu)
16796       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16797       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16798       hardcode_direct_GCJ=yes
16799       hardcode_shlibpath_var_GCJ=no
16800       ;;
16801
16802     hpux9*)
16803       if test "$GCC" = yes; then
16804         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'
16805       else
16806         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'
16807       fi
16808       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16809       hardcode_libdir_separator_GCJ=:
16810       hardcode_direct_GCJ=yes
16811
16812       # hardcode_minus_L: Not really in the search PATH,
16813       # but as the default location of the library.
16814       hardcode_minus_L_GCJ=yes
16815       export_dynamic_flag_spec_GCJ='${wl}-E'
16816       ;;
16817
16818     hpux10* | hpux11*)
16819       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16820         case "$host_cpu" in
16821         hppa*64*|ia64*)
16822           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16823           ;;
16824         *)
16825           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16826           ;;
16827         esac
16828       else
16829         case "$host_cpu" in
16830         hppa*64*|ia64*)
16831           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16832           ;;
16833         *)
16834           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16835           ;;
16836         esac
16837       fi
16838       if test "$with_gnu_ld" = no; then
16839         case "$host_cpu" in
16840         hppa*64*)
16841           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16842           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16843           hardcode_libdir_separator_GCJ=:
16844           hardcode_direct_GCJ=no
16845           hardcode_shlibpath_var_GCJ=no
16846           ;;
16847         ia64*)
16848           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16849           hardcode_direct_GCJ=no
16850           hardcode_shlibpath_var_GCJ=no
16851
16852           # hardcode_minus_L: Not really in the search PATH,
16853           # but as the default location of the library.
16854           hardcode_minus_L_GCJ=yes
16855           ;;
16856         *)
16857           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16858           hardcode_libdir_separator_GCJ=:
16859           hardcode_direct_GCJ=yes
16860           export_dynamic_flag_spec_GCJ='${wl}-E'
16861
16862           # hardcode_minus_L: Not really in the search PATH,
16863           # but as the default location of the library.
16864           hardcode_minus_L_GCJ=yes
16865           ;;
16866         esac
16867       fi
16868       ;;
16869
16870     irix5* | irix6* | nonstopux*)
16871       if test "$GCC" = yes; then
16872         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'
16873       else
16874         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'
16875         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16876       fi
16877       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16878       hardcode_libdir_separator_GCJ=:
16879       link_all_deplibs_GCJ=yes
16880       ;;
16881
16882     netbsd*)
16883       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16884         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16885       else
16886         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16887       fi
16888       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16889       hardcode_direct_GCJ=yes
16890       hardcode_shlibpath_var_GCJ=no
16891       ;;
16892
16893     newsos6)
16894       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16895       hardcode_direct_GCJ=yes
16896       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16897       hardcode_libdir_separator_GCJ=:
16898       hardcode_shlibpath_var_GCJ=no
16899       ;;
16900
16901     openbsd*)
16902       hardcode_direct_GCJ=yes
16903       hardcode_shlibpath_var_GCJ=no
16904       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16905         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16906         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16907         export_dynamic_flag_spec_GCJ='${wl}-E'
16908       else
16909        case $host_os in
16910          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16911            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16912            hardcode_libdir_flag_spec_GCJ='-R$libdir'
16913            ;;
16914          *)
16915            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16916            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16917            ;;
16918        esac
16919       fi
16920       ;;
16921
16922     os2*)
16923       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16924       hardcode_minus_L_GCJ=yes
16925       allow_undefined_flag_GCJ=unsupported
16926       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'
16927       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16928       ;;
16929
16930     osf3*)
16931       if test "$GCC" = yes; then
16932         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16933         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'
16934       else
16935         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16936         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'
16937       fi
16938       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16939       hardcode_libdir_separator_GCJ=:
16940       ;;
16941
16942     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16943       if test "$GCC" = yes; then
16944         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16945         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'
16946         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16947       else
16948         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16949         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'
16950         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~
16951         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
16952
16953         # Both c and cxx compiler support -rpath directly
16954         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16955       fi
16956       hardcode_libdir_separator_GCJ=:
16957       ;;
16958
16959     sco3.2v5*)
16960       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16961       hardcode_shlibpath_var_GCJ=no
16962       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16963       runpath_var=LD_RUN_PATH
16964       hardcode_runpath_var=yes
16965       ;;
16966
16967     solaris*)
16968       no_undefined_flag_GCJ=' -z text'
16969       if test "$GCC" = yes; then
16970         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16971         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16972           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16973       else
16974         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16975         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16976         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16977       fi
16978       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16979       hardcode_shlibpath_var_GCJ=no
16980       case $host_os in
16981       solaris2.[0-5] | solaris2.[0-5].*) ;;
16982       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16983         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16984       esac
16985       link_all_deplibs_GCJ=yes
16986       ;;
16987
16988     sunos4*)
16989       if test "x$host_vendor" = xsequent; then
16990         # Use $CC to link under sequent, because it throws in some extra .o
16991         # files that make .init and .fini sections work.
16992         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16993       else
16994         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16995       fi
16996       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16997       hardcode_direct_GCJ=yes
16998       hardcode_minus_L_GCJ=yes
16999       hardcode_shlibpath_var_GCJ=no
17000       ;;
17001
17002     sysv4)
17003       case $host_vendor in
17004         sni)
17005           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17006           hardcode_direct_GCJ=yes # is this really true???
17007         ;;
17008         siemens)
17009           ## LD is ld it makes a PLAMLIB
17010           ## CC just makes a GrossModule.
17011           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17012           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17013           hardcode_direct_GCJ=no
17014         ;;
17015         motorola)
17016           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17017           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17018         ;;
17019       esac
17020       runpath_var='LD_RUN_PATH'
17021       hardcode_shlibpath_var_GCJ=no
17022       ;;
17023
17024     sysv4.3*)
17025       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17026       hardcode_shlibpath_var_GCJ=no
17027       export_dynamic_flag_spec_GCJ='-Bexport'
17028       ;;
17029
17030     sysv4*MP*)
17031       if test -d /usr/nec; then
17032         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17033         hardcode_shlibpath_var_GCJ=no
17034         runpath_var=LD_RUN_PATH
17035         hardcode_runpath_var=yes
17036         ld_shlibs_GCJ=yes
17037       fi
17038       ;;
17039
17040     sysv4.2uw2*)
17041       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17042       hardcode_direct_GCJ=yes
17043       hardcode_minus_L_GCJ=no
17044       hardcode_shlibpath_var_GCJ=no
17045       hardcode_runpath_var=yes
17046       runpath_var=LD_RUN_PATH
17047       ;;
17048
17049    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
17050       no_undefined_flag_GCJ='${wl}-z ${wl}text'
17051       if test "$GCC" = yes; then
17052         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17053       else
17054         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17055       fi
17056       runpath_var='LD_RUN_PATH'
17057       hardcode_shlibpath_var_GCJ=no
17058       ;;
17059
17060     sysv5*)
17061       no_undefined_flag_GCJ=' -z text'
17062       # $CC -shared without GNU ld will not create a library from C++
17063       # object files and a static libstdc++, better avoid it by now
17064       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17065       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17066                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17067       hardcode_libdir_flag_spec_GCJ=
17068       hardcode_shlibpath_var_GCJ=no
17069       runpath_var='LD_RUN_PATH'
17070       ;;
17071
17072     uts4*)
17073       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17074       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17075       hardcode_shlibpath_var_GCJ=no
17076       ;;
17077
17078     *)
17079       ld_shlibs_GCJ=no
17080       ;;
17081     esac
17082   fi
17083
17084 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17085 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17086 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17087
17088 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17089 if test "$GCC" = yes; then
17090   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17091 fi
17092
17093 #
17094 # Do we need to explicitly link libc?
17095 #
17096 case "x$archive_cmds_need_lc_GCJ" in
17097 x|xyes)
17098   # Assume -lc should be added
17099   archive_cmds_need_lc_GCJ=yes
17100
17101   if test "$enable_shared" = yes && test "$GCC" = yes; then
17102     case $archive_cmds_GCJ in
17103     *'~'*)
17104       # FIXME: we may have to deal with multi-command sequences.
17105       ;;
17106     '$CC '*)
17107       # Test whether the compiler implicitly links with -lc since on some
17108       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17109       # to ld, don't add -lc before -lgcc.
17110       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17111 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17112       $rm conftest*
17113       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17114
17115       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17116   (eval $ac_compile) 2>&5
17117   ac_status=$?
17118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17119   (exit $ac_status); } 2>conftest.err; then
17120         soname=conftest
17121         lib=conftest
17122         libobjs=conftest.$ac_objext
17123         deplibs=
17124         wl=$lt_prog_compiler_wl_GCJ
17125         compiler_flags=-v
17126         linker_flags=-v
17127         verstring=
17128         output_objdir=.
17129         libname=conftest
17130         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17131         allow_undefined_flag_GCJ=
17132         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17133   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17134   ac_status=$?
17135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17136   (exit $ac_status); }
17137         then
17138           archive_cmds_need_lc_GCJ=no
17139         else
17140           archive_cmds_need_lc_GCJ=yes
17141         fi
17142         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17143       else
17144         cat conftest.err 1>&5
17145       fi
17146       $rm conftest*
17147       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17148 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17149       ;;
17150     esac
17151   fi
17152   ;;
17153 esac
17154
17155 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17156 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17157 library_names_spec=
17158 libname_spec='lib$name'
17159 soname_spec=
17160 shrext_cmds=".so"
17161 postinstall_cmds=
17162 postuninstall_cmds=
17163 finish_cmds=
17164 finish_eval=
17165 shlibpath_var=
17166 shlibpath_overrides_runpath=unknown
17167 version_type=none
17168 dynamic_linker="$host_os ld.so"
17169 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17170 if test "$GCC" = yes; then
17171   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17172   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17173     # if the path contains ";" then we assume it to be the separator
17174     # otherwise default to the standard path separator (i.e. ":") - it is
17175     # assumed that no part of a normal pathname contains ";" but that should
17176     # okay in the real world where ";" in dirpaths is itself problematic.
17177     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17178   else
17179     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17180   fi
17181 else
17182   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17183 fi
17184 need_lib_prefix=unknown
17185 hardcode_into_libs=no
17186
17187 # when you set need_version to no, make sure it does not cause -set_version
17188 # flags to be left without arguments
17189 need_version=unknown
17190
17191 case $host_os in
17192 aix3*)
17193   version_type=linux
17194   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17195   shlibpath_var=LIBPATH
17196
17197   # AIX 3 has no versioning support, so we append a major version to the name.
17198   soname_spec='${libname}${release}${shared_ext}$major'
17199   ;;
17200
17201 aix4* | aix5*)
17202   version_type=linux
17203   need_lib_prefix=no
17204   need_version=no
17205   hardcode_into_libs=yes
17206   if test "$host_cpu" = ia64; then
17207     # AIX 5 supports IA64
17208     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17209     shlibpath_var=LD_LIBRARY_PATH
17210   else
17211     # With GCC up to 2.95.x, collect2 would create an import file
17212     # for dependence libraries.  The import file would start with
17213     # the line `#! .'.  This would cause the generated library to
17214     # depend on `.', always an invalid library.  This was fixed in
17215     # development snapshots of GCC prior to 3.0.
17216     case $host_os in
17217       aix4 | aix4.[01] | aix4.[01].*)
17218       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17219            echo ' yes '
17220            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17221         :
17222       else
17223         can_build_shared=no
17224       fi
17225       ;;
17226     esac
17227     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17228     # soname into executable. Probably we can add versioning support to
17229     # collect2, so additional links can be useful in future.
17230     if test "$aix_use_runtimelinking" = yes; then
17231       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17232       # instead of lib<name>.a to let people know that these are not
17233       # typical AIX shared libraries.
17234       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17235     else
17236       # We preserve .a as extension for shared libraries through AIX4.2
17237       # and later when we are not doing run time linking.
17238       library_names_spec='${libname}${release}.a $libname.a'
17239       soname_spec='${libname}${release}${shared_ext}$major'
17240     fi
17241     shlibpath_var=LIBPATH
17242   fi
17243   ;;
17244
17245 amigaos*)
17246   library_names_spec='$libname.ixlibrary $libname.a'
17247   # Create ${libname}_ixlibrary.a entries in /sys/libs.
17248   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'
17249   ;;
17250
17251 beos*)
17252   library_names_spec='${libname}${shared_ext}'
17253   dynamic_linker="$host_os ld.so"
17254   shlibpath_var=LIBRARY_PATH
17255   ;;
17256
17257 bsdi4*)
17258   version_type=linux
17259   need_version=no
17260   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17261   soname_spec='${libname}${release}${shared_ext}$major'
17262   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17263   shlibpath_var=LD_LIBRARY_PATH
17264   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17265   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17266   # the default ld.so.conf also contains /usr/contrib/lib and
17267   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17268   # libtool to hard-code these into programs
17269   ;;
17270
17271 cygwin* | mingw* | pw32*)
17272   version_type=windows
17273   shrext_cmds=".dll"
17274   need_version=no
17275   need_lib_prefix=no
17276
17277   case $GCC,$host_os in
17278   yes,cygwin* | yes,mingw* | yes,pw32*)
17279     library_names_spec='$libname.dll.a'
17280     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17281     postinstall_cmds='base_file=`basename \${file}`~
17282       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17283       dldir=$destdir/`dirname \$dlpath`~
17284       test -d \$dldir || mkdir -p \$dldir~
17285       $install_prog $dir/$dlname \$dldir/$dlname'
17286     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17287       dlpath=$dir/\$dldll~
17288        $rm \$dlpath'
17289     shlibpath_overrides_runpath=yes
17290
17291     case $host_os in
17292     cygwin*)
17293       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17294       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17295       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17296       ;;
17297     mingw*)
17298       # MinGW DLLs use traditional 'lib' prefix
17299       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17300       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17301       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17302         # It is most probably a Windows format PATH printed by
17303         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17304         # path with ; separators, and with drive letters. We can handle the
17305         # drive letters (cygwin fileutils understands them), so leave them,
17306         # especially as we might pass files found there to a mingw objdump,
17307         # which wouldn't understand a cygwinified path. Ahh.
17308         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17309       else
17310         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17311       fi
17312       ;;
17313     pw32*)
17314       # pw32 DLLs use 'pw' prefix rather than 'lib'
17315       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
17316       ;;
17317     esac
17318     ;;
17319
17320   *)
17321     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17322     ;;
17323   esac
17324   dynamic_linker='Win32 ld.exe'
17325   # FIXME: first we should search . and the directory the executable is in
17326   shlibpath_var=PATH
17327   ;;
17328
17329 darwin* | rhapsody*)
17330   dynamic_linker="$host_os dyld"
17331   version_type=darwin
17332   need_lib_prefix=no
17333   need_version=no
17334   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17335   soname_spec='${libname}${release}${major}$shared_ext'
17336   shlibpath_overrides_runpath=yes
17337   shlibpath_var=DYLD_LIBRARY_PATH
17338   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17339   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17340   if test "$GCC" = yes; then
17341     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
17342   else
17343     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17344   fi
17345   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17346   ;;
17347
17348 dgux*)
17349   version_type=linux
17350   need_lib_prefix=no
17351   need_version=no
17352   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17353   soname_spec='${libname}${release}${shared_ext}$major'
17354   shlibpath_var=LD_LIBRARY_PATH
17355   ;;
17356
17357 freebsd1*)
17358   dynamic_linker=no
17359   ;;
17360
17361 kfreebsd*-gnu)
17362   version_type=linux
17363   need_lib_prefix=no
17364   need_version=no
17365   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17366   soname_spec='${libname}${release}${shared_ext}$major'
17367   shlibpath_var=LD_LIBRARY_PATH
17368   shlibpath_overrides_runpath=no
17369   hardcode_into_libs=yes
17370   dynamic_linker='GNU ld.so'
17371   ;;
17372
17373 freebsd*)
17374   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17375   version_type=freebsd-$objformat
17376   case $version_type in
17377     freebsd-elf*)
17378       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17379       need_version=no
17380       need_lib_prefix=no
17381       ;;
17382     freebsd-*)
17383       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17384       need_version=yes
17385       ;;
17386   esac
17387   shlibpath_var=LD_LIBRARY_PATH
17388   case $host_os in
17389   freebsd2*)
17390     shlibpath_overrides_runpath=yes
17391     ;;
17392   freebsd3.01* | freebsdelf3.01*)
17393     shlibpath_overrides_runpath=yes
17394     hardcode_into_libs=yes
17395     ;;
17396   *) # from 3.2 on
17397     shlibpath_overrides_runpath=no
17398     hardcode_into_libs=yes
17399     ;;
17400   esac
17401   ;;
17402
17403 gnu*)
17404   version_type=linux
17405   need_lib_prefix=no
17406   need_version=no
17407   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17408   soname_spec='${libname}${release}${shared_ext}$major'
17409   shlibpath_var=LD_LIBRARY_PATH
17410   hardcode_into_libs=yes
17411   ;;
17412
17413 hpux9* | hpux10* | hpux11*)
17414   # Give a soname corresponding to the major version so that dld.sl refuses to
17415   # link against other versions.
17416   version_type=sunos
17417   need_lib_prefix=no
17418   need_version=no
17419   case "$host_cpu" in
17420   ia64*)
17421     shrext_cmds='.so'
17422     hardcode_into_libs=yes
17423     dynamic_linker="$host_os dld.so"
17424     shlibpath_var=LD_LIBRARY_PATH
17425     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17426     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17427     soname_spec='${libname}${release}${shared_ext}$major'
17428     if test "X$HPUX_IA64_MODE" = X32; then
17429       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17430     else
17431       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17432     fi
17433     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17434     ;;
17435    hppa*64*)
17436      shrext_cmds='.sl'
17437      hardcode_into_libs=yes
17438      dynamic_linker="$host_os dld.sl"
17439      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17440      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17441      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17442      soname_spec='${libname}${release}${shared_ext}$major'
17443      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17444      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17445      ;;
17446    *)
17447     shrext_cmds='.sl'
17448     dynamic_linker="$host_os dld.sl"
17449     shlibpath_var=SHLIB_PATH
17450     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17451     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17452     soname_spec='${libname}${release}${shared_ext}$major'
17453     ;;
17454   esac
17455   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17456   postinstall_cmds='chmod 555 $lib'
17457   ;;
17458
17459 irix5* | irix6* | nonstopux*)
17460   case $host_os in
17461     nonstopux*) version_type=nonstopux ;;
17462     *)
17463         if test "$lt_cv_prog_gnu_ld" = yes; then
17464                 version_type=linux
17465         else
17466                 version_type=irix
17467         fi ;;
17468   esac
17469   need_lib_prefix=no
17470   need_version=no
17471   soname_spec='${libname}${release}${shared_ext}$major'
17472   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17473   case $host_os in
17474   irix5* | nonstopux*)
17475     libsuff= shlibsuff=
17476     ;;
17477   *)
17478     case $LD in # libtool.m4 will add one of these switches to LD
17479     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17480       libsuff= shlibsuff= libmagic=32-bit;;
17481     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17482       libsuff=32 shlibsuff=N32 libmagic=N32;;
17483     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17484       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17485     *) libsuff= shlibsuff= libmagic=never-match;;
17486     esac
17487     ;;
17488   esac
17489   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17490   shlibpath_overrides_runpath=no
17491   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17492   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17493   hardcode_into_libs=yes
17494   ;;
17495
17496 # No shared lib support for Linux oldld, aout, or coff.
17497 linux*oldld* | linux*aout* | linux*coff*)
17498   dynamic_linker=no
17499   ;;
17500
17501 # This must be Linux ELF.
17502 linux*)
17503   version_type=linux
17504   need_lib_prefix=no
17505   need_version=no
17506   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17507   soname_spec='${libname}${release}${shared_ext}$major'
17508   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17509   shlibpath_var=LD_LIBRARY_PATH
17510   shlibpath_overrides_runpath=no
17511   # This implies no fast_install, which is unacceptable.
17512   # Some rework will be needed to allow for fast_install
17513   # before this can be enabled.
17514   hardcode_into_libs=yes
17515
17516   # find out which ABI we are using
17517   libsuff=
17518   case "$host_cpu" in
17519   x86_64*|s390x*|powerpc64*)
17520     echo '#line 17520 "configure"' > conftest.$ac_ext
17521     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17522   (eval $ac_compile) 2>&5
17523   ac_status=$?
17524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17525   (exit $ac_status); }; then
17526       case `/usr/bin/file conftest.$ac_objext` in
17527       *64-bit*)
17528         libsuff=64
17529         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
17530         ;;
17531       esac
17532     fi
17533     rm -rf conftest*
17534     ;;
17535   esac
17536
17537   # Append ld.so.conf contents to the search path
17538   if test -f /etc/ld.so.conf; then
17539     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17540     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
17541   fi
17542
17543   # We used to test for /lib/ld.so.1 and disable shared libraries on
17544   # powerpc, because MkLinux only supported shared libraries with the
17545   # GNU dynamic linker.  Since this was broken with cross compilers,
17546   # most powerpc-linux boxes support dynamic linking these days and
17547   # people can always --disable-shared, the test was removed, and we
17548   # assume the GNU/Linux dynamic linker is in use.
17549   dynamic_linker='GNU/Linux ld.so'
17550   ;;
17551
17552 knetbsd*-gnu)
17553   version_type=linux
17554   need_lib_prefix=no
17555   need_version=no
17556   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17557   soname_spec='${libname}${release}${shared_ext}$major'
17558   shlibpath_var=LD_LIBRARY_PATH
17559   shlibpath_overrides_runpath=no
17560   hardcode_into_libs=yes
17561   dynamic_linker='GNU ld.so'
17562   ;;
17563
17564 netbsd*)
17565   version_type=sunos
17566   need_lib_prefix=no
17567   need_version=no
17568   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17569     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17570     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17571     dynamic_linker='NetBSD (a.out) ld.so'
17572   else
17573     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17574     soname_spec='${libname}${release}${shared_ext}$major'
17575     dynamic_linker='NetBSD ld.elf_so'
17576   fi
17577   shlibpath_var=LD_LIBRARY_PATH
17578   shlibpath_overrides_runpath=yes
17579   hardcode_into_libs=yes
17580   ;;
17581
17582 newsos6)
17583   version_type=linux
17584   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17585   shlibpath_var=LD_LIBRARY_PATH
17586   shlibpath_overrides_runpath=yes
17587   ;;
17588
17589 nto-qnx*)
17590   version_type=linux
17591   need_lib_prefix=no
17592   need_version=no
17593   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17594   soname_spec='${libname}${release}${shared_ext}$major'
17595   shlibpath_var=LD_LIBRARY_PATH
17596   shlibpath_overrides_runpath=yes
17597   ;;
17598
17599 openbsd*)
17600   version_type=sunos
17601   need_lib_prefix=no
17602   need_version=yes
17603   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17604   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17605   shlibpath_var=LD_LIBRARY_PATH
17606   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17607     case $host_os in
17608       openbsd2.[89] | openbsd2.[89].*)
17609         shlibpath_overrides_runpath=no
17610         ;;
17611       *)
17612         shlibpath_overrides_runpath=yes
17613         ;;
17614       esac
17615   else
17616     shlibpath_overrides_runpath=yes
17617   fi
17618   ;;
17619
17620 os2*)
17621   libname_spec='$name'
17622   shrext_cmds=".dll"
17623   need_lib_prefix=no
17624   library_names_spec='$libname${shared_ext} $libname.a'
17625   dynamic_linker='OS/2 ld.exe'
17626   shlibpath_var=LIBPATH
17627   ;;
17628
17629 osf3* | osf4* | osf5*)
17630   version_type=osf
17631   need_lib_prefix=no
17632   need_version=no
17633   soname_spec='${libname}${release}${shared_ext}$major'
17634   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17635   shlibpath_var=LD_LIBRARY_PATH
17636   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17637   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17638   ;;
17639
17640 sco3.2v5*)
17641   version_type=osf
17642   soname_spec='${libname}${release}${shared_ext}$major'
17643   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17644   shlibpath_var=LD_LIBRARY_PATH
17645   ;;
17646
17647 solaris*)
17648   version_type=linux
17649   need_lib_prefix=no
17650   need_version=no
17651   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17652   soname_spec='${libname}${release}${shared_ext}$major'
17653   shlibpath_var=LD_LIBRARY_PATH
17654   shlibpath_overrides_runpath=yes
17655   hardcode_into_libs=yes
17656   # ldd complains unless libraries are executable
17657   postinstall_cmds='chmod +x $lib'
17658   ;;
17659
17660 sunos4*)
17661   version_type=sunos
17662   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17663   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17664   shlibpath_var=LD_LIBRARY_PATH
17665   shlibpath_overrides_runpath=yes
17666   if test "$with_gnu_ld" = yes; then
17667     need_lib_prefix=no
17668   fi
17669   need_version=yes
17670   ;;
17671
17672 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17673   version_type=linux
17674   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17675   soname_spec='${libname}${release}${shared_ext}$major'
17676   shlibpath_var=LD_LIBRARY_PATH
17677   case $host_vendor in
17678     sni)
17679       shlibpath_overrides_runpath=no
17680       need_lib_prefix=no
17681       export_dynamic_flag_spec='${wl}-Blargedynsym'
17682       runpath_var=LD_RUN_PATH
17683       ;;
17684     siemens)
17685       need_lib_prefix=no
17686       ;;
17687     motorola)
17688       need_lib_prefix=no
17689       need_version=no
17690       shlibpath_overrides_runpath=no
17691       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17692       ;;
17693   esac
17694   ;;
17695
17696 sysv4*MP*)
17697   if test -d /usr/nec ;then
17698     version_type=linux
17699     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17700     soname_spec='$libname${shared_ext}.$major'
17701     shlibpath_var=LD_LIBRARY_PATH
17702   fi
17703   ;;
17704
17705 uts4*)
17706   version_type=linux
17707   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17708   soname_spec='${libname}${release}${shared_ext}$major'
17709   shlibpath_var=LD_LIBRARY_PATH
17710   ;;
17711
17712 *)
17713   dynamic_linker=no
17714   ;;
17715 esac
17716 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17717 echo "${ECHO_T}$dynamic_linker" >&6; }
17718 test "$dynamic_linker" = no && can_build_shared=no
17719
17720 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17721 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
17722 hardcode_action_GCJ=
17723 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17724    test -n "$runpath_var GCJ" || \
17725    test "X$hardcode_automatic_GCJ"="Xyes" ; then
17726
17727   # We can hardcode non-existant directories.
17728   if test "$hardcode_direct_GCJ" != no &&
17729      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17730      # have to relink, otherwise we might link with an installed library
17731      # when we should be linking with a yet-to-be-installed one
17732      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17733      test "$hardcode_minus_L_GCJ" != no; then
17734     # Linking always hardcodes the temporary library directory.
17735     hardcode_action_GCJ=relink
17736   else
17737     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17738     hardcode_action_GCJ=immediate
17739   fi
17740 else
17741   # We cannot hardcode anything, or else we can only hardcode existing
17742   # directories.
17743   hardcode_action_GCJ=unsupported
17744 fi
17745 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17746 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
17747
17748 if test "$hardcode_action_GCJ" = relink; then
17749   # Fast installation is not supported
17750   enable_fast_install=no
17751 elif test "$shlibpath_overrides_runpath" = yes ||
17752      test "$enable_shared" = no; then
17753   # Fast installation is not necessary
17754   enable_fast_install=needless
17755 fi
17756
17757 striplib=
17758 old_striplib=
17759 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17760 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
17761 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17762   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17763   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17764   { echo "$as_me:$LINENO: result: yes" >&5
17765 echo "${ECHO_T}yes" >&6; }
17766 else
17767 # FIXME - insert some real tests, host_os isn't really good enough
17768   case $host_os in
17769    darwin*)
17770        if test -n "$STRIP" ; then
17771          striplib="$STRIP -x"
17772          { echo "$as_me:$LINENO: result: yes" >&5
17773 echo "${ECHO_T}yes" >&6; }
17774        else
17775   { echo "$as_me:$LINENO: result: no" >&5
17776 echo "${ECHO_T}no" >&6; }
17777 fi
17778        ;;
17779    *)
17780   { echo "$as_me:$LINENO: result: no" >&5
17781 echo "${ECHO_T}no" >&6; }
17782     ;;
17783   esac
17784 fi
17785
17786 if test "x$enable_dlopen" != xyes; then
17787   enable_dlopen=unknown
17788   enable_dlopen_self=unknown
17789   enable_dlopen_self_static=unknown
17790 else
17791   lt_cv_dlopen=no
17792   lt_cv_dlopen_libs=
17793
17794   case $host_os in
17795   beos*)
17796     lt_cv_dlopen="load_add_on"
17797     lt_cv_dlopen_libs=
17798     lt_cv_dlopen_self=yes
17799     ;;
17800
17801   mingw* | pw32*)
17802     lt_cv_dlopen="LoadLibrary"
17803     lt_cv_dlopen_libs=
17804    ;;
17805
17806   cygwin*)
17807     lt_cv_dlopen="dlopen"
17808     lt_cv_dlopen_libs=
17809    ;;
17810
17811   darwin*)
17812   # if libdl is installed we need to link against it
17813     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17814 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17815 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17816   echo $ECHO_N "(cached) $ECHO_C" >&6
17817 else
17818   ac_check_lib_save_LIBS=$LIBS
17819 LIBS="-ldl  $LIBS"
17820 cat >conftest.$ac_ext <<_ACEOF
17821 /* confdefs.h.  */
17822 _ACEOF
17823 cat confdefs.h >>conftest.$ac_ext
17824 cat >>conftest.$ac_ext <<_ACEOF
17825 /* end confdefs.h.  */
17826
17827 /* Override any GCC internal prototype to avoid an error.
17828    Use char because int might match the return type of a GCC
17829    builtin and then its argument prototype would still apply.  */
17830 #ifdef __cplusplus
17831 extern "C"
17832 #endif
17833 char dlopen ();
17834 int
17835 main ()
17836 {
17837 return dlopen ();
17838   ;
17839   return 0;
17840 }
17841 _ACEOF
17842 rm -f conftest.$ac_objext conftest$ac_exeext
17843 if { (ac_try="$ac_link"
17844 case "(($ac_try" in
17845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17846   *) ac_try_echo=$ac_try;;
17847 esac
17848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17849   (eval "$ac_link") 2>conftest.er1
17850   ac_status=$?
17851   grep -v '^ *+' conftest.er1 >conftest.err
17852   rm -f conftest.er1
17853   cat conftest.err >&5
17854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17855   (exit $ac_status); } && {
17856          test -z "$ac_c_werror_flag" ||
17857          test ! -s conftest.err
17858        } && test -s conftest$ac_exeext &&
17859        $as_test_x conftest$ac_exeext; then
17860   ac_cv_lib_dl_dlopen=yes
17861 else
17862   echo "$as_me: failed program was:" >&5
17863 sed 's/^/| /' conftest.$ac_ext >&5
17864
17865         ac_cv_lib_dl_dlopen=no
17866 fi
17867
17868 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17869       conftest$ac_exeext conftest.$ac_ext
17870 LIBS=$ac_check_lib_save_LIBS
17871 fi
17872 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17873 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17874 if test $ac_cv_lib_dl_dlopen = yes; then
17875   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17876 else
17877
17878     lt_cv_dlopen="dyld"
17879     lt_cv_dlopen_libs=
17880     lt_cv_dlopen_self=yes
17881
17882 fi
17883
17884    ;;
17885
17886   *)
17887     { echo "$as_me:$LINENO: checking for shl_load" >&5
17888 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
17889 if test "${ac_cv_func_shl_load+set}" = set; then
17890   echo $ECHO_N "(cached) $ECHO_C" >&6
17891 else
17892   cat >conftest.$ac_ext <<_ACEOF
17893 /* confdefs.h.  */
17894 _ACEOF
17895 cat confdefs.h >>conftest.$ac_ext
17896 cat >>conftest.$ac_ext <<_ACEOF
17897 /* end confdefs.h.  */
17898 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17899    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17900 #define shl_load innocuous_shl_load
17901
17902 /* System header to define __stub macros and hopefully few prototypes,
17903     which can conflict with char shl_load (); below.
17904     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17905     <limits.h> exists even on freestanding compilers.  */
17906
17907 #ifdef __STDC__
17908 # include <limits.h>
17909 #else
17910 # include <assert.h>
17911 #endif
17912
17913 #undef shl_load
17914
17915 /* Override any GCC internal prototype to avoid an error.
17916    Use char because int might match the return type of a GCC
17917    builtin and then its argument prototype would still apply.  */
17918 #ifdef __cplusplus
17919 extern "C"
17920 #endif
17921 char shl_load ();
17922 /* The GNU C library defines this for functions which it implements
17923     to always fail with ENOSYS.  Some functions are actually named
17924     something starting with __ and the normal name is an alias.  */
17925 #if defined __stub_shl_load || defined __stub___shl_load
17926 choke me
17927 #endif
17928
17929 int
17930 main ()
17931 {
17932 return shl_load ();
17933   ;
17934   return 0;
17935 }
17936 _ACEOF
17937 rm -f conftest.$ac_objext conftest$ac_exeext
17938 if { (ac_try="$ac_link"
17939 case "(($ac_try" in
17940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17941   *) ac_try_echo=$ac_try;;
17942 esac
17943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17944   (eval "$ac_link") 2>conftest.er1
17945   ac_status=$?
17946   grep -v '^ *+' conftest.er1 >conftest.err
17947   rm -f conftest.er1
17948   cat conftest.err >&5
17949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17950   (exit $ac_status); } && {
17951          test -z "$ac_c_werror_flag" ||
17952          test ! -s conftest.err
17953        } && test -s conftest$ac_exeext &&
17954        $as_test_x conftest$ac_exeext; then
17955   ac_cv_func_shl_load=yes
17956 else
17957   echo "$as_me: failed program was:" >&5
17958 sed 's/^/| /' conftest.$ac_ext >&5
17959
17960         ac_cv_func_shl_load=no
17961 fi
17962
17963 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17964       conftest$ac_exeext conftest.$ac_ext
17965 fi
17966 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17967 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
17968 if test $ac_cv_func_shl_load = yes; then
17969   lt_cv_dlopen="shl_load"
17970 else
17971   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17972 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
17973 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17974   echo $ECHO_N "(cached) $ECHO_C" >&6
17975 else
17976   ac_check_lib_save_LIBS=$LIBS
17977 LIBS="-ldld  $LIBS"
17978 cat >conftest.$ac_ext <<_ACEOF
17979 /* confdefs.h.  */
17980 _ACEOF
17981 cat confdefs.h >>conftest.$ac_ext
17982 cat >>conftest.$ac_ext <<_ACEOF
17983 /* end confdefs.h.  */
17984
17985 /* Override any GCC internal prototype to avoid an error.
17986    Use char because int might match the return type of a GCC
17987    builtin and then its argument prototype would still apply.  */
17988 #ifdef __cplusplus
17989 extern "C"
17990 #endif
17991 char shl_load ();
17992 int
17993 main ()
17994 {
17995 return shl_load ();
17996   ;
17997   return 0;
17998 }
17999 _ACEOF
18000 rm -f conftest.$ac_objext conftest$ac_exeext
18001 if { (ac_try="$ac_link"
18002 case "(($ac_try" in
18003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18004   *) ac_try_echo=$ac_try;;
18005 esac
18006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18007   (eval "$ac_link") 2>conftest.er1
18008   ac_status=$?
18009   grep -v '^ *+' conftest.er1 >conftest.err
18010   rm -f conftest.er1
18011   cat conftest.err >&5
18012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18013   (exit $ac_status); } && {
18014          test -z "$ac_c_werror_flag" ||
18015          test ! -s conftest.err
18016        } && test -s conftest$ac_exeext &&
18017        $as_test_x conftest$ac_exeext; then
18018   ac_cv_lib_dld_shl_load=yes
18019 else
18020   echo "$as_me: failed program was:" >&5
18021 sed 's/^/| /' conftest.$ac_ext >&5
18022
18023         ac_cv_lib_dld_shl_load=no
18024 fi
18025
18026 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18027       conftest$ac_exeext conftest.$ac_ext
18028 LIBS=$ac_check_lib_save_LIBS
18029 fi
18030 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
18031 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
18032 if test $ac_cv_lib_dld_shl_load = yes; then
18033   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18034 else
18035   { echo "$as_me:$LINENO: checking for dlopen" >&5
18036 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
18037 if test "${ac_cv_func_dlopen+set}" = set; then
18038   echo $ECHO_N "(cached) $ECHO_C" >&6
18039 else
18040   cat >conftest.$ac_ext <<_ACEOF
18041 /* confdefs.h.  */
18042 _ACEOF
18043 cat confdefs.h >>conftest.$ac_ext
18044 cat >>conftest.$ac_ext <<_ACEOF
18045 /* end confdefs.h.  */
18046 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
18047    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18048 #define dlopen innocuous_dlopen
18049
18050 /* System header to define __stub macros and hopefully few prototypes,
18051     which can conflict with char dlopen (); below.
18052     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18053     <limits.h> exists even on freestanding compilers.  */
18054
18055 #ifdef __STDC__
18056 # include <limits.h>
18057 #else
18058 # include <assert.h>
18059 #endif
18060
18061 #undef dlopen
18062
18063 /* Override any GCC internal prototype to avoid an error.
18064    Use char because int might match the return type of a GCC
18065    builtin and then its argument prototype would still apply.  */
18066 #ifdef __cplusplus
18067 extern "C"
18068 #endif
18069 char dlopen ();
18070 /* The GNU C library defines this for functions which it implements
18071     to always fail with ENOSYS.  Some functions are actually named
18072     something starting with __ and the normal name is an alias.  */
18073 #if defined __stub_dlopen || defined __stub___dlopen
18074 choke me
18075 #endif
18076
18077 int
18078 main ()
18079 {
18080 return dlopen ();
18081   ;
18082   return 0;
18083 }
18084 _ACEOF
18085 rm -f conftest.$ac_objext conftest$ac_exeext
18086 if { (ac_try="$ac_link"
18087 case "(($ac_try" in
18088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18089   *) ac_try_echo=$ac_try;;
18090 esac
18091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18092   (eval "$ac_link") 2>conftest.er1
18093   ac_status=$?
18094   grep -v '^ *+' conftest.er1 >conftest.err
18095   rm -f conftest.er1
18096   cat conftest.err >&5
18097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18098   (exit $ac_status); } && {
18099          test -z "$ac_c_werror_flag" ||
18100          test ! -s conftest.err
18101        } && test -s conftest$ac_exeext &&
18102        $as_test_x conftest$ac_exeext; then
18103   ac_cv_func_dlopen=yes
18104 else
18105   echo "$as_me: failed program was:" >&5
18106 sed 's/^/| /' conftest.$ac_ext >&5
18107
18108         ac_cv_func_dlopen=no
18109 fi
18110
18111 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18112       conftest$ac_exeext conftest.$ac_ext
18113 fi
18114 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18115 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
18116 if test $ac_cv_func_dlopen = yes; then
18117   lt_cv_dlopen="dlopen"
18118 else
18119   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18120 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
18121 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18122   echo $ECHO_N "(cached) $ECHO_C" >&6
18123 else
18124   ac_check_lib_save_LIBS=$LIBS
18125 LIBS="-ldl  $LIBS"
18126 cat >conftest.$ac_ext <<_ACEOF
18127 /* confdefs.h.  */
18128 _ACEOF
18129 cat confdefs.h >>conftest.$ac_ext
18130 cat >>conftest.$ac_ext <<_ACEOF
18131 /* end confdefs.h.  */
18132
18133 /* Override any GCC internal prototype to avoid an error.
18134    Use char because int might match the return type of a GCC
18135    builtin and then its argument prototype would still apply.  */
18136 #ifdef __cplusplus
18137 extern "C"
18138 #endif
18139 char dlopen ();
18140 int
18141 main ()
18142 {
18143 return dlopen ();
18144   ;
18145   return 0;
18146 }
18147 _ACEOF
18148 rm -f conftest.$ac_objext conftest$ac_exeext
18149 if { (ac_try="$ac_link"
18150 case "(($ac_try" in
18151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18152   *) ac_try_echo=$ac_try;;
18153 esac
18154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18155   (eval "$ac_link") 2>conftest.er1
18156   ac_status=$?
18157   grep -v '^ *+' conftest.er1 >conftest.err
18158   rm -f conftest.er1
18159   cat conftest.err >&5
18160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18161   (exit $ac_status); } && {
18162          test -z "$ac_c_werror_flag" ||
18163          test ! -s conftest.err
18164        } && test -s conftest$ac_exeext &&
18165        $as_test_x conftest$ac_exeext; then
18166   ac_cv_lib_dl_dlopen=yes
18167 else
18168   echo "$as_me: failed program was:" >&5
18169 sed 's/^/| /' conftest.$ac_ext >&5
18170
18171         ac_cv_lib_dl_dlopen=no
18172 fi
18173
18174 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18175       conftest$ac_exeext conftest.$ac_ext
18176 LIBS=$ac_check_lib_save_LIBS
18177 fi
18178 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18179 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
18180 if test $ac_cv_lib_dl_dlopen = yes; then
18181   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18182 else
18183   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18184 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
18185 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18186   echo $ECHO_N "(cached) $ECHO_C" >&6
18187 else
18188   ac_check_lib_save_LIBS=$LIBS
18189 LIBS="-lsvld  $LIBS"
18190 cat >conftest.$ac_ext <<_ACEOF
18191 /* confdefs.h.  */
18192 _ACEOF
18193 cat confdefs.h >>conftest.$ac_ext
18194 cat >>conftest.$ac_ext <<_ACEOF
18195 /* end confdefs.h.  */
18196
18197 /* Override any GCC internal prototype to avoid an error.
18198    Use char because int might match the return type of a GCC
18199    builtin and then its argument prototype would still apply.  */
18200 #ifdef __cplusplus
18201 extern "C"
18202 #endif
18203 char dlopen ();
18204 int
18205 main ()
18206 {
18207 return dlopen ();
18208   ;
18209   return 0;
18210 }
18211 _ACEOF
18212 rm -f conftest.$ac_objext conftest$ac_exeext
18213 if { (ac_try="$ac_link"
18214 case "(($ac_try" in
18215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18216   *) ac_try_echo=$ac_try;;
18217 esac
18218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18219   (eval "$ac_link") 2>conftest.er1
18220   ac_status=$?
18221   grep -v '^ *+' conftest.er1 >conftest.err
18222   rm -f conftest.er1
18223   cat conftest.err >&5
18224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18225   (exit $ac_status); } && {
18226          test -z "$ac_c_werror_flag" ||
18227          test ! -s conftest.err
18228        } && test -s conftest$ac_exeext &&
18229        $as_test_x conftest$ac_exeext; then
18230   ac_cv_lib_svld_dlopen=yes
18231 else
18232   echo "$as_me: failed program was:" >&5
18233 sed 's/^/| /' conftest.$ac_ext >&5
18234
18235         ac_cv_lib_svld_dlopen=no
18236 fi
18237
18238 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18239       conftest$ac_exeext conftest.$ac_ext
18240 LIBS=$ac_check_lib_save_LIBS
18241 fi
18242 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18243 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
18244 if test $ac_cv_lib_svld_dlopen = yes; then
18245   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18246 else
18247   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18248 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
18249 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18250   echo $ECHO_N "(cached) $ECHO_C" >&6
18251 else
18252   ac_check_lib_save_LIBS=$LIBS
18253 LIBS="-ldld  $LIBS"
18254 cat >conftest.$ac_ext <<_ACEOF
18255 /* confdefs.h.  */
18256 _ACEOF
18257 cat confdefs.h >>conftest.$ac_ext
18258 cat >>conftest.$ac_ext <<_ACEOF
18259 /* end confdefs.h.  */
18260
18261 /* Override any GCC internal prototype to avoid an error.
18262    Use char because int might match the return type of a GCC
18263    builtin and then its argument prototype would still apply.  */
18264 #ifdef __cplusplus
18265 extern "C"
18266 #endif
18267 char dld_link ();
18268 int
18269 main ()
18270 {
18271 return dld_link ();
18272   ;
18273   return 0;
18274 }
18275 _ACEOF
18276 rm -f conftest.$ac_objext conftest$ac_exeext
18277 if { (ac_try="$ac_link"
18278 case "(($ac_try" in
18279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18280   *) ac_try_echo=$ac_try;;
18281 esac
18282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18283   (eval "$ac_link") 2>conftest.er1
18284   ac_status=$?
18285   grep -v '^ *+' conftest.er1 >conftest.err
18286   rm -f conftest.er1
18287   cat conftest.err >&5
18288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18289   (exit $ac_status); } && {
18290          test -z "$ac_c_werror_flag" ||
18291          test ! -s conftest.err
18292        } && test -s conftest$ac_exeext &&
18293        $as_test_x conftest$ac_exeext; then
18294   ac_cv_lib_dld_dld_link=yes
18295 else
18296   echo "$as_me: failed program was:" >&5
18297 sed 's/^/| /' conftest.$ac_ext >&5
18298
18299         ac_cv_lib_dld_dld_link=no
18300 fi
18301
18302 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18303       conftest$ac_exeext conftest.$ac_ext
18304 LIBS=$ac_check_lib_save_LIBS
18305 fi
18306 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18307 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
18308 if test $ac_cv_lib_dld_dld_link = yes; then
18309   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18310 fi
18311
18312
18313 fi
18314
18315
18316 fi
18317
18318
18319 fi
18320
18321
18322 fi
18323
18324
18325 fi
18326
18327     ;;
18328   esac
18329
18330   if test "x$lt_cv_dlopen" != xno; then
18331     enable_dlopen=yes
18332   else
18333     enable_dlopen=no
18334   fi
18335
18336   case $lt_cv_dlopen in
18337   dlopen)
18338     save_CPPFLAGS="$CPPFLAGS"
18339     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18340
18341     save_LDFLAGS="$LDFLAGS"
18342     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18343
18344     save_LIBS="$LIBS"
18345     LIBS="$lt_cv_dlopen_libs $LIBS"
18346
18347     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18348 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
18349 if test "${lt_cv_dlopen_self+set}" = set; then
18350   echo $ECHO_N "(cached) $ECHO_C" >&6
18351 else
18352           if test "$cross_compiling" = yes; then :
18353   lt_cv_dlopen_self=cross
18354 else
18355   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18356   lt_status=$lt_dlunknown
18357   cat > conftest.$ac_ext <<EOF
18358 #line 18358 "configure"
18359 #include "confdefs.h"
18360
18361 #if HAVE_DLFCN_H
18362 #include <dlfcn.h>
18363 #endif
18364
18365 #include <stdio.h>
18366
18367 #ifdef RTLD_GLOBAL
18368 #  define LT_DLGLOBAL           RTLD_GLOBAL
18369 #else
18370 #  ifdef DL_GLOBAL
18371 #    define LT_DLGLOBAL         DL_GLOBAL
18372 #  else
18373 #    define LT_DLGLOBAL         0
18374 #  endif
18375 #endif
18376
18377 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18378    find out it does not work in some platform. */
18379 #ifndef LT_DLLAZY_OR_NOW
18380 #  ifdef RTLD_LAZY
18381 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18382 #  else
18383 #    ifdef DL_LAZY
18384 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18385 #    else
18386 #      ifdef RTLD_NOW
18387 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18388 #      else
18389 #        ifdef DL_NOW
18390 #          define LT_DLLAZY_OR_NOW      DL_NOW
18391 #        else
18392 #          define LT_DLLAZY_OR_NOW      0
18393 #        endif
18394 #      endif
18395 #    endif
18396 #  endif
18397 #endif
18398
18399 #ifdef __cplusplus
18400 extern "C" void exit (int);
18401 #endif
18402
18403 void fnord() { int i=42;}
18404 int main ()
18405 {
18406   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18407   int status = $lt_dlunknown;
18408
18409   if (self)
18410     {
18411       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18412       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18413       /* dlclose (self); */
18414     }
18415
18416     exit (status);
18417 }
18418 EOF
18419   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18420   (eval $ac_link) 2>&5
18421   ac_status=$?
18422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18423   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18424     (./conftest; exit; ) 2>/dev/null
18425     lt_status=$?
18426     case x$lt_status in
18427       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18428       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18429       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18430     esac
18431   else :
18432     # compilation failed
18433     lt_cv_dlopen_self=no
18434   fi
18435 fi
18436 rm -fr conftest*
18437
18438
18439 fi
18440 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18441 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
18442
18443     if test "x$lt_cv_dlopen_self" = xyes; then
18444       LDFLAGS="$LDFLAGS $link_static_flag"
18445       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18446 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
18447 if test "${lt_cv_dlopen_self_static+set}" = set; then
18448   echo $ECHO_N "(cached) $ECHO_C" >&6
18449 else
18450           if test "$cross_compiling" = yes; then :
18451   lt_cv_dlopen_self_static=cross
18452 else
18453   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18454   lt_status=$lt_dlunknown
18455   cat > conftest.$ac_ext <<EOF
18456 #line 18456 "configure"
18457 #include "confdefs.h"
18458
18459 #if HAVE_DLFCN_H
18460 #include <dlfcn.h>
18461 #endif
18462
18463 #include <stdio.h>
18464
18465 #ifdef RTLD_GLOBAL
18466 #  define LT_DLGLOBAL           RTLD_GLOBAL
18467 #else
18468 #  ifdef DL_GLOBAL
18469 #    define LT_DLGLOBAL         DL_GLOBAL
18470 #  else
18471 #    define LT_DLGLOBAL         0
18472 #  endif
18473 #endif
18474
18475 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18476    find out it does not work in some platform. */
18477 #ifndef LT_DLLAZY_OR_NOW
18478 #  ifdef RTLD_LAZY
18479 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18480 #  else
18481 #    ifdef DL_LAZY
18482 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18483 #    else
18484 #      ifdef RTLD_NOW
18485 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18486 #      else
18487 #        ifdef DL_NOW
18488 #          define LT_DLLAZY_OR_NOW      DL_NOW
18489 #        else
18490 #          define LT_DLLAZY_OR_NOW      0
18491 #        endif
18492 #      endif
18493 #    endif
18494 #  endif
18495 #endif
18496
18497 #ifdef __cplusplus
18498 extern "C" void exit (int);
18499 #endif
18500
18501 void fnord() { int i=42;}
18502 int main ()
18503 {
18504   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18505   int status = $lt_dlunknown;
18506
18507   if (self)
18508     {
18509       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18510       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18511       /* dlclose (self); */
18512     }
18513
18514     exit (status);
18515 }
18516 EOF
18517   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18518   (eval $ac_link) 2>&5
18519   ac_status=$?
18520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18521   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18522     (./conftest; exit; ) 2>/dev/null
18523     lt_status=$?
18524     case x$lt_status in
18525       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18526       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18527       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18528     esac
18529   else :
18530     # compilation failed
18531     lt_cv_dlopen_self_static=no
18532   fi
18533 fi
18534 rm -fr conftest*
18535
18536
18537 fi
18538 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18539 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
18540     fi
18541
18542     CPPFLAGS="$save_CPPFLAGS"
18543     LDFLAGS="$save_LDFLAGS"
18544     LIBS="$save_LIBS"
18545     ;;
18546   esac
18547
18548   case $lt_cv_dlopen_self in
18549   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18550   *) enable_dlopen_self=unknown ;;
18551   esac
18552
18553   case $lt_cv_dlopen_self_static in
18554   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18555   *) enable_dlopen_self_static=unknown ;;
18556   esac
18557 fi
18558
18559
18560 # The else clause should only fire when bootstrapping the
18561 # libtool distribution, otherwise you forgot to ship ltmain.sh
18562 # with your package, and you will get complaints that there are
18563 # no rules to generate ltmain.sh.
18564 if test -f "$ltmain"; then
18565   # See if we are running on zsh, and set the options which allow our commands through
18566   # without removal of \ escapes.
18567   if test -n "${ZSH_VERSION+set}" ; then
18568     setopt NO_GLOB_SUBST
18569   fi
18570   # Now quote all the things that may contain metacharacters while being
18571   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18572   # variables and quote the copies for generation of the libtool script.
18573   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18574     SED SHELL STRIP \
18575     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18576     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18577     deplibs_check_method reload_flag reload_cmds need_locks \
18578     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18579     lt_cv_sys_global_symbol_to_c_name_address \
18580     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18581     old_postinstall_cmds old_postuninstall_cmds \
18582     compiler_GCJ \
18583     CC_GCJ \
18584     LD_GCJ \
18585     lt_prog_compiler_wl_GCJ \
18586     lt_prog_compiler_pic_GCJ \
18587     lt_prog_compiler_static_GCJ \
18588     lt_prog_compiler_no_builtin_flag_GCJ \
18589     export_dynamic_flag_spec_GCJ \
18590     thread_safe_flag_spec_GCJ \
18591     whole_archive_flag_spec_GCJ \
18592     enable_shared_with_static_runtimes_GCJ \
18593     old_archive_cmds_GCJ \
18594     old_archive_from_new_cmds_GCJ \
18595     predep_objects_GCJ \
18596     postdep_objects_GCJ \
18597     predeps_GCJ \
18598     postdeps_GCJ \
18599     compiler_lib_search_path_GCJ \
18600     archive_cmds_GCJ \
18601     archive_expsym_cmds_GCJ \
18602     postinstall_cmds_GCJ \
18603     postuninstall_cmds_GCJ \
18604     old_archive_from_expsyms_cmds_GCJ \
18605     allow_undefined_flag_GCJ \
18606     no_undefined_flag_GCJ \
18607     export_symbols_cmds_GCJ \
18608     hardcode_libdir_flag_spec_GCJ \
18609     hardcode_libdir_flag_spec_ld_GCJ \
18610     hardcode_libdir_separator_GCJ \
18611     hardcode_automatic_GCJ \
18612     module_cmds_GCJ \
18613     module_expsym_cmds_GCJ \
18614     lt_cv_prog_compiler_c_o_GCJ \
18615     exclude_expsyms_GCJ \
18616     include_expsyms_GCJ; do
18617
18618     case $var in
18619     old_archive_cmds_GCJ | \
18620     old_archive_from_new_cmds_GCJ | \
18621     archive_cmds_GCJ | \
18622     archive_expsym_cmds_GCJ | \
18623     module_cmds_GCJ | \
18624     module_expsym_cmds_GCJ | \
18625     old_archive_from_expsyms_cmds_GCJ | \
18626     export_symbols_cmds_GCJ | \
18627     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18628     postinstall_cmds | postuninstall_cmds | \
18629     old_postinstall_cmds | old_postuninstall_cmds | \
18630     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18631       # Double-quote double-evaled strings.
18632       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18633       ;;
18634     *)
18635       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18636       ;;
18637     esac
18638   done
18639
18640   case $lt_echo in
18641   *'\$0 --fallback-echo"')
18642     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18643     ;;
18644   esac
18645
18646 cfgfile="$ofile"
18647
18648   cat <<__EOF__ >> "$cfgfile"
18649 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18650
18651 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18652
18653 # Shell to use when invoking shell scripts.
18654 SHELL=$lt_SHELL
18655
18656 # Whether or not to build shared libraries.
18657 build_libtool_libs=$enable_shared
18658
18659 # Whether or not to build static libraries.
18660 build_old_libs=$enable_static
18661
18662 # Whether or not to add -lc for building shared libraries.
18663 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18664
18665 # Whether or not to disallow shared libs when runtime libs are static
18666 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18667
18668 # Whether or not to optimize for fast installation.
18669 fast_install=$enable_fast_install
18670
18671 # The host system.
18672 host_alias=$host_alias
18673 host=$host
18674
18675 # An echo program that does not interpret backslashes.
18676 echo=$lt_echo
18677
18678 # The archiver.
18679 AR=$lt_AR
18680 AR_FLAGS=$lt_AR_FLAGS
18681
18682 # A C compiler.
18683 LTCC=$lt_LTCC
18684
18685 # A language-specific compiler.
18686 CC=$lt_compiler_GCJ
18687
18688 # Is the compiler the GNU C compiler?
18689 with_gcc=$GCC_GCJ
18690
18691 # An ERE matcher.
18692 EGREP=$lt_EGREP
18693
18694 # The linker used to build libraries.
18695 LD=$lt_LD_GCJ
18696
18697 # Whether we need hard or soft links.
18698 LN_S=$lt_LN_S
18699
18700 # A BSD-compatible nm program.
18701 NM=$lt_NM
18702
18703 # A symbol stripping program
18704 STRIP=$lt_STRIP
18705
18706 # Used to examine libraries when file_magic_cmd begins "file"
18707 MAGIC_CMD=$MAGIC_CMD
18708
18709 # Used on cygwin: DLL creation program.
18710 DLLTOOL="$DLLTOOL"
18711
18712 # Used on cygwin: object dumper.
18713 OBJDUMP="$OBJDUMP"
18714
18715 # Used on cygwin: assembler.
18716 AS="$AS"
18717
18718 # The name of the directory that contains temporary libtool files.
18719 objdir=$objdir
18720
18721 # How to create reloadable object files.
18722 reload_flag=$lt_reload_flag
18723 reload_cmds=$lt_reload_cmds
18724
18725 # How to pass a linker flag through the compiler.
18726 wl=$lt_lt_prog_compiler_wl_GCJ
18727
18728 # Object file suffix (normally "o").
18729 objext="$ac_objext"
18730
18731 # Old archive suffix (normally "a").
18732 libext="$libext"
18733
18734 # Shared library suffix (normally ".so").
18735 shrext_cmds='$shrext_cmds'
18736
18737 # Executable file suffix (normally "").
18738 exeext="$exeext"
18739
18740 # Additional compiler flags for building library objects.
18741 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18742 pic_mode=$pic_mode
18743
18744 # What is the maximum length of a command?
18745 max_cmd_len=$lt_cv_sys_max_cmd_len
18746
18747 # Does compiler simultaneously support -c and -o options?
18748 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18749
18750 # Must we lock files when doing compilation ?
18751 need_locks=$lt_need_locks
18752
18753 # Do we need the lib prefix for modules?
18754 need_lib_prefix=$need_lib_prefix
18755
18756 # Do we need a version for libraries?
18757 need_version=$need_version
18758
18759 # Whether dlopen is supported.
18760 dlopen_support=$enable_dlopen
18761
18762 # Whether dlopen of programs is supported.
18763 dlopen_self=$enable_dlopen_self
18764
18765 # Whether dlopen of statically linked programs is supported.
18766 dlopen_self_static=$enable_dlopen_self_static
18767
18768 # Compiler flag to prevent dynamic linking.
18769 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18770
18771 # Compiler flag to turn off builtin functions.
18772 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18773
18774 # Compiler flag to allow reflexive dlopens.
18775 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18776
18777 # Compiler flag to generate shared objects directly from archives.
18778 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18779
18780 # Compiler flag to generate thread-safe objects.
18781 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18782
18783 # Library versioning type.
18784 version_type=$version_type
18785
18786 # Format of library name prefix.
18787 libname_spec=$lt_libname_spec
18788
18789 # List of archive names.  First name is the real one, the rest are links.
18790 # The last name is the one that the linker finds with -lNAME.
18791 library_names_spec=$lt_library_names_spec
18792
18793 # The coded name of the library, if different from the real name.
18794 soname_spec=$lt_soname_spec
18795
18796 # Commands used to build and install an old-style archive.
18797 RANLIB=$lt_RANLIB
18798 old_archive_cmds=$lt_old_archive_cmds_GCJ
18799 old_postinstall_cmds=$lt_old_postinstall_cmds
18800 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18801
18802 # Create an old-style archive from a shared archive.
18803 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18804
18805 # Create a temporary old-style archive to link instead of a shared archive.
18806 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18807
18808 # Commands used to build and install a shared archive.
18809 archive_cmds=$lt_archive_cmds_GCJ
18810 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18811 postinstall_cmds=$lt_postinstall_cmds
18812 postuninstall_cmds=$lt_postuninstall_cmds
18813
18814 # Commands used to build a loadable module (assumed same as above if empty)
18815 module_cmds=$lt_module_cmds_GCJ
18816 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18817
18818 # Commands to strip libraries.
18819 old_striplib=$lt_old_striplib
18820 striplib=$lt_striplib
18821
18822 # Dependencies to place before the objects being linked to create a
18823 # shared library.
18824 predep_objects=$lt_predep_objects_GCJ
18825
18826 # Dependencies to place after the objects being linked to create a
18827 # shared library.
18828 postdep_objects=$lt_postdep_objects_GCJ
18829
18830 # Dependencies to place before the objects being linked to create a
18831 # shared library.
18832 predeps=$lt_predeps_GCJ
18833
18834 # Dependencies to place after the objects being linked to create a
18835 # shared library.
18836 postdeps=$lt_postdeps_GCJ
18837
18838 # The library search path used internally by the compiler when linking
18839 # a shared library.
18840 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18841
18842 # Method to check whether dependent libraries are shared objects.
18843 deplibs_check_method=$lt_deplibs_check_method
18844
18845 # Command to use when deplibs_check_method == file_magic.
18846 file_magic_cmd=$lt_file_magic_cmd
18847
18848 # Flag that allows shared libraries with undefined symbols to be built.
18849 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18850
18851 # Flag that forces no undefined symbols.
18852 no_undefined_flag=$lt_no_undefined_flag_GCJ
18853
18854 # Commands used to finish a libtool library installation in a directory.
18855 finish_cmds=$lt_finish_cmds
18856
18857 # Same as above, but a single script fragment to be evaled but not shown.
18858 finish_eval=$lt_finish_eval
18859
18860 # Take the output of nm and produce a listing of raw symbols and C names.
18861 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18862
18863 # Transform the output of nm in a proper C declaration
18864 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18865
18866 # Transform the output of nm in a C name address pair
18867 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18868
18869 # This is the shared library runtime path variable.
18870 runpath_var=$runpath_var
18871
18872 # This is the shared library path variable.
18873 shlibpath_var=$shlibpath_var
18874
18875 # Is shlibpath searched before the hard-coded library search path?
18876 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18877
18878 # How to hardcode a shared library path into an executable.
18879 hardcode_action=$hardcode_action_GCJ
18880
18881 # Whether we should hardcode library paths into libraries.
18882 hardcode_into_libs=$hardcode_into_libs
18883
18884 # Flag to hardcode \$libdir into a binary during linking.
18885 # This must work even if \$libdir does not exist.
18886 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18887
18888 # If ld is used when linking, flag to hardcode \$libdir into
18889 # a binary during linking. This must work even if \$libdir does
18890 # not exist.
18891 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18892
18893 # Whether we need a single -rpath flag with a separated argument.
18894 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18895
18896 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18897 # resulting binary.
18898 hardcode_direct=$hardcode_direct_GCJ
18899
18900 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18901 # resulting binary.
18902 hardcode_minus_L=$hardcode_minus_L_GCJ
18903
18904 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18905 # the resulting binary.
18906 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18907
18908 # Set to yes if building a shared library automatically hardcodes DIR into the library
18909 # and all subsequent libraries and executables linked against it.
18910 hardcode_automatic=$hardcode_automatic_GCJ
18911
18912 # Variables whose values should be saved in libtool wrapper scripts and
18913 # restored at relink time.
18914 variables_saved_for_relink="$variables_saved_for_relink"
18915
18916 # Whether libtool must link a program against all its dependency libraries.
18917 link_all_deplibs=$link_all_deplibs_GCJ
18918
18919 # Compile-time system search path for libraries
18920 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18921
18922 # Run-time system search path for libraries
18923 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18924
18925 # Fix the shell variable \$srcfile for the compiler.
18926 fix_srcfile_path="$fix_srcfile_path_GCJ"
18927
18928 # Set to yes if exported symbols are required.
18929 always_export_symbols=$always_export_symbols_GCJ
18930
18931 # The commands to list exported symbols.
18932 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18933
18934 # The commands to extract the exported symbol list from a shared archive.
18935 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18936
18937 # Symbols that should not be listed in the preloaded symbols.
18938 exclude_expsyms=$lt_exclude_expsyms_GCJ
18939
18940 # Symbols that must always be exported.
18941 include_expsyms=$lt_include_expsyms_GCJ
18942
18943 # ### END LIBTOOL TAG CONFIG: $tagname
18944
18945 __EOF__
18946
18947
18948 else
18949   # If there is no Makefile yet, we rely on a make rule to execute
18950   # `config.status --recheck' to rerun these tests and create the
18951   # libtool script then.
18952   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18953   if test -f "$ltmain_in"; then
18954     test -f Makefile && make "$ltmain"
18955   fi
18956 fi
18957
18958
18959 ac_ext=c
18960 ac_cpp='$CPP $CPPFLAGS'
18961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18963 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18964
18965 CC="$lt_save_CC"
18966
18967         else
18968           tagname=""
18969         fi
18970         ;;
18971
18972       RC)
18973
18974
18975 # Source file extension for RC test sources.
18976 ac_ext=rc
18977
18978 # Object file extension for compiled RC test sources.
18979 objext=o
18980 objext_RC=$objext
18981
18982 # Code to be used in simple compile tests
18983 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18984
18985 # Code to be used in simple link tests
18986 lt_simple_link_test_code="$lt_simple_compile_test_code"
18987
18988 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18989
18990 # If no C compiler was specified, use CC.
18991 LTCC=${LTCC-"$CC"}
18992
18993 # Allow CC to be a program name with arguments.
18994 compiler=$CC
18995
18996
18997 # Allow CC to be a program name with arguments.
18998 lt_save_CC="$CC"
18999 CC=${RC-"windres"}
19000 compiler=$CC
19001 compiler_RC=$CC
19002 lt_cv_prog_compiler_c_o_RC=yes
19003
19004 # The else clause should only fire when bootstrapping the
19005 # libtool distribution, otherwise you forgot to ship ltmain.sh
19006 # with your package, and you will get complaints that there are
19007 # no rules to generate ltmain.sh.
19008 if test -f "$ltmain"; then
19009   # See if we are running on zsh, and set the options which allow our commands through
19010   # without removal of \ escapes.
19011   if test -n "${ZSH_VERSION+set}" ; then
19012     setopt NO_GLOB_SUBST
19013   fi
19014   # Now quote all the things that may contain metacharacters while being
19015   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19016   # variables and quote the copies for generation of the libtool script.
19017   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19018     SED SHELL STRIP \
19019     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19020     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19021     deplibs_check_method reload_flag reload_cmds need_locks \
19022     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19023     lt_cv_sys_global_symbol_to_c_name_address \
19024     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19025     old_postinstall_cmds old_postuninstall_cmds \
19026     compiler_RC \
19027     CC_RC \
19028     LD_RC \
19029     lt_prog_compiler_wl_RC \
19030     lt_prog_compiler_pic_RC \
19031     lt_prog_compiler_static_RC \
19032     lt_prog_compiler_no_builtin_flag_RC \
19033     export_dynamic_flag_spec_RC \
19034     thread_safe_flag_spec_RC \
19035     whole_archive_flag_spec_RC \
19036     enable_shared_with_static_runtimes_RC \
19037     old_archive_cmds_RC \
19038     old_archive_from_new_cmds_RC \
19039     predep_objects_RC \
19040     postdep_objects_RC \
19041     predeps_RC \
19042     postdeps_RC \
19043     compiler_lib_search_path_RC \
19044     archive_cmds_RC \
19045     archive_expsym_cmds_RC \
19046     postinstall_cmds_RC \
19047     postuninstall_cmds_RC \
19048     old_archive_from_expsyms_cmds_RC \
19049     allow_undefined_flag_RC \
19050     no_undefined_flag_RC \
19051     export_symbols_cmds_RC \
19052     hardcode_libdir_flag_spec_RC \
19053     hardcode_libdir_flag_spec_ld_RC \
19054     hardcode_libdir_separator_RC \
19055     hardcode_automatic_RC \
19056     module_cmds_RC \
19057     module_expsym_cmds_RC \
19058     lt_cv_prog_compiler_c_o_RC \
19059     exclude_expsyms_RC \
19060     include_expsyms_RC; do
19061
19062     case $var in
19063     old_archive_cmds_RC | \
19064     old_archive_from_new_cmds_RC | \
19065     archive_cmds_RC | \
19066     archive_expsym_cmds_RC | \
19067     module_cmds_RC | \
19068     module_expsym_cmds_RC | \
19069     old_archive_from_expsyms_cmds_RC | \
19070     export_symbols_cmds_RC | \
19071     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19072     postinstall_cmds | postuninstall_cmds | \
19073     old_postinstall_cmds | old_postuninstall_cmds | \
19074     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19075       # Double-quote double-evaled strings.
19076       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19077       ;;
19078     *)
19079       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19080       ;;
19081     esac
19082   done
19083
19084   case $lt_echo in
19085   *'\$0 --fallback-echo"')
19086     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19087     ;;
19088   esac
19089
19090 cfgfile="$ofile"
19091
19092   cat <<__EOF__ >> "$cfgfile"
19093 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19094
19095 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19096
19097 # Shell to use when invoking shell scripts.
19098 SHELL=$lt_SHELL
19099
19100 # Whether or not to build shared libraries.
19101 build_libtool_libs=$enable_shared
19102
19103 # Whether or not to build static libraries.
19104 build_old_libs=$enable_static
19105
19106 # Whether or not to add -lc for building shared libraries.
19107 build_libtool_need_lc=$archive_cmds_need_lc_RC
19108
19109 # Whether or not to disallow shared libs when runtime libs are static
19110 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19111
19112 # Whether or not to optimize for fast installation.
19113 fast_install=$enable_fast_install
19114
19115 # The host system.
19116 host_alias=$host_alias
19117 host=$host
19118
19119 # An echo program that does not interpret backslashes.
19120 echo=$lt_echo
19121
19122 # The archiver.
19123 AR=$lt_AR
19124 AR_FLAGS=$lt_AR_FLAGS
19125
19126 # A C compiler.
19127 LTCC=$lt_LTCC
19128
19129 # A language-specific compiler.
19130 CC=$lt_compiler_RC
19131
19132 # Is the compiler the GNU C compiler?
19133 with_gcc=$GCC_RC
19134
19135 # An ERE matcher.
19136 EGREP=$lt_EGREP
19137
19138 # The linker used to build libraries.
19139 LD=$lt_LD_RC
19140
19141 # Whether we need hard or soft links.
19142 LN_S=$lt_LN_S
19143
19144 # A BSD-compatible nm program.
19145 NM=$lt_NM
19146
19147 # A symbol stripping program
19148 STRIP=$lt_STRIP
19149
19150 # Used to examine libraries when file_magic_cmd begins "file"
19151 MAGIC_CMD=$MAGIC_CMD
19152
19153 # Used on cygwin: DLL creation program.
19154 DLLTOOL="$DLLTOOL"
19155
19156 # Used on cygwin: object dumper.
19157 OBJDUMP="$OBJDUMP"
19158
19159 # Used on cygwin: assembler.
19160 AS="$AS"
19161
19162 # The name of the directory that contains temporary libtool files.
19163 objdir=$objdir
19164
19165 # How to create reloadable object files.
19166 reload_flag=$lt_reload_flag
19167 reload_cmds=$lt_reload_cmds
19168
19169 # How to pass a linker flag through the compiler.
19170 wl=$lt_lt_prog_compiler_wl_RC
19171
19172 # Object file suffix (normally "o").
19173 objext="$ac_objext"
19174
19175 # Old archive suffix (normally "a").
19176 libext="$libext"
19177
19178 # Shared library suffix (normally ".so").
19179 shrext_cmds='$shrext_cmds'
19180
19181 # Executable file suffix (normally "").
19182 exeext="$exeext"
19183
19184 # Additional compiler flags for building library objects.
19185 pic_flag=$lt_lt_prog_compiler_pic_RC
19186 pic_mode=$pic_mode
19187
19188 # What is the maximum length of a command?
19189 max_cmd_len=$lt_cv_sys_max_cmd_len
19190
19191 # Does compiler simultaneously support -c and -o options?
19192 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19193
19194 # Must we lock files when doing compilation ?
19195 need_locks=$lt_need_locks
19196
19197 # Do we need the lib prefix for modules?
19198 need_lib_prefix=$need_lib_prefix
19199
19200 # Do we need a version for libraries?
19201 need_version=$need_version
19202
19203 # Whether dlopen is supported.
19204 dlopen_support=$enable_dlopen
19205
19206 # Whether dlopen of programs is supported.
19207 dlopen_self=$enable_dlopen_self
19208
19209 # Whether dlopen of statically linked programs is supported.
19210 dlopen_self_static=$enable_dlopen_self_static
19211
19212 # Compiler flag to prevent dynamic linking.
19213 link_static_flag=$lt_lt_prog_compiler_static_RC
19214
19215 # Compiler flag to turn off builtin functions.
19216 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19217
19218 # Compiler flag to allow reflexive dlopens.
19219 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19220
19221 # Compiler flag to generate shared objects directly from archives.
19222 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19223
19224 # Compiler flag to generate thread-safe objects.
19225 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19226
19227 # Library versioning type.
19228 version_type=$version_type
19229
19230 # Format of library name prefix.
19231 libname_spec=$lt_libname_spec
19232
19233 # List of archive names.  First name is the real one, the rest are links.
19234 # The last name is the one that the linker finds with -lNAME.
19235 library_names_spec=$lt_library_names_spec
19236
19237 # The coded name of the library, if different from the real name.
19238 soname_spec=$lt_soname_spec
19239
19240 # Commands used to build and install an old-style archive.
19241 RANLIB=$lt_RANLIB
19242 old_archive_cmds=$lt_old_archive_cmds_RC
19243 old_postinstall_cmds=$lt_old_postinstall_cmds
19244 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19245
19246 # Create an old-style archive from a shared archive.
19247 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19248
19249 # Create a temporary old-style archive to link instead of a shared archive.
19250 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19251
19252 # Commands used to build and install a shared archive.
19253 archive_cmds=$lt_archive_cmds_RC
19254 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19255 postinstall_cmds=$lt_postinstall_cmds
19256 postuninstall_cmds=$lt_postuninstall_cmds
19257
19258 # Commands used to build a loadable module (assumed same as above if empty)
19259 module_cmds=$lt_module_cmds_RC
19260 module_expsym_cmds=$lt_module_expsym_cmds_RC
19261
19262 # Commands to strip libraries.
19263 old_striplib=$lt_old_striplib
19264 striplib=$lt_striplib
19265
19266 # Dependencies to place before the objects being linked to create a
19267 # shared library.
19268 predep_objects=$lt_predep_objects_RC
19269
19270 # Dependencies to place after the objects being linked to create a
19271 # shared library.
19272 postdep_objects=$lt_postdep_objects_RC
19273
19274 # Dependencies to place before the objects being linked to create a
19275 # shared library.
19276 predeps=$lt_predeps_RC
19277
19278 # Dependencies to place after the objects being linked to create a
19279 # shared library.
19280 postdeps=$lt_postdeps_RC
19281
19282 # The library search path used internally by the compiler when linking
19283 # a shared library.
19284 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19285
19286 # Method to check whether dependent libraries are shared objects.
19287 deplibs_check_method=$lt_deplibs_check_method
19288
19289 # Command to use when deplibs_check_method == file_magic.
19290 file_magic_cmd=$lt_file_magic_cmd
19291
19292 # Flag that allows shared libraries with undefined symbols to be built.
19293 allow_undefined_flag=$lt_allow_undefined_flag_RC
19294
19295 # Flag that forces no undefined symbols.
19296 no_undefined_flag=$lt_no_undefined_flag_RC
19297
19298 # Commands used to finish a libtool library installation in a directory.
19299 finish_cmds=$lt_finish_cmds
19300
19301 # Same as above, but a single script fragment to be evaled but not shown.
19302 finish_eval=$lt_finish_eval
19303
19304 # Take the output of nm and produce a listing of raw symbols and C names.
19305 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19306
19307 # Transform the output of nm in a proper C declaration
19308 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19309
19310 # Transform the output of nm in a C name address pair
19311 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19312
19313 # This is the shared library runtime path variable.
19314 runpath_var=$runpath_var
19315
19316 # This is the shared library path variable.
19317 shlibpath_var=$shlibpath_var
19318
19319 # Is shlibpath searched before the hard-coded library search path?
19320 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19321
19322 # How to hardcode a shared library path into an executable.
19323 hardcode_action=$hardcode_action_RC
19324
19325 # Whether we should hardcode library paths into libraries.
19326 hardcode_into_libs=$hardcode_into_libs
19327
19328 # Flag to hardcode \$libdir into a binary during linking.
19329 # This must work even if \$libdir does not exist.
19330 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19331
19332 # If ld is used when linking, flag to hardcode \$libdir into
19333 # a binary during linking. This must work even if \$libdir does
19334 # not exist.
19335 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19336
19337 # Whether we need a single -rpath flag with a separated argument.
19338 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19339
19340 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19341 # resulting binary.
19342 hardcode_direct=$hardcode_direct_RC
19343
19344 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19345 # resulting binary.
19346 hardcode_minus_L=$hardcode_minus_L_RC
19347
19348 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19349 # the resulting binary.
19350 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19351
19352 # Set to yes if building a shared library automatically hardcodes DIR into the library
19353 # and all subsequent libraries and executables linked against it.
19354 hardcode_automatic=$hardcode_automatic_RC
19355
19356 # Variables whose values should be saved in libtool wrapper scripts and
19357 # restored at relink time.
19358 variables_saved_for_relink="$variables_saved_for_relink"
19359
19360 # Whether libtool must link a program against all its dependency libraries.
19361 link_all_deplibs=$link_all_deplibs_RC
19362
19363 # Compile-time system search path for libraries
19364 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19365
19366 # Run-time system search path for libraries
19367 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19368
19369 # Fix the shell variable \$srcfile for the compiler.
19370 fix_srcfile_path="$fix_srcfile_path_RC"
19371
19372 # Set to yes if exported symbols are required.
19373 always_export_symbols=$always_export_symbols_RC
19374
19375 # The commands to list exported symbols.
19376 export_symbols_cmds=$lt_export_symbols_cmds_RC
19377
19378 # The commands to extract the exported symbol list from a shared archive.
19379 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19380
19381 # Symbols that should not be listed in the preloaded symbols.
19382 exclude_expsyms=$lt_exclude_expsyms_RC
19383
19384 # Symbols that must always be exported.
19385 include_expsyms=$lt_include_expsyms_RC
19386
19387 # ### END LIBTOOL TAG CONFIG: $tagname
19388
19389 __EOF__
19390
19391
19392 else
19393   # If there is no Makefile yet, we rely on a make rule to execute
19394   # `config.status --recheck' to rerun these tests and create the
19395   # libtool script then.
19396   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19397   if test -f "$ltmain_in"; then
19398     test -f Makefile && make "$ltmain"
19399   fi
19400 fi
19401
19402
19403 ac_ext=c
19404 ac_cpp='$CPP $CPPFLAGS'
19405 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19406 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19407 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19408
19409 CC="$lt_save_CC"
19410
19411         ;;
19412
19413       *)
19414         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19415 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19416    { (exit 1); exit 1; }; }
19417         ;;
19418       esac
19419
19420       # Append the new tag name to the list of available tags.
19421       if test -n "$tagname" ; then
19422       available_tags="$available_tags $tagname"
19423     fi
19424     fi
19425   done
19426   IFS="$lt_save_ifs"
19427
19428   # Now substitute the updated list of available tags.
19429   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19430     mv "${ofile}T" "$ofile"
19431     chmod +x "$ofile"
19432   else
19433     rm -f "${ofile}T"
19434     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19435 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19436    { (exit 1); exit 1; }; }
19437   fi
19438 fi
19439
19440
19441
19442 # This can be used to rebuild libtool when needed
19443 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19444
19445 # Always use our own libtool.
19446 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19447
19448 # Prevent multiple expansion
19449
19450
19451
19452
19453
19454
19455
19456
19457
19458
19459
19460
19461
19462
19463
19464
19465
19466
19467
19468
19469
19470 { echo "$as_me:$LINENO: checking location of temporary directory" >&5
19471 echo $ECHO_N "checking location of temporary directory... $ECHO_C" >&6; }
19472 if test -d /var/tmp; then
19473         found_tmp=/var/tmp/
19474 elif test -d /usr/tmp; then
19475         found_tmp=/usr/tmp/
19476 else
19477         found_tmp=/tmp/
19478 fi
19479 cat >>confdefs.h <<_ACEOF
19480 #define FOUND_TMP "${found_tmp}"
19481 _ACEOF
19482
19483 { echo "$as_me:$LINENO: result: ${found_tmp}" >&5
19484 echo "${ECHO_T}${found_tmp}" >&6; }
19485
19486 { echo "$as_me:$LINENO: checking for X" >&5
19487 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
19488
19489
19490 # Check whether --with-x was given.
19491 if test "${with_x+set}" = set; then
19492   withval=$with_x;
19493 fi
19494
19495 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
19496 if test "x$with_x" = xno; then
19497   # The user explicitly disabled X.
19498   have_x=disabled
19499 else
19500   case $x_includes,$x_libraries in #(
19501     *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
19502 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
19503    { (exit 1); exit 1; }; };; #(
19504     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
19505   echo $ECHO_N "(cached) $ECHO_C" >&6
19506 else
19507   # One or both of the vars are not set, and there is no cached value.
19508 ac_x_includes=no ac_x_libraries=no
19509 rm -f -r conftest.dir
19510 if mkdir conftest.dir; then
19511   cd conftest.dir
19512   cat >Imakefile <<'_ACEOF'
19513 incroot:
19514         @echo incroot='${INCROOT}'
19515 usrlibdir:
19516         @echo usrlibdir='${USRLIBDIR}'
19517 libdir:
19518         @echo libdir='${LIBDIR}'
19519 _ACEOF
19520   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
19521     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19522     for ac_var in incroot usrlibdir libdir; do
19523       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
19524     done
19525     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
19526     for ac_extension in a so sl; do
19527       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
19528          test -f "$ac_im_libdir/libX11.$ac_extension"; then
19529         ac_im_usrlibdir=$ac_im_libdir; break
19530       fi
19531     done
19532     # Screen out bogus values from the imake configuration.  They are
19533     # bogus both because they are the default anyway, and because
19534     # using them would break gcc on systems where it needs fixed includes.
19535     case $ac_im_incroot in
19536         /usr/include) ac_x_includes= ;;
19537         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
19538     esac
19539     case $ac_im_usrlibdir in
19540         /usr/lib | /lib) ;;
19541         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
19542     esac
19543   fi
19544   cd ..
19545   rm -f -r conftest.dir
19546 fi
19547
19548 # Standard set of common directories for X headers.
19549 # Check X11 before X11Rn because it is often a symlink to the current release.
19550 ac_x_header_dirs='
19551 /usr/X11/include
19552 /usr/X11R6/include
19553 /usr/X11R5/include
19554 /usr/X11R4/include
19555
19556 /usr/include/X11
19557 /usr/include/X11R6
19558 /usr/include/X11R5
19559 /usr/include/X11R4
19560
19561 /usr/local/X11/include
19562 /usr/local/X11R6/include
19563 /usr/local/X11R5/include
19564 /usr/local/X11R4/include
19565
19566 /usr/local/include/X11
19567 /usr/local/include/X11R6
19568 /usr/local/include/X11R5
19569 /usr/local/include/X11R4
19570
19571 /usr/X386/include
19572 /usr/x386/include
19573 /usr/XFree86/include/X11
19574
19575 /usr/include
19576 /usr/local/include
19577 /usr/unsupported/include
19578 /usr/athena/include
19579 /usr/local/x11r5/include
19580 /usr/lpp/Xamples/include
19581
19582 /usr/openwin/include
19583 /usr/openwin/share/include'
19584
19585 if test "$ac_x_includes" = no; then
19586   # Guess where to find include files, by looking for Xlib.h.
19587   # First, try using that file with no special directory specified.
19588   cat >conftest.$ac_ext <<_ACEOF
19589 /* confdefs.h.  */
19590 _ACEOF
19591 cat confdefs.h >>conftest.$ac_ext
19592 cat >>conftest.$ac_ext <<_ACEOF
19593 /* end confdefs.h.  */
19594 #include <X11/Xlib.h>
19595 _ACEOF
19596 if { (ac_try="$ac_cpp conftest.$ac_ext"
19597 case "(($ac_try" in
19598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19599   *) ac_try_echo=$ac_try;;
19600 esac
19601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19602   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19603   ac_status=$?
19604   grep -v '^ *+' conftest.er1 >conftest.err
19605   rm -f conftest.er1
19606   cat conftest.err >&5
19607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19608   (exit $ac_status); } >/dev/null && {
19609          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19610          test ! -s conftest.err
19611        }; then
19612   # We can compile using X headers with no special include directory.
19613 ac_x_includes=
19614 else
19615   echo "$as_me: failed program was:" >&5
19616 sed 's/^/| /' conftest.$ac_ext >&5
19617
19618   for ac_dir in $ac_x_header_dirs; do
19619   if test -r "$ac_dir/X11/Xlib.h"; then
19620     ac_x_includes=$ac_dir
19621     break
19622   fi
19623 done
19624 fi
19625
19626 rm -f conftest.err conftest.$ac_ext
19627 fi # $ac_x_includes = no
19628
19629 if test "$ac_x_libraries" = no; then
19630   # Check for the libraries.
19631   # See if we find them without any special options.
19632   # Don't add to $LIBS permanently.
19633   ac_save_LIBS=$LIBS
19634   LIBS="-lX11 $LIBS"
19635   cat >conftest.$ac_ext <<_ACEOF
19636 /* confdefs.h.  */
19637 _ACEOF
19638 cat confdefs.h >>conftest.$ac_ext
19639 cat >>conftest.$ac_ext <<_ACEOF
19640 /* end confdefs.h.  */
19641 #include <X11/Xlib.h>
19642 int
19643 main ()
19644 {
19645 XrmInitialize ()
19646   ;
19647   return 0;
19648 }
19649 _ACEOF
19650 rm -f conftest.$ac_objext conftest$ac_exeext
19651 if { (ac_try="$ac_link"
19652 case "(($ac_try" in
19653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19654   *) ac_try_echo=$ac_try;;
19655 esac
19656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19657   (eval "$ac_link") 2>conftest.er1
19658   ac_status=$?
19659   grep -v '^ *+' conftest.er1 >conftest.err
19660   rm -f conftest.er1
19661   cat conftest.err >&5
19662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19663   (exit $ac_status); } && {
19664          test -z "$ac_c_werror_flag" ||
19665          test ! -s conftest.err
19666        } && test -s conftest$ac_exeext &&
19667        $as_test_x conftest$ac_exeext; then
19668   LIBS=$ac_save_LIBS
19669 # We can link X programs with no special library path.
19670 ac_x_libraries=
19671 else
19672   echo "$as_me: failed program was:" >&5
19673 sed 's/^/| /' conftest.$ac_ext >&5
19674
19675         LIBS=$ac_save_LIBS
19676 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
19677 do
19678   # Don't even attempt the hair of trying to link an X program!
19679   for ac_extension in a so sl; do
19680     if test -r "$ac_dir/libX11.$ac_extension"; then
19681       ac_x_libraries=$ac_dir
19682       break 2
19683     fi
19684   done
19685 done
19686 fi
19687
19688 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19689       conftest$ac_exeext conftest.$ac_ext
19690 fi # $ac_x_libraries = no
19691
19692 case $ac_x_includes,$ac_x_libraries in #(
19693   no,* | *,no | *\'*)
19694     # Didn't find X, or a directory has "'" in its name.
19695     ac_cv_have_x="have_x=no";; #(
19696   *)
19697     # Record where we found X for the cache.
19698     ac_cv_have_x="have_x=yes\
19699         ac_x_includes='$ac_x_includes'\
19700         ac_x_libraries='$ac_x_libraries'"
19701 esac
19702 fi
19703 ;; #(
19704     *) have_x=yes;;
19705   esac
19706   eval "$ac_cv_have_x"
19707 fi # $with_x != no
19708
19709 if test "$have_x" != yes; then
19710   { echo "$as_me:$LINENO: result: $have_x" >&5
19711 echo "${ECHO_T}$have_x" >&6; }
19712   no_x=yes
19713 else
19714   # If each of the values was on the command line, it overrides each guess.
19715   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
19716   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
19717   # Update the cache value to reflect the command line values.
19718   ac_cv_have_x="have_x=yes\
19719         ac_x_includes='$x_includes'\
19720         ac_x_libraries='$x_libraries'"
19721   { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
19722 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
19723 fi
19724
19725 if test "$no_x" = yes; then
19726   # Not all programs may use this symbol, but it does not hurt to define it.
19727
19728 cat >>confdefs.h <<\_ACEOF
19729 #define X_DISPLAY_MISSING 1
19730 _ACEOF
19731
19732   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
19733 else
19734   if test -n "$x_includes"; then
19735     X_CFLAGS="$X_CFLAGS -I$x_includes"
19736   fi
19737
19738   # It would also be nice to do this for all -L options, not just this one.
19739   if test -n "$x_libraries"; then
19740     X_LIBS="$X_LIBS -L$x_libraries"
19741     # For Solaris; some versions of Sun CC require a space after -R and
19742     # others require no space.  Words are not sufficient . . . .
19743     { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
19744 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
19745     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
19746     ac_xsave_c_werror_flag=$ac_c_werror_flag
19747     ac_c_werror_flag=yes
19748     cat >conftest.$ac_ext <<_ACEOF
19749 /* confdefs.h.  */
19750 _ACEOF
19751 cat confdefs.h >>conftest.$ac_ext
19752 cat >>conftest.$ac_ext <<_ACEOF
19753 /* end confdefs.h.  */
19754
19755 int
19756 main ()
19757 {
19758
19759   ;
19760   return 0;
19761 }
19762 _ACEOF
19763 rm -f conftest.$ac_objext conftest$ac_exeext
19764 if { (ac_try="$ac_link"
19765 case "(($ac_try" in
19766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19767   *) ac_try_echo=$ac_try;;
19768 esac
19769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19770   (eval "$ac_link") 2>conftest.er1
19771   ac_status=$?
19772   grep -v '^ *+' conftest.er1 >conftest.err
19773   rm -f conftest.er1
19774   cat conftest.err >&5
19775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19776   (exit $ac_status); } && {
19777          test -z "$ac_c_werror_flag" ||
19778          test ! -s conftest.err
19779        } && test -s conftest$ac_exeext &&
19780        $as_test_x conftest$ac_exeext; then
19781   { echo "$as_me:$LINENO: result: no" >&5
19782 echo "${ECHO_T}no" >&6; }
19783        X_LIBS="$X_LIBS -R$x_libraries"
19784 else
19785   echo "$as_me: failed program was:" >&5
19786 sed 's/^/| /' conftest.$ac_ext >&5
19787
19788         LIBS="$ac_xsave_LIBS -R $x_libraries"
19789        cat >conftest.$ac_ext <<_ACEOF
19790 /* confdefs.h.  */
19791 _ACEOF
19792 cat confdefs.h >>conftest.$ac_ext
19793 cat >>conftest.$ac_ext <<_ACEOF
19794 /* end confdefs.h.  */
19795
19796 int
19797 main ()
19798 {
19799
19800   ;
19801   return 0;
19802 }
19803 _ACEOF
19804 rm -f conftest.$ac_objext conftest$ac_exeext
19805 if { (ac_try="$ac_link"
19806 case "(($ac_try" in
19807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19808   *) ac_try_echo=$ac_try;;
19809 esac
19810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19811   (eval "$ac_link") 2>conftest.er1
19812   ac_status=$?
19813   grep -v '^ *+' conftest.er1 >conftest.err
19814   rm -f conftest.er1
19815   cat conftest.err >&5
19816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19817   (exit $ac_status); } && {
19818          test -z "$ac_c_werror_flag" ||
19819          test ! -s conftest.err
19820        } && test -s conftest$ac_exeext &&
19821        $as_test_x conftest$ac_exeext; then
19822   { echo "$as_me:$LINENO: result: yes" >&5
19823 echo "${ECHO_T}yes" >&6; }
19824           X_LIBS="$X_LIBS -R $x_libraries"
19825 else
19826   echo "$as_me: failed program was:" >&5
19827 sed 's/^/| /' conftest.$ac_ext >&5
19828
19829         { echo "$as_me:$LINENO: result: neither works" >&5
19830 echo "${ECHO_T}neither works" >&6; }
19831 fi
19832
19833 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19834       conftest$ac_exeext conftest.$ac_ext
19835 fi
19836
19837 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19838       conftest$ac_exeext conftest.$ac_ext
19839     ac_c_werror_flag=$ac_xsave_c_werror_flag
19840     LIBS=$ac_xsave_LIBS
19841   fi
19842
19843   # Check for system-dependent libraries X programs must link with.
19844   # Do this before checking for the system-independent R6 libraries
19845   # (-lICE), since we may need -lsocket or whatever for X linking.
19846
19847   if test "$ISC" = yes; then
19848     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
19849   else
19850     # Martyn Johnson says this is needed for Ultrix, if the X
19851     # libraries were built with DECnet support.  And Karl Berry says
19852     # the Alpha needs dnet_stub (dnet does not exist).
19853     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
19854     cat >conftest.$ac_ext <<_ACEOF
19855 /* confdefs.h.  */
19856 _ACEOF
19857 cat confdefs.h >>conftest.$ac_ext
19858 cat >>conftest.$ac_ext <<_ACEOF
19859 /* end confdefs.h.  */
19860
19861 /* Override any GCC internal prototype to avoid an error.
19862    Use char because int might match the return type of a GCC
19863    builtin and then its argument prototype would still apply.  */
19864 #ifdef __cplusplus
19865 extern "C"
19866 #endif
19867 char XOpenDisplay ();
19868 int
19869 main ()
19870 {
19871 return XOpenDisplay ();
19872   ;
19873   return 0;
19874 }
19875 _ACEOF
19876 rm -f conftest.$ac_objext conftest$ac_exeext
19877 if { (ac_try="$ac_link"
19878 case "(($ac_try" in
19879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19880   *) ac_try_echo=$ac_try;;
19881 esac
19882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19883   (eval "$ac_link") 2>conftest.er1
19884   ac_status=$?
19885   grep -v '^ *+' conftest.er1 >conftest.err
19886   rm -f conftest.er1
19887   cat conftest.err >&5
19888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19889   (exit $ac_status); } && {
19890          test -z "$ac_c_werror_flag" ||
19891          test ! -s conftest.err
19892        } && test -s conftest$ac_exeext &&
19893        $as_test_x conftest$ac_exeext; then
19894   :
19895 else
19896   echo "$as_me: failed program was:" >&5
19897 sed 's/^/| /' conftest.$ac_ext >&5
19898
19899         { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
19900 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
19901 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
19902   echo $ECHO_N "(cached) $ECHO_C" >&6
19903 else
19904   ac_check_lib_save_LIBS=$LIBS
19905 LIBS="-ldnet  $LIBS"
19906 cat >conftest.$ac_ext <<_ACEOF
19907 /* confdefs.h.  */
19908 _ACEOF
19909 cat confdefs.h >>conftest.$ac_ext
19910 cat >>conftest.$ac_ext <<_ACEOF
19911 /* end confdefs.h.  */
19912
19913 /* Override any GCC internal prototype to avoid an error.
19914    Use char because int might match the return type of a GCC
19915    builtin and then its argument prototype would still apply.  */
19916 #ifdef __cplusplus
19917 extern "C"
19918 #endif
19919 char dnet_ntoa ();
19920 int
19921 main ()
19922 {
19923 return dnet_ntoa ();
19924   ;
19925   return 0;
19926 }
19927 _ACEOF
19928 rm -f conftest.$ac_objext conftest$ac_exeext
19929 if { (ac_try="$ac_link"
19930 case "(($ac_try" in
19931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19932   *) ac_try_echo=$ac_try;;
19933 esac
19934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19935   (eval "$ac_link") 2>conftest.er1
19936   ac_status=$?
19937   grep -v '^ *+' conftest.er1 >conftest.err
19938   rm -f conftest.er1
19939   cat conftest.err >&5
19940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19941   (exit $ac_status); } && {
19942          test -z "$ac_c_werror_flag" ||
19943          test ! -s conftest.err
19944        } && test -s conftest$ac_exeext &&
19945        $as_test_x conftest$ac_exeext; then
19946   ac_cv_lib_dnet_dnet_ntoa=yes
19947 else
19948   echo "$as_me: failed program was:" >&5
19949 sed 's/^/| /' conftest.$ac_ext >&5
19950
19951         ac_cv_lib_dnet_dnet_ntoa=no
19952 fi
19953
19954 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19955       conftest$ac_exeext conftest.$ac_ext
19956 LIBS=$ac_check_lib_save_LIBS
19957 fi
19958 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
19959 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
19960 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
19961   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
19962 fi
19963
19964     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
19965       { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
19966 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
19967 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
19968   echo $ECHO_N "(cached) $ECHO_C" >&6
19969 else
19970   ac_check_lib_save_LIBS=$LIBS
19971 LIBS="-ldnet_stub  $LIBS"
19972 cat >conftest.$ac_ext <<_ACEOF
19973 /* confdefs.h.  */
19974 _ACEOF
19975 cat confdefs.h >>conftest.$ac_ext
19976 cat >>conftest.$ac_ext <<_ACEOF
19977 /* end confdefs.h.  */
19978
19979 /* Override any GCC internal prototype to avoid an error.
19980    Use char because int might match the return type of a GCC
19981    builtin and then its argument prototype would still apply.  */
19982 #ifdef __cplusplus
19983 extern "C"
19984 #endif
19985 char dnet_ntoa ();
19986 int
19987 main ()
19988 {
19989 return dnet_ntoa ();
19990   ;
19991   return 0;
19992 }
19993 _ACEOF
19994 rm -f conftest.$ac_objext conftest$ac_exeext
19995 if { (ac_try="$ac_link"
19996 case "(($ac_try" in
19997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19998   *) ac_try_echo=$ac_try;;
19999 esac
20000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20001   (eval "$ac_link") 2>conftest.er1
20002   ac_status=$?
20003   grep -v '^ *+' conftest.er1 >conftest.err
20004   rm -f conftest.er1
20005   cat conftest.err >&5
20006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20007   (exit $ac_status); } && {
20008          test -z "$ac_c_werror_flag" ||
20009          test ! -s conftest.err
20010        } && test -s conftest$ac_exeext &&
20011        $as_test_x conftest$ac_exeext; then
20012   ac_cv_lib_dnet_stub_dnet_ntoa=yes
20013 else
20014   echo "$as_me: failed program was:" >&5
20015 sed 's/^/| /' conftest.$ac_ext >&5
20016
20017         ac_cv_lib_dnet_stub_dnet_ntoa=no
20018 fi
20019
20020 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20021       conftest$ac_exeext conftest.$ac_ext
20022 LIBS=$ac_check_lib_save_LIBS
20023 fi
20024 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
20025 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
20026 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
20027   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
20028 fi
20029
20030     fi
20031 fi
20032
20033 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20034       conftest$ac_exeext conftest.$ac_ext
20035     LIBS="$ac_xsave_LIBS"
20036
20037     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
20038     # to get the SysV transport functions.
20039     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
20040     # needs -lnsl.
20041     # The nsl library prevents programs from opening the X display
20042     # on Irix 5.2, according to T.E. Dickey.
20043     # The functions gethostbyname, getservbyname, and inet_addr are
20044     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
20045     { echo "$as_me:$LINENO: checking for gethostbyname" >&5
20046 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
20047 if test "${ac_cv_func_gethostbyname+set}" = set; then
20048   echo $ECHO_N "(cached) $ECHO_C" >&6
20049 else
20050   cat >conftest.$ac_ext <<_ACEOF
20051 /* confdefs.h.  */
20052 _ACEOF
20053 cat confdefs.h >>conftest.$ac_ext
20054 cat >>conftest.$ac_ext <<_ACEOF
20055 /* end confdefs.h.  */
20056 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
20057    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20058 #define gethostbyname innocuous_gethostbyname
20059
20060 /* System header to define __stub macros and hopefully few prototypes,
20061     which can conflict with char gethostbyname (); below.
20062     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20063     <limits.h> exists even on freestanding compilers.  */
20064
20065 #ifdef __STDC__
20066 # include <limits.h>
20067 #else
20068 # include <assert.h>
20069 #endif
20070
20071 #undef gethostbyname
20072
20073 /* Override any GCC internal prototype to avoid an error.
20074    Use char because int might match the return type of a GCC
20075    builtin and then its argument prototype would still apply.  */
20076 #ifdef __cplusplus
20077 extern "C"
20078 #endif
20079 char gethostbyname ();
20080 /* The GNU C library defines this for functions which it implements
20081     to always fail with ENOSYS.  Some functions are actually named
20082     something starting with __ and the normal name is an alias.  */
20083 #if defined __stub_gethostbyname || defined __stub___gethostbyname
20084 choke me
20085 #endif
20086
20087 int
20088 main ()
20089 {
20090 return gethostbyname ();
20091   ;
20092   return 0;
20093 }
20094 _ACEOF
20095 rm -f conftest.$ac_objext conftest$ac_exeext
20096 if { (ac_try="$ac_link"
20097 case "(($ac_try" in
20098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20099   *) ac_try_echo=$ac_try;;
20100 esac
20101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20102   (eval "$ac_link") 2>conftest.er1
20103   ac_status=$?
20104   grep -v '^ *+' conftest.er1 >conftest.err
20105   rm -f conftest.er1
20106   cat conftest.err >&5
20107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20108   (exit $ac_status); } && {
20109          test -z "$ac_c_werror_flag" ||
20110          test ! -s conftest.err
20111        } && test -s conftest$ac_exeext &&
20112        $as_test_x conftest$ac_exeext; then
20113   ac_cv_func_gethostbyname=yes
20114 else
20115   echo "$as_me: failed program was:" >&5
20116 sed 's/^/| /' conftest.$ac_ext >&5
20117
20118         ac_cv_func_gethostbyname=no
20119 fi
20120
20121 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20122       conftest$ac_exeext conftest.$ac_ext
20123 fi
20124 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
20125 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
20126
20127     if test $ac_cv_func_gethostbyname = no; then
20128       { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
20129 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
20130 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
20131   echo $ECHO_N "(cached) $ECHO_C" >&6
20132 else
20133   ac_check_lib_save_LIBS=$LIBS
20134 LIBS="-lnsl  $LIBS"
20135 cat >conftest.$ac_ext <<_ACEOF
20136 /* confdefs.h.  */
20137 _ACEOF
20138 cat confdefs.h >>conftest.$ac_ext
20139 cat >>conftest.$ac_ext <<_ACEOF
20140 /* end confdefs.h.  */
20141
20142 /* Override any GCC internal prototype to avoid an error.
20143    Use char because int might match the return type of a GCC
20144    builtin and then its argument prototype would still apply.  */
20145 #ifdef __cplusplus
20146 extern "C"
20147 #endif
20148 char gethostbyname ();
20149 int
20150 main ()
20151 {
20152 return gethostbyname ();
20153   ;
20154   return 0;
20155 }
20156 _ACEOF
20157 rm -f conftest.$ac_objext conftest$ac_exeext
20158 if { (ac_try="$ac_link"
20159 case "(($ac_try" in
20160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20161   *) ac_try_echo=$ac_try;;
20162 esac
20163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20164   (eval "$ac_link") 2>conftest.er1
20165   ac_status=$?
20166   grep -v '^ *+' conftest.er1 >conftest.err
20167   rm -f conftest.er1
20168   cat conftest.err >&5
20169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20170   (exit $ac_status); } && {
20171          test -z "$ac_c_werror_flag" ||
20172          test ! -s conftest.err
20173        } && test -s conftest$ac_exeext &&
20174        $as_test_x conftest$ac_exeext; then
20175   ac_cv_lib_nsl_gethostbyname=yes
20176 else
20177   echo "$as_me: failed program was:" >&5
20178 sed 's/^/| /' conftest.$ac_ext >&5
20179
20180         ac_cv_lib_nsl_gethostbyname=no
20181 fi
20182
20183 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20184       conftest$ac_exeext conftest.$ac_ext
20185 LIBS=$ac_check_lib_save_LIBS
20186 fi
20187 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
20188 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
20189 if test $ac_cv_lib_nsl_gethostbyname = yes; then
20190   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
20191 fi
20192
20193       if test $ac_cv_lib_nsl_gethostbyname = no; then
20194         { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
20195 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
20196 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
20197   echo $ECHO_N "(cached) $ECHO_C" >&6
20198 else
20199   ac_check_lib_save_LIBS=$LIBS
20200 LIBS="-lbsd  $LIBS"
20201 cat >conftest.$ac_ext <<_ACEOF
20202 /* confdefs.h.  */
20203 _ACEOF
20204 cat confdefs.h >>conftest.$ac_ext
20205 cat >>conftest.$ac_ext <<_ACEOF
20206 /* end confdefs.h.  */
20207
20208 /* Override any GCC internal prototype to avoid an error.
20209    Use char because int might match the return type of a GCC
20210    builtin and then its argument prototype would still apply.  */
20211 #ifdef __cplusplus
20212 extern "C"
20213 #endif
20214 char gethostbyname ();
20215 int
20216 main ()
20217 {
20218 return gethostbyname ();
20219   ;
20220   return 0;
20221 }
20222 _ACEOF
20223 rm -f conftest.$ac_objext conftest$ac_exeext
20224 if { (ac_try="$ac_link"
20225 case "(($ac_try" in
20226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20227   *) ac_try_echo=$ac_try;;
20228 esac
20229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20230   (eval "$ac_link") 2>conftest.er1
20231   ac_status=$?
20232   grep -v '^ *+' conftest.er1 >conftest.err
20233   rm -f conftest.er1
20234   cat conftest.err >&5
20235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20236   (exit $ac_status); } && {
20237          test -z "$ac_c_werror_flag" ||
20238          test ! -s conftest.err
20239        } && test -s conftest$ac_exeext &&
20240        $as_test_x conftest$ac_exeext; then
20241   ac_cv_lib_bsd_gethostbyname=yes
20242 else
20243   echo "$as_me: failed program was:" >&5
20244 sed 's/^/| /' conftest.$ac_ext >&5
20245
20246         ac_cv_lib_bsd_gethostbyname=no
20247 fi
20248
20249 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20250       conftest$ac_exeext conftest.$ac_ext
20251 LIBS=$ac_check_lib_save_LIBS
20252 fi
20253 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
20254 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
20255 if test $ac_cv_lib_bsd_gethostbyname = yes; then
20256   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
20257 fi
20258
20259       fi
20260     fi
20261
20262     # lieder@skyler.mavd.honeywell.com says without -lsocket,
20263     # socket/setsockopt and other routines are undefined under SCO ODT
20264     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
20265     # on later versions), says Simon Leinen: it contains gethostby*
20266     # variants that don't use the name server (or something).  -lsocket
20267     # must be given before -lnsl if both are needed.  We assume that
20268     # if connect needs -lnsl, so does gethostbyname.
20269     { echo "$as_me:$LINENO: checking for connect" >&5
20270 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
20271 if test "${ac_cv_func_connect+set}" = set; then
20272   echo $ECHO_N "(cached) $ECHO_C" >&6
20273 else
20274   cat >conftest.$ac_ext <<_ACEOF
20275 /* confdefs.h.  */
20276 _ACEOF
20277 cat confdefs.h >>conftest.$ac_ext
20278 cat >>conftest.$ac_ext <<_ACEOF
20279 /* end confdefs.h.  */
20280 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
20281    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20282 #define connect innocuous_connect
20283
20284 /* System header to define __stub macros and hopefully few prototypes,
20285     which can conflict with char connect (); below.
20286     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20287     <limits.h> exists even on freestanding compilers.  */
20288
20289 #ifdef __STDC__
20290 # include <limits.h>
20291 #else
20292 # include <assert.h>
20293 #endif
20294
20295 #undef connect
20296
20297 /* Override any GCC internal prototype to avoid an error.
20298    Use char because int might match the return type of a GCC
20299    builtin and then its argument prototype would still apply.  */
20300 #ifdef __cplusplus
20301 extern "C"
20302 #endif
20303 char connect ();
20304 /* The GNU C library defines this for functions which it implements
20305     to always fail with ENOSYS.  Some functions are actually named
20306     something starting with __ and the normal name is an alias.  */
20307 #if defined __stub_connect || defined __stub___connect
20308 choke me
20309 #endif
20310
20311 int
20312 main ()
20313 {
20314 return connect ();
20315   ;
20316   return 0;
20317 }
20318 _ACEOF
20319 rm -f conftest.$ac_objext conftest$ac_exeext
20320 if { (ac_try="$ac_link"
20321 case "(($ac_try" in
20322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20323   *) ac_try_echo=$ac_try;;
20324 esac
20325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20326   (eval "$ac_link") 2>conftest.er1
20327   ac_status=$?
20328   grep -v '^ *+' conftest.er1 >conftest.err
20329   rm -f conftest.er1
20330   cat conftest.err >&5
20331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20332   (exit $ac_status); } && {
20333          test -z "$ac_c_werror_flag" ||
20334          test ! -s conftest.err
20335        } && test -s conftest$ac_exeext &&
20336        $as_test_x conftest$ac_exeext; then
20337   ac_cv_func_connect=yes
20338 else
20339   echo "$as_me: failed program was:" >&5
20340 sed 's/^/| /' conftest.$ac_ext >&5
20341
20342         ac_cv_func_connect=no
20343 fi
20344
20345 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20346       conftest$ac_exeext conftest.$ac_ext
20347 fi
20348 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
20349 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
20350
20351     if test $ac_cv_func_connect = no; then
20352       { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
20353 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
20354 if test "${ac_cv_lib_socket_connect+set}" = set; then
20355   echo $ECHO_N "(cached) $ECHO_C" >&6
20356 else
20357   ac_check_lib_save_LIBS=$LIBS
20358 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
20359 cat >conftest.$ac_ext <<_ACEOF
20360 /* confdefs.h.  */
20361 _ACEOF
20362 cat confdefs.h >>conftest.$ac_ext
20363 cat >>conftest.$ac_ext <<_ACEOF
20364 /* end confdefs.h.  */
20365
20366 /* Override any GCC internal prototype to avoid an error.
20367    Use char because int might match the return type of a GCC
20368    builtin and then its argument prototype would still apply.  */
20369 #ifdef __cplusplus
20370 extern "C"
20371 #endif
20372 char connect ();
20373 int
20374 main ()
20375 {
20376 return connect ();
20377   ;
20378   return 0;
20379 }
20380 _ACEOF
20381 rm -f conftest.$ac_objext conftest$ac_exeext
20382 if { (ac_try="$ac_link"
20383 case "(($ac_try" in
20384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20385   *) ac_try_echo=$ac_try;;
20386 esac
20387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20388   (eval "$ac_link") 2>conftest.er1
20389   ac_status=$?
20390   grep -v '^ *+' conftest.er1 >conftest.err
20391   rm -f conftest.er1
20392   cat conftest.err >&5
20393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20394   (exit $ac_status); } && {
20395          test -z "$ac_c_werror_flag" ||
20396          test ! -s conftest.err
20397        } && test -s conftest$ac_exeext &&
20398        $as_test_x conftest$ac_exeext; then
20399   ac_cv_lib_socket_connect=yes
20400 else
20401   echo "$as_me: failed program was:" >&5
20402 sed 's/^/| /' conftest.$ac_ext >&5
20403
20404         ac_cv_lib_socket_connect=no
20405 fi
20406
20407 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20408       conftest$ac_exeext conftest.$ac_ext
20409 LIBS=$ac_check_lib_save_LIBS
20410 fi
20411 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
20412 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
20413 if test $ac_cv_lib_socket_connect = yes; then
20414   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
20415 fi
20416
20417     fi
20418
20419     # Guillermo Gomez says -lposix is necessary on A/UX.
20420     { echo "$as_me:$LINENO: checking for remove" >&5
20421 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
20422 if test "${ac_cv_func_remove+set}" = set; then
20423   echo $ECHO_N "(cached) $ECHO_C" >&6
20424 else
20425   cat >conftest.$ac_ext <<_ACEOF
20426 /* confdefs.h.  */
20427 _ACEOF
20428 cat confdefs.h >>conftest.$ac_ext
20429 cat >>conftest.$ac_ext <<_ACEOF
20430 /* end confdefs.h.  */
20431 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
20432    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20433 #define remove innocuous_remove
20434
20435 /* System header to define __stub macros and hopefully few prototypes,
20436     which can conflict with char remove (); below.
20437     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20438     <limits.h> exists even on freestanding compilers.  */
20439
20440 #ifdef __STDC__
20441 # include <limits.h>
20442 #else
20443 # include <assert.h>
20444 #endif
20445
20446 #undef remove
20447
20448 /* Override any GCC internal prototype to avoid an error.
20449    Use char because int might match the return type of a GCC
20450    builtin and then its argument prototype would still apply.  */
20451 #ifdef __cplusplus
20452 extern "C"
20453 #endif
20454 char remove ();
20455 /* The GNU C library defines this for functions which it implements
20456     to always fail with ENOSYS.  Some functions are actually named
20457     something starting with __ and the normal name is an alias.  */
20458 #if defined __stub_remove || defined __stub___remove
20459 choke me
20460 #endif
20461
20462 int
20463 main ()
20464 {
20465 return remove ();
20466   ;
20467   return 0;
20468 }
20469 _ACEOF
20470 rm -f conftest.$ac_objext conftest$ac_exeext
20471 if { (ac_try="$ac_link"
20472 case "(($ac_try" in
20473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20474   *) ac_try_echo=$ac_try;;
20475 esac
20476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20477   (eval "$ac_link") 2>conftest.er1
20478   ac_status=$?
20479   grep -v '^ *+' conftest.er1 >conftest.err
20480   rm -f conftest.er1
20481   cat conftest.err >&5
20482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20483   (exit $ac_status); } && {
20484          test -z "$ac_c_werror_flag" ||
20485          test ! -s conftest.err
20486        } && test -s conftest$ac_exeext &&
20487        $as_test_x conftest$ac_exeext; then
20488   ac_cv_func_remove=yes
20489 else
20490   echo "$as_me: failed program was:" >&5
20491 sed 's/^/| /' conftest.$ac_ext >&5
20492
20493         ac_cv_func_remove=no
20494 fi
20495
20496 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20497       conftest$ac_exeext conftest.$ac_ext
20498 fi
20499 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
20500 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
20501
20502     if test $ac_cv_func_remove = no; then
20503       { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
20504 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
20505 if test "${ac_cv_lib_posix_remove+set}" = set; then
20506   echo $ECHO_N "(cached) $ECHO_C" >&6
20507 else
20508   ac_check_lib_save_LIBS=$LIBS
20509 LIBS="-lposix  $LIBS"
20510 cat >conftest.$ac_ext <<_ACEOF
20511 /* confdefs.h.  */
20512 _ACEOF
20513 cat confdefs.h >>conftest.$ac_ext
20514 cat >>conftest.$ac_ext <<_ACEOF
20515 /* end confdefs.h.  */
20516
20517 /* Override any GCC internal prototype to avoid an error.
20518    Use char because int might match the return type of a GCC
20519    builtin and then its argument prototype would still apply.  */
20520 #ifdef __cplusplus
20521 extern "C"
20522 #endif
20523 char remove ();
20524 int
20525 main ()
20526 {
20527 return remove ();
20528   ;
20529   return 0;
20530 }
20531 _ACEOF
20532 rm -f conftest.$ac_objext conftest$ac_exeext
20533 if { (ac_try="$ac_link"
20534 case "(($ac_try" in
20535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20536   *) ac_try_echo=$ac_try;;
20537 esac
20538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20539   (eval "$ac_link") 2>conftest.er1
20540   ac_status=$?
20541   grep -v '^ *+' conftest.er1 >conftest.err
20542   rm -f conftest.er1
20543   cat conftest.err >&5
20544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20545   (exit $ac_status); } && {
20546          test -z "$ac_c_werror_flag" ||
20547          test ! -s conftest.err
20548        } && test -s conftest$ac_exeext &&
20549        $as_test_x conftest$ac_exeext; then
20550   ac_cv_lib_posix_remove=yes
20551 else
20552   echo "$as_me: failed program was:" >&5
20553 sed 's/^/| /' conftest.$ac_ext >&5
20554
20555         ac_cv_lib_posix_remove=no
20556 fi
20557
20558 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20559       conftest$ac_exeext conftest.$ac_ext
20560 LIBS=$ac_check_lib_save_LIBS
20561 fi
20562 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
20563 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
20564 if test $ac_cv_lib_posix_remove = yes; then
20565   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
20566 fi
20567
20568     fi
20569
20570     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
20571     { echo "$as_me:$LINENO: checking for shmat" >&5
20572 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
20573 if test "${ac_cv_func_shmat+set}" = set; then
20574   echo $ECHO_N "(cached) $ECHO_C" >&6
20575 else
20576   cat >conftest.$ac_ext <<_ACEOF
20577 /* confdefs.h.  */
20578 _ACEOF
20579 cat confdefs.h >>conftest.$ac_ext
20580 cat >>conftest.$ac_ext <<_ACEOF
20581 /* end confdefs.h.  */
20582 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
20583    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20584 #define shmat innocuous_shmat
20585
20586 /* System header to define __stub macros and hopefully few prototypes,
20587     which can conflict with char shmat (); below.
20588     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20589     <limits.h> exists even on freestanding compilers.  */
20590
20591 #ifdef __STDC__
20592 # include <limits.h>
20593 #else
20594 # include <assert.h>
20595 #endif
20596
20597 #undef shmat
20598
20599 /* Override any GCC internal prototype to avoid an error.
20600    Use char because int might match the return type of a GCC
20601    builtin and then its argument prototype would still apply.  */
20602 #ifdef __cplusplus
20603 extern "C"
20604 #endif
20605 char shmat ();
20606 /* The GNU C library defines this for functions which it implements
20607     to always fail with ENOSYS.  Some functions are actually named
20608     something starting with __ and the normal name is an alias.  */
20609 #if defined __stub_shmat || defined __stub___shmat
20610 choke me
20611 #endif
20612
20613 int
20614 main ()
20615 {
20616 return shmat ();
20617   ;
20618   return 0;
20619 }
20620 _ACEOF
20621 rm -f conftest.$ac_objext conftest$ac_exeext
20622 if { (ac_try="$ac_link"
20623 case "(($ac_try" in
20624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20625   *) ac_try_echo=$ac_try;;
20626 esac
20627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20628   (eval "$ac_link") 2>conftest.er1
20629   ac_status=$?
20630   grep -v '^ *+' conftest.er1 >conftest.err
20631   rm -f conftest.er1
20632   cat conftest.err >&5
20633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20634   (exit $ac_status); } && {
20635          test -z "$ac_c_werror_flag" ||
20636          test ! -s conftest.err
20637        } && test -s conftest$ac_exeext &&
20638        $as_test_x conftest$ac_exeext; then
20639   ac_cv_func_shmat=yes
20640 else
20641   echo "$as_me: failed program was:" >&5
20642 sed 's/^/| /' conftest.$ac_ext >&5
20643
20644         ac_cv_func_shmat=no
20645 fi
20646
20647 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20648       conftest$ac_exeext conftest.$ac_ext
20649 fi
20650 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
20651 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
20652
20653     if test $ac_cv_func_shmat = no; then
20654       { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
20655 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
20656 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
20657   echo $ECHO_N "(cached) $ECHO_C" >&6
20658 else
20659   ac_check_lib_save_LIBS=$LIBS
20660 LIBS="-lipc  $LIBS"
20661 cat >conftest.$ac_ext <<_ACEOF
20662 /* confdefs.h.  */
20663 _ACEOF
20664 cat confdefs.h >>conftest.$ac_ext
20665 cat >>conftest.$ac_ext <<_ACEOF
20666 /* end confdefs.h.  */
20667
20668 /* Override any GCC internal prototype to avoid an error.
20669    Use char because int might match the return type of a GCC
20670    builtin and then its argument prototype would still apply.  */
20671 #ifdef __cplusplus
20672 extern "C"
20673 #endif
20674 char shmat ();
20675 int
20676 main ()
20677 {
20678 return shmat ();
20679   ;
20680   return 0;
20681 }
20682 _ACEOF
20683 rm -f conftest.$ac_objext conftest$ac_exeext
20684 if { (ac_try="$ac_link"
20685 case "(($ac_try" in
20686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20687   *) ac_try_echo=$ac_try;;
20688 esac
20689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20690   (eval "$ac_link") 2>conftest.er1
20691   ac_status=$?
20692   grep -v '^ *+' conftest.er1 >conftest.err
20693   rm -f conftest.er1
20694   cat conftest.err >&5
20695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20696   (exit $ac_status); } && {
20697          test -z "$ac_c_werror_flag" ||
20698          test ! -s conftest.err
20699        } && test -s conftest$ac_exeext &&
20700        $as_test_x conftest$ac_exeext; then
20701   ac_cv_lib_ipc_shmat=yes
20702 else
20703   echo "$as_me: failed program was:" >&5
20704 sed 's/^/| /' conftest.$ac_ext >&5
20705
20706         ac_cv_lib_ipc_shmat=no
20707 fi
20708
20709 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20710       conftest$ac_exeext conftest.$ac_ext
20711 LIBS=$ac_check_lib_save_LIBS
20712 fi
20713 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
20714 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
20715 if test $ac_cv_lib_ipc_shmat = yes; then
20716   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
20717 fi
20718
20719     fi
20720   fi
20721
20722   # Check for libraries that X11R6 Xt/Xaw programs need.
20723   ac_save_LDFLAGS=$LDFLAGS
20724   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
20725   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
20726   # check for ICE first), but we must link in the order -lSM -lICE or
20727   # we get undefined symbols.  So assume we have SM if we have ICE.
20728   # These have to be linked with before -lX11, unlike the other
20729   # libraries we check for below, so use a different variable.
20730   # John Interrante, Karl Berry
20731   { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
20732 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
20733 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
20734   echo $ECHO_N "(cached) $ECHO_C" >&6
20735 else
20736   ac_check_lib_save_LIBS=$LIBS
20737 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
20738 cat >conftest.$ac_ext <<_ACEOF
20739 /* confdefs.h.  */
20740 _ACEOF
20741 cat confdefs.h >>conftest.$ac_ext
20742 cat >>conftest.$ac_ext <<_ACEOF
20743 /* end confdefs.h.  */
20744
20745 /* Override any GCC internal prototype to avoid an error.
20746    Use char because int might match the return type of a GCC
20747    builtin and then its argument prototype would still apply.  */
20748 #ifdef __cplusplus
20749 extern "C"
20750 #endif
20751 char IceConnectionNumber ();
20752 int
20753 main ()
20754 {
20755 return IceConnectionNumber ();
20756   ;
20757   return 0;
20758 }
20759 _ACEOF
20760 rm -f conftest.$ac_objext conftest$ac_exeext
20761 if { (ac_try="$ac_link"
20762 case "(($ac_try" in
20763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20764   *) ac_try_echo=$ac_try;;
20765 esac
20766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20767   (eval "$ac_link") 2>conftest.er1
20768   ac_status=$?
20769   grep -v '^ *+' conftest.er1 >conftest.err
20770   rm -f conftest.er1
20771   cat conftest.err >&5
20772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20773   (exit $ac_status); } && {
20774          test -z "$ac_c_werror_flag" ||
20775          test ! -s conftest.err
20776        } && test -s conftest$ac_exeext &&
20777        $as_test_x conftest$ac_exeext; then
20778   ac_cv_lib_ICE_IceConnectionNumber=yes
20779 else
20780   echo "$as_me: failed program was:" >&5
20781 sed 's/^/| /' conftest.$ac_ext >&5
20782
20783         ac_cv_lib_ICE_IceConnectionNumber=no
20784 fi
20785
20786 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20787       conftest$ac_exeext conftest.$ac_ext
20788 LIBS=$ac_check_lib_save_LIBS
20789 fi
20790 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
20791 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
20792 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
20793   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
20794 fi
20795
20796   LDFLAGS=$ac_save_LDFLAGS
20797
20798 fi
20799
20800 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20801 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20802 if test "${ac_cv_header_stdc+set}" = set; then
20803   echo $ECHO_N "(cached) $ECHO_C" >&6
20804 else
20805   cat >conftest.$ac_ext <<_ACEOF
20806 /* confdefs.h.  */
20807 _ACEOF
20808 cat confdefs.h >>conftest.$ac_ext
20809 cat >>conftest.$ac_ext <<_ACEOF
20810 /* end confdefs.h.  */
20811 #include <stdlib.h>
20812 #include <stdarg.h>
20813 #include <string.h>
20814 #include <float.h>
20815
20816 int
20817 main ()
20818 {
20819
20820   ;
20821   return 0;
20822 }
20823 _ACEOF
20824 rm -f conftest.$ac_objext
20825 if { (ac_try="$ac_compile"
20826 case "(($ac_try" in
20827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20828   *) ac_try_echo=$ac_try;;
20829 esac
20830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20831   (eval "$ac_compile") 2>conftest.er1
20832   ac_status=$?
20833   grep -v '^ *+' conftest.er1 >conftest.err
20834   rm -f conftest.er1
20835   cat conftest.err >&5
20836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20837   (exit $ac_status); } && {
20838          test -z "$ac_c_werror_flag" ||
20839          test ! -s conftest.err
20840        } && test -s conftest.$ac_objext; then
20841   ac_cv_header_stdc=yes
20842 else
20843   echo "$as_me: failed program was:" >&5
20844 sed 's/^/| /' conftest.$ac_ext >&5
20845
20846         ac_cv_header_stdc=no
20847 fi
20848
20849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20850
20851 if test $ac_cv_header_stdc = yes; then
20852   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20853   cat >conftest.$ac_ext <<_ACEOF
20854 /* confdefs.h.  */
20855 _ACEOF
20856 cat confdefs.h >>conftest.$ac_ext
20857 cat >>conftest.$ac_ext <<_ACEOF
20858 /* end confdefs.h.  */
20859 #include <string.h>
20860
20861 _ACEOF
20862 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20863   $EGREP "memchr" >/dev/null 2>&1; then
20864   :
20865 else
20866   ac_cv_header_stdc=no
20867 fi
20868 rm -f conftest*
20869
20870 fi
20871
20872 if test $ac_cv_header_stdc = yes; then
20873   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20874   cat >conftest.$ac_ext <<_ACEOF
20875 /* confdefs.h.  */
20876 _ACEOF
20877 cat confdefs.h >>conftest.$ac_ext
20878 cat >>conftest.$ac_ext <<_ACEOF
20879 /* end confdefs.h.  */
20880 #include <stdlib.h>
20881
20882 _ACEOF
20883 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20884   $EGREP "free" >/dev/null 2>&1; then
20885   :
20886 else
20887   ac_cv_header_stdc=no
20888 fi
20889 rm -f conftest*
20890
20891 fi
20892
20893 if test $ac_cv_header_stdc = yes; then
20894   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20895   if test "$cross_compiling" = yes; then
20896   :
20897 else
20898   cat >conftest.$ac_ext <<_ACEOF
20899 /* confdefs.h.  */
20900 _ACEOF
20901 cat confdefs.h >>conftest.$ac_ext
20902 cat >>conftest.$ac_ext <<_ACEOF
20903 /* end confdefs.h.  */
20904 #include <ctype.h>
20905 #include <stdlib.h>
20906 #if ((' ' & 0x0FF) == 0x020)
20907 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20908 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20909 #else
20910 # define ISLOWER(c) \
20911                    (('a' <= (c) && (c) <= 'i') \
20912                      || ('j' <= (c) && (c) <= 'r') \
20913                      || ('s' <= (c) && (c) <= 'z'))
20914 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20915 #endif
20916
20917 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20918 int
20919 main ()
20920 {
20921   int i;
20922   for (i = 0; i < 256; i++)
20923     if (XOR (islower (i), ISLOWER (i))
20924         || toupper (i) != TOUPPER (i))
20925       return 2;
20926   return 0;
20927 }
20928 _ACEOF
20929 rm -f conftest$ac_exeext
20930 if { (ac_try="$ac_link"
20931 case "(($ac_try" in
20932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20933   *) ac_try_echo=$ac_try;;
20934 esac
20935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20936   (eval "$ac_link") 2>&5
20937   ac_status=$?
20938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20939   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20940   { (case "(($ac_try" in
20941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20942   *) ac_try_echo=$ac_try;;
20943 esac
20944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20945   (eval "$ac_try") 2>&5
20946   ac_status=$?
20947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20948   (exit $ac_status); }; }; then
20949   :
20950 else
20951   echo "$as_me: program exited with status $ac_status" >&5
20952 echo "$as_me: failed program was:" >&5
20953 sed 's/^/| /' conftest.$ac_ext >&5
20954
20955 ( exit $ac_status )
20956 ac_cv_header_stdc=no
20957 fi
20958 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20959 fi
20960
20961
20962 fi
20963 fi
20964 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20965 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20966 if test $ac_cv_header_stdc = yes; then
20967
20968 cat >>confdefs.h <<\_ACEOF
20969 #define STDC_HEADERS 1
20970 _ACEOF
20971
20972 fi
20973
20974 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
20975 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
20976 if test "${ac_cv_header_sys_wait_h+set}" = set; then
20977   echo $ECHO_N "(cached) $ECHO_C" >&6
20978 else
20979   cat >conftest.$ac_ext <<_ACEOF
20980 /* confdefs.h.  */
20981 _ACEOF
20982 cat confdefs.h >>conftest.$ac_ext
20983 cat >>conftest.$ac_ext <<_ACEOF
20984 /* end confdefs.h.  */
20985 #include <sys/types.h>
20986 #include <sys/wait.h>
20987 #ifndef WEXITSTATUS
20988 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
20989 #endif
20990 #ifndef WIFEXITED
20991 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
20992 #endif
20993
20994 int
20995 main ()
20996 {
20997   int s;
20998   wait (&s);
20999   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
21000   ;
21001   return 0;
21002 }
21003 _ACEOF
21004 rm -f conftest.$ac_objext
21005 if { (ac_try="$ac_compile"
21006 case "(($ac_try" in
21007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21008   *) ac_try_echo=$ac_try;;
21009 esac
21010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21011   (eval "$ac_compile") 2>conftest.er1
21012   ac_status=$?
21013   grep -v '^ *+' conftest.er1 >conftest.err
21014   rm -f conftest.er1
21015   cat conftest.err >&5
21016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21017   (exit $ac_status); } && {
21018          test -z "$ac_c_werror_flag" ||
21019          test ! -s conftest.err
21020        } && test -s conftest.$ac_objext; then
21021   ac_cv_header_sys_wait_h=yes
21022 else
21023   echo "$as_me: failed program was:" >&5
21024 sed 's/^/| /' conftest.$ac_ext >&5
21025
21026         ac_cv_header_sys_wait_h=no
21027 fi
21028
21029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21030 fi
21031 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
21032 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
21033 if test $ac_cv_header_sys_wait_h = yes; then
21034
21035 cat >>confdefs.h <<\_ACEOF
21036 #define HAVE_SYS_WAIT_H 1
21037 _ACEOF
21038
21039 fi
21040
21041
21042
21043
21044
21045
21046
21047
21048 for ac_header in fcntl.h paths.h termios.h sgtty.h unistd.h malloc.h term.h
21049 do
21050 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21051 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21052   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21053 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21054 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21055   echo $ECHO_N "(cached) $ECHO_C" >&6
21056 fi
21057 ac_res=`eval echo '${'$as_ac_Header'}'`
21058                { echo "$as_me:$LINENO: result: $ac_res" >&5
21059 echo "${ECHO_T}$ac_res" >&6; }
21060 else
21061   # Is the header compilable?
21062 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21063 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21064 cat >conftest.$ac_ext <<_ACEOF
21065 /* confdefs.h.  */
21066 _ACEOF
21067 cat confdefs.h >>conftest.$ac_ext
21068 cat >>conftest.$ac_ext <<_ACEOF
21069 /* end confdefs.h.  */
21070 $ac_includes_default
21071 #include <$ac_header>
21072 _ACEOF
21073 rm -f conftest.$ac_objext
21074 if { (ac_try="$ac_compile"
21075 case "(($ac_try" in
21076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21077   *) ac_try_echo=$ac_try;;
21078 esac
21079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21080   (eval "$ac_compile") 2>conftest.er1
21081   ac_status=$?
21082   grep -v '^ *+' conftest.er1 >conftest.err
21083   rm -f conftest.er1
21084   cat conftest.err >&5
21085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21086   (exit $ac_status); } && {
21087          test -z "$ac_c_werror_flag" ||
21088          test ! -s conftest.err
21089        } && test -s conftest.$ac_objext; then
21090   ac_header_compiler=yes
21091 else
21092   echo "$as_me: failed program was:" >&5
21093 sed 's/^/| /' conftest.$ac_ext >&5
21094
21095         ac_header_compiler=no
21096 fi
21097
21098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21099 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21100 echo "${ECHO_T}$ac_header_compiler" >&6; }
21101
21102 # Is the header present?
21103 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21104 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21105 cat >conftest.$ac_ext <<_ACEOF
21106 /* confdefs.h.  */
21107 _ACEOF
21108 cat confdefs.h >>conftest.$ac_ext
21109 cat >>conftest.$ac_ext <<_ACEOF
21110 /* end confdefs.h.  */
21111 #include <$ac_header>
21112 _ACEOF
21113 if { (ac_try="$ac_cpp conftest.$ac_ext"
21114 case "(($ac_try" in
21115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21116   *) ac_try_echo=$ac_try;;
21117 esac
21118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21119   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21120   ac_status=$?
21121   grep -v '^ *+' conftest.er1 >conftest.err
21122   rm -f conftest.er1
21123   cat conftest.err >&5
21124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21125   (exit $ac_status); } >/dev/null && {
21126          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21127          test ! -s conftest.err
21128        }; then
21129   ac_header_preproc=yes
21130 else
21131   echo "$as_me: failed program was:" >&5
21132 sed 's/^/| /' conftest.$ac_ext >&5
21133
21134   ac_header_preproc=no
21135 fi
21136
21137 rm -f conftest.err conftest.$ac_ext
21138 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21139 echo "${ECHO_T}$ac_header_preproc" >&6; }
21140
21141 # So?  What about this header?
21142 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21143   yes:no: )
21144     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21145 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21146     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21147 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21148     ac_header_preproc=yes
21149     ;;
21150   no:yes:* )
21151     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21152 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21153     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21154 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21155     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21156 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21157     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21158 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21159     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21160 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21161     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21162 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21163
21164     ;;
21165 esac
21166 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21167 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21168 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21169   echo $ECHO_N "(cached) $ECHO_C" >&6
21170 else
21171   eval "$as_ac_Header=\$ac_header_preproc"
21172 fi
21173 ac_res=`eval echo '${'$as_ac_Header'}'`
21174                { echo "$as_me:$LINENO: result: $ac_res" >&5
21175 echo "${ECHO_T}$ac_res" >&6; }
21176
21177 fi
21178 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21179   cat >>confdefs.h <<_ACEOF
21180 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21181 _ACEOF
21182
21183 fi
21184
21185 done
21186
21187
21188
21189
21190
21191
21192 for ac_header in sys/filio.h sys/ioctl.h sys/time.h sys/file.h sys/utsname.h
21193 do
21194 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21195 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21196   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21197 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21198 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21199   echo $ECHO_N "(cached) $ECHO_C" >&6
21200 fi
21201 ac_res=`eval echo '${'$as_ac_Header'}'`
21202                { echo "$as_me:$LINENO: result: $ac_res" >&5
21203 echo "${ECHO_T}$ac_res" >&6; }
21204 else
21205   # Is the header compilable?
21206 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21207 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21208 cat >conftest.$ac_ext <<_ACEOF
21209 /* confdefs.h.  */
21210 _ACEOF
21211 cat confdefs.h >>conftest.$ac_ext
21212 cat >>conftest.$ac_ext <<_ACEOF
21213 /* end confdefs.h.  */
21214 $ac_includes_default
21215 #include <$ac_header>
21216 _ACEOF
21217 rm -f conftest.$ac_objext
21218 if { (ac_try="$ac_compile"
21219 case "(($ac_try" in
21220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21221   *) ac_try_echo=$ac_try;;
21222 esac
21223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21224   (eval "$ac_compile") 2>conftest.er1
21225   ac_status=$?
21226   grep -v '^ *+' conftest.er1 >conftest.err
21227   rm -f conftest.er1
21228   cat conftest.err >&5
21229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21230   (exit $ac_status); } && {
21231          test -z "$ac_c_werror_flag" ||
21232          test ! -s conftest.err
21233        } && test -s conftest.$ac_objext; then
21234   ac_header_compiler=yes
21235 else
21236   echo "$as_me: failed program was:" >&5
21237 sed 's/^/| /' conftest.$ac_ext >&5
21238
21239         ac_header_compiler=no
21240 fi
21241
21242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21243 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21244 echo "${ECHO_T}$ac_header_compiler" >&6; }
21245
21246 # Is the header present?
21247 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21248 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21249 cat >conftest.$ac_ext <<_ACEOF
21250 /* confdefs.h.  */
21251 _ACEOF
21252 cat confdefs.h >>conftest.$ac_ext
21253 cat >>conftest.$ac_ext <<_ACEOF
21254 /* end confdefs.h.  */
21255 #include <$ac_header>
21256 _ACEOF
21257 if { (ac_try="$ac_cpp conftest.$ac_ext"
21258 case "(($ac_try" in
21259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21260   *) ac_try_echo=$ac_try;;
21261 esac
21262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21263   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21264   ac_status=$?
21265   grep -v '^ *+' conftest.er1 >conftest.err
21266   rm -f conftest.er1
21267   cat conftest.err >&5
21268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21269   (exit $ac_status); } >/dev/null && {
21270          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21271          test ! -s conftest.err
21272        }; then
21273   ac_header_preproc=yes
21274 else
21275   echo "$as_me: failed program was:" >&5
21276 sed 's/^/| /' conftest.$ac_ext >&5
21277
21278   ac_header_preproc=no
21279 fi
21280
21281 rm -f conftest.err conftest.$ac_ext
21282 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21283 echo "${ECHO_T}$ac_header_preproc" >&6; }
21284
21285 # So?  What about this header?
21286 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21287   yes:no: )
21288     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21289 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21290     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21291 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21292     ac_header_preproc=yes
21293     ;;
21294   no:yes:* )
21295     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21296 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21297     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21298 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21299     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21300 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21301     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21302 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21303     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21304 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21305     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21306 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21307
21308     ;;
21309 esac
21310 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21311 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21312 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21313   echo $ECHO_N "(cached) $ECHO_C" >&6
21314 else
21315   eval "$as_ac_Header=\$ac_header_preproc"
21316 fi
21317 ac_res=`eval echo '${'$as_ac_Header'}'`
21318                { echo "$as_me:$LINENO: result: $ac_res" >&5
21319 echo "${ECHO_T}$ac_res" >&6; }
21320
21321 fi
21322 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21323   cat >>confdefs.h <<_ACEOF
21324 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21325 _ACEOF
21326
21327 fi
21328
21329 done
21330
21331
21332
21333
21334
21335
21336 for ac_header in sys/select.h sys/msgbuf.h sys/cdefs.h krb5_err.h termcap.h
21337 do
21338 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21339 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21340   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21341 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21342 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21343   echo $ECHO_N "(cached) $ECHO_C" >&6
21344 fi
21345 ac_res=`eval echo '${'$as_ac_Header'}'`
21346                { echo "$as_me:$LINENO: result: $ac_res" >&5
21347 echo "${ECHO_T}$ac_res" >&6; }
21348 else
21349   # Is the header compilable?
21350 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21351 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21352 cat >conftest.$ac_ext <<_ACEOF
21353 /* confdefs.h.  */
21354 _ACEOF
21355 cat confdefs.h >>conftest.$ac_ext
21356 cat >>conftest.$ac_ext <<_ACEOF
21357 /* end confdefs.h.  */
21358 $ac_includes_default
21359 #include <$ac_header>
21360 _ACEOF
21361 rm -f conftest.$ac_objext
21362 if { (ac_try="$ac_compile"
21363 case "(($ac_try" in
21364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21365   *) ac_try_echo=$ac_try;;
21366 esac
21367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21368   (eval "$ac_compile") 2>conftest.er1
21369   ac_status=$?
21370   grep -v '^ *+' conftest.er1 >conftest.err
21371   rm -f conftest.er1
21372   cat conftest.err >&5
21373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21374   (exit $ac_status); } && {
21375          test -z "$ac_c_werror_flag" ||
21376          test ! -s conftest.err
21377        } && test -s conftest.$ac_objext; then
21378   ac_header_compiler=yes
21379 else
21380   echo "$as_me: failed program was:" >&5
21381 sed 's/^/| /' conftest.$ac_ext >&5
21382
21383         ac_header_compiler=no
21384 fi
21385
21386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21387 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21388 echo "${ECHO_T}$ac_header_compiler" >&6; }
21389
21390 # Is the header present?
21391 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21392 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21393 cat >conftest.$ac_ext <<_ACEOF
21394 /* confdefs.h.  */
21395 _ACEOF
21396 cat confdefs.h >>conftest.$ac_ext
21397 cat >>conftest.$ac_ext <<_ACEOF
21398 /* end confdefs.h.  */
21399 #include <$ac_header>
21400 _ACEOF
21401 if { (ac_try="$ac_cpp conftest.$ac_ext"
21402 case "(($ac_try" in
21403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21404   *) ac_try_echo=$ac_try;;
21405 esac
21406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21407   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21408   ac_status=$?
21409   grep -v '^ *+' conftest.er1 >conftest.err
21410   rm -f conftest.er1
21411   cat conftest.err >&5
21412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21413   (exit $ac_status); } >/dev/null && {
21414          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21415          test ! -s conftest.err
21416        }; then
21417   ac_header_preproc=yes
21418 else
21419   echo "$as_me: failed program was:" >&5
21420 sed 's/^/| /' conftest.$ac_ext >&5
21421
21422   ac_header_preproc=no
21423 fi
21424
21425 rm -f conftest.err conftest.$ac_ext
21426 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21427 echo "${ECHO_T}$ac_header_preproc" >&6; }
21428
21429 # So?  What about this header?
21430 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21431   yes:no: )
21432     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21433 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21434     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21435 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21436     ac_header_preproc=yes
21437     ;;
21438   no:yes:* )
21439     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21440 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21441     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21442 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21443     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21444 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21445     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21446 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21447     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21448 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21449     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21450 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21451
21452     ;;
21453 esac
21454 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21455 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21456 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21457   echo $ECHO_N "(cached) $ECHO_C" >&6
21458 else
21459   eval "$as_ac_Header=\$ac_header_preproc"
21460 fi
21461 ac_res=`eval echo '${'$as_ac_Header'}'`
21462                { echo "$as_me:$LINENO: result: $ac_res" >&5
21463 echo "${ECHO_T}$ac_res" >&6; }
21464
21465 fi
21466 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21467   cat >>confdefs.h <<_ACEOF
21468 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21469 _ACEOF
21470
21471 fi
21472
21473 done
21474
21475
21476 if test "$no_x" != "yes"; then
21477         ZWGC_LIBX11=-lX11
21478 fi
21479
21480
21481
21482 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
21483 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
21484 if test "${ac_cv_type_signal+set}" = set; then
21485   echo $ECHO_N "(cached) $ECHO_C" >&6
21486 else
21487   cat >conftest.$ac_ext <<_ACEOF
21488 /* confdefs.h.  */
21489 _ACEOF
21490 cat confdefs.h >>conftest.$ac_ext
21491 cat >>conftest.$ac_ext <<_ACEOF
21492 /* end confdefs.h.  */
21493 #include <sys/types.h>
21494 #include <signal.h>
21495
21496 int
21497 main ()
21498 {
21499 return *(signal (0, 0)) (0) == 1;
21500   ;
21501   return 0;
21502 }
21503 _ACEOF
21504 rm -f conftest.$ac_objext
21505 if { (ac_try="$ac_compile"
21506 case "(($ac_try" in
21507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21508   *) ac_try_echo=$ac_try;;
21509 esac
21510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21511   (eval "$ac_compile") 2>conftest.er1
21512   ac_status=$?
21513   grep -v '^ *+' conftest.er1 >conftest.err
21514   rm -f conftest.er1
21515   cat conftest.err >&5
21516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21517   (exit $ac_status); } && {
21518          test -z "$ac_c_werror_flag" ||
21519          test ! -s conftest.err
21520        } && test -s conftest.$ac_objext; then
21521   ac_cv_type_signal=int
21522 else
21523   echo "$as_me: failed program was:" >&5
21524 sed 's/^/| /' conftest.$ac_ext >&5
21525
21526         ac_cv_type_signal=void
21527 fi
21528
21529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21530 fi
21531 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
21532 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
21533
21534 cat >>confdefs.h <<_ACEOF
21535 #define RETSIGTYPE $ac_cv_type_signal
21536 _ACEOF
21537
21538
21539 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
21540 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
21541 if test "${ac_cv_type_uid_t+set}" = set; then
21542   echo $ECHO_N "(cached) $ECHO_C" >&6
21543 else
21544   cat >conftest.$ac_ext <<_ACEOF
21545 /* confdefs.h.  */
21546 _ACEOF
21547 cat confdefs.h >>conftest.$ac_ext
21548 cat >>conftest.$ac_ext <<_ACEOF
21549 /* end confdefs.h.  */
21550 #include <sys/types.h>
21551
21552 _ACEOF
21553 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21554   $EGREP "uid_t" >/dev/null 2>&1; then
21555   ac_cv_type_uid_t=yes
21556 else
21557   ac_cv_type_uid_t=no
21558 fi
21559 rm -f conftest*
21560
21561 fi
21562 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
21563 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
21564 if test $ac_cv_type_uid_t = no; then
21565
21566 cat >>confdefs.h <<\_ACEOF
21567 #define uid_t int
21568 _ACEOF
21569
21570
21571 cat >>confdefs.h <<\_ACEOF
21572 #define gid_t int
21573 _ACEOF
21574
21575 fi
21576
21577 { echo "$as_me:$LINENO: checking for short" >&5
21578 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
21579 if test "${ac_cv_type_short+set}" = set; then
21580   echo $ECHO_N "(cached) $ECHO_C" >&6
21581 else
21582   cat >conftest.$ac_ext <<_ACEOF
21583 /* confdefs.h.  */
21584 _ACEOF
21585 cat confdefs.h >>conftest.$ac_ext
21586 cat >>conftest.$ac_ext <<_ACEOF
21587 /* end confdefs.h.  */
21588 $ac_includes_default
21589 typedef short ac__type_new_;
21590 int
21591 main ()
21592 {
21593 if ((ac__type_new_ *) 0)
21594   return 0;
21595 if (sizeof (ac__type_new_))
21596   return 0;
21597   ;
21598   return 0;
21599 }
21600 _ACEOF
21601 rm -f conftest.$ac_objext
21602 if { (ac_try="$ac_compile"
21603 case "(($ac_try" in
21604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21605   *) ac_try_echo=$ac_try;;
21606 esac
21607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21608   (eval "$ac_compile") 2>conftest.er1
21609   ac_status=$?
21610   grep -v '^ *+' conftest.er1 >conftest.err
21611   rm -f conftest.er1
21612   cat conftest.err >&5
21613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21614   (exit $ac_status); } && {
21615          test -z "$ac_c_werror_flag" ||
21616          test ! -s conftest.err
21617        } && test -s conftest.$ac_objext; then
21618   ac_cv_type_short=yes
21619 else
21620   echo "$as_me: failed program was:" >&5
21621 sed 's/^/| /' conftest.$ac_ext >&5
21622
21623         ac_cv_type_short=no
21624 fi
21625
21626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21627 fi
21628 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
21629 echo "${ECHO_T}$ac_cv_type_short" >&6; }
21630
21631 # The cast to long int works around a bug in the HP C Compiler
21632 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21633 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21634 # This bug is HP SR number 8606223364.
21635 { echo "$as_me:$LINENO: checking size of short" >&5
21636 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
21637 if test "${ac_cv_sizeof_short+set}" = set; then
21638   echo $ECHO_N "(cached) $ECHO_C" >&6
21639 else
21640   if test "$cross_compiling" = yes; then
21641   # Depending upon the size, compute the lo and hi bounds.
21642 cat >conftest.$ac_ext <<_ACEOF
21643 /* confdefs.h.  */
21644 _ACEOF
21645 cat confdefs.h >>conftest.$ac_ext
21646 cat >>conftest.$ac_ext <<_ACEOF
21647 /* end confdefs.h.  */
21648 $ac_includes_default
21649    typedef short ac__type_sizeof_;
21650 int
21651 main ()
21652 {
21653 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21654 test_array [0] = 0
21655
21656   ;
21657   return 0;
21658 }
21659 _ACEOF
21660 rm -f conftest.$ac_objext
21661 if { (ac_try="$ac_compile"
21662 case "(($ac_try" in
21663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21664   *) ac_try_echo=$ac_try;;
21665 esac
21666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21667   (eval "$ac_compile") 2>conftest.er1
21668   ac_status=$?
21669   grep -v '^ *+' conftest.er1 >conftest.err
21670   rm -f conftest.er1
21671   cat conftest.err >&5
21672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21673   (exit $ac_status); } && {
21674          test -z "$ac_c_werror_flag" ||
21675          test ! -s conftest.err
21676        } && test -s conftest.$ac_objext; then
21677   ac_lo=0 ac_mid=0
21678   while :; do
21679     cat >conftest.$ac_ext <<_ACEOF
21680 /* confdefs.h.  */
21681 _ACEOF
21682 cat confdefs.h >>conftest.$ac_ext
21683 cat >>conftest.$ac_ext <<_ACEOF
21684 /* end confdefs.h.  */
21685 $ac_includes_default
21686    typedef short ac__type_sizeof_;
21687 int
21688 main ()
21689 {
21690 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21691 test_array [0] = 0
21692
21693   ;
21694   return 0;
21695 }
21696 _ACEOF
21697 rm -f conftest.$ac_objext
21698 if { (ac_try="$ac_compile"
21699 case "(($ac_try" in
21700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21701   *) ac_try_echo=$ac_try;;
21702 esac
21703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21704   (eval "$ac_compile") 2>conftest.er1
21705   ac_status=$?
21706   grep -v '^ *+' conftest.er1 >conftest.err
21707   rm -f conftest.er1
21708   cat conftest.err >&5
21709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21710   (exit $ac_status); } && {
21711          test -z "$ac_c_werror_flag" ||
21712          test ! -s conftest.err
21713        } && test -s conftest.$ac_objext; then
21714   ac_hi=$ac_mid; break
21715 else
21716   echo "$as_me: failed program was:" >&5
21717 sed 's/^/| /' conftest.$ac_ext >&5
21718
21719         ac_lo=`expr $ac_mid + 1`
21720                         if test $ac_lo -le $ac_mid; then
21721                           ac_lo= ac_hi=
21722                           break
21723                         fi
21724                         ac_mid=`expr 2 '*' $ac_mid + 1`
21725 fi
21726
21727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21728   done
21729 else
21730   echo "$as_me: failed program was:" >&5
21731 sed 's/^/| /' conftest.$ac_ext >&5
21732
21733         cat >conftest.$ac_ext <<_ACEOF
21734 /* confdefs.h.  */
21735 _ACEOF
21736 cat confdefs.h >>conftest.$ac_ext
21737 cat >>conftest.$ac_ext <<_ACEOF
21738 /* end confdefs.h.  */
21739 $ac_includes_default
21740    typedef short ac__type_sizeof_;
21741 int
21742 main ()
21743 {
21744 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21745 test_array [0] = 0
21746
21747   ;
21748   return 0;
21749 }
21750 _ACEOF
21751 rm -f conftest.$ac_objext
21752 if { (ac_try="$ac_compile"
21753 case "(($ac_try" in
21754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21755   *) ac_try_echo=$ac_try;;
21756 esac
21757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21758   (eval "$ac_compile") 2>conftest.er1
21759   ac_status=$?
21760   grep -v '^ *+' conftest.er1 >conftest.err
21761   rm -f conftest.er1
21762   cat conftest.err >&5
21763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21764   (exit $ac_status); } && {
21765          test -z "$ac_c_werror_flag" ||
21766          test ! -s conftest.err
21767        } && test -s conftest.$ac_objext; then
21768   ac_hi=-1 ac_mid=-1
21769   while :; do
21770     cat >conftest.$ac_ext <<_ACEOF
21771 /* confdefs.h.  */
21772 _ACEOF
21773 cat confdefs.h >>conftest.$ac_ext
21774 cat >>conftest.$ac_ext <<_ACEOF
21775 /* end confdefs.h.  */
21776 $ac_includes_default
21777    typedef short ac__type_sizeof_;
21778 int
21779 main ()
21780 {
21781 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21782 test_array [0] = 0
21783
21784   ;
21785   return 0;
21786 }
21787 _ACEOF
21788 rm -f conftest.$ac_objext
21789 if { (ac_try="$ac_compile"
21790 case "(($ac_try" in
21791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21792   *) ac_try_echo=$ac_try;;
21793 esac
21794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21795   (eval "$ac_compile") 2>conftest.er1
21796   ac_status=$?
21797   grep -v '^ *+' conftest.er1 >conftest.err
21798   rm -f conftest.er1
21799   cat conftest.err >&5
21800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21801   (exit $ac_status); } && {
21802          test -z "$ac_c_werror_flag" ||
21803          test ! -s conftest.err
21804        } && test -s conftest.$ac_objext; then
21805   ac_lo=$ac_mid; break
21806 else
21807   echo "$as_me: failed program was:" >&5
21808 sed 's/^/| /' conftest.$ac_ext >&5
21809
21810         ac_hi=`expr '(' $ac_mid ')' - 1`
21811                         if test $ac_mid -le $ac_hi; then
21812                           ac_lo= ac_hi=
21813                           break
21814                         fi
21815                         ac_mid=`expr 2 '*' $ac_mid`
21816 fi
21817
21818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21819   done
21820 else
21821   echo "$as_me: failed program was:" >&5
21822 sed 's/^/| /' conftest.$ac_ext >&5
21823
21824         ac_lo= ac_hi=
21825 fi
21826
21827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21828 fi
21829
21830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21831 # Binary search between lo and hi bounds.
21832 while test "x$ac_lo" != "x$ac_hi"; do
21833   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21834   cat >conftest.$ac_ext <<_ACEOF
21835 /* confdefs.h.  */
21836 _ACEOF
21837 cat confdefs.h >>conftest.$ac_ext
21838 cat >>conftest.$ac_ext <<_ACEOF
21839 /* end confdefs.h.  */
21840 $ac_includes_default
21841    typedef short ac__type_sizeof_;
21842 int
21843 main ()
21844 {
21845 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21846 test_array [0] = 0
21847
21848   ;
21849   return 0;
21850 }
21851 _ACEOF
21852 rm -f conftest.$ac_objext
21853 if { (ac_try="$ac_compile"
21854 case "(($ac_try" in
21855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21856   *) ac_try_echo=$ac_try;;
21857 esac
21858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21859   (eval "$ac_compile") 2>conftest.er1
21860   ac_status=$?
21861   grep -v '^ *+' conftest.er1 >conftest.err
21862   rm -f conftest.er1
21863   cat conftest.err >&5
21864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21865   (exit $ac_status); } && {
21866          test -z "$ac_c_werror_flag" ||
21867          test ! -s conftest.err
21868        } && test -s conftest.$ac_objext; then
21869   ac_hi=$ac_mid
21870 else
21871   echo "$as_me: failed program was:" >&5
21872 sed 's/^/| /' conftest.$ac_ext >&5
21873
21874         ac_lo=`expr '(' $ac_mid ')' + 1`
21875 fi
21876
21877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21878 done
21879 case $ac_lo in
21880 ?*) ac_cv_sizeof_short=$ac_lo;;
21881 '') if test "$ac_cv_type_short" = yes; then
21882      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
21883 See \`config.log' for more details." >&5
21884 echo "$as_me: error: cannot compute sizeof (short)
21885 See \`config.log' for more details." >&2;}
21886    { (exit 77); exit 77; }; }
21887    else
21888      ac_cv_sizeof_short=0
21889    fi ;;
21890 esac
21891 else
21892   cat >conftest.$ac_ext <<_ACEOF
21893 /* confdefs.h.  */
21894 _ACEOF
21895 cat confdefs.h >>conftest.$ac_ext
21896 cat >>conftest.$ac_ext <<_ACEOF
21897 /* end confdefs.h.  */
21898 $ac_includes_default
21899    typedef short ac__type_sizeof_;
21900 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21901 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21902 #include <stdio.h>
21903 #include <stdlib.h>
21904 int
21905 main ()
21906 {
21907
21908   FILE *f = fopen ("conftest.val", "w");
21909   if (! f)
21910     return 1;
21911   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21912     {
21913       long int i = longval ();
21914       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21915         return 1;
21916       fprintf (f, "%ld\n", i);
21917     }
21918   else
21919     {
21920       unsigned long int i = ulongval ();
21921       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21922         return 1;
21923       fprintf (f, "%lu\n", i);
21924     }
21925   return ferror (f) || fclose (f) != 0;
21926
21927   ;
21928   return 0;
21929 }
21930 _ACEOF
21931 rm -f conftest$ac_exeext
21932 if { (ac_try="$ac_link"
21933 case "(($ac_try" in
21934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21935   *) ac_try_echo=$ac_try;;
21936 esac
21937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21938   (eval "$ac_link") 2>&5
21939   ac_status=$?
21940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21941   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21942   { (case "(($ac_try" in
21943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21944   *) ac_try_echo=$ac_try;;
21945 esac
21946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21947   (eval "$ac_try") 2>&5
21948   ac_status=$?
21949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21950   (exit $ac_status); }; }; then
21951   ac_cv_sizeof_short=`cat conftest.val`
21952 else
21953   echo "$as_me: program exited with status $ac_status" >&5
21954 echo "$as_me: failed program was:" >&5
21955 sed 's/^/| /' conftest.$ac_ext >&5
21956
21957 ( exit $ac_status )
21958 if test "$ac_cv_type_short" = yes; then
21959      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
21960 See \`config.log' for more details." >&5
21961 echo "$as_me: error: cannot compute sizeof (short)
21962 See \`config.log' for more details." >&2;}
21963    { (exit 77); exit 77; }; }
21964    else
21965      ac_cv_sizeof_short=0
21966    fi
21967 fi
21968 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21969 fi
21970 rm -f conftest.val
21971 fi
21972 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
21973 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
21974
21975
21976
21977 cat >>confdefs.h <<_ACEOF
21978 #define SIZEOF_SHORT $ac_cv_sizeof_short
21979 _ACEOF
21980
21981
21982 { echo "$as_me:$LINENO: checking for int" >&5
21983 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
21984 if test "${ac_cv_type_int+set}" = set; then
21985   echo $ECHO_N "(cached) $ECHO_C" >&6
21986 else
21987   cat >conftest.$ac_ext <<_ACEOF
21988 /* confdefs.h.  */
21989 _ACEOF
21990 cat confdefs.h >>conftest.$ac_ext
21991 cat >>conftest.$ac_ext <<_ACEOF
21992 /* end confdefs.h.  */
21993 $ac_includes_default
21994 typedef int ac__type_new_;
21995 int
21996 main ()
21997 {
21998 if ((ac__type_new_ *) 0)
21999   return 0;
22000 if (sizeof (ac__type_new_))
22001   return 0;
22002   ;
22003   return 0;
22004 }
22005 _ACEOF
22006 rm -f conftest.$ac_objext
22007 if { (ac_try="$ac_compile"
22008 case "(($ac_try" in
22009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22010   *) ac_try_echo=$ac_try;;
22011 esac
22012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22013   (eval "$ac_compile") 2>conftest.er1
22014   ac_status=$?
22015   grep -v '^ *+' conftest.er1 >conftest.err
22016   rm -f conftest.er1
22017   cat conftest.err >&5
22018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22019   (exit $ac_status); } && {
22020          test -z "$ac_c_werror_flag" ||
22021          test ! -s conftest.err
22022        } && test -s conftest.$ac_objext; then
22023   ac_cv_type_int=yes
22024 else
22025   echo "$as_me: failed program was:" >&5
22026 sed 's/^/| /' conftest.$ac_ext >&5
22027
22028         ac_cv_type_int=no
22029 fi
22030
22031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22032 fi
22033 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
22034 echo "${ECHO_T}$ac_cv_type_int" >&6; }
22035
22036 # The cast to long int works around a bug in the HP C Compiler
22037 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22038 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22039 # This bug is HP SR number 8606223364.
22040 { echo "$as_me:$LINENO: checking size of int" >&5
22041 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
22042 if test "${ac_cv_sizeof_int+set}" = set; then
22043   echo $ECHO_N "(cached) $ECHO_C" >&6
22044 else
22045   if test "$cross_compiling" = yes; then
22046   # Depending upon the size, compute the lo and hi bounds.
22047 cat >conftest.$ac_ext <<_ACEOF
22048 /* confdefs.h.  */
22049 _ACEOF
22050 cat confdefs.h >>conftest.$ac_ext
22051 cat >>conftest.$ac_ext <<_ACEOF
22052 /* end confdefs.h.  */
22053 $ac_includes_default
22054    typedef int ac__type_sizeof_;
22055 int
22056 main ()
22057 {
22058 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22059 test_array [0] = 0
22060
22061   ;
22062   return 0;
22063 }
22064 _ACEOF
22065 rm -f conftest.$ac_objext
22066 if { (ac_try="$ac_compile"
22067 case "(($ac_try" in
22068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22069   *) ac_try_echo=$ac_try;;
22070 esac
22071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22072   (eval "$ac_compile") 2>conftest.er1
22073   ac_status=$?
22074   grep -v '^ *+' conftest.er1 >conftest.err
22075   rm -f conftest.er1
22076   cat conftest.err >&5
22077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22078   (exit $ac_status); } && {
22079          test -z "$ac_c_werror_flag" ||
22080          test ! -s conftest.err
22081        } && test -s conftest.$ac_objext; then
22082   ac_lo=0 ac_mid=0
22083   while :; do
22084     cat >conftest.$ac_ext <<_ACEOF
22085 /* confdefs.h.  */
22086 _ACEOF
22087 cat confdefs.h >>conftest.$ac_ext
22088 cat >>conftest.$ac_ext <<_ACEOF
22089 /* end confdefs.h.  */
22090 $ac_includes_default
22091    typedef int ac__type_sizeof_;
22092 int
22093 main ()
22094 {
22095 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22096 test_array [0] = 0
22097
22098   ;
22099   return 0;
22100 }
22101 _ACEOF
22102 rm -f conftest.$ac_objext
22103 if { (ac_try="$ac_compile"
22104 case "(($ac_try" in
22105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22106   *) ac_try_echo=$ac_try;;
22107 esac
22108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22109   (eval "$ac_compile") 2>conftest.er1
22110   ac_status=$?
22111   grep -v '^ *+' conftest.er1 >conftest.err
22112   rm -f conftest.er1
22113   cat conftest.err >&5
22114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22115   (exit $ac_status); } && {
22116          test -z "$ac_c_werror_flag" ||
22117          test ! -s conftest.err
22118        } && test -s conftest.$ac_objext; then
22119   ac_hi=$ac_mid; break
22120 else
22121   echo "$as_me: failed program was:" >&5
22122 sed 's/^/| /' conftest.$ac_ext >&5
22123
22124         ac_lo=`expr $ac_mid + 1`
22125                         if test $ac_lo -le $ac_mid; then
22126                           ac_lo= ac_hi=
22127                           break
22128                         fi
22129                         ac_mid=`expr 2 '*' $ac_mid + 1`
22130 fi
22131
22132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22133   done
22134 else
22135   echo "$as_me: failed program was:" >&5
22136 sed 's/^/| /' conftest.$ac_ext >&5
22137
22138         cat >conftest.$ac_ext <<_ACEOF
22139 /* confdefs.h.  */
22140 _ACEOF
22141 cat confdefs.h >>conftest.$ac_ext
22142 cat >>conftest.$ac_ext <<_ACEOF
22143 /* end confdefs.h.  */
22144 $ac_includes_default
22145    typedef int ac__type_sizeof_;
22146 int
22147 main ()
22148 {
22149 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22150 test_array [0] = 0
22151
22152   ;
22153   return 0;
22154 }
22155 _ACEOF
22156 rm -f conftest.$ac_objext
22157 if { (ac_try="$ac_compile"
22158 case "(($ac_try" in
22159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22160   *) ac_try_echo=$ac_try;;
22161 esac
22162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22163   (eval "$ac_compile") 2>conftest.er1
22164   ac_status=$?
22165   grep -v '^ *+' conftest.er1 >conftest.err
22166   rm -f conftest.er1
22167   cat conftest.err >&5
22168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22169   (exit $ac_status); } && {
22170          test -z "$ac_c_werror_flag" ||
22171          test ! -s conftest.err
22172        } && test -s conftest.$ac_objext; then
22173   ac_hi=-1 ac_mid=-1
22174   while :; do
22175     cat >conftest.$ac_ext <<_ACEOF
22176 /* confdefs.h.  */
22177 _ACEOF
22178 cat confdefs.h >>conftest.$ac_ext
22179 cat >>conftest.$ac_ext <<_ACEOF
22180 /* end confdefs.h.  */
22181 $ac_includes_default
22182    typedef int ac__type_sizeof_;
22183 int
22184 main ()
22185 {
22186 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22187 test_array [0] = 0
22188
22189   ;
22190   return 0;
22191 }
22192 _ACEOF
22193 rm -f conftest.$ac_objext
22194 if { (ac_try="$ac_compile"
22195 case "(($ac_try" in
22196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22197   *) ac_try_echo=$ac_try;;
22198 esac
22199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22200   (eval "$ac_compile") 2>conftest.er1
22201   ac_status=$?
22202   grep -v '^ *+' conftest.er1 >conftest.err
22203   rm -f conftest.er1
22204   cat conftest.err >&5
22205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22206   (exit $ac_status); } && {
22207          test -z "$ac_c_werror_flag" ||
22208          test ! -s conftest.err
22209        } && test -s conftest.$ac_objext; then
22210   ac_lo=$ac_mid; break
22211 else
22212   echo "$as_me: failed program was:" >&5
22213 sed 's/^/| /' conftest.$ac_ext >&5
22214
22215         ac_hi=`expr '(' $ac_mid ')' - 1`
22216                         if test $ac_mid -le $ac_hi; then
22217                           ac_lo= ac_hi=
22218                           break
22219                         fi
22220                         ac_mid=`expr 2 '*' $ac_mid`
22221 fi
22222
22223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22224   done
22225 else
22226   echo "$as_me: failed program was:" >&5
22227 sed 's/^/| /' conftest.$ac_ext >&5
22228
22229         ac_lo= ac_hi=
22230 fi
22231
22232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22233 fi
22234
22235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22236 # Binary search between lo and hi bounds.
22237 while test "x$ac_lo" != "x$ac_hi"; do
22238   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22239   cat >conftest.$ac_ext <<_ACEOF
22240 /* confdefs.h.  */
22241 _ACEOF
22242 cat confdefs.h >>conftest.$ac_ext
22243 cat >>conftest.$ac_ext <<_ACEOF
22244 /* end confdefs.h.  */
22245 $ac_includes_default
22246    typedef int ac__type_sizeof_;
22247 int
22248 main ()
22249 {
22250 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22251 test_array [0] = 0
22252
22253   ;
22254   return 0;
22255 }
22256 _ACEOF
22257 rm -f conftest.$ac_objext
22258 if { (ac_try="$ac_compile"
22259 case "(($ac_try" in
22260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22261   *) ac_try_echo=$ac_try;;
22262 esac
22263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22264   (eval "$ac_compile") 2>conftest.er1
22265   ac_status=$?
22266   grep -v '^ *+' conftest.er1 >conftest.err
22267   rm -f conftest.er1
22268   cat conftest.err >&5
22269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22270   (exit $ac_status); } && {
22271          test -z "$ac_c_werror_flag" ||
22272          test ! -s conftest.err
22273        } && test -s conftest.$ac_objext; then
22274   ac_hi=$ac_mid
22275 else
22276   echo "$as_me: failed program was:" >&5
22277 sed 's/^/| /' conftest.$ac_ext >&5
22278
22279         ac_lo=`expr '(' $ac_mid ')' + 1`
22280 fi
22281
22282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22283 done
22284 case $ac_lo in
22285 ?*) ac_cv_sizeof_int=$ac_lo;;
22286 '') if test "$ac_cv_type_int" = yes; then
22287      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
22288 See \`config.log' for more details." >&5
22289 echo "$as_me: error: cannot compute sizeof (int)
22290 See \`config.log' for more details." >&2;}
22291    { (exit 77); exit 77; }; }
22292    else
22293      ac_cv_sizeof_int=0
22294    fi ;;
22295 esac
22296 else
22297   cat >conftest.$ac_ext <<_ACEOF
22298 /* confdefs.h.  */
22299 _ACEOF
22300 cat confdefs.h >>conftest.$ac_ext
22301 cat >>conftest.$ac_ext <<_ACEOF
22302 /* end confdefs.h.  */
22303 $ac_includes_default
22304    typedef int ac__type_sizeof_;
22305 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22306 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22307 #include <stdio.h>
22308 #include <stdlib.h>
22309 int
22310 main ()
22311 {
22312
22313   FILE *f = fopen ("conftest.val", "w");
22314   if (! f)
22315     return 1;
22316   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22317     {
22318       long int i = longval ();
22319       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22320         return 1;
22321       fprintf (f, "%ld\n", i);
22322     }
22323   else
22324     {
22325       unsigned long int i = ulongval ();
22326       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22327         return 1;
22328       fprintf (f, "%lu\n", i);
22329     }
22330   return ferror (f) || fclose (f) != 0;
22331
22332   ;
22333   return 0;
22334 }
22335 _ACEOF
22336 rm -f conftest$ac_exeext
22337 if { (ac_try="$ac_link"
22338 case "(($ac_try" in
22339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22340   *) ac_try_echo=$ac_try;;
22341 esac
22342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22343   (eval "$ac_link") 2>&5
22344   ac_status=$?
22345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22346   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22347   { (case "(($ac_try" in
22348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22349   *) ac_try_echo=$ac_try;;
22350 esac
22351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22352   (eval "$ac_try") 2>&5
22353   ac_status=$?
22354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22355   (exit $ac_status); }; }; then
22356   ac_cv_sizeof_int=`cat conftest.val`
22357 else
22358   echo "$as_me: program exited with status $ac_status" >&5
22359 echo "$as_me: failed program was:" >&5
22360 sed 's/^/| /' conftest.$ac_ext >&5
22361
22362 ( exit $ac_status )
22363 if test "$ac_cv_type_int" = yes; then
22364      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
22365 See \`config.log' for more details." >&5
22366 echo "$as_me: error: cannot compute sizeof (int)
22367 See \`config.log' for more details." >&2;}
22368    { (exit 77); exit 77; }; }
22369    else
22370      ac_cv_sizeof_int=0
22371    fi
22372 fi
22373 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22374 fi
22375 rm -f conftest.val
22376 fi
22377 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
22378 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
22379
22380
22381
22382 cat >>confdefs.h <<_ACEOF
22383 #define SIZEOF_INT $ac_cv_sizeof_int
22384 _ACEOF
22385
22386
22387 { echo "$as_me:$LINENO: checking for long" >&5
22388 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
22389 if test "${ac_cv_type_long+set}" = set; then
22390   echo $ECHO_N "(cached) $ECHO_C" >&6
22391 else
22392   cat >conftest.$ac_ext <<_ACEOF
22393 /* confdefs.h.  */
22394 _ACEOF
22395 cat confdefs.h >>conftest.$ac_ext
22396 cat >>conftest.$ac_ext <<_ACEOF
22397 /* end confdefs.h.  */
22398 $ac_includes_default
22399 typedef long ac__type_new_;
22400 int
22401 main ()
22402 {
22403 if ((ac__type_new_ *) 0)
22404   return 0;
22405 if (sizeof (ac__type_new_))
22406   return 0;
22407   ;
22408   return 0;
22409 }
22410 _ACEOF
22411 rm -f conftest.$ac_objext
22412 if { (ac_try="$ac_compile"
22413 case "(($ac_try" in
22414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22415   *) ac_try_echo=$ac_try;;
22416 esac
22417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22418   (eval "$ac_compile") 2>conftest.er1
22419   ac_status=$?
22420   grep -v '^ *+' conftest.er1 >conftest.err
22421   rm -f conftest.er1
22422   cat conftest.err >&5
22423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22424   (exit $ac_status); } && {
22425          test -z "$ac_c_werror_flag" ||
22426          test ! -s conftest.err
22427        } && test -s conftest.$ac_objext; then
22428   ac_cv_type_long=yes
22429 else
22430   echo "$as_me: failed program was:" >&5
22431 sed 's/^/| /' conftest.$ac_ext >&5
22432
22433         ac_cv_type_long=no
22434 fi
22435
22436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22437 fi
22438 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
22439 echo "${ECHO_T}$ac_cv_type_long" >&6; }
22440
22441 # The cast to long int works around a bug in the HP C Compiler
22442 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22443 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22444 # This bug is HP SR number 8606223364.
22445 { echo "$as_me:$LINENO: checking size of long" >&5
22446 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
22447 if test "${ac_cv_sizeof_long+set}" = set; then
22448   echo $ECHO_N "(cached) $ECHO_C" >&6
22449 else
22450   if test "$cross_compiling" = yes; then
22451   # Depending upon the size, compute the lo and hi bounds.
22452 cat >conftest.$ac_ext <<_ACEOF
22453 /* confdefs.h.  */
22454 _ACEOF
22455 cat confdefs.h >>conftest.$ac_ext
22456 cat >>conftest.$ac_ext <<_ACEOF
22457 /* end confdefs.h.  */
22458 $ac_includes_default
22459    typedef long ac__type_sizeof_;
22460 int
22461 main ()
22462 {
22463 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22464 test_array [0] = 0
22465
22466   ;
22467   return 0;
22468 }
22469 _ACEOF
22470 rm -f conftest.$ac_objext
22471 if { (ac_try="$ac_compile"
22472 case "(($ac_try" in
22473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22474   *) ac_try_echo=$ac_try;;
22475 esac
22476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22477   (eval "$ac_compile") 2>conftest.er1
22478   ac_status=$?
22479   grep -v '^ *+' conftest.er1 >conftest.err
22480   rm -f conftest.er1
22481   cat conftest.err >&5
22482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22483   (exit $ac_status); } && {
22484          test -z "$ac_c_werror_flag" ||
22485          test ! -s conftest.err
22486        } && test -s conftest.$ac_objext; then
22487   ac_lo=0 ac_mid=0
22488   while :; do
22489     cat >conftest.$ac_ext <<_ACEOF
22490 /* confdefs.h.  */
22491 _ACEOF
22492 cat confdefs.h >>conftest.$ac_ext
22493 cat >>conftest.$ac_ext <<_ACEOF
22494 /* end confdefs.h.  */
22495 $ac_includes_default
22496    typedef long ac__type_sizeof_;
22497 int
22498 main ()
22499 {
22500 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22501 test_array [0] = 0
22502
22503   ;
22504   return 0;
22505 }
22506 _ACEOF
22507 rm -f conftest.$ac_objext
22508 if { (ac_try="$ac_compile"
22509 case "(($ac_try" in
22510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22511   *) ac_try_echo=$ac_try;;
22512 esac
22513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22514   (eval "$ac_compile") 2>conftest.er1
22515   ac_status=$?
22516   grep -v '^ *+' conftest.er1 >conftest.err
22517   rm -f conftest.er1
22518   cat conftest.err >&5
22519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22520   (exit $ac_status); } && {
22521          test -z "$ac_c_werror_flag" ||
22522          test ! -s conftest.err
22523        } && test -s conftest.$ac_objext; then
22524   ac_hi=$ac_mid; break
22525 else
22526   echo "$as_me: failed program was:" >&5
22527 sed 's/^/| /' conftest.$ac_ext >&5
22528
22529         ac_lo=`expr $ac_mid + 1`
22530                         if test $ac_lo -le $ac_mid; then
22531                           ac_lo= ac_hi=
22532                           break
22533                         fi
22534                         ac_mid=`expr 2 '*' $ac_mid + 1`
22535 fi
22536
22537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22538   done
22539 else
22540   echo "$as_me: failed program was:" >&5
22541 sed 's/^/| /' conftest.$ac_ext >&5
22542
22543         cat >conftest.$ac_ext <<_ACEOF
22544 /* confdefs.h.  */
22545 _ACEOF
22546 cat confdefs.h >>conftest.$ac_ext
22547 cat >>conftest.$ac_ext <<_ACEOF
22548 /* end confdefs.h.  */
22549 $ac_includes_default
22550    typedef long ac__type_sizeof_;
22551 int
22552 main ()
22553 {
22554 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22555 test_array [0] = 0
22556
22557   ;
22558   return 0;
22559 }
22560 _ACEOF
22561 rm -f conftest.$ac_objext
22562 if { (ac_try="$ac_compile"
22563 case "(($ac_try" in
22564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22565   *) ac_try_echo=$ac_try;;
22566 esac
22567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22568   (eval "$ac_compile") 2>conftest.er1
22569   ac_status=$?
22570   grep -v '^ *+' conftest.er1 >conftest.err
22571   rm -f conftest.er1
22572   cat conftest.err >&5
22573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22574   (exit $ac_status); } && {
22575          test -z "$ac_c_werror_flag" ||
22576          test ! -s conftest.err
22577        } && test -s conftest.$ac_objext; then
22578   ac_hi=-1 ac_mid=-1
22579   while :; do
22580     cat >conftest.$ac_ext <<_ACEOF
22581 /* confdefs.h.  */
22582 _ACEOF
22583 cat confdefs.h >>conftest.$ac_ext
22584 cat >>conftest.$ac_ext <<_ACEOF
22585 /* end confdefs.h.  */
22586 $ac_includes_default
22587    typedef long ac__type_sizeof_;
22588 int
22589 main ()
22590 {
22591 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22592 test_array [0] = 0
22593
22594   ;
22595   return 0;
22596 }
22597 _ACEOF
22598 rm -f conftest.$ac_objext
22599 if { (ac_try="$ac_compile"
22600 case "(($ac_try" in
22601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22602   *) ac_try_echo=$ac_try;;
22603 esac
22604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22605   (eval "$ac_compile") 2>conftest.er1
22606   ac_status=$?
22607   grep -v '^ *+' conftest.er1 >conftest.err
22608   rm -f conftest.er1
22609   cat conftest.err >&5
22610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22611   (exit $ac_status); } && {
22612          test -z "$ac_c_werror_flag" ||
22613          test ! -s conftest.err
22614        } && test -s conftest.$ac_objext; then
22615   ac_lo=$ac_mid; break
22616 else
22617   echo "$as_me: failed program was:" >&5
22618 sed 's/^/| /' conftest.$ac_ext >&5
22619
22620         ac_hi=`expr '(' $ac_mid ')' - 1`
22621                         if test $ac_mid -le $ac_hi; then
22622                           ac_lo= ac_hi=
22623                           break
22624                         fi
22625                         ac_mid=`expr 2 '*' $ac_mid`
22626 fi
22627
22628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22629   done
22630 else
22631   echo "$as_me: failed program was:" >&5
22632 sed 's/^/| /' conftest.$ac_ext >&5
22633
22634         ac_lo= ac_hi=
22635 fi
22636
22637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22638 fi
22639
22640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22641 # Binary search between lo and hi bounds.
22642 while test "x$ac_lo" != "x$ac_hi"; do
22643   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22644   cat >conftest.$ac_ext <<_ACEOF
22645 /* confdefs.h.  */
22646 _ACEOF
22647 cat confdefs.h >>conftest.$ac_ext
22648 cat >>conftest.$ac_ext <<_ACEOF
22649 /* end confdefs.h.  */
22650 $ac_includes_default
22651    typedef long ac__type_sizeof_;
22652 int
22653 main ()
22654 {
22655 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22656 test_array [0] = 0
22657
22658   ;
22659   return 0;
22660 }
22661 _ACEOF
22662 rm -f conftest.$ac_objext
22663 if { (ac_try="$ac_compile"
22664 case "(($ac_try" in
22665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22666   *) ac_try_echo=$ac_try;;
22667 esac
22668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22669   (eval "$ac_compile") 2>conftest.er1
22670   ac_status=$?
22671   grep -v '^ *+' conftest.er1 >conftest.err
22672   rm -f conftest.er1
22673   cat conftest.err >&5
22674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22675   (exit $ac_status); } && {
22676          test -z "$ac_c_werror_flag" ||
22677          test ! -s conftest.err
22678        } && test -s conftest.$ac_objext; then
22679   ac_hi=$ac_mid
22680 else
22681   echo "$as_me: failed program was:" >&5
22682 sed 's/^/| /' conftest.$ac_ext >&5
22683
22684         ac_lo=`expr '(' $ac_mid ')' + 1`
22685 fi
22686
22687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22688 done
22689 case $ac_lo in
22690 ?*) ac_cv_sizeof_long=$ac_lo;;
22691 '') if test "$ac_cv_type_long" = yes; then
22692      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
22693 See \`config.log' for more details." >&5
22694 echo "$as_me: error: cannot compute sizeof (long)
22695 See \`config.log' for more details." >&2;}
22696    { (exit 77); exit 77; }; }
22697    else
22698      ac_cv_sizeof_long=0
22699    fi ;;
22700 esac
22701 else
22702   cat >conftest.$ac_ext <<_ACEOF
22703 /* confdefs.h.  */
22704 _ACEOF
22705 cat confdefs.h >>conftest.$ac_ext
22706 cat >>conftest.$ac_ext <<_ACEOF
22707 /* end confdefs.h.  */
22708 $ac_includes_default
22709    typedef long ac__type_sizeof_;
22710 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22711 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22712 #include <stdio.h>
22713 #include <stdlib.h>
22714 int
22715 main ()
22716 {
22717
22718   FILE *f = fopen ("conftest.val", "w");
22719   if (! f)
22720     return 1;
22721   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22722     {
22723       long int i = longval ();
22724       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22725         return 1;
22726       fprintf (f, "%ld\n", i);
22727     }
22728   else
22729     {
22730       unsigned long int i = ulongval ();
22731       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22732         return 1;
22733       fprintf (f, "%lu\n", i);
22734     }
22735   return ferror (f) || fclose (f) != 0;
22736
22737   ;
22738   return 0;
22739 }
22740 _ACEOF
22741 rm -f conftest$ac_exeext
22742 if { (ac_try="$ac_link"
22743 case "(($ac_try" in
22744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22745   *) ac_try_echo=$ac_try;;
22746 esac
22747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22748   (eval "$ac_link") 2>&5
22749   ac_status=$?
22750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22751   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22752   { (case "(($ac_try" in
22753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22754   *) ac_try_echo=$ac_try;;
22755 esac
22756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22757   (eval "$ac_try") 2>&5
22758   ac_status=$?
22759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22760   (exit $ac_status); }; }; then
22761   ac_cv_sizeof_long=`cat conftest.val`
22762 else
22763   echo "$as_me: program exited with status $ac_status" >&5
22764 echo "$as_me: failed program was:" >&5
22765 sed 's/^/| /' conftest.$ac_ext >&5
22766
22767 ( exit $ac_status )
22768 if test "$ac_cv_type_long" = yes; then
22769      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
22770 See \`config.log' for more details." >&5
22771 echo "$as_me: error: cannot compute sizeof (long)
22772 See \`config.log' for more details." >&2;}
22773    { (exit 77); exit 77; }; }
22774    else
22775      ac_cv_sizeof_long=0
22776    fi
22777 fi
22778 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22779 fi
22780 rm -f conftest.val
22781 fi
22782 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
22783 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
22784
22785
22786
22787 cat >>confdefs.h <<_ACEOF
22788 #define SIZEOF_LONG $ac_cv_sizeof_long
22789 _ACEOF
22790
22791
22792 { echo "$as_me:$LINENO: checking for 32-bit integer type" >&5
22793 echo $ECHO_N "checking for 32-bit integer type... $ECHO_C" >&6; }
22794 if test "$ac_cv_sizeof_long" = 4; then
22795         int32=long
22796 elif test "$ac_cv_sizeof_int" = 4; then
22797         int32=int
22798 elif test "$ac_cv_sizeof_short" = 4; then
22799         int32=short
22800 else
22801         { echo "$as_me:$LINENO: WARNING: Can't find 32-bit type, using long" >&5
22802 echo "$as_me: WARNING: Can't find 32-bit type, using long" >&2;}
22803         int32=long
22804 fi
22805 cat >>confdefs.h <<_ACEOF
22806 #define ZEPHYR_INT32 ${int32}
22807 _ACEOF
22808
22809 { echo "$as_me:$LINENO: result: ${int32}" >&5
22810 echo "${ECHO_T}${int32}" >&6; }
22811
22812
22813 { echo "$as_me:$LINENO: checking for wslen in -lw" >&5
22814 echo $ECHO_N "checking for wslen in -lw... $ECHO_C" >&6; }
22815 if test "${ac_cv_lib_w_wslen+set}" = set; then
22816   echo $ECHO_N "(cached) $ECHO_C" >&6
22817 else
22818   ac_check_lib_save_LIBS=$LIBS
22819 LIBS="-lw  $LIBS"
22820 cat >conftest.$ac_ext <<_ACEOF
22821 /* confdefs.h.  */
22822 _ACEOF
22823 cat confdefs.h >>conftest.$ac_ext
22824 cat >>conftest.$ac_ext <<_ACEOF
22825 /* end confdefs.h.  */
22826
22827 /* Override any GCC internal prototype to avoid an error.
22828    Use char because int might match the return type of a GCC
22829    builtin and then its argument prototype would still apply.  */
22830 #ifdef __cplusplus
22831 extern "C"
22832 #endif
22833 char wslen ();
22834 int
22835 main ()
22836 {
22837 return wslen ();
22838   ;
22839   return 0;
22840 }
22841 _ACEOF
22842 rm -f conftest.$ac_objext conftest$ac_exeext
22843 if { (ac_try="$ac_link"
22844 case "(($ac_try" in
22845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22846   *) ac_try_echo=$ac_try;;
22847 esac
22848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22849   (eval "$ac_link") 2>conftest.er1
22850   ac_status=$?
22851   grep -v '^ *+' conftest.er1 >conftest.err
22852   rm -f conftest.er1
22853   cat conftest.err >&5
22854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22855   (exit $ac_status); } && {
22856          test -z "$ac_c_werror_flag" ||
22857          test ! -s conftest.err
22858        } && test -s conftest$ac_exeext &&
22859        $as_test_x conftest$ac_exeext; then
22860   ac_cv_lib_w_wslen=yes
22861 else
22862   echo "$as_me: failed program was:" >&5
22863 sed 's/^/| /' conftest.$ac_ext >&5
22864
22865         ac_cv_lib_w_wslen=no
22866 fi
22867
22868 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22869       conftest$ac_exeext conftest.$ac_ext
22870 LIBS=$ac_check_lib_save_LIBS
22871 fi
22872 { echo "$as_me:$LINENO: result: $ac_cv_lib_w_wslen" >&5
22873 echo "${ECHO_T}$ac_cv_lib_w_wslen" >&6; }
22874 if test $ac_cv_lib_w_wslen = yes; then
22875   cat >>confdefs.h <<_ACEOF
22876 #define HAVE_LIBW 1
22877 _ACEOF
22878
22879   LIBS="-lw $LIBS"
22880
22881 fi
22882
22883
22884 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
22885 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
22886 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
22887   echo $ECHO_N "(cached) $ECHO_C" >&6
22888 else
22889   ac_check_lib_save_LIBS=$LIBS
22890 LIBS="-ldl  $LIBS"
22891 cat >conftest.$ac_ext <<_ACEOF
22892 /* confdefs.h.  */
22893 _ACEOF
22894 cat confdefs.h >>conftest.$ac_ext
22895 cat >>conftest.$ac_ext <<_ACEOF
22896 /* end confdefs.h.  */
22897
22898 /* Override any GCC internal prototype to avoid an error.
22899    Use char because int might match the return type of a GCC
22900    builtin and then its argument prototype would still apply.  */
22901 #ifdef __cplusplus
22902 extern "C"
22903 #endif
22904 char dlopen ();
22905 int
22906 main ()
22907 {
22908 return dlopen ();
22909   ;
22910   return 0;
22911 }
22912 _ACEOF
22913 rm -f conftest.$ac_objext conftest$ac_exeext
22914 if { (ac_try="$ac_link"
22915 case "(($ac_try" in
22916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22917   *) ac_try_echo=$ac_try;;
22918 esac
22919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22920   (eval "$ac_link") 2>conftest.er1
22921   ac_status=$?
22922   grep -v '^ *+' conftest.er1 >conftest.err
22923   rm -f conftest.er1
22924   cat conftest.err >&5
22925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22926   (exit $ac_status); } && {
22927          test -z "$ac_c_werror_flag" ||
22928          test ! -s conftest.err
22929        } && test -s conftest$ac_exeext &&
22930        $as_test_x conftest$ac_exeext; then
22931   ac_cv_lib_dl_dlopen=yes
22932 else
22933   echo "$as_me: failed program was:" >&5
22934 sed 's/^/| /' conftest.$ac_ext >&5
22935
22936         ac_cv_lib_dl_dlopen=no
22937 fi
22938
22939 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22940       conftest$ac_exeext conftest.$ac_ext
22941 LIBS=$ac_check_lib_save_LIBS
22942 fi
22943 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
22944 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
22945 if test $ac_cv_lib_dl_dlopen = yes; then
22946   cat >>confdefs.h <<_ACEOF
22947 #define HAVE_LIBDL 1
22948 _ACEOF
22949
22950   LIBS="-ldl $LIBS"
22951
22952 fi
22953
22954
22955 { echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
22956 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6; }
22957 if test "${ac_cv_search_gethostbyname+set}" = set; then
22958   echo $ECHO_N "(cached) $ECHO_C" >&6
22959 else
22960   ac_func_search_save_LIBS=$LIBS
22961 cat >conftest.$ac_ext <<_ACEOF
22962 /* confdefs.h.  */
22963 _ACEOF
22964 cat confdefs.h >>conftest.$ac_ext
22965 cat >>conftest.$ac_ext <<_ACEOF
22966 /* end confdefs.h.  */
22967
22968 /* Override any GCC internal prototype to avoid an error.
22969    Use char because int might match the return type of a GCC
22970    builtin and then its argument prototype would still apply.  */
22971 #ifdef __cplusplus
22972 extern "C"
22973 #endif
22974 char gethostbyname ();
22975 int
22976 main ()
22977 {
22978 return gethostbyname ();
22979   ;
22980   return 0;
22981 }
22982 _ACEOF
22983 for ac_lib in '' nsl; do
22984   if test -z "$ac_lib"; then
22985     ac_res="none required"
22986   else
22987     ac_res=-l$ac_lib
22988     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22989   fi
22990   rm -f conftest.$ac_objext conftest$ac_exeext
22991 if { (ac_try="$ac_link"
22992 case "(($ac_try" in
22993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22994   *) ac_try_echo=$ac_try;;
22995 esac
22996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22997   (eval "$ac_link") 2>conftest.er1
22998   ac_status=$?
22999   grep -v '^ *+' conftest.er1 >conftest.err
23000   rm -f conftest.er1
23001   cat conftest.err >&5
23002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23003   (exit $ac_status); } && {
23004          test -z "$ac_c_werror_flag" ||
23005          test ! -s conftest.err
23006        } && test -s conftest$ac_exeext &&
23007        $as_test_x conftest$ac_exeext; then
23008   ac_cv_search_gethostbyname=$ac_res
23009 else
23010   echo "$as_me: failed program was:" >&5
23011 sed 's/^/| /' conftest.$ac_ext >&5
23012
23013
23014 fi
23015
23016 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23017       conftest$ac_exeext
23018   if test "${ac_cv_search_gethostbyname+set}" = set; then
23019   break
23020 fi
23021 done
23022 if test "${ac_cv_search_gethostbyname+set}" = set; then
23023   :
23024 else
23025   ac_cv_search_gethostbyname=no
23026 fi
23027 rm conftest.$ac_ext
23028 LIBS=$ac_func_search_save_LIBS
23029 fi
23030 { echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
23031 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6; }
23032 ac_res=$ac_cv_search_gethostbyname
23033 if test "$ac_res" != no; then
23034   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23035
23036 fi
23037
23038 { echo "$as_me:$LINENO: checking for library containing socket" >&5
23039 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
23040 if test "${ac_cv_search_socket+set}" = set; then
23041   echo $ECHO_N "(cached) $ECHO_C" >&6
23042 else
23043   ac_func_search_save_LIBS=$LIBS
23044 cat >conftest.$ac_ext <<_ACEOF
23045 /* confdefs.h.  */
23046 _ACEOF
23047 cat confdefs.h >>conftest.$ac_ext
23048 cat >>conftest.$ac_ext <<_ACEOF
23049 /* end confdefs.h.  */
23050
23051 /* Override any GCC internal prototype to avoid an error.
23052    Use char because int might match the return type of a GCC
23053    builtin and then its argument prototype would still apply.  */
23054 #ifdef __cplusplus
23055 extern "C"
23056 #endif
23057 char socket ();
23058 int
23059 main ()
23060 {
23061 return socket ();
23062   ;
23063   return 0;
23064 }
23065 _ACEOF
23066 for ac_lib in '' socket; do
23067   if test -z "$ac_lib"; then
23068     ac_res="none required"
23069   else
23070     ac_res=-l$ac_lib
23071     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23072   fi
23073   rm -f conftest.$ac_objext conftest$ac_exeext
23074 if { (ac_try="$ac_link"
23075 case "(($ac_try" in
23076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23077   *) ac_try_echo=$ac_try;;
23078 esac
23079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23080   (eval "$ac_link") 2>conftest.er1
23081   ac_status=$?
23082   grep -v '^ *+' conftest.er1 >conftest.err
23083   rm -f conftest.er1
23084   cat conftest.err >&5
23085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23086   (exit $ac_status); } && {
23087          test -z "$ac_c_werror_flag" ||
23088          test ! -s conftest.err
23089        } && test -s conftest$ac_exeext &&
23090        $as_test_x conftest$ac_exeext; then
23091   ac_cv_search_socket=$ac_res
23092 else
23093   echo "$as_me: failed program was:" >&5
23094 sed 's/^/| /' conftest.$ac_ext >&5
23095
23096
23097 fi
23098
23099 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23100       conftest$ac_exeext
23101   if test "${ac_cv_search_socket+set}" = set; then
23102   break
23103 fi
23104 done
23105 if test "${ac_cv_search_socket+set}" = set; then
23106   :
23107 else
23108   ac_cv_search_socket=no
23109 fi
23110 rm conftest.$ac_ext
23111 LIBS=$ac_func_search_save_LIBS
23112 fi
23113 { echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
23114 echo "${ECHO_T}$ac_cv_search_socket" >&6; }
23115 ac_res=$ac_cv_search_socket
23116 if test "$ac_res" != no; then
23117   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23118
23119 fi
23120
23121
23122 # Hesiod needs -lresolv on Sun systems for res_send.
23123 if test "$hesiod" != "no"; then
23124
23125 { echo "$as_me:$LINENO: checking for strerror in -l44bsd" >&5
23126 echo $ECHO_N "checking for strerror in -l44bsd... $ECHO_C" >&6; }
23127 if test "${ac_cv_lib_44bsd_strerror+set}" = set; then
23128   echo $ECHO_N "(cached) $ECHO_C" >&6
23129 else
23130   ac_check_lib_save_LIBS=$LIBS
23131 LIBS="-l44bsd  $LIBS"
23132 cat >conftest.$ac_ext <<_ACEOF
23133 /* confdefs.h.  */
23134 _ACEOF
23135 cat confdefs.h >>conftest.$ac_ext
23136 cat >>conftest.$ac_ext <<_ACEOF
23137 /* end confdefs.h.  */
23138
23139 /* Override any GCC internal prototype to avoid an error.
23140    Use char because int might match the return type of a GCC
23141    builtin and then its argument prototype would still apply.  */
23142 #ifdef __cplusplus
23143 extern "C"
23144 #endif
23145 char strerror ();
23146 int
23147 main ()
23148 {
23149 return strerror ();
23150   ;
23151   return 0;
23152 }
23153 _ACEOF
23154 rm -f conftest.$ac_objext conftest$ac_exeext
23155 if { (ac_try="$ac_link"
23156 case "(($ac_try" in
23157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23158   *) ac_try_echo=$ac_try;;
23159 esac
23160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23161   (eval "$ac_link") 2>conftest.er1
23162   ac_status=$?
23163   grep -v '^ *+' conftest.er1 >conftest.err
23164   rm -f conftest.er1
23165   cat conftest.err >&5
23166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23167   (exit $ac_status); } && {
23168          test -z "$ac_c_werror_flag" ||
23169          test ! -s conftest.err
23170        } && test -s conftest$ac_exeext &&
23171        $as_test_x conftest$ac_exeext; then
23172   ac_cv_lib_44bsd_strerror=yes
23173 else
23174   echo "$as_me: failed program was:" >&5
23175 sed 's/^/| /' conftest.$ac_ext >&5
23176
23177         ac_cv_lib_44bsd_strerror=no
23178 fi
23179
23180 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23181       conftest$ac_exeext conftest.$ac_ext
23182 LIBS=$ac_check_lib_save_LIBS
23183 fi
23184 { echo "$as_me:$LINENO: result: $ac_cv_lib_44bsd_strerror" >&5
23185 echo "${ECHO_T}$ac_cv_lib_44bsd_strerror" >&6; }
23186 if test $ac_cv_lib_44bsd_strerror = yes; then
23187   cat >>confdefs.h <<_ACEOF
23188 #define HAVE_LIB44BSD 1
23189 _ACEOF
23190
23191   LIBS="-l44bsd $LIBS"
23192
23193 fi
23194
23195
23196 { echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
23197 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6; }
23198 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
23199   echo $ECHO_N "(cached) $ECHO_C" >&6
23200 else
23201   ac_check_lib_save_LIBS=$LIBS
23202 LIBS="-lresolv  $LIBS"
23203 cat >conftest.$ac_ext <<_ACEOF
23204 /* confdefs.h.  */
23205 _ACEOF
23206 cat confdefs.h >>conftest.$ac_ext
23207 cat >>conftest.$ac_ext <<_ACEOF
23208 /* end confdefs.h.  */
23209
23210 /* Override any GCC internal prototype to avoid an error.
23211    Use char because int might match the return type of a GCC
23212    builtin and then its argument prototype would still apply.  */
23213 #ifdef __cplusplus
23214 extern "C"
23215 #endif
23216 char res_send ();
23217 int
23218 main ()
23219 {
23220 return res_send ();
23221   ;
23222   return 0;
23223 }
23224 _ACEOF
23225 rm -f conftest.$ac_objext conftest$ac_exeext
23226 if { (ac_try="$ac_link"
23227 case "(($ac_try" in
23228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23229   *) ac_try_echo=$ac_try;;
23230 esac
23231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23232   (eval "$ac_link") 2>conftest.er1
23233   ac_status=$?
23234   grep -v '^ *+' conftest.er1 >conftest.err
23235   rm -f conftest.er1
23236   cat conftest.err >&5
23237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23238   (exit $ac_status); } && {
23239          test -z "$ac_c_werror_flag" ||
23240          test ! -s conftest.err
23241        } && test -s conftest$ac_exeext &&
23242        $as_test_x conftest$ac_exeext; then
23243   ac_cv_lib_resolv_res_send=yes
23244 else
23245   echo "$as_me: failed program was:" >&5
23246 sed 's/^/| /' conftest.$ac_ext >&5
23247
23248         ac_cv_lib_resolv_res_send=no
23249 fi
23250
23251 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23252       conftest$ac_exeext conftest.$ac_ext
23253 LIBS=$ac_check_lib_save_LIBS
23254 fi
23255 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
23256 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
23257 if test $ac_cv_lib_resolv_res_send = yes; then
23258   cat >>confdefs.h <<_ACEOF
23259 #define HAVE_LIBRESOLV 1
23260 _ACEOF
23261
23262   LIBS="-lresolv $LIBS"
23263
23264 fi
23265
23266
23267 { echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
23268 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6; }
23269 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
23270   echo $ECHO_N "(cached) $ECHO_C" >&6
23271 else
23272   ac_check_lib_save_LIBS=$LIBS
23273 LIBS="-lresolv  $LIBS"
23274 cat >conftest.$ac_ext <<_ACEOF
23275 /* confdefs.h.  */
23276 _ACEOF
23277 cat confdefs.h >>conftest.$ac_ext
23278 cat >>conftest.$ac_ext <<_ACEOF
23279 /* end confdefs.h.  */
23280
23281 /* Override any GCC internal prototype to avoid an error.
23282    Use char because int might match the return type of a GCC
23283    builtin and then its argument prototype would still apply.  */
23284 #ifdef __cplusplus
23285 extern "C"
23286 #endif
23287 char __res_send ();
23288 int
23289 main ()
23290 {
23291 return __res_send ();
23292   ;
23293   return 0;
23294 }
23295 _ACEOF
23296 rm -f conftest.$ac_objext conftest$ac_exeext
23297 if { (ac_try="$ac_link"
23298 case "(($ac_try" in
23299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23300   *) ac_try_echo=$ac_try;;
23301 esac
23302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23303   (eval "$ac_link") 2>conftest.er1
23304   ac_status=$?
23305   grep -v '^ *+' conftest.er1 >conftest.err
23306   rm -f conftest.er1
23307   cat conftest.err >&5
23308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23309   (exit $ac_status); } && {
23310          test -z "$ac_c_werror_flag" ||
23311          test ! -s conftest.err
23312        } && test -s conftest$ac_exeext &&
23313        $as_test_x conftest$ac_exeext; then
23314   ac_cv_lib_resolv___res_send=yes
23315 else
23316   echo "$as_me: failed program was:" >&5
23317 sed 's/^/| /' conftest.$ac_ext >&5
23318
23319         ac_cv_lib_resolv___res_send=no
23320 fi
23321
23322 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23323       conftest$ac_exeext conftest.$ac_ext
23324 LIBS=$ac_check_lib_save_LIBS
23325 fi
23326 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
23327 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
23328 if test $ac_cv_lib_resolv___res_send = yes; then
23329   cat >>confdefs.h <<_ACEOF
23330 #define HAVE_LIBRESOLV 1
23331 _ACEOF
23332
23333   LIBS="-lresolv $LIBS"
23334
23335 fi
23336
23337 fi
23338
23339 { echo "$as_me:$LINENO: checking for tgetstr in -lcurses" >&5
23340 echo $ECHO_N "checking for tgetstr in -lcurses... $ECHO_C" >&6; }
23341 if test "${ac_cv_lib_curses_tgetstr+set}" = set; then
23342   echo $ECHO_N "(cached) $ECHO_C" >&6
23343 else
23344   ac_check_lib_save_LIBS=$LIBS
23345 LIBS="-lcurses  $LIBS"
23346 cat >conftest.$ac_ext <<_ACEOF
23347 /* confdefs.h.  */
23348 _ACEOF
23349 cat confdefs.h >>conftest.$ac_ext
23350 cat >>conftest.$ac_ext <<_ACEOF
23351 /* end confdefs.h.  */
23352
23353 /* Override any GCC internal prototype to avoid an error.
23354    Use char because int might match the return type of a GCC
23355    builtin and then its argument prototype would still apply.  */
23356 #ifdef __cplusplus
23357 extern "C"
23358 #endif
23359 char tgetstr ();
23360 int
23361 main ()
23362 {
23363 return tgetstr ();
23364   ;
23365   return 0;
23366 }
23367 _ACEOF
23368 rm -f conftest.$ac_objext conftest$ac_exeext
23369 if { (ac_try="$ac_link"
23370 case "(($ac_try" in
23371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23372   *) ac_try_echo=$ac_try;;
23373 esac
23374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23375   (eval "$ac_link") 2>conftest.er1
23376   ac_status=$?
23377   grep -v '^ *+' conftest.er1 >conftest.err
23378   rm -f conftest.er1
23379   cat conftest.err >&5
23380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23381   (exit $ac_status); } && {
23382          test -z "$ac_c_werror_flag" ||
23383          test ! -s conftest.err
23384        } && test -s conftest$ac_exeext &&
23385        $as_test_x conftest$ac_exeext; then
23386   ac_cv_lib_curses_tgetstr=yes
23387 else
23388   echo "$as_me: failed program was:" >&5
23389 sed 's/^/| /' conftest.$ac_ext >&5
23390
23391         ac_cv_lib_curses_tgetstr=no
23392 fi
23393
23394 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23395       conftest$ac_exeext conftest.$ac_ext
23396 LIBS=$ac_check_lib_save_LIBS
23397 fi
23398 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetstr" >&5
23399 echo "${ECHO_T}$ac_cv_lib_curses_tgetstr" >&6; }
23400 if test $ac_cv_lib_curses_tgetstr = yes; then
23401   TLIB=-lcurses
23402 else
23403   TLIB=-ltermcap
23404 fi
23405
23406 { echo "$as_me:$LINENO: checking for srcsrpy in -lsrc" >&5
23407 echo $ECHO_N "checking for srcsrpy in -lsrc... $ECHO_C" >&6; }
23408 if test "${ac_cv_lib_src_srcsrpy+set}" = set; then
23409   echo $ECHO_N "(cached) $ECHO_C" >&6
23410 else
23411   ac_check_lib_save_LIBS=$LIBS
23412 LIBS="-lsrc  $LIBS"
23413 cat >conftest.$ac_ext <<_ACEOF
23414 /* confdefs.h.  */
23415 _ACEOF
23416 cat confdefs.h >>conftest.$ac_ext
23417 cat >>conftest.$ac_ext <<_ACEOF
23418 /* end confdefs.h.  */
23419
23420 /* Override any GCC internal prototype to avoid an error.
23421    Use char because int might match the return type of a GCC
23422    builtin and then its argument prototype would still apply.  */
23423 #ifdef __cplusplus
23424 extern "C"
23425 #endif
23426 char srcsrpy ();
23427 int
23428 main ()
23429 {
23430 return srcsrpy ();
23431   ;
23432   return 0;
23433 }
23434 _ACEOF
23435 rm -f conftest.$ac_objext conftest$ac_exeext
23436 if { (ac_try="$ac_link"
23437 case "(($ac_try" in
23438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23439   *) ac_try_echo=$ac_try;;
23440 esac
23441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23442   (eval "$ac_link") 2>conftest.er1
23443   ac_status=$?
23444   grep -v '^ *+' conftest.er1 >conftest.err
23445   rm -f conftest.er1
23446   cat conftest.err >&5
23447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23448   (exit $ac_status); } && {
23449          test -z "$ac_c_werror_flag" ||
23450          test ! -s conftest.err
23451        } && test -s conftest$ac_exeext &&
23452        $as_test_x conftest$ac_exeext; then
23453   ac_cv_lib_src_srcsrpy=yes
23454 else
23455   echo "$as_me: failed program was:" >&5
23456 sed 's/^/| /' conftest.$ac_ext >&5
23457
23458         ac_cv_lib_src_srcsrpy=no
23459 fi
23460
23461 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23462       conftest$ac_exeext conftest.$ac_ext
23463 LIBS=$ac_check_lib_save_LIBS
23464 fi
23465 { echo "$as_me:$LINENO: result: $ac_cv_lib_src_srcsrpy" >&5
23466 echo "${ECHO_T}$ac_cv_lib_src_srcsrpy" >&6; }
23467 if test $ac_cv_lib_src_srcsrpy = yes; then
23468   SLIB=-lsrc; cat >>confdefs.h <<\_ACEOF
23469 #define HAVE_SRC 1
23470 _ACEOF
23471
23472 fi
23473
23474
23475
23476
23477
23478
23479 # Check whether --with-krb4 was given.
23480 if test "${with_krb4+set}" = set; then
23481   withval=$with_krb4; krb4="$withval"
23482 else
23483   krb4=no
23484 fi
23485
23486 if test "$krb4" != no; then
23487         { echo "$as_me:$LINENO: checking for gethostbyname" >&5
23488 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
23489 if test "${ac_cv_func_gethostbyname+set}" = set; then
23490   echo $ECHO_N "(cached) $ECHO_C" >&6
23491 else
23492   cat >conftest.$ac_ext <<_ACEOF
23493 /* confdefs.h.  */
23494 _ACEOF
23495 cat confdefs.h >>conftest.$ac_ext
23496 cat >>conftest.$ac_ext <<_ACEOF
23497 /* end confdefs.h.  */
23498 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
23499    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23500 #define gethostbyname innocuous_gethostbyname
23501
23502 /* System header to define __stub macros and hopefully few prototypes,
23503     which can conflict with char gethostbyname (); below.
23504     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23505     <limits.h> exists even on freestanding compilers.  */
23506
23507 #ifdef __STDC__
23508 # include <limits.h>
23509 #else
23510 # include <assert.h>
23511 #endif
23512
23513 #undef gethostbyname
23514
23515 /* Override any GCC internal prototype to avoid an error.
23516    Use char because int might match the return type of a GCC
23517    builtin and then its argument prototype would still apply.  */
23518 #ifdef __cplusplus
23519 extern "C"
23520 #endif
23521 char gethostbyname ();
23522 /* The GNU C library defines this for functions which it implements
23523     to always fail with ENOSYS.  Some functions are actually named
23524     something starting with __ and the normal name is an alias.  */
23525 #if defined __stub_gethostbyname || defined __stub___gethostbyname
23526 choke me
23527 #endif
23528
23529 int
23530 main ()
23531 {
23532 return gethostbyname ();
23533   ;
23534   return 0;
23535 }
23536 _ACEOF
23537 rm -f conftest.$ac_objext conftest$ac_exeext
23538 if { (ac_try="$ac_link"
23539 case "(($ac_try" in
23540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23541   *) ac_try_echo=$ac_try;;
23542 esac
23543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23544   (eval "$ac_link") 2>conftest.er1
23545   ac_status=$?
23546   grep -v '^ *+' conftest.er1 >conftest.err
23547   rm -f conftest.er1
23548   cat conftest.err >&5
23549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23550   (exit $ac_status); } && {
23551          test -z "$ac_c_werror_flag" ||
23552          test ! -s conftest.err
23553        } && test -s conftest$ac_exeext &&
23554        $as_test_x conftest$ac_exeext; then
23555   ac_cv_func_gethostbyname=yes
23556 else
23557   echo "$as_me: failed program was:" >&5
23558 sed 's/^/| /' conftest.$ac_ext >&5
23559
23560         ac_cv_func_gethostbyname=no
23561 fi
23562
23563 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23564       conftest$ac_exeext conftest.$ac_ext
23565 fi
23566 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
23567 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
23568 if test $ac_cv_func_gethostbyname = yes; then
23569   :
23570 else
23571
23572 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
23573 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
23574 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
23575   echo $ECHO_N "(cached) $ECHO_C" >&6
23576 else
23577   ac_check_lib_save_LIBS=$LIBS
23578 LIBS="-lnsl  $LIBS"
23579 cat >conftest.$ac_ext <<_ACEOF
23580 /* confdefs.h.  */
23581 _ACEOF
23582 cat confdefs.h >>conftest.$ac_ext
23583 cat >>conftest.$ac_ext <<_ACEOF
23584 /* end confdefs.h.  */
23585
23586 /* Override any GCC internal prototype to avoid an error.
23587    Use char because int might match the return type of a GCC
23588    builtin and then its argument prototype would still apply.  */
23589 #ifdef __cplusplus
23590 extern "C"
23591 #endif
23592 char gethostbyname ();
23593 int
23594 main ()
23595 {
23596 return gethostbyname ();
23597   ;
23598   return 0;
23599 }
23600 _ACEOF
23601 rm -f conftest.$ac_objext conftest$ac_exeext
23602 if { (ac_try="$ac_link"
23603 case "(($ac_try" in
23604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23605   *) ac_try_echo=$ac_try;;
23606 esac
23607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23608   (eval "$ac_link") 2>conftest.er1
23609   ac_status=$?
23610   grep -v '^ *+' conftest.er1 >conftest.err
23611   rm -f conftest.er1
23612   cat conftest.err >&5
23613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23614   (exit $ac_status); } && {
23615          test -z "$ac_c_werror_flag" ||
23616          test ! -s conftest.err
23617        } && test -s conftest$ac_exeext &&
23618        $as_test_x conftest$ac_exeext; then
23619   ac_cv_lib_nsl_gethostbyname=yes
23620 else
23621   echo "$as_me: failed program was:" >&5
23622 sed 's/^/| /' conftest.$ac_ext >&5
23623
23624         ac_cv_lib_nsl_gethostbyname=no
23625 fi
23626
23627 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23628       conftest$ac_exeext conftest.$ac_ext
23629 LIBS=$ac_check_lib_save_LIBS
23630 fi
23631 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
23632 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
23633 if test $ac_cv_lib_nsl_gethostbyname = yes; then
23634   cat >>confdefs.h <<_ACEOF
23635 #define HAVE_LIBNSL 1
23636 _ACEOF
23637
23638   LIBS="-lnsl $LIBS"
23639
23640 fi
23641
23642 fi
23643
23644 { echo "$as_me:$LINENO: checking for socket" >&5
23645 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
23646 if test "${ac_cv_func_socket+set}" = set; then
23647   echo $ECHO_N "(cached) $ECHO_C" >&6
23648 else
23649   cat >conftest.$ac_ext <<_ACEOF
23650 /* confdefs.h.  */
23651 _ACEOF
23652 cat confdefs.h >>conftest.$ac_ext
23653 cat >>conftest.$ac_ext <<_ACEOF
23654 /* end confdefs.h.  */
23655 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
23656    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23657 #define socket innocuous_socket
23658
23659 /* System header to define __stub macros and hopefully few prototypes,
23660     which can conflict with char socket (); below.
23661     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23662     <limits.h> exists even on freestanding compilers.  */
23663
23664 #ifdef __STDC__
23665 # include <limits.h>
23666 #else
23667 # include <assert.h>
23668 #endif
23669
23670 #undef socket
23671
23672 /* Override any GCC internal prototype to avoid an error.
23673    Use char because int might match the return type of a GCC
23674    builtin and then its argument prototype would still apply.  */
23675 #ifdef __cplusplus
23676 extern "C"
23677 #endif
23678 char socket ();
23679 /* The GNU C library defines this for functions which it implements
23680     to always fail with ENOSYS.  Some functions are actually named
23681     something starting with __ and the normal name is an alias.  */
23682 #if defined __stub_socket || defined __stub___socket
23683 choke me
23684 #endif
23685
23686 int
23687 main ()
23688 {
23689 return socket ();
23690   ;
23691   return 0;
23692 }
23693 _ACEOF
23694 rm -f conftest.$ac_objext conftest$ac_exeext
23695 if { (ac_try="$ac_link"
23696 case "(($ac_try" in
23697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23698   *) ac_try_echo=$ac_try;;
23699 esac
23700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23701   (eval "$ac_link") 2>conftest.er1
23702   ac_status=$?
23703   grep -v '^ *+' conftest.er1 >conftest.err
23704   rm -f conftest.er1
23705   cat conftest.err >&5
23706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23707   (exit $ac_status); } && {
23708          test -z "$ac_c_werror_flag" ||
23709          test ! -s conftest.err
23710        } && test -s conftest$ac_exeext &&
23711        $as_test_x conftest$ac_exeext; then
23712   ac_cv_func_socket=yes
23713 else
23714   echo "$as_me: failed program was:" >&5
23715 sed 's/^/| /' conftest.$ac_ext >&5
23716
23717         ac_cv_func_socket=no
23718 fi
23719
23720 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23721       conftest$ac_exeext conftest.$ac_ext
23722 fi
23723 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
23724 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
23725 if test $ac_cv_func_socket = yes; then
23726   :
23727 else
23728
23729 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
23730 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
23731 if test "${ac_cv_lib_socket_socket+set}" = set; then
23732   echo $ECHO_N "(cached) $ECHO_C" >&6
23733 else
23734   ac_check_lib_save_LIBS=$LIBS
23735 LIBS="-lsocket  $LIBS"
23736 cat >conftest.$ac_ext <<_ACEOF
23737 /* confdefs.h.  */
23738 _ACEOF
23739 cat confdefs.h >>conftest.$ac_ext
23740 cat >>conftest.$ac_ext <<_ACEOF
23741 /* end confdefs.h.  */
23742
23743 /* Override any GCC internal prototype to avoid an error.
23744    Use char because int might match the return type of a GCC
23745    builtin and then its argument prototype would still apply.  */
23746 #ifdef __cplusplus
23747 extern "C"
23748 #endif
23749 char socket ();
23750 int
23751 main ()
23752 {
23753 return socket ();
23754   ;
23755   return 0;
23756 }
23757 _ACEOF
23758 rm -f conftest.$ac_objext conftest$ac_exeext
23759 if { (ac_try="$ac_link"
23760 case "(($ac_try" in
23761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23762   *) ac_try_echo=$ac_try;;
23763 esac
23764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23765   (eval "$ac_link") 2>conftest.er1
23766   ac_status=$?
23767   grep -v '^ *+' conftest.er1 >conftest.err
23768   rm -f conftest.er1
23769   cat conftest.err >&5
23770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23771   (exit $ac_status); } && {
23772          test -z "$ac_c_werror_flag" ||
23773          test ! -s conftest.err
23774        } && test -s conftest$ac_exeext &&
23775        $as_test_x conftest$ac_exeext; then
23776   ac_cv_lib_socket_socket=yes
23777 else
23778   echo "$as_me: failed program was:" >&5
23779 sed 's/^/| /' conftest.$ac_ext >&5
23780
23781         ac_cv_lib_socket_socket=no
23782 fi
23783
23784 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23785       conftest$ac_exeext conftest.$ac_ext
23786 LIBS=$ac_check_lib_save_LIBS
23787 fi
23788 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
23789 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
23790 if test $ac_cv_lib_socket_socket = yes; then
23791   cat >>confdefs.h <<_ACEOF
23792 #define HAVE_LIBSOCKET 1
23793 _ACEOF
23794
23795   LIBS="-lsocket $LIBS"
23796
23797 fi
23798
23799 fi
23800
23801
23802 { echo "$as_me:$LINENO: checking for compile in -lgen" >&5
23803 echo $ECHO_N "checking for compile in -lgen... $ECHO_C" >&6; }
23804 if test "${ac_cv_lib_gen_compile+set}" = set; then
23805   echo $ECHO_N "(cached) $ECHO_C" >&6
23806 else
23807   ac_check_lib_save_LIBS=$LIBS
23808 LIBS="-lgen  $LIBS"
23809 cat >conftest.$ac_ext <<_ACEOF
23810 /* confdefs.h.  */
23811 _ACEOF
23812 cat confdefs.h >>conftest.$ac_ext
23813 cat >>conftest.$ac_ext <<_ACEOF
23814 /* end confdefs.h.  */
23815
23816 /* Override any GCC internal prototype to avoid an error.
23817    Use char because int might match the return type of a GCC
23818    builtin and then its argument prototype would still apply.  */
23819 #ifdef __cplusplus
23820 extern "C"
23821 #endif
23822 char compile ();
23823 int
23824 main ()
23825 {
23826 return compile ();
23827   ;
23828   return 0;
23829 }
23830 _ACEOF
23831 rm -f conftest.$ac_objext conftest$ac_exeext
23832 if { (ac_try="$ac_link"
23833 case "(($ac_try" in
23834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23835   *) ac_try_echo=$ac_try;;
23836 esac
23837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23838   (eval "$ac_link") 2>conftest.er1
23839   ac_status=$?
23840   grep -v '^ *+' conftest.er1 >conftest.err
23841   rm -f conftest.er1
23842   cat conftest.err >&5
23843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23844   (exit $ac_status); } && {
23845          test -z "$ac_c_werror_flag" ||
23846          test ! -s conftest.err
23847        } && test -s conftest$ac_exeext &&
23848        $as_test_x conftest$ac_exeext; then
23849   ac_cv_lib_gen_compile=yes
23850 else
23851   echo "$as_me: failed program was:" >&5
23852 sed 's/^/| /' conftest.$ac_ext >&5
23853
23854         ac_cv_lib_gen_compile=no
23855 fi
23856
23857 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23858       conftest$ac_exeext conftest.$ac_ext
23859 LIBS=$ac_check_lib_save_LIBS
23860 fi
23861 { echo "$as_me:$LINENO: result: $ac_cv_lib_gen_compile" >&5
23862 echo "${ECHO_T}$ac_cv_lib_gen_compile" >&6; }
23863 if test $ac_cv_lib_gen_compile = yes; then
23864   cat >>confdefs.h <<_ACEOF
23865 #define HAVE_LIBGEN 1
23866 _ACEOF
23867
23868   LIBS="-lgen $LIBS"
23869
23870 fi
23871
23872 if test "$krb4" != yes; then
23873         CPPFLAGS="$CPPFLAGS -I$krb4/include"
23874         if test -d "$krb4/include/kerberosIV"; then
23875                 CPPFLAGS="$CPPFLAGS -I$krb4/include/kerberosIV"
23876         fi
23877         LDFLAGS="$LDFLAGS -L$krb4/lib"
23878 fi
23879 { echo "$as_me:$LINENO: checking for krb_rd_req in -lkrb4" >&5
23880 echo $ECHO_N "checking for krb_rd_req in -lkrb4... $ECHO_C" >&6; }
23881 if test "${ac_cv_lib_krb4_krb_rd_req+set}" = set; then
23882   echo $ECHO_N "(cached) $ECHO_C" >&6
23883 else
23884   ac_check_lib_save_LIBS=$LIBS
23885 LIBS="-lkrb4 -ldes425 -lkrb5 -lk5crypto -lcom_err $LIBS"
23886 cat >conftest.$ac_ext <<_ACEOF
23887 /* confdefs.h.  */
23888 _ACEOF
23889 cat confdefs.h >>conftest.$ac_ext
23890 cat >>conftest.$ac_ext <<_ACEOF
23891 /* end confdefs.h.  */
23892
23893 /* Override any GCC internal prototype to avoid an error.
23894    Use char because int might match the return type of a GCC
23895    builtin and then its argument prototype would still apply.  */
23896 #ifdef __cplusplus
23897 extern "C"
23898 #endif
23899 char krb_rd_req ();
23900 int
23901 main ()
23902 {
23903 return krb_rd_req ();
23904   ;
23905   return 0;
23906 }
23907 _ACEOF
23908 rm -f conftest.$ac_objext conftest$ac_exeext
23909 if { (ac_try="$ac_link"
23910 case "(($ac_try" in
23911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23912   *) ac_try_echo=$ac_try;;
23913 esac
23914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23915   (eval "$ac_link") 2>conftest.er1
23916   ac_status=$?
23917   grep -v '^ *+' conftest.er1 >conftest.err
23918   rm -f conftest.er1
23919   cat conftest.err >&5
23920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23921   (exit $ac_status); } && {
23922          test -z "$ac_c_werror_flag" ||
23923          test ! -s conftest.err
23924        } && test -s conftest$ac_exeext &&
23925        $as_test_x conftest$ac_exeext; then
23926   ac_cv_lib_krb4_krb_rd_req=yes
23927 else
23928   echo "$as_me: failed program was:" >&5
23929 sed 's/^/| /' conftest.$ac_ext >&5
23930
23931         ac_cv_lib_krb4_krb_rd_req=no
23932 fi
23933
23934 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23935       conftest$ac_exeext conftest.$ac_ext
23936 LIBS=$ac_check_lib_save_LIBS
23937 fi
23938 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_rd_req" >&5
23939 echo "${ECHO_T}$ac_cv_lib_krb4_krb_rd_req" >&6; }
23940 if test $ac_cv_lib_krb4_krb_rd_req = yes; then
23941   KRB4_LIBS="-lkrb4 -ldes425 -lkrb5 -lk5crypto -lcom_err"
23942 else
23943   { echo "$as_me:$LINENO: checking for krb_rd_req in -lkrb" >&5
23944 echo $ECHO_N "checking for krb_rd_req in -lkrb... $ECHO_C" >&6; }
23945 if test "${ac_cv_lib_krb_krb_rd_req+set}" = set; then
23946   echo $ECHO_N "(cached) $ECHO_C" >&6
23947 else
23948   ac_check_lib_save_LIBS=$LIBS
23949 LIBS="-lkrb -ldes $LIBS"
23950 cat >conftest.$ac_ext <<_ACEOF
23951 /* confdefs.h.  */
23952 _ACEOF
23953 cat confdefs.h >>conftest.$ac_ext
23954 cat >>conftest.$ac_ext <<_ACEOF
23955 /* end confdefs.h.  */
23956
23957 /* Override any GCC internal prototype to avoid an error.
23958    Use char because int might match the return type of a GCC
23959    builtin and then its argument prototype would still apply.  */
23960 #ifdef __cplusplus
23961 extern "C"
23962 #endif
23963 char krb_rd_req ();
23964 int
23965 main ()
23966 {
23967 return krb_rd_req ();
23968   ;
23969   return 0;
23970 }
23971 _ACEOF
23972 rm -f conftest.$ac_objext conftest$ac_exeext
23973 if { (ac_try="$ac_link"
23974 case "(($ac_try" in
23975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23976   *) ac_try_echo=$ac_try;;
23977 esac
23978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23979   (eval "$ac_link") 2>conftest.er1
23980   ac_status=$?
23981   grep -v '^ *+' conftest.er1 >conftest.err
23982   rm -f conftest.er1
23983   cat conftest.err >&5
23984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23985   (exit $ac_status); } && {
23986          test -z "$ac_c_werror_flag" ||
23987          test ! -s conftest.err
23988        } && test -s conftest$ac_exeext &&
23989        $as_test_x conftest$ac_exeext; then
23990   ac_cv_lib_krb_krb_rd_req=yes
23991 else
23992   echo "$as_me: failed program was:" >&5
23993 sed 's/^/| /' conftest.$ac_ext >&5
23994
23995         ac_cv_lib_krb_krb_rd_req=no
23996 fi
23997
23998 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23999       conftest$ac_exeext conftest.$ac_ext
24000 LIBS=$ac_check_lib_save_LIBS
24001 fi
24002 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_rd_req" >&5
24003 echo "${ECHO_T}$ac_cv_lib_krb_krb_rd_req" >&6; }
24004 if test $ac_cv_lib_krb_krb_rd_req = yes; then
24005   KRB4_LIBS="-lkrb -ldes"
24006 else
24007   { { echo "$as_me:$LINENO: error: Kerberos 4 libraries not found" >&5
24008 echo "$as_me: error: Kerberos 4 libraries not found" >&2;}
24009    { (exit 1); exit 1; }; }
24010 fi
24011
24012 fi
24013
24014         cat >>confdefs.h <<\_ACEOF
24015 #define HAVE_KRB4 1
24016 _ACEOF
24017
24018 fi
24019
24020
24021
24022 # Check whether --with-krb5 was given.
24023 if test "${with_krb5+set}" = set; then
24024   withval=$with_krb5; krb5="$withval"
24025 else
24026   krb5=no
24027 fi
24028
24029 if test "$krb5" != no; then
24030    { echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
24031 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6; }
24032 if test "${ac_cv_search_gethostbyname+set}" = set; then
24033   echo $ECHO_N "(cached) $ECHO_C" >&6
24034 else
24035   ac_func_search_save_LIBS=$LIBS
24036 cat >conftest.$ac_ext <<_ACEOF
24037 /* confdefs.h.  */
24038 _ACEOF
24039 cat confdefs.h >>conftest.$ac_ext
24040 cat >>conftest.$ac_ext <<_ACEOF
24041 /* end confdefs.h.  */
24042
24043 /* Override any GCC internal prototype to avoid an error.
24044    Use char because int might match the return type of a GCC
24045    builtin and then its argument prototype would still apply.  */
24046 #ifdef __cplusplus
24047 extern "C"
24048 #endif
24049 char gethostbyname ();
24050 int
24051 main ()
24052 {
24053 return gethostbyname ();
24054   ;
24055   return 0;
24056 }
24057 _ACEOF
24058 for ac_lib in '' nsl; do
24059   if test -z "$ac_lib"; then
24060     ac_res="none required"
24061   else
24062     ac_res=-l$ac_lib
24063     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
24064   fi
24065   rm -f conftest.$ac_objext conftest$ac_exeext
24066 if { (ac_try="$ac_link"
24067 case "(($ac_try" in
24068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24069   *) ac_try_echo=$ac_try;;
24070 esac
24071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24072   (eval "$ac_link") 2>conftest.er1
24073   ac_status=$?
24074   grep -v '^ *+' conftest.er1 >conftest.err
24075   rm -f conftest.er1
24076   cat conftest.err >&5
24077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24078   (exit $ac_status); } && {
24079          test -z "$ac_c_werror_flag" ||
24080          test ! -s conftest.err
24081        } && test -s conftest$ac_exeext &&
24082        $as_test_x conftest$ac_exeext; then
24083   ac_cv_search_gethostbyname=$ac_res
24084 else
24085   echo "$as_me: failed program was:" >&5
24086 sed 's/^/| /' conftest.$ac_ext >&5
24087
24088
24089 fi
24090
24091 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24092       conftest$ac_exeext
24093   if test "${ac_cv_search_gethostbyname+set}" = set; then
24094   break
24095 fi
24096 done
24097 if test "${ac_cv_search_gethostbyname+set}" = set; then
24098   :
24099 else
24100   ac_cv_search_gethostbyname=no
24101 fi
24102 rm conftest.$ac_ext
24103 LIBS=$ac_func_search_save_LIBS
24104 fi
24105 { echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
24106 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6; }
24107 ac_res=$ac_cv_search_gethostbyname
24108 if test "$ac_res" != no; then
24109   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24110
24111 fi
24112
24113    { echo "$as_me:$LINENO: checking for library containing socket" >&5
24114 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
24115 if test "${ac_cv_search_socket+set}" = set; then
24116   echo $ECHO_N "(cached) $ECHO_C" >&6
24117 else
24118   ac_func_search_save_LIBS=$LIBS
24119 cat >conftest.$ac_ext <<_ACEOF
24120 /* confdefs.h.  */
24121 _ACEOF
24122 cat confdefs.h >>conftest.$ac_ext
24123 cat >>conftest.$ac_ext <<_ACEOF
24124 /* end confdefs.h.  */
24125
24126 /* Override any GCC internal prototype to avoid an error.
24127    Use char because int might match the return type of a GCC
24128    builtin and then its argument prototype would still apply.  */
24129 #ifdef __cplusplus
24130 extern "C"
24131 #endif
24132 char socket ();
24133 int
24134 main ()
24135 {
24136 return socket ();
24137   ;
24138   return 0;
24139 }
24140 _ACEOF
24141 for ac_lib in '' socket; do
24142   if test -z "$ac_lib"; then
24143     ac_res="none required"
24144   else
24145     ac_res=-l$ac_lib
24146     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
24147   fi
24148   rm -f conftest.$ac_objext conftest$ac_exeext
24149 if { (ac_try="$ac_link"
24150 case "(($ac_try" in
24151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24152   *) ac_try_echo=$ac_try;;
24153 esac
24154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24155   (eval "$ac_link") 2>conftest.er1
24156   ac_status=$?
24157   grep -v '^ *+' conftest.er1 >conftest.err
24158   rm -f conftest.er1
24159   cat conftest.err >&5
24160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24161   (exit $ac_status); } && {
24162          test -z "$ac_c_werror_flag" ||
24163          test ! -s conftest.err
24164        } && test -s conftest$ac_exeext &&
24165        $as_test_x conftest$ac_exeext; then
24166   ac_cv_search_socket=$ac_res
24167 else
24168   echo "$as_me: failed program was:" >&5
24169 sed 's/^/| /' conftest.$ac_ext >&5
24170
24171
24172 fi
24173
24174 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24175       conftest$ac_exeext
24176   if test "${ac_cv_search_socket+set}" = set; then
24177   break
24178 fi
24179 done
24180 if test "${ac_cv_search_socket+set}" = set; then
24181   :
24182 else
24183   ac_cv_search_socket=no
24184 fi
24185 rm conftest.$ac_ext
24186 LIBS=$ac_func_search_save_LIBS
24187 fi
24188 { echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
24189 echo "${ECHO_T}$ac_cv_search_socket" >&6; }
24190 ac_res=$ac_cv_search_socket
24191 if test "$ac_res" != no; then
24192   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24193
24194 fi
24195
24196
24197 { echo "$as_me:$LINENO: checking for compile in -lgen" >&5
24198 echo $ECHO_N "checking for compile in -lgen... $ECHO_C" >&6; }
24199 if test "${ac_cv_lib_gen_compile+set}" = set; then
24200   echo $ECHO_N "(cached) $ECHO_C" >&6
24201 else
24202   ac_check_lib_save_LIBS=$LIBS
24203 LIBS="-lgen  $LIBS"
24204 cat >conftest.$ac_ext <<_ACEOF
24205 /* confdefs.h.  */
24206 _ACEOF
24207 cat confdefs.h >>conftest.$ac_ext
24208 cat >>conftest.$ac_ext <<_ACEOF
24209 /* end confdefs.h.  */
24210
24211 /* Override any GCC internal prototype to avoid an error.
24212    Use char because int might match the return type of a GCC
24213    builtin and then its argument prototype would still apply.  */
24214 #ifdef __cplusplus
24215 extern "C"
24216 #endif
24217 char compile ();
24218 int
24219 main ()
24220 {
24221 return compile ();
24222   ;
24223   return 0;
24224 }
24225 _ACEOF
24226 rm -f conftest.$ac_objext conftest$ac_exeext
24227 if { (ac_try="$ac_link"
24228 case "(($ac_try" in
24229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24230   *) ac_try_echo=$ac_try;;
24231 esac
24232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24233   (eval "$ac_link") 2>conftest.er1
24234   ac_status=$?
24235   grep -v '^ *+' conftest.er1 >conftest.err
24236   rm -f conftest.er1
24237   cat conftest.err >&5
24238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24239   (exit $ac_status); } && {
24240          test -z "$ac_c_werror_flag" ||
24241          test ! -s conftest.err
24242        } && test -s conftest$ac_exeext &&
24243        $as_test_x conftest$ac_exeext; then
24244   ac_cv_lib_gen_compile=yes
24245 else
24246   echo "$as_me: failed program was:" >&5
24247 sed 's/^/| /' conftest.$ac_ext >&5
24248
24249         ac_cv_lib_gen_compile=no
24250 fi
24251
24252 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24253       conftest$ac_exeext conftest.$ac_ext
24254 LIBS=$ac_check_lib_save_LIBS
24255 fi
24256 { echo "$as_me:$LINENO: result: $ac_cv_lib_gen_compile" >&5
24257 echo "${ECHO_T}$ac_cv_lib_gen_compile" >&6; }
24258 if test $ac_cv_lib_gen_compile = yes; then
24259   cat >>confdefs.h <<_ACEOF
24260 #define HAVE_LIBGEN 1
24261 _ACEOF
24262
24263   LIBS="-lgen $LIBS"
24264
24265 fi
24266
24267    if test "$krb5" != yes; then
24268       PATH="$PATH:$krb5/bin"
24269    fi
24270    # Extract the first word of "krb5-config", so it can be a program name with args.
24271 set dummy krb5-config; ac_word=$2
24272 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24274 if test "${ac_cv_prog_krb5config+set}" = set; then
24275   echo $ECHO_N "(cached) $ECHO_C" >&6
24276 else
24277   if test -n "$krb5config"; then
24278   ac_cv_prog_krb5config="$krb5config" # Let the user override the test.
24279 else
24280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24281 for as_dir in $PATH
24282 do
24283   IFS=$as_save_IFS
24284   test -z "$as_dir" && as_dir=.
24285   for ac_exec_ext in '' $ac_executable_extensions; do
24286   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24287     ac_cv_prog_krb5config="yes"
24288     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24289     break 2
24290   fi
24291 done
24292 done
24293 IFS=$as_save_IFS
24294
24295 fi
24296 fi
24297 krb5config=$ac_cv_prog_krb5config
24298 if test -n "$krb5config"; then
24299   { echo "$as_me:$LINENO: result: $krb5config" >&5
24300 echo "${ECHO_T}$krb5config" >&6; }
24301 else
24302   { echo "$as_me:$LINENO: result: no" >&5
24303 echo "${ECHO_T}no" >&6; }
24304 fi
24305
24306
24307    if test "$krb5config" == yes; then
24308       CPPFLAGS="$CPPFLAGS $(krb5-config --cflags krb5)"
24309       KRB5_LIBS="$(krb5-config --libs krb5)"
24310    else
24311       if test "$krb5" != yes; then
24312          CPPFLAGS="$CPPFLAGS -I$krb5/include"
24313          LDFLAGS="$LDFLAGS -L$krb5/lib"
24314       fi
24315       { echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
24316 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6; }
24317 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
24318   echo $ECHO_N "(cached) $ECHO_C" >&6
24319 else
24320   ac_check_lib_save_LIBS=$LIBS
24321 LIBS="-lkrb5 -lk5crypto -lcom_err $LIBS"
24322 cat >conftest.$ac_ext <<_ACEOF
24323 /* confdefs.h.  */
24324 _ACEOF
24325 cat confdefs.h >>conftest.$ac_ext
24326 cat >>conftest.$ac_ext <<_ACEOF
24327 /* end confdefs.h.  */
24328
24329 /* Override any GCC internal prototype to avoid an error.
24330    Use char because int might match the return type of a GCC
24331    builtin and then its argument prototype would still apply.  */
24332 #ifdef __cplusplus
24333 extern "C"
24334 #endif
24335 char krb5_init_context ();
24336 int
24337 main ()
24338 {
24339 return krb5_init_context ();
24340   ;
24341   return 0;
24342 }
24343 _ACEOF
24344 rm -f conftest.$ac_objext conftest$ac_exeext
24345 if { (ac_try="$ac_link"
24346 case "(($ac_try" in
24347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24348   *) ac_try_echo=$ac_try;;
24349 esac
24350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24351   (eval "$ac_link") 2>conftest.er1
24352   ac_status=$?
24353   grep -v '^ *+' conftest.er1 >conftest.err
24354   rm -f conftest.er1
24355   cat conftest.err >&5
24356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24357   (exit $ac_status); } && {
24358          test -z "$ac_c_werror_flag" ||
24359          test ! -s conftest.err
24360        } && test -s conftest$ac_exeext &&
24361        $as_test_x conftest$ac_exeext; then
24362   ac_cv_lib_krb5_krb5_init_context=yes
24363 else
24364   echo "$as_me: failed program was:" >&5
24365 sed 's/^/| /' conftest.$ac_ext >&5
24366
24367         ac_cv_lib_krb5_krb5_init_context=no
24368 fi
24369
24370 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24371       conftest$ac_exeext conftest.$ac_ext
24372 LIBS=$ac_check_lib_save_LIBS
24373 fi
24374 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
24375 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
24376 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
24377   :
24378 else
24379   { { echo "$as_me:$LINENO: error: Kerberos 5 libraries not found" >&5
24380 echo "$as_me: error: Kerberos 5 libraries not found" >&2;}
24381    { (exit 1); exit 1; }; }
24382 fi
24383
24384       KRB5_LIBS="-lkrb5 -l5crypto -lcom_err"
24385    fi
24386    cat >>confdefs.h <<\_ACEOF
24387 #define HAVE_KRB5 1
24388 _ACEOF
24389
24390 fi
24391
24392
24393
24394 # Check whether --with-krb5 was given.
24395 if test "${with_krb5+set}" = set; then
24396   withval=$with_krb5; krb5="$withval"
24397 else
24398   krb5=no
24399 fi
24400
24401 if test "$krb5" != no; then
24402         { echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
24403 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6; }
24404 if test "${ac_cv_search_gethostbyname+set}" = set; then
24405   echo $ECHO_N "(cached) $ECHO_C" >&6
24406 else
24407   ac_func_search_save_LIBS=$LIBS
24408 cat >conftest.$ac_ext <<_ACEOF
24409 /* confdefs.h.  */
24410 _ACEOF
24411 cat confdefs.h >>conftest.$ac_ext
24412 cat >>conftest.$ac_ext <<_ACEOF
24413 /* end confdefs.h.  */
24414
24415 /* Override any GCC internal prototype to avoid an error.
24416    Use char because int might match the return type of a GCC
24417    builtin and then its argument prototype would still apply.  */
24418 #ifdef __cplusplus
24419 extern "C"
24420 #endif
24421 char gethostbyname ();
24422 int
24423 main ()
24424 {
24425 return gethostbyname ();
24426   ;
24427   return 0;
24428 }
24429 _ACEOF
24430 for ac_lib in '' nsl; do
24431   if test -z "$ac_lib"; then
24432     ac_res="none required"
24433   else
24434     ac_res=-l$ac_lib
24435     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
24436   fi
24437   rm -f conftest.$ac_objext conftest$ac_exeext
24438 if { (ac_try="$ac_link"
24439 case "(($ac_try" in
24440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24441   *) ac_try_echo=$ac_try;;
24442 esac
24443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24444   (eval "$ac_link") 2>conftest.er1
24445   ac_status=$?
24446   grep -v '^ *+' conftest.er1 >conftest.err
24447   rm -f conftest.er1
24448   cat conftest.err >&5
24449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24450   (exit $ac_status); } && {
24451          test -z "$ac_c_werror_flag" ||
24452          test ! -s conftest.err
24453        } && test -s conftest$ac_exeext &&
24454        $as_test_x conftest$ac_exeext; then
24455   ac_cv_search_gethostbyname=$ac_res
24456 else
24457   echo "$as_me: failed program was:" >&5
24458 sed 's/^/| /' conftest.$ac_ext >&5
24459
24460
24461 fi
24462
24463 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24464       conftest$ac_exeext
24465   if test "${ac_cv_search_gethostbyname+set}" = set; then
24466   break
24467 fi
24468 done
24469 if test "${ac_cv_search_gethostbyname+set}" = set; then
24470   :
24471 else
24472   ac_cv_search_gethostbyname=no
24473 fi
24474 rm conftest.$ac_ext
24475 LIBS=$ac_func_search_save_LIBS
24476 fi
24477 { echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
24478 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6; }
24479 ac_res=$ac_cv_search_gethostbyname
24480 if test "$ac_res" != no; then
24481   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24482
24483 fi
24484
24485 { echo "$as_me:$LINENO: checking for library containing socket" >&5
24486 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
24487 if test "${ac_cv_search_socket+set}" = set; then
24488   echo $ECHO_N "(cached) $ECHO_C" >&6
24489 else
24490   ac_func_search_save_LIBS=$LIBS
24491 cat >conftest.$ac_ext <<_ACEOF
24492 /* confdefs.h.  */
24493 _ACEOF
24494 cat confdefs.h >>conftest.$ac_ext
24495 cat >>conftest.$ac_ext <<_ACEOF
24496 /* end confdefs.h.  */
24497
24498 /* Override any GCC internal prototype to avoid an error.
24499    Use char because int might match the return type of a GCC
24500    builtin and then its argument prototype would still apply.  */
24501 #ifdef __cplusplus
24502 extern "C"
24503 #endif
24504 char socket ();
24505 int
24506 main ()
24507 {
24508 return socket ();
24509   ;
24510   return 0;
24511 }
24512 _ACEOF
24513 for ac_lib in '' socket; do
24514   if test -z "$ac_lib"; then
24515     ac_res="none required"
24516   else
24517     ac_res=-l$ac_lib
24518     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
24519   fi
24520   rm -f conftest.$ac_objext conftest$ac_exeext
24521 if { (ac_try="$ac_link"
24522 case "(($ac_try" in
24523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24524   *) ac_try_echo=$ac_try;;
24525 esac
24526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24527   (eval "$ac_link") 2>conftest.er1
24528   ac_status=$?
24529   grep -v '^ *+' conftest.er1 >conftest.err
24530   rm -f conftest.er1
24531   cat conftest.err >&5
24532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24533   (exit $ac_status); } && {
24534          test -z "$ac_c_werror_flag" ||
24535          test ! -s conftest.err
24536        } && test -s conftest$ac_exeext &&
24537        $as_test_x conftest$ac_exeext; then
24538   ac_cv_search_socket=$ac_res
24539 else
24540   echo "$as_me: failed program was:" >&5
24541 sed 's/^/| /' conftest.$ac_ext >&5
24542
24543
24544 fi
24545
24546 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24547       conftest$ac_exeext
24548   if test "${ac_cv_search_socket+set}" = set; then
24549   break
24550 fi
24551 done
24552 if test "${ac_cv_search_socket+set}" = set; then
24553   :
24554 else
24555   ac_cv_search_socket=no
24556 fi
24557 rm conftest.$ac_ext
24558 LIBS=$ac_func_search_save_LIBS
24559 fi
24560 { echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
24561 echo "${ECHO_T}$ac_cv_search_socket" >&6; }
24562 ac_res=$ac_cv_search_socket
24563 if test "$ac_res" != no; then
24564   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24565
24566 fi
24567
24568
24569 { echo "$as_me:$LINENO: checking for compile in -lgen" >&5
24570 echo $ECHO_N "checking for compile in -lgen... $ECHO_C" >&6; }
24571 if test "${ac_cv_lib_gen_compile+set}" = set; then
24572   echo $ECHO_N "(cached) $ECHO_C" >&6
24573 else
24574   ac_check_lib_save_LIBS=$LIBS
24575 LIBS="-lgen  $LIBS"
24576 cat >conftest.$ac_ext <<_ACEOF
24577 /* confdefs.h.  */
24578 _ACEOF
24579 cat confdefs.h >>conftest.$ac_ext
24580 cat >>conftest.$ac_ext <<_ACEOF
24581 /* end confdefs.h.  */
24582
24583 /* Override any GCC internal prototype to avoid an error.
24584    Use char because int might match the return type of a GCC
24585    builtin and then its argument prototype would still apply.  */
24586 #ifdef __cplusplus
24587 extern "C"
24588 #endif
24589 char compile ();
24590 int
24591 main ()
24592 {
24593 return compile ();
24594   ;
24595   return 0;
24596 }
24597 _ACEOF
24598 rm -f conftest.$ac_objext conftest$ac_exeext
24599 if { (ac_try="$ac_link"
24600 case "(($ac_try" in
24601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24602   *) ac_try_echo=$ac_try;;
24603 esac
24604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24605   (eval "$ac_link") 2>conftest.er1
24606   ac_status=$?
24607   grep -v '^ *+' conftest.er1 >conftest.err
24608   rm -f conftest.er1
24609   cat conftest.err >&5
24610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24611   (exit $ac_status); } && {
24612          test -z "$ac_c_werror_flag" ||
24613          test ! -s conftest.err
24614        } && test -s conftest$ac_exeext &&
24615        $as_test_x conftest$ac_exeext; then
24616   ac_cv_lib_gen_compile=yes
24617 else
24618   echo "$as_me: failed program was:" >&5
24619 sed 's/^/| /' conftest.$ac_ext >&5
24620
24621         ac_cv_lib_gen_compile=no
24622 fi
24623
24624 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24625       conftest$ac_exeext conftest.$ac_ext
24626 LIBS=$ac_check_lib_save_LIBS
24627 fi
24628 { echo "$as_me:$LINENO: result: $ac_cv_lib_gen_compile" >&5
24629 echo "${ECHO_T}$ac_cv_lib_gen_compile" >&6; }
24630 if test $ac_cv_lib_gen_compile = yes; then
24631   cat >>confdefs.h <<_ACEOF
24632 #define HAVE_LIBGEN 1
24633 _ACEOF
24634
24635   LIBS="-lgen $LIBS"
24636
24637 fi
24638
24639 if test "$krb5" != yes; then
24640         CPPFLAGS="$CPPFLAGS -I$krb5/include"
24641         LDFLAGS="$LDFLAGS -L$krb5/lib"
24642 fi
24643 { echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
24644 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6; }
24645 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
24646   echo $ECHO_N "(cached) $ECHO_C" >&6
24647 else
24648   ac_check_lib_save_LIBS=$LIBS
24649 LIBS="-lkrb5 -lk5crypto -lcom_err $LIBS"
24650 cat >conftest.$ac_ext <<_ACEOF
24651 /* confdefs.h.  */
24652 _ACEOF
24653 cat confdefs.h >>conftest.$ac_ext
24654 cat >>conftest.$ac_ext <<_ACEOF
24655 /* end confdefs.h.  */
24656
24657 /* Override any GCC internal prototype to avoid an error.
24658    Use char because int might match the return type of a GCC
24659    builtin and then its argument prototype would still apply.  */
24660 #ifdef __cplusplus
24661 extern "C"
24662 #endif
24663 char krb5_init_context ();
24664 int
24665 main ()
24666 {
24667 return krb5_init_context ();
24668   ;
24669   return 0;
24670 }
24671 _ACEOF
24672 rm -f conftest.$ac_objext conftest$ac_exeext
24673 if { (ac_try="$ac_link"
24674 case "(($ac_try" in
24675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24676   *) ac_try_echo=$ac_try;;
24677 esac
24678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24679   (eval "$ac_link") 2>conftest.er1
24680   ac_status=$?
24681   grep -v '^ *+' conftest.er1 >conftest.err
24682   rm -f conftest.er1
24683   cat conftest.err >&5
24684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24685   (exit $ac_status); } && {
24686          test -z "$ac_c_werror_flag" ||
24687          test ! -s conftest.err
24688        } && test -s conftest$ac_exeext &&
24689        $as_test_x conftest$ac_exeext; then
24690   ac_cv_lib_krb5_krb5_init_context=yes
24691 else
24692   echo "$as_me: failed program was:" >&5
24693 sed 's/^/| /' conftest.$ac_ext >&5
24694
24695         ac_cv_lib_krb5_krb5_init_context=no
24696 fi
24697
24698 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24699       conftest$ac_exeext conftest.$ac_ext
24700 LIBS=$ac_check_lib_save_LIBS
24701 fi
24702 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
24703 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
24704 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
24705   :
24706 else
24707   { { echo "$as_me:$LINENO: error: Kerberos 5 libraries not found" >&5
24708 echo "$as_me: error: Kerberos 5 libraries not found" >&2;}
24709    { (exit 1); exit 1; }; }
24710 fi
24711
24712         KRB5_LIBS="-lkrb5 -lk5crypto -lcom_err"
24713         cat >>confdefs.h <<\_ACEOF
24714 #define HAVE_KRB5 1
24715 _ACEOF
24716
24717 fi
24718
24719
24720 # Check whether --with-hesiod was given.
24721 if test "${with_hesiod+set}" = set; then
24722   withval=$with_hesiod; hesiod="$withval"
24723 else
24724   hesiod=no
24725 fi
24726
24727 if test "$hesiod" != no; then
24728         { echo "$as_me:$LINENO: checking for res_send" >&5
24729 echo $ECHO_N "checking for res_send... $ECHO_C" >&6; }
24730 if test "${ac_cv_func_res_send+set}" = set; then
24731   echo $ECHO_N "(cached) $ECHO_C" >&6
24732 else
24733   cat >conftest.$ac_ext <<_ACEOF
24734 /* confdefs.h.  */
24735 _ACEOF
24736 cat confdefs.h >>conftest.$ac_ext
24737 cat >>conftest.$ac_ext <<_ACEOF
24738 /* end confdefs.h.  */
24739 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
24740    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24741 #define res_send innocuous_res_send
24742
24743 /* System header to define __stub macros and hopefully few prototypes,
24744     which can conflict with char res_send (); below.
24745     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24746     <limits.h> exists even on freestanding compilers.  */
24747
24748 #ifdef __STDC__
24749 # include <limits.h>
24750 #else
24751 # include <assert.h>
24752 #endif
24753
24754 #undef res_send
24755
24756 /* Override any GCC internal prototype to avoid an error.
24757    Use char because int might match the return type of a GCC
24758    builtin and then its argument prototype would still apply.  */
24759 #ifdef __cplusplus
24760 extern "C"
24761 #endif
24762 char res_send ();
24763 /* The GNU C library defines this for functions which it implements
24764     to always fail with ENOSYS.  Some functions are actually named
24765     something starting with __ and the normal name is an alias.  */
24766 #if defined __stub_res_send || defined __stub___res_send
24767 choke me
24768 #endif
24769
24770 int
24771 main ()
24772 {
24773 return res_send ();
24774   ;
24775   return 0;
24776 }
24777 _ACEOF
24778 rm -f conftest.$ac_objext conftest$ac_exeext
24779 if { (ac_try="$ac_link"
24780 case "(($ac_try" in
24781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24782   *) ac_try_echo=$ac_try;;
24783 esac
24784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24785   (eval "$ac_link") 2>conftest.er1
24786   ac_status=$?
24787   grep -v '^ *+' conftest.er1 >conftest.err
24788   rm -f conftest.er1
24789   cat conftest.err >&5
24790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24791   (exit $ac_status); } && {
24792          test -z "$ac_c_werror_flag" ||
24793          test ! -s conftest.err
24794        } && test -s conftest$ac_exeext &&
24795        $as_test_x conftest$ac_exeext; then
24796   ac_cv_func_res_send=yes
24797 else
24798   echo "$as_me: failed program was:" >&5
24799 sed 's/^/| /' conftest.$ac_ext >&5
24800
24801         ac_cv_func_res_send=no
24802 fi
24803
24804 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24805       conftest$ac_exeext conftest.$ac_ext
24806 fi
24807 { echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
24808 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
24809 if test $ac_cv_func_res_send = yes; then
24810   :
24811 else
24812
24813 { echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
24814 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6; }
24815 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
24816   echo $ECHO_N "(cached) $ECHO_C" >&6
24817 else
24818   ac_check_lib_save_LIBS=$LIBS
24819 LIBS="-lresolv  $LIBS"
24820 cat >conftest.$ac_ext <<_ACEOF
24821 /* confdefs.h.  */
24822 _ACEOF
24823 cat confdefs.h >>conftest.$ac_ext
24824 cat >>conftest.$ac_ext <<_ACEOF
24825 /* end confdefs.h.  */
24826
24827 /* Override any GCC internal prototype to avoid an error.
24828    Use char because int might match the return type of a GCC
24829    builtin and then its argument prototype would still apply.  */
24830 #ifdef __cplusplus
24831 extern "C"
24832 #endif
24833 char res_send ();
24834 int
24835 main ()
24836 {
24837 return res_send ();
24838   ;
24839   return 0;
24840 }
24841 _ACEOF
24842 rm -f conftest.$ac_objext conftest$ac_exeext
24843 if { (ac_try="$ac_link"
24844 case "(($ac_try" in
24845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24846   *) ac_try_echo=$ac_try;;
24847 esac
24848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24849   (eval "$ac_link") 2>conftest.er1
24850   ac_status=$?
24851   grep -v '^ *+' conftest.er1 >conftest.err
24852   rm -f conftest.er1
24853   cat conftest.err >&5
24854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24855   (exit $ac_status); } && {
24856          test -z "$ac_c_werror_flag" ||
24857          test ! -s conftest.err
24858        } && test -s conftest$ac_exeext &&
24859        $as_test_x conftest$ac_exeext; then
24860   ac_cv_lib_resolv_res_send=yes
24861 else
24862   echo "$as_me: failed program was:" >&5
24863 sed 's/^/| /' conftest.$ac_ext >&5
24864
24865         ac_cv_lib_resolv_res_send=no
24866 fi
24867
24868 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24869       conftest$ac_exeext conftest.$ac_ext
24870 LIBS=$ac_check_lib_save_LIBS
24871 fi
24872 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
24873 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
24874 if test $ac_cv_lib_resolv_res_send = yes; then
24875   cat >>confdefs.h <<_ACEOF
24876 #define HAVE_LIBRESOLV 1
24877 _ACEOF
24878
24879   LIBS="-lresolv $LIBS"
24880
24881 fi
24882
24883 fi
24884
24885 if test "$hesiod" != yes; then
24886         CPPFLAGS="$CPPFLAGS -I$hesiod/include"
24887         LDFLAGS="$LDFLAGS -L$hesiod/lib"
24888 fi
24889 { echo "$as_me:$LINENO: checking for hes_resolve in -lhesiod" >&5
24890 echo $ECHO_N "checking for hes_resolve in -lhesiod... $ECHO_C" >&6; }
24891 if test "${ac_cv_lib_hesiod_hes_resolve+set}" = set; then
24892   echo $ECHO_N "(cached) $ECHO_C" >&6
24893 else
24894   ac_check_lib_save_LIBS=$LIBS
24895 LIBS="-lhesiod $LIBS $LIBS"
24896 cat >conftest.$ac_ext <<_ACEOF
24897 /* confdefs.h.  */
24898 _ACEOF
24899 cat confdefs.h >>conftest.$ac_ext
24900 cat >>conftest.$ac_ext <<_ACEOF
24901 /* end confdefs.h.  */
24902
24903 /* Override any GCC internal prototype to avoid an error.
24904    Use char because int might match the return type of a GCC
24905    builtin and then its argument prototype would still apply.  */
24906 #ifdef __cplusplus
24907 extern "C"
24908 #endif
24909 char hes_resolve ();
24910 int
24911 main ()
24912 {
24913 return hes_resolve ();
24914   ;
24915   return 0;
24916 }
24917 _ACEOF
24918 rm -f conftest.$ac_objext conftest$ac_exeext
24919 if { (ac_try="$ac_link"
24920 case "(($ac_try" in
24921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24922   *) ac_try_echo=$ac_try;;
24923 esac
24924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24925   (eval "$ac_link") 2>conftest.er1
24926   ac_status=$?
24927   grep -v '^ *+' conftest.er1 >conftest.err
24928   rm -f conftest.er1
24929   cat conftest.err >&5
24930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24931   (exit $ac_status); } && {
24932          test -z "$ac_c_werror_flag" ||
24933          test ! -s conftest.err
24934        } && test -s conftest$ac_exeext &&
24935        $as_test_x conftest$ac_exeext; then
24936   ac_cv_lib_hesiod_hes_resolve=yes
24937 else
24938   echo "$as_me: failed program was:" >&5
24939 sed 's/^/| /' conftest.$ac_ext >&5
24940
24941         ac_cv_lib_hesiod_hes_resolve=no
24942 fi
24943
24944 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24945       conftest$ac_exeext conftest.$ac_ext
24946 LIBS=$ac_check_lib_save_LIBS
24947 fi
24948 { echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_resolve" >&5
24949 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_resolve" >&6; }
24950 if test $ac_cv_lib_hesiod_hes_resolve = yes; then
24951   :
24952 else
24953   { { echo "$as_me:$LINENO: error: Hesiod library not found" >&5
24954 echo "$as_me: error: Hesiod library not found" >&2;}
24955    { (exit 1); exit 1; }; }
24956 fi
24957
24958         HESIOD_LIBS="-lhesiod"
24959         cat >>confdefs.h <<\_ACEOF
24960 #define HAVE_HESIOD 1
24961 _ACEOF
24962
24963 fi
24964
24965
24966 # Check whether --with-regex was given.
24967 if test "${with_regex+set}" = set; then
24968   withval=$with_regex; regex="$withval"
24969 else
24970   regex=no
24971 fi
24972
24973 if test "$regex" != no; then
24974         if test "$regex" != yes; then
24975                 CPPFLAGS="$CPPFLAGS -I$regex/include"
24976                 LDFLAGS="$LDFLAGS -L$regex/lib"
24977         fi
24978         { echo "$as_me:$LINENO: checking for regcomp in -lregex" >&5
24979 echo $ECHO_N "checking for regcomp in -lregex... $ECHO_C" >&6; }
24980 if test "${ac_cv_lib_regex_regcomp+set}" = set; then
24981   echo $ECHO_N "(cached) $ECHO_C" >&6
24982 else
24983   ac_check_lib_save_LIBS=$LIBS
24984 LIBS="-lregex  $LIBS"
24985 cat >conftest.$ac_ext <<_ACEOF
24986 /* confdefs.h.  */
24987 _ACEOF
24988 cat confdefs.h >>conftest.$ac_ext
24989 cat >>conftest.$ac_ext <<_ACEOF
24990 /* end confdefs.h.  */
24991
24992 /* Override any GCC internal prototype to avoid an error.
24993    Use char because int might match the return type of a GCC
24994    builtin and then its argument prototype would still apply.  */
24995 #ifdef __cplusplus
24996 extern "C"
24997 #endif
24998 char regcomp ();
24999 int
25000 main ()
25001 {
25002 return regcomp ();
25003   ;
25004   return 0;
25005 }
25006 _ACEOF
25007 rm -f conftest.$ac_objext conftest$ac_exeext
25008 if { (ac_try="$ac_link"
25009 case "(($ac_try" in
25010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25011   *) ac_try_echo=$ac_try;;
25012 esac
25013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25014   (eval "$ac_link") 2>conftest.er1
25015   ac_status=$?
25016   grep -v '^ *+' conftest.er1 >conftest.err
25017   rm -f conftest.er1
25018   cat conftest.err >&5
25019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25020   (exit $ac_status); } && {
25021          test -z "$ac_c_werror_flag" ||
25022          test ! -s conftest.err
25023        } && test -s conftest$ac_exeext &&
25024        $as_test_x conftest$ac_exeext; then
25025   ac_cv_lib_regex_regcomp=yes
25026 else
25027   echo "$as_me: failed program was:" >&5
25028 sed 's/^/| /' conftest.$ac_ext >&5
25029
25030         ac_cv_lib_regex_regcomp=no
25031 fi
25032
25033 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25034       conftest$ac_exeext conftest.$ac_ext
25035 LIBS=$ac_check_lib_save_LIBS
25036 fi
25037 { echo "$as_me:$LINENO: result: $ac_cv_lib_regex_regcomp" >&5
25038 echo "${ECHO_T}$ac_cv_lib_regex_regcomp" >&6; }
25039 if test $ac_cv_lib_regex_regcomp = yes; then
25040   REGEX_LIBS=-lregex
25041 else
25042   { { echo "$as_me:$LINENO: error: regex library not found" >&5
25043 echo "$as_me: error: regex library not found" >&2;}
25044    { (exit 1); exit 1; }; }
25045 fi
25046
25047 else
25048         { echo "$as_me:$LINENO: checking for regcomp" >&5
25049 echo $ECHO_N "checking for regcomp... $ECHO_C" >&6; }
25050 if test "${ac_cv_func_regcomp+set}" = set; then
25051   echo $ECHO_N "(cached) $ECHO_C" >&6
25052 else
25053   cat >conftest.$ac_ext <<_ACEOF
25054 /* confdefs.h.  */
25055 _ACEOF
25056 cat confdefs.h >>conftest.$ac_ext
25057 cat >>conftest.$ac_ext <<_ACEOF
25058 /* end confdefs.h.  */
25059 /* Define regcomp to an innocuous variant, in case <limits.h> declares regcomp.
25060    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25061 #define regcomp innocuous_regcomp
25062
25063 /* System header to define __stub macros and hopefully few prototypes,
25064     which can conflict with char regcomp (); below.
25065     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25066     <limits.h> exists even on freestanding compilers.  */
25067
25068 #ifdef __STDC__
25069 # include <limits.h>
25070 #else
25071 # include <assert.h>
25072 #endif
25073
25074 #undef regcomp
25075
25076 /* Override any GCC internal prototype to avoid an error.
25077    Use char because int might match the return type of a GCC
25078    builtin and then its argument prototype would still apply.  */
25079 #ifdef __cplusplus
25080 extern "C"
25081 #endif
25082 char regcomp ();
25083 /* The GNU C library defines this for functions which it implements
25084     to always fail with ENOSYS.  Some functions are actually named
25085     something starting with __ and the normal name is an alias.  */
25086 #if defined __stub_regcomp || defined __stub___regcomp
25087 choke me
25088 #endif
25089
25090 int
25091 main ()
25092 {
25093 return regcomp ();
25094   ;
25095   return 0;
25096 }
25097 _ACEOF
25098 rm -f conftest.$ac_objext conftest$ac_exeext
25099 if { (ac_try="$ac_link"
25100 case "(($ac_try" in
25101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25102   *) ac_try_echo=$ac_try;;
25103 esac
25104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25105   (eval "$ac_link") 2>conftest.er1
25106   ac_status=$?
25107   grep -v '^ *+' conftest.er1 >conftest.err
25108   rm -f conftest.er1
25109   cat conftest.err >&5
25110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25111   (exit $ac_status); } && {
25112          test -z "$ac_c_werror_flag" ||
25113          test ! -s conftest.err
25114        } && test -s conftest$ac_exeext &&
25115        $as_test_x conftest$ac_exeext; then
25116   ac_cv_func_regcomp=yes
25117 else
25118   echo "$as_me: failed program was:" >&5
25119 sed 's/^/| /' conftest.$ac_ext >&5
25120
25121         ac_cv_func_regcomp=no
25122 fi
25123
25124 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25125       conftest$ac_exeext conftest.$ac_ext
25126 fi
25127 { echo "$as_me:$LINENO: result: $ac_cv_func_regcomp" >&5
25128 echo "${ECHO_T}$ac_cv_func_regcomp" >&6; }
25129 if test $ac_cv_func_regcomp = yes; then
25130   :
25131 else
25132   { { echo "$as_me:$LINENO: error: can't find POSIX regexp support" >&5
25133 echo "$as_me: error: can't find POSIX regexp support" >&2;}
25134    { (exit 1); exit 1; }; }
25135 fi
25136
25137 fi
25138
25139
25140 # Check whether --with-ares was given.
25141 if test "${with_ares+set}" = set; then
25142   withval=$with_ares; ares="$withval"
25143 else
25144   ares=no
25145 fi
25146
25147 if test "$ares" != no; then
25148         { echo "$as_me:$LINENO: checking for res_send" >&5
25149 echo $ECHO_N "checking for res_send... $ECHO_C" >&6; }
25150 if test "${ac_cv_func_res_send+set}" = set; then
25151   echo $ECHO_N "(cached) $ECHO_C" >&6
25152 else
25153   cat >conftest.$ac_ext <<_ACEOF
25154 /* confdefs.h.  */
25155 _ACEOF
25156 cat confdefs.h >>conftest.$ac_ext
25157 cat >>conftest.$ac_ext <<_ACEOF
25158 /* end confdefs.h.  */
25159 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
25160    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25161 #define res_send innocuous_res_send
25162
25163 /* System header to define __stub macros and hopefully few prototypes,
25164     which can conflict with char res_send (); below.
25165     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25166     <limits.h> exists even on freestanding compilers.  */
25167
25168 #ifdef __STDC__
25169 # include <limits.h>
25170 #else
25171 # include <assert.h>
25172 #endif
25173
25174 #undef res_send
25175
25176 /* Override any GCC internal prototype to avoid an error.
25177    Use char because int might match the return type of a GCC
25178    builtin and then its argument prototype would still apply.  */
25179 #ifdef __cplusplus
25180 extern "C"
25181 #endif
25182 char res_send ();
25183 /* The GNU C library defines this for functions which it implements
25184     to always fail with ENOSYS.  Some functions are actually named
25185     something starting with __ and the normal name is an alias.  */
25186 #if defined __stub_res_send || defined __stub___res_send
25187 choke me
25188 #endif
25189
25190 int
25191 main ()
25192 {
25193 return res_send ();
25194   ;
25195   return 0;
25196 }
25197 _ACEOF
25198 rm -f conftest.$ac_objext conftest$ac_exeext
25199 if { (ac_try="$ac_link"
25200 case "(($ac_try" in
25201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25202   *) ac_try_echo=$ac_try;;
25203 esac
25204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25205   (eval "$ac_link") 2>conftest.er1
25206   ac_status=$?
25207   grep -v '^ *+' conftest.er1 >conftest.err
25208   rm -f conftest.er1
25209   cat conftest.err >&5
25210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25211   (exit $ac_status); } && {
25212          test -z "$ac_c_werror_flag" ||
25213          test ! -s conftest.err
25214        } && test -s conftest$ac_exeext &&
25215        $as_test_x conftest$ac_exeext; then
25216   ac_cv_func_res_send=yes
25217 else
25218   echo "$as_me: failed program was:" >&5
25219 sed 's/^/| /' conftest.$ac_ext >&5
25220
25221         ac_cv_func_res_send=no
25222 fi
25223
25224 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25225       conftest$ac_exeext conftest.$ac_ext
25226 fi
25227 { echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
25228 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
25229 if test $ac_cv_func_res_send = yes; then
25230   :
25231 else
25232
25233 { echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
25234 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6; }
25235 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
25236   echo $ECHO_N "(cached) $ECHO_C" >&6
25237 else
25238   ac_check_lib_save_LIBS=$LIBS
25239 LIBS="-lresolv  $LIBS"
25240 cat >conftest.$ac_ext <<_ACEOF
25241 /* confdefs.h.  */
25242 _ACEOF
25243 cat confdefs.h >>conftest.$ac_ext
25244 cat >>conftest.$ac_ext <<_ACEOF
25245 /* end confdefs.h.  */
25246
25247 /* Override any GCC internal prototype to avoid an error.
25248    Use char because int might match the return type of a GCC
25249    builtin and then its argument prototype would still apply.  */
25250 #ifdef __cplusplus
25251 extern "C"
25252 #endif
25253 char res_send ();
25254 int
25255 main ()
25256 {
25257 return res_send ();
25258   ;
25259   return 0;
25260 }
25261 _ACEOF
25262 rm -f conftest.$ac_objext conftest$ac_exeext
25263 if { (ac_try="$ac_link"
25264 case "(($ac_try" in
25265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25266   *) ac_try_echo=$ac_try;;
25267 esac
25268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25269   (eval "$ac_link") 2>conftest.er1
25270   ac_status=$?
25271   grep -v '^ *+' conftest.er1 >conftest.err
25272   rm -f conftest.er1
25273   cat conftest.err >&5
25274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25275   (exit $ac_status); } && {
25276          test -z "$ac_c_werror_flag" ||
25277          test ! -s conftest.err
25278        } && test -s conftest$ac_exeext &&
25279        $as_test_x conftest$ac_exeext; then
25280   ac_cv_lib_resolv_res_send=yes
25281 else
25282   echo "$as_me: failed program was:" >&5
25283 sed 's/^/| /' conftest.$ac_ext >&5
25284
25285         ac_cv_lib_resolv_res_send=no
25286 fi
25287
25288 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25289       conftest$ac_exeext conftest.$ac_ext
25290 LIBS=$ac_check_lib_save_LIBS
25291 fi
25292 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
25293 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
25294 if test $ac_cv_lib_resolv_res_send = yes; then
25295   cat >>confdefs.h <<_ACEOF
25296 #define HAVE_LIBRESOLV 1
25297 _ACEOF
25298
25299   LIBS="-lresolv $LIBS"
25300
25301 fi
25302
25303 fi
25304
25305 if test "$ares" != yes; then
25306         CPPFLAGS="$CPPFLAGS -I$ares/include"
25307         LDFLAGS="$LDFLAGS -L$ares/lib"
25308 fi
25309 { echo "$as_me:$LINENO: checking for ares_init in -lares" >&5
25310 echo $ECHO_N "checking for ares_init in -lares... $ECHO_C" >&6; }
25311 if test "${ac_cv_lib_ares_ares_init+set}" = set; then
25312   echo $ECHO_N "(cached) $ECHO_C" >&6
25313 else
25314   ac_check_lib_save_LIBS=$LIBS
25315 LIBS="-lares  $LIBS"
25316 cat >conftest.$ac_ext <<_ACEOF
25317 /* confdefs.h.  */
25318 _ACEOF
25319 cat confdefs.h >>conftest.$ac_ext
25320 cat >>conftest.$ac_ext <<_ACEOF
25321 /* end confdefs.h.  */
25322
25323 /* Override any GCC internal prototype to avoid an error.
25324    Use char because int might match the return type of a GCC
25325    builtin and then its argument prototype would still apply.  */
25326 #ifdef __cplusplus
25327 extern "C"
25328 #endif
25329 char ares_init ();
25330 int
25331 main ()
25332 {
25333 return ares_init ();
25334   ;
25335   return 0;
25336 }
25337 _ACEOF
25338 rm -f conftest.$ac_objext conftest$ac_exeext
25339 if { (ac_try="$ac_link"
25340 case "(($ac_try" in
25341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25342   *) ac_try_echo=$ac_try;;
25343 esac
25344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25345   (eval "$ac_link") 2>conftest.er1
25346   ac_status=$?
25347   grep -v '^ *+' conftest.er1 >conftest.err
25348   rm -f conftest.er1
25349   cat conftest.err >&5
25350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25351   (exit $ac_status); } && {
25352          test -z "$ac_c_werror_flag" ||
25353          test ! -s conftest.err
25354        } && test -s conftest$ac_exeext &&
25355        $as_test_x conftest$ac_exeext; then
25356   ac_cv_lib_ares_ares_init=yes
25357 else
25358   echo "$as_me: failed program was:" >&5
25359 sed 's/^/| /' conftest.$ac_ext >&5
25360
25361         ac_cv_lib_ares_ares_init=no
25362 fi
25363
25364 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25365       conftest$ac_exeext conftest.$ac_ext
25366 LIBS=$ac_check_lib_save_LIBS
25367 fi
25368 { echo "$as_me:$LINENO: result: $ac_cv_lib_ares_ares_init" >&5
25369 echo "${ECHO_T}$ac_cv_lib_ares_ares_init" >&6; }
25370 if test $ac_cv_lib_ares_ares_init = yes; then
25371   :
25372 else
25373   { { echo "$as_me:$LINENO: error: libares not found" >&5
25374 echo "$as_me: error: libares not found" >&2;}
25375    { (exit 1); exit 1; }; }
25376 fi
25377
25378         ARES_LIBS="-lares"
25379         cat >>confdefs.h <<\_ACEOF
25380 #define HAVE_ARES 1
25381 _ACEOF
25382
25383 fi
25384
25385
25386 # Check whether --with-com_err was given.
25387 if test "${with_com_err+set}" = set; then
25388   withval=$with_com_err; com_err="$withval"
25389 else
25390   com_err=yes
25391 fi
25392
25393 if test "$com_err" != no; then
25394         if test "$com_err" != yes; then
25395                 CPPFLAGS="$CPPFLAGS -I$com_err/include"
25396                 LDFLAGS="$LDFLAGS -L$com_err/lib"
25397         fi
25398         { echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
25399 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6; }
25400 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
25401   echo $ECHO_N "(cached) $ECHO_C" >&6
25402 else
25403   ac_check_lib_save_LIBS=$LIBS
25404 LIBS="-lcom_err  $LIBS"
25405 cat >conftest.$ac_ext <<_ACEOF
25406 /* confdefs.h.  */
25407 _ACEOF
25408 cat confdefs.h >>conftest.$ac_ext
25409 cat >>conftest.$ac_ext <<_ACEOF
25410 /* end confdefs.h.  */
25411
25412 /* Override any GCC internal prototype to avoid an error.
25413    Use char because int might match the return type of a GCC
25414    builtin and then its argument prototype would still apply.  */
25415 #ifdef __cplusplus
25416 extern "C"
25417 #endif
25418 char com_err ();
25419 int
25420 main ()
25421 {
25422 return com_err ();
25423   ;
25424   return 0;
25425 }
25426 _ACEOF
25427 rm -f conftest.$ac_objext conftest$ac_exeext
25428 if { (ac_try="$ac_link"
25429 case "(($ac_try" in
25430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25431   *) ac_try_echo=$ac_try;;
25432 esac
25433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25434   (eval "$ac_link") 2>conftest.er1
25435   ac_status=$?
25436   grep -v '^ *+' conftest.er1 >conftest.err
25437   rm -f conftest.er1
25438   cat conftest.err >&5
25439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25440   (exit $ac_status); } && {
25441          test -z "$ac_c_werror_flag" ||
25442          test ! -s conftest.err
25443        } && test -s conftest$ac_exeext &&
25444        $as_test_x conftest$ac_exeext; then
25445   ac_cv_lib_com_err_com_err=yes
25446 else
25447   echo "$as_me: failed program was:" >&5
25448 sed 's/^/| /' conftest.$ac_ext >&5
25449
25450         ac_cv_lib_com_err_com_err=no
25451 fi
25452
25453 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25454       conftest$ac_exeext conftest.$ac_ext
25455 LIBS=$ac_check_lib_save_LIBS
25456 fi
25457 { echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
25458 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
25459 if test $ac_cv_lib_com_err_com_err = yes; then
25460   :
25461 else
25462   { { echo "$as_me:$LINENO: error: com_err library not found" >&5
25463 echo "$as_me: error: com_err library not found" >&2;}
25464    { (exit 1); exit 1; }; }
25465 fi
25466
25467 else
25468         { { echo "$as_me:$LINENO: error: This package requires com_err." >&5
25469 echo "$as_me: error: This package requires com_err." >&2;}
25470    { (exit 1); exit 1; }; }
25471 fi
25472
25473 # Check whether --with-ss was given.
25474 if test "${with_ss+set}" = set; then
25475   withval=$with_ss; ss="$withval"
25476 else
25477   ss=yes
25478 fi
25479
25480 if test "$ss" != no; then
25481         if test "$ss" != yes; then
25482                 CPPFLAGS="$CPPFLAGS -I$ss/include"
25483                 LDFLAGS="$LDFLAGS -L$ss/lib"
25484         fi
25485
25486 { echo "$as_me:$LINENO: checking for initscr in -lcurses" >&5
25487 echo $ECHO_N "checking for initscr in -lcurses... $ECHO_C" >&6; }
25488 if test "${ac_cv_lib_curses_initscr+set}" = set; then
25489   echo $ECHO_N "(cached) $ECHO_C" >&6
25490 else
25491   ac_check_lib_save_LIBS=$LIBS
25492 LIBS="-lcurses  $LIBS"
25493 cat >conftest.$ac_ext <<_ACEOF
25494 /* confdefs.h.  */
25495 _ACEOF
25496 cat confdefs.h >>conftest.$ac_ext
25497 cat >>conftest.$ac_ext <<_ACEOF
25498 /* end confdefs.h.  */
25499
25500 /* Override any GCC internal prototype to avoid an error.
25501    Use char because int might match the return type of a GCC
25502    builtin and then its argument prototype would still apply.  */
25503 #ifdef __cplusplus
25504 extern "C"
25505 #endif
25506 char initscr ();
25507 int
25508 main ()
25509 {
25510 return initscr ();
25511   ;
25512   return 0;
25513 }
25514 _ACEOF
25515 rm -f conftest.$ac_objext conftest$ac_exeext
25516 if { (ac_try="$ac_link"
25517 case "(($ac_try" in
25518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25519   *) ac_try_echo=$ac_try;;
25520 esac
25521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25522   (eval "$ac_link") 2>conftest.er1
25523   ac_status=$?
25524   grep -v '^ *+' conftest.er1 >conftest.err
25525   rm -f conftest.er1
25526   cat conftest.err >&5
25527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25528   (exit $ac_status); } && {
25529          test -z "$ac_c_werror_flag" ||
25530          test ! -s conftest.err
25531        } && test -s conftest$ac_exeext &&
25532        $as_test_x conftest$ac_exeext; then
25533   ac_cv_lib_curses_initscr=yes
25534 else
25535   echo "$as_me: failed program was:" >&5
25536 sed 's/^/| /' conftest.$ac_ext >&5
25537
25538         ac_cv_lib_curses_initscr=no
25539 fi
25540
25541 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25542       conftest$ac_exeext conftest.$ac_ext
25543 LIBS=$ac_check_lib_save_LIBS
25544 fi
25545 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_initscr" >&5
25546 echo "${ECHO_T}$ac_cv_lib_curses_initscr" >&6; }
25547 if test $ac_cv_lib_curses_initscr = yes; then
25548   cat >>confdefs.h <<_ACEOF
25549 #define HAVE_LIBCURSES 1
25550 _ACEOF
25551
25552   LIBS="-lcurses $LIBS"
25553
25554 fi
25555
25556
25557 { echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
25558 echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6; }
25559 if test "${ac_cv_lib_readline_readline+set}" = set; then
25560   echo $ECHO_N "(cached) $ECHO_C" >&6
25561 else
25562   ac_check_lib_save_LIBS=$LIBS
25563 LIBS="-lreadline  $LIBS"
25564 cat >conftest.$ac_ext <<_ACEOF
25565 /* confdefs.h.  */
25566 _ACEOF
25567 cat confdefs.h >>conftest.$ac_ext
25568 cat >>conftest.$ac_ext <<_ACEOF
25569 /* end confdefs.h.  */
25570
25571 /* Override any GCC internal prototype to avoid an error.
25572    Use char because int might match the return type of a GCC
25573    builtin and then its argument prototype would still apply.  */
25574 #ifdef __cplusplus
25575 extern "C"
25576 #endif
25577 char readline ();
25578 int
25579 main ()
25580 {
25581 return readline ();
25582   ;
25583   return 0;
25584 }
25585 _ACEOF
25586 rm -f conftest.$ac_objext conftest$ac_exeext
25587 if { (ac_try="$ac_link"
25588 case "(($ac_try" in
25589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25590   *) ac_try_echo=$ac_try;;
25591 esac
25592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25593   (eval "$ac_link") 2>conftest.er1
25594   ac_status=$?
25595   grep -v '^ *+' conftest.er1 >conftest.err
25596   rm -f conftest.er1
25597   cat conftest.err >&5
25598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25599   (exit $ac_status); } && {
25600          test -z "$ac_c_werror_flag" ||
25601          test ! -s conftest.err
25602        } && test -s conftest$ac_exeext &&
25603        $as_test_x conftest$ac_exeext; then
25604   ac_cv_lib_readline_readline=yes
25605 else
25606   echo "$as_me: failed program was:" >&5
25607 sed 's/^/| /' conftest.$ac_ext >&5
25608
25609         ac_cv_lib_readline_readline=no
25610 fi
25611
25612 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25613       conftest$ac_exeext conftest.$ac_ext
25614 LIBS=$ac_check_lib_save_LIBS
25615 fi
25616 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
25617 echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6; }
25618 if test $ac_cv_lib_readline_readline = yes; then
25619   cat >>confdefs.h <<_ACEOF
25620 #define HAVE_LIBREADLINE 1
25621 _ACEOF
25622
25623   LIBS="-lreadline $LIBS"
25624
25625 fi
25626
25627         { echo "$as_me:$LINENO: checking for ss_perror in -lss" >&5
25628 echo $ECHO_N "checking for ss_perror in -lss... $ECHO_C" >&6; }
25629 if test "${ac_cv_lib_ss_ss_perror+set}" = set; then
25630   echo $ECHO_N "(cached) $ECHO_C" >&6
25631 else
25632   ac_check_lib_save_LIBS=$LIBS
25633 LIBS="-lss -lcom_err $LIBS"
25634 cat >conftest.$ac_ext <<_ACEOF
25635 /* confdefs.h.  */
25636 _ACEOF
25637 cat confdefs.h >>conftest.$ac_ext
25638 cat >>conftest.$ac_ext <<_ACEOF
25639 /* end confdefs.h.  */
25640
25641 /* Override any GCC internal prototype to avoid an error.
25642    Use char because int might match the return type of a GCC
25643    builtin and then its argument prototype would still apply.  */
25644 #ifdef __cplusplus
25645 extern "C"
25646 #endif
25647 char ss_perror ();
25648 int
25649 main ()
25650 {
25651 return ss_perror ();
25652   ;
25653   return 0;
25654 }
25655 _ACEOF
25656 rm -f conftest.$ac_objext conftest$ac_exeext
25657 if { (ac_try="$ac_link"
25658 case "(($ac_try" in
25659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25660   *) ac_try_echo=$ac_try;;
25661 esac
25662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25663   (eval "$ac_link") 2>conftest.er1
25664   ac_status=$?
25665   grep -v '^ *+' conftest.er1 >conftest.err
25666   rm -f conftest.er1
25667   cat conftest.err >&5
25668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25669   (exit $ac_status); } && {
25670          test -z "$ac_c_werror_flag" ||
25671          test ! -s conftest.err
25672        } && test -s conftest$ac_exeext &&
25673        $as_test_x conftest$ac_exeext; then
25674   ac_cv_lib_ss_ss_perror=yes
25675 else
25676   echo "$as_me: failed program was:" >&5
25677 sed 's/^/| /' conftest.$ac_ext >&5
25678
25679         ac_cv_lib_ss_ss_perror=no
25680 fi
25681
25682 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25683       conftest$ac_exeext conftest.$ac_ext
25684 LIBS=$ac_check_lib_save_LIBS
25685 fi
25686 { echo "$as_me:$LINENO: result: $ac_cv_lib_ss_ss_perror" >&5
25687 echo "${ECHO_T}$ac_cv_lib_ss_ss_perror" >&6; }
25688 if test $ac_cv_lib_ss_ss_perror = yes; then
25689   :
25690 else
25691   { { echo "$as_me:$LINENO: error: ss library not found" >&5
25692 echo "$as_me: error: ss library not found" >&2;}
25693    { (exit 1); exit 1; }; }
25694 fi
25695
25696 else
25697         { { echo "$as_me:$LINENO: error: This package requires ss." >&5
25698 echo "$as_me: error: This package requires ss." >&2;}
25699    { (exit 1); exit 1; }; }
25700 fi
25701 LIBS="$KRB5_LIBS $KRB4_LIBS $HESIOD_LIBS $LIBS"
25702
25703 if test $ac_cv_c_compiler_gnu = yes; then
25704     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
25705 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
25706 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
25707   echo $ECHO_N "(cached) $ECHO_C" >&6
25708 else
25709     ac_pattern="Autoconf.*'x'"
25710   cat >conftest.$ac_ext <<_ACEOF
25711 /* confdefs.h.  */
25712 _ACEOF
25713 cat confdefs.h >>conftest.$ac_ext
25714 cat >>conftest.$ac_ext <<_ACEOF
25715 /* end confdefs.h.  */
25716 #include <sgtty.h>
25717 Autoconf TIOCGETP
25718 _ACEOF
25719 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25720   $EGREP "$ac_pattern" >/dev/null 2>&1; then
25721   ac_cv_prog_gcc_traditional=yes
25722 else
25723   ac_cv_prog_gcc_traditional=no
25724 fi
25725 rm -f conftest*
25726
25727
25728   if test $ac_cv_prog_gcc_traditional = no; then
25729     cat >conftest.$ac_ext <<_ACEOF
25730 /* confdefs.h.  */
25731 _ACEOF
25732 cat confdefs.h >>conftest.$ac_ext
25733 cat >>conftest.$ac_ext <<_ACEOF
25734 /* end confdefs.h.  */
25735 #include <termio.h>
25736 Autoconf TCGETA
25737 _ACEOF
25738 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25739   $EGREP "$ac_pattern" >/dev/null 2>&1; then
25740   ac_cv_prog_gcc_traditional=yes
25741 fi
25742 rm -f conftest*
25743
25744   fi
25745 fi
25746 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
25747 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
25748   if test $ac_cv_prog_gcc_traditional = yes; then
25749     CC="$CC -traditional"
25750   fi
25751 fi
25752
25753
25754 for ac_func in vprintf
25755 do
25756 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25757 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25758 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25759 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25760   echo $ECHO_N "(cached) $ECHO_C" >&6
25761 else
25762   cat >conftest.$ac_ext <<_ACEOF
25763 /* confdefs.h.  */
25764 _ACEOF
25765 cat confdefs.h >>conftest.$ac_ext
25766 cat >>conftest.$ac_ext <<_ACEOF
25767 /* end confdefs.h.  */
25768 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25769    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25770 #define $ac_func innocuous_$ac_func
25771
25772 /* System header to define __stub macros and hopefully few prototypes,
25773     which can conflict with char $ac_func (); below.
25774     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25775     <limits.h> exists even on freestanding compilers.  */
25776
25777 #ifdef __STDC__
25778 # include <limits.h>
25779 #else
25780 # include <assert.h>
25781 #endif
25782
25783 #undef $ac_func
25784
25785 /* Override any GCC internal prototype to avoid an error.
25786    Use char because int might match the return type of a GCC
25787    builtin and then its argument prototype would still apply.  */
25788 #ifdef __cplusplus
25789 extern "C"
25790 #endif
25791 char $ac_func ();
25792 /* The GNU C library defines this for functions which it implements
25793     to always fail with ENOSYS.  Some functions are actually named
25794     something starting with __ and the normal name is an alias.  */
25795 #if defined __stub_$ac_func || defined __stub___$ac_func
25796 choke me
25797 #endif
25798
25799 int
25800 main ()
25801 {
25802 return $ac_func ();
25803   ;
25804   return 0;
25805 }
25806 _ACEOF
25807 rm -f conftest.$ac_objext conftest$ac_exeext
25808 if { (ac_try="$ac_link"
25809 case "(($ac_try" in
25810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25811   *) ac_try_echo=$ac_try;;
25812 esac
25813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25814   (eval "$ac_link") 2>conftest.er1
25815   ac_status=$?
25816   grep -v '^ *+' conftest.er1 >conftest.err
25817   rm -f conftest.er1
25818   cat conftest.err >&5
25819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25820   (exit $ac_status); } && {
25821          test -z "$ac_c_werror_flag" ||
25822          test ! -s conftest.err
25823        } && test -s conftest$ac_exeext &&
25824        $as_test_x conftest$ac_exeext; then
25825   eval "$as_ac_var=yes"
25826 else
25827   echo "$as_me: failed program was:" >&5
25828 sed 's/^/| /' conftest.$ac_ext >&5
25829
25830         eval "$as_ac_var=no"
25831 fi
25832
25833 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25834       conftest$ac_exeext conftest.$ac_ext
25835 fi
25836 ac_res=`eval echo '${'$as_ac_var'}'`
25837                { echo "$as_me:$LINENO: result: $ac_res" >&5
25838 echo "${ECHO_T}$ac_res" >&6; }
25839 if test `eval echo '${'$as_ac_var'}'` = yes; then
25840   cat >>confdefs.h <<_ACEOF
25841 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25842 _ACEOF
25843
25844 { echo "$as_me:$LINENO: checking for _doprnt" >&5
25845 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
25846 if test "${ac_cv_func__doprnt+set}" = set; then
25847   echo $ECHO_N "(cached) $ECHO_C" >&6
25848 else
25849   cat >conftest.$ac_ext <<_ACEOF
25850 /* confdefs.h.  */
25851 _ACEOF
25852 cat confdefs.h >>conftest.$ac_ext
25853 cat >>conftest.$ac_ext <<_ACEOF
25854 /* end confdefs.h.  */
25855 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
25856    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25857 #define _doprnt innocuous__doprnt
25858
25859 /* System header to define __stub macros and hopefully few prototypes,
25860     which can conflict with char _doprnt (); below.
25861     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25862     <limits.h> exists even on freestanding compilers.  */
25863
25864 #ifdef __STDC__
25865 # include <limits.h>
25866 #else
25867 # include <assert.h>
25868 #endif
25869
25870 #undef _doprnt
25871
25872 /* Override any GCC internal prototype to avoid an error.
25873    Use char because int might match the return type of a GCC
25874    builtin and then its argument prototype would still apply.  */
25875 #ifdef __cplusplus
25876 extern "C"
25877 #endif
25878 char _doprnt ();
25879 /* The GNU C library defines this for functions which it implements
25880     to always fail with ENOSYS.  Some functions are actually named
25881     something starting with __ and the normal name is an alias.  */
25882 #if defined __stub__doprnt || defined __stub____doprnt
25883 choke me
25884 #endif
25885
25886 int
25887 main ()
25888 {
25889 return _doprnt ();
25890   ;
25891   return 0;
25892 }
25893 _ACEOF
25894 rm -f conftest.$ac_objext conftest$ac_exeext
25895 if { (ac_try="$ac_link"
25896 case "(($ac_try" in
25897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25898   *) ac_try_echo=$ac_try;;
25899 esac
25900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25901   (eval "$ac_link") 2>conftest.er1
25902   ac_status=$?
25903   grep -v '^ *+' conftest.er1 >conftest.err
25904   rm -f conftest.er1
25905   cat conftest.err >&5
25906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25907   (exit $ac_status); } && {
25908          test -z "$ac_c_werror_flag" ||
25909          test ! -s conftest.err
25910        } && test -s conftest$ac_exeext &&
25911        $as_test_x conftest$ac_exeext; then
25912   ac_cv_func__doprnt=yes
25913 else
25914   echo "$as_me: failed program was:" >&5
25915 sed 's/^/| /' conftest.$ac_ext >&5
25916
25917         ac_cv_func__doprnt=no
25918 fi
25919
25920 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25921       conftest$ac_exeext conftest.$ac_ext
25922 fi
25923 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
25924 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
25925 if test $ac_cv_func__doprnt = yes; then
25926
25927 cat >>confdefs.h <<\_ACEOF
25928 #define HAVE_DOPRNT 1
25929 _ACEOF
25930
25931 fi
25932
25933 fi
25934 done
25935
25936
25937 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
25938 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; }
25939 if test "${ac_cv_func_getpgrp_void+set}" = set; then
25940   echo $ECHO_N "(cached) $ECHO_C" >&6
25941 else
25942   # Use it with a single arg.
25943 cat >conftest.$ac_ext <<_ACEOF
25944 /* confdefs.h.  */
25945 _ACEOF
25946 cat confdefs.h >>conftest.$ac_ext
25947 cat >>conftest.$ac_ext <<_ACEOF
25948 /* end confdefs.h.  */
25949 $ac_includes_default
25950 int
25951 main ()
25952 {
25953 getpgrp (0);
25954   ;
25955   return 0;
25956 }
25957 _ACEOF
25958 rm -f conftest.$ac_objext
25959 if { (ac_try="$ac_compile"
25960 case "(($ac_try" in
25961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25962   *) ac_try_echo=$ac_try;;
25963 esac
25964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25965   (eval "$ac_compile") 2>conftest.er1
25966   ac_status=$?
25967   grep -v '^ *+' conftest.er1 >conftest.err
25968   rm -f conftest.er1
25969   cat conftest.err >&5
25970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25971   (exit $ac_status); } && {
25972          test -z "$ac_c_werror_flag" ||
25973          test ! -s conftest.err
25974        } && test -s conftest.$ac_objext; then
25975   ac_cv_func_getpgrp_void=no
25976 else
25977   echo "$as_me: failed program was:" >&5
25978 sed 's/^/| /' conftest.$ac_ext >&5
25979
25980         ac_cv_func_getpgrp_void=yes
25981 fi
25982
25983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25984
25985 fi
25986 { echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
25987 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
25988 if test $ac_cv_func_getpgrp_void = yes; then
25989
25990 cat >>confdefs.h <<\_ACEOF
25991 #define GETPGRP_VOID 1
25992 _ACEOF
25993
25994 fi
25995
25996 { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
25997 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; }
25998 if test "${ac_cv_func_setpgrp_void+set}" = set; then
25999   echo $ECHO_N "(cached) $ECHO_C" >&6
26000 else
26001   if test "$cross_compiling" = yes; then
26002   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
26003 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
26004    { (exit 1); exit 1; }; }
26005 else
26006   cat >conftest.$ac_ext <<_ACEOF
26007 /* confdefs.h.  */
26008 _ACEOF
26009 cat confdefs.h >>conftest.$ac_ext
26010 cat >>conftest.$ac_ext <<_ACEOF
26011 /* end confdefs.h.  */
26012 $ac_includes_default
26013 int
26014 main ()
26015 {
26016 /* If this system has a BSD-style setpgrp which takes arguments,
26017   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
26018   exit successfully. */
26019   return setpgrp (1,1) != -1;
26020   ;
26021   return 0;
26022 }
26023 _ACEOF
26024 rm -f conftest$ac_exeext
26025 if { (ac_try="$ac_link"
26026 case "(($ac_try" in
26027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26028   *) ac_try_echo=$ac_try;;
26029 esac
26030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26031   (eval "$ac_link") 2>&5
26032   ac_status=$?
26033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26034   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26035   { (case "(($ac_try" in
26036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26037   *) ac_try_echo=$ac_try;;
26038 esac
26039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26040   (eval "$ac_try") 2>&5
26041   ac_status=$?
26042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26043   (exit $ac_status); }; }; then
26044   ac_cv_func_setpgrp_void=no
26045 else
26046   echo "$as_me: program exited with status $ac_status" >&5
26047 echo "$as_me: failed program was:" >&5
26048 sed 's/^/| /' conftest.$ac_ext >&5
26049
26050 ( exit $ac_status )
26051 ac_cv_func_setpgrp_void=yes
26052 fi
26053 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26054 fi
26055
26056
26057 fi
26058 { echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
26059 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; }
26060 if test $ac_cv_func_setpgrp_void = yes; then
26061
26062 cat >>confdefs.h <<\_ACEOF
26063 #define SETPGRP_VOID 1
26064 _ACEOF
26065
26066 fi
26067
26068
26069
26070
26071
26072
26073
26074
26075
26076 for ac_func in putenv strchr memcpy memmove waitpid getlogin strerror random
26077 do
26078 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26079 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26080 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26081 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26082   echo $ECHO_N "(cached) $ECHO_C" >&6
26083 else
26084   cat >conftest.$ac_ext <<_ACEOF
26085 /* confdefs.h.  */
26086 _ACEOF
26087 cat confdefs.h >>conftest.$ac_ext
26088 cat >>conftest.$ac_ext <<_ACEOF
26089 /* end confdefs.h.  */
26090 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26091    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26092 #define $ac_func innocuous_$ac_func
26093
26094 /* System header to define __stub macros and hopefully few prototypes,
26095     which can conflict with char $ac_func (); below.
26096     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26097     <limits.h> exists even on freestanding compilers.  */
26098
26099 #ifdef __STDC__
26100 # include <limits.h>
26101 #else
26102 # include <assert.h>
26103 #endif
26104
26105 #undef $ac_func
26106
26107 /* Override any GCC internal prototype to avoid an error.
26108    Use char because int might match the return type of a GCC
26109    builtin and then its argument prototype would still apply.  */
26110 #ifdef __cplusplus
26111 extern "C"
26112 #endif
26113 char $ac_func ();
26114 /* The GNU C library defines this for functions which it implements
26115     to always fail with ENOSYS.  Some functions are actually named
26116     something starting with __ and the normal name is an alias.  */
26117 #if defined __stub_$ac_func || defined __stub___$ac_func
26118 choke me
26119 #endif
26120
26121 int
26122 main ()
26123 {
26124 return $ac_func ();
26125   ;
26126   return 0;
26127 }
26128 _ACEOF
26129 rm -f conftest.$ac_objext conftest$ac_exeext
26130 if { (ac_try="$ac_link"
26131 case "(($ac_try" in
26132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26133   *) ac_try_echo=$ac_try;;
26134 esac
26135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26136   (eval "$ac_link") 2>conftest.er1
26137   ac_status=$?
26138   grep -v '^ *+' conftest.er1 >conftest.err
26139   rm -f conftest.er1
26140   cat conftest.err >&5
26141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26142   (exit $ac_status); } && {
26143          test -z "$ac_c_werror_flag" ||
26144          test ! -s conftest.err
26145        } && test -s conftest$ac_exeext &&
26146        $as_test_x conftest$ac_exeext; then
26147   eval "$as_ac_var=yes"
26148 else
26149   echo "$as_me: failed program was:" >&5
26150 sed 's/^/| /' conftest.$ac_ext >&5
26151
26152         eval "$as_ac_var=no"
26153 fi
26154
26155 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26156       conftest$ac_exeext conftest.$ac_ext
26157 fi
26158 ac_res=`eval echo '${'$as_ac_var'}'`
26159                { echo "$as_me:$LINENO: result: $ac_res" >&5
26160 echo "${ECHO_T}$ac_res" >&6; }
26161 if test `eval echo '${'$as_ac_var'}'` = yes; then
26162   cat >>confdefs.h <<_ACEOF
26163 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26164 _ACEOF
26165
26166 fi
26167 done
26168
26169
26170
26171
26172
26173
26174
26175 for ac_func in lrand48 gethostid getsid getpgid krb_get_err_text krb_log
26176 do
26177 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26178 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26179 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26180 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26181   echo $ECHO_N "(cached) $ECHO_C" >&6
26182 else
26183   cat >conftest.$ac_ext <<_ACEOF
26184 /* confdefs.h.  */
26185 _ACEOF
26186 cat confdefs.h >>conftest.$ac_ext
26187 cat >>conftest.$ac_ext <<_ACEOF
26188 /* end confdefs.h.  */
26189 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26190    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26191 #define $ac_func innocuous_$ac_func
26192
26193 /* System header to define __stub macros and hopefully few prototypes,
26194     which can conflict with char $ac_func (); below.
26195     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26196     <limits.h> exists even on freestanding compilers.  */
26197
26198 #ifdef __STDC__
26199 # include <limits.h>
26200 #else
26201 # include <assert.h>
26202 #endif
26203
26204 #undef $ac_func
26205
26206 /* Override any GCC internal prototype to avoid an error.
26207    Use char because int might match the return type of a GCC
26208    builtin and then its argument prototype would still apply.  */
26209 #ifdef __cplusplus
26210 extern "C"
26211 #endif
26212 char $ac_func ();
26213 /* The GNU C library defines this for functions which it implements
26214     to always fail with ENOSYS.  Some functions are actually named
26215     something starting with __ and the normal name is an alias.  */
26216 #if defined __stub_$ac_func || defined __stub___$ac_func
26217 choke me
26218 #endif
26219
26220 int
26221 main ()
26222 {
26223 return $ac_func ();
26224   ;
26225   return 0;
26226 }
26227 _ACEOF
26228 rm -f conftest.$ac_objext conftest$ac_exeext
26229 if { (ac_try="$ac_link"
26230 case "(($ac_try" in
26231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26232   *) ac_try_echo=$ac_try;;
26233 esac
26234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26235   (eval "$ac_link") 2>conftest.er1
26236   ac_status=$?
26237   grep -v '^ *+' conftest.er1 >conftest.err
26238   rm -f conftest.er1
26239   cat conftest.err >&5
26240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26241   (exit $ac_status); } && {
26242          test -z "$ac_c_werror_flag" ||
26243          test ! -s conftest.err
26244        } && test -s conftest$ac_exeext &&
26245        $as_test_x conftest$ac_exeext; then
26246   eval "$as_ac_var=yes"
26247 else
26248   echo "$as_me: failed program was:" >&5
26249 sed 's/^/| /' conftest.$ac_ext >&5
26250
26251         eval "$as_ac_var=no"
26252 fi
26253
26254 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26255       conftest$ac_exeext conftest.$ac_ext
26256 fi
26257 ac_res=`eval echo '${'$as_ac_var'}'`
26258                { echo "$as_me:$LINENO: result: $ac_res" >&5
26259 echo "${ECHO_T}$ac_res" >&6; }
26260 if test `eval echo '${'$as_ac_var'}'` = yes; then
26261   cat >>confdefs.h <<_ACEOF
26262 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26263 _ACEOF
26264
26265 fi
26266 done
26267
26268
26269
26270
26271 for ac_func in krb5_free_data krb5_c_make_checksum krb5_cc_set_default_name
26272 do
26273 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26274 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26275 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26276 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26277   echo $ECHO_N "(cached) $ECHO_C" >&6
26278 else
26279   cat >conftest.$ac_ext <<_ACEOF
26280 /* confdefs.h.  */
26281 _ACEOF
26282 cat confdefs.h >>conftest.$ac_ext
26283 cat >>conftest.$ac_ext <<_ACEOF
26284 /* end confdefs.h.  */
26285 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26286    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26287 #define $ac_func innocuous_$ac_func
26288
26289 /* System header to define __stub macros and hopefully few prototypes,
26290     which can conflict with char $ac_func (); below.
26291     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26292     <limits.h> exists even on freestanding compilers.  */
26293
26294 #ifdef __STDC__
26295 # include <limits.h>
26296 #else
26297 # include <assert.h>
26298 #endif
26299
26300 #undef $ac_func
26301
26302 /* Override any GCC internal prototype to avoid an error.
26303    Use char because int might match the return type of a GCC
26304    builtin and then its argument prototype would still apply.  */
26305 #ifdef __cplusplus
26306 extern "C"
26307 #endif
26308 char $ac_func ();
26309 /* The GNU C library defines this for functions which it implements
26310     to always fail with ENOSYS.  Some functions are actually named
26311     something starting with __ and the normal name is an alias.  */
26312 #if defined __stub_$ac_func || defined __stub___$ac_func
26313 choke me
26314 #endif
26315
26316 int
26317 main ()
26318 {
26319 return $ac_func ();
26320   ;
26321   return 0;
26322 }
26323 _ACEOF
26324 rm -f conftest.$ac_objext conftest$ac_exeext
26325 if { (ac_try="$ac_link"
26326 case "(($ac_try" in
26327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26328   *) ac_try_echo=$ac_try;;
26329 esac
26330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26331   (eval "$ac_link") 2>conftest.er1
26332   ac_status=$?
26333   grep -v '^ *+' conftest.er1 >conftest.err
26334   rm -f conftest.er1
26335   cat conftest.err >&5
26336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26337   (exit $ac_status); } && {
26338          test -z "$ac_c_werror_flag" ||
26339          test ! -s conftest.err
26340        } && test -s conftest$ac_exeext &&
26341        $as_test_x conftest$ac_exeext; then
26342   eval "$as_ac_var=yes"
26343 else
26344   echo "$as_me: failed program was:" >&5
26345 sed 's/^/| /' conftest.$ac_ext >&5
26346
26347         eval "$as_ac_var=no"
26348 fi
26349
26350 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26351       conftest$ac_exeext conftest.$ac_ext
26352 fi
26353 ac_res=`eval echo '${'$as_ac_var'}'`
26354                { echo "$as_me:$LINENO: result: $ac_res" >&5
26355 echo "${ECHO_T}$ac_res" >&6; }
26356 if test `eval echo '${'$as_ac_var'}'` = yes; then
26357   cat >>confdefs.h <<_ACEOF
26358 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26359 _ACEOF
26360
26361 fi
26362 done
26363
26364
26365 for ac_func in krb5_crypto_init
26366 do
26367 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26368 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26369 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26370 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26371   echo $ECHO_N "(cached) $ECHO_C" >&6
26372 else
26373   cat >conftest.$ac_ext <<_ACEOF
26374 /* confdefs.h.  */
26375 _ACEOF
26376 cat confdefs.h >>conftest.$ac_ext
26377 cat >>conftest.$ac_ext <<_ACEOF
26378 /* end confdefs.h.  */
26379 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26380    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26381 #define $ac_func innocuous_$ac_func
26382
26383 /* System header to define __stub macros and hopefully few prototypes,
26384     which can conflict with char $ac_func (); below.
26385     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26386     <limits.h> exists even on freestanding compilers.  */
26387
26388 #ifdef __STDC__
26389 # include <limits.h>
26390 #else
26391 # include <assert.h>
26392 #endif
26393
26394 #undef $ac_func
26395
26396 /* Override any GCC internal prototype to avoid an error.
26397    Use char because int might match the return type of a GCC
26398    builtin and then its argument prototype would still apply.  */
26399 #ifdef __cplusplus
26400 extern "C"
26401 #endif
26402 char $ac_func ();
26403 /* The GNU C library defines this for functions which it implements
26404     to always fail with ENOSYS.  Some functions are actually named
26405     something starting with __ and the normal name is an alias.  */
26406 #if defined __stub_$ac_func || defined __stub___$ac_func
26407 choke me
26408 #endif
26409
26410 int
26411 main ()
26412 {
26413 return $ac_func ();
26414   ;
26415   return 0;
26416 }
26417 _ACEOF
26418 rm -f conftest.$ac_objext conftest$ac_exeext
26419 if { (ac_try="$ac_link"
26420 case "(($ac_try" in
26421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26422   *) ac_try_echo=$ac_try;;
26423 esac
26424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26425   (eval "$ac_link") 2>conftest.er1
26426   ac_status=$?
26427   grep -v '^ *+' conftest.er1 >conftest.err
26428   rm -f conftest.er1
26429   cat conftest.err >&5
26430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26431   (exit $ac_status); } && {
26432          test -z "$ac_c_werror_flag" ||
26433          test ! -s conftest.err
26434        } && test -s conftest$ac_exeext &&
26435        $as_test_x conftest$ac_exeext; then
26436   eval "$as_ac_var=yes"
26437 else
26438   echo "$as_me: failed program was:" >&5
26439 sed 's/^/| /' conftest.$ac_ext >&5
26440
26441         eval "$as_ac_var=no"
26442 fi
26443
26444 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26445       conftest$ac_exeext conftest.$ac_ext
26446 fi
26447 ac_res=`eval echo '${'$as_ac_var'}'`
26448                { echo "$as_me:$LINENO: result: $ac_res" >&5
26449 echo "${ECHO_T}$ac_res" >&6; }
26450 if test `eval echo '${'$as_ac_var'}'` = yes; then
26451   cat >>confdefs.h <<_ACEOF
26452 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26453 _ACEOF
26454
26455 fi
26456 done
26457
26458
26459 { echo "$as_me:$LINENO: checking for krb5_auth_con_getauthenticator taking double pointer" >&5
26460 echo $ECHO_N "checking for krb5_auth_con_getauthenticator taking double pointer... $ECHO_C" >&6; }
26461 if test "${ac_cv_krb5_auth_con_getauthenticator_takes_double_pointer+set}" = set; then
26462   echo $ECHO_N "(cached) $ECHO_C" >&6
26463 else
26464
26465 local_save_CPPFLAGS="$CPPFLAGS"
26466 CPPFLAGS="${CPPFLAGS} ${KRB5_INC_FLAGS}"
26467 cat >conftest.$ac_ext <<_ACEOF
26468 /* confdefs.h.  */
26469 _ACEOF
26470 cat confdefs.h >>conftest.$ac_ext
26471 cat >>conftest.$ac_ext <<_ACEOF
26472 /* end confdefs.h.  */
26473 #define socklen_t int
26474 #define ssize_t int
26475 #include <krb5.h>
26476 krb5_error_code
26477 krb5_auth_con_getauthenticator(krb5_context context,
26478                            krb5_auth_context auth_context,
26479                            krb5_authenticator *authenticator);
26480 int
26481 main ()
26482 {
26483 krb5_error_code foo = krb5_auth_con_getauthenticator(0, 0, 0);
26484   ;
26485   return 0;
26486 }
26487 _ACEOF
26488 rm -f conftest.$ac_objext
26489 if { (ac_try="$ac_compile"
26490 case "(($ac_try" in
26491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26492   *) ac_try_echo=$ac_try;;
26493 esac
26494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26495   (eval "$ac_compile") 2>conftest.er1
26496   ac_status=$?
26497   grep -v '^ *+' conftest.er1 >conftest.err
26498   rm -f conftest.er1
26499   cat conftest.err >&5
26500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26501   (exit $ac_status); } && {
26502          test -z "$ac_c_werror_flag" ||
26503          test ! -s conftest.err
26504        } && test -s conftest.$ac_objext; then
26505   ac_cv_krb5_auth_con_getauthenticator_takes_double_pointer=no
26506 else
26507   echo "$as_me: failed program was:" >&5
26508 sed 's/^/| /' conftest.$ac_ext >&5
26509
26510         ac_cv_krb5_auth_con_getauthenticator_takes_double_pointer=yes
26511 fi
26512
26513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26514
26515 fi
26516
26517 CPPFLAGS="${local_save_CPPFLAGS}"
26518 if test "$ac_cv_krb5_auth_con_getauthenticator_takes_double_pointer" = yes; then
26519         cat >>confdefs.h <<\_ACEOF
26520 #define KRB5_AUTH_CON_GETAUTHENTICATOR_TAKES_DOUBLE_POINTER 1
26521 _ACEOF
26522 fi
26523 { echo "$as_me:$LINENO: result: $ac_cv_krb5_auth_con_getauthenticator_takes_double_pointer" >&5
26524 echo "${ECHO_T}$ac_cv_krb5_auth_con_getauthenticator_takes_double_pointer" >&6; }
26525
26526 { echo "$as_me:$LINENO: checking for enc_part2 in struct krb5_ticket" >&5
26527 echo $ECHO_N "checking for enc_part2 in struct krb5_ticket... $ECHO_C" >&6; }
26528 if test "${ac_cv_have_krb5_ticket_enc_part2+set}" = set; then
26529   echo $ECHO_N "(cached) $ECHO_C" >&6
26530 else
26531
26532 local_save_CPPFLAGS="$CPPFLAGS"
26533 CPPFLAGS="${CPPFLAGS} ${KRB5_INC_FLAGS}"
26534 cat >conftest.$ac_ext <<_ACEOF
26535 /* confdefs.h.  */
26536 _ACEOF
26537 cat confdefs.h >>conftest.$ac_ext
26538 cat >>conftest.$ac_ext <<_ACEOF
26539 /* end confdefs.h.  */
26540 #include <krb5.h>
26541 int
26542 main ()
26543 {
26544 krb5_ticket _tkt; _tkt.enc_part2;
26545   ;
26546   return 0;
26547 }
26548 _ACEOF
26549 rm -f conftest.$ac_objext
26550 if { (ac_try="$ac_compile"
26551 case "(($ac_try" in
26552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26553   *) ac_try_echo=$ac_try;;
26554 esac
26555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26556   (eval "$ac_compile") 2>conftest.er1
26557   ac_status=$?
26558   grep -v '^ *+' conftest.er1 >conftest.err
26559   rm -f conftest.er1
26560   cat conftest.err >&5
26561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26562   (exit $ac_status); } && {
26563          test -z "$ac_c_werror_flag" ||
26564          test ! -s conftest.err
26565        } && test -s conftest.$ac_objext; then
26566   ac_cv_have_krb5_ticket_enc_part2=yes
26567 else
26568   echo "$as_me: failed program was:" >&5
26569 sed 's/^/| /' conftest.$ac_ext >&5
26570
26571         ac_cv_have_krb5_ticket_enc_part2=no
26572 fi
26573
26574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26575
26576 fi
26577
26578 CPPFLAGS="${local_save_CPPFLAGS}"
26579 if test "$ac_cv_have_krb5_ticket_enc_part2" = yes; then
26580         cat >>confdefs.h <<\_ACEOF
26581 #define HAVE_KRB5_TICKET_ENC_PART2 1
26582 _ACEOF
26583 fi
26584 { echo "$as_me:$LINENO: result: $ac_cv_have_krb5_ticket_enc_part2" >&5
26585 echo "${ECHO_T}$ac_cv_have_krb5_ticket_enc_part2" >&6; }
26586
26587 { echo "$as_me:$LINENO: checking for enctype in struct krb5_keyblock" >&5
26588 echo $ECHO_N "checking for enctype in struct krb5_keyblock... $ECHO_C" >&6; }
26589 if test "${ac_cv_have_krb5_creds_keyblock_enctype+set}" = set; then
26590   echo $ECHO_N "(cached) $ECHO_C" >&6
26591 else
26592
26593 local_save_CPPFLAGS="$CPPFLAGS"
26594 CPPFLAGS="${CPPFLAGS} ${KRB5_INC_FLAGS}"
26595 cat >conftest.$ac_ext <<_ACEOF
26596 /* confdefs.h.  */
26597 _ACEOF
26598 cat confdefs.h >>conftest.$ac_ext
26599 cat >>conftest.$ac_ext <<_ACEOF
26600 /* end confdefs.h.  */
26601 #include <krb5.h>
26602 int
26603 main ()
26604 {
26605 krb5_creds _creds; _creds.keyblock.enctype;
26606   ;
26607   return 0;
26608 }
26609 _ACEOF
26610 rm -f conftest.$ac_objext
26611 if { (ac_try="$ac_compile"
26612 case "(($ac_try" in
26613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26614   *) ac_try_echo=$ac_try;;
26615 esac
26616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26617   (eval "$ac_compile") 2>conftest.er1
26618   ac_status=$?
26619   grep -v '^ *+' conftest.er1 >conftest.err
26620   rm -f conftest.er1
26621   cat conftest.err >&5
26622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26623   (exit $ac_status); } && {
26624          test -z "$ac_c_werror_flag" ||
26625          test ! -s conftest.err
26626        } && test -s conftest.$ac_objext; then
26627   ac_cv_have_krb5_creds_keyblock_enctype=yes
26628 else
26629   echo "$as_me: failed program was:" >&5
26630 sed 's/^/| /' conftest.$ac_ext >&5
26631
26632         ac_cv_have_krb5_creds_keyblock_enctype=no
26633 fi
26634
26635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26636
26637 fi
26638
26639 CPPFLAGS="${local_save_CPPFLAGS}"
26640 if test "$ac_cv_have_krb5_creds_keyblock_enctype" = yes; then
26641         cat >>confdefs.h <<\_ACEOF
26642 #define HAVE_KRB5_CREDS_KEYBLOCK_ENCTYPE 1
26643 _ACEOF
26644 fi
26645 { echo "$as_me:$LINENO: result: $ac_cv_have_krb5_creds_keyblock_enctype" >&5
26646 echo "${ECHO_T}$ac_cv_have_krb5_creds_keyblock_enctype" >&6; }
26647
26648 ac_config_headers="$ac_config_headers h/config.h"
26649
26650 ac_config_files="$ac_config_files Makefile clients/Makefile clients/zaway/Makefile clients/zctl/Makefile clients/zleave/Makefile clients/zlocate/Makefile clients/znol/Makefile clients/zshutdown_notify/Makefile clients/zstat/Makefile clients/zwrite/Makefile lib/Makefile libdyn/Makefile server/Makefile zhm/Makefile zwgc/Makefile"
26651
26652 cat >confcache <<\_ACEOF
26653 # This file is a shell script that caches the results of configure
26654 # tests run on this system so they can be shared between configure
26655 # scripts and configure runs, see configure's option --config-cache.
26656 # It is not useful on other systems.  If it contains results you don't
26657 # want to keep, you may remove or edit it.
26658 #
26659 # config.status only pays attention to the cache file if you give it
26660 # the --recheck option to rerun configure.
26661 #
26662 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26663 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26664 # following values.
26665
26666 _ACEOF
26667
26668 # The following way of writing the cache mishandles newlines in values,
26669 # but we know of no workaround that is simple, portable, and efficient.
26670 # So, we kill variables containing newlines.
26671 # Ultrix sh set writes to stderr and can't be redirected directly,
26672 # and sets the high bit in the cache file unless we assign to the vars.
26673 (
26674   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26675     eval ac_val=\$$ac_var
26676     case $ac_val in #(
26677     *${as_nl}*)
26678       case $ac_var in #(
26679       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
26680 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
26681       esac
26682       case $ac_var in #(
26683       _ | IFS | as_nl) ;; #(
26684       *) $as_unset $ac_var ;;
26685       esac ;;
26686     esac
26687   done
26688
26689   (set) 2>&1 |
26690     case $as_nl`(ac_space=' '; set) 2>&1` in #(
26691     *${as_nl}ac_space=\ *)
26692       # `set' does not quote correctly, so add quotes (double-quote
26693       # substitution turns \\\\ into \\, and sed turns \\ into \).
26694       sed -n \
26695         "s/'/'\\\\''/g;
26696           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26697       ;; #(
26698     *)
26699       # `set' quotes correctly as required by POSIX, so do not add quotes.
26700       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26701       ;;
26702     esac |
26703     sort
26704 ) |
26705   sed '
26706      /^ac_cv_env_/b end
26707      t clear
26708      :clear
26709      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26710      t end
26711      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26712      :end' >>confcache
26713 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26714   if test -w "$cache_file"; then
26715     test "x$cache_file" != "x/dev/null" &&
26716       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
26717 echo "$as_me: updating cache $cache_file" >&6;}
26718     cat confcache >$cache_file
26719   else
26720     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
26721 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26722   fi
26723 fi
26724 rm -f confcache
26725
26726 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26727 # Let make expand exec_prefix.
26728 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26729
26730 DEFS=-DHAVE_CONFIG_H
26731
26732 ac_libobjs=
26733 ac_ltlibobjs=
26734 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26735   # 1. Remove the extension, and $U if already installed.
26736   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26737   ac_i=`echo "$ac_i" | sed "$ac_script"`
26738   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
26739   #    will be set to the directory where LIBOBJS objects are built.
26740   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26741   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
26742 done
26743 LIBOBJS=$ac_libobjs
26744
26745 LTLIBOBJS=$ac_ltlibobjs
26746
26747
26748
26749 : ${CONFIG_STATUS=./config.status}
26750 ac_clean_files_save=$ac_clean_files
26751 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26752 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26753 echo "$as_me: creating $CONFIG_STATUS" >&6;}
26754 cat >$CONFIG_STATUS <<_ACEOF
26755 #! $SHELL
26756 # Generated by $as_me.
26757 # Run this file to recreate the current configuration.
26758 # Compiler output produced by configure, useful for debugging
26759 # configure, is in config.log if it exists.
26760
26761 debug=false
26762 ac_cs_recheck=false
26763 ac_cs_silent=false
26764 SHELL=\${CONFIG_SHELL-$SHELL}
26765 _ACEOF
26766
26767 cat >>$CONFIG_STATUS <<\_ACEOF
26768 ## --------------------- ##
26769 ## M4sh Initialization.  ##
26770 ## --------------------- ##
26771
26772 # Be more Bourne compatible
26773 DUALCASE=1; export DUALCASE # for MKS sh
26774 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26775   emulate sh
26776   NULLCMD=:
26777   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26778   # is contrary to our usage.  Disable this feature.
26779   alias -g '${1+"$@"}'='"$@"'
26780   setopt NO_GLOB_SUBST
26781 else
26782   case `(set -o) 2>/dev/null` in
26783   *posix*) set -o posix ;;
26784 esac
26785
26786 fi
26787
26788
26789
26790
26791 # PATH needs CR
26792 # Avoid depending upon Character Ranges.
26793 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26794 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26795 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26796 as_cr_digits='0123456789'
26797 as_cr_alnum=$as_cr_Letters$as_cr_digits
26798
26799 # The user is always right.
26800 if test "${PATH_SEPARATOR+set}" != set; then
26801   echo "#! /bin/sh" >conf$$.sh
26802   echo  "exit 0"   >>conf$$.sh
26803   chmod +x conf$$.sh
26804   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
26805     PATH_SEPARATOR=';'
26806   else
26807     PATH_SEPARATOR=:
26808   fi
26809   rm -f conf$$.sh
26810 fi
26811
26812 # Support unset when possible.
26813 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26814   as_unset=unset
26815 else
26816   as_unset=false
26817 fi
26818
26819
26820 # IFS
26821 # We need space, tab and new line, in precisely that order.  Quoting is
26822 # there to prevent editors from complaining about space-tab.
26823 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26824 # splitting by setting IFS to empty value.)
26825 as_nl='
26826 '
26827 IFS=" ""        $as_nl"
26828
26829 # Find who we are.  Look in the path if we contain no directory separator.
26830 case $0 in
26831   *[\\/]* ) as_myself=$0 ;;
26832   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26833 for as_dir in $PATH
26834 do
26835   IFS=$as_save_IFS
26836   test -z "$as_dir" && as_dir=.
26837   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26838 done
26839 IFS=$as_save_IFS
26840
26841      ;;
26842 esac
26843 # We did not find ourselves, most probably we were run as `sh COMMAND'
26844 # in which case we are not to be found in the path.
26845 if test "x$as_myself" = x; then
26846   as_myself=$0
26847 fi
26848 if test ! -f "$as_myself"; then
26849   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26850   { (exit 1); exit 1; }
26851 fi
26852
26853 # Work around bugs in pre-3.0 UWIN ksh.
26854 for as_var in ENV MAIL MAILPATH
26855 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26856 done
26857 PS1='$ '
26858 PS2='> '
26859 PS4='+ '
26860
26861 # NLS nuisances.
26862 for as_var in \
26863   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
26864   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
26865   LC_TELEPHONE LC_TIME
26866 do
26867   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
26868     eval $as_var=C; export $as_var
26869   else
26870     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26871   fi
26872 done
26873
26874 # Required to use basename.
26875 if expr a : '\(a\)' >/dev/null 2>&1 &&
26876    test "X`expr 00001 : '.*\(...\)'`" = X001; then
26877   as_expr=expr
26878 else
26879   as_expr=false
26880 fi
26881
26882 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26883   as_basename=basename
26884 else
26885   as_basename=false
26886 fi
26887
26888
26889 # Name of the executable.
26890 as_me=`$as_basename -- "$0" ||
26891 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26892          X"$0" : 'X\(//\)$' \| \
26893          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26894 echo X/"$0" |
26895     sed '/^.*\/\([^/][^/]*\)\/*$/{
26896             s//\1/
26897             q
26898           }
26899           /^X\/\(\/\/\)$/{
26900             s//\1/
26901             q
26902           }
26903           /^X\/\(\/\).*/{
26904             s//\1/
26905             q
26906           }
26907           s/.*/./; q'`
26908
26909 # CDPATH.
26910 $as_unset CDPATH
26911
26912
26913
26914   as_lineno_1=$LINENO
26915   as_lineno_2=$LINENO
26916   test "x$as_lineno_1" != "x$as_lineno_2" &&
26917   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
26918
26919   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26920   # uniformly replaced by the line number.  The first 'sed' inserts a
26921   # line-number line after each line using $LINENO; the second 'sed'
26922   # does the real work.  The second script uses 'N' to pair each
26923   # line-number line with the line containing $LINENO, and appends
26924   # trailing '-' during substitution so that $LINENO is not a special
26925   # case at line end.
26926   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26927   # scripts with optimization help from Paolo Bonzini.  Blame Lee
26928   # E. McMahon (1931-1989) for sed's syntax.  :-)
26929   sed -n '
26930     p
26931     /[$]LINENO/=
26932   ' <$as_myself |
26933     sed '
26934       s/[$]LINENO.*/&-/
26935       t lineno
26936       b
26937       :lineno
26938       N
26939       :loop
26940       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
26941       t loop
26942       s/-\n.*//
26943     ' >$as_me.lineno &&
26944   chmod +x "$as_me.lineno" ||
26945     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
26946    { (exit 1); exit 1; }; }
26947
26948   # Don't try to exec as it changes $[0], causing all sort of problems
26949   # (the dirname of $[0] is not the place where we might find the
26950   # original and so on.  Autoconf is especially sensitive to this).
26951   . "./$as_me.lineno"
26952   # Exit status is that of the last command.
26953   exit
26954 }
26955
26956
26957 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26958   as_dirname=dirname
26959 else
26960   as_dirname=false
26961 fi
26962
26963 ECHO_C= ECHO_N= ECHO_T=
26964 case `echo -n x` in
26965 -n*)
26966   case `echo 'x\c'` in
26967   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
26968   *)   ECHO_C='\c';;
26969   esac;;
26970 *)
26971   ECHO_N='-n';;
26972 esac
26973
26974 if expr a : '\(a\)' >/dev/null 2>&1 &&
26975    test "X`expr 00001 : '.*\(...\)'`" = X001; then
26976   as_expr=expr
26977 else
26978   as_expr=false
26979 fi
26980
26981 rm -f conf$$ conf$$.exe conf$$.file
26982 if test -d conf$$.dir; then
26983   rm -f conf$$.dir/conf$$.file
26984 else
26985   rm -f conf$$.dir
26986   mkdir conf$$.dir
26987 fi
26988 echo >conf$$.file
26989 if ln -s conf$$.file conf$$ 2>/dev/null; then
26990   as_ln_s='ln -s'
26991   # ... but there are two gotchas:
26992   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26993   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26994   # In both cases, we have to default to `cp -p'.
26995   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26996     as_ln_s='cp -p'
26997 elif ln conf$$.file conf$$ 2>/dev/null; then
26998   as_ln_s=ln
26999 else
27000   as_ln_s='cp -p'
27001 fi
27002 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27003 rmdir conf$$.dir 2>/dev/null
27004
27005 if mkdir -p . 2>/dev/null; then
27006   as_mkdir_p=:
27007 else
27008   test -d ./-p && rmdir ./-p
27009   as_mkdir_p=false
27010 fi
27011
27012 if test -x / >/dev/null 2>&1; then
27013   as_test_x='test -x'
27014 else
27015   if ls -dL / >/dev/null 2>&1; then
27016     as_ls_L_option=L
27017   else
27018     as_ls_L_option=
27019   fi
27020   as_test_x='
27021     eval sh -c '\''
27022       if test -d "$1"; then
27023         test -d "$1/.";
27024       else
27025         case $1 in
27026         -*)set "./$1";;
27027         esac;
27028         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
27029         ???[sx]*):;;*)false;;esac;fi
27030     '\'' sh
27031   '
27032 fi
27033 as_executable_p=$as_test_x
27034
27035 # Sed expression to map a string onto a valid CPP name.
27036 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27037
27038 # Sed expression to map a string onto a valid variable name.
27039 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27040
27041
27042 exec 6>&1
27043
27044 # Save the log message, to keep $[0] and so on meaningful, and to
27045 # report actual input values of CONFIG_FILES etc. instead of their
27046 # values after options handling.
27047 ac_log="
27048 This file was extended by $as_me, which was
27049 generated by GNU Autoconf 2.61.  Invocation command line was
27050
27051   CONFIG_FILES    = $CONFIG_FILES
27052   CONFIG_HEADERS  = $CONFIG_HEADERS
27053   CONFIG_LINKS    = $CONFIG_LINKS
27054   CONFIG_COMMANDS = $CONFIG_COMMANDS
27055   $ $0 $@
27056
27057 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27058 "
27059
27060 _ACEOF
27061
27062 cat >>$CONFIG_STATUS <<_ACEOF
27063 # Files that config.status was made for.
27064 config_files="$ac_config_files"
27065 config_headers="$ac_config_headers"
27066
27067 _ACEOF
27068
27069 cat >>$CONFIG_STATUS <<\_ACEOF
27070 ac_cs_usage="\
27071 \`$as_me' instantiates files from templates according to the
27072 current configuration.
27073
27074 Usage: $0 [OPTIONS] [FILE]...
27075
27076   -h, --help       print this help, then exit
27077   -V, --version    print version number and configuration settings, then exit
27078   -q, --quiet      do not print progress messages
27079   -d, --debug      don't remove temporary files
27080       --recheck    update $as_me by reconfiguring in the same conditions
27081   --file=FILE[:TEMPLATE]
27082                    instantiate the configuration file FILE
27083   --header=FILE[:TEMPLATE]
27084                    instantiate the configuration header FILE
27085
27086 Configuration files:
27087 $config_files
27088
27089 Configuration headers:
27090 $config_headers
27091
27092 Report bugs to <bug-autoconf@gnu.org>."
27093
27094 _ACEOF
27095 cat >>$CONFIG_STATUS <<_ACEOF
27096 ac_cs_version="\\
27097 config.status
27098 configured by $0, generated by GNU Autoconf 2.61,
27099   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27100
27101 Copyright (C) 2006 Free Software Foundation, Inc.
27102 This config.status script is free software; the Free Software Foundation
27103 gives unlimited permission to copy, distribute and modify it."
27104
27105 ac_pwd='$ac_pwd'
27106 srcdir='$srcdir'
27107 INSTALL='$INSTALL'
27108 _ACEOF
27109
27110 cat >>$CONFIG_STATUS <<\_ACEOF
27111 # If no file are specified by the user, then we need to provide default
27112 # value.  By we need to know if files were specified by the user.
27113 ac_need_defaults=:
27114 while test $# != 0
27115 do
27116   case $1 in
27117   --*=*)
27118     ac_option=`expr "X$1" : 'X\([^=]*\)='`
27119     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27120     ac_shift=:
27121     ;;
27122   *)
27123     ac_option=$1
27124     ac_optarg=$2
27125     ac_shift=shift
27126     ;;
27127   esac
27128
27129   case $ac_option in
27130   # Handling of the options.
27131   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27132     ac_cs_recheck=: ;;
27133   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27134     echo "$ac_cs_version"; exit ;;
27135   --debug | --debu | --deb | --de | --d | -d )
27136     debug=: ;;
27137   --file | --fil | --fi | --f )
27138     $ac_shift
27139     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
27140     ac_need_defaults=false;;
27141   --header | --heade | --head | --hea )
27142     $ac_shift
27143     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
27144     ac_need_defaults=false;;
27145   --he | --h)
27146     # Conflict between --help and --header
27147     { echo "$as_me: error: ambiguous option: $1
27148 Try \`$0 --help' for more information." >&2
27149    { (exit 1); exit 1; }; };;
27150   --help | --hel | -h )
27151     echo "$ac_cs_usage"; exit ;;
27152   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27153   | -silent | --silent | --silen | --sile | --sil | --si | --s)
27154     ac_cs_silent=: ;;
27155
27156   # This is an error.
27157   -*) { echo "$as_me: error: unrecognized option: $1
27158 Try \`$0 --help' for more information." >&2
27159    { (exit 1); exit 1; }; } ;;
27160
27161   *) ac_config_targets="$ac_config_targets $1"
27162      ac_need_defaults=false ;;
27163
27164   esac
27165   shift
27166 done
27167
27168 ac_configure_extra_args=
27169
27170 if $ac_cs_silent; then
27171   exec 6>/dev/null
27172   ac_configure_extra_args="$ac_configure_extra_args --silent"
27173 fi
27174
27175 _ACEOF
27176 cat >>$CONFIG_STATUS <<_ACEOF
27177 if \$ac_cs_recheck; then
27178   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
27179   CONFIG_SHELL=$SHELL
27180   export CONFIG_SHELL
27181   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27182 fi
27183
27184 _ACEOF
27185 cat >>$CONFIG_STATUS <<\_ACEOF
27186 exec 5>>config.log
27187 {
27188   echo
27189   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27190 ## Running $as_me. ##
27191 _ASBOX
27192   echo "$ac_log"
27193 } >&5
27194
27195 _ACEOF
27196 cat >>$CONFIG_STATUS <<_ACEOF
27197 _ACEOF
27198
27199 cat >>$CONFIG_STATUS <<\_ACEOF
27200
27201 # Handling of arguments.
27202 for ac_config_target in $ac_config_targets
27203 do
27204   case $ac_config_target in
27205     "h/config.h") CONFIG_HEADERS="$CONFIG_HEADERS h/config.h" ;;
27206     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
27207     "clients/Makefile") CONFIG_FILES="$CONFIG_FILES clients/Makefile" ;;
27208     "clients/zaway/Makefile") CONFIG_FILES="$CONFIG_FILES clients/zaway/Makefile" ;;
27209     "clients/zctl/Makefile") CONFIG_FILES="$CONFIG_FILES clients/zctl/Makefile" ;;
27210     "clients/zleave/Makefile") CONFIG_FILES="$CONFIG_FILES clients/zleave/Makefile" ;;
27211     "clients/zlocate/Makefile") CONFIG_FILES="$CONFIG_FILES clients/zlocate/Makefile" ;;
27212     "clients/znol/Makefile") CONFIG_FILES="$CONFIG_FILES clients/znol/Makefile" ;;
27213     "clients/zshutdown_notify/Makefile") CONFIG_FILES="$CONFIG_FILES clients/zshutdown_notify/Makefile" ;;
27214     "clients/zstat/Makefile") CONFIG_FILES="$CONFIG_FILES clients/zstat/Makefile" ;;
27215     "clients/zwrite/Makefile") CONFIG_FILES="$CONFIG_FILES clients/zwrite/Makefile" ;;
27216     "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
27217     "libdyn/Makefile") CONFIG_FILES="$CONFIG_FILES libdyn/Makefile" ;;
27218     "server/Makefile") CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
27219     "zhm/Makefile") CONFIG_FILES="$CONFIG_FILES zhm/Makefile" ;;
27220     "zwgc/Makefile") CONFIG_FILES="$CONFIG_FILES zwgc/Makefile" ;;
27221
27222   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
27223 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
27224    { (exit 1); exit 1; }; };;
27225   esac
27226 done
27227
27228
27229 # If the user did not use the arguments to specify the items to instantiate,
27230 # then the envvar interface is used.  Set only those that are not.
27231 # We use the long form for the default assignment because of an extremely
27232 # bizarre bug on SunOS 4.1.3.
27233 if $ac_need_defaults; then
27234   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27235   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27236 fi
27237
27238 # Have a temporary directory for convenience.  Make it in the build tree
27239 # simply because there is no reason against having it here, and in addition,
27240 # creating and moving files from /tmp can sometimes cause problems.
27241 # Hook for its removal unless debugging.
27242 # Note that there is a small window in which the directory will not be cleaned:
27243 # after its creation but before its name has been assigned to `$tmp'.
27244 $debug ||
27245 {
27246   tmp=
27247   trap 'exit_status=$?
27248   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27249 ' 0
27250   trap '{ (exit 1); exit 1; }' 1 2 13 15
27251 }
27252 # Create a (secure) tmp directory for tmp files.
27253
27254 {
27255   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27256   test -n "$tmp" && test -d "$tmp"
27257 }  ||
27258 {
27259   tmp=./conf$$-$RANDOM
27260   (umask 077 && mkdir "$tmp")
27261 } ||
27262 {
27263    echo "$me: cannot create a temporary directory in ." >&2
27264    { (exit 1); exit 1; }
27265 }
27266
27267 #
27268 # Set up the sed scripts for CONFIG_FILES section.
27269 #
27270
27271 # No need to generate the scripts if there are no CONFIG_FILES.
27272 # This happens for instance when ./config.status config.h
27273 if test -n "$CONFIG_FILES"; then
27274
27275 _ACEOF
27276
27277
27278
27279 ac_delim='%!_!# '
27280 for ac_last_try in false false false false false :; do
27281   cat >conf$$subs.sed <<_ACEOF
27282 SHELL!$SHELL$ac_delim
27283 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
27284 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
27285 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
27286 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
27287 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
27288 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
27289 exec_prefix!$exec_prefix$ac_delim
27290 prefix!$prefix$ac_delim
27291 program_transform_name!$program_transform_name$ac_delim
27292 bindir!$bindir$ac_delim
27293 sbindir!$sbindir$ac_delim
27294 libexecdir!$libexecdir$ac_delim
27295 datarootdir!$datarootdir$ac_delim
27296 datadir!$datadir$ac_delim
27297 sysconfdir!$sysconfdir$ac_delim
27298 sharedstatedir!$sharedstatedir$ac_delim
27299 localstatedir!$localstatedir$ac_delim
27300 includedir!$includedir$ac_delim
27301 oldincludedir!$oldincludedir$ac_delim
27302 docdir!$docdir$ac_delim
27303 infodir!$infodir$ac_delim
27304 htmldir!$htmldir$ac_delim
27305 dvidir!$dvidir$ac_delim
27306 pdfdir!$pdfdir$ac_delim
27307 psdir!$psdir$ac_delim
27308 libdir!$libdir$ac_delim
27309 localedir!$localedir$ac_delim
27310 mandir!$mandir$ac_delim
27311 DEFS!$DEFS$ac_delim
27312 ECHO_C!$ECHO_C$ac_delim
27313 ECHO_N!$ECHO_N$ac_delim
27314 ECHO_T!$ECHO_T$ac_delim
27315 LIBS!$LIBS$ac_delim
27316 build_alias!$build_alias$ac_delim
27317 host_alias!$host_alias$ac_delim
27318 target_alias!$target_alias$ac_delim
27319 lbindir!$lbindir$ac_delim
27320 lsbindir!$lsbindir$ac_delim
27321 build!$build$ac_delim
27322 build_cpu!$build_cpu$ac_delim
27323 build_vendor!$build_vendor$ac_delim
27324 build_os!$build_os$ac_delim
27325 host!$host$ac_delim
27326 host_cpu!$host_cpu$ac_delim
27327 host_vendor!$host_vendor$ac_delim
27328 host_os!$host_os$ac_delim
27329 target!$target$ac_delim
27330 target_cpu!$target_cpu$ac_delim
27331 target_vendor!$target_vendor$ac_delim
27332 target_os!$target_os$ac_delim
27333 CC!$CC$ac_delim
27334 CFLAGS!$CFLAGS$ac_delim
27335 LDFLAGS!$LDFLAGS$ac_delim
27336 CPPFLAGS!$CPPFLAGS$ac_delim
27337 ac_ct_CC!$ac_ct_CC$ac_delim
27338 EXEEXT!$EXEEXT$ac_delim
27339 OBJEXT!$OBJEXT$ac_delim
27340 YACC!$YACC$ac_delim
27341 YFLAGS!$YFLAGS$ac_delim
27342 LEX!$LEX$ac_delim
27343 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
27344 LEXLIB!$LEXLIB$ac_delim
27345 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
27346 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
27347 INSTALL_DATA!$INSTALL_DATA$ac_delim
27348 RANLIB!$RANLIB$ac_delim
27349 GREP!$GREP$ac_delim
27350 EGREP!$EGREP$ac_delim
27351 LN_S!$LN_S$ac_delim
27352 ECHO!$ECHO$ac_delim
27353 AR!$AR$ac_delim
27354 STRIP!$STRIP$ac_delim
27355 CPP!$CPP$ac_delim
27356 CXX!$CXX$ac_delim
27357 CXXFLAGS!$CXXFLAGS$ac_delim
27358 ac_ct_CXX!$ac_ct_CXX$ac_delim
27359 CXXCPP!$CXXCPP$ac_delim
27360 F77!$F77$ac_delim
27361 FFLAGS!$FFLAGS$ac_delim
27362 ac_ct_F77!$ac_ct_F77$ac_delim
27363 LIBTOOL!$LIBTOOL$ac_delim
27364 XMKMF!$XMKMF$ac_delim
27365 X_CFLAGS!$X_CFLAGS$ac_delim
27366 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
27367 X_LIBS!$X_LIBS$ac_delim
27368 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
27369 XCLIENTS!$XCLIENTS$ac_delim
27370 ZWGC_LIBX11!$ZWGC_LIBX11$ac_delim
27371 TLIB!$TLIB$ac_delim
27372 RLIB!$RLIB$ac_delim
27373 SLIB!$SLIB$ac_delim
27374 KRB4_LIBS!$KRB4_LIBS$ac_delim
27375 krb5config!$krb5config$ac_delim
27376 KRB5_LIBS!$KRB5_LIBS$ac_delim
27377 HESIOD_LIBS!$HESIOD_LIBS$ac_delim
27378 REGEX_LIBS!$REGEX_LIBS$ac_delim
27379 _ACEOF
27380
27381   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
27382     break
27383   elif $ac_last_try; then
27384     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27385 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27386    { (exit 1); exit 1; }; }
27387   else
27388     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27389   fi
27390 done
27391
27392 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
27393 if test -n "$ac_eof"; then
27394   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
27395   ac_eof=`expr $ac_eof + 1`
27396 fi
27397
27398 cat >>$CONFIG_STATUS <<_ACEOF
27399 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
27400 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27401 _ACEOF
27402 sed '
27403 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
27404 s/^/s,@/; s/!/@,|#_!!_#|/
27405 :n
27406 t n
27407 s/'"$ac_delim"'$/,g/; t
27408 s/$/\\/; p
27409 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
27410 ' >>$CONFIG_STATUS <conf$$subs.sed
27411 rm -f conf$$subs.sed
27412 cat >>$CONFIG_STATUS <<_ACEOF
27413 CEOF$ac_eof
27414 _ACEOF
27415
27416
27417 ac_delim='%!_!# '
27418 for ac_last_try in false false false false false :; do
27419   cat >conf$$subs.sed <<_ACEOF
27420 ARES_LIBS!$ARES_LIBS$ac_delim
27421 LIBOBJS!$LIBOBJS$ac_delim
27422 LTLIBOBJS!$LTLIBOBJS$ac_delim
27423 _ACEOF
27424
27425   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 3; then
27426     break
27427   elif $ac_last_try; then
27428     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27429 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27430    { (exit 1); exit 1; }; }
27431   else
27432     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27433   fi
27434 done
27435
27436 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
27437 if test -n "$ac_eof"; then
27438   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
27439   ac_eof=`expr $ac_eof + 1`
27440 fi
27441
27442 cat >>$CONFIG_STATUS <<_ACEOF
27443 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
27444 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
27445 _ACEOF
27446 sed '
27447 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
27448 s/^/s,@/; s/!/@,|#_!!_#|/
27449 :n
27450 t n
27451 s/'"$ac_delim"'$/,g/; t
27452 s/$/\\/; p
27453 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
27454 ' >>$CONFIG_STATUS <conf$$subs.sed
27455 rm -f conf$$subs.sed
27456 cat >>$CONFIG_STATUS <<_ACEOF
27457 :end
27458 s/|#_!!_#|//g
27459 CEOF$ac_eof
27460 _ACEOF
27461
27462
27463 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27464 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27465 # trailing colons and then remove the whole line if VPATH becomes empty
27466 # (actually we leave an empty line to preserve line numbers).
27467 if test "x$srcdir" = x.; then
27468   ac_vpsub='/^[  ]*VPATH[        ]*=/{
27469 s/:*\$(srcdir):*/:/
27470 s/:*\${srcdir}:*/:/
27471 s/:*@srcdir@:*/:/
27472 s/^\([^=]*=[     ]*\):*/\1/
27473 s/:*$//
27474 s/^[^=]*=[       ]*$//
27475 }'
27476 fi
27477
27478 cat >>$CONFIG_STATUS <<\_ACEOF
27479 fi # test -n "$CONFIG_FILES"
27480
27481
27482 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS
27483 do
27484   case $ac_tag in
27485   :[FHLC]) ac_mode=$ac_tag; continue;;
27486   esac
27487   case $ac_mode$ac_tag in
27488   :[FHL]*:*);;
27489   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
27490 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
27491    { (exit 1); exit 1; }; };;
27492   :[FH]-) ac_tag=-:-;;
27493   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27494   esac
27495   ac_save_IFS=$IFS
27496   IFS=:
27497   set x $ac_tag
27498   IFS=$ac_save_IFS
27499   shift
27500   ac_file=$1
27501   shift
27502
27503   case $ac_mode in
27504   :L) ac_source=$1;;
27505   :[FH])
27506     ac_file_inputs=
27507     for ac_f
27508     do
27509       case $ac_f in
27510       -) ac_f="$tmp/stdin";;
27511       *) # Look for the file first in the build tree, then in the source tree
27512          # (if the path is not absolute).  The absolute path cannot be DOS-style,
27513          # because $ac_f cannot contain `:'.
27514          test -f "$ac_f" ||
27515            case $ac_f in
27516            [\\/$]*) false;;
27517            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27518            esac ||
27519            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
27520 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
27521    { (exit 1); exit 1; }; };;
27522       esac
27523       ac_file_inputs="$ac_file_inputs $ac_f"
27524     done
27525
27526     # Let's still pretend it is `configure' which instantiates (i.e., don't
27527     # use $as_me), people would be surprised to read:
27528     #    /* config.h.  Generated by config.status.  */
27529     configure_input="Generated from "`IFS=:
27530           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
27531     if test x"$ac_file" != x-; then
27532       configure_input="$ac_file.  $configure_input"
27533       { echo "$as_me:$LINENO: creating $ac_file" >&5
27534 echo "$as_me: creating $ac_file" >&6;}
27535     fi
27536
27537     case $ac_tag in
27538     *:-:* | *:-) cat >"$tmp/stdin";;
27539     esac
27540     ;;
27541   esac
27542
27543   ac_dir=`$as_dirname -- "$ac_file" ||
27544 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27545          X"$ac_file" : 'X\(//\)[^/]' \| \
27546          X"$ac_file" : 'X\(//\)$' \| \
27547          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27548 echo X"$ac_file" |
27549     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27550             s//\1/
27551             q
27552           }
27553           /^X\(\/\/\)[^/].*/{
27554             s//\1/
27555             q
27556           }
27557           /^X\(\/\/\)$/{
27558             s//\1/
27559             q
27560           }
27561           /^X\(\/\).*/{
27562             s//\1/
27563             q
27564           }
27565           s/.*/./; q'`
27566   { as_dir="$ac_dir"
27567   case $as_dir in #(
27568   -*) as_dir=./$as_dir;;
27569   esac
27570   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27571     as_dirs=
27572     while :; do
27573       case $as_dir in #(
27574       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
27575       *) as_qdir=$as_dir;;
27576       esac
27577       as_dirs="'$as_qdir' $as_dirs"
27578       as_dir=`$as_dirname -- "$as_dir" ||
27579 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27580          X"$as_dir" : 'X\(//\)[^/]' \| \
27581          X"$as_dir" : 'X\(//\)$' \| \
27582          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27583 echo X"$as_dir" |
27584     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27585             s//\1/
27586             q
27587           }
27588           /^X\(\/\/\)[^/].*/{
27589             s//\1/
27590             q
27591           }
27592           /^X\(\/\/\)$/{
27593             s//\1/
27594             q
27595           }
27596           /^X\(\/\).*/{
27597             s//\1/
27598             q
27599           }
27600           s/.*/./; q'`
27601       test -d "$as_dir" && break
27602     done
27603     test -z "$as_dirs" || eval "mkdir $as_dirs"
27604   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27605 echo "$as_me: error: cannot create directory $as_dir" >&2;}
27606    { (exit 1); exit 1; }; }; }
27607   ac_builddir=.
27608
27609 case "$ac_dir" in
27610 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27611 *)
27612   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27613   # A ".." for each directory in $ac_dir_suffix.
27614   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
27615   case $ac_top_builddir_sub in
27616   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27617   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27618   esac ;;
27619 esac
27620 ac_abs_top_builddir=$ac_pwd
27621 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27622 # for backward compatibility:
27623 ac_top_builddir=$ac_top_build_prefix
27624
27625 case $srcdir in
27626   .)  # We are building in place.
27627     ac_srcdir=.
27628     ac_top_srcdir=$ac_top_builddir_sub
27629     ac_abs_top_srcdir=$ac_pwd ;;
27630   [\\/]* | ?:[\\/]* )  # Absolute name.
27631     ac_srcdir=$srcdir$ac_dir_suffix;
27632     ac_top_srcdir=$srcdir
27633     ac_abs_top_srcdir=$srcdir ;;
27634   *) # Relative name.
27635     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27636     ac_top_srcdir=$ac_top_build_prefix$srcdir
27637     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27638 esac
27639 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27640
27641
27642   case $ac_mode in
27643   :F)
27644   #
27645   # CONFIG_FILE
27646   #
27647
27648   case $INSTALL in
27649   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27650   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
27651   esac
27652 _ACEOF
27653
27654 cat >>$CONFIG_STATUS <<\_ACEOF
27655 # If the template does not know about datarootdir, expand it.
27656 # FIXME: This hack should be removed a few years after 2.60.
27657 ac_datarootdir_hack=; ac_datarootdir_seen=
27658
27659 case `sed -n '/datarootdir/ {
27660   p
27661   q
27662 }
27663 /@datadir@/p
27664 /@docdir@/p
27665 /@infodir@/p
27666 /@localedir@/p
27667 /@mandir@/p
27668 ' $ac_file_inputs` in
27669 *datarootdir*) ac_datarootdir_seen=yes;;
27670 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27671   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27672 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27673 _ACEOF
27674 cat >>$CONFIG_STATUS <<_ACEOF
27675   ac_datarootdir_hack='
27676   s&@datadir@&$datadir&g
27677   s&@docdir@&$docdir&g
27678   s&@infodir@&$infodir&g
27679   s&@localedir@&$localedir&g
27680   s&@mandir@&$mandir&g
27681     s&\\\${datarootdir}&$datarootdir&g' ;;
27682 esac
27683 _ACEOF
27684
27685 # Neutralize VPATH when `$srcdir' = `.'.
27686 # Shell code in configure.ac might set extrasub.
27687 # FIXME: do we really want to maintain this feature?
27688 cat >>$CONFIG_STATUS <<_ACEOF
27689   sed "$ac_vpsub
27690 $extrasub
27691 _ACEOF
27692 cat >>$CONFIG_STATUS <<\_ACEOF
27693 :t
27694 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27695 s&@configure_input@&$configure_input&;t t
27696 s&@top_builddir@&$ac_top_builddir_sub&;t t
27697 s&@srcdir@&$ac_srcdir&;t t
27698 s&@abs_srcdir@&$ac_abs_srcdir&;t t
27699 s&@top_srcdir@&$ac_top_srcdir&;t t
27700 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27701 s&@builddir@&$ac_builddir&;t t
27702 s&@abs_builddir@&$ac_abs_builddir&;t t
27703 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27704 s&@INSTALL@&$ac_INSTALL&;t t
27705 $ac_datarootdir_hack
27706 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
27707
27708 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27709   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
27710   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
27711   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27712 which seems to be undefined.  Please make sure it is defined." >&5
27713 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27714 which seems to be undefined.  Please make sure it is defined." >&2;}
27715
27716   rm -f "$tmp/stdin"
27717   case $ac_file in
27718   -) cat "$tmp/out"; rm -f "$tmp/out";;
27719   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
27720   esac
27721  ;;
27722   :H)
27723   #
27724   # CONFIG_HEADER
27725   #
27726 _ACEOF
27727
27728 # Transform confdefs.h into a sed script `conftest.defines', that
27729 # substitutes the proper values into config.h.in to produce config.h.
27730 rm -f conftest.defines conftest.tail
27731 # First, append a space to every undef/define line, to ease matching.
27732 echo 's/$/ /' >conftest.defines
27733 # Then, protect against being on the right side of a sed subst, or in
27734 # an unquoted here document, in config.status.  If some macros were
27735 # called several times there might be several #defines for the same
27736 # symbol, which is useless.  But do not sort them, since the last
27737 # AC_DEFINE must be honored.
27738 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27739 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
27740 # NAME is the cpp macro being defined, VALUE is the value it is being given.
27741 # PARAMS is the parameter list in the macro definition--in most cases, it's
27742 # just an empty string.
27743 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
27744 ac_dB='\\)[      (].*,\\1define\\2'
27745 ac_dC=' '
27746 ac_dD=' ,'
27747
27748 uniq confdefs.h |
27749   sed -n '
27750         t rset
27751         :rset
27752         s/^[     ]*#[    ]*define[       ][      ]*//
27753         t ok
27754         d
27755         :ok
27756         s/[\\&,]/\\&/g
27757         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
27758         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
27759   ' >>conftest.defines
27760
27761 # Remove the space that was appended to ease matching.
27762 # Then replace #undef with comments.  This is necessary, for
27763 # example, in the case of _POSIX_SOURCE, which is predefined and required
27764 # on some systems where configure will not decide to define it.
27765 # (The regexp can be short, since the line contains either #define or #undef.)
27766 echo 's/ $//
27767 s,^[     #]*u.*,/* & */,' >>conftest.defines
27768
27769 # Break up conftest.defines:
27770 ac_max_sed_lines=50
27771
27772 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
27773 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
27774 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
27775 # et cetera.
27776 ac_in='$ac_file_inputs'
27777 ac_out='"$tmp/out1"'
27778 ac_nxt='"$tmp/out2"'
27779
27780 while :
27781 do
27782   # Write a here document:
27783     cat >>$CONFIG_STATUS <<_ACEOF
27784     # First, check the format of the line:
27785     cat >"\$tmp/defines.sed" <<\\CEOF
27786 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
27787 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
27788 b
27789 :def
27790 _ACEOF
27791   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
27792   echo 'CEOF
27793     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
27794   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
27795   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
27796   grep . conftest.tail >/dev/null || break
27797   rm -f conftest.defines
27798   mv conftest.tail conftest.defines
27799 done
27800 rm -f conftest.defines conftest.tail
27801
27802 echo "ac_result=$ac_in" >>$CONFIG_STATUS
27803 cat >>$CONFIG_STATUS <<\_ACEOF
27804   if test x"$ac_file" != x-; then
27805     echo "/* $configure_input  */" >"$tmp/config.h"
27806     cat "$ac_result" >>"$tmp/config.h"
27807     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
27808       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27809 echo "$as_me: $ac_file is unchanged" >&6;}
27810     else
27811       rm -f $ac_file
27812       mv "$tmp/config.h" $ac_file
27813     fi
27814   else
27815     echo "/* $configure_input  */"
27816     cat "$ac_result"
27817   fi
27818   rm -f "$tmp/out12"
27819  ;;
27820
27821
27822   esac
27823
27824 done # for ac_tag
27825
27826
27827 { (exit 0); exit 0; }
27828 _ACEOF
27829 chmod +x $CONFIG_STATUS
27830 ac_clean_files=$ac_clean_files_save
27831
27832
27833 # configure is writing to config.log, and then calls config.status.
27834 # config.status does its own redirection, appending to config.log.
27835 # Unfortunately, on DOS this fails, as config.log is still kept open
27836 # by configure, so config.status won't be able to write to it; its
27837 # output is simply discarded.  So we exec the FD to /dev/null,
27838 # effectively closing config.log, so it can be properly (re)opened and
27839 # appended to by config.status.  When coming back to configure, we
27840 # need to make the FD available again.
27841 if test "$no_create" != yes; then
27842   ac_cs_success=:
27843   ac_config_status_args=
27844   test "$silent" = yes &&
27845     ac_config_status_args="$ac_config_status_args --quiet"
27846   exec 5>/dev/null
27847   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27848   exec 5>>config.log
27849   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27850   # would make configure fail if this is the last instruction.
27851   $ac_cs_success || { (exit 1); exit 1; }
27852 fi
27853