]> asedeno.scripts.mit.edu Git - 1ts-debian.git/blob - zephyr/configure
import zephyr 3.0~rc2544
[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 LIBICONV
860 TLIB
861 RLIB
862 SLIB
863 KRB4_LIBS
864 krb5config
865 KRB5_LIBS
866 LIBZEPHYR_LIBS
867 HESIOD_LIBS
868 REGEX_LIBS
869 SS_LIBS
870 ARES_LIBS
871 LIBOBJS
872 LTLIBOBJS'
873 ac_subst_files=''
874       ac_precious_vars='build_alias
875 host_alias
876 target_alias
877 CC
878 CFLAGS
879 LDFLAGS
880 LIBS
881 CPPFLAGS
882 YACC
883 YFLAGS
884 CPP
885 CXX
886 CXXFLAGS
887 CCC
888 CXXCPP
889 F77
890 FFLAGS
891 XMKMF'
892
893
894 # Initialize some variables set by options.
895 ac_init_help=
896 ac_init_version=false
897 # The variables have the same names as the options, with
898 # dashes changed to underlines.
899 cache_file=/dev/null
900 exec_prefix=NONE
901 no_create=
902 no_recursion=
903 prefix=NONE
904 program_prefix=NONE
905 program_suffix=NONE
906 program_transform_name=s,x,x,
907 silent=
908 site=
909 srcdir=
910 verbose=
911 x_includes=NONE
912 x_libraries=NONE
913
914 # Installation directory options.
915 # These are left unexpanded so users can "make install exec_prefix=/foo"
916 # and all the variables that are supposed to be based on exec_prefix
917 # by default will actually change.
918 # Use braces instead of parens because sh, perl, etc. also accept them.
919 # (The list follows the same order as the GNU Coding Standards.)
920 bindir='${exec_prefix}/bin'
921 sbindir='${exec_prefix}/sbin'
922 libexecdir='${exec_prefix}/libexec'
923 datarootdir='${prefix}/share'
924 datadir='${datarootdir}'
925 sysconfdir='${prefix}/etc'
926 sharedstatedir='${prefix}/com'
927 localstatedir='${prefix}/var'
928 includedir='${prefix}/include'
929 oldincludedir='/usr/include'
930 docdir='${datarootdir}/doc/${PACKAGE}'
931 infodir='${datarootdir}/info'
932 htmldir='${docdir}'
933 dvidir='${docdir}'
934 pdfdir='${docdir}'
935 psdir='${docdir}'
936 libdir='${exec_prefix}/lib'
937 localedir='${datarootdir}/locale'
938 mandir='${datarootdir}/man'
939
940 ac_prev=
941 ac_dashdash=
942 for ac_option
943 do
944   # If the previous option needs an argument, assign it.
945   if test -n "$ac_prev"; then
946     eval $ac_prev=\$ac_option
947     ac_prev=
948     continue
949   fi
950
951   case $ac_option in
952   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
953   *)    ac_optarg=yes ;;
954   esac
955
956   # Accept the important Cygnus configure options, so we can diagnose typos.
957
958   case $ac_dashdash$ac_option in
959   --)
960     ac_dashdash=yes ;;
961
962   -bindir | --bindir | --bindi | --bind | --bin | --bi)
963     ac_prev=bindir ;;
964   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
965     bindir=$ac_optarg ;;
966
967   -build | --build | --buil | --bui | --bu)
968     ac_prev=build_alias ;;
969   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
970     build_alias=$ac_optarg ;;
971
972   -cache-file | --cache-file | --cache-fil | --cache-fi \
973   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
974     ac_prev=cache_file ;;
975   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
976   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
977     cache_file=$ac_optarg ;;
978
979   --config-cache | -C)
980     cache_file=config.cache ;;
981
982   -datadir | --datadir | --datadi | --datad)
983     ac_prev=datadir ;;
984   -datadir=* | --datadir=* | --datadi=* | --datad=*)
985     datadir=$ac_optarg ;;
986
987   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
988   | --dataroo | --dataro | --datar)
989     ac_prev=datarootdir ;;
990   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
991   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
992     datarootdir=$ac_optarg ;;
993
994   -disable-* | --disable-*)
995     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
996     # Reject names that are not valid shell variable names.
997     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
998       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
999    { (exit 1); exit 1; }; }
1000     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1001     eval enable_$ac_feature=no ;;
1002
1003   -docdir | --docdir | --docdi | --doc | --do)
1004     ac_prev=docdir ;;
1005   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1006     docdir=$ac_optarg ;;
1007
1008   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1009     ac_prev=dvidir ;;
1010   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1011     dvidir=$ac_optarg ;;
1012
1013   -enable-* | --enable-*)
1014     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1015     # Reject names that are not valid shell variable names.
1016     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1017       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1018    { (exit 1); exit 1; }; }
1019     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1020     eval enable_$ac_feature=\$ac_optarg ;;
1021
1022   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1023   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1024   | --exec | --exe | --ex)
1025     ac_prev=exec_prefix ;;
1026   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1027   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1028   | --exec=* | --exe=* | --ex=*)
1029     exec_prefix=$ac_optarg ;;
1030
1031   -gas | --gas | --ga | --g)
1032     # Obsolete; use --with-gas.
1033     with_gas=yes ;;
1034
1035   -help | --help | --hel | --he | -h)
1036     ac_init_help=long ;;
1037   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1038     ac_init_help=recursive ;;
1039   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1040     ac_init_help=short ;;
1041
1042   -host | --host | --hos | --ho)
1043     ac_prev=host_alias ;;
1044   -host=* | --host=* | --hos=* | --ho=*)
1045     host_alias=$ac_optarg ;;
1046
1047   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1048     ac_prev=htmldir ;;
1049   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1050   | --ht=*)
1051     htmldir=$ac_optarg ;;
1052
1053   -includedir | --includedir | --includedi | --included | --include \
1054   | --includ | --inclu | --incl | --inc)
1055     ac_prev=includedir ;;
1056   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1057   | --includ=* | --inclu=* | --incl=* | --inc=*)
1058     includedir=$ac_optarg ;;
1059
1060   -infodir | --infodir | --infodi | --infod | --info | --inf)
1061     ac_prev=infodir ;;
1062   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1063     infodir=$ac_optarg ;;
1064
1065   -libdir | --libdir | --libdi | --libd)
1066     ac_prev=libdir ;;
1067   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1068     libdir=$ac_optarg ;;
1069
1070   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1071   | --libexe | --libex | --libe)
1072     ac_prev=libexecdir ;;
1073   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1074   | --libexe=* | --libex=* | --libe=*)
1075     libexecdir=$ac_optarg ;;
1076
1077   -localedir | --localedir | --localedi | --localed | --locale)
1078     ac_prev=localedir ;;
1079   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1080     localedir=$ac_optarg ;;
1081
1082   -localstatedir | --localstatedir | --localstatedi | --localstated \
1083   | --localstate | --localstat | --localsta | --localst | --locals)
1084     ac_prev=localstatedir ;;
1085   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1086   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1087     localstatedir=$ac_optarg ;;
1088
1089   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1090     ac_prev=mandir ;;
1091   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1092     mandir=$ac_optarg ;;
1093
1094   -nfp | --nfp | --nf)
1095     # Obsolete; use --without-fp.
1096     with_fp=no ;;
1097
1098   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1099   | --no-cr | --no-c | -n)
1100     no_create=yes ;;
1101
1102   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1103   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1104     no_recursion=yes ;;
1105
1106   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1107   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1108   | --oldin | --oldi | --old | --ol | --o)
1109     ac_prev=oldincludedir ;;
1110   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1111   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1112   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1113     oldincludedir=$ac_optarg ;;
1114
1115   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1116     ac_prev=prefix ;;
1117   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1118     prefix=$ac_optarg ;;
1119
1120   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1121   | --program-pre | --program-pr | --program-p)
1122     ac_prev=program_prefix ;;
1123   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1124   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1125     program_prefix=$ac_optarg ;;
1126
1127   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1128   | --program-suf | --program-su | --program-s)
1129     ac_prev=program_suffix ;;
1130   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1131   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1132     program_suffix=$ac_optarg ;;
1133
1134   -program-transform-name | --program-transform-name \
1135   | --program-transform-nam | --program-transform-na \
1136   | --program-transform-n | --program-transform- \
1137   | --program-transform | --program-transfor \
1138   | --program-transfo | --program-transf \
1139   | --program-trans | --program-tran \
1140   | --progr-tra | --program-tr | --program-t)
1141     ac_prev=program_transform_name ;;
1142   -program-transform-name=* | --program-transform-name=* \
1143   | --program-transform-nam=* | --program-transform-na=* \
1144   | --program-transform-n=* | --program-transform-=* \
1145   | --program-transform=* | --program-transfor=* \
1146   | --program-transfo=* | --program-transf=* \
1147   | --program-trans=* | --program-tran=* \
1148   | --progr-tra=* | --program-tr=* | --program-t=*)
1149     program_transform_name=$ac_optarg ;;
1150
1151   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1152     ac_prev=pdfdir ;;
1153   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1154     pdfdir=$ac_optarg ;;
1155
1156   -psdir | --psdir | --psdi | --psd | --ps)
1157     ac_prev=psdir ;;
1158   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1159     psdir=$ac_optarg ;;
1160
1161   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1162   | -silent | --silent | --silen | --sile | --sil)
1163     silent=yes ;;
1164
1165   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1166     ac_prev=sbindir ;;
1167   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1168   | --sbi=* | --sb=*)
1169     sbindir=$ac_optarg ;;
1170
1171   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1172   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1173   | --sharedst | --shareds | --shared | --share | --shar \
1174   | --sha | --sh)
1175     ac_prev=sharedstatedir ;;
1176   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1177   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1178   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1179   | --sha=* | --sh=*)
1180     sharedstatedir=$ac_optarg ;;
1181
1182   -site | --site | --sit)
1183     ac_prev=site ;;
1184   -site=* | --site=* | --sit=*)
1185     site=$ac_optarg ;;
1186
1187   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1188     ac_prev=srcdir ;;
1189   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1190     srcdir=$ac_optarg ;;
1191
1192   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1193   | --syscon | --sysco | --sysc | --sys | --sy)
1194     ac_prev=sysconfdir ;;
1195   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1196   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1197     sysconfdir=$ac_optarg ;;
1198
1199   -target | --target | --targe | --targ | --tar | --ta | --t)
1200     ac_prev=target_alias ;;
1201   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1202     target_alias=$ac_optarg ;;
1203
1204   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1205     verbose=yes ;;
1206
1207   -version | --version | --versio | --versi | --vers | -V)
1208     ac_init_version=: ;;
1209
1210   -with-* | --with-*)
1211     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1212     # Reject names that are not valid shell variable names.
1213     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1214       { echo "$as_me: error: invalid package name: $ac_package" >&2
1215    { (exit 1); exit 1; }; }
1216     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1217     eval with_$ac_package=\$ac_optarg ;;
1218
1219   -without-* | --without-*)
1220     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1221     # Reject names that are not valid shell variable names.
1222     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1223       { echo "$as_me: error: invalid package name: $ac_package" >&2
1224    { (exit 1); exit 1; }; }
1225     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1226     eval with_$ac_package=no ;;
1227
1228   --x)
1229     # Obsolete; use --with-x.
1230     with_x=yes ;;
1231
1232   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1233   | --x-incl | --x-inc | --x-in | --x-i)
1234     ac_prev=x_includes ;;
1235   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1236   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1237     x_includes=$ac_optarg ;;
1238
1239   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1240   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1241     ac_prev=x_libraries ;;
1242   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1243   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1244     x_libraries=$ac_optarg ;;
1245
1246   -*) { echo "$as_me: error: unrecognized option: $ac_option
1247 Try \`$0 --help' for more information." >&2
1248    { (exit 1); exit 1; }; }
1249     ;;
1250
1251   *=*)
1252     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1253     # Reject names that are not valid shell variable names.
1254     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1255       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1256    { (exit 1); exit 1; }; }
1257     eval $ac_envvar=\$ac_optarg
1258     export $ac_envvar ;;
1259
1260   *)
1261     # FIXME: should be removed in autoconf 3.0.
1262     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1263     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1264       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1265     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1266     ;;
1267
1268   esac
1269 done
1270
1271 if test -n "$ac_prev"; then
1272   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1273   { echo "$as_me: error: missing argument to $ac_option" >&2
1274    { (exit 1); exit 1; }; }
1275 fi
1276
1277 # Be sure to have absolute directory names.
1278 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1279                 datadir sysconfdir sharedstatedir localstatedir includedir \
1280                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1281                 libdir localedir mandir
1282 do
1283   eval ac_val=\$$ac_var
1284   case $ac_val in
1285     [\\/$]* | ?:[\\/]* )  continue;;
1286     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1287   esac
1288   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1289    { (exit 1); exit 1; }; }
1290 done
1291
1292 # There might be people who depend on the old broken behavior: `$host'
1293 # used to hold the argument of --host etc.
1294 # FIXME: To remove some day.
1295 build=$build_alias
1296 host=$host_alias
1297 target=$target_alias
1298
1299 # FIXME: To remove some day.
1300 if test "x$host_alias" != x; then
1301   if test "x$build_alias" = x; then
1302     cross_compiling=maybe
1303     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1304     If a cross compiler is detected then cross compile mode will be used." >&2
1305   elif test "x$build_alias" != "x$host_alias"; then
1306     cross_compiling=yes
1307   fi
1308 fi
1309
1310 ac_tool_prefix=
1311 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1312
1313 test "$silent" = yes && exec 6>/dev/null
1314
1315
1316 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1317 ac_ls_di=`ls -di .` &&
1318 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1319   { echo "$as_me: error: Working directory cannot be determined" >&2
1320    { (exit 1); exit 1; }; }
1321 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1322   { echo "$as_me: error: pwd does not report name of working directory" >&2
1323    { (exit 1); exit 1; }; }
1324
1325
1326 # Find the source files, if location was not specified.
1327 if test -z "$srcdir"; then
1328   ac_srcdir_defaulted=yes
1329   # Try the directory containing this script, then the parent directory.
1330   ac_confdir=`$as_dirname -- "$0" ||
1331 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1332          X"$0" : 'X\(//\)[^/]' \| \
1333          X"$0" : 'X\(//\)$' \| \
1334          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1335 echo X"$0" |
1336     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1337             s//\1/
1338             q
1339           }
1340           /^X\(\/\/\)[^/].*/{
1341             s//\1/
1342             q
1343           }
1344           /^X\(\/\/\)$/{
1345             s//\1/
1346             q
1347           }
1348           /^X\(\/\).*/{
1349             s//\1/
1350             q
1351           }
1352           s/.*/./; q'`
1353   srcdir=$ac_confdir
1354   if test ! -r "$srcdir/$ac_unique_file"; then
1355     srcdir=..
1356   fi
1357 else
1358   ac_srcdir_defaulted=no
1359 fi
1360 if test ! -r "$srcdir/$ac_unique_file"; then
1361   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1362   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1363    { (exit 1); exit 1; }; }
1364 fi
1365 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1366 ac_abs_confdir=`(
1367         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1368    { (exit 1); exit 1; }; }
1369         pwd)`
1370 # When building in place, set srcdir=.
1371 if test "$ac_abs_confdir" = "$ac_pwd"; then
1372   srcdir=.
1373 fi
1374 # Remove unnecessary trailing slashes from srcdir.
1375 # Double slashes in file names in object file debugging info
1376 # mess up M-x gdb in Emacs.
1377 case $srcdir in
1378 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1379 esac
1380 for ac_var in $ac_precious_vars; do
1381   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1382   eval ac_env_${ac_var}_value=\$${ac_var}
1383   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1384   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1385 done
1386
1387 #
1388 # Report the --help message.
1389 #
1390 if test "$ac_init_help" = "long"; then
1391   # Omit some internal or obsolete options to make the list less imposing.
1392   # This message is too long to be a string in the A/UX 3.1 sh.
1393   cat <<_ACEOF
1394 \`configure' configures this package to adapt to many kinds of systems.
1395
1396 Usage: $0 [OPTION]... [VAR=VALUE]...
1397
1398 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1399 VAR=VALUE.  See below for descriptions of some of the useful variables.
1400
1401 Defaults for the options are specified in brackets.
1402
1403 Configuration:
1404   -h, --help              display this help and exit
1405       --help=short        display options specific to this package
1406       --help=recursive    display the short help of all the included packages
1407   -V, --version           display version information and exit
1408   -q, --quiet, --silent   do not print \`checking...' messages
1409       --cache-file=FILE   cache test results in FILE [disabled]
1410   -C, --config-cache      alias for \`--cache-file=config.cache'
1411   -n, --no-create         do not create output files
1412       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1413
1414 Installation directories:
1415   --prefix=PREFIX         install architecture-independent files in PREFIX
1416                           [$ac_default_prefix]
1417   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1418                           [PREFIX]
1419
1420 By default, \`make install' will install all the files in
1421 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1422 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1423 for instance \`--prefix=\$HOME'.
1424
1425 For better control, use the options below.
1426
1427 Fine tuning of the installation directories:
1428   --bindir=DIR           user executables [EPREFIX/bin]
1429   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1430   --libexecdir=DIR       program executables [EPREFIX/libexec]
1431   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1432   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1433   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1434   --libdir=DIR           object code libraries [EPREFIX/lib]
1435   --includedir=DIR       C header files [PREFIX/include]
1436   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1437   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1438   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1439   --infodir=DIR          info documentation [DATAROOTDIR/info]
1440   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1441   --mandir=DIR           man documentation [DATAROOTDIR/man]
1442   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1443   --htmldir=DIR          html documentation [DOCDIR]
1444   --dvidir=DIR           dvi documentation [DOCDIR]
1445   --pdfdir=DIR           pdf documentation [DOCDIR]
1446   --psdir=DIR            ps documentation [DOCDIR]
1447 _ACEOF
1448
1449   cat <<\_ACEOF
1450
1451 X features:
1452   --x-includes=DIR    X include files are in DIR
1453   --x-libraries=DIR   X library files are in DIR
1454
1455 System types:
1456   --build=BUILD     configure for building on BUILD [guessed]
1457   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1458   --target=TARGET   configure for building compilers for TARGET [HOST]
1459 _ACEOF
1460 fi
1461
1462 if test -n "$ac_init_help"; then
1463
1464   cat <<\_ACEOF
1465
1466 Optional Features:
1467   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1468   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1469   --enable-shared[=PKGS]  build shared libraries [default=yes]
1470   --enable-static[=PKGS]  build static libraries [default=yes]
1471   --enable-fast-install[=PKGS]
1472                           optimize for fast installation [default=yes]
1473   --disable-libtool-lock  avoid locking (might break parallel builds)
1474   --enable-cmu-zwgcplus   enable CMU zwgcplus extensions
1475   --enable-cmu-zctl-punt  enable CMU zctl punt extensions
1476   --enable-cmu-hm-flush-restrict   enable CMU zctl hm flush restriction
1477   --enable-cmu-opstaff-locate-self enable CMU opstaff locate-self ability
1478
1479 Optional Packages:
1480   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1481   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1482   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1483   --with-pic              try to use only PIC/non-PIC objects [default=use
1484                           both]
1485   --with-tags[=TAGS]      include additional configurations [automatic]
1486   --with-x                use the X Window System
1487   --with-krb4=PREFIX      Use Kerberos 4
1488   --with-krb5=PREFIX      Use Kerberos 5
1489   --with-hesiod=PREFIX    Use Hesiod
1490   --with-regex=PREFIX     Use installed regex library
1491   --with-com_err=PREFIX   Specify location of com_err
1492   --with-ss=PREFIX        Specify location of ss (requires com_err)
1493
1494 Some influential environment variables:
1495   CC          C compiler command
1496   CFLAGS      C compiler flags
1497   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1498               nonstandard directory <lib dir>
1499   LIBS        libraries to pass to the linker, e.g. -l<library>
1500   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1501               you have headers in a nonstandard directory <include dir>
1502   YACC        The `Yet Another C Compiler' implementation to use. Defaults to
1503               the first program found out of: `bison -y', `byacc', `yacc'.
1504   YFLAGS      The list of arguments that will be passed by default to $YACC.
1505               This script will default YFLAGS to the empty string to avoid a
1506               default value of `-d' given by some make applications.
1507   CPP         C preprocessor
1508   CXX         C++ compiler command
1509   CXXFLAGS    C++ compiler flags
1510   CXXCPP      C++ preprocessor
1511   F77         Fortran 77 compiler command
1512   FFLAGS      Fortran 77 compiler flags
1513   XMKMF       Path to xmkmf, Makefile generator for X Window System
1514
1515 Use these variables to override the choices made by `configure' or to help
1516 it to find libraries and programs with nonstandard names/locations.
1517
1518 _ACEOF
1519 ac_status=$?
1520 fi
1521
1522 if test "$ac_init_help" = "recursive"; then
1523   # If there are subdirs, report their specific --help.
1524   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1525     test -d "$ac_dir" || continue
1526     ac_builddir=.
1527
1528 case "$ac_dir" in
1529 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1530 *)
1531   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1532   # A ".." for each directory in $ac_dir_suffix.
1533   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1534   case $ac_top_builddir_sub in
1535   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1536   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1537   esac ;;
1538 esac
1539 ac_abs_top_builddir=$ac_pwd
1540 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1541 # for backward compatibility:
1542 ac_top_builddir=$ac_top_build_prefix
1543
1544 case $srcdir in
1545   .)  # We are building in place.
1546     ac_srcdir=.
1547     ac_top_srcdir=$ac_top_builddir_sub
1548     ac_abs_top_srcdir=$ac_pwd ;;
1549   [\\/]* | ?:[\\/]* )  # Absolute name.
1550     ac_srcdir=$srcdir$ac_dir_suffix;
1551     ac_top_srcdir=$srcdir
1552     ac_abs_top_srcdir=$srcdir ;;
1553   *) # Relative name.
1554     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1555     ac_top_srcdir=$ac_top_build_prefix$srcdir
1556     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1557 esac
1558 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1559
1560     cd "$ac_dir" || { ac_status=$?; continue; }
1561     # Check for guested configure.
1562     if test -f "$ac_srcdir/configure.gnu"; then
1563       echo &&
1564       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1565     elif test -f "$ac_srcdir/configure"; then
1566       echo &&
1567       $SHELL "$ac_srcdir/configure" --help=recursive
1568     else
1569       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1570     fi || ac_status=$?
1571     cd "$ac_pwd" || { ac_status=$?; break; }
1572   done
1573 fi
1574
1575 test -n "$ac_init_help" && exit $ac_status
1576 if $ac_init_version; then
1577   cat <<\_ACEOF
1578 configure
1579 generated by GNU Autoconf 2.61
1580
1581 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1582 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1583 This configure script is free software; the Free Software Foundation
1584 gives unlimited permission to copy, distribute and modify it.
1585 _ACEOF
1586   exit
1587 fi
1588 cat >config.log <<_ACEOF
1589 This file contains any messages produced by compilers while
1590 running configure, to aid debugging if configure makes a mistake.
1591
1592 It was created by $as_me, which was
1593 generated by GNU Autoconf 2.61.  Invocation command line was
1594
1595   $ $0 $@
1596
1597 _ACEOF
1598 exec 5>>config.log
1599 {
1600 cat <<_ASUNAME
1601 ## --------- ##
1602 ## Platform. ##
1603 ## --------- ##
1604
1605 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1606 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1607 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1608 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1609 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1610
1611 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1612 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1613
1614 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1615 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1616 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1617 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1618 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1619 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1620 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1621
1622 _ASUNAME
1623
1624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1625 for as_dir in $PATH
1626 do
1627   IFS=$as_save_IFS
1628   test -z "$as_dir" && as_dir=.
1629   echo "PATH: $as_dir"
1630 done
1631 IFS=$as_save_IFS
1632
1633 } >&5
1634
1635 cat >&5 <<_ACEOF
1636
1637
1638 ## ----------- ##
1639 ## Core tests. ##
1640 ## ----------- ##
1641
1642 _ACEOF
1643
1644
1645 # Keep a trace of the command line.
1646 # Strip out --no-create and --no-recursion so they do not pile up.
1647 # Strip out --silent because we don't want to record it for future runs.
1648 # Also quote any args containing shell meta-characters.
1649 # Make two passes to allow for proper duplicate-argument suppression.
1650 ac_configure_args=
1651 ac_configure_args0=
1652 ac_configure_args1=
1653 ac_must_keep_next=false
1654 for ac_pass in 1 2
1655 do
1656   for ac_arg
1657   do
1658     case $ac_arg in
1659     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1660     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1661     | -silent | --silent | --silen | --sile | --sil)
1662       continue ;;
1663     *\'*)
1664       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1665     esac
1666     case $ac_pass in
1667     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1668     2)
1669       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1670       if test $ac_must_keep_next = true; then
1671         ac_must_keep_next=false # Got value, back to normal.
1672       else
1673         case $ac_arg in
1674           *=* | --config-cache | -C | -disable-* | --disable-* \
1675           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1676           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1677           | -with-* | --with-* | -without-* | --without-* | --x)
1678             case "$ac_configure_args0 " in
1679               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1680             esac
1681             ;;
1682           -* ) ac_must_keep_next=true ;;
1683         esac
1684       fi
1685       ac_configure_args="$ac_configure_args '$ac_arg'"
1686       ;;
1687     esac
1688   done
1689 done
1690 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1691 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1692
1693 # When interrupted or exit'd, cleanup temporary files, and complete
1694 # config.log.  We remove comments because anyway the quotes in there
1695 # would cause problems or look ugly.
1696 # WARNING: Use '\'' to represent an apostrophe within the trap.
1697 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1698 trap 'exit_status=$?
1699   # Save into config.log some information that might help in debugging.
1700   {
1701     echo
1702
1703     cat <<\_ASBOX
1704 ## ---------------- ##
1705 ## Cache variables. ##
1706 ## ---------------- ##
1707 _ASBOX
1708     echo
1709     # The following way of writing the cache mishandles newlines in values,
1710 (
1711   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1712     eval ac_val=\$$ac_var
1713     case $ac_val in #(
1714     *${as_nl}*)
1715       case $ac_var in #(
1716       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1717 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1718       esac
1719       case $ac_var in #(
1720       _ | IFS | as_nl) ;; #(
1721       *) $as_unset $ac_var ;;
1722       esac ;;
1723     esac
1724   done
1725   (set) 2>&1 |
1726     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1727     *${as_nl}ac_space=\ *)
1728       sed -n \
1729         "s/'\''/'\''\\\\'\'''\''/g;
1730           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1731       ;; #(
1732     *)
1733       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1734       ;;
1735     esac |
1736     sort
1737 )
1738     echo
1739
1740     cat <<\_ASBOX
1741 ## ----------------- ##
1742 ## Output variables. ##
1743 ## ----------------- ##
1744 _ASBOX
1745     echo
1746     for ac_var in $ac_subst_vars
1747     do
1748       eval ac_val=\$$ac_var
1749       case $ac_val in
1750       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1751       esac
1752       echo "$ac_var='\''$ac_val'\''"
1753     done | sort
1754     echo
1755
1756     if test -n "$ac_subst_files"; then
1757       cat <<\_ASBOX
1758 ## ------------------- ##
1759 ## File substitutions. ##
1760 ## ------------------- ##
1761 _ASBOX
1762       echo
1763       for ac_var in $ac_subst_files
1764       do
1765         eval ac_val=\$$ac_var
1766         case $ac_val in
1767         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1768         esac
1769         echo "$ac_var='\''$ac_val'\''"
1770       done | sort
1771       echo
1772     fi
1773
1774     if test -s confdefs.h; then
1775       cat <<\_ASBOX
1776 ## ----------- ##
1777 ## confdefs.h. ##
1778 ## ----------- ##
1779 _ASBOX
1780       echo
1781       cat confdefs.h
1782       echo
1783     fi
1784     test "$ac_signal" != 0 &&
1785       echo "$as_me: caught signal $ac_signal"
1786     echo "$as_me: exit $exit_status"
1787   } >&5
1788   rm -f core *.core core.conftest.* &&
1789     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1790     exit $exit_status
1791 ' 0
1792 for ac_signal in 1 2 13 15; do
1793   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1794 done
1795 ac_signal=0
1796
1797 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1798 rm -f -r conftest* confdefs.h
1799
1800 # Predefined preprocessor variables.
1801
1802 cat >>confdefs.h <<_ACEOF
1803 #define PACKAGE_NAME "$PACKAGE_NAME"
1804 _ACEOF
1805
1806
1807 cat >>confdefs.h <<_ACEOF
1808 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1809 _ACEOF
1810
1811
1812 cat >>confdefs.h <<_ACEOF
1813 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1814 _ACEOF
1815
1816
1817 cat >>confdefs.h <<_ACEOF
1818 #define PACKAGE_STRING "$PACKAGE_STRING"
1819 _ACEOF
1820
1821
1822 cat >>confdefs.h <<_ACEOF
1823 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1824 _ACEOF
1825
1826
1827 # Let the site file select an alternate cache file if it wants to.
1828 # Prefer explicitly selected file to automatically selected ones.
1829 if test -n "$CONFIG_SITE"; then
1830   set x "$CONFIG_SITE"
1831 elif test "x$prefix" != xNONE; then
1832   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1833 else
1834   set x "$ac_default_prefix/share/config.site" \
1835         "$ac_default_prefix/etc/config.site"
1836 fi
1837 shift
1838 for ac_site_file
1839 do
1840   if test -r "$ac_site_file"; then
1841     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1842 echo "$as_me: loading site script $ac_site_file" >&6;}
1843     sed 's/^/| /' "$ac_site_file" >&5
1844     . "$ac_site_file"
1845   fi
1846 done
1847
1848 if test -r "$cache_file"; then
1849   # Some versions of bash will fail to source /dev/null (special
1850   # files actually), so we avoid doing that.
1851   if test -f "$cache_file"; then
1852     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1853 echo "$as_me: loading cache $cache_file" >&6;}
1854     case $cache_file in
1855       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1856       *)                      . "./$cache_file";;
1857     esac
1858   fi
1859 else
1860   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1861 echo "$as_me: creating cache $cache_file" >&6;}
1862   >$cache_file
1863 fi
1864
1865 # Check that the precious variables saved in the cache have kept the same
1866 # value.
1867 ac_cache_corrupted=false
1868 for ac_var in $ac_precious_vars; do
1869   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1870   eval ac_new_set=\$ac_env_${ac_var}_set
1871   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1872   eval ac_new_val=\$ac_env_${ac_var}_value
1873   case $ac_old_set,$ac_new_set in
1874     set,)
1875       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1876 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1877       ac_cache_corrupted=: ;;
1878     ,set)
1879       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1880 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1881       ac_cache_corrupted=: ;;
1882     ,);;
1883     *)
1884       if test "x$ac_old_val" != "x$ac_new_val"; then
1885         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1886 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1887         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1888 echo "$as_me:   former value:  $ac_old_val" >&2;}
1889         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1890 echo "$as_me:   current value: $ac_new_val" >&2;}
1891         ac_cache_corrupted=:
1892       fi;;
1893   esac
1894   # Pass precious variables to config.status.
1895   if test "$ac_new_set" = set; then
1896     case $ac_new_val in
1897     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1898     *) ac_arg=$ac_var=$ac_new_val ;;
1899     esac
1900     case " $ac_configure_args " in
1901       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1902       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1903     esac
1904   fi
1905 done
1906 if $ac_cache_corrupted; then
1907   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1908 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1909   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1910 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1911    { (exit 1); exit 1; }; }
1912 fi
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930 ac_ext=c
1931 ac_cpp='$CPP $CPPFLAGS'
1932 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1933 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1934 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1935
1936
1937
1938 test -d h || mkdir h
1939 test -d h/zephyr || mkdir h/zephyr
1940
1941 test -z "$lbindir" && lbindir='${bindir}'
1942 test -z "$lsbindir" && lsbindir='${sbindir}'
1943
1944
1945
1946 ac_aux_dir=
1947 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1948   if test -f "$ac_dir/install-sh"; then
1949     ac_aux_dir=$ac_dir
1950     ac_install_sh="$ac_aux_dir/install-sh -c"
1951     break
1952   elif test -f "$ac_dir/install.sh"; then
1953     ac_aux_dir=$ac_dir
1954     ac_install_sh="$ac_aux_dir/install.sh -c"
1955     break
1956   elif test -f "$ac_dir/shtool"; then
1957     ac_aux_dir=$ac_dir
1958     ac_install_sh="$ac_aux_dir/shtool install -c"
1959     break
1960   fi
1961 done
1962 if test -z "$ac_aux_dir"; then
1963   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1964 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1965    { (exit 1); exit 1; }; }
1966 fi
1967
1968 # These three variables are undocumented and unsupported,
1969 # and are intended to be withdrawn in a future Autoconf release.
1970 # They can cause serious problems if a builder's source tree is in a directory
1971 # whose full name contains unusual characters.
1972 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1973 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1974 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1975
1976
1977 # Make sure we can run config.sub.
1978 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1979   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1980 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1981    { (exit 1); exit 1; }; }
1982
1983 { echo "$as_me:$LINENO: checking build system type" >&5
1984 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1985 if test "${ac_cv_build+set}" = set; then
1986   echo $ECHO_N "(cached) $ECHO_C" >&6
1987 else
1988   ac_build_alias=$build_alias
1989 test "x$ac_build_alias" = x &&
1990   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1991 test "x$ac_build_alias" = x &&
1992   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1993 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1994    { (exit 1); exit 1; }; }
1995 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1996   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1997 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1998    { (exit 1); exit 1; }; }
1999
2000 fi
2001 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2002 echo "${ECHO_T}$ac_cv_build" >&6; }
2003 case $ac_cv_build in
2004 *-*-*) ;;
2005 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2006 echo "$as_me: error: invalid value of canonical build" >&2;}
2007    { (exit 1); exit 1; }; };;
2008 esac
2009 build=$ac_cv_build
2010 ac_save_IFS=$IFS; IFS='-'
2011 set x $ac_cv_build
2012 shift
2013 build_cpu=$1
2014 build_vendor=$2
2015 shift; shift
2016 # Remember, the first character of IFS is used to create $*,
2017 # except with old shells:
2018 build_os=$*
2019 IFS=$ac_save_IFS
2020 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2021
2022
2023 { echo "$as_me:$LINENO: checking host system type" >&5
2024 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2025 if test "${ac_cv_host+set}" = set; then
2026   echo $ECHO_N "(cached) $ECHO_C" >&6
2027 else
2028   if test "x$host_alias" = x; then
2029   ac_cv_host=$ac_cv_build
2030 else
2031   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2032     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2033 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2034    { (exit 1); exit 1; }; }
2035 fi
2036
2037 fi
2038 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2039 echo "${ECHO_T}$ac_cv_host" >&6; }
2040 case $ac_cv_host in
2041 *-*-*) ;;
2042 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2043 echo "$as_me: error: invalid value of canonical host" >&2;}
2044    { (exit 1); exit 1; }; };;
2045 esac
2046 host=$ac_cv_host
2047 ac_save_IFS=$IFS; IFS='-'
2048 set x $ac_cv_host
2049 shift
2050 host_cpu=$1
2051 host_vendor=$2
2052 shift; shift
2053 # Remember, the first character of IFS is used to create $*,
2054 # except with old shells:
2055 host_os=$*
2056 IFS=$ac_save_IFS
2057 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2058
2059
2060 { echo "$as_me:$LINENO: checking target system type" >&5
2061 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2062 if test "${ac_cv_target+set}" = set; then
2063   echo $ECHO_N "(cached) $ECHO_C" >&6
2064 else
2065   if test "x$target_alias" = x; then
2066   ac_cv_target=$ac_cv_host
2067 else
2068   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2069     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2070 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2071    { (exit 1); exit 1; }; }
2072 fi
2073
2074 fi
2075 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2076 echo "${ECHO_T}$ac_cv_target" >&6; }
2077 case $ac_cv_target in
2078 *-*-*) ;;
2079 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2080 echo "$as_me: error: invalid value of canonical target" >&2;}
2081    { (exit 1); exit 1; }; };;
2082 esac
2083 target=$ac_cv_target
2084 ac_save_IFS=$IFS; IFS='-'
2085 set x $ac_cv_target
2086 shift
2087 target_cpu=$1
2088 target_vendor=$2
2089 shift; shift
2090 # Remember, the first character of IFS is used to create $*,
2091 # except with old shells:
2092 target_os=$*
2093 IFS=$ac_save_IFS
2094 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2095
2096
2097 # The aliases save the names the user supplied, while $host etc.
2098 # will get canonicalized.
2099 test -n "$target_alias" &&
2100   test "$program_prefix$program_suffix$program_transform_name" = \
2101     NONENONEs,x,x, &&
2102   program_prefix=${target_alias}-
2103 { echo "$as_me:$LINENO: checking target system type" >&5
2104 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2105 if test "${ac_cv_target+set}" = set; then
2106   echo $ECHO_N "(cached) $ECHO_C" >&6
2107 else
2108   if test "x$target_alias" = x; then
2109   ac_cv_target=$ac_cv_host
2110 else
2111   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2112     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2113 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2114    { (exit 1); exit 1; }; }
2115 fi
2116
2117 fi
2118 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2119 echo "${ECHO_T}$ac_cv_target" >&6; }
2120 case $ac_cv_target in
2121 *-*-*) ;;
2122 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2123 echo "$as_me: error: invalid value of canonical target" >&2;}
2124    { (exit 1); exit 1; }; };;
2125 esac
2126 target=$ac_cv_target
2127 ac_save_IFS=$IFS; IFS='-'
2128 set x $ac_cv_target
2129 shift
2130 target_cpu=$1
2131 target_vendor=$2
2132 shift; shift
2133 # Remember, the first character of IFS is used to create $*,
2134 # except with old shells:
2135 target_os=$*
2136 IFS=$ac_save_IFS
2137 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2138
2139
2140 # The aliases save the names the user supplied, while $host etc.
2141 # will get canonicalized.
2142 test -n "$target_alias" &&
2143   test "$program_prefix$program_suffix$program_transform_name" = \
2144     NONENONEs,x,x, &&
2145   program_prefix=${target_alias}-
2146 cat >>confdefs.h <<_ACEOF
2147 #define MACHINE_TYPE "$host"
2148 _ACEOF
2149
2150
2151 ac_ext=c
2152 ac_cpp='$CPP $CPPFLAGS'
2153 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2154 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2155 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2156 if test -n "$ac_tool_prefix"; then
2157   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2158 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2159 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2160 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2161 if test "${ac_cv_prog_CC+set}" = set; then
2162   echo $ECHO_N "(cached) $ECHO_C" >&6
2163 else
2164   if test -n "$CC"; then
2165   ac_cv_prog_CC="$CC" # Let the user override the test.
2166 else
2167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2168 for as_dir in $PATH
2169 do
2170   IFS=$as_save_IFS
2171   test -z "$as_dir" && as_dir=.
2172   for ac_exec_ext in '' $ac_executable_extensions; do
2173   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2174     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2175     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2176     break 2
2177   fi
2178 done
2179 done
2180 IFS=$as_save_IFS
2181
2182 fi
2183 fi
2184 CC=$ac_cv_prog_CC
2185 if test -n "$CC"; then
2186   { echo "$as_me:$LINENO: result: $CC" >&5
2187 echo "${ECHO_T}$CC" >&6; }
2188 else
2189   { echo "$as_me:$LINENO: result: no" >&5
2190 echo "${ECHO_T}no" >&6; }
2191 fi
2192
2193
2194 fi
2195 if test -z "$ac_cv_prog_CC"; then
2196   ac_ct_CC=$CC
2197   # Extract the first word of "gcc", so it can be a program name with args.
2198 set dummy gcc; ac_word=$2
2199 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2200 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2201 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2202   echo $ECHO_N "(cached) $ECHO_C" >&6
2203 else
2204   if test -n "$ac_ct_CC"; then
2205   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2206 else
2207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2208 for as_dir in $PATH
2209 do
2210   IFS=$as_save_IFS
2211   test -z "$as_dir" && as_dir=.
2212   for ac_exec_ext in '' $ac_executable_extensions; do
2213   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2214     ac_cv_prog_ac_ct_CC="gcc"
2215     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2216     break 2
2217   fi
2218 done
2219 done
2220 IFS=$as_save_IFS
2221
2222 fi
2223 fi
2224 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2225 if test -n "$ac_ct_CC"; then
2226   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2227 echo "${ECHO_T}$ac_ct_CC" >&6; }
2228 else
2229   { echo "$as_me:$LINENO: result: no" >&5
2230 echo "${ECHO_T}no" >&6; }
2231 fi
2232
2233   if test "x$ac_ct_CC" = x; then
2234     CC=""
2235   else
2236     case $cross_compiling:$ac_tool_warned in
2237 yes:)
2238 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2239 whose name does not start with the host triplet.  If you think this
2240 configuration is useful to you, please write to autoconf@gnu.org." >&5
2241 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2242 whose name does not start with the host triplet.  If you think this
2243 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2244 ac_tool_warned=yes ;;
2245 esac
2246     CC=$ac_ct_CC
2247   fi
2248 else
2249   CC="$ac_cv_prog_CC"
2250 fi
2251
2252 if test -z "$CC"; then
2253           if test -n "$ac_tool_prefix"; then
2254     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2255 set dummy ${ac_tool_prefix}cc; ac_word=$2
2256 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2257 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2258 if test "${ac_cv_prog_CC+set}" = set; then
2259   echo $ECHO_N "(cached) $ECHO_C" >&6
2260 else
2261   if test -n "$CC"; then
2262   ac_cv_prog_CC="$CC" # Let the user override the test.
2263 else
2264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2265 for as_dir in $PATH
2266 do
2267   IFS=$as_save_IFS
2268   test -z "$as_dir" && as_dir=.
2269   for ac_exec_ext in '' $ac_executable_extensions; do
2270   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2271     ac_cv_prog_CC="${ac_tool_prefix}cc"
2272     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2273     break 2
2274   fi
2275 done
2276 done
2277 IFS=$as_save_IFS
2278
2279 fi
2280 fi
2281 CC=$ac_cv_prog_CC
2282 if test -n "$CC"; then
2283   { echo "$as_me:$LINENO: result: $CC" >&5
2284 echo "${ECHO_T}$CC" >&6; }
2285 else
2286   { echo "$as_me:$LINENO: result: no" >&5
2287 echo "${ECHO_T}no" >&6; }
2288 fi
2289
2290
2291   fi
2292 fi
2293 if test -z "$CC"; then
2294   # Extract the first word of "cc", so it can be a program name with args.
2295 set dummy cc; ac_word=$2
2296 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2298 if test "${ac_cv_prog_CC+set}" = set; then
2299   echo $ECHO_N "(cached) $ECHO_C" >&6
2300 else
2301   if test -n "$CC"; then
2302   ac_cv_prog_CC="$CC" # Let the user override the test.
2303 else
2304   ac_prog_rejected=no
2305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2306 for as_dir in $PATH
2307 do
2308   IFS=$as_save_IFS
2309   test -z "$as_dir" && as_dir=.
2310   for ac_exec_ext in '' $ac_executable_extensions; do
2311   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2312     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2313        ac_prog_rejected=yes
2314        continue
2315      fi
2316     ac_cv_prog_CC="cc"
2317     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2318     break 2
2319   fi
2320 done
2321 done
2322 IFS=$as_save_IFS
2323
2324 if test $ac_prog_rejected = yes; then
2325   # We found a bogon in the path, so make sure we never use it.
2326   set dummy $ac_cv_prog_CC
2327   shift
2328   if test $# != 0; then
2329     # We chose a different compiler from the bogus one.
2330     # However, it has the same basename, so the bogon will be chosen
2331     # first if we set CC to just the basename; use the full file name.
2332     shift
2333     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2334   fi
2335 fi
2336 fi
2337 fi
2338 CC=$ac_cv_prog_CC
2339 if test -n "$CC"; then
2340   { echo "$as_me:$LINENO: result: $CC" >&5
2341 echo "${ECHO_T}$CC" >&6; }
2342 else
2343   { echo "$as_me:$LINENO: result: no" >&5
2344 echo "${ECHO_T}no" >&6; }
2345 fi
2346
2347
2348 fi
2349 if test -z "$CC"; then
2350   if test -n "$ac_tool_prefix"; then
2351   for ac_prog in cl.exe
2352   do
2353     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2354 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2355 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2356 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2357 if test "${ac_cv_prog_CC+set}" = set; then
2358   echo $ECHO_N "(cached) $ECHO_C" >&6
2359 else
2360   if test -n "$CC"; then
2361   ac_cv_prog_CC="$CC" # Let the user override the test.
2362 else
2363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2364 for as_dir in $PATH
2365 do
2366   IFS=$as_save_IFS
2367   test -z "$as_dir" && as_dir=.
2368   for ac_exec_ext in '' $ac_executable_extensions; do
2369   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2370     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2371     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2372     break 2
2373   fi
2374 done
2375 done
2376 IFS=$as_save_IFS
2377
2378 fi
2379 fi
2380 CC=$ac_cv_prog_CC
2381 if test -n "$CC"; then
2382   { echo "$as_me:$LINENO: result: $CC" >&5
2383 echo "${ECHO_T}$CC" >&6; }
2384 else
2385   { echo "$as_me:$LINENO: result: no" >&5
2386 echo "${ECHO_T}no" >&6; }
2387 fi
2388
2389
2390     test -n "$CC" && break
2391   done
2392 fi
2393 if test -z "$CC"; then
2394   ac_ct_CC=$CC
2395   for ac_prog in cl.exe
2396 do
2397   # Extract the first word of "$ac_prog", so it can be a program name with args.
2398 set dummy $ac_prog; ac_word=$2
2399 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2400 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2401 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2402   echo $ECHO_N "(cached) $ECHO_C" >&6
2403 else
2404   if test -n "$ac_ct_CC"; then
2405   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2406 else
2407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2408 for as_dir in $PATH
2409 do
2410   IFS=$as_save_IFS
2411   test -z "$as_dir" && as_dir=.
2412   for ac_exec_ext in '' $ac_executable_extensions; do
2413   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2414     ac_cv_prog_ac_ct_CC="$ac_prog"
2415     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2416     break 2
2417   fi
2418 done
2419 done
2420 IFS=$as_save_IFS
2421
2422 fi
2423 fi
2424 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2425 if test -n "$ac_ct_CC"; then
2426   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2427 echo "${ECHO_T}$ac_ct_CC" >&6; }
2428 else
2429   { echo "$as_me:$LINENO: result: no" >&5
2430 echo "${ECHO_T}no" >&6; }
2431 fi
2432
2433
2434   test -n "$ac_ct_CC" && break
2435 done
2436
2437   if test "x$ac_ct_CC" = x; then
2438     CC=""
2439   else
2440     case $cross_compiling:$ac_tool_warned in
2441 yes:)
2442 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2443 whose name does not start with the host triplet.  If you think this
2444 configuration is useful to you, please write to autoconf@gnu.org." >&5
2445 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2446 whose name does not start with the host triplet.  If you think this
2447 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2448 ac_tool_warned=yes ;;
2449 esac
2450     CC=$ac_ct_CC
2451   fi
2452 fi
2453
2454 fi
2455
2456
2457 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2458 See \`config.log' for more details." >&5
2459 echo "$as_me: error: no acceptable C compiler found in \$PATH
2460 See \`config.log' for more details." >&2;}
2461    { (exit 1); exit 1; }; }
2462
2463 # Provide some information about the compiler.
2464 echo "$as_me:$LINENO: checking for C compiler version" >&5
2465 ac_compiler=`set X $ac_compile; echo $2`
2466 { (ac_try="$ac_compiler --version >&5"
2467 case "(($ac_try" in
2468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2469   *) ac_try_echo=$ac_try;;
2470 esac
2471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2472   (eval "$ac_compiler --version >&5") 2>&5
2473   ac_status=$?
2474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2475   (exit $ac_status); }
2476 { (ac_try="$ac_compiler -v >&5"
2477 case "(($ac_try" in
2478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2479   *) ac_try_echo=$ac_try;;
2480 esac
2481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2482   (eval "$ac_compiler -v >&5") 2>&5
2483   ac_status=$?
2484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2485   (exit $ac_status); }
2486 { (ac_try="$ac_compiler -V >&5"
2487 case "(($ac_try" in
2488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2489   *) ac_try_echo=$ac_try;;
2490 esac
2491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2492   (eval "$ac_compiler -V >&5") 2>&5
2493   ac_status=$?
2494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2495   (exit $ac_status); }
2496
2497 cat >conftest.$ac_ext <<_ACEOF
2498 /* confdefs.h.  */
2499 _ACEOF
2500 cat confdefs.h >>conftest.$ac_ext
2501 cat >>conftest.$ac_ext <<_ACEOF
2502 /* end confdefs.h.  */
2503
2504 int
2505 main ()
2506 {
2507
2508   ;
2509   return 0;
2510 }
2511 _ACEOF
2512 ac_clean_files_save=$ac_clean_files
2513 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2514 # Try to create an executable without -o first, disregard a.out.
2515 # It will help us diagnose broken compilers, and finding out an intuition
2516 # of exeext.
2517 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2518 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2519 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2520 #
2521 # List of possible output files, starting from the most likely.
2522 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2523 # only as a last resort.  b.out is created by i960 compilers.
2524 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2525 #
2526 # The IRIX 6 linker writes into existing files which may not be
2527 # executable, retaining their permissions.  Remove them first so a
2528 # subsequent execution test works.
2529 ac_rmfiles=
2530 for ac_file in $ac_files
2531 do
2532   case $ac_file in
2533     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2534     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2535   esac
2536 done
2537 rm -f $ac_rmfiles
2538
2539 if { (ac_try="$ac_link_default"
2540 case "(($ac_try" in
2541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2542   *) ac_try_echo=$ac_try;;
2543 esac
2544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2545   (eval "$ac_link_default") 2>&5
2546   ac_status=$?
2547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548   (exit $ac_status); }; then
2549   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2550 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2551 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2552 # so that the user can short-circuit this test for compilers unknown to
2553 # Autoconf.
2554 for ac_file in $ac_files ''
2555 do
2556   test -f "$ac_file" || continue
2557   case $ac_file in
2558     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2559         ;;
2560     [ab].out )
2561         # We found the default executable, but exeext='' is most
2562         # certainly right.
2563         break;;
2564     *.* )
2565         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2566         then :; else
2567            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2568         fi
2569         # We set ac_cv_exeext here because the later test for it is not
2570         # safe: cross compilers may not add the suffix if given an `-o'
2571         # argument, so we may need to know it at that point already.
2572         # Even if this section looks crufty: it has the advantage of
2573         # actually working.
2574         break;;
2575     * )
2576         break;;
2577   esac
2578 done
2579 test "$ac_cv_exeext" = no && ac_cv_exeext=
2580
2581 else
2582   ac_file=''
2583 fi
2584
2585 { echo "$as_me:$LINENO: result: $ac_file" >&5
2586 echo "${ECHO_T}$ac_file" >&6; }
2587 if test -z "$ac_file"; then
2588   echo "$as_me: failed program was:" >&5
2589 sed 's/^/| /' conftest.$ac_ext >&5
2590
2591 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2592 See \`config.log' for more details." >&5
2593 echo "$as_me: error: C compiler cannot create executables
2594 See \`config.log' for more details." >&2;}
2595    { (exit 77); exit 77; }; }
2596 fi
2597
2598 ac_exeext=$ac_cv_exeext
2599
2600 # Check that the compiler produces executables we can run.  If not, either
2601 # the compiler is broken, or we cross compile.
2602 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2603 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2604 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2605 # If not cross compiling, check that we can run a simple program.
2606 if test "$cross_compiling" != yes; then
2607   if { ac_try='./$ac_file'
2608   { (case "(($ac_try" in
2609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2610   *) ac_try_echo=$ac_try;;
2611 esac
2612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2613   (eval "$ac_try") 2>&5
2614   ac_status=$?
2615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2616   (exit $ac_status); }; }; then
2617     cross_compiling=no
2618   else
2619     if test "$cross_compiling" = maybe; then
2620         cross_compiling=yes
2621     else
2622         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2623 If you meant to cross compile, use \`--host'.
2624 See \`config.log' for more details." >&5
2625 echo "$as_me: error: cannot run C compiled programs.
2626 If you meant to cross compile, use \`--host'.
2627 See \`config.log' for more details." >&2;}
2628    { (exit 1); exit 1; }; }
2629     fi
2630   fi
2631 fi
2632 { echo "$as_me:$LINENO: result: yes" >&5
2633 echo "${ECHO_T}yes" >&6; }
2634
2635 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2636 ac_clean_files=$ac_clean_files_save
2637 # Check that the compiler produces executables we can run.  If not, either
2638 # the compiler is broken, or we cross compile.
2639 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2640 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2641 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2642 echo "${ECHO_T}$cross_compiling" >&6; }
2643
2644 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2645 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2646 if { (ac_try="$ac_link"
2647 case "(($ac_try" in
2648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2649   *) ac_try_echo=$ac_try;;
2650 esac
2651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2652   (eval "$ac_link") 2>&5
2653   ac_status=$?
2654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2655   (exit $ac_status); }; then
2656   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2657 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2658 # work properly (i.e., refer to `conftest.exe'), while it won't with
2659 # `rm'.
2660 for ac_file in conftest.exe conftest conftest.*; do
2661   test -f "$ac_file" || continue
2662   case $ac_file in
2663     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2664     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2665           break;;
2666     * ) break;;
2667   esac
2668 done
2669 else
2670   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2671 See \`config.log' for more details." >&5
2672 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2673 See \`config.log' for more details." >&2;}
2674    { (exit 1); exit 1; }; }
2675 fi
2676
2677 rm -f conftest$ac_cv_exeext
2678 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2679 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2680
2681 rm -f conftest.$ac_ext
2682 EXEEXT=$ac_cv_exeext
2683 ac_exeext=$EXEEXT
2684 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2685 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2686 if test "${ac_cv_objext+set}" = set; then
2687   echo $ECHO_N "(cached) $ECHO_C" >&6
2688 else
2689   cat >conftest.$ac_ext <<_ACEOF
2690 /* confdefs.h.  */
2691 _ACEOF
2692 cat confdefs.h >>conftest.$ac_ext
2693 cat >>conftest.$ac_ext <<_ACEOF
2694 /* end confdefs.h.  */
2695
2696 int
2697 main ()
2698 {
2699
2700   ;
2701   return 0;
2702 }
2703 _ACEOF
2704 rm -f conftest.o conftest.obj
2705 if { (ac_try="$ac_compile"
2706 case "(($ac_try" in
2707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2708   *) ac_try_echo=$ac_try;;
2709 esac
2710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2711   (eval "$ac_compile") 2>&5
2712   ac_status=$?
2713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2714   (exit $ac_status); }; then
2715   for ac_file in conftest.o conftest.obj conftest.*; do
2716   test -f "$ac_file" || continue;
2717   case $ac_file in
2718     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2719     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2720        break;;
2721   esac
2722 done
2723 else
2724   echo "$as_me: failed program was:" >&5
2725 sed 's/^/| /' conftest.$ac_ext >&5
2726
2727 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2728 See \`config.log' for more details." >&5
2729 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2730 See \`config.log' for more details." >&2;}
2731    { (exit 1); exit 1; }; }
2732 fi
2733
2734 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2735 fi
2736 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2737 echo "${ECHO_T}$ac_cv_objext" >&6; }
2738 OBJEXT=$ac_cv_objext
2739 ac_objext=$OBJEXT
2740 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2741 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2742 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2743   echo $ECHO_N "(cached) $ECHO_C" >&6
2744 else
2745   cat >conftest.$ac_ext <<_ACEOF
2746 /* confdefs.h.  */
2747 _ACEOF
2748 cat confdefs.h >>conftest.$ac_ext
2749 cat >>conftest.$ac_ext <<_ACEOF
2750 /* end confdefs.h.  */
2751
2752 int
2753 main ()
2754 {
2755 #ifndef __GNUC__
2756        choke me
2757 #endif
2758
2759   ;
2760   return 0;
2761 }
2762 _ACEOF
2763 rm -f conftest.$ac_objext
2764 if { (ac_try="$ac_compile"
2765 case "(($ac_try" in
2766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2767   *) ac_try_echo=$ac_try;;
2768 esac
2769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2770   (eval "$ac_compile") 2>conftest.er1
2771   ac_status=$?
2772   grep -v '^ *+' conftest.er1 >conftest.err
2773   rm -f conftest.er1
2774   cat conftest.err >&5
2775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2776   (exit $ac_status); } && {
2777          test -z "$ac_c_werror_flag" ||
2778          test ! -s conftest.err
2779        } && test -s conftest.$ac_objext; then
2780   ac_compiler_gnu=yes
2781 else
2782   echo "$as_me: failed program was:" >&5
2783 sed 's/^/| /' conftest.$ac_ext >&5
2784
2785         ac_compiler_gnu=no
2786 fi
2787
2788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2789 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2790
2791 fi
2792 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2793 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2794 GCC=`test $ac_compiler_gnu = yes && echo yes`
2795 ac_test_CFLAGS=${CFLAGS+set}
2796 ac_save_CFLAGS=$CFLAGS
2797 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2798 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2799 if test "${ac_cv_prog_cc_g+set}" = set; then
2800   echo $ECHO_N "(cached) $ECHO_C" >&6
2801 else
2802   ac_save_c_werror_flag=$ac_c_werror_flag
2803    ac_c_werror_flag=yes
2804    ac_cv_prog_cc_g=no
2805    CFLAGS="-g"
2806    cat >conftest.$ac_ext <<_ACEOF
2807 /* confdefs.h.  */
2808 _ACEOF
2809 cat confdefs.h >>conftest.$ac_ext
2810 cat >>conftest.$ac_ext <<_ACEOF
2811 /* end confdefs.h.  */
2812
2813 int
2814 main ()
2815 {
2816
2817   ;
2818   return 0;
2819 }
2820 _ACEOF
2821 rm -f conftest.$ac_objext
2822 if { (ac_try="$ac_compile"
2823 case "(($ac_try" in
2824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2825   *) ac_try_echo=$ac_try;;
2826 esac
2827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2828   (eval "$ac_compile") 2>conftest.er1
2829   ac_status=$?
2830   grep -v '^ *+' conftest.er1 >conftest.err
2831   rm -f conftest.er1
2832   cat conftest.err >&5
2833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2834   (exit $ac_status); } && {
2835          test -z "$ac_c_werror_flag" ||
2836          test ! -s conftest.err
2837        } && test -s conftest.$ac_objext; then
2838   ac_cv_prog_cc_g=yes
2839 else
2840   echo "$as_me: failed program was:" >&5
2841 sed 's/^/| /' conftest.$ac_ext >&5
2842
2843         CFLAGS=""
2844       cat >conftest.$ac_ext <<_ACEOF
2845 /* confdefs.h.  */
2846 _ACEOF
2847 cat confdefs.h >>conftest.$ac_ext
2848 cat >>conftest.$ac_ext <<_ACEOF
2849 /* end confdefs.h.  */
2850
2851 int
2852 main ()
2853 {
2854
2855   ;
2856   return 0;
2857 }
2858 _ACEOF
2859 rm -f conftest.$ac_objext
2860 if { (ac_try="$ac_compile"
2861 case "(($ac_try" in
2862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2863   *) ac_try_echo=$ac_try;;
2864 esac
2865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2866   (eval "$ac_compile") 2>conftest.er1
2867   ac_status=$?
2868   grep -v '^ *+' conftest.er1 >conftest.err
2869   rm -f conftest.er1
2870   cat conftest.err >&5
2871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2872   (exit $ac_status); } && {
2873          test -z "$ac_c_werror_flag" ||
2874          test ! -s conftest.err
2875        } && test -s conftest.$ac_objext; then
2876   :
2877 else
2878   echo "$as_me: failed program was:" >&5
2879 sed 's/^/| /' conftest.$ac_ext >&5
2880
2881         ac_c_werror_flag=$ac_save_c_werror_flag
2882          CFLAGS="-g"
2883          cat >conftest.$ac_ext <<_ACEOF
2884 /* confdefs.h.  */
2885 _ACEOF
2886 cat confdefs.h >>conftest.$ac_ext
2887 cat >>conftest.$ac_ext <<_ACEOF
2888 /* end confdefs.h.  */
2889
2890 int
2891 main ()
2892 {
2893
2894   ;
2895   return 0;
2896 }
2897 _ACEOF
2898 rm -f conftest.$ac_objext
2899 if { (ac_try="$ac_compile"
2900 case "(($ac_try" in
2901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2902   *) ac_try_echo=$ac_try;;
2903 esac
2904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2905   (eval "$ac_compile") 2>conftest.er1
2906   ac_status=$?
2907   grep -v '^ *+' conftest.er1 >conftest.err
2908   rm -f conftest.er1
2909   cat conftest.err >&5
2910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911   (exit $ac_status); } && {
2912          test -z "$ac_c_werror_flag" ||
2913          test ! -s conftest.err
2914        } && test -s conftest.$ac_objext; then
2915   ac_cv_prog_cc_g=yes
2916 else
2917   echo "$as_me: failed program was:" >&5
2918 sed 's/^/| /' conftest.$ac_ext >&5
2919
2920
2921 fi
2922
2923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2924 fi
2925
2926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2927 fi
2928
2929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2930    ac_c_werror_flag=$ac_save_c_werror_flag
2931 fi
2932 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2933 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2934 if test "$ac_test_CFLAGS" = set; then
2935   CFLAGS=$ac_save_CFLAGS
2936 elif test $ac_cv_prog_cc_g = yes; then
2937   if test "$GCC" = yes; then
2938     CFLAGS="-g -O2"
2939   else
2940     CFLAGS="-g"
2941   fi
2942 else
2943   if test "$GCC" = yes; then
2944     CFLAGS="-O2"
2945   else
2946     CFLAGS=
2947   fi
2948 fi
2949 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2950 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2951 if test "${ac_cv_prog_cc_c89+set}" = set; then
2952   echo $ECHO_N "(cached) $ECHO_C" >&6
2953 else
2954   ac_cv_prog_cc_c89=no
2955 ac_save_CC=$CC
2956 cat >conftest.$ac_ext <<_ACEOF
2957 /* confdefs.h.  */
2958 _ACEOF
2959 cat confdefs.h >>conftest.$ac_ext
2960 cat >>conftest.$ac_ext <<_ACEOF
2961 /* end confdefs.h.  */
2962 #include <stdarg.h>
2963 #include <stdio.h>
2964 #include <sys/types.h>
2965 #include <sys/stat.h>
2966 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2967 struct buf { int x; };
2968 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2969 static char *e (p, i)
2970      char **p;
2971      int i;
2972 {
2973   return p[i];
2974 }
2975 static char *f (char * (*g) (char **, int), char **p, ...)
2976 {
2977   char *s;
2978   va_list v;
2979   va_start (v,p);
2980   s = g (p, va_arg (v,int));
2981   va_end (v);
2982   return s;
2983 }
2984
2985 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2986    function prototypes and stuff, but not '\xHH' hex character constants.
2987    These don't provoke an error unfortunately, instead are silently treated
2988    as 'x'.  The following induces an error, until -std is added to get
2989    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2990    array size at least.  It's necessary to write '\x00'==0 to get something
2991    that's true only with -std.  */
2992 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2993
2994 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2995    inside strings and character constants.  */
2996 #define FOO(x) 'x'
2997 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2998
2999 int test (int i, double x);
3000 struct s1 {int (*f) (int a);};
3001 struct s2 {int (*f) (double a);};
3002 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3003 int argc;
3004 char **argv;
3005 int
3006 main ()
3007 {
3008 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3009   ;
3010   return 0;
3011 }
3012 _ACEOF
3013 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3014         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3015 do
3016   CC="$ac_save_CC $ac_arg"
3017   rm -f conftest.$ac_objext
3018 if { (ac_try="$ac_compile"
3019 case "(($ac_try" in
3020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3021   *) ac_try_echo=$ac_try;;
3022 esac
3023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3024   (eval "$ac_compile") 2>conftest.er1
3025   ac_status=$?
3026   grep -v '^ *+' conftest.er1 >conftest.err
3027   rm -f conftest.er1
3028   cat conftest.err >&5
3029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3030   (exit $ac_status); } && {
3031          test -z "$ac_c_werror_flag" ||
3032          test ! -s conftest.err
3033        } && test -s conftest.$ac_objext; then
3034   ac_cv_prog_cc_c89=$ac_arg
3035 else
3036   echo "$as_me: failed program was:" >&5
3037 sed 's/^/| /' conftest.$ac_ext >&5
3038
3039
3040 fi
3041
3042 rm -f core conftest.err conftest.$ac_objext
3043   test "x$ac_cv_prog_cc_c89" != "xno" && break
3044 done
3045 rm -f conftest.$ac_ext
3046 CC=$ac_save_CC
3047
3048 fi
3049 # AC_CACHE_VAL
3050 case "x$ac_cv_prog_cc_c89" in
3051   x)
3052     { echo "$as_me:$LINENO: result: none needed" >&5
3053 echo "${ECHO_T}none needed" >&6; } ;;
3054   xno)
3055     { echo "$as_me:$LINENO: result: unsupported" >&5
3056 echo "${ECHO_T}unsupported" >&6; } ;;
3057   *)
3058     CC="$CC $ac_cv_prog_cc_c89"
3059     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3060 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3061 esac
3062
3063
3064 ac_ext=c
3065 ac_cpp='$CPP $CPPFLAGS'
3066 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3067 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3068 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3069
3070 for ac_prog in 'bison -y' byacc
3071 do
3072   # Extract the first word of "$ac_prog", so it can be a program name with args.
3073 set dummy $ac_prog; ac_word=$2
3074 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3075 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3076 if test "${ac_cv_prog_YACC+set}" = set; then
3077   echo $ECHO_N "(cached) $ECHO_C" >&6
3078 else
3079   if test -n "$YACC"; then
3080   ac_cv_prog_YACC="$YACC" # Let the user override the test.
3081 else
3082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3083 for as_dir in $PATH
3084 do
3085   IFS=$as_save_IFS
3086   test -z "$as_dir" && as_dir=.
3087   for ac_exec_ext in '' $ac_executable_extensions; do
3088   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3089     ac_cv_prog_YACC="$ac_prog"
3090     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3091     break 2
3092   fi
3093 done
3094 done
3095 IFS=$as_save_IFS
3096
3097 fi
3098 fi
3099 YACC=$ac_cv_prog_YACC
3100 if test -n "$YACC"; then
3101   { echo "$as_me:$LINENO: result: $YACC" >&5
3102 echo "${ECHO_T}$YACC" >&6; }
3103 else
3104   { echo "$as_me:$LINENO: result: no" >&5
3105 echo "${ECHO_T}no" >&6; }
3106 fi
3107
3108
3109   test -n "$YACC" && break
3110 done
3111 test -n "$YACC" || YACC="yacc"
3112
3113
3114 for ac_prog in flex lex
3115 do
3116   # Extract the first word of "$ac_prog", so it can be a program name with args.
3117 set dummy $ac_prog; ac_word=$2
3118 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3119 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3120 if test "${ac_cv_prog_LEX+set}" = set; then
3121   echo $ECHO_N "(cached) $ECHO_C" >&6
3122 else
3123   if test -n "$LEX"; then
3124   ac_cv_prog_LEX="$LEX" # Let the user override the test.
3125 else
3126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3127 for as_dir in $PATH
3128 do
3129   IFS=$as_save_IFS
3130   test -z "$as_dir" && as_dir=.
3131   for ac_exec_ext in '' $ac_executable_extensions; do
3132   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3133     ac_cv_prog_LEX="$ac_prog"
3134     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3135     break 2
3136   fi
3137 done
3138 done
3139 IFS=$as_save_IFS
3140
3141 fi
3142 fi
3143 LEX=$ac_cv_prog_LEX
3144 if test -n "$LEX"; then
3145   { echo "$as_me:$LINENO: result: $LEX" >&5
3146 echo "${ECHO_T}$LEX" >&6; }
3147 else
3148   { echo "$as_me:$LINENO: result: no" >&5
3149 echo "${ECHO_T}no" >&6; }
3150 fi
3151
3152
3153   test -n "$LEX" && break
3154 done
3155 test -n "$LEX" || LEX=":"
3156
3157 if test "x$LEX" != "x:"; then
3158   cat >conftest.l <<_ACEOF
3159 %%
3160 a { ECHO; }
3161 b { REJECT; }
3162 c { yymore (); }
3163 d { yyless (1); }
3164 e { yyless (input () != 0); }
3165 f { unput (yytext[0]); }
3166 . { BEGIN INITIAL; }
3167 %%
3168 #ifdef YYTEXT_POINTER
3169 extern char *yytext;
3170 #endif
3171 int
3172 main (void)
3173 {
3174   return ! yylex () + ! yywrap ();
3175 }
3176 _ACEOF
3177 { (ac_try="$LEX conftest.l"
3178 case "(($ac_try" in
3179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3180   *) ac_try_echo=$ac_try;;
3181 esac
3182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3183   (eval "$LEX conftest.l") 2>&5
3184   ac_status=$?
3185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3186   (exit $ac_status); }
3187 { echo "$as_me:$LINENO: checking lex output file root" >&5
3188 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
3189 if test "${ac_cv_prog_lex_root+set}" = set; then
3190   echo $ECHO_N "(cached) $ECHO_C" >&6
3191 else
3192
3193 if test -f lex.yy.c; then
3194   ac_cv_prog_lex_root=lex.yy
3195 elif test -f lexyy.c; then
3196   ac_cv_prog_lex_root=lexyy
3197 else
3198   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3199 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3200    { (exit 1); exit 1; }; }
3201 fi
3202 fi
3203 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3204 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
3205 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3206
3207 if test -z "${LEXLIB+set}"; then
3208   { echo "$as_me:$LINENO: checking lex library" >&5
3209 echo $ECHO_N "checking lex library... $ECHO_C" >&6; }
3210 if test "${ac_cv_lib_lex+set}" = set; then
3211   echo $ECHO_N "(cached) $ECHO_C" >&6
3212 else
3213
3214     ac_save_LIBS=$LIBS
3215     ac_cv_lib_lex='none needed'
3216     for ac_lib in '' -lfl -ll; do
3217       LIBS="$ac_lib $ac_save_LIBS"
3218       cat >conftest.$ac_ext <<_ACEOF
3219 `cat $LEX_OUTPUT_ROOT.c`
3220 _ACEOF
3221 rm -f conftest.$ac_objext conftest$ac_exeext
3222 if { (ac_try="$ac_link"
3223 case "(($ac_try" in
3224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3225   *) ac_try_echo=$ac_try;;
3226 esac
3227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3228   (eval "$ac_link") 2>conftest.er1
3229   ac_status=$?
3230   grep -v '^ *+' conftest.er1 >conftest.err
3231   rm -f conftest.er1
3232   cat conftest.err >&5
3233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3234   (exit $ac_status); } && {
3235          test -z "$ac_c_werror_flag" ||
3236          test ! -s conftest.err
3237        } && test -s conftest$ac_exeext &&
3238        $as_test_x conftest$ac_exeext; then
3239   ac_cv_lib_lex=$ac_lib
3240 else
3241   echo "$as_me: failed program was:" >&5
3242 sed 's/^/| /' conftest.$ac_ext >&5
3243
3244
3245 fi
3246
3247 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3248       conftest$ac_exeext conftest.$ac_ext
3249       test "$ac_cv_lib_lex" != 'none needed' && break
3250     done
3251     LIBS=$ac_save_LIBS
3252
3253 fi
3254 { echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
3255 echo "${ECHO_T}$ac_cv_lib_lex" >&6; }
3256   test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
3257 fi
3258
3259
3260 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3261 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
3262 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3263   echo $ECHO_N "(cached) $ECHO_C" >&6
3264 else
3265   # POSIX says lex can declare yytext either as a pointer or an array; the
3266 # default is implementation-dependent.  Figure out which it is, since
3267 # not all implementations provide the %pointer and %array declarations.
3268 ac_cv_prog_lex_yytext_pointer=no
3269 ac_save_LIBS=$LIBS
3270 LIBS="$LEXLIB $ac_save_LIBS"
3271 cat >conftest.$ac_ext <<_ACEOF
3272 #define YYTEXT_POINTER 1
3273 `cat $LEX_OUTPUT_ROOT.c`
3274 _ACEOF
3275 rm -f conftest.$ac_objext conftest$ac_exeext
3276 if { (ac_try="$ac_link"
3277 case "(($ac_try" in
3278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3279   *) ac_try_echo=$ac_try;;
3280 esac
3281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3282   (eval "$ac_link") 2>conftest.er1
3283   ac_status=$?
3284   grep -v '^ *+' conftest.er1 >conftest.err
3285   rm -f conftest.er1
3286   cat conftest.err >&5
3287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3288   (exit $ac_status); } && {
3289          test -z "$ac_c_werror_flag" ||
3290          test ! -s conftest.err
3291        } && test -s conftest$ac_exeext &&
3292        $as_test_x conftest$ac_exeext; then
3293   ac_cv_prog_lex_yytext_pointer=yes
3294 else
3295   echo "$as_me: failed program was:" >&5
3296 sed 's/^/| /' conftest.$ac_ext >&5
3297
3298
3299 fi
3300
3301 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3302       conftest$ac_exeext conftest.$ac_ext
3303 LIBS=$ac_save_LIBS
3304
3305 fi
3306 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3307 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
3308 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3309
3310 cat >>confdefs.h <<\_ACEOF
3311 #define YYTEXT_POINTER 1
3312 _ACEOF
3313
3314 fi
3315 rm -f conftest.l $LEX_OUTPUT_ROOT.c
3316
3317 fi
3318 # Find a good install program.  We prefer a C program (faster),
3319 # so one script is as good as another.  But avoid the broken or
3320 # incompatible versions:
3321 # SysV /etc/install, /usr/sbin/install
3322 # SunOS /usr/etc/install
3323 # IRIX /sbin/install
3324 # AIX /bin/install
3325 # AmigaOS /C/install, which installs bootblocks on floppy discs
3326 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3327 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3328 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3329 # OS/2's system install, which has a completely different semantic
3330 # ./install, which can be erroneously created by make from ./install.sh.
3331 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3332 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3333 if test -z "$INSTALL"; then
3334 if test "${ac_cv_path_install+set}" = set; then
3335   echo $ECHO_N "(cached) $ECHO_C" >&6
3336 else
3337   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3338 for as_dir in $PATH
3339 do
3340   IFS=$as_save_IFS
3341   test -z "$as_dir" && as_dir=.
3342   # Account for people who put trailing slashes in PATH elements.
3343 case $as_dir/ in
3344   ./ | .// | /cC/* | \
3345   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3346   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3347   /usr/ucb/* ) ;;
3348   *)
3349     # OSF1 and SCO ODT 3.0 have their own names for install.
3350     # Don't use installbsd from OSF since it installs stuff as root
3351     # by default.
3352     for ac_prog in ginstall scoinst install; do
3353       for ac_exec_ext in '' $ac_executable_extensions; do
3354         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3355           if test $ac_prog = install &&
3356             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3357             # AIX install.  It has an incompatible calling convention.
3358             :
3359           elif test $ac_prog = install &&
3360             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3361             # program-specific install script used by HP pwplus--don't use.
3362             :
3363           else
3364             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3365             break 3
3366           fi
3367         fi
3368       done
3369     done
3370     ;;
3371 esac
3372 done
3373 IFS=$as_save_IFS
3374
3375
3376 fi
3377   if test "${ac_cv_path_install+set}" = set; then
3378     INSTALL=$ac_cv_path_install
3379   else
3380     # As a last resort, use the slow shell script.  Don't cache a
3381     # value for INSTALL within a source directory, because that will
3382     # break other packages using the cache if that directory is
3383     # removed, or if the value is a relative name.
3384     INSTALL=$ac_install_sh
3385   fi
3386 fi
3387 { echo "$as_me:$LINENO: result: $INSTALL" >&5
3388 echo "${ECHO_T}$INSTALL" >&6; }
3389
3390 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3391 # It thinks the first close brace ends the variable substitution.
3392 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3393
3394 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3395
3396 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3397
3398 if test -n "$ac_tool_prefix"; then
3399   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3400 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3401 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3402 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3403 if test "${ac_cv_prog_RANLIB+set}" = set; then
3404   echo $ECHO_N "(cached) $ECHO_C" >&6
3405 else
3406   if test -n "$RANLIB"; then
3407   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3408 else
3409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3410 for as_dir in $PATH
3411 do
3412   IFS=$as_save_IFS
3413   test -z "$as_dir" && as_dir=.
3414   for ac_exec_ext in '' $ac_executable_extensions; do
3415   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3416     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3417     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3418     break 2
3419   fi
3420 done
3421 done
3422 IFS=$as_save_IFS
3423
3424 fi
3425 fi
3426 RANLIB=$ac_cv_prog_RANLIB
3427 if test -n "$RANLIB"; then
3428   { echo "$as_me:$LINENO: result: $RANLIB" >&5
3429 echo "${ECHO_T}$RANLIB" >&6; }
3430 else
3431   { echo "$as_me:$LINENO: result: no" >&5
3432 echo "${ECHO_T}no" >&6; }
3433 fi
3434
3435
3436 fi
3437 if test -z "$ac_cv_prog_RANLIB"; then
3438   ac_ct_RANLIB=$RANLIB
3439   # Extract the first word of "ranlib", so it can be a program name with args.
3440 set dummy ranlib; ac_word=$2
3441 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3442 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3443 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3444   echo $ECHO_N "(cached) $ECHO_C" >&6
3445 else
3446   if test -n "$ac_ct_RANLIB"; then
3447   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3448 else
3449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3450 for as_dir in $PATH
3451 do
3452   IFS=$as_save_IFS
3453   test -z "$as_dir" && as_dir=.
3454   for ac_exec_ext in '' $ac_executable_extensions; do
3455   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3456     ac_cv_prog_ac_ct_RANLIB="ranlib"
3457     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3458     break 2
3459   fi
3460 done
3461 done
3462 IFS=$as_save_IFS
3463
3464 fi
3465 fi
3466 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3467 if test -n "$ac_ct_RANLIB"; then
3468   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3469 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
3470 else
3471   { echo "$as_me:$LINENO: result: no" >&5
3472 echo "${ECHO_T}no" >&6; }
3473 fi
3474
3475   if test "x$ac_ct_RANLIB" = x; then
3476     RANLIB=":"
3477   else
3478     case $cross_compiling:$ac_tool_warned in
3479 yes:)
3480 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3481 whose name does not start with the host triplet.  If you think this
3482 configuration is useful to you, please write to autoconf@gnu.org." >&5
3483 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3484 whose name does not start with the host triplet.  If you think this
3485 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3486 ac_tool_warned=yes ;;
3487 esac
3488     RANLIB=$ac_ct_RANLIB
3489   fi
3490 else
3491   RANLIB="$ac_cv_prog_RANLIB"
3492 fi
3493
3494 # Check whether --enable-shared was given.
3495 if test "${enable_shared+set}" = set; then
3496   enableval=$enable_shared; p=${PACKAGE-default}
3497     case $enableval in
3498     yes) enable_shared=yes ;;
3499     no) enable_shared=no ;;
3500     *)
3501       enable_shared=no
3502       # Look at the argument we got.  We use all the common list separators.
3503       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3504       for pkg in $enableval; do
3505         IFS="$lt_save_ifs"
3506         if test "X$pkg" = "X$p"; then
3507           enable_shared=yes
3508         fi
3509       done
3510       IFS="$lt_save_ifs"
3511       ;;
3512     esac
3513 else
3514   enable_shared=yes
3515 fi
3516
3517
3518 # Check whether --enable-static was given.
3519 if test "${enable_static+set}" = set; then
3520   enableval=$enable_static; p=${PACKAGE-default}
3521     case $enableval in
3522     yes) enable_static=yes ;;
3523     no) enable_static=no ;;
3524     *)
3525      enable_static=no
3526       # Look at the argument we got.  We use all the common list separators.
3527       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3528       for pkg in $enableval; do
3529         IFS="$lt_save_ifs"
3530         if test "X$pkg" = "X$p"; then
3531           enable_static=yes
3532         fi
3533       done
3534       IFS="$lt_save_ifs"
3535       ;;
3536     esac
3537 else
3538   enable_static=yes
3539 fi
3540
3541
3542 # Check whether --enable-fast-install was given.
3543 if test "${enable_fast_install+set}" = set; then
3544   enableval=$enable_fast_install; p=${PACKAGE-default}
3545     case $enableval in
3546     yes) enable_fast_install=yes ;;
3547     no) enable_fast_install=no ;;
3548     *)
3549       enable_fast_install=no
3550       # Look at the argument we got.  We use all the common list separators.
3551       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3552       for pkg in $enableval; do
3553         IFS="$lt_save_ifs"
3554         if test "X$pkg" = "X$p"; then
3555           enable_fast_install=yes
3556         fi
3557       done
3558       IFS="$lt_save_ifs"
3559       ;;
3560     esac
3561 else
3562   enable_fast_install=yes
3563 fi
3564
3565
3566 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3567 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3568 if test "${lt_cv_path_SED+set}" = set; then
3569   echo $ECHO_N "(cached) $ECHO_C" >&6
3570 else
3571   # Loop through the user's path and test for sed and gsed.
3572 # Then use that list of sed's as ones to test for truncation.
3573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3574 for as_dir in $PATH
3575 do
3576   IFS=$as_save_IFS
3577   test -z "$as_dir" && as_dir=.
3578   for lt_ac_prog in sed gsed; do
3579     for ac_exec_ext in '' $ac_executable_extensions; do
3580       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3581         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3582       fi
3583     done
3584   done
3585 done
3586 lt_ac_max=0
3587 lt_ac_count=0
3588 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3589 # along with /bin/sed that truncates output.
3590 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3591   test ! -f $lt_ac_sed && break
3592   cat /dev/null > conftest.in
3593   lt_ac_count=0
3594   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3595   # Check for GNU sed and select it if it is found.
3596   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3597     lt_cv_path_SED=$lt_ac_sed
3598     break
3599   fi
3600   while true; do
3601     cat conftest.in conftest.in >conftest.tmp
3602     mv conftest.tmp conftest.in
3603     cp conftest.in conftest.nl
3604     echo >>conftest.nl
3605     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3606     cmp -s conftest.out conftest.nl || break
3607     # 10000 chars as input seems more than enough
3608     test $lt_ac_count -gt 10 && break
3609     lt_ac_count=`expr $lt_ac_count + 1`
3610     if test $lt_ac_count -gt $lt_ac_max; then
3611       lt_ac_max=$lt_ac_count
3612       lt_cv_path_SED=$lt_ac_sed
3613     fi
3614   done
3615 done
3616 SED=$lt_cv_path_SED
3617
3618 fi
3619
3620 { echo "$as_me:$LINENO: result: $SED" >&5
3621 echo "${ECHO_T}$SED" >&6; }
3622
3623 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3624 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3625 if test "${ac_cv_path_GREP+set}" = set; then
3626   echo $ECHO_N "(cached) $ECHO_C" >&6
3627 else
3628   # Extract the first word of "grep ggrep" to use in msg output
3629 if test -z "$GREP"; then
3630 set dummy grep ggrep; ac_prog_name=$2
3631 if test "${ac_cv_path_GREP+set}" = set; then
3632   echo $ECHO_N "(cached) $ECHO_C" >&6
3633 else
3634   ac_path_GREP_found=false
3635 # Loop through the user's path and test for each of PROGNAME-LIST
3636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3637 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3638 do
3639   IFS=$as_save_IFS
3640   test -z "$as_dir" && as_dir=.
3641   for ac_prog in grep ggrep; do
3642   for ac_exec_ext in '' $ac_executable_extensions; do
3643     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3644     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3645     # Check for GNU ac_path_GREP and select it if it is found.
3646   # Check for GNU $ac_path_GREP
3647 case `"$ac_path_GREP" --version 2>&1` in
3648 *GNU*)
3649   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3650 *)
3651   ac_count=0
3652   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3653   while :
3654   do
3655     cat "conftest.in" "conftest.in" >"conftest.tmp"
3656     mv "conftest.tmp" "conftest.in"
3657     cp "conftest.in" "conftest.nl"
3658     echo 'GREP' >> "conftest.nl"
3659     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3660     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3661     ac_count=`expr $ac_count + 1`
3662     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3663       # Best one so far, save it but keep looking for a better one
3664       ac_cv_path_GREP="$ac_path_GREP"
3665       ac_path_GREP_max=$ac_count
3666     fi
3667     # 10*(2^10) chars as input seems more than enough
3668     test $ac_count -gt 10 && break
3669   done
3670   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3671 esac
3672
3673
3674     $ac_path_GREP_found && break 3
3675   done
3676 done
3677
3678 done
3679 IFS=$as_save_IFS
3680
3681
3682 fi
3683
3684 GREP="$ac_cv_path_GREP"
3685 if test -z "$GREP"; then
3686   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3687 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3688    { (exit 1); exit 1; }; }
3689 fi
3690
3691 else
3692   ac_cv_path_GREP=$GREP
3693 fi
3694
3695
3696 fi
3697 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3698 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3699  GREP="$ac_cv_path_GREP"
3700
3701
3702 { echo "$as_me:$LINENO: checking for egrep" >&5
3703 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3704 if test "${ac_cv_path_EGREP+set}" = set; then
3705   echo $ECHO_N "(cached) $ECHO_C" >&6
3706 else
3707   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3708    then ac_cv_path_EGREP="$GREP -E"
3709    else
3710      # Extract the first word of "egrep" to use in msg output
3711 if test -z "$EGREP"; then
3712 set dummy egrep; ac_prog_name=$2
3713 if test "${ac_cv_path_EGREP+set}" = set; then
3714   echo $ECHO_N "(cached) $ECHO_C" >&6
3715 else
3716   ac_path_EGREP_found=false
3717 # Loop through the user's path and test for each of PROGNAME-LIST
3718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3719 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3720 do
3721   IFS=$as_save_IFS
3722   test -z "$as_dir" && as_dir=.
3723   for ac_prog in egrep; do
3724   for ac_exec_ext in '' $ac_executable_extensions; do
3725     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3726     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3727     # Check for GNU ac_path_EGREP and select it if it is found.
3728   # Check for GNU $ac_path_EGREP
3729 case `"$ac_path_EGREP" --version 2>&1` in
3730 *GNU*)
3731   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3732 *)
3733   ac_count=0
3734   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3735   while :
3736   do
3737     cat "conftest.in" "conftest.in" >"conftest.tmp"
3738     mv "conftest.tmp" "conftest.in"
3739     cp "conftest.in" "conftest.nl"
3740     echo 'EGREP' >> "conftest.nl"
3741     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3742     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3743     ac_count=`expr $ac_count + 1`
3744     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3745       # Best one so far, save it but keep looking for a better one
3746       ac_cv_path_EGREP="$ac_path_EGREP"
3747       ac_path_EGREP_max=$ac_count
3748     fi
3749     # 10*(2^10) chars as input seems more than enough
3750     test $ac_count -gt 10 && break
3751   done
3752   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3753 esac
3754
3755
3756     $ac_path_EGREP_found && break 3
3757   done
3758 done
3759
3760 done
3761 IFS=$as_save_IFS
3762
3763
3764 fi
3765
3766 EGREP="$ac_cv_path_EGREP"
3767 if test -z "$EGREP"; then
3768   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3769 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3770    { (exit 1); exit 1; }; }
3771 fi
3772
3773 else
3774   ac_cv_path_EGREP=$EGREP
3775 fi
3776
3777
3778    fi
3779 fi
3780 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3781 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3782  EGREP="$ac_cv_path_EGREP"
3783
3784
3785
3786 # Check whether --with-gnu-ld was given.
3787 if test "${with_gnu_ld+set}" = set; then
3788   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3789 else
3790   with_gnu_ld=no
3791 fi
3792
3793 ac_prog=ld
3794 if test "$GCC" = yes; then
3795   # Check if gcc -print-prog-name=ld gives a path.
3796   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3797 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
3798   case $host in
3799   *-*-mingw*)
3800     # gcc leaves a trailing carriage return which upsets mingw
3801     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3802   *)
3803     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3804   esac
3805   case $ac_prog in
3806     # Accept absolute paths.
3807     [\\/]* | ?:[\\/]*)
3808       re_direlt='/[^/][^/]*/\.\./'
3809       # Canonicalize the pathname of ld
3810       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3811       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3812         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3813       done
3814       test -z "$LD" && LD="$ac_prog"
3815       ;;
3816   "")
3817     # If it fails, then pretend we aren't using GCC.
3818     ac_prog=ld
3819     ;;
3820   *)
3821     # If it is relative, then search for the first ld in PATH.
3822     with_gnu_ld=unknown
3823     ;;
3824   esac
3825 elif test "$with_gnu_ld" = yes; then
3826   { echo "$as_me:$LINENO: checking for GNU ld" >&5
3827 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
3828 else
3829   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3830 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
3831 fi
3832 if test "${lt_cv_path_LD+set}" = set; then
3833   echo $ECHO_N "(cached) $ECHO_C" >&6
3834 else
3835   if test -z "$LD"; then
3836   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3837   for ac_dir in $PATH; do
3838     IFS="$lt_save_ifs"
3839     test -z "$ac_dir" && ac_dir=.
3840     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3841       lt_cv_path_LD="$ac_dir/$ac_prog"
3842       # Check to see if the program is GNU ld.  I'd rather use --version,
3843       # but apparently some GNU ld's only accept -v.
3844       # Break only if it was the GNU/non-GNU ld that we prefer.
3845       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3846       *GNU* | *'with BFD'*)
3847         test "$with_gnu_ld" != no && break
3848         ;;
3849       *)
3850         test "$with_gnu_ld" != yes && break
3851         ;;
3852       esac
3853     fi
3854   done
3855   IFS="$lt_save_ifs"
3856 else
3857   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3858 fi
3859 fi
3860
3861 LD="$lt_cv_path_LD"
3862 if test -n "$LD"; then
3863   { echo "$as_me:$LINENO: result: $LD" >&5
3864 echo "${ECHO_T}$LD" >&6; }
3865 else
3866   { echo "$as_me:$LINENO: result: no" >&5
3867 echo "${ECHO_T}no" >&6; }
3868 fi
3869 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3870 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3871    { (exit 1); exit 1; }; }
3872 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3873 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
3874 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3875   echo $ECHO_N "(cached) $ECHO_C" >&6
3876 else
3877   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3878 case `$LD -v 2>&1 </dev/null` in
3879 *GNU* | *'with BFD'*)
3880   lt_cv_prog_gnu_ld=yes
3881   ;;
3882 *)
3883   lt_cv_prog_gnu_ld=no
3884   ;;
3885 esac
3886 fi
3887 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3888 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
3889 with_gnu_ld=$lt_cv_prog_gnu_ld
3890
3891
3892 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3893 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
3894 if test "${lt_cv_ld_reload_flag+set}" = set; then
3895   echo $ECHO_N "(cached) $ECHO_C" >&6
3896 else
3897   lt_cv_ld_reload_flag='-r'
3898 fi
3899 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3900 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
3901 reload_flag=$lt_cv_ld_reload_flag
3902 case $reload_flag in
3903 "" | " "*) ;;
3904 *) reload_flag=" $reload_flag" ;;
3905 esac
3906 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3907
3908 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3909 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
3910 if test "${lt_cv_path_NM+set}" = set; then
3911   echo $ECHO_N "(cached) $ECHO_C" >&6
3912 else
3913   if test -n "$NM"; then
3914   # Let the user override the test.
3915   lt_cv_path_NM="$NM"
3916 else
3917   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3918   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3919     IFS="$lt_save_ifs"
3920     test -z "$ac_dir" && ac_dir=.
3921     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3922     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3923       # Check to see if the nm accepts a BSD-compat flag.
3924       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3925       #   nm: unknown option "B" ignored
3926       # Tru64's nm complains that /dev/null is an invalid object file
3927       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3928       */dev/null* | *'Invalid file or object type'*)
3929         lt_cv_path_NM="$tmp_nm -B"
3930         break
3931         ;;
3932       *)
3933         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3934         */dev/null*)
3935           lt_cv_path_NM="$tmp_nm -p"
3936           break
3937           ;;
3938         *)
3939           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3940           continue # so that we can try to find one that supports BSD flags
3941           ;;
3942         esac
3943       esac
3944     fi
3945   done
3946   IFS="$lt_save_ifs"
3947   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3948 fi
3949 fi
3950 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3951 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
3952 NM="$lt_cv_path_NM"
3953
3954 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
3955 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
3956 LN_S=$as_ln_s
3957 if test "$LN_S" = "ln -s"; then
3958   { echo "$as_me:$LINENO: result: yes" >&5
3959 echo "${ECHO_T}yes" >&6; }
3960 else
3961   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3962 echo "${ECHO_T}no, using $LN_S" >&6; }
3963 fi
3964
3965 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3966 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
3967 if test "${lt_cv_deplibs_check_method+set}" = set; then
3968   echo $ECHO_N "(cached) $ECHO_C" >&6
3969 else
3970   lt_cv_file_magic_cmd='$MAGIC_CMD'
3971 lt_cv_file_magic_test_file=
3972 lt_cv_deplibs_check_method='unknown'
3973 # Need to set the preceding variable on all platforms that support
3974 # interlibrary dependencies.
3975 # 'none' -- dependencies not supported.
3976 # `unknown' -- same as none, but documents that we really don't know.
3977 # 'pass_all' -- all dependencies passed with no checks.
3978 # 'test_compile' -- check by making test program.
3979 # 'file_magic [[regex]]' -- check by looking for files in library path
3980 # which responds to the $file_magic_cmd with a given extended regex.
3981 # If you have `file' or equivalent on your system and you're not sure
3982 # whether `pass_all' will *always* work, you probably want this one.
3983
3984 case $host_os in
3985 aix4* | aix5*)
3986   lt_cv_deplibs_check_method=pass_all
3987   ;;
3988
3989 beos*)
3990   lt_cv_deplibs_check_method=pass_all
3991   ;;
3992
3993 bsdi4*)
3994   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3995   lt_cv_file_magic_cmd='/usr/bin/file -L'
3996   lt_cv_file_magic_test_file=/shlib/libc.so
3997   ;;
3998
3999 cygwin*)
4000   # func_win32_libid is a shell function defined in ltmain.sh
4001   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4002   lt_cv_file_magic_cmd='func_win32_libid'
4003   ;;
4004
4005 mingw* | pw32*)
4006   # Base MSYS/MinGW do not provide the 'file' command needed by
4007   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4008   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4009   lt_cv_file_magic_cmd='$OBJDUMP -f'
4010   ;;
4011
4012 darwin* | rhapsody*)
4013   lt_cv_deplibs_check_method=pass_all
4014   ;;
4015
4016 freebsd* | kfreebsd*-gnu)
4017   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4018     case $host_cpu in
4019     i*86 )
4020       # Not sure whether the presence of OpenBSD here was a mistake.
4021       # Let's accept both of them until this is cleared up.
4022       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4023       lt_cv_file_magic_cmd=/usr/bin/file
4024       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4025       ;;
4026     esac
4027   else
4028     lt_cv_deplibs_check_method=pass_all
4029   fi
4030   ;;
4031
4032 gnu*)
4033   lt_cv_deplibs_check_method=pass_all
4034   ;;
4035
4036 hpux10.20* | hpux11*)
4037   lt_cv_file_magic_cmd=/usr/bin/file
4038   case "$host_cpu" in
4039   ia64*)
4040     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4041     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4042     ;;
4043   hppa*64*)
4044     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]'
4045     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4046     ;;
4047   *)
4048     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4049     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4050     ;;
4051   esac
4052   ;;
4053
4054 irix5* | irix6* | nonstopux*)
4055   case $LD in
4056   *-32|*"-32 ") libmagic=32-bit;;
4057   *-n32|*"-n32 ") libmagic=N32;;
4058   *-64|*"-64 ") libmagic=64-bit;;
4059   *) libmagic=never-match;;
4060   esac
4061   lt_cv_deplibs_check_method=pass_all
4062   ;;
4063
4064 # This must be Linux ELF.
4065 linux*)
4066   case $host_cpu in
4067   alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*|x86_64*)
4068     lt_cv_deplibs_check_method=pass_all ;;
4069   *)
4070     # glibc up to 2.1.1 does not perform some relocations on ARM
4071     # this will be overridden with pass_all, but let us keep it just in case
4072     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4073   esac
4074   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4075   lt_cv_deplibs_check_method=pass_all
4076   ;;
4077
4078 netbsd*)
4079   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4080     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4081   else
4082     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4083   fi
4084   ;;
4085
4086 newos6*)
4087   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4088   lt_cv_file_magic_cmd=/usr/bin/file
4089   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4090   ;;
4091
4092 nto-qnx*)
4093   lt_cv_deplibs_check_method=unknown
4094   ;;
4095
4096 openbsd*)
4097   lt_cv_file_magic_cmd=/usr/bin/file
4098   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4099   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4100     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4101   else
4102     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4103   fi
4104   ;;
4105
4106 osf3* | osf4* | osf5*)
4107   lt_cv_deplibs_check_method=pass_all
4108   ;;
4109
4110 sco3.2v5*)
4111   lt_cv_deplibs_check_method=pass_all
4112   ;;
4113
4114 solaris*)
4115   lt_cv_deplibs_check_method=pass_all
4116   ;;
4117
4118 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4119   case $host_vendor in
4120   motorola)
4121     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]'
4122     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4123     ;;
4124   ncr)
4125     lt_cv_deplibs_check_method=pass_all
4126     ;;
4127   sequent)
4128     lt_cv_file_magic_cmd='/bin/file'
4129     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4130     ;;
4131   sni)
4132     lt_cv_file_magic_cmd='/bin/file'
4133     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4134     lt_cv_file_magic_test_file=/lib/libc.so
4135     ;;
4136   siemens)
4137     lt_cv_deplibs_check_method=pass_all
4138     ;;
4139   esac
4140   ;;
4141
4142 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4143   lt_cv_deplibs_check_method=pass_all
4144   ;;
4145 esac
4146
4147 fi
4148 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4149 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4150 file_magic_cmd=$lt_cv_file_magic_cmd
4151 deplibs_check_method=$lt_cv_deplibs_check_method
4152 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4153
4154
4155
4156
4157 # If no C compiler was specified, use CC.
4158 LTCC=${LTCC-"$CC"}
4159
4160 # Allow CC to be a program name with arguments.
4161 compiler=$CC
4162
4163 # Check whether --enable-libtool-lock was given.
4164 if test "${enable_libtool_lock+set}" = set; then
4165   enableval=$enable_libtool_lock;
4166 fi
4167
4168 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4169
4170 # Some flags need to be propagated to the compiler or linker for good
4171 # libtool support.
4172 case $host in
4173 ia64-*-hpux*)
4174   # Find out which ABI we are using.
4175   echo 'int i;' > conftest.$ac_ext
4176   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4177   (eval $ac_compile) 2>&5
4178   ac_status=$?
4179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4180   (exit $ac_status); }; then
4181     case `/usr/bin/file conftest.$ac_objext` in
4182     *ELF-32*)
4183       HPUX_IA64_MODE="32"
4184       ;;
4185     *ELF-64*)
4186       HPUX_IA64_MODE="64"
4187       ;;
4188     esac
4189   fi
4190   rm -rf conftest*
4191   ;;
4192 *-*-irix6*)
4193   # Find out which ABI we are using.
4194   echo '#line 4194 "configure"' > conftest.$ac_ext
4195   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4196   (eval $ac_compile) 2>&5
4197   ac_status=$?
4198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4199   (exit $ac_status); }; then
4200    if test "$lt_cv_prog_gnu_ld" = yes; then
4201     case `/usr/bin/file conftest.$ac_objext` in
4202     *32-bit*)
4203       LD="${LD-ld} -melf32bsmip"
4204       ;;
4205     *N32*)
4206       LD="${LD-ld} -melf32bmipn32"
4207       ;;
4208     *64-bit*)
4209       LD="${LD-ld} -melf64bmip"
4210       ;;
4211     esac
4212    else
4213     case `/usr/bin/file conftest.$ac_objext` in
4214     *32-bit*)
4215       LD="${LD-ld} -32"
4216       ;;
4217     *N32*)
4218       LD="${LD-ld} -n32"
4219       ;;
4220     *64-bit*)
4221       LD="${LD-ld} -64"
4222       ;;
4223     esac
4224    fi
4225   fi
4226   rm -rf conftest*
4227   ;;
4228
4229 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4230   # Find out which ABI we are using.
4231   echo 'int i;' > conftest.$ac_ext
4232   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4233   (eval $ac_compile) 2>&5
4234   ac_status=$?
4235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4236   (exit $ac_status); }; then
4237     case "`/usr/bin/file conftest.o`" in
4238     *32-bit*)
4239       case $host in
4240         x86_64-*linux*)
4241           LD="${LD-ld} -m elf_i386"
4242           ;;
4243         ppc64-*linux*|powerpc64-*linux*)
4244           LD="${LD-ld} -m elf32ppclinux"
4245           ;;
4246         s390x-*linux*)
4247           LD="${LD-ld} -m elf_s390"
4248           ;;
4249         sparc64-*linux*)
4250           LD="${LD-ld} -m elf32_sparc"
4251           ;;
4252       esac
4253       ;;
4254     *64-bit*)
4255       case $host in
4256         x86_64-*linux*)
4257           LD="${LD-ld} -m elf_x86_64"
4258           ;;
4259         ppc*-*linux*|powerpc*-*linux*)
4260           LD="${LD-ld} -m elf64ppc"
4261           ;;
4262         s390*-*linux*)
4263           LD="${LD-ld} -m elf64_s390"
4264           ;;
4265         sparc*-*linux*)
4266           LD="${LD-ld} -m elf64_sparc"
4267           ;;
4268       esac
4269       ;;
4270     esac
4271   fi
4272   rm -rf conftest*
4273   ;;
4274
4275 *-*-sco3.2v5*)
4276   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4277   SAVE_CFLAGS="$CFLAGS"
4278   CFLAGS="$CFLAGS -belf"
4279   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4280 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4281 if test "${lt_cv_cc_needs_belf+set}" = set; then
4282   echo $ECHO_N "(cached) $ECHO_C" >&6
4283 else
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      cat >conftest.$ac_ext <<_ACEOF
4291 /* confdefs.h.  */
4292 _ACEOF
4293 cat confdefs.h >>conftest.$ac_ext
4294 cat >>conftest.$ac_ext <<_ACEOF
4295 /* end confdefs.h.  */
4296
4297 int
4298 main ()
4299 {
4300
4301   ;
4302   return 0;
4303 }
4304 _ACEOF
4305 rm -f conftest.$ac_objext conftest$ac_exeext
4306 if { (ac_try="$ac_link"
4307 case "(($ac_try" in
4308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4309   *) ac_try_echo=$ac_try;;
4310 esac
4311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4312   (eval "$ac_link") 2>conftest.er1
4313   ac_status=$?
4314   grep -v '^ *+' conftest.er1 >conftest.err
4315   rm -f conftest.er1
4316   cat conftest.err >&5
4317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4318   (exit $ac_status); } && {
4319          test -z "$ac_c_werror_flag" ||
4320          test ! -s conftest.err
4321        } && test -s conftest$ac_exeext &&
4322        $as_test_x conftest$ac_exeext; then
4323   lt_cv_cc_needs_belf=yes
4324 else
4325   echo "$as_me: failed program was:" >&5
4326 sed 's/^/| /' conftest.$ac_ext >&5
4327
4328         lt_cv_cc_needs_belf=no
4329 fi
4330
4331 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4332       conftest$ac_exeext conftest.$ac_ext
4333      ac_ext=c
4334 ac_cpp='$CPP $CPPFLAGS'
4335 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4336 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4337 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4338
4339 fi
4340 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4341 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4342   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4343     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4344     CFLAGS="$SAVE_CFLAGS"
4345   fi
4346   ;;
4347
4348 esac
4349
4350 need_locks="$enable_libtool_lock"
4351
4352
4353 ac_ext=c
4354 ac_cpp='$CPP $CPPFLAGS'
4355 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4356 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4357 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4358 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4359 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4360 # On Suns, sometimes $CPP names a directory.
4361 if test -n "$CPP" && test -d "$CPP"; then
4362   CPP=
4363 fi
4364 if test -z "$CPP"; then
4365   if test "${ac_cv_prog_CPP+set}" = set; then
4366   echo $ECHO_N "(cached) $ECHO_C" >&6
4367 else
4368       # Double quotes because CPP needs to be expanded
4369     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4370     do
4371       ac_preproc_ok=false
4372 for ac_c_preproc_warn_flag in '' yes
4373 do
4374   # Use a header file that comes with gcc, so configuring glibc
4375   # with a fresh cross-compiler works.
4376   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4377   # <limits.h> exists even on freestanding compilers.
4378   # On the NeXT, cc -E runs the code through the compiler's parser,
4379   # not just through cpp. "Syntax error" is here to catch this case.
4380   cat >conftest.$ac_ext <<_ACEOF
4381 /* confdefs.h.  */
4382 _ACEOF
4383 cat confdefs.h >>conftest.$ac_ext
4384 cat >>conftest.$ac_ext <<_ACEOF
4385 /* end confdefs.h.  */
4386 #ifdef __STDC__
4387 # include <limits.h>
4388 #else
4389 # include <assert.h>
4390 #endif
4391                      Syntax error
4392 _ACEOF
4393 if { (ac_try="$ac_cpp conftest.$ac_ext"
4394 case "(($ac_try" in
4395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4396   *) ac_try_echo=$ac_try;;
4397 esac
4398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4399   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4400   ac_status=$?
4401   grep -v '^ *+' conftest.er1 >conftest.err
4402   rm -f conftest.er1
4403   cat conftest.err >&5
4404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4405   (exit $ac_status); } >/dev/null && {
4406          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4407          test ! -s conftest.err
4408        }; then
4409   :
4410 else
4411   echo "$as_me: failed program was:" >&5
4412 sed 's/^/| /' conftest.$ac_ext >&5
4413
4414   # Broken: fails on valid input.
4415 continue
4416 fi
4417
4418 rm -f conftest.err conftest.$ac_ext
4419
4420   # OK, works on sane cases.  Now check whether nonexistent headers
4421   # can be detected and how.
4422   cat >conftest.$ac_ext <<_ACEOF
4423 /* confdefs.h.  */
4424 _ACEOF
4425 cat confdefs.h >>conftest.$ac_ext
4426 cat >>conftest.$ac_ext <<_ACEOF
4427 /* end confdefs.h.  */
4428 #include <ac_nonexistent.h>
4429 _ACEOF
4430 if { (ac_try="$ac_cpp conftest.$ac_ext"
4431 case "(($ac_try" in
4432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4433   *) ac_try_echo=$ac_try;;
4434 esac
4435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4436   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4437   ac_status=$?
4438   grep -v '^ *+' conftest.er1 >conftest.err
4439   rm -f conftest.er1
4440   cat conftest.err >&5
4441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4442   (exit $ac_status); } >/dev/null && {
4443          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4444          test ! -s conftest.err
4445        }; then
4446   # Broken: success on invalid input.
4447 continue
4448 else
4449   echo "$as_me: failed program was:" >&5
4450 sed 's/^/| /' conftest.$ac_ext >&5
4451
4452   # Passes both tests.
4453 ac_preproc_ok=:
4454 break
4455 fi
4456
4457 rm -f conftest.err conftest.$ac_ext
4458
4459 done
4460 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4461 rm -f conftest.err conftest.$ac_ext
4462 if $ac_preproc_ok; then
4463   break
4464 fi
4465
4466     done
4467     ac_cv_prog_CPP=$CPP
4468
4469 fi
4470   CPP=$ac_cv_prog_CPP
4471 else
4472   ac_cv_prog_CPP=$CPP
4473 fi
4474 { echo "$as_me:$LINENO: result: $CPP" >&5
4475 echo "${ECHO_T}$CPP" >&6; }
4476 ac_preproc_ok=false
4477 for ac_c_preproc_warn_flag in '' yes
4478 do
4479   # Use a header file that comes with gcc, so configuring glibc
4480   # with a fresh cross-compiler works.
4481   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4482   # <limits.h> exists even on freestanding compilers.
4483   # On the NeXT, cc -E runs the code through the compiler's parser,
4484   # not just through cpp. "Syntax error" is here to catch this case.
4485   cat >conftest.$ac_ext <<_ACEOF
4486 /* confdefs.h.  */
4487 _ACEOF
4488 cat confdefs.h >>conftest.$ac_ext
4489 cat >>conftest.$ac_ext <<_ACEOF
4490 /* end confdefs.h.  */
4491 #ifdef __STDC__
4492 # include <limits.h>
4493 #else
4494 # include <assert.h>
4495 #endif
4496                      Syntax error
4497 _ACEOF
4498 if { (ac_try="$ac_cpp conftest.$ac_ext"
4499 case "(($ac_try" in
4500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4501   *) ac_try_echo=$ac_try;;
4502 esac
4503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4504   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4505   ac_status=$?
4506   grep -v '^ *+' conftest.er1 >conftest.err
4507   rm -f conftest.er1
4508   cat conftest.err >&5
4509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4510   (exit $ac_status); } >/dev/null && {
4511          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4512          test ! -s conftest.err
4513        }; then
4514   :
4515 else
4516   echo "$as_me: failed program was:" >&5
4517 sed 's/^/| /' conftest.$ac_ext >&5
4518
4519   # Broken: fails on valid input.
4520 continue
4521 fi
4522
4523 rm -f conftest.err conftest.$ac_ext
4524
4525   # OK, works on sane cases.  Now check whether nonexistent headers
4526   # can be detected and how.
4527   cat >conftest.$ac_ext <<_ACEOF
4528 /* confdefs.h.  */
4529 _ACEOF
4530 cat confdefs.h >>conftest.$ac_ext
4531 cat >>conftest.$ac_ext <<_ACEOF
4532 /* end confdefs.h.  */
4533 #include <ac_nonexistent.h>
4534 _ACEOF
4535 if { (ac_try="$ac_cpp conftest.$ac_ext"
4536 case "(($ac_try" in
4537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4538   *) ac_try_echo=$ac_try;;
4539 esac
4540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4541   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4542   ac_status=$?
4543   grep -v '^ *+' conftest.er1 >conftest.err
4544   rm -f conftest.er1
4545   cat conftest.err >&5
4546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4547   (exit $ac_status); } >/dev/null && {
4548          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4549          test ! -s conftest.err
4550        }; then
4551   # Broken: success on invalid input.
4552 continue
4553 else
4554   echo "$as_me: failed program was:" >&5
4555 sed 's/^/| /' conftest.$ac_ext >&5
4556
4557   # Passes both tests.
4558 ac_preproc_ok=:
4559 break
4560 fi
4561
4562 rm -f conftest.err conftest.$ac_ext
4563
4564 done
4565 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4566 rm -f conftest.err conftest.$ac_ext
4567 if $ac_preproc_ok; then
4568   :
4569 else
4570   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4571 See \`config.log' for more details." >&5
4572 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4573 See \`config.log' for more details." >&2;}
4574    { (exit 1); exit 1; }; }
4575 fi
4576
4577 ac_ext=c
4578 ac_cpp='$CPP $CPPFLAGS'
4579 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4580 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4581 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4582
4583
4584 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4585 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4586 if test "${ac_cv_header_stdc+set}" = set; then
4587   echo $ECHO_N "(cached) $ECHO_C" >&6
4588 else
4589   cat >conftest.$ac_ext <<_ACEOF
4590 /* confdefs.h.  */
4591 _ACEOF
4592 cat confdefs.h >>conftest.$ac_ext
4593 cat >>conftest.$ac_ext <<_ACEOF
4594 /* end confdefs.h.  */
4595 #include <stdlib.h>
4596 #include <stdarg.h>
4597 #include <string.h>
4598 #include <float.h>
4599
4600 int
4601 main ()
4602 {
4603
4604   ;
4605   return 0;
4606 }
4607 _ACEOF
4608 rm -f conftest.$ac_objext
4609 if { (ac_try="$ac_compile"
4610 case "(($ac_try" in
4611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4612   *) ac_try_echo=$ac_try;;
4613 esac
4614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4615   (eval "$ac_compile") 2>conftest.er1
4616   ac_status=$?
4617   grep -v '^ *+' conftest.er1 >conftest.err
4618   rm -f conftest.er1
4619   cat conftest.err >&5
4620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4621   (exit $ac_status); } && {
4622          test -z "$ac_c_werror_flag" ||
4623          test ! -s conftest.err
4624        } && test -s conftest.$ac_objext; then
4625   ac_cv_header_stdc=yes
4626 else
4627   echo "$as_me: failed program was:" >&5
4628 sed 's/^/| /' conftest.$ac_ext >&5
4629
4630         ac_cv_header_stdc=no
4631 fi
4632
4633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4634
4635 if test $ac_cv_header_stdc = yes; then
4636   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4637   cat >conftest.$ac_ext <<_ACEOF
4638 /* confdefs.h.  */
4639 _ACEOF
4640 cat confdefs.h >>conftest.$ac_ext
4641 cat >>conftest.$ac_ext <<_ACEOF
4642 /* end confdefs.h.  */
4643 #include <string.h>
4644
4645 _ACEOF
4646 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4647   $EGREP "memchr" >/dev/null 2>&1; then
4648   :
4649 else
4650   ac_cv_header_stdc=no
4651 fi
4652 rm -f conftest*
4653
4654 fi
4655
4656 if test $ac_cv_header_stdc = yes; then
4657   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4658   cat >conftest.$ac_ext <<_ACEOF
4659 /* confdefs.h.  */
4660 _ACEOF
4661 cat confdefs.h >>conftest.$ac_ext
4662 cat >>conftest.$ac_ext <<_ACEOF
4663 /* end confdefs.h.  */
4664 #include <stdlib.h>
4665
4666 _ACEOF
4667 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4668   $EGREP "free" >/dev/null 2>&1; then
4669   :
4670 else
4671   ac_cv_header_stdc=no
4672 fi
4673 rm -f conftest*
4674
4675 fi
4676
4677 if test $ac_cv_header_stdc = yes; then
4678   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4679   if test "$cross_compiling" = yes; then
4680   :
4681 else
4682   cat >conftest.$ac_ext <<_ACEOF
4683 /* confdefs.h.  */
4684 _ACEOF
4685 cat confdefs.h >>conftest.$ac_ext
4686 cat >>conftest.$ac_ext <<_ACEOF
4687 /* end confdefs.h.  */
4688 #include <ctype.h>
4689 #include <stdlib.h>
4690 #if ((' ' & 0x0FF) == 0x020)
4691 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4692 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4693 #else
4694 # define ISLOWER(c) \
4695                    (('a' <= (c) && (c) <= 'i') \
4696                      || ('j' <= (c) && (c) <= 'r') \
4697                      || ('s' <= (c) && (c) <= 'z'))
4698 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4699 #endif
4700
4701 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4702 int
4703 main ()
4704 {
4705   int i;
4706   for (i = 0; i < 256; i++)
4707     if (XOR (islower (i), ISLOWER (i))
4708         || toupper (i) != TOUPPER (i))
4709       return 2;
4710   return 0;
4711 }
4712 _ACEOF
4713 rm -f conftest$ac_exeext
4714 if { (ac_try="$ac_link"
4715 case "(($ac_try" in
4716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4717   *) ac_try_echo=$ac_try;;
4718 esac
4719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4720   (eval "$ac_link") 2>&5
4721   ac_status=$?
4722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4723   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4724   { (case "(($ac_try" in
4725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4726   *) ac_try_echo=$ac_try;;
4727 esac
4728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4729   (eval "$ac_try") 2>&5
4730   ac_status=$?
4731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4732   (exit $ac_status); }; }; then
4733   :
4734 else
4735   echo "$as_me: program exited with status $ac_status" >&5
4736 echo "$as_me: failed program was:" >&5
4737 sed 's/^/| /' conftest.$ac_ext >&5
4738
4739 ( exit $ac_status )
4740 ac_cv_header_stdc=no
4741 fi
4742 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4743 fi
4744
4745
4746 fi
4747 fi
4748 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4749 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4750 if test $ac_cv_header_stdc = yes; then
4751
4752 cat >>confdefs.h <<\_ACEOF
4753 #define STDC_HEADERS 1
4754 _ACEOF
4755
4756 fi
4757
4758 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4769                   inttypes.h stdint.h unistd.h
4770 do
4771 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4772 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4773 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4774 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4775   echo $ECHO_N "(cached) $ECHO_C" >&6
4776 else
4777   cat >conftest.$ac_ext <<_ACEOF
4778 /* confdefs.h.  */
4779 _ACEOF
4780 cat confdefs.h >>conftest.$ac_ext
4781 cat >>conftest.$ac_ext <<_ACEOF
4782 /* end confdefs.h.  */
4783 $ac_includes_default
4784
4785 #include <$ac_header>
4786 _ACEOF
4787 rm -f conftest.$ac_objext
4788 if { (ac_try="$ac_compile"
4789 case "(($ac_try" in
4790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4791   *) ac_try_echo=$ac_try;;
4792 esac
4793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4794   (eval "$ac_compile") 2>conftest.er1
4795   ac_status=$?
4796   grep -v '^ *+' conftest.er1 >conftest.err
4797   rm -f conftest.er1
4798   cat conftest.err >&5
4799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4800   (exit $ac_status); } && {
4801          test -z "$ac_c_werror_flag" ||
4802          test ! -s conftest.err
4803        } && test -s conftest.$ac_objext; then
4804   eval "$as_ac_Header=yes"
4805 else
4806   echo "$as_me: failed program was:" >&5
4807 sed 's/^/| /' conftest.$ac_ext >&5
4808
4809         eval "$as_ac_Header=no"
4810 fi
4811
4812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4813 fi
4814 ac_res=`eval echo '${'$as_ac_Header'}'`
4815                { echo "$as_me:$LINENO: result: $ac_res" >&5
4816 echo "${ECHO_T}$ac_res" >&6; }
4817 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4818   cat >>confdefs.h <<_ACEOF
4819 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4820 _ACEOF
4821
4822 fi
4823
4824 done
4825
4826
4827
4828 for ac_header in dlfcn.h
4829 do
4830 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4831 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4832   { echo "$as_me:$LINENO: checking for $ac_header" >&5
4833 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4834 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4835   echo $ECHO_N "(cached) $ECHO_C" >&6
4836 fi
4837 ac_res=`eval echo '${'$as_ac_Header'}'`
4838                { echo "$as_me:$LINENO: result: $ac_res" >&5
4839 echo "${ECHO_T}$ac_res" >&6; }
4840 else
4841   # Is the header compilable?
4842 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4843 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4844 cat >conftest.$ac_ext <<_ACEOF
4845 /* confdefs.h.  */
4846 _ACEOF
4847 cat confdefs.h >>conftest.$ac_ext
4848 cat >>conftest.$ac_ext <<_ACEOF
4849 /* end confdefs.h.  */
4850 $ac_includes_default
4851 #include <$ac_header>
4852 _ACEOF
4853 rm -f conftest.$ac_objext
4854 if { (ac_try="$ac_compile"
4855 case "(($ac_try" in
4856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4857   *) ac_try_echo=$ac_try;;
4858 esac
4859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4860   (eval "$ac_compile") 2>conftest.er1
4861   ac_status=$?
4862   grep -v '^ *+' conftest.er1 >conftest.err
4863   rm -f conftest.er1
4864   cat conftest.err >&5
4865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4866   (exit $ac_status); } && {
4867          test -z "$ac_c_werror_flag" ||
4868          test ! -s conftest.err
4869        } && test -s conftest.$ac_objext; then
4870   ac_header_compiler=yes
4871 else
4872   echo "$as_me: failed program was:" >&5
4873 sed 's/^/| /' conftest.$ac_ext >&5
4874
4875         ac_header_compiler=no
4876 fi
4877
4878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4879 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4880 echo "${ECHO_T}$ac_header_compiler" >&6; }
4881
4882 # Is the header present?
4883 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4884 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4885 cat >conftest.$ac_ext <<_ACEOF
4886 /* confdefs.h.  */
4887 _ACEOF
4888 cat confdefs.h >>conftest.$ac_ext
4889 cat >>conftest.$ac_ext <<_ACEOF
4890 /* end confdefs.h.  */
4891 #include <$ac_header>
4892 _ACEOF
4893 if { (ac_try="$ac_cpp conftest.$ac_ext"
4894 case "(($ac_try" in
4895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4896   *) ac_try_echo=$ac_try;;
4897 esac
4898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4899   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4900   ac_status=$?
4901   grep -v '^ *+' conftest.er1 >conftest.err
4902   rm -f conftest.er1
4903   cat conftest.err >&5
4904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4905   (exit $ac_status); } >/dev/null && {
4906          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4907          test ! -s conftest.err
4908        }; then
4909   ac_header_preproc=yes
4910 else
4911   echo "$as_me: failed program was:" >&5
4912 sed 's/^/| /' conftest.$ac_ext >&5
4913
4914   ac_header_preproc=no
4915 fi
4916
4917 rm -f conftest.err conftest.$ac_ext
4918 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4919 echo "${ECHO_T}$ac_header_preproc" >&6; }
4920
4921 # So?  What about this header?
4922 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4923   yes:no: )
4924     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4925 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4926     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4927 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4928     ac_header_preproc=yes
4929     ;;
4930   no:yes:* )
4931     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4932 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4933     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4934 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4935     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4936 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4937     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4938 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4939     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4940 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4941     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4942 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4943
4944     ;;
4945 esac
4946 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4947 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4948 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4949   echo $ECHO_N "(cached) $ECHO_C" >&6
4950 else
4951   eval "$as_ac_Header=\$ac_header_preproc"
4952 fi
4953 ac_res=`eval echo '${'$as_ac_Header'}'`
4954                { echo "$as_me:$LINENO: result: $ac_res" >&5
4955 echo "${ECHO_T}$ac_res" >&6; }
4956
4957 fi
4958 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4959   cat >>confdefs.h <<_ACEOF
4960 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4961 _ACEOF
4962
4963 fi
4964
4965 done
4966
4967 ac_ext=cpp
4968 ac_cpp='$CXXCPP $CPPFLAGS'
4969 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4970 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4971 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4972 if test -z "$CXX"; then
4973   if test -n "$CCC"; then
4974     CXX=$CCC
4975   else
4976     if test -n "$ac_tool_prefix"; then
4977   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4978   do
4979     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4980 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4981 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4983 if test "${ac_cv_prog_CXX+set}" = set; then
4984   echo $ECHO_N "(cached) $ECHO_C" >&6
4985 else
4986   if test -n "$CXX"; then
4987   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4988 else
4989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4990 for as_dir in $PATH
4991 do
4992   IFS=$as_save_IFS
4993   test -z "$as_dir" && as_dir=.
4994   for ac_exec_ext in '' $ac_executable_extensions; do
4995   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4996     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4997     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4998     break 2
4999   fi
5000 done
5001 done
5002 IFS=$as_save_IFS
5003
5004 fi
5005 fi
5006 CXX=$ac_cv_prog_CXX
5007 if test -n "$CXX"; then
5008   { echo "$as_me:$LINENO: result: $CXX" >&5
5009 echo "${ECHO_T}$CXX" >&6; }
5010 else
5011   { echo "$as_me:$LINENO: result: no" >&5
5012 echo "${ECHO_T}no" >&6; }
5013 fi
5014
5015
5016     test -n "$CXX" && break
5017   done
5018 fi
5019 if test -z "$CXX"; then
5020   ac_ct_CXX=$CXX
5021   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5022 do
5023   # Extract the first word of "$ac_prog", so it can be a program name with args.
5024 set dummy $ac_prog; ac_word=$2
5025 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5027 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5028   echo $ECHO_N "(cached) $ECHO_C" >&6
5029 else
5030   if test -n "$ac_ct_CXX"; then
5031   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5032 else
5033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5034 for as_dir in $PATH
5035 do
5036   IFS=$as_save_IFS
5037   test -z "$as_dir" && as_dir=.
5038   for ac_exec_ext in '' $ac_executable_extensions; do
5039   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5040     ac_cv_prog_ac_ct_CXX="$ac_prog"
5041     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5042     break 2
5043   fi
5044 done
5045 done
5046 IFS=$as_save_IFS
5047
5048 fi
5049 fi
5050 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5051 if test -n "$ac_ct_CXX"; then
5052   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5053 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5054 else
5055   { echo "$as_me:$LINENO: result: no" >&5
5056 echo "${ECHO_T}no" >&6; }
5057 fi
5058
5059
5060   test -n "$ac_ct_CXX" && break
5061 done
5062
5063   if test "x$ac_ct_CXX" = x; then
5064     CXX="g++"
5065   else
5066     case $cross_compiling:$ac_tool_warned in
5067 yes:)
5068 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5069 whose name does not start with the host triplet.  If you think this
5070 configuration is useful to you, please write to autoconf@gnu.org." >&5
5071 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5072 whose name does not start with the host triplet.  If you think this
5073 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5074 ac_tool_warned=yes ;;
5075 esac
5076     CXX=$ac_ct_CXX
5077   fi
5078 fi
5079
5080   fi
5081 fi
5082 # Provide some information about the compiler.
5083 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5084 ac_compiler=`set X $ac_compile; echo $2`
5085 { (ac_try="$ac_compiler --version >&5"
5086 case "(($ac_try" in
5087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5088   *) ac_try_echo=$ac_try;;
5089 esac
5090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5091   (eval "$ac_compiler --version >&5") 2>&5
5092   ac_status=$?
5093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5094   (exit $ac_status); }
5095 { (ac_try="$ac_compiler -v >&5"
5096 case "(($ac_try" in
5097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5098   *) ac_try_echo=$ac_try;;
5099 esac
5100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5101   (eval "$ac_compiler -v >&5") 2>&5
5102   ac_status=$?
5103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5104   (exit $ac_status); }
5105 { (ac_try="$ac_compiler -V >&5"
5106 case "(($ac_try" in
5107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5108   *) ac_try_echo=$ac_try;;
5109 esac
5110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5111   (eval "$ac_compiler -V >&5") 2>&5
5112   ac_status=$?
5113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5114   (exit $ac_status); }
5115
5116 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5117 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5118 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5119   echo $ECHO_N "(cached) $ECHO_C" >&6
5120 else
5121   cat >conftest.$ac_ext <<_ACEOF
5122 /* confdefs.h.  */
5123 _ACEOF
5124 cat confdefs.h >>conftest.$ac_ext
5125 cat >>conftest.$ac_ext <<_ACEOF
5126 /* end confdefs.h.  */
5127
5128 int
5129 main ()
5130 {
5131 #ifndef __GNUC__
5132        choke me
5133 #endif
5134
5135   ;
5136   return 0;
5137 }
5138 _ACEOF
5139 rm -f conftest.$ac_objext
5140 if { (ac_try="$ac_compile"
5141 case "(($ac_try" in
5142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5143   *) ac_try_echo=$ac_try;;
5144 esac
5145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5146   (eval "$ac_compile") 2>conftest.er1
5147   ac_status=$?
5148   grep -v '^ *+' conftest.er1 >conftest.err
5149   rm -f conftest.er1
5150   cat conftest.err >&5
5151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5152   (exit $ac_status); } && {
5153          test -z "$ac_cxx_werror_flag" ||
5154          test ! -s conftest.err
5155        } && test -s conftest.$ac_objext; then
5156   ac_compiler_gnu=yes
5157 else
5158   echo "$as_me: failed program was:" >&5
5159 sed 's/^/| /' conftest.$ac_ext >&5
5160
5161         ac_compiler_gnu=no
5162 fi
5163
5164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5165 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5166
5167 fi
5168 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5169 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5170 GXX=`test $ac_compiler_gnu = yes && echo yes`
5171 ac_test_CXXFLAGS=${CXXFLAGS+set}
5172 ac_save_CXXFLAGS=$CXXFLAGS
5173 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5174 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5175 if test "${ac_cv_prog_cxx_g+set}" = set; then
5176   echo $ECHO_N "(cached) $ECHO_C" >&6
5177 else
5178   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5179    ac_cxx_werror_flag=yes
5180    ac_cv_prog_cxx_g=no
5181    CXXFLAGS="-g"
5182    cat >conftest.$ac_ext <<_ACEOF
5183 /* confdefs.h.  */
5184 _ACEOF
5185 cat confdefs.h >>conftest.$ac_ext
5186 cat >>conftest.$ac_ext <<_ACEOF
5187 /* end confdefs.h.  */
5188
5189 int
5190 main ()
5191 {
5192
5193   ;
5194   return 0;
5195 }
5196 _ACEOF
5197 rm -f conftest.$ac_objext
5198 if { (ac_try="$ac_compile"
5199 case "(($ac_try" in
5200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5201   *) ac_try_echo=$ac_try;;
5202 esac
5203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5204   (eval "$ac_compile") 2>conftest.er1
5205   ac_status=$?
5206   grep -v '^ *+' conftest.er1 >conftest.err
5207   rm -f conftest.er1
5208   cat conftest.err >&5
5209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5210   (exit $ac_status); } && {
5211          test -z "$ac_cxx_werror_flag" ||
5212          test ! -s conftest.err
5213        } && test -s conftest.$ac_objext; then
5214   ac_cv_prog_cxx_g=yes
5215 else
5216   echo "$as_me: failed program was:" >&5
5217 sed 's/^/| /' conftest.$ac_ext >&5
5218
5219         CXXFLAGS=""
5220       cat >conftest.$ac_ext <<_ACEOF
5221 /* confdefs.h.  */
5222 _ACEOF
5223 cat confdefs.h >>conftest.$ac_ext
5224 cat >>conftest.$ac_ext <<_ACEOF
5225 /* end confdefs.h.  */
5226
5227 int
5228 main ()
5229 {
5230
5231   ;
5232   return 0;
5233 }
5234 _ACEOF
5235 rm -f conftest.$ac_objext
5236 if { (ac_try="$ac_compile"
5237 case "(($ac_try" in
5238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5239   *) ac_try_echo=$ac_try;;
5240 esac
5241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5242   (eval "$ac_compile") 2>conftest.er1
5243   ac_status=$?
5244   grep -v '^ *+' conftest.er1 >conftest.err
5245   rm -f conftest.er1
5246   cat conftest.err >&5
5247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5248   (exit $ac_status); } && {
5249          test -z "$ac_cxx_werror_flag" ||
5250          test ! -s conftest.err
5251        } && test -s conftest.$ac_objext; then
5252   :
5253 else
5254   echo "$as_me: failed program was:" >&5
5255 sed 's/^/| /' conftest.$ac_ext >&5
5256
5257         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5258          CXXFLAGS="-g"
5259          cat >conftest.$ac_ext <<_ACEOF
5260 /* confdefs.h.  */
5261 _ACEOF
5262 cat confdefs.h >>conftest.$ac_ext
5263 cat >>conftest.$ac_ext <<_ACEOF
5264 /* end confdefs.h.  */
5265
5266 int
5267 main ()
5268 {
5269
5270   ;
5271   return 0;
5272 }
5273 _ACEOF
5274 rm -f conftest.$ac_objext
5275 if { (ac_try="$ac_compile"
5276 case "(($ac_try" in
5277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5278   *) ac_try_echo=$ac_try;;
5279 esac
5280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5281   (eval "$ac_compile") 2>conftest.er1
5282   ac_status=$?
5283   grep -v '^ *+' conftest.er1 >conftest.err
5284   rm -f conftest.er1
5285   cat conftest.err >&5
5286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5287   (exit $ac_status); } && {
5288          test -z "$ac_cxx_werror_flag" ||
5289          test ! -s conftest.err
5290        } && test -s conftest.$ac_objext; then
5291   ac_cv_prog_cxx_g=yes
5292 else
5293   echo "$as_me: failed program was:" >&5
5294 sed 's/^/| /' conftest.$ac_ext >&5
5295
5296
5297 fi
5298
5299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5300 fi
5301
5302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5303 fi
5304
5305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5306    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5307 fi
5308 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5309 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5310 if test "$ac_test_CXXFLAGS" = set; then
5311   CXXFLAGS=$ac_save_CXXFLAGS
5312 elif test $ac_cv_prog_cxx_g = yes; then
5313   if test "$GXX" = yes; then
5314     CXXFLAGS="-g -O2"
5315   else
5316     CXXFLAGS="-g"
5317   fi
5318 else
5319   if test "$GXX" = yes; then
5320     CXXFLAGS="-O2"
5321   else
5322     CXXFLAGS=
5323   fi
5324 fi
5325 ac_ext=cpp
5326 ac_cpp='$CXXCPP $CPPFLAGS'
5327 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5328 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5329 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5330
5331 ac_ext=cpp
5332 ac_cpp='$CXXCPP $CPPFLAGS'
5333 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5334 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5335 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5336 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5337 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5338 if test -z "$CXXCPP"; then
5339   if test "${ac_cv_prog_CXXCPP+set}" = set; then
5340   echo $ECHO_N "(cached) $ECHO_C" >&6
5341 else
5342       # Double quotes because CXXCPP needs to be expanded
5343     for CXXCPP in "$CXX -E" "/lib/cpp"
5344     do
5345       ac_preproc_ok=false
5346 for ac_cxx_preproc_warn_flag in '' yes
5347 do
5348   # Use a header file that comes with gcc, so configuring glibc
5349   # with a fresh cross-compiler works.
5350   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5351   # <limits.h> exists even on freestanding compilers.
5352   # On the NeXT, cc -E runs the code through the compiler's parser,
5353   # not just through cpp. "Syntax error" is here to catch this case.
5354   cat >conftest.$ac_ext <<_ACEOF
5355 /* confdefs.h.  */
5356 _ACEOF
5357 cat confdefs.h >>conftest.$ac_ext
5358 cat >>conftest.$ac_ext <<_ACEOF
5359 /* end confdefs.h.  */
5360 #ifdef __STDC__
5361 # include <limits.h>
5362 #else
5363 # include <assert.h>
5364 #endif
5365                      Syntax error
5366 _ACEOF
5367 if { (ac_try="$ac_cpp conftest.$ac_ext"
5368 case "(($ac_try" in
5369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5370   *) ac_try_echo=$ac_try;;
5371 esac
5372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5373   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5374   ac_status=$?
5375   grep -v '^ *+' conftest.er1 >conftest.err
5376   rm -f conftest.er1
5377   cat conftest.err >&5
5378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5379   (exit $ac_status); } >/dev/null && {
5380          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5381          test ! -s conftest.err
5382        }; then
5383   :
5384 else
5385   echo "$as_me: failed program was:" >&5
5386 sed 's/^/| /' conftest.$ac_ext >&5
5387
5388   # Broken: fails on valid input.
5389 continue
5390 fi
5391
5392 rm -f conftest.err conftest.$ac_ext
5393
5394   # OK, works on sane cases.  Now check whether nonexistent headers
5395   # can be detected and how.
5396   cat >conftest.$ac_ext <<_ACEOF
5397 /* confdefs.h.  */
5398 _ACEOF
5399 cat confdefs.h >>conftest.$ac_ext
5400 cat >>conftest.$ac_ext <<_ACEOF
5401 /* end confdefs.h.  */
5402 #include <ac_nonexistent.h>
5403 _ACEOF
5404 if { (ac_try="$ac_cpp conftest.$ac_ext"
5405 case "(($ac_try" in
5406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5407   *) ac_try_echo=$ac_try;;
5408 esac
5409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5410   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5411   ac_status=$?
5412   grep -v '^ *+' conftest.er1 >conftest.err
5413   rm -f conftest.er1
5414   cat conftest.err >&5
5415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5416   (exit $ac_status); } >/dev/null && {
5417          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5418          test ! -s conftest.err
5419        }; then
5420   # Broken: success on invalid input.
5421 continue
5422 else
5423   echo "$as_me: failed program was:" >&5
5424 sed 's/^/| /' conftest.$ac_ext >&5
5425
5426   # Passes both tests.
5427 ac_preproc_ok=:
5428 break
5429 fi
5430
5431 rm -f conftest.err conftest.$ac_ext
5432
5433 done
5434 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5435 rm -f conftest.err conftest.$ac_ext
5436 if $ac_preproc_ok; then
5437   break
5438 fi
5439
5440     done
5441     ac_cv_prog_CXXCPP=$CXXCPP
5442
5443 fi
5444   CXXCPP=$ac_cv_prog_CXXCPP
5445 else
5446   ac_cv_prog_CXXCPP=$CXXCPP
5447 fi
5448 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5449 echo "${ECHO_T}$CXXCPP" >&6; }
5450 ac_preproc_ok=false
5451 for ac_cxx_preproc_warn_flag in '' yes
5452 do
5453   # Use a header file that comes with gcc, so configuring glibc
5454   # with a fresh cross-compiler works.
5455   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5456   # <limits.h> exists even on freestanding compilers.
5457   # On the NeXT, cc -E runs the code through the compiler's parser,
5458   # not just through cpp. "Syntax error" is here to catch this case.
5459   cat >conftest.$ac_ext <<_ACEOF
5460 /* confdefs.h.  */
5461 _ACEOF
5462 cat confdefs.h >>conftest.$ac_ext
5463 cat >>conftest.$ac_ext <<_ACEOF
5464 /* end confdefs.h.  */
5465 #ifdef __STDC__
5466 # include <limits.h>
5467 #else
5468 # include <assert.h>
5469 #endif
5470                      Syntax error
5471 _ACEOF
5472 if { (ac_try="$ac_cpp conftest.$ac_ext"
5473 case "(($ac_try" in
5474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5475   *) ac_try_echo=$ac_try;;
5476 esac
5477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5478   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5479   ac_status=$?
5480   grep -v '^ *+' conftest.er1 >conftest.err
5481   rm -f conftest.er1
5482   cat conftest.err >&5
5483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5484   (exit $ac_status); } >/dev/null && {
5485          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5486          test ! -s conftest.err
5487        }; then
5488   :
5489 else
5490   echo "$as_me: failed program was:" >&5
5491 sed 's/^/| /' conftest.$ac_ext >&5
5492
5493   # Broken: fails on valid input.
5494 continue
5495 fi
5496
5497 rm -f conftest.err conftest.$ac_ext
5498
5499   # OK, works on sane cases.  Now check whether nonexistent headers
5500   # can be detected and how.
5501   cat >conftest.$ac_ext <<_ACEOF
5502 /* confdefs.h.  */
5503 _ACEOF
5504 cat confdefs.h >>conftest.$ac_ext
5505 cat >>conftest.$ac_ext <<_ACEOF
5506 /* end confdefs.h.  */
5507 #include <ac_nonexistent.h>
5508 _ACEOF
5509 if { (ac_try="$ac_cpp conftest.$ac_ext"
5510 case "(($ac_try" in
5511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5512   *) ac_try_echo=$ac_try;;
5513 esac
5514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5515   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5516   ac_status=$?
5517   grep -v '^ *+' conftest.er1 >conftest.err
5518   rm -f conftest.er1
5519   cat conftest.err >&5
5520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5521   (exit $ac_status); } >/dev/null && {
5522          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5523          test ! -s conftest.err
5524        }; then
5525   # Broken: success on invalid input.
5526 continue
5527 else
5528   echo "$as_me: failed program was:" >&5
5529 sed 's/^/| /' conftest.$ac_ext >&5
5530
5531   # Passes both tests.
5532 ac_preproc_ok=:
5533 break
5534 fi
5535
5536 rm -f conftest.err conftest.$ac_ext
5537
5538 done
5539 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5540 rm -f conftest.err conftest.$ac_ext
5541 if $ac_preproc_ok; then
5542   :
5543 else
5544   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5545 See \`config.log' for more details." >&5
5546 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5547 See \`config.log' for more details." >&2;}
5548    { (exit 1); exit 1; }; }
5549 fi
5550
5551 ac_ext=cpp
5552 ac_cpp='$CXXCPP $CPPFLAGS'
5553 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5554 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5555 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5556
5557
5558 ac_ext=f
5559 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5560 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5561 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5562 if test -n "$ac_tool_prefix"; then
5563   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
5564   do
5565     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5566 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5567 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5568 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5569 if test "${ac_cv_prog_F77+set}" = set; then
5570   echo $ECHO_N "(cached) $ECHO_C" >&6
5571 else
5572   if test -n "$F77"; then
5573   ac_cv_prog_F77="$F77" # Let the user override the test.
5574 else
5575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5576 for as_dir in $PATH
5577 do
5578   IFS=$as_save_IFS
5579   test -z "$as_dir" && as_dir=.
5580   for ac_exec_ext in '' $ac_executable_extensions; do
5581   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5582     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5583     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5584     break 2
5585   fi
5586 done
5587 done
5588 IFS=$as_save_IFS
5589
5590 fi
5591 fi
5592 F77=$ac_cv_prog_F77
5593 if test -n "$F77"; then
5594   { echo "$as_me:$LINENO: result: $F77" >&5
5595 echo "${ECHO_T}$F77" >&6; }
5596 else
5597   { echo "$as_me:$LINENO: result: no" >&5
5598 echo "${ECHO_T}no" >&6; }
5599 fi
5600
5601
5602     test -n "$F77" && break
5603   done
5604 fi
5605 if test -z "$F77"; then
5606   ac_ct_F77=$F77
5607   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
5608 do
5609   # Extract the first word of "$ac_prog", so it can be a program name with args.
5610 set dummy $ac_prog; ac_word=$2
5611 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5612 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5613 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5614   echo $ECHO_N "(cached) $ECHO_C" >&6
5615 else
5616   if test -n "$ac_ct_F77"; then
5617   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5618 else
5619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5620 for as_dir in $PATH
5621 do
5622   IFS=$as_save_IFS
5623   test -z "$as_dir" && as_dir=.
5624   for ac_exec_ext in '' $ac_executable_extensions; do
5625   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5626     ac_cv_prog_ac_ct_F77="$ac_prog"
5627     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5628     break 2
5629   fi
5630 done
5631 done
5632 IFS=$as_save_IFS
5633
5634 fi
5635 fi
5636 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5637 if test -n "$ac_ct_F77"; then
5638   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5639 echo "${ECHO_T}$ac_ct_F77" >&6; }
5640 else
5641   { echo "$as_me:$LINENO: result: no" >&5
5642 echo "${ECHO_T}no" >&6; }
5643 fi
5644
5645
5646   test -n "$ac_ct_F77" && break
5647 done
5648
5649   if test "x$ac_ct_F77" = x; then
5650     F77=""
5651   else
5652     case $cross_compiling:$ac_tool_warned in
5653 yes:)
5654 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5655 whose name does not start with the host triplet.  If you think this
5656 configuration is useful to you, please write to autoconf@gnu.org." >&5
5657 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5658 whose name does not start with the host triplet.  If you think this
5659 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5660 ac_tool_warned=yes ;;
5661 esac
5662     F77=$ac_ct_F77
5663   fi
5664 fi
5665
5666
5667 # Provide some information about the compiler.
5668 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5669 ac_compiler=`set X $ac_compile; echo $2`
5670 { (ac_try="$ac_compiler --version >&5"
5671 case "(($ac_try" in
5672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5673   *) ac_try_echo=$ac_try;;
5674 esac
5675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5676   (eval "$ac_compiler --version >&5") 2>&5
5677   ac_status=$?
5678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5679   (exit $ac_status); }
5680 { (ac_try="$ac_compiler -v >&5"
5681 case "(($ac_try" in
5682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5683   *) ac_try_echo=$ac_try;;
5684 esac
5685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5686   (eval "$ac_compiler -v >&5") 2>&5
5687   ac_status=$?
5688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5689   (exit $ac_status); }
5690 { (ac_try="$ac_compiler -V >&5"
5691 case "(($ac_try" in
5692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5693   *) ac_try_echo=$ac_try;;
5694 esac
5695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5696   (eval "$ac_compiler -V >&5") 2>&5
5697   ac_status=$?
5698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5699   (exit $ac_status); }
5700 rm -f a.out
5701
5702 # If we don't use `.F' as extension, the preprocessor is not run on the
5703 # input file.  (Note that this only needs to work for GNU compilers.)
5704 ac_save_ext=$ac_ext
5705 ac_ext=F
5706 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5707 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
5708 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5709   echo $ECHO_N "(cached) $ECHO_C" >&6
5710 else
5711   cat >conftest.$ac_ext <<_ACEOF
5712       program main
5713 #ifndef __GNUC__
5714        choke me
5715 #endif
5716
5717       end
5718 _ACEOF
5719 rm -f conftest.$ac_objext
5720 if { (ac_try="$ac_compile"
5721 case "(($ac_try" in
5722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5723   *) ac_try_echo=$ac_try;;
5724 esac
5725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5726   (eval "$ac_compile") 2>conftest.er1
5727   ac_status=$?
5728   grep -v '^ *+' conftest.er1 >conftest.err
5729   rm -f conftest.er1
5730   cat conftest.err >&5
5731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5732   (exit $ac_status); } && {
5733          test -z "$ac_f77_werror_flag" ||
5734          test ! -s conftest.err
5735        } && test -s conftest.$ac_objext; then
5736   ac_compiler_gnu=yes
5737 else
5738   echo "$as_me: failed program was:" >&5
5739 sed 's/^/| /' conftest.$ac_ext >&5
5740
5741         ac_compiler_gnu=no
5742 fi
5743
5744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5745 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5746
5747 fi
5748 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5749 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
5750 ac_ext=$ac_save_ext
5751 ac_test_FFLAGS=${FFLAGS+set}
5752 ac_save_FFLAGS=$FFLAGS
5753 FFLAGS=
5754 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5755 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
5756 if test "${ac_cv_prog_f77_g+set}" = set; then
5757   echo $ECHO_N "(cached) $ECHO_C" >&6
5758 else
5759   FFLAGS=-g
5760 cat >conftest.$ac_ext <<_ACEOF
5761       program main
5762
5763       end
5764 _ACEOF
5765 rm -f conftest.$ac_objext
5766 if { (ac_try="$ac_compile"
5767 case "(($ac_try" in
5768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5769   *) ac_try_echo=$ac_try;;
5770 esac
5771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5772   (eval "$ac_compile") 2>conftest.er1
5773   ac_status=$?
5774   grep -v '^ *+' conftest.er1 >conftest.err
5775   rm -f conftest.er1
5776   cat conftest.err >&5
5777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5778   (exit $ac_status); } && {
5779          test -z "$ac_f77_werror_flag" ||
5780          test ! -s conftest.err
5781        } && test -s conftest.$ac_objext; then
5782   ac_cv_prog_f77_g=yes
5783 else
5784   echo "$as_me: failed program was:" >&5
5785 sed 's/^/| /' conftest.$ac_ext >&5
5786
5787         ac_cv_prog_f77_g=no
5788 fi
5789
5790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5791
5792 fi
5793 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5794 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
5795 if test "$ac_test_FFLAGS" = set; then
5796   FFLAGS=$ac_save_FFLAGS
5797 elif test $ac_cv_prog_f77_g = yes; then
5798   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5799     FFLAGS="-g -O2"
5800   else
5801     FFLAGS="-g"
5802   fi
5803 else
5804   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5805     FFLAGS="-O2"
5806   else
5807     FFLAGS=
5808   fi
5809 fi
5810
5811 G77=`test $ac_compiler_gnu = yes && echo yes`
5812 ac_ext=c
5813 ac_cpp='$CPP $CPPFLAGS'
5814 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5815 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5816 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5817
5818
5819
5820 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5821
5822 # find the maximum length of command line arguments
5823 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5824 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
5825 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5826   echo $ECHO_N "(cached) $ECHO_C" >&6
5827 else
5828     i=0
5829   teststring="ABCD"
5830
5831   case $build_os in
5832   msdosdjgpp*)
5833     # On DJGPP, this test can blow up pretty badly due to problems in libc
5834     # (any single argument exceeding 2000 bytes causes a buffer overrun
5835     # during glob expansion).  Even if it were fixed, the result of this
5836     # check would be larger than it should be.
5837     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5838     ;;
5839
5840   gnu*)
5841     # Under GNU Hurd, this test is not required because there is
5842     # no limit to the length of command line arguments.
5843     # Libtool will interpret -1 as no limit whatsoever
5844     lt_cv_sys_max_cmd_len=-1;
5845     ;;
5846
5847   cygwin* | mingw*)
5848     # On Win9x/ME, this test blows up -- it succeeds, but takes
5849     # about 5 minutes as the teststring grows exponentially.
5850     # Worse, since 9x/ME are not pre-emptively multitasking,
5851     # you end up with a "frozen" computer, even though with patience
5852     # the test eventually succeeds (with a max line length of 256k).
5853     # Instead, let's just punt: use the minimum linelength reported by
5854     # all of the supported platforms: 8192 (on NT/2K/XP).
5855     lt_cv_sys_max_cmd_len=8192;
5856     ;;
5857
5858   amigaos*)
5859     # On AmigaOS with pdksh, this test takes hours, literally.
5860     # So we just punt and use a minimum line length of 8192.
5861     lt_cv_sys_max_cmd_len=8192;
5862     ;;
5863
5864  *)
5865     # If test is not a shell built-in, we'll probably end up computing a
5866     # maximum length that is only half of the actual maximum length, but
5867     # we can't tell.
5868     while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5869                = "XX$teststring") >/dev/null 2>&1 &&
5870             new_result=`expr "X$teststring" : ".*" 2>&1` &&
5871             lt_cv_sys_max_cmd_len=$new_result &&
5872             test $i != 17 # 1/2 MB should be enough
5873     do
5874       i=`expr $i + 1`
5875       teststring=$teststring$teststring
5876     done
5877     teststring=
5878     # Add a significant safety factor because C++ compilers can tack on massive
5879     # amounts of additional arguments before passing them to the linker.
5880     # It appears as though 1/2 is a usable value.
5881     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5882     ;;
5883   esac
5884
5885 fi
5886
5887 if test -n $lt_cv_sys_max_cmd_len ; then
5888   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5889 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
5890 else
5891   { echo "$as_me:$LINENO: result: none" >&5
5892 echo "${ECHO_T}none" >&6; }
5893 fi
5894
5895
5896
5897
5898 # Check for command to grab the raw symbol name followed by C symbol from nm.
5899 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5900 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
5901 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5902   echo $ECHO_N "(cached) $ECHO_C" >&6
5903 else
5904
5905 # These are sane defaults that work on at least a few old systems.
5906 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5907
5908 # Character class describing NM global symbol codes.
5909 symcode='[BCDEGRST]'
5910
5911 # Regexp to match symbols that can be accessed directly from C.
5912 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5913
5914 # Transform the above into a raw symbol and a C symbol.
5915 symxfrm='\1 \2\3 \3'
5916
5917 # Transform an extracted symbol line into a proper C declaration
5918 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5919
5920 # Transform an extracted symbol line into symbol name and symbol address
5921 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'"
5922
5923 # Define system-specific variables.
5924 case $host_os in
5925 aix*)
5926   symcode='[BCDT]'
5927   ;;
5928 cygwin* | mingw* | pw32*)
5929   symcode='[ABCDGISTW]'
5930   ;;
5931 hpux*) # Its linker distinguishes data from code symbols
5932   if test "$host_cpu" = ia64; then
5933     symcode='[ABCDEGRST]'
5934   fi
5935   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5936   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'"
5937   ;;
5938 irix* | nonstopux*)
5939   symcode='[BCDEGRST]'
5940   ;;
5941 osf*)
5942   symcode='[BCDEGQRST]'
5943   ;;
5944 solaris* | sysv5*)
5945   symcode='[BDRT]'
5946   ;;
5947 sysv4)
5948   symcode='[DFNSTU]'
5949   ;;
5950 esac
5951
5952 # Handle CRLF in mingw tool chain
5953 opt_cr=
5954 case $build_os in
5955 mingw*)
5956   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5957   ;;
5958 esac
5959
5960 # If we're using GNU nm, then use its standard symbol codes.
5961 case `$NM -V 2>&1` in
5962 *GNU* | *'with BFD'*)
5963   symcode='[ABCDGIRSTW]' ;;
5964 esac
5965
5966 # Try without a prefix undercore, then with it.
5967 for ac_symprfx in "" "_"; do
5968
5969   # Write the raw and C identifiers.
5970   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5971
5972   # Check to see that the pipe works correctly.
5973   pipe_works=no
5974
5975   rm -f conftest*
5976   cat > conftest.$ac_ext <<EOF
5977 #ifdef __cplusplus
5978 extern "C" {
5979 #endif
5980 char nm_test_var;
5981 void nm_test_func(){}
5982 #ifdef __cplusplus
5983 }
5984 #endif
5985 int main(){nm_test_var='a';nm_test_func();return(0);}
5986 EOF
5987
5988   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5989   (eval $ac_compile) 2>&5
5990   ac_status=$?
5991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5992   (exit $ac_status); }; then
5993     # Now try to grab the symbols.
5994     nlist=conftest.nm
5995     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5996   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5997   ac_status=$?
5998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5999   (exit $ac_status); } && test -s "$nlist"; then
6000       # Try sorting and uniquifying the output.
6001       if sort "$nlist" | uniq > "$nlist"T; then
6002         mv -f "$nlist"T "$nlist"
6003       else
6004         rm -f "$nlist"T
6005       fi
6006
6007       # Make sure that we snagged all the symbols we need.
6008       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6009         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6010           cat <<EOF > conftest.$ac_ext
6011 #ifdef __cplusplus
6012 extern "C" {
6013 #endif
6014
6015 EOF
6016           # Now generate the symbol file.
6017           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6018
6019           cat <<EOF >> conftest.$ac_ext
6020 #if defined (__STDC__) && __STDC__
6021 # define lt_ptr_t void *
6022 #else
6023 # define lt_ptr_t char *
6024 # define const
6025 #endif
6026
6027 /* The mapping between symbol names and symbols. */
6028 const struct {
6029   const char *name;
6030   lt_ptr_t address;
6031 }
6032 lt_preloaded_symbols[] =
6033 {
6034 EOF
6035           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6036           cat <<\EOF >> conftest.$ac_ext
6037   {0, (lt_ptr_t) 0}
6038 };
6039
6040 #ifdef __cplusplus
6041 }
6042 #endif
6043 EOF
6044           # Now try linking the two files.
6045           mv conftest.$ac_objext conftstm.$ac_objext
6046           lt_save_LIBS="$LIBS"
6047           lt_save_CFLAGS="$CFLAGS"
6048           LIBS="conftstm.$ac_objext"
6049           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6050           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6051   (eval $ac_link) 2>&5
6052   ac_status=$?
6053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6054   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6055             pipe_works=yes
6056           fi
6057           LIBS="$lt_save_LIBS"
6058           CFLAGS="$lt_save_CFLAGS"
6059         else
6060           echo "cannot find nm_test_func in $nlist" >&5
6061         fi
6062       else
6063         echo "cannot find nm_test_var in $nlist" >&5
6064       fi
6065     else
6066       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6067     fi
6068   else
6069     echo "$progname: failed program was:" >&5
6070     cat conftest.$ac_ext >&5
6071   fi
6072   rm -f conftest* conftst*
6073
6074   # Do not use the global_symbol_pipe unless it works.
6075   if test "$pipe_works" = yes; then
6076     break
6077   else
6078     lt_cv_sys_global_symbol_pipe=
6079   fi
6080 done
6081
6082 fi
6083
6084 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6085   lt_cv_sys_global_symbol_to_cdecl=
6086 fi
6087 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6088   { echo "$as_me:$LINENO: result: failed" >&5
6089 echo "${ECHO_T}failed" >&6; }
6090 else
6091   { echo "$as_me:$LINENO: result: ok" >&5
6092 echo "${ECHO_T}ok" >&6; }
6093 fi
6094
6095 { echo "$as_me:$LINENO: checking for objdir" >&5
6096 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6097 if test "${lt_cv_objdir+set}" = set; then
6098   echo $ECHO_N "(cached) $ECHO_C" >&6
6099 else
6100   rm -f .libs 2>/dev/null
6101 mkdir .libs 2>/dev/null
6102 if test -d .libs; then
6103   lt_cv_objdir=.libs
6104 else
6105   # MS-DOS does not allow filenames that begin with a dot.
6106   lt_cv_objdir=_libs
6107 fi
6108 rmdir .libs 2>/dev/null
6109 fi
6110 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6111 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6112 objdir=$lt_cv_objdir
6113
6114
6115
6116
6117
6118 case $host_os in
6119 aix3*)
6120   # AIX sometimes has problems with the GCC collect2 program.  For some
6121   # reason, if we set the COLLECT_NAMES environment variable, the problems
6122   # vanish in a puff of smoke.
6123   if test "X${COLLECT_NAMES+set}" != Xset; then
6124     COLLECT_NAMES=
6125     export COLLECT_NAMES
6126   fi
6127   ;;
6128 esac
6129
6130 # Sed substitution that helps us do robust quoting.  It backslashifies
6131 # metacharacters that are still active within double-quoted strings.
6132 Xsed='sed -e s/^X//'
6133 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6134
6135 # Same as above, but do not quote variable references.
6136 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6137
6138 # Sed substitution to delay expansion of an escaped shell variable in a
6139 # double_quote_subst'ed string.
6140 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6141
6142 # Sed substitution to avoid accidental globbing in evaled expressions
6143 no_glob_subst='s/\*/\\\*/g'
6144
6145 # Constants:
6146 rm="rm -f"
6147
6148 # Global variables:
6149 default_ofile=libtool
6150 can_build_shared=yes
6151
6152 # All known linkers require a `.a' archive for static linking (except M$VC,
6153 # which needs '.lib').
6154 libext=a
6155 ltmain="$ac_aux_dir/ltmain.sh"
6156 ofile="$default_ofile"
6157 with_gnu_ld="$lt_cv_prog_gnu_ld"
6158
6159 if test -n "$ac_tool_prefix"; then
6160   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6161 set dummy ${ac_tool_prefix}ar; ac_word=$2
6162 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6163 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6164 if test "${ac_cv_prog_AR+set}" = set; then
6165   echo $ECHO_N "(cached) $ECHO_C" >&6
6166 else
6167   if test -n "$AR"; then
6168   ac_cv_prog_AR="$AR" # Let the user override the test.
6169 else
6170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6171 for as_dir in $PATH
6172 do
6173   IFS=$as_save_IFS
6174   test -z "$as_dir" && as_dir=.
6175   for ac_exec_ext in '' $ac_executable_extensions; do
6176   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6177     ac_cv_prog_AR="${ac_tool_prefix}ar"
6178     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6179     break 2
6180   fi
6181 done
6182 done
6183 IFS=$as_save_IFS
6184
6185 fi
6186 fi
6187 AR=$ac_cv_prog_AR
6188 if test -n "$AR"; then
6189   { echo "$as_me:$LINENO: result: $AR" >&5
6190 echo "${ECHO_T}$AR" >&6; }
6191 else
6192   { echo "$as_me:$LINENO: result: no" >&5
6193 echo "${ECHO_T}no" >&6; }
6194 fi
6195
6196
6197 fi
6198 if test -z "$ac_cv_prog_AR"; then
6199   ac_ct_AR=$AR
6200   # Extract the first word of "ar", so it can be a program name with args.
6201 set dummy ar; ac_word=$2
6202 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6203 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6204 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6205   echo $ECHO_N "(cached) $ECHO_C" >&6
6206 else
6207   if test -n "$ac_ct_AR"; then
6208   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6209 else
6210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6211 for as_dir in $PATH
6212 do
6213   IFS=$as_save_IFS
6214   test -z "$as_dir" && as_dir=.
6215   for ac_exec_ext in '' $ac_executable_extensions; do
6216   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6217     ac_cv_prog_ac_ct_AR="ar"
6218     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6219     break 2
6220   fi
6221 done
6222 done
6223 IFS=$as_save_IFS
6224
6225 fi
6226 fi
6227 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6228 if test -n "$ac_ct_AR"; then
6229   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6230 echo "${ECHO_T}$ac_ct_AR" >&6; }
6231 else
6232   { echo "$as_me:$LINENO: result: no" >&5
6233 echo "${ECHO_T}no" >&6; }
6234 fi
6235
6236   if test "x$ac_ct_AR" = x; then
6237     AR="false"
6238   else
6239     case $cross_compiling:$ac_tool_warned in
6240 yes:)
6241 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6242 whose name does not start with the host triplet.  If you think this
6243 configuration is useful to you, please write to autoconf@gnu.org." >&5
6244 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6245 whose name does not start with the host triplet.  If you think this
6246 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6247 ac_tool_warned=yes ;;
6248 esac
6249     AR=$ac_ct_AR
6250   fi
6251 else
6252   AR="$ac_cv_prog_AR"
6253 fi
6254
6255 if test -n "$ac_tool_prefix"; then
6256   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6257 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6258 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6259 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6260 if test "${ac_cv_prog_RANLIB+set}" = set; then
6261   echo $ECHO_N "(cached) $ECHO_C" >&6
6262 else
6263   if test -n "$RANLIB"; then
6264   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6265 else
6266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6267 for as_dir in $PATH
6268 do
6269   IFS=$as_save_IFS
6270   test -z "$as_dir" && as_dir=.
6271   for ac_exec_ext in '' $ac_executable_extensions; do
6272   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6273     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6274     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6275     break 2
6276   fi
6277 done
6278 done
6279 IFS=$as_save_IFS
6280
6281 fi
6282 fi
6283 RANLIB=$ac_cv_prog_RANLIB
6284 if test -n "$RANLIB"; then
6285   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6286 echo "${ECHO_T}$RANLIB" >&6; }
6287 else
6288   { echo "$as_me:$LINENO: result: no" >&5
6289 echo "${ECHO_T}no" >&6; }
6290 fi
6291
6292
6293 fi
6294 if test -z "$ac_cv_prog_RANLIB"; then
6295   ac_ct_RANLIB=$RANLIB
6296   # Extract the first word of "ranlib", so it can be a program name with args.
6297 set dummy ranlib; ac_word=$2
6298 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6299 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6300 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6301   echo $ECHO_N "(cached) $ECHO_C" >&6
6302 else
6303   if test -n "$ac_ct_RANLIB"; then
6304   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6305 else
6306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6307 for as_dir in $PATH
6308 do
6309   IFS=$as_save_IFS
6310   test -z "$as_dir" && as_dir=.
6311   for ac_exec_ext in '' $ac_executable_extensions; do
6312   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6313     ac_cv_prog_ac_ct_RANLIB="ranlib"
6314     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6315     break 2
6316   fi
6317 done
6318 done
6319 IFS=$as_save_IFS
6320
6321 fi
6322 fi
6323 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6324 if test -n "$ac_ct_RANLIB"; then
6325   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6326 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6327 else
6328   { echo "$as_me:$LINENO: result: no" >&5
6329 echo "${ECHO_T}no" >&6; }
6330 fi
6331
6332   if test "x$ac_ct_RANLIB" = x; then
6333     RANLIB=":"
6334   else
6335     case $cross_compiling:$ac_tool_warned in
6336 yes:)
6337 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6338 whose name does not start with the host triplet.  If you think this
6339 configuration is useful to you, please write to autoconf@gnu.org." >&5
6340 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6341 whose name does not start with the host triplet.  If you think this
6342 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6343 ac_tool_warned=yes ;;
6344 esac
6345     RANLIB=$ac_ct_RANLIB
6346   fi
6347 else
6348   RANLIB="$ac_cv_prog_RANLIB"
6349 fi
6350
6351 if test -n "$ac_tool_prefix"; then
6352   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6353 set dummy ${ac_tool_prefix}strip; ac_word=$2
6354 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6355 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6356 if test "${ac_cv_prog_STRIP+set}" = set; then
6357   echo $ECHO_N "(cached) $ECHO_C" >&6
6358 else
6359   if test -n "$STRIP"; then
6360   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6361 else
6362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6363 for as_dir in $PATH
6364 do
6365   IFS=$as_save_IFS
6366   test -z "$as_dir" && as_dir=.
6367   for ac_exec_ext in '' $ac_executable_extensions; do
6368   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6369     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6370     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6371     break 2
6372   fi
6373 done
6374 done
6375 IFS=$as_save_IFS
6376
6377 fi
6378 fi
6379 STRIP=$ac_cv_prog_STRIP
6380 if test -n "$STRIP"; then
6381   { echo "$as_me:$LINENO: result: $STRIP" >&5
6382 echo "${ECHO_T}$STRIP" >&6; }
6383 else
6384   { echo "$as_me:$LINENO: result: no" >&5
6385 echo "${ECHO_T}no" >&6; }
6386 fi
6387
6388
6389 fi
6390 if test -z "$ac_cv_prog_STRIP"; then
6391   ac_ct_STRIP=$STRIP
6392   # Extract the first word of "strip", so it can be a program name with args.
6393 set dummy strip; ac_word=$2
6394 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6396 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6397   echo $ECHO_N "(cached) $ECHO_C" >&6
6398 else
6399   if test -n "$ac_ct_STRIP"; then
6400   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6401 else
6402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6403 for as_dir in $PATH
6404 do
6405   IFS=$as_save_IFS
6406   test -z "$as_dir" && as_dir=.
6407   for ac_exec_ext in '' $ac_executable_extensions; do
6408   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6409     ac_cv_prog_ac_ct_STRIP="strip"
6410     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6411     break 2
6412   fi
6413 done
6414 done
6415 IFS=$as_save_IFS
6416
6417 fi
6418 fi
6419 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6420 if test -n "$ac_ct_STRIP"; then
6421   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6422 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6423 else
6424   { echo "$as_me:$LINENO: result: no" >&5
6425 echo "${ECHO_T}no" >&6; }
6426 fi
6427
6428   if test "x$ac_ct_STRIP" = x; then
6429     STRIP=":"
6430   else
6431     case $cross_compiling:$ac_tool_warned in
6432 yes:)
6433 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6434 whose name does not start with the host triplet.  If you think this
6435 configuration is useful to you, please write to autoconf@gnu.org." >&5
6436 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6437 whose name does not start with the host triplet.  If you think this
6438 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6439 ac_tool_warned=yes ;;
6440 esac
6441     STRIP=$ac_ct_STRIP
6442   fi
6443 else
6444   STRIP="$ac_cv_prog_STRIP"
6445 fi
6446
6447
6448 old_CC="$CC"
6449 old_CFLAGS="$CFLAGS"
6450
6451 # Set sane defaults for various variables
6452 test -z "$AR" && AR=ar
6453 test -z "$AR_FLAGS" && AR_FLAGS=cru
6454 test -z "$AS" && AS=as
6455 test -z "$CC" && CC=cc
6456 test -z "$LTCC" && LTCC=$CC
6457 test -z "$DLLTOOL" && DLLTOOL=dlltool
6458 test -z "$LD" && LD=ld
6459 test -z "$LN_S" && LN_S="ln -s"
6460 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6461 test -z "$NM" && NM=nm
6462 test -z "$SED" && SED=sed
6463 test -z "$OBJDUMP" && OBJDUMP=objdump
6464 test -z "$RANLIB" && RANLIB=:
6465 test -z "$STRIP" && STRIP=:
6466 test -z "$ac_objext" && ac_objext=o
6467
6468 # Determine commands to create old-style static archives.
6469 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6470 old_postinstall_cmds='chmod 644 $oldlib'
6471 old_postuninstall_cmds=
6472
6473 if test -n "$RANLIB"; then
6474   case $host_os in
6475   openbsd*)
6476     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6477     ;;
6478   *)
6479     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6480     ;;
6481   esac
6482   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6483 fi
6484
6485 # Only perform the check for file, if the check method requires it
6486 case $deplibs_check_method in
6487 file_magic*)
6488   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6489     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6490 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6491 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6492   echo $ECHO_N "(cached) $ECHO_C" >&6
6493 else
6494   case $MAGIC_CMD in
6495 [\\/*] |  ?:[\\/]*)
6496   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6497   ;;
6498 *)
6499   lt_save_MAGIC_CMD="$MAGIC_CMD"
6500   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6501   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6502   for ac_dir in $ac_dummy; do
6503     IFS="$lt_save_ifs"
6504     test -z "$ac_dir" && ac_dir=.
6505     if test -f $ac_dir/${ac_tool_prefix}file; then
6506       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6507       if test -n "$file_magic_test_file"; then
6508         case $deplibs_check_method in
6509         "file_magic "*)
6510           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6511           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6512           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6513             $EGREP "$file_magic_regex" > /dev/null; then
6514             :
6515           else
6516             cat <<EOF 1>&2
6517
6518 *** Warning: the command libtool uses to detect shared libraries,
6519 *** $file_magic_cmd, produces output that libtool cannot recognize.
6520 *** The result is that libtool may fail to recognize shared libraries
6521 *** as such.  This will affect the creation of libtool libraries that
6522 *** depend on shared libraries, but programs linked with such libtool
6523 *** libraries will work regardless of this problem.  Nevertheless, you
6524 *** may want to report the problem to your system manager and/or to
6525 *** bug-libtool@gnu.org
6526
6527 EOF
6528           fi ;;
6529         esac
6530       fi
6531       break
6532     fi
6533   done
6534   IFS="$lt_save_ifs"
6535   MAGIC_CMD="$lt_save_MAGIC_CMD"
6536   ;;
6537 esac
6538 fi
6539
6540 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6541 if test -n "$MAGIC_CMD"; then
6542   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6543 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6544 else
6545   { echo "$as_me:$LINENO: result: no" >&5
6546 echo "${ECHO_T}no" >&6; }
6547 fi
6548
6549 if test -z "$lt_cv_path_MAGIC_CMD"; then
6550   if test -n "$ac_tool_prefix"; then
6551     { echo "$as_me:$LINENO: checking for file" >&5
6552 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6553 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6554   echo $ECHO_N "(cached) $ECHO_C" >&6
6555 else
6556   case $MAGIC_CMD in
6557 [\\/*] |  ?:[\\/]*)
6558   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6559   ;;
6560 *)
6561   lt_save_MAGIC_CMD="$MAGIC_CMD"
6562   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6563   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6564   for ac_dir in $ac_dummy; do
6565     IFS="$lt_save_ifs"
6566     test -z "$ac_dir" && ac_dir=.
6567     if test -f $ac_dir/file; then
6568       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6569       if test -n "$file_magic_test_file"; then
6570         case $deplibs_check_method in
6571         "file_magic "*)
6572           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6573           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6574           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6575             $EGREP "$file_magic_regex" > /dev/null; then
6576             :
6577           else
6578             cat <<EOF 1>&2
6579
6580 *** Warning: the command libtool uses to detect shared libraries,
6581 *** $file_magic_cmd, produces output that libtool cannot recognize.
6582 *** The result is that libtool may fail to recognize shared libraries
6583 *** as such.  This will affect the creation of libtool libraries that
6584 *** depend on shared libraries, but programs linked with such libtool
6585 *** libraries will work regardless of this problem.  Nevertheless, you
6586 *** may want to report the problem to your system manager and/or to
6587 *** bug-libtool@gnu.org
6588
6589 EOF
6590           fi ;;
6591         esac
6592       fi
6593       break
6594     fi
6595   done
6596   IFS="$lt_save_ifs"
6597   MAGIC_CMD="$lt_save_MAGIC_CMD"
6598   ;;
6599 esac
6600 fi
6601
6602 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6603 if test -n "$MAGIC_CMD"; then
6604   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6605 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6606 else
6607   { echo "$as_me:$LINENO: result: no" >&5
6608 echo "${ECHO_T}no" >&6; }
6609 fi
6610
6611   else
6612     MAGIC_CMD=:
6613   fi
6614 fi
6615
6616   fi
6617   ;;
6618 esac
6619
6620 enable_dlopen=no
6621 enable_win32_dll=no
6622
6623 # Check whether --enable-libtool-lock was given.
6624 if test "${enable_libtool_lock+set}" = set; then
6625   enableval=$enable_libtool_lock;
6626 fi
6627
6628 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6629
6630
6631 # Check whether --with-pic was given.
6632 if test "${with_pic+set}" = set; then
6633   withval=$with_pic; pic_mode="$withval"
6634 else
6635   pic_mode=default
6636 fi
6637
6638 test -z "$pic_mode" && pic_mode=default
6639
6640 # Use C for the default configuration in the libtool script
6641 tagname=
6642 lt_save_CC="$CC"
6643 ac_ext=c
6644 ac_cpp='$CPP $CPPFLAGS'
6645 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6646 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6647 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6648
6649
6650 # Source file extension for C test sources.
6651 ac_ext=c
6652
6653 # Object file extension for compiled C test sources.
6654 objext=o
6655 objext=$objext
6656
6657 # Code to be used in simple compile tests
6658 lt_simple_compile_test_code="int some_variable = 0;\n"
6659
6660 # Code to be used in simple link tests
6661 lt_simple_link_test_code='int main(){return(0);}\n'
6662
6663
6664 # If no C compiler was specified, use CC.
6665 LTCC=${LTCC-"$CC"}
6666
6667 # Allow CC to be a program name with arguments.
6668 compiler=$CC
6669
6670
6671 #
6672 # Check for any special shared library compilation flags.
6673 #
6674 lt_prog_cc_shlib=
6675 if test "$GCC" = no; then
6676   case $host_os in
6677   sco3.2v5*)
6678     lt_prog_cc_shlib='-belf'
6679     ;;
6680   esac
6681 fi
6682 if test -n "$lt_prog_cc_shlib"; then
6683   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6684 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6685   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
6686   else
6687     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6688 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6689     lt_cv_prog_cc_can_build_shared=no
6690   fi
6691 fi
6692
6693
6694 #
6695 # Check to make sure the static flag actually works.
6696 #
6697 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6698 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6; }
6699 if test "${lt_prog_compiler_static_works+set}" = set; then
6700   echo $ECHO_N "(cached) $ECHO_C" >&6
6701 else
6702   lt_prog_compiler_static_works=no
6703    save_LDFLAGS="$LDFLAGS"
6704    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6705    printf "$lt_simple_link_test_code" > conftest.$ac_ext
6706    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6707      # The compiler can only warn and ignore the option if not recognized
6708      # So say no if there are warnings
6709      if test -s conftest.err; then
6710        # Append any errors to the config.log.
6711        cat conftest.err 1>&5
6712      else
6713        lt_prog_compiler_static_works=yes
6714      fi
6715    fi
6716    $rm conftest*
6717    LDFLAGS="$save_LDFLAGS"
6718
6719 fi
6720 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6721 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
6722
6723 if test x"$lt_prog_compiler_static_works" = xyes; then
6724     :
6725 else
6726     lt_prog_compiler_static=
6727 fi
6728
6729
6730
6731 ## CAVEAT EMPTOR:
6732 ## There is no encapsulation within the following macros, do not change
6733 ## the running order or otherwise move them around unless you know exactly
6734 ## what you are doing...
6735
6736 lt_prog_compiler_no_builtin_flag=
6737
6738 if test "$GCC" = yes; then
6739   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6740
6741
6742 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6743 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
6744 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6745   echo $ECHO_N "(cached) $ECHO_C" >&6
6746 else
6747   lt_cv_prog_compiler_rtti_exceptions=no
6748   ac_outfile=conftest.$ac_objext
6749    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6750    lt_compiler_flag="-fno-rtti -fno-exceptions"
6751    # Insert the option either (1) after the last *FLAGS variable, or
6752    # (2) before a word containing "conftest.", or (3) at the end.
6753    # Note that $ac_compile itself does not contain backslashes and begins
6754    # with a dollar sign (not a hyphen), so the echo should work correctly.
6755    # The option is referenced via a variable to avoid confusing sed.
6756    lt_compile=`echo "$ac_compile" | $SED \
6757    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6758    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6759    -e 's:$: $lt_compiler_flag:'`
6760    (eval echo "\"\$as_me:6760: $lt_compile\"" >&5)
6761    (eval "$lt_compile" 2>conftest.err)
6762    ac_status=$?
6763    cat conftest.err >&5
6764    echo "$as_me:6764: \$? = $ac_status" >&5
6765    if (exit $ac_status) && test -s "$ac_outfile"; then
6766      # The compiler can only warn and ignore the option if not recognized
6767      # So say no if there are warnings
6768      if test ! -s conftest.err; then
6769        lt_cv_prog_compiler_rtti_exceptions=yes
6770      fi
6771    fi
6772    $rm conftest*
6773
6774 fi
6775 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6776 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
6777
6778 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6779     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6780 else
6781     :
6782 fi
6783
6784 fi
6785
6786 lt_prog_compiler_wl=
6787 lt_prog_compiler_pic=
6788 lt_prog_compiler_static=
6789
6790 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6791 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
6792
6793   if test "$GCC" = yes; then
6794     lt_prog_compiler_wl='-Wl,'
6795     lt_prog_compiler_static='-static'
6796
6797     case $host_os in
6798       aix*)
6799       # All AIX code is PIC.
6800       if test "$host_cpu" = ia64; then
6801         # AIX 5 now supports IA64 processor
6802         lt_prog_compiler_static='-Bstatic'
6803       fi
6804       ;;
6805
6806     amigaos*)
6807       # FIXME: we need at least 68020 code to build shared libraries, but
6808       # adding the `-m68020' flag to GCC prevents building anything better,
6809       # like `-m68040'.
6810       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6811       ;;
6812
6813     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6814       # PIC is the default for these OSes.
6815       ;;
6816
6817     mingw* | pw32* | os2*)
6818       # This hack is so that the source file can tell whether it is being
6819       # built for inclusion in a dll (and should export symbols for example).
6820       lt_prog_compiler_pic='-DDLL_EXPORT'
6821       ;;
6822
6823     darwin* | rhapsody*)
6824       # PIC is the default on this platform
6825       # Common symbols not allowed in MH_DYLIB files
6826       lt_prog_compiler_pic='-fno-common'
6827       ;;
6828
6829     msdosdjgpp*)
6830       # Just because we use GCC doesn't mean we suddenly get shared libraries
6831       # on systems that don't support them.
6832       lt_prog_compiler_can_build_shared=no
6833       enable_shared=no
6834       ;;
6835
6836     sysv4*MP*)
6837       if test -d /usr/nec; then
6838         lt_prog_compiler_pic=-Kconform_pic
6839       fi
6840       ;;
6841
6842     hpux*)
6843       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6844       # not for PA HP-UX.
6845       case "$host_cpu" in
6846       hppa*64*|ia64*)
6847         # +Z the default
6848         ;;
6849       *)
6850         lt_prog_compiler_pic='-fPIC'
6851         ;;
6852       esac
6853       ;;
6854
6855     *)
6856       lt_prog_compiler_pic='-fPIC'
6857       ;;
6858     esac
6859   else
6860     # PORTME Check for flag to pass linker flags through the system compiler.
6861     case $host_os in
6862     aix*)
6863       lt_prog_compiler_wl='-Wl,'
6864       if test "$host_cpu" = ia64; then
6865         # AIX 5 now supports IA64 processor
6866         lt_prog_compiler_static='-Bstatic'
6867       else
6868         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6869       fi
6870       ;;
6871
6872     mingw* | pw32* | os2*)
6873       # This hack is so that the source file can tell whether it is being
6874       # built for inclusion in a dll (and should export symbols for example).
6875       lt_prog_compiler_pic='-DDLL_EXPORT'
6876       ;;
6877
6878     hpux9* | hpux10* | hpux11*)
6879       lt_prog_compiler_wl='-Wl,'
6880       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6881       # not for PA HP-UX.
6882       case "$host_cpu" in
6883       hppa*64*|ia64*)
6884         # +Z the default
6885         ;;
6886       *)
6887         lt_prog_compiler_pic='+Z'
6888         ;;
6889       esac
6890       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6891       lt_prog_compiler_static='${wl}-a ${wl}archive'
6892       ;;
6893
6894     irix5* | irix6* | nonstopux*)
6895       lt_prog_compiler_wl='-Wl,'
6896       # PIC (with -KPIC) is the default.
6897       lt_prog_compiler_static='-non_shared'
6898       ;;
6899
6900     newsos6)
6901       lt_prog_compiler_pic='-KPIC'
6902       lt_prog_compiler_static='-Bstatic'
6903       ;;
6904
6905     linux*)
6906       case $CC in
6907       icc* | ecc*)
6908         lt_prog_compiler_wl='-Wl,'
6909         lt_prog_compiler_pic='-KPIC'
6910         lt_prog_compiler_static='-static'
6911         ;;
6912       ccc*)
6913         lt_prog_compiler_wl='-Wl,'
6914         # All Alpha code is PIC.
6915         lt_prog_compiler_static='-non_shared'
6916         ;;
6917       esac
6918       ;;
6919
6920     osf3* | osf4* | osf5*)
6921       lt_prog_compiler_wl='-Wl,'
6922       # All OSF/1 code is PIC.
6923       lt_prog_compiler_static='-non_shared'
6924       ;;
6925
6926     sco3.2v5*)
6927       lt_prog_compiler_pic='-Kpic'
6928       lt_prog_compiler_static='-dn'
6929       ;;
6930
6931     solaris*)
6932       lt_prog_compiler_wl='-Wl,'
6933       lt_prog_compiler_pic='-KPIC'
6934       lt_prog_compiler_static='-Bstatic'
6935       ;;
6936
6937     sunos4*)
6938       lt_prog_compiler_wl='-Qoption ld '
6939       lt_prog_compiler_pic='-PIC'
6940       lt_prog_compiler_static='-Bstatic'
6941       ;;
6942
6943     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6944       lt_prog_compiler_wl='-Wl,'
6945       lt_prog_compiler_pic='-KPIC'
6946       lt_prog_compiler_static='-Bstatic'
6947       ;;
6948
6949     sysv4*MP*)
6950       if test -d /usr/nec ;then
6951         lt_prog_compiler_pic='-Kconform_pic'
6952         lt_prog_compiler_static='-Bstatic'
6953       fi
6954       ;;
6955
6956     uts4*)
6957       lt_prog_compiler_pic='-pic'
6958       lt_prog_compiler_static='-Bstatic'
6959       ;;
6960
6961     *)
6962       lt_prog_compiler_can_build_shared=no
6963       ;;
6964     esac
6965   fi
6966
6967 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6968 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
6969
6970 #
6971 # Check to make sure the PIC flag actually works.
6972 #
6973 if test -n "$lt_prog_compiler_pic"; then
6974
6975 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6976 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
6977 if test "${lt_prog_compiler_pic_works+set}" = set; then
6978   echo $ECHO_N "(cached) $ECHO_C" >&6
6979 else
6980   lt_prog_compiler_pic_works=no
6981   ac_outfile=conftest.$ac_objext
6982    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6983    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6984    # Insert the option either (1) after the last *FLAGS variable, or
6985    # (2) before a word containing "conftest.", or (3) at the end.
6986    # Note that $ac_compile itself does not contain backslashes and begins
6987    # with a dollar sign (not a hyphen), so the echo should work correctly.
6988    # The option is referenced via a variable to avoid confusing sed.
6989    lt_compile=`echo "$ac_compile" | $SED \
6990    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6991    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6992    -e 's:$: $lt_compiler_flag:'`
6993    (eval echo "\"\$as_me:6993: $lt_compile\"" >&5)
6994    (eval "$lt_compile" 2>conftest.err)
6995    ac_status=$?
6996    cat conftest.err >&5
6997    echo "$as_me:6997: \$? = $ac_status" >&5
6998    if (exit $ac_status) && test -s "$ac_outfile"; then
6999      # The compiler can only warn and ignore the option if not recognized
7000      # So say no if there are warnings
7001      if test ! -s conftest.err; then
7002        lt_prog_compiler_pic_works=yes
7003      fi
7004    fi
7005    $rm conftest*
7006
7007 fi
7008 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7009 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7010
7011 if test x"$lt_prog_compiler_pic_works" = xyes; then
7012     case $lt_prog_compiler_pic in
7013      "" | " "*) ;;
7014      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7015      esac
7016 else
7017     lt_prog_compiler_pic=
7018      lt_prog_compiler_can_build_shared=no
7019 fi
7020
7021 fi
7022 case "$host_os" in
7023   # For platforms which do not support PIC, -DPIC is meaningless:
7024   *djgpp*)
7025     lt_prog_compiler_pic=
7026     ;;
7027   *)
7028     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7029     ;;
7030 esac
7031
7032 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7033 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7034 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7035   echo $ECHO_N "(cached) $ECHO_C" >&6
7036 else
7037   lt_cv_prog_compiler_c_o=no
7038    $rm -r conftest 2>/dev/null
7039    mkdir conftest
7040    cd conftest
7041    mkdir out
7042    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7043
7044    lt_compiler_flag="-o out/conftest2.$ac_objext"
7045    # Insert the option either (1) after the last *FLAGS variable, or
7046    # (2) before a word containing "conftest.", or (3) at the end.
7047    # Note that $ac_compile itself does not contain backslashes and begins
7048    # with a dollar sign (not a hyphen), so the echo should work correctly.
7049    lt_compile=`echo "$ac_compile" | $SED \
7050    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7051    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7052    -e 's:$: $lt_compiler_flag:'`
7053    (eval echo "\"\$as_me:7053: $lt_compile\"" >&5)
7054    (eval "$lt_compile" 2>out/conftest.err)
7055    ac_status=$?
7056    cat out/conftest.err >&5
7057    echo "$as_me:7057: \$? = $ac_status" >&5
7058    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7059    then
7060      # The compiler can only warn and ignore the option if not recognized
7061      # So say no if there are warnings
7062      if test ! -s out/conftest.err; then
7063        lt_cv_prog_compiler_c_o=yes
7064      fi
7065    fi
7066    chmod u+w .
7067    $rm conftest*
7068    # SGI C++ compiler will create directory out/ii_files/ for
7069    # template instantiation
7070    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7071    $rm out/* && rmdir out
7072    cd ..
7073    rmdir conftest
7074    $rm conftest*
7075
7076 fi
7077 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7078 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7079
7080
7081 hard_links="nottested"
7082 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7083   # do not overwrite the value of need_locks provided by the user
7084   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7085 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7086   hard_links=yes
7087   $rm conftest*
7088   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7089   touch conftest.a
7090   ln conftest.a conftest.b 2>&5 || hard_links=no
7091   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7092   { echo "$as_me:$LINENO: result: $hard_links" >&5
7093 echo "${ECHO_T}$hard_links" >&6; }
7094   if test "$hard_links" = no; then
7095     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7096 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7097     need_locks=warn
7098   fi
7099 else
7100   need_locks=no
7101 fi
7102
7103 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7104 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7105
7106   runpath_var=
7107   allow_undefined_flag=
7108   enable_shared_with_static_runtimes=no
7109   archive_cmds=
7110   archive_expsym_cmds=
7111   old_archive_From_new_cmds=
7112   old_archive_from_expsyms_cmds=
7113   export_dynamic_flag_spec=
7114   whole_archive_flag_spec=
7115   thread_safe_flag_spec=
7116   hardcode_libdir_flag_spec=
7117   hardcode_libdir_flag_spec_ld=
7118   hardcode_libdir_separator=
7119   hardcode_direct=no
7120   hardcode_minus_L=no
7121   hardcode_shlibpath_var=unsupported
7122   link_all_deplibs=unknown
7123   hardcode_automatic=no
7124   module_cmds=
7125   module_expsym_cmds=
7126   always_export_symbols=no
7127   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7128   # include_expsyms should be a list of space-separated symbols to be *always*
7129   # included in the symbol list
7130   include_expsyms=
7131   # exclude_expsyms can be an extended regexp of symbols to exclude
7132   # it will be wrapped by ` (' and `)$', so one must not match beginning or
7133   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7134   # as well as any symbol that contains `d'.
7135   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7136   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7137   # platforms (ab)use it in PIC code, but their linkers get confused if
7138   # the symbol is explicitly referenced.  Since portable code cannot
7139   # rely on this symbol name, it's probably fine to never include it in
7140   # preloaded symbol tables.
7141   extract_expsyms_cmds=
7142
7143   case $host_os in
7144   cygwin* | mingw* | pw32*)
7145     # FIXME: the MSVC++ port hasn't been tested in a loooong time
7146     # When not using gcc, we currently assume that we are using
7147     # Microsoft Visual C++.
7148     if test "$GCC" != yes; then
7149       with_gnu_ld=no
7150     fi
7151     ;;
7152   openbsd*)
7153     with_gnu_ld=no
7154     ;;
7155   esac
7156
7157   ld_shlibs=yes
7158   if test "$with_gnu_ld" = yes; then
7159     # If archive_cmds runs LD, not CC, wlarc should be empty
7160     wlarc='${wl}'
7161
7162     # See if GNU ld supports shared libraries.
7163     case $host_os in
7164     aix3* | aix4* | aix5*)
7165       # On AIX/PPC, the GNU linker is very broken
7166       if test "$host_cpu" != ia64; then
7167         ld_shlibs=no
7168         cat <<EOF 1>&2
7169
7170 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7171 *** to be unable to reliably create shared libraries on AIX.
7172 *** Therefore, libtool is disabling shared libraries support.  If you
7173 *** really care for shared libraries, you may want to modify your PATH
7174 *** so that a non-GNU linker is found, and then restart.
7175
7176 EOF
7177       fi
7178       ;;
7179
7180     amigaos*)
7181       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)'
7182       hardcode_libdir_flag_spec='-L$libdir'
7183       hardcode_minus_L=yes
7184
7185       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7186       # that the semantics of dynamic libraries on AmigaOS, at least up
7187       # to version 4, is to share data among multiple programs linked
7188       # with the same dynamic library.  Since this doesn't match the
7189       # behavior of shared libraries on other platforms, we can't use
7190       # them.
7191       ld_shlibs=no
7192       ;;
7193
7194     beos*)
7195       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7196         allow_undefined_flag=unsupported
7197         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7198         # support --undefined.  This deserves some investigation.  FIXME
7199         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7200       else
7201         ld_shlibs=no
7202       fi
7203       ;;
7204
7205     cygwin* | mingw* | pw32*)
7206       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7207       # as there is no search path for DLLs.
7208       hardcode_libdir_flag_spec='-L$libdir'
7209       allow_undefined_flag=unsupported
7210       always_export_symbols=no
7211       enable_shared_with_static_runtimes=yes
7212       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7213
7214       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7215         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7216         # If the export-symbols file already is a .def file (1st line
7217         # is EXPORTS), use it as is; otherwise, prepend...
7218         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7219           cp $export_symbols $output_objdir/$soname.def;
7220         else
7221           echo EXPORTS > $output_objdir/$soname.def;
7222           cat $export_symbols >> $output_objdir/$soname.def;
7223         fi~
7224         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
7225       else
7226         ld_shlibs=no
7227       fi
7228       ;;
7229
7230     netbsd*)
7231       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7232         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7233         wlarc=
7234       else
7235         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7236         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7237       fi
7238       ;;
7239
7240     solaris* | sysv5*)
7241       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7242         ld_shlibs=no
7243         cat <<EOF 1>&2
7244
7245 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7246 *** create shared libraries on Solaris systems.  Therefore, libtool
7247 *** is disabling shared libraries support.  We urge you to upgrade GNU
7248 *** binutils to release 2.9.1 or newer.  Another option is to modify
7249 *** your PATH or compiler configuration so that the native linker is
7250 *** used, and then restart.
7251
7252 EOF
7253       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7254         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7255         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7256       else
7257         ld_shlibs=no
7258       fi
7259       ;;
7260
7261     sunos4*)
7262       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7263       wlarc=
7264       hardcode_direct=yes
7265       hardcode_shlibpath_var=no
7266       ;;
7267
7268   linux*)
7269     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7270         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7271         archive_cmds="$tmp_archive_cmds"
7272       supports_anon_versioning=no
7273       case `$LD -v 2>/dev/null` in
7274         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7275         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7276         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7277         *\ 2.11.*) ;; # other 2.11 versions
7278         *) supports_anon_versioning=yes ;;
7279       esac
7280       if test $supports_anon_versioning = yes; then
7281         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7282 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7283 $echo "local: *; };" >> $output_objdir/$libname.ver~
7284         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7285       else
7286         archive_expsym_cmds="$tmp_archive_cmds"
7287       fi
7288     else
7289       ld_shlibs=no
7290     fi
7291     ;;
7292
7293     *)
7294       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7295         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7296         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7297       else
7298         ld_shlibs=no
7299       fi
7300       ;;
7301     esac
7302
7303     if test "$ld_shlibs" = yes; then
7304       runpath_var=LD_RUN_PATH
7305       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7306       export_dynamic_flag_spec='${wl}--export-dynamic'
7307       # ancient GNU ld didn't support --whole-archive et. al.
7308       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7309         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7310       else
7311         whole_archive_flag_spec=
7312       fi
7313     fi
7314   else
7315     # PORTME fill in a description of your system's linker (not GNU ld)
7316     case $host_os in
7317     aix3*)
7318       allow_undefined_flag=unsupported
7319       always_export_symbols=yes
7320       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'
7321       # Note: this linker hardcodes the directories in LIBPATH if there
7322       # are no directories specified by -L.
7323       hardcode_minus_L=yes
7324       if test "$GCC" = yes && test -z "$link_static_flag"; then
7325         # Neither direct hardcoding nor static linking is supported with a
7326         # broken collect2.
7327         hardcode_direct=unsupported
7328       fi
7329       ;;
7330
7331     aix4* | aix5*)
7332       if test "$host_cpu" = ia64; then
7333         # On IA64, the linker does run time linking by default, so we don't
7334         # have to do anything special.
7335         aix_use_runtimelinking=no
7336         exp_sym_flag='-Bexport'
7337         no_entry_flag=""
7338       else
7339         # If we're using GNU nm, then we don't want the "-C" option.
7340         # -C means demangle to AIX nm, but means don't demangle with GNU nm
7341         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7342           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'
7343         else
7344           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'
7345         fi
7346         aix_use_runtimelinking=no
7347
7348         # Test if we are trying to use run time linking or normal
7349         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7350         # need to do runtime linking.
7351         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7352           for ld_flag in $LDFLAGS; do
7353           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7354             aix_use_runtimelinking=yes
7355             break
7356           fi
7357           done
7358         esac
7359
7360         exp_sym_flag='-bexport'
7361         no_entry_flag='-bnoentry'
7362       fi
7363
7364       # When large executables or shared objects are built, AIX ld can
7365       # have problems creating the table of contents.  If linking a library
7366       # or program results in "error TOC overflow" add -mminimal-toc to
7367       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7368       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7369
7370       archive_cmds=''
7371       hardcode_direct=yes
7372       hardcode_libdir_separator=':'
7373       link_all_deplibs=yes
7374
7375       if test "$GCC" = yes; then
7376         case $host_os in aix4.012|aix4.012.*)
7377         # We only want to do this on AIX 4.2 and lower, the check
7378         # below for broken collect2 doesn't work under 4.3+
7379           collect2name=`${CC} -print-prog-name=collect2`
7380           if test -f "$collect2name" && \
7381            strings "$collect2name" | grep resolve_lib_name >/dev/null
7382           then
7383           # We have reworked collect2
7384           hardcode_direct=yes
7385           else
7386           # We have old collect2
7387           hardcode_direct=unsupported
7388           # It fails to find uninstalled libraries when the uninstalled
7389           # path is not listed in the libpath.  Setting hardcode_minus_L
7390           # to unsupported forces relinking
7391           hardcode_minus_L=yes
7392           hardcode_libdir_flag_spec='-L$libdir'
7393           hardcode_libdir_separator=
7394           fi
7395         esac
7396         shared_flag='-shared'
7397       else
7398         # not using gcc
7399         if test "$host_cpu" = ia64; then
7400         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7401         # chokes on -Wl,-G. The following line is correct:
7402           shared_flag='-G'
7403         else
7404         if test "$aix_use_runtimelinking" = yes; then
7405             shared_flag='${wl}-G'
7406           else
7407             shared_flag='${wl}-bM:SRE'
7408         fi
7409         fi
7410       fi
7411
7412       # It seems that -bexpall does not export symbols beginning with
7413       # underscore (_), so it is better to generate a list of symbols to export.
7414       always_export_symbols=yes
7415       if test "$aix_use_runtimelinking" = yes; then
7416         # Warning - without using the other runtime loading flags (-brtl),
7417         # -berok will link without error, but may produce a broken library.
7418         allow_undefined_flag='-berok'
7419        # Determine the default libpath from the value encoded in an empty executable.
7420        cat >conftest.$ac_ext <<_ACEOF
7421 /* confdefs.h.  */
7422 _ACEOF
7423 cat confdefs.h >>conftest.$ac_ext
7424 cat >>conftest.$ac_ext <<_ACEOF
7425 /* end confdefs.h.  */
7426
7427 int
7428 main ()
7429 {
7430
7431   ;
7432   return 0;
7433 }
7434 _ACEOF
7435 rm -f conftest.$ac_objext conftest$ac_exeext
7436 if { (ac_try="$ac_link"
7437 case "(($ac_try" in
7438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7439   *) ac_try_echo=$ac_try;;
7440 esac
7441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7442   (eval "$ac_link") 2>conftest.er1
7443   ac_status=$?
7444   grep -v '^ *+' conftest.er1 >conftest.err
7445   rm -f conftest.er1
7446   cat conftest.err >&5
7447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7448   (exit $ac_status); } && {
7449          test -z "$ac_c_werror_flag" ||
7450          test ! -s conftest.err
7451        } && test -s conftest$ac_exeext &&
7452        $as_test_x conftest$ac_exeext; then
7453
7454 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7455 }'`
7456 # Check for a 64-bit object if we didn't find anything.
7457 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; }
7458 }'`; fi
7459 else
7460   echo "$as_me: failed program was:" >&5
7461 sed 's/^/| /' conftest.$ac_ext >&5
7462
7463
7464 fi
7465
7466 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7467       conftest$ac_exeext conftest.$ac_ext
7468 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7469
7470        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7471         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"
7472        else
7473         if test "$host_cpu" = ia64; then
7474           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7475           allow_undefined_flag="-z nodefs"
7476           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"
7477         else
7478          # Determine the default libpath from the value encoded in an empty executable.
7479          cat >conftest.$ac_ext <<_ACEOF
7480 /* confdefs.h.  */
7481 _ACEOF
7482 cat confdefs.h >>conftest.$ac_ext
7483 cat >>conftest.$ac_ext <<_ACEOF
7484 /* end confdefs.h.  */
7485
7486 int
7487 main ()
7488 {
7489
7490   ;
7491   return 0;
7492 }
7493 _ACEOF
7494 rm -f conftest.$ac_objext conftest$ac_exeext
7495 if { (ac_try="$ac_link"
7496 case "(($ac_try" in
7497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7498   *) ac_try_echo=$ac_try;;
7499 esac
7500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7501   (eval "$ac_link") 2>conftest.er1
7502   ac_status=$?
7503   grep -v '^ *+' conftest.er1 >conftest.err
7504   rm -f conftest.er1
7505   cat conftest.err >&5
7506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7507   (exit $ac_status); } && {
7508          test -z "$ac_c_werror_flag" ||
7509          test ! -s conftest.err
7510        } && test -s conftest$ac_exeext &&
7511        $as_test_x conftest$ac_exeext; then
7512
7513 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7514 }'`
7515 # Check for a 64-bit object if we didn't find anything.
7516 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; }
7517 }'`; fi
7518 else
7519   echo "$as_me: failed program was:" >&5
7520 sed 's/^/| /' conftest.$ac_ext >&5
7521
7522
7523 fi
7524
7525 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7526       conftest$ac_exeext conftest.$ac_ext
7527 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7528
7529          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7530           # Warning - without using the other run time loading flags,
7531           # -berok will link without error, but may produce a broken library.
7532           no_undefined_flag=' ${wl}-bernotok'
7533           allow_undefined_flag=' ${wl}-berok'
7534           # -bexpall does not export symbols beginning with underscore (_)
7535           always_export_symbols=yes
7536           # Exported symbols can be pulled into shared objects from archives
7537           whole_archive_flag_spec=' '
7538           archive_cmds_need_lc=yes
7539           # This is similar to how AIX traditionally builds it's shared libraries.
7540           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'
7541         fi
7542       fi
7543       ;;
7544
7545     amigaos*)
7546       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)'
7547       hardcode_libdir_flag_spec='-L$libdir'
7548       hardcode_minus_L=yes
7549       # see comment about different semantics on the GNU ld section
7550       ld_shlibs=no
7551       ;;
7552
7553     bsdi4*)
7554       export_dynamic_flag_spec=-rdynamic
7555       ;;
7556
7557     cygwin* | mingw* | pw32*)
7558       # When not using gcc, we currently assume that we are using
7559       # Microsoft Visual C++.
7560       # hardcode_libdir_flag_spec is actually meaningless, as there is
7561       # no search path for DLLs.
7562       hardcode_libdir_flag_spec=' '
7563       allow_undefined_flag=unsupported
7564       # Tell ltmain to make .lib files, not .a files.
7565       libext=lib
7566       # Tell ltmain to make .dll files, not .so files.
7567       shrext_cmds=".dll"
7568       # FIXME: Setting linknames here is a bad hack.
7569       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7570       # The linker will automatically build a .lib file if we build a DLL.
7571       old_archive_From_new_cmds='true'
7572       # FIXME: Should let the user specify the lib program.
7573       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7574       fix_srcfile_path='`cygpath -w "$srcfile"`'
7575       enable_shared_with_static_runtimes=yes
7576       ;;
7577
7578     darwin* | rhapsody*)
7579     if test "$GXX" = yes ; then
7580       archive_cmds_need_lc=no
7581       case "$host_os" in
7582       rhapsody* | darwin1.[012])
7583         allow_undefined_flag='-undefined suppress'
7584         ;;
7585       *) # Darwin 1.3 on
7586       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7587         allow_undefined_flag='-flat_namespace -undefined suppress'
7588       else
7589         case ${MACOSX_DEPLOYMENT_TARGET} in
7590           10.[012])
7591             allow_undefined_flag='-flat_namespace -undefined suppress'
7592             ;;
7593           10.*)
7594             allow_undefined_flag='-undefined dynamic_lookup'
7595             ;;
7596         esac
7597       fi
7598         ;;
7599       esac
7600         lt_int_apple_cc_single_mod=no
7601         output_verbose_link_cmd='echo'
7602         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7603           lt_int_apple_cc_single_mod=yes
7604         fi
7605         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7606           archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7607         else
7608         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'
7609       fi
7610       module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7611       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7612         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7613           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}'
7614         else
7615           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}'
7616         fi
7617           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}'
7618       hardcode_direct=no
7619       hardcode_automatic=yes
7620       hardcode_shlibpath_var=unsupported
7621       whole_archive_flag_spec='-all_load $convenience'
7622       link_all_deplibs=yes
7623     else
7624       ld_shlibs=no
7625     fi
7626       ;;
7627
7628     dgux*)
7629       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7630       hardcode_libdir_flag_spec='-L$libdir'
7631       hardcode_shlibpath_var=no
7632       ;;
7633
7634     freebsd1*)
7635       ld_shlibs=no
7636       ;;
7637
7638     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7639     # support.  Future versions do this automatically, but an explicit c++rt0.o
7640     # does not break anything, and helps significantly (at the cost of a little
7641     # extra space).
7642     freebsd2.2*)
7643       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7644       hardcode_libdir_flag_spec='-R$libdir'
7645       hardcode_direct=yes
7646       hardcode_shlibpath_var=no
7647       ;;
7648
7649     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7650     freebsd2*)
7651       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7652       hardcode_direct=yes
7653       hardcode_minus_L=yes
7654       hardcode_shlibpath_var=no
7655       ;;
7656
7657     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7658     freebsd* | kfreebsd*-gnu)
7659       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7660       hardcode_libdir_flag_spec='-R$libdir'
7661       hardcode_direct=yes
7662       hardcode_shlibpath_var=no
7663       ;;
7664
7665     hpux9*)
7666       if test "$GCC" = yes; then
7667         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'
7668       else
7669         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'
7670       fi
7671       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7672       hardcode_libdir_separator=:
7673       hardcode_direct=yes
7674
7675       # hardcode_minus_L: Not really in the search PATH,
7676       # but as the default location of the library.
7677       hardcode_minus_L=yes
7678       export_dynamic_flag_spec='${wl}-E'
7679       ;;
7680
7681     hpux10* | hpux11*)
7682       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7683         case "$host_cpu" in
7684         hppa*64*|ia64*)
7685           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7686           ;;
7687         *)
7688           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7689           ;;
7690         esac
7691       else
7692         case "$host_cpu" in
7693         hppa*64*|ia64*)
7694           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7695           ;;
7696         *)
7697           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7698           ;;
7699         esac
7700       fi
7701       if test "$with_gnu_ld" = no; then
7702         case "$host_cpu" in
7703         hppa*64*)
7704           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7705           hardcode_libdir_flag_spec_ld='+b $libdir'
7706           hardcode_libdir_separator=:
7707           hardcode_direct=no
7708           hardcode_shlibpath_var=no
7709           ;;
7710         ia64*)
7711           hardcode_libdir_flag_spec='-L$libdir'
7712           hardcode_direct=no
7713           hardcode_shlibpath_var=no
7714
7715           # hardcode_minus_L: Not really in the search PATH,
7716           # but as the default location of the library.
7717           hardcode_minus_L=yes
7718           ;;
7719         *)
7720           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7721           hardcode_libdir_separator=:
7722           hardcode_direct=yes
7723           export_dynamic_flag_spec='${wl}-E'
7724
7725           # hardcode_minus_L: Not really in the search PATH,
7726           # but as the default location of the library.
7727           hardcode_minus_L=yes
7728           ;;
7729         esac
7730       fi
7731       ;;
7732
7733     irix5* | irix6* | nonstopux*)
7734       if test "$GCC" = yes; then
7735         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'
7736       else
7737         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'
7738         hardcode_libdir_flag_spec_ld='-rpath $libdir'
7739       fi
7740       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7741       hardcode_libdir_separator=:
7742       link_all_deplibs=yes
7743       ;;
7744
7745     netbsd*)
7746       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7747         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7748       else
7749         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7750       fi
7751       hardcode_libdir_flag_spec='-R$libdir'
7752       hardcode_direct=yes
7753       hardcode_shlibpath_var=no
7754       ;;
7755
7756     newsos6)
7757       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7758       hardcode_direct=yes
7759       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7760       hardcode_libdir_separator=:
7761       hardcode_shlibpath_var=no
7762       ;;
7763
7764     openbsd*)
7765       hardcode_direct=yes
7766       hardcode_shlibpath_var=no
7767       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7768         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7769         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7770         export_dynamic_flag_spec='${wl}-E'
7771       else
7772        case $host_os in
7773          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7774            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7775            hardcode_libdir_flag_spec='-R$libdir'
7776            ;;
7777          *)
7778            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7779            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7780            ;;
7781        esac
7782       fi
7783       ;;
7784
7785     os2*)
7786       hardcode_libdir_flag_spec='-L$libdir'
7787       hardcode_minus_L=yes
7788       allow_undefined_flag=unsupported
7789       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'
7790       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7791       ;;
7792
7793     osf3*)
7794       if test "$GCC" = yes; then
7795         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7796         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'
7797       else
7798         allow_undefined_flag=' -expect_unresolved \*'
7799         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'
7800       fi
7801       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7802       hardcode_libdir_separator=:
7803       ;;
7804
7805     osf4* | osf5*)      # as osf3* with the addition of -msym flag
7806       if test "$GCC" = yes; then
7807         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7808         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'
7809         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7810       else
7811         allow_undefined_flag=' -expect_unresolved \*'
7812         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'
7813         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7814         $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'
7815
7816         # Both c and cxx compiler support -rpath directly
7817         hardcode_libdir_flag_spec='-rpath $libdir'
7818       fi
7819       hardcode_libdir_separator=:
7820       ;;
7821
7822     sco3.2v5*)
7823       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7824       hardcode_shlibpath_var=no
7825       export_dynamic_flag_spec='${wl}-Bexport'
7826       runpath_var=LD_RUN_PATH
7827       hardcode_runpath_var=yes
7828       ;;
7829
7830     solaris*)
7831       no_undefined_flag=' -z text'
7832       if test "$GCC" = yes; then
7833         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7834         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7835           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7836       else
7837         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7838         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7839         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7840       fi
7841       hardcode_libdir_flag_spec='-R$libdir'
7842       hardcode_shlibpath_var=no
7843       case $host_os in
7844       solaris2.[0-5] | solaris2.[0-5].*) ;;
7845       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7846         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7847       esac
7848       link_all_deplibs=yes
7849       ;;
7850
7851     sunos4*)
7852       if test "x$host_vendor" = xsequent; then
7853         # Use $CC to link under sequent, because it throws in some extra .o
7854         # files that make .init and .fini sections work.
7855         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7856       else
7857         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7858       fi
7859       hardcode_libdir_flag_spec='-L$libdir'
7860       hardcode_direct=yes
7861       hardcode_minus_L=yes
7862       hardcode_shlibpath_var=no
7863       ;;
7864
7865     sysv4)
7866       case $host_vendor in
7867         sni)
7868           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7869           hardcode_direct=yes # is this really true???
7870         ;;
7871         siemens)
7872           ## LD is ld it makes a PLAMLIB
7873           ## CC just makes a GrossModule.
7874           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7875           reload_cmds='$CC -r -o $output$reload_objs'
7876           hardcode_direct=no
7877         ;;
7878         motorola)
7879           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7880           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7881         ;;
7882       esac
7883       runpath_var='LD_RUN_PATH'
7884       hardcode_shlibpath_var=no
7885       ;;
7886
7887     sysv4.3*)
7888       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7889       hardcode_shlibpath_var=no
7890       export_dynamic_flag_spec='-Bexport'
7891       ;;
7892
7893     sysv4*MP*)
7894       if test -d /usr/nec; then
7895         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7896         hardcode_shlibpath_var=no
7897         runpath_var=LD_RUN_PATH
7898         hardcode_runpath_var=yes
7899         ld_shlibs=yes
7900       fi
7901       ;;
7902
7903     sysv4.2uw2*)
7904       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7905       hardcode_direct=yes
7906       hardcode_minus_L=no
7907       hardcode_shlibpath_var=no
7908       hardcode_runpath_var=yes
7909       runpath_var=LD_RUN_PATH
7910       ;;
7911
7912    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7913       no_undefined_flag='${wl}-z ${wl}text'
7914       if test "$GCC" = yes; then
7915         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7916       else
7917         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7918       fi
7919       runpath_var='LD_RUN_PATH'
7920       hardcode_shlibpath_var=no
7921       ;;
7922
7923     sysv5*)
7924       no_undefined_flag=' -z text'
7925       # $CC -shared without GNU ld will not create a library from C++
7926       # object files and a static libstdc++, better avoid it by now
7927       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7928       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7929                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7930       hardcode_libdir_flag_spec=
7931       hardcode_shlibpath_var=no
7932       runpath_var='LD_RUN_PATH'
7933       ;;
7934
7935     uts4*)
7936       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7937       hardcode_libdir_flag_spec='-L$libdir'
7938       hardcode_shlibpath_var=no
7939       ;;
7940
7941     *)
7942       ld_shlibs=no
7943       ;;
7944     esac
7945   fi
7946
7947 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7948 echo "${ECHO_T}$ld_shlibs" >&6; }
7949 test "$ld_shlibs" = no && can_build_shared=no
7950
7951 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7952 if test "$GCC" = yes; then
7953   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7954 fi
7955
7956 #
7957 # Do we need to explicitly link libc?
7958 #
7959 case "x$archive_cmds_need_lc" in
7960 x|xyes)
7961   # Assume -lc should be added
7962   archive_cmds_need_lc=yes
7963
7964   if test "$enable_shared" = yes && test "$GCC" = yes; then
7965     case $archive_cmds in
7966     *'~'*)
7967       # FIXME: we may have to deal with multi-command sequences.
7968       ;;
7969     '$CC '*)
7970       # Test whether the compiler implicitly links with -lc since on some
7971       # systems, -lgcc has to come before -lc. If gcc already passes -lc
7972       # to ld, don't add -lc before -lgcc.
7973       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7974 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
7975       $rm conftest*
7976       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7977
7978       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7979   (eval $ac_compile) 2>&5
7980   ac_status=$?
7981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7982   (exit $ac_status); } 2>conftest.err; then
7983         soname=conftest
7984         lib=conftest
7985         libobjs=conftest.$ac_objext
7986         deplibs=
7987         wl=$lt_prog_compiler_wl
7988         compiler_flags=-v
7989         linker_flags=-v
7990         verstring=
7991         output_objdir=.
7992         libname=conftest
7993         lt_save_allow_undefined_flag=$allow_undefined_flag
7994         allow_undefined_flag=
7995         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7996   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7997   ac_status=$?
7998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7999   (exit $ac_status); }
8000         then
8001           archive_cmds_need_lc=no
8002         else
8003           archive_cmds_need_lc=yes
8004         fi
8005         allow_undefined_flag=$lt_save_allow_undefined_flag
8006       else
8007         cat conftest.err 1>&5
8008       fi
8009       $rm conftest*
8010       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8011 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8012       ;;
8013     esac
8014   fi
8015   ;;
8016 esac
8017
8018 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8019 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8020 library_names_spec=
8021 libname_spec='lib$name'
8022 soname_spec=
8023 shrext_cmds=".so"
8024 postinstall_cmds=
8025 postuninstall_cmds=
8026 finish_cmds=
8027 finish_eval=
8028 shlibpath_var=
8029 shlibpath_overrides_runpath=unknown
8030 version_type=none
8031 dynamic_linker="$host_os ld.so"
8032 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8033 if test "$GCC" = yes; then
8034   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8035   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8036     # if the path contains ";" then we assume it to be the separator
8037     # otherwise default to the standard path separator (i.e. ":") - it is
8038     # assumed that no part of a normal pathname contains ";" but that should
8039     # okay in the real world where ";" in dirpaths is itself problematic.
8040     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8041   else
8042     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8043   fi
8044 else
8045   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8046 fi
8047 need_lib_prefix=unknown
8048 hardcode_into_libs=no
8049
8050 # when you set need_version to no, make sure it does not cause -set_version
8051 # flags to be left without arguments
8052 need_version=unknown
8053
8054 case $host_os in
8055 aix3*)
8056   version_type=linux
8057   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8058   shlibpath_var=LIBPATH
8059
8060   # AIX 3 has no versioning support, so we append a major version to the name.
8061   soname_spec='${libname}${release}${shared_ext}$major'
8062   ;;
8063
8064 aix4* | aix5*)
8065   version_type=linux
8066   need_lib_prefix=no
8067   need_version=no
8068   hardcode_into_libs=yes
8069   if test "$host_cpu" = ia64; then
8070     # AIX 5 supports IA64
8071     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8072     shlibpath_var=LD_LIBRARY_PATH
8073   else
8074     # With GCC up to 2.95.x, collect2 would create an import file
8075     # for dependence libraries.  The import file would start with
8076     # the line `#! .'.  This would cause the generated library to
8077     # depend on `.', always an invalid library.  This was fixed in
8078     # development snapshots of GCC prior to 3.0.
8079     case $host_os in
8080       aix4 | aix4.[01] | aix4.[01].*)
8081       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8082            echo ' yes '
8083            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8084         :
8085       else
8086         can_build_shared=no
8087       fi
8088       ;;
8089     esac
8090     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8091     # soname into executable. Probably we can add versioning support to
8092     # collect2, so additional links can be useful in future.
8093     if test "$aix_use_runtimelinking" = yes; then
8094       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8095       # instead of lib<name>.a to let people know that these are not
8096       # typical AIX shared libraries.
8097       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8098     else
8099       # We preserve .a as extension for shared libraries through AIX4.2
8100       # and later when we are not doing run time linking.
8101       library_names_spec='${libname}${release}.a $libname.a'
8102       soname_spec='${libname}${release}${shared_ext}$major'
8103     fi
8104     shlibpath_var=LIBPATH
8105   fi
8106   ;;
8107
8108 amigaos*)
8109   library_names_spec='$libname.ixlibrary $libname.a'
8110   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8111   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'
8112   ;;
8113
8114 beos*)
8115   library_names_spec='${libname}${shared_ext}'
8116   dynamic_linker="$host_os ld.so"
8117   shlibpath_var=LIBRARY_PATH
8118   ;;
8119
8120 bsdi4*)
8121   version_type=linux
8122   need_version=no
8123   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8124   soname_spec='${libname}${release}${shared_ext}$major'
8125   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8126   shlibpath_var=LD_LIBRARY_PATH
8127   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8128   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8129   # the default ld.so.conf also contains /usr/contrib/lib and
8130   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8131   # libtool to hard-code these into programs
8132   ;;
8133
8134 cygwin* | mingw* | pw32*)
8135   version_type=windows
8136   shrext_cmds=".dll"
8137   need_version=no
8138   need_lib_prefix=no
8139
8140   case $GCC,$host_os in
8141   yes,cygwin* | yes,mingw* | yes,pw32*)
8142     library_names_spec='$libname.dll.a'
8143     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8144     postinstall_cmds='base_file=`basename \${file}`~
8145       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8146       dldir=$destdir/`dirname \$dlpath`~
8147       test -d \$dldir || mkdir -p \$dldir~
8148       $install_prog $dir/$dlname \$dldir/$dlname'
8149     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8150       dlpath=$dir/\$dldll~
8151        $rm \$dlpath'
8152     shlibpath_overrides_runpath=yes
8153
8154     case $host_os in
8155     cygwin*)
8156       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8157       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8158       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8159       ;;
8160     mingw*)
8161       # MinGW DLLs use traditional 'lib' prefix
8162       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8163       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8164       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8165         # It is most probably a Windows format PATH printed by
8166         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8167         # path with ; separators, and with drive letters. We can handle the
8168         # drive letters (cygwin fileutils understands them), so leave them,
8169         # especially as we might pass files found there to a mingw objdump,
8170         # which wouldn't understand a cygwinified path. Ahh.
8171         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8172       else
8173         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8174       fi
8175       ;;
8176     pw32*)
8177       # pw32 DLLs use 'pw' prefix rather than 'lib'
8178       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
8179       ;;
8180     esac
8181     ;;
8182
8183   *)
8184     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8185     ;;
8186   esac
8187   dynamic_linker='Win32 ld.exe'
8188   # FIXME: first we should search . and the directory the executable is in
8189   shlibpath_var=PATH
8190   ;;
8191
8192 darwin* | rhapsody*)
8193   dynamic_linker="$host_os dyld"
8194   version_type=darwin
8195   need_lib_prefix=no
8196   need_version=no
8197   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8198   soname_spec='${libname}${release}${major}$shared_ext'
8199   shlibpath_overrides_runpath=yes
8200   shlibpath_var=DYLD_LIBRARY_PATH
8201   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
8202   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8203   if test "$GCC" = yes; then
8204     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"`
8205   else
8206     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8207   fi
8208   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8209   ;;
8210
8211 dgux*)
8212   version_type=linux
8213   need_lib_prefix=no
8214   need_version=no
8215   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8216   soname_spec='${libname}${release}${shared_ext}$major'
8217   shlibpath_var=LD_LIBRARY_PATH
8218   ;;
8219
8220 freebsd1*)
8221   dynamic_linker=no
8222   ;;
8223
8224 kfreebsd*-gnu)
8225   version_type=linux
8226   need_lib_prefix=no
8227   need_version=no
8228   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8229   soname_spec='${libname}${release}${shared_ext}$major'
8230   shlibpath_var=LD_LIBRARY_PATH
8231   shlibpath_overrides_runpath=no
8232   hardcode_into_libs=yes
8233   dynamic_linker='GNU ld.so'
8234   ;;
8235
8236 freebsd*)
8237   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
8238   version_type=freebsd-$objformat
8239   case $version_type in
8240     freebsd-elf*)
8241       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8242       need_version=no
8243       need_lib_prefix=no
8244       ;;
8245     freebsd-*)
8246       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8247       need_version=yes
8248       ;;
8249   esac
8250   shlibpath_var=LD_LIBRARY_PATH
8251   case $host_os in
8252   freebsd2*)
8253     shlibpath_overrides_runpath=yes
8254     ;;
8255   freebsd3.01* | freebsdelf3.01*)
8256     shlibpath_overrides_runpath=yes
8257     hardcode_into_libs=yes
8258     ;;
8259   *) # from 3.2 on
8260     shlibpath_overrides_runpath=no
8261     hardcode_into_libs=yes
8262     ;;
8263   esac
8264   ;;
8265
8266 gnu*)
8267   version_type=linux
8268   need_lib_prefix=no
8269   need_version=no
8270   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8271   soname_spec='${libname}${release}${shared_ext}$major'
8272   shlibpath_var=LD_LIBRARY_PATH
8273   hardcode_into_libs=yes
8274   ;;
8275
8276 hpux9* | hpux10* | hpux11*)
8277   # Give a soname corresponding to the major version so that dld.sl refuses to
8278   # link against other versions.
8279   version_type=sunos
8280   need_lib_prefix=no
8281   need_version=no
8282   case "$host_cpu" in
8283   ia64*)
8284     shrext_cmds='.so'
8285     hardcode_into_libs=yes
8286     dynamic_linker="$host_os dld.so"
8287     shlibpath_var=LD_LIBRARY_PATH
8288     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8289     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8290     soname_spec='${libname}${release}${shared_ext}$major'
8291     if test "X$HPUX_IA64_MODE" = X32; then
8292       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8293     else
8294       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8295     fi
8296     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8297     ;;
8298    hppa*64*)
8299      shrext_cmds='.sl'
8300      hardcode_into_libs=yes
8301      dynamic_linker="$host_os dld.sl"
8302      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8303      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8304      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8305      soname_spec='${libname}${release}${shared_ext}$major'
8306      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8307      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8308      ;;
8309    *)
8310     shrext_cmds='.sl'
8311     dynamic_linker="$host_os dld.sl"
8312     shlibpath_var=SHLIB_PATH
8313     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8314     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8315     soname_spec='${libname}${release}${shared_ext}$major'
8316     ;;
8317   esac
8318   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8319   postinstall_cmds='chmod 555 $lib'
8320   ;;
8321
8322 irix5* | irix6* | nonstopux*)
8323   case $host_os in
8324     nonstopux*) version_type=nonstopux ;;
8325     *)
8326         if test "$lt_cv_prog_gnu_ld" = yes; then
8327                 version_type=linux
8328         else
8329                 version_type=irix
8330         fi ;;
8331   esac
8332   need_lib_prefix=no
8333   need_version=no
8334   soname_spec='${libname}${release}${shared_ext}$major'
8335   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8336   case $host_os in
8337   irix5* | nonstopux*)
8338     libsuff= shlibsuff=
8339     ;;
8340   *)
8341     case $LD in # libtool.m4 will add one of these switches to LD
8342     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8343       libsuff= shlibsuff= libmagic=32-bit;;
8344     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8345       libsuff=32 shlibsuff=N32 libmagic=N32;;
8346     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8347       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8348     *) libsuff= shlibsuff= libmagic=never-match;;
8349     esac
8350     ;;
8351   esac
8352   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8353   shlibpath_overrides_runpath=no
8354   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8355   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8356   hardcode_into_libs=yes
8357   ;;
8358
8359 # No shared lib support for Linux oldld, aout, or coff.
8360 linux*oldld* | linux*aout* | linux*coff*)
8361   dynamic_linker=no
8362   ;;
8363
8364 # This must be Linux ELF.
8365 linux*)
8366   version_type=linux
8367   need_lib_prefix=no
8368   need_version=no
8369   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8370   soname_spec='${libname}${release}${shared_ext}$major'
8371   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8372   shlibpath_var=LD_LIBRARY_PATH
8373   shlibpath_overrides_runpath=no
8374   # This implies no fast_install, which is unacceptable.
8375   # Some rework will be needed to allow for fast_install
8376   # before this can be enabled.
8377   hardcode_into_libs=yes
8378
8379   # find out which ABI we are using
8380   libsuff=
8381   case "$host_cpu" in
8382   x86_64*|s390x*|powerpc64*)
8383     echo '#line 8383 "configure"' > conftest.$ac_ext
8384     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8385   (eval $ac_compile) 2>&5
8386   ac_status=$?
8387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8388   (exit $ac_status); }; then
8389       case `/usr/bin/file conftest.$ac_objext` in
8390       *64-bit*)
8391         libsuff=64
8392         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
8393         ;;
8394       esac
8395     fi
8396     rm -rf conftest*
8397     ;;
8398   esac
8399
8400   # Append ld.so.conf contents to the search path
8401   if test -f /etc/ld.so.conf; then
8402     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
8403     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
8404   fi
8405
8406   # We used to test for /lib/ld.so.1 and disable shared libraries on
8407   # powerpc, because MkLinux only supported shared libraries with the
8408   # GNU dynamic linker.  Since this was broken with cross compilers,
8409   # most powerpc-linux boxes support dynamic linking these days and
8410   # people can always --disable-shared, the test was removed, and we
8411   # assume the GNU/Linux dynamic linker is in use.
8412   dynamic_linker='GNU/Linux ld.so'
8413   ;;
8414
8415 knetbsd*-gnu)
8416   version_type=linux
8417   need_lib_prefix=no
8418   need_version=no
8419   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8420   soname_spec='${libname}${release}${shared_ext}$major'
8421   shlibpath_var=LD_LIBRARY_PATH
8422   shlibpath_overrides_runpath=no
8423   hardcode_into_libs=yes
8424   dynamic_linker='GNU ld.so'
8425   ;;
8426
8427 netbsd*)
8428   version_type=sunos
8429   need_lib_prefix=no
8430   need_version=no
8431   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8432     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8433     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8434     dynamic_linker='NetBSD (a.out) ld.so'
8435   else
8436     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8437     soname_spec='${libname}${release}${shared_ext}$major'
8438     dynamic_linker='NetBSD ld.elf_so'
8439   fi
8440   shlibpath_var=LD_LIBRARY_PATH
8441   shlibpath_overrides_runpath=yes
8442   hardcode_into_libs=yes
8443   ;;
8444
8445 newsos6)
8446   version_type=linux
8447   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8448   shlibpath_var=LD_LIBRARY_PATH
8449   shlibpath_overrides_runpath=yes
8450   ;;
8451
8452 nto-qnx*)
8453   version_type=linux
8454   need_lib_prefix=no
8455   need_version=no
8456   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8457   soname_spec='${libname}${release}${shared_ext}$major'
8458   shlibpath_var=LD_LIBRARY_PATH
8459   shlibpath_overrides_runpath=yes
8460   ;;
8461
8462 openbsd*)
8463   version_type=sunos
8464   need_lib_prefix=no
8465   need_version=yes
8466   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8467   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8468   shlibpath_var=LD_LIBRARY_PATH
8469   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8470     case $host_os in
8471       openbsd2.[89] | openbsd2.[89].*)
8472         shlibpath_overrides_runpath=no
8473         ;;
8474       *)
8475         shlibpath_overrides_runpath=yes
8476         ;;
8477       esac
8478   else
8479     shlibpath_overrides_runpath=yes
8480   fi
8481   ;;
8482
8483 os2*)
8484   libname_spec='$name'
8485   shrext_cmds=".dll"
8486   need_lib_prefix=no
8487   library_names_spec='$libname${shared_ext} $libname.a'
8488   dynamic_linker='OS/2 ld.exe'
8489   shlibpath_var=LIBPATH
8490   ;;
8491
8492 osf3* | osf4* | osf5*)
8493   version_type=osf
8494   need_lib_prefix=no
8495   need_version=no
8496   soname_spec='${libname}${release}${shared_ext}$major'
8497   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8498   shlibpath_var=LD_LIBRARY_PATH
8499   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8500   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8501   ;;
8502
8503 sco3.2v5*)
8504   version_type=osf
8505   soname_spec='${libname}${release}${shared_ext}$major'
8506   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8507   shlibpath_var=LD_LIBRARY_PATH
8508   ;;
8509
8510 solaris*)
8511   version_type=linux
8512   need_lib_prefix=no
8513   need_version=no
8514   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8515   soname_spec='${libname}${release}${shared_ext}$major'
8516   shlibpath_var=LD_LIBRARY_PATH
8517   shlibpath_overrides_runpath=yes
8518   hardcode_into_libs=yes
8519   # ldd complains unless libraries are executable
8520   postinstall_cmds='chmod +x $lib'
8521   ;;
8522
8523 sunos4*)
8524   version_type=sunos
8525   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8526   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8527   shlibpath_var=LD_LIBRARY_PATH
8528   shlibpath_overrides_runpath=yes
8529   if test "$with_gnu_ld" = yes; then
8530     need_lib_prefix=no
8531   fi
8532   need_version=yes
8533   ;;
8534
8535 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8536   version_type=linux
8537   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8538   soname_spec='${libname}${release}${shared_ext}$major'
8539   shlibpath_var=LD_LIBRARY_PATH
8540   case $host_vendor in
8541     sni)
8542       shlibpath_overrides_runpath=no
8543       need_lib_prefix=no
8544       export_dynamic_flag_spec='${wl}-Blargedynsym'
8545       runpath_var=LD_RUN_PATH
8546       ;;
8547     siemens)
8548       need_lib_prefix=no
8549       ;;
8550     motorola)
8551       need_lib_prefix=no
8552       need_version=no
8553       shlibpath_overrides_runpath=no
8554       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8555       ;;
8556   esac
8557   ;;
8558
8559 sysv4*MP*)
8560   if test -d /usr/nec ;then
8561     version_type=linux
8562     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8563     soname_spec='$libname${shared_ext}.$major'
8564     shlibpath_var=LD_LIBRARY_PATH
8565   fi
8566   ;;
8567
8568 uts4*)
8569   version_type=linux
8570   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8571   soname_spec='${libname}${release}${shared_ext}$major'
8572   shlibpath_var=LD_LIBRARY_PATH
8573   ;;
8574
8575 *)
8576   dynamic_linker=no
8577   ;;
8578 esac
8579 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8580 echo "${ECHO_T}$dynamic_linker" >&6; }
8581 test "$dynamic_linker" = no && can_build_shared=no
8582
8583 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8584 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
8585 hardcode_action=
8586 if test -n "$hardcode_libdir_flag_spec" || \
8587    test -n "$runpath_var " || \
8588    test "X$hardcode_automatic"="Xyes" ; then
8589
8590   # We can hardcode non-existant directories.
8591   if test "$hardcode_direct" != no &&
8592      # If the only mechanism to avoid hardcoding is shlibpath_var, we
8593      # have to relink, otherwise we might link with an installed library
8594      # when we should be linking with a yet-to-be-installed one
8595      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8596      test "$hardcode_minus_L" != no; then
8597     # Linking always hardcodes the temporary library directory.
8598     hardcode_action=relink
8599   else
8600     # We can link without hardcoding, and we can hardcode nonexisting dirs.
8601     hardcode_action=immediate
8602   fi
8603 else
8604   # We cannot hardcode anything, or else we can only hardcode existing
8605   # directories.
8606   hardcode_action=unsupported
8607 fi
8608 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
8609 echo "${ECHO_T}$hardcode_action" >&6; }
8610
8611 if test "$hardcode_action" = relink; then
8612   # Fast installation is not supported
8613   enable_fast_install=no
8614 elif test "$shlibpath_overrides_runpath" = yes ||
8615      test "$enable_shared" = no; then
8616   # Fast installation is not necessary
8617   enable_fast_install=needless
8618 fi
8619
8620 striplib=
8621 old_striplib=
8622 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8623 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
8624 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8625   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8626   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8627   { echo "$as_me:$LINENO: result: yes" >&5
8628 echo "${ECHO_T}yes" >&6; }
8629 else
8630 # FIXME - insert some real tests, host_os isn't really good enough
8631   case $host_os in
8632    darwin*)
8633        if test -n "$STRIP" ; then
8634          striplib="$STRIP -x"
8635          { echo "$as_me:$LINENO: result: yes" >&5
8636 echo "${ECHO_T}yes" >&6; }
8637        else
8638   { echo "$as_me:$LINENO: result: no" >&5
8639 echo "${ECHO_T}no" >&6; }
8640 fi
8641        ;;
8642    *)
8643   { echo "$as_me:$LINENO: result: no" >&5
8644 echo "${ECHO_T}no" >&6; }
8645     ;;
8646   esac
8647 fi
8648
8649 if test "x$enable_dlopen" != xyes; then
8650   enable_dlopen=unknown
8651   enable_dlopen_self=unknown
8652   enable_dlopen_self_static=unknown
8653 else
8654   lt_cv_dlopen=no
8655   lt_cv_dlopen_libs=
8656
8657   case $host_os in
8658   beos*)
8659     lt_cv_dlopen="load_add_on"
8660     lt_cv_dlopen_libs=
8661     lt_cv_dlopen_self=yes
8662     ;;
8663
8664   mingw* | pw32*)
8665     lt_cv_dlopen="LoadLibrary"
8666     lt_cv_dlopen_libs=
8667    ;;
8668
8669   cygwin*)
8670     lt_cv_dlopen="dlopen"
8671     lt_cv_dlopen_libs=
8672    ;;
8673
8674   darwin*)
8675   # if libdl is installed we need to link against it
8676     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8677 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
8678 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8679   echo $ECHO_N "(cached) $ECHO_C" >&6
8680 else
8681   ac_check_lib_save_LIBS=$LIBS
8682 LIBS="-ldl  $LIBS"
8683 cat >conftest.$ac_ext <<_ACEOF
8684 /* confdefs.h.  */
8685 _ACEOF
8686 cat confdefs.h >>conftest.$ac_ext
8687 cat >>conftest.$ac_ext <<_ACEOF
8688 /* end confdefs.h.  */
8689
8690 /* Override any GCC internal prototype to avoid an error.
8691    Use char because int might match the return type of a GCC
8692    builtin and then its argument prototype would still apply.  */
8693 #ifdef __cplusplus
8694 extern "C"
8695 #endif
8696 char dlopen ();
8697 int
8698 main ()
8699 {
8700 return dlopen ();
8701   ;
8702   return 0;
8703 }
8704 _ACEOF
8705 rm -f conftest.$ac_objext conftest$ac_exeext
8706 if { (ac_try="$ac_link"
8707 case "(($ac_try" in
8708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8709   *) ac_try_echo=$ac_try;;
8710 esac
8711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8712   (eval "$ac_link") 2>conftest.er1
8713   ac_status=$?
8714   grep -v '^ *+' conftest.er1 >conftest.err
8715   rm -f conftest.er1
8716   cat conftest.err >&5
8717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8718   (exit $ac_status); } && {
8719          test -z "$ac_c_werror_flag" ||
8720          test ! -s conftest.err
8721        } && test -s conftest$ac_exeext &&
8722        $as_test_x conftest$ac_exeext; then
8723   ac_cv_lib_dl_dlopen=yes
8724 else
8725   echo "$as_me: failed program was:" >&5
8726 sed 's/^/| /' conftest.$ac_ext >&5
8727
8728         ac_cv_lib_dl_dlopen=no
8729 fi
8730
8731 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8732       conftest$ac_exeext conftest.$ac_ext
8733 LIBS=$ac_check_lib_save_LIBS
8734 fi
8735 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8736 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
8737 if test $ac_cv_lib_dl_dlopen = yes; then
8738   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8739 else
8740
8741     lt_cv_dlopen="dyld"
8742     lt_cv_dlopen_libs=
8743     lt_cv_dlopen_self=yes
8744
8745 fi
8746
8747    ;;
8748
8749   *)
8750     { echo "$as_me:$LINENO: checking for shl_load" >&5
8751 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
8752 if test "${ac_cv_func_shl_load+set}" = set; then
8753   echo $ECHO_N "(cached) $ECHO_C" >&6
8754 else
8755   cat >conftest.$ac_ext <<_ACEOF
8756 /* confdefs.h.  */
8757 _ACEOF
8758 cat confdefs.h >>conftest.$ac_ext
8759 cat >>conftest.$ac_ext <<_ACEOF
8760 /* end confdefs.h.  */
8761 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8762    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8763 #define shl_load innocuous_shl_load
8764
8765 /* System header to define __stub macros and hopefully few prototypes,
8766     which can conflict with char shl_load (); below.
8767     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8768     <limits.h> exists even on freestanding compilers.  */
8769
8770 #ifdef __STDC__
8771 # include <limits.h>
8772 #else
8773 # include <assert.h>
8774 #endif
8775
8776 #undef shl_load
8777
8778 /* Override any GCC internal prototype to avoid an error.
8779    Use char because int might match the return type of a GCC
8780    builtin and then its argument prototype would still apply.  */
8781 #ifdef __cplusplus
8782 extern "C"
8783 #endif
8784 char shl_load ();
8785 /* The GNU C library defines this for functions which it implements
8786     to always fail with ENOSYS.  Some functions are actually named
8787     something starting with __ and the normal name is an alias.  */
8788 #if defined __stub_shl_load || defined __stub___shl_load
8789 choke me
8790 #endif
8791
8792 int
8793 main ()
8794 {
8795 return shl_load ();
8796   ;
8797   return 0;
8798 }
8799 _ACEOF
8800 rm -f conftest.$ac_objext conftest$ac_exeext
8801 if { (ac_try="$ac_link"
8802 case "(($ac_try" in
8803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8804   *) ac_try_echo=$ac_try;;
8805 esac
8806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8807   (eval "$ac_link") 2>conftest.er1
8808   ac_status=$?
8809   grep -v '^ *+' conftest.er1 >conftest.err
8810   rm -f conftest.er1
8811   cat conftest.err >&5
8812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8813   (exit $ac_status); } && {
8814          test -z "$ac_c_werror_flag" ||
8815          test ! -s conftest.err
8816        } && test -s conftest$ac_exeext &&
8817        $as_test_x conftest$ac_exeext; then
8818   ac_cv_func_shl_load=yes
8819 else
8820   echo "$as_me: failed program was:" >&5
8821 sed 's/^/| /' conftest.$ac_ext >&5
8822
8823         ac_cv_func_shl_load=no
8824 fi
8825
8826 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8827       conftest$ac_exeext conftest.$ac_ext
8828 fi
8829 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8830 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
8831 if test $ac_cv_func_shl_load = yes; then
8832   lt_cv_dlopen="shl_load"
8833 else
8834   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8835 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
8836 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8837   echo $ECHO_N "(cached) $ECHO_C" >&6
8838 else
8839   ac_check_lib_save_LIBS=$LIBS
8840 LIBS="-ldld  $LIBS"
8841 cat >conftest.$ac_ext <<_ACEOF
8842 /* confdefs.h.  */
8843 _ACEOF
8844 cat confdefs.h >>conftest.$ac_ext
8845 cat >>conftest.$ac_ext <<_ACEOF
8846 /* end confdefs.h.  */
8847
8848 /* Override any GCC internal prototype to avoid an error.
8849    Use char because int might match the return type of a GCC
8850    builtin and then its argument prototype would still apply.  */
8851 #ifdef __cplusplus
8852 extern "C"
8853 #endif
8854 char shl_load ();
8855 int
8856 main ()
8857 {
8858 return shl_load ();
8859   ;
8860   return 0;
8861 }
8862 _ACEOF
8863 rm -f conftest.$ac_objext conftest$ac_exeext
8864 if { (ac_try="$ac_link"
8865 case "(($ac_try" in
8866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8867   *) ac_try_echo=$ac_try;;
8868 esac
8869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8870   (eval "$ac_link") 2>conftest.er1
8871   ac_status=$?
8872   grep -v '^ *+' conftest.er1 >conftest.err
8873   rm -f conftest.er1
8874   cat conftest.err >&5
8875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8876   (exit $ac_status); } && {
8877          test -z "$ac_c_werror_flag" ||
8878          test ! -s conftest.err
8879        } && test -s conftest$ac_exeext &&
8880        $as_test_x conftest$ac_exeext; then
8881   ac_cv_lib_dld_shl_load=yes
8882 else
8883   echo "$as_me: failed program was:" >&5
8884 sed 's/^/| /' conftest.$ac_ext >&5
8885
8886         ac_cv_lib_dld_shl_load=no
8887 fi
8888
8889 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8890       conftest$ac_exeext conftest.$ac_ext
8891 LIBS=$ac_check_lib_save_LIBS
8892 fi
8893 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8894 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
8895 if test $ac_cv_lib_dld_shl_load = yes; then
8896   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8897 else
8898   { echo "$as_me:$LINENO: checking for dlopen" >&5
8899 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
8900 if test "${ac_cv_func_dlopen+set}" = set; then
8901   echo $ECHO_N "(cached) $ECHO_C" >&6
8902 else
8903   cat >conftest.$ac_ext <<_ACEOF
8904 /* confdefs.h.  */
8905 _ACEOF
8906 cat confdefs.h >>conftest.$ac_ext
8907 cat >>conftest.$ac_ext <<_ACEOF
8908 /* end confdefs.h.  */
8909 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8910    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8911 #define dlopen innocuous_dlopen
8912
8913 /* System header to define __stub macros and hopefully few prototypes,
8914     which can conflict with char dlopen (); below.
8915     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8916     <limits.h> exists even on freestanding compilers.  */
8917
8918 #ifdef __STDC__
8919 # include <limits.h>
8920 #else
8921 # include <assert.h>
8922 #endif
8923
8924 #undef dlopen
8925
8926 /* Override any GCC internal prototype to avoid an error.
8927    Use char because int might match the return type of a GCC
8928    builtin and then its argument prototype would still apply.  */
8929 #ifdef __cplusplus
8930 extern "C"
8931 #endif
8932 char dlopen ();
8933 /* The GNU C library defines this for functions which it implements
8934     to always fail with ENOSYS.  Some functions are actually named
8935     something starting with __ and the normal name is an alias.  */
8936 #if defined __stub_dlopen || defined __stub___dlopen
8937 choke me
8938 #endif
8939
8940 int
8941 main ()
8942 {
8943 return dlopen ();
8944   ;
8945   return 0;
8946 }
8947 _ACEOF
8948 rm -f conftest.$ac_objext conftest$ac_exeext
8949 if { (ac_try="$ac_link"
8950 case "(($ac_try" in
8951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8952   *) ac_try_echo=$ac_try;;
8953 esac
8954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8955   (eval "$ac_link") 2>conftest.er1
8956   ac_status=$?
8957   grep -v '^ *+' conftest.er1 >conftest.err
8958   rm -f conftest.er1
8959   cat conftest.err >&5
8960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8961   (exit $ac_status); } && {
8962          test -z "$ac_c_werror_flag" ||
8963          test ! -s conftest.err
8964        } && test -s conftest$ac_exeext &&
8965        $as_test_x conftest$ac_exeext; then
8966   ac_cv_func_dlopen=yes
8967 else
8968   echo "$as_me: failed program was:" >&5
8969 sed 's/^/| /' conftest.$ac_ext >&5
8970
8971         ac_cv_func_dlopen=no
8972 fi
8973
8974 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8975       conftest$ac_exeext conftest.$ac_ext
8976 fi
8977 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8978 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
8979 if test $ac_cv_func_dlopen = yes; then
8980   lt_cv_dlopen="dlopen"
8981 else
8982   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8983 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
8984 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8985   echo $ECHO_N "(cached) $ECHO_C" >&6
8986 else
8987   ac_check_lib_save_LIBS=$LIBS
8988 LIBS="-ldl  $LIBS"
8989 cat >conftest.$ac_ext <<_ACEOF
8990 /* confdefs.h.  */
8991 _ACEOF
8992 cat confdefs.h >>conftest.$ac_ext
8993 cat >>conftest.$ac_ext <<_ACEOF
8994 /* end confdefs.h.  */
8995
8996 /* Override any GCC internal prototype to avoid an error.
8997    Use char because int might match the return type of a GCC
8998    builtin and then its argument prototype would still apply.  */
8999 #ifdef __cplusplus
9000 extern "C"
9001 #endif
9002 char dlopen ();
9003 int
9004 main ()
9005 {
9006 return dlopen ();
9007   ;
9008   return 0;
9009 }
9010 _ACEOF
9011 rm -f conftest.$ac_objext conftest$ac_exeext
9012 if { (ac_try="$ac_link"
9013 case "(($ac_try" in
9014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9015   *) ac_try_echo=$ac_try;;
9016 esac
9017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9018   (eval "$ac_link") 2>conftest.er1
9019   ac_status=$?
9020   grep -v '^ *+' conftest.er1 >conftest.err
9021   rm -f conftest.er1
9022   cat conftest.err >&5
9023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9024   (exit $ac_status); } && {
9025          test -z "$ac_c_werror_flag" ||
9026          test ! -s conftest.err
9027        } && test -s conftest$ac_exeext &&
9028        $as_test_x conftest$ac_exeext; then
9029   ac_cv_lib_dl_dlopen=yes
9030 else
9031   echo "$as_me: failed program was:" >&5
9032 sed 's/^/| /' conftest.$ac_ext >&5
9033
9034         ac_cv_lib_dl_dlopen=no
9035 fi
9036
9037 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9038       conftest$ac_exeext conftest.$ac_ext
9039 LIBS=$ac_check_lib_save_LIBS
9040 fi
9041 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9042 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9043 if test $ac_cv_lib_dl_dlopen = yes; then
9044   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9045 else
9046   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9047 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9048 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9049   echo $ECHO_N "(cached) $ECHO_C" >&6
9050 else
9051   ac_check_lib_save_LIBS=$LIBS
9052 LIBS="-lsvld  $LIBS"
9053 cat >conftest.$ac_ext <<_ACEOF
9054 /* confdefs.h.  */
9055 _ACEOF
9056 cat confdefs.h >>conftest.$ac_ext
9057 cat >>conftest.$ac_ext <<_ACEOF
9058 /* end confdefs.h.  */
9059
9060 /* Override any GCC internal prototype to avoid an error.
9061    Use char because int might match the return type of a GCC
9062    builtin and then its argument prototype would still apply.  */
9063 #ifdef __cplusplus
9064 extern "C"
9065 #endif
9066 char dlopen ();
9067 int
9068 main ()
9069 {
9070 return dlopen ();
9071   ;
9072   return 0;
9073 }
9074 _ACEOF
9075 rm -f conftest.$ac_objext conftest$ac_exeext
9076 if { (ac_try="$ac_link"
9077 case "(($ac_try" in
9078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9079   *) ac_try_echo=$ac_try;;
9080 esac
9081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9082   (eval "$ac_link") 2>conftest.er1
9083   ac_status=$?
9084   grep -v '^ *+' conftest.er1 >conftest.err
9085   rm -f conftest.er1
9086   cat conftest.err >&5
9087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9088   (exit $ac_status); } && {
9089          test -z "$ac_c_werror_flag" ||
9090          test ! -s conftest.err
9091        } && test -s conftest$ac_exeext &&
9092        $as_test_x conftest$ac_exeext; then
9093   ac_cv_lib_svld_dlopen=yes
9094 else
9095   echo "$as_me: failed program was:" >&5
9096 sed 's/^/| /' conftest.$ac_ext >&5
9097
9098         ac_cv_lib_svld_dlopen=no
9099 fi
9100
9101 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9102       conftest$ac_exeext conftest.$ac_ext
9103 LIBS=$ac_check_lib_save_LIBS
9104 fi
9105 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9106 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9107 if test $ac_cv_lib_svld_dlopen = yes; then
9108   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9109 else
9110   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9111 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9112 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9113   echo $ECHO_N "(cached) $ECHO_C" >&6
9114 else
9115   ac_check_lib_save_LIBS=$LIBS
9116 LIBS="-ldld  $LIBS"
9117 cat >conftest.$ac_ext <<_ACEOF
9118 /* confdefs.h.  */
9119 _ACEOF
9120 cat confdefs.h >>conftest.$ac_ext
9121 cat >>conftest.$ac_ext <<_ACEOF
9122 /* end confdefs.h.  */
9123
9124 /* Override any GCC internal prototype to avoid an error.
9125    Use char because int might match the return type of a GCC
9126    builtin and then its argument prototype would still apply.  */
9127 #ifdef __cplusplus
9128 extern "C"
9129 #endif
9130 char dld_link ();
9131 int
9132 main ()
9133 {
9134 return dld_link ();
9135   ;
9136   return 0;
9137 }
9138 _ACEOF
9139 rm -f conftest.$ac_objext conftest$ac_exeext
9140 if { (ac_try="$ac_link"
9141 case "(($ac_try" in
9142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9143   *) ac_try_echo=$ac_try;;
9144 esac
9145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9146   (eval "$ac_link") 2>conftest.er1
9147   ac_status=$?
9148   grep -v '^ *+' conftest.er1 >conftest.err
9149   rm -f conftest.er1
9150   cat conftest.err >&5
9151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9152   (exit $ac_status); } && {
9153          test -z "$ac_c_werror_flag" ||
9154          test ! -s conftest.err
9155        } && test -s conftest$ac_exeext &&
9156        $as_test_x conftest$ac_exeext; then
9157   ac_cv_lib_dld_dld_link=yes
9158 else
9159   echo "$as_me: failed program was:" >&5
9160 sed 's/^/| /' conftest.$ac_ext >&5
9161
9162         ac_cv_lib_dld_dld_link=no
9163 fi
9164
9165 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9166       conftest$ac_exeext conftest.$ac_ext
9167 LIBS=$ac_check_lib_save_LIBS
9168 fi
9169 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9170 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9171 if test $ac_cv_lib_dld_dld_link = yes; then
9172   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9173 fi
9174
9175
9176 fi
9177
9178
9179 fi
9180
9181
9182 fi
9183
9184
9185 fi
9186
9187
9188 fi
9189
9190     ;;
9191   esac
9192
9193   if test "x$lt_cv_dlopen" != xno; then
9194     enable_dlopen=yes
9195   else
9196     enable_dlopen=no
9197   fi
9198
9199   case $lt_cv_dlopen in
9200   dlopen)
9201     save_CPPFLAGS="$CPPFLAGS"
9202     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9203
9204     save_LDFLAGS="$LDFLAGS"
9205     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9206
9207     save_LIBS="$LIBS"
9208     LIBS="$lt_cv_dlopen_libs $LIBS"
9209
9210     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9211 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9212 if test "${lt_cv_dlopen_self+set}" = set; then
9213   echo $ECHO_N "(cached) $ECHO_C" >&6
9214 else
9215           if test "$cross_compiling" = yes; then :
9216   lt_cv_dlopen_self=cross
9217 else
9218   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9219   lt_status=$lt_dlunknown
9220   cat > conftest.$ac_ext <<EOF
9221 #line 9221 "configure"
9222 #include "confdefs.h"
9223
9224 #if HAVE_DLFCN_H
9225 #include <dlfcn.h>
9226 #endif
9227
9228 #include <stdio.h>
9229
9230 #ifdef RTLD_GLOBAL
9231 #  define LT_DLGLOBAL           RTLD_GLOBAL
9232 #else
9233 #  ifdef DL_GLOBAL
9234 #    define LT_DLGLOBAL         DL_GLOBAL
9235 #  else
9236 #    define LT_DLGLOBAL         0
9237 #  endif
9238 #endif
9239
9240 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9241    find out it does not work in some platform. */
9242 #ifndef LT_DLLAZY_OR_NOW
9243 #  ifdef RTLD_LAZY
9244 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9245 #  else
9246 #    ifdef DL_LAZY
9247 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9248 #    else
9249 #      ifdef RTLD_NOW
9250 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9251 #      else
9252 #        ifdef DL_NOW
9253 #          define LT_DLLAZY_OR_NOW      DL_NOW
9254 #        else
9255 #          define LT_DLLAZY_OR_NOW      0
9256 #        endif
9257 #      endif
9258 #    endif
9259 #  endif
9260 #endif
9261
9262 #ifdef __cplusplus
9263 extern "C" void exit (int);
9264 #endif
9265
9266 void fnord() { int i=42;}
9267 int main ()
9268 {
9269   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9270   int status = $lt_dlunknown;
9271
9272   if (self)
9273     {
9274       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9275       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9276       /* dlclose (self); */
9277     }
9278
9279     exit (status);
9280 }
9281 EOF
9282   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9283   (eval $ac_link) 2>&5
9284   ac_status=$?
9285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9286   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9287     (./conftest; exit; ) 2>/dev/null
9288     lt_status=$?
9289     case x$lt_status in
9290       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9291       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9292       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
9293     esac
9294   else :
9295     # compilation failed
9296     lt_cv_dlopen_self=no
9297   fi
9298 fi
9299 rm -fr conftest*
9300
9301
9302 fi
9303 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9304 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9305
9306     if test "x$lt_cv_dlopen_self" = xyes; then
9307       LDFLAGS="$LDFLAGS $link_static_flag"
9308       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9309 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9310 if test "${lt_cv_dlopen_self_static+set}" = set; then
9311   echo $ECHO_N "(cached) $ECHO_C" >&6
9312 else
9313           if test "$cross_compiling" = yes; then :
9314   lt_cv_dlopen_self_static=cross
9315 else
9316   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9317   lt_status=$lt_dlunknown
9318   cat > conftest.$ac_ext <<EOF
9319 #line 9319 "configure"
9320 #include "confdefs.h"
9321
9322 #if HAVE_DLFCN_H
9323 #include <dlfcn.h>
9324 #endif
9325
9326 #include <stdio.h>
9327
9328 #ifdef RTLD_GLOBAL
9329 #  define LT_DLGLOBAL           RTLD_GLOBAL
9330 #else
9331 #  ifdef DL_GLOBAL
9332 #    define LT_DLGLOBAL         DL_GLOBAL
9333 #  else
9334 #    define LT_DLGLOBAL         0
9335 #  endif
9336 #endif
9337
9338 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9339    find out it does not work in some platform. */
9340 #ifndef LT_DLLAZY_OR_NOW
9341 #  ifdef RTLD_LAZY
9342 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9343 #  else
9344 #    ifdef DL_LAZY
9345 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9346 #    else
9347 #      ifdef RTLD_NOW
9348 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9349 #      else
9350 #        ifdef DL_NOW
9351 #          define LT_DLLAZY_OR_NOW      DL_NOW
9352 #        else
9353 #          define LT_DLLAZY_OR_NOW      0
9354 #        endif
9355 #      endif
9356 #    endif
9357 #  endif
9358 #endif
9359
9360 #ifdef __cplusplus
9361 extern "C" void exit (int);
9362 #endif
9363
9364 void fnord() { int i=42;}
9365 int main ()
9366 {
9367   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9368   int status = $lt_dlunknown;
9369
9370   if (self)
9371     {
9372       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9373       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9374       /* dlclose (self); */
9375     }
9376
9377     exit (status);
9378 }
9379 EOF
9380   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9381   (eval $ac_link) 2>&5
9382   ac_status=$?
9383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9384   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9385     (./conftest; exit; ) 2>/dev/null
9386     lt_status=$?
9387     case x$lt_status in
9388       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9389       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9390       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
9391     esac
9392   else :
9393     # compilation failed
9394     lt_cv_dlopen_self_static=no
9395   fi
9396 fi
9397 rm -fr conftest*
9398
9399
9400 fi
9401 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9402 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
9403     fi
9404
9405     CPPFLAGS="$save_CPPFLAGS"
9406     LDFLAGS="$save_LDFLAGS"
9407     LIBS="$save_LIBS"
9408     ;;
9409   esac
9410
9411   case $lt_cv_dlopen_self in
9412   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9413   *) enable_dlopen_self=unknown ;;
9414   esac
9415
9416   case $lt_cv_dlopen_self_static in
9417   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9418   *) enable_dlopen_self_static=unknown ;;
9419   esac
9420 fi
9421
9422
9423 # Report which librarie types wil actually be built
9424 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9425 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
9426 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
9427 echo "${ECHO_T}$can_build_shared" >&6; }
9428
9429 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9430 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
9431 test "$can_build_shared" = "no" && enable_shared=no
9432
9433 # On AIX, shared libraries and static libraries use the same namespace, and
9434 # are all built from PIC.
9435 case "$host_os" in
9436 aix3*)
9437   test "$enable_shared" = yes && enable_static=no
9438   if test -n "$RANLIB"; then
9439     archive_cmds="$archive_cmds~\$RANLIB \$lib"
9440     postinstall_cmds='$RANLIB $lib'
9441   fi
9442   ;;
9443
9444 aix4* | aix5*)
9445   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9446     test "$enable_shared" = yes && enable_static=no
9447   fi
9448   ;;
9449   darwin* | rhapsody*)
9450   if test "$GCC" = yes; then
9451     archive_cmds_need_lc=no
9452     case "$host_os" in
9453     rhapsody* | darwin1.[012])
9454       allow_undefined_flag='-undefined suppress'
9455       ;;
9456     *) # Darwin 1.3 on
9457       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9458         allow_undefined_flag='-flat_namespace -undefined suppress'
9459       else
9460         case ${MACOSX_DEPLOYMENT_TARGET} in
9461           10.[012])
9462             allow_undefined_flag='-flat_namespace -undefined suppress'
9463             ;;
9464           10.*)
9465             allow_undefined_flag='-undefined dynamic_lookup'
9466             ;;
9467         esac
9468       fi
9469       ;;
9470     esac
9471     output_verbose_link_cmd='echo'
9472     archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
9473     module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9474     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9475     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}'
9476     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}'
9477     hardcode_direct=no
9478     hardcode_automatic=yes
9479     hardcode_shlibpath_var=unsupported
9480     whole_archive_flag_spec='-all_load $convenience'
9481     link_all_deplibs=yes
9482   else
9483     ld_shlibs=no
9484   fi
9485     ;;
9486 esac
9487 { echo "$as_me:$LINENO: result: $enable_shared" >&5
9488 echo "${ECHO_T}$enable_shared" >&6; }
9489
9490 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9491 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
9492 # Make sure either enable_shared or enable_static is yes.
9493 test "$enable_shared" = yes || enable_static=yes
9494 { echo "$as_me:$LINENO: result: $enable_static" >&5
9495 echo "${ECHO_T}$enable_static" >&6; }
9496
9497 # The else clause should only fire when bootstrapping the
9498 # libtool distribution, otherwise you forgot to ship ltmain.sh
9499 # with your package, and you will get complaints that there are
9500 # no rules to generate ltmain.sh.
9501 if test -f "$ltmain"; then
9502   # See if we are running on zsh, and set the options which allow our commands through
9503   # without removal of \ escapes.
9504   if test -n "${ZSH_VERSION+set}" ; then
9505     setopt NO_GLOB_SUBST
9506   fi
9507   # Now quote all the things that may contain metacharacters while being
9508   # careful not to overquote the AC_SUBSTed values.  We take copies of the
9509   # variables and quote the copies for generation of the libtool script.
9510   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9511     SED SHELL STRIP \
9512     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9513     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9514     deplibs_check_method reload_flag reload_cmds need_locks \
9515     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9516     lt_cv_sys_global_symbol_to_c_name_address \
9517     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9518     old_postinstall_cmds old_postuninstall_cmds \
9519     compiler \
9520     CC \
9521     LD \
9522     lt_prog_compiler_wl \
9523     lt_prog_compiler_pic \
9524     lt_prog_compiler_static \
9525     lt_prog_compiler_no_builtin_flag \
9526     export_dynamic_flag_spec \
9527     thread_safe_flag_spec \
9528     whole_archive_flag_spec \
9529     enable_shared_with_static_runtimes \
9530     old_archive_cmds \
9531     old_archive_from_new_cmds \
9532     predep_objects \
9533     postdep_objects \
9534     predeps \
9535     postdeps \
9536     compiler_lib_search_path \
9537     archive_cmds \
9538     archive_expsym_cmds \
9539     postinstall_cmds \
9540     postuninstall_cmds \
9541     old_archive_from_expsyms_cmds \
9542     allow_undefined_flag \
9543     no_undefined_flag \
9544     export_symbols_cmds \
9545     hardcode_libdir_flag_spec \
9546     hardcode_libdir_flag_spec_ld \
9547     hardcode_libdir_separator \
9548     hardcode_automatic \
9549     module_cmds \
9550     module_expsym_cmds \
9551     lt_cv_prog_compiler_c_o \
9552     exclude_expsyms \
9553     include_expsyms; do
9554
9555     case $var in
9556     old_archive_cmds | \
9557     old_archive_from_new_cmds | \
9558     archive_cmds | \
9559     archive_expsym_cmds | \
9560     module_cmds | \
9561     module_expsym_cmds | \
9562     old_archive_from_expsyms_cmds | \
9563     export_symbols_cmds | \
9564     extract_expsyms_cmds | reload_cmds | finish_cmds | \
9565     postinstall_cmds | postuninstall_cmds | \
9566     old_postinstall_cmds | old_postuninstall_cmds | \
9567     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9568       # Double-quote double-evaled strings.
9569       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9570       ;;
9571     *)
9572       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9573       ;;
9574     esac
9575   done
9576
9577   case $lt_echo in
9578   *'\$0 --fallback-echo"')
9579     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9580     ;;
9581   esac
9582
9583 cfgfile="${ofile}T"
9584   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9585   $rm -f "$cfgfile"
9586   { echo "$as_me:$LINENO: creating $ofile" >&5
9587 echo "$as_me: creating $ofile" >&6;}
9588
9589   cat <<__EOF__ >> "$cfgfile"
9590 #! $SHELL
9591
9592 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9593 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9594 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9595 #
9596 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9597 # Free Software Foundation, Inc.
9598 #
9599 # This file is part of GNU Libtool:
9600 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9601 #
9602 # This program is free software; you can redistribute it and/or modify
9603 # it under the terms of the GNU General Public License as published by
9604 # the Free Software Foundation; either version 2 of the License, or
9605 # (at your option) any later version.
9606 #
9607 # This program is distributed in the hope that it will be useful, but
9608 # WITHOUT ANY WARRANTY; without even the implied warranty of
9609 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9610 # General Public License for more details.
9611 #
9612 # You should have received a copy of the GNU General Public License
9613 # along with this program; if not, write to the Free Software
9614 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9615 #
9616 # As a special exception to the GNU General Public License, if you
9617 # distribute this file as part of a program that contains a
9618 # configuration script generated by Autoconf, you may include it under
9619 # the same distribution terms that you use for the rest of that program.
9620
9621 # A sed program that does not truncate output.
9622 SED=$lt_SED
9623
9624 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9625 Xsed="$SED -e s/^X//"
9626
9627 # The HP-UX ksh and POSIX shell print the target directory to stdout
9628 # if CDPATH is set.
9629 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9630
9631 # The names of the tagged configurations supported by this script.
9632 available_tags=
9633
9634 # ### BEGIN LIBTOOL CONFIG
9635
9636 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9637
9638 # Shell to use when invoking shell scripts.
9639 SHELL=$lt_SHELL
9640
9641 # Whether or not to build shared libraries.
9642 build_libtool_libs=$enable_shared
9643
9644 # Whether or not to build static libraries.
9645 build_old_libs=$enable_static
9646
9647 # Whether or not to add -lc for building shared libraries.
9648 build_libtool_need_lc=$archive_cmds_need_lc
9649
9650 # Whether or not to disallow shared libs when runtime libs are static
9651 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9652
9653 # Whether or not to optimize for fast installation.
9654 fast_install=$enable_fast_install
9655
9656 # The host system.
9657 host_alias=$host_alias
9658 host=$host
9659
9660 # An echo program that does not interpret backslashes.
9661 echo=$lt_echo
9662
9663 # The archiver.
9664 AR=$lt_AR
9665 AR_FLAGS=$lt_AR_FLAGS
9666
9667 # A C compiler.
9668 LTCC=$lt_LTCC
9669
9670 # A language-specific compiler.
9671 CC=$lt_compiler
9672
9673 # Is the compiler the GNU C compiler?
9674 with_gcc=$GCC
9675
9676 # An ERE matcher.
9677 EGREP=$lt_EGREP
9678
9679 # The linker used to build libraries.
9680 LD=$lt_LD
9681
9682 # Whether we need hard or soft links.
9683 LN_S=$lt_LN_S
9684
9685 # A BSD-compatible nm program.
9686 NM=$lt_NM
9687
9688 # A symbol stripping program
9689 STRIP=$lt_STRIP
9690
9691 # Used to examine libraries when file_magic_cmd begins "file"
9692 MAGIC_CMD=$MAGIC_CMD
9693
9694 # Used on cygwin: DLL creation program.
9695 DLLTOOL="$DLLTOOL"
9696
9697 # Used on cygwin: object dumper.
9698 OBJDUMP="$OBJDUMP"
9699
9700 # Used on cygwin: assembler.
9701 AS="$AS"
9702
9703 # The name of the directory that contains temporary libtool files.
9704 objdir=$objdir
9705
9706 # How to create reloadable object files.
9707 reload_flag=$lt_reload_flag
9708 reload_cmds=$lt_reload_cmds
9709
9710 # How to pass a linker flag through the compiler.
9711 wl=$lt_lt_prog_compiler_wl
9712
9713 # Object file suffix (normally "o").
9714 objext="$ac_objext"
9715
9716 # Old archive suffix (normally "a").
9717 libext="$libext"
9718
9719 # Shared library suffix (normally ".so").
9720 shrext_cmds='$shrext_cmds'
9721
9722 # Executable file suffix (normally "").
9723 exeext="$exeext"
9724
9725 # Additional compiler flags for building library objects.
9726 pic_flag=$lt_lt_prog_compiler_pic
9727 pic_mode=$pic_mode
9728
9729 # What is the maximum length of a command?
9730 max_cmd_len=$lt_cv_sys_max_cmd_len
9731
9732 # Does compiler simultaneously support -c and -o options?
9733 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9734
9735 # Must we lock files when doing compilation ?
9736 need_locks=$lt_need_locks
9737
9738 # Do we need the lib prefix for modules?
9739 need_lib_prefix=$need_lib_prefix
9740
9741 # Do we need a version for libraries?
9742 need_version=$need_version
9743
9744 # Whether dlopen is supported.
9745 dlopen_support=$enable_dlopen
9746
9747 # Whether dlopen of programs is supported.
9748 dlopen_self=$enable_dlopen_self
9749
9750 # Whether dlopen of statically linked programs is supported.
9751 dlopen_self_static=$enable_dlopen_self_static
9752
9753 # Compiler flag to prevent dynamic linking.
9754 link_static_flag=$lt_lt_prog_compiler_static
9755
9756 # Compiler flag to turn off builtin functions.
9757 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9758
9759 # Compiler flag to allow reflexive dlopens.
9760 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9761
9762 # Compiler flag to generate shared objects directly from archives.
9763 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9764
9765 # Compiler flag to generate thread-safe objects.
9766 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9767
9768 # Library versioning type.
9769 version_type=$version_type
9770
9771 # Format of library name prefix.
9772 libname_spec=$lt_libname_spec
9773
9774 # List of archive names.  First name is the real one, the rest are links.
9775 # The last name is the one that the linker finds with -lNAME.
9776 library_names_spec=$lt_library_names_spec
9777
9778 # The coded name of the library, if different from the real name.
9779 soname_spec=$lt_soname_spec
9780
9781 # Commands used to build and install an old-style archive.
9782 RANLIB=$lt_RANLIB
9783 old_archive_cmds=$lt_old_archive_cmds
9784 old_postinstall_cmds=$lt_old_postinstall_cmds
9785 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9786
9787 # Create an old-style archive from a shared archive.
9788 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9789
9790 # Create a temporary old-style archive to link instead of a shared archive.
9791 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9792
9793 # Commands used to build and install a shared archive.
9794 archive_cmds=$lt_archive_cmds
9795 archive_expsym_cmds=$lt_archive_expsym_cmds
9796 postinstall_cmds=$lt_postinstall_cmds
9797 postuninstall_cmds=$lt_postuninstall_cmds
9798
9799 # Commands used to build a loadable module (assumed same as above if empty)
9800 module_cmds=$lt_module_cmds
9801 module_expsym_cmds=$lt_module_expsym_cmds
9802
9803 # Commands to strip libraries.
9804 old_striplib=$lt_old_striplib
9805 striplib=$lt_striplib
9806
9807 # Dependencies to place before the objects being linked to create a
9808 # shared library.
9809 predep_objects=$lt_predep_objects
9810
9811 # Dependencies to place after the objects being linked to create a
9812 # shared library.
9813 postdep_objects=$lt_postdep_objects
9814
9815 # Dependencies to place before the objects being linked to create a
9816 # shared library.
9817 predeps=$lt_predeps
9818
9819 # Dependencies to place after the objects being linked to create a
9820 # shared library.
9821 postdeps=$lt_postdeps
9822
9823 # The library search path used internally by the compiler when linking
9824 # a shared library.
9825 compiler_lib_search_path=$lt_compiler_lib_search_path
9826
9827 # Method to check whether dependent libraries are shared objects.
9828 deplibs_check_method=$lt_deplibs_check_method
9829
9830 # Command to use when deplibs_check_method == file_magic.
9831 file_magic_cmd=$lt_file_magic_cmd
9832
9833 # Flag that allows shared libraries with undefined symbols to be built.
9834 allow_undefined_flag=$lt_allow_undefined_flag
9835
9836 # Flag that forces no undefined symbols.
9837 no_undefined_flag=$lt_no_undefined_flag
9838
9839 # Commands used to finish a libtool library installation in a directory.
9840 finish_cmds=$lt_finish_cmds
9841
9842 # Same as above, but a single script fragment to be evaled but not shown.
9843 finish_eval=$lt_finish_eval
9844
9845 # Take the output of nm and produce a listing of raw symbols and C names.
9846 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9847
9848 # Transform the output of nm in a proper C declaration
9849 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9850
9851 # Transform the output of nm in a C name address pair
9852 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9853
9854 # This is the shared library runtime path variable.
9855 runpath_var=$runpath_var
9856
9857 # This is the shared library path variable.
9858 shlibpath_var=$shlibpath_var
9859
9860 # Is shlibpath searched before the hard-coded library search path?
9861 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9862
9863 # How to hardcode a shared library path into an executable.
9864 hardcode_action=$hardcode_action
9865
9866 # Whether we should hardcode library paths into libraries.
9867 hardcode_into_libs=$hardcode_into_libs
9868
9869 # Flag to hardcode \$libdir into a binary during linking.
9870 # This must work even if \$libdir does not exist.
9871 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9872
9873 # If ld is used when linking, flag to hardcode \$libdir into
9874 # a binary during linking. This must work even if \$libdir does
9875 # not exist.
9876 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9877
9878 # Whether we need a single -rpath flag with a separated argument.
9879 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9880
9881 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9882 # resulting binary.
9883 hardcode_direct=$hardcode_direct
9884
9885 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9886 # resulting binary.
9887 hardcode_minus_L=$hardcode_minus_L
9888
9889 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9890 # the resulting binary.
9891 hardcode_shlibpath_var=$hardcode_shlibpath_var
9892
9893 # Set to yes if building a shared library automatically hardcodes DIR into the library
9894 # and all subsequent libraries and executables linked against it.
9895 hardcode_automatic=$hardcode_automatic
9896
9897 # Variables whose values should be saved in libtool wrapper scripts and
9898 # restored at relink time.
9899 variables_saved_for_relink="$variables_saved_for_relink"
9900
9901 # Whether libtool must link a program against all its dependency libraries.
9902 link_all_deplibs=$link_all_deplibs
9903
9904 # Compile-time system search path for libraries
9905 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9906
9907 # Run-time system search path for libraries
9908 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9909
9910 # Fix the shell variable \$srcfile for the compiler.
9911 fix_srcfile_path="$fix_srcfile_path"
9912
9913 # Set to yes if exported symbols are required.
9914 always_export_symbols=$always_export_symbols
9915
9916 # The commands to list exported symbols.
9917 export_symbols_cmds=$lt_export_symbols_cmds
9918
9919 # The commands to extract the exported symbol list from a shared archive.
9920 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9921
9922 # Symbols that should not be listed in the preloaded symbols.
9923 exclude_expsyms=$lt_exclude_expsyms
9924
9925 # Symbols that must always be exported.
9926 include_expsyms=$lt_include_expsyms
9927
9928 # ### END LIBTOOL CONFIG
9929
9930 __EOF__
9931
9932
9933   case $host_os in
9934   aix3*)
9935     cat <<\EOF >> "$cfgfile"
9936
9937 # AIX sometimes has problems with the GCC collect2 program.  For some
9938 # reason, if we set the COLLECT_NAMES environment variable, the problems
9939 # vanish in a puff of smoke.
9940 if test "X${COLLECT_NAMES+set}" != Xset; then
9941   COLLECT_NAMES=
9942   export COLLECT_NAMES
9943 fi
9944 EOF
9945     ;;
9946   esac
9947
9948   # We use sed instead of cat because bash on DJGPP gets confused if
9949   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9950   # text mode, it properly converts lines to CR/LF.  This bash problem
9951   # is reportedly fixed, but why not run on old versions too?
9952   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9953
9954   mv -f "$cfgfile" "$ofile" || \
9955     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9956   chmod +x "$ofile"
9957
9958 else
9959   # If there is no Makefile yet, we rely on a make rule to execute
9960   # `config.status --recheck' to rerun these tests and create the
9961   # libtool script then.
9962   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9963   if test -f "$ltmain_in"; then
9964     test -f Makefile && make "$ltmain"
9965   fi
9966 fi
9967
9968
9969 ac_ext=c
9970 ac_cpp='$CPP $CPPFLAGS'
9971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9974
9975 CC="$lt_save_CC"
9976
9977
9978 # Check whether --with-tags was given.
9979 if test "${with_tags+set}" = set; then
9980   withval=$with_tags; tagnames="$withval"
9981 fi
9982
9983
9984 if test -f "$ltmain" && test -n "$tagnames"; then
9985   if test ! -f "${ofile}"; then
9986     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9987 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9988   fi
9989
9990   if test -z "$LTCC"; then
9991     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9992     if test -z "$LTCC"; then
9993       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9994 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9995     else
9996       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9997 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9998     fi
9999   fi
10000
10001   # Extract list of available tagged configurations in $ofile.
10002   # Note that this assumes the entire list is on one line.
10003   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10004
10005   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10006   for tagname in $tagnames; do
10007     IFS="$lt_save_ifs"
10008     # Check whether tagname contains only valid characters
10009     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10010     "") ;;
10011     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10012 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10013    { (exit 1); exit 1; }; }
10014         ;;
10015     esac
10016
10017     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10018     then
10019       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10020 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10021    { (exit 1); exit 1; }; }
10022     fi
10023
10024     # Update the list of available tags.
10025     if test -n "$tagname"; then
10026       echo appending configuration tag \"$tagname\" to $ofile
10027
10028       case $tagname in
10029       CXX)
10030         if test -n "$CXX" && test "X$CXX" != "Xno"; then
10031           ac_ext=cpp
10032 ac_cpp='$CXXCPP $CPPFLAGS'
10033 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10034 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10035 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10036
10037
10038
10039
10040 archive_cmds_need_lc_CXX=no
10041 allow_undefined_flag_CXX=
10042 always_export_symbols_CXX=no
10043 archive_expsym_cmds_CXX=
10044 export_dynamic_flag_spec_CXX=
10045 hardcode_direct_CXX=no
10046 hardcode_libdir_flag_spec_CXX=
10047 hardcode_libdir_flag_spec_ld_CXX=
10048 hardcode_libdir_separator_CXX=
10049 hardcode_minus_L_CXX=no
10050 hardcode_automatic_CXX=no
10051 module_cmds_CXX=
10052 module_expsym_cmds_CXX=
10053 link_all_deplibs_CXX=unknown
10054 old_archive_cmds_CXX=$old_archive_cmds
10055 no_undefined_flag_CXX=
10056 whole_archive_flag_spec_CXX=
10057 enable_shared_with_static_runtimes_CXX=no
10058
10059 # Dependencies to place before and after the object being linked:
10060 predep_objects_CXX=
10061 postdep_objects_CXX=
10062 predeps_CXX=
10063 postdeps_CXX=
10064 compiler_lib_search_path_CXX=
10065
10066 # Source file extension for C++ test sources.
10067 ac_ext=cc
10068
10069 # Object file extension for compiled C++ test sources.
10070 objext=o
10071 objext_CXX=$objext
10072
10073 # Code to be used in simple compile tests
10074 lt_simple_compile_test_code="int some_variable = 0;\n"
10075
10076 # Code to be used in simple link tests
10077 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
10078
10079 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10080
10081 # If no C compiler was specified, use CC.
10082 LTCC=${LTCC-"$CC"}
10083
10084 # Allow CC to be a program name with arguments.
10085 compiler=$CC
10086
10087
10088 # Allow CC to be a program name with arguments.
10089 lt_save_CC=$CC
10090 lt_save_LD=$LD
10091 lt_save_GCC=$GCC
10092 GCC=$GXX
10093 lt_save_with_gnu_ld=$with_gnu_ld
10094 lt_save_path_LD=$lt_cv_path_LD
10095 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10096   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10097 else
10098   unset lt_cv_prog_gnu_ld
10099 fi
10100 if test -n "${lt_cv_path_LDCXX+set}"; then
10101   lt_cv_path_LD=$lt_cv_path_LDCXX
10102 else
10103   unset lt_cv_path_LD
10104 fi
10105 test -z "${LDCXX+set}" || LD=$LDCXX
10106 CC=${CXX-"c++"}
10107 compiler=$CC
10108 compiler_CXX=$CC
10109 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
10110
10111 # We don't want -fno-exception wen compiling C++ code, so set the
10112 # no_builtin_flag separately
10113 if test "$GXX" = yes; then
10114   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10115 else
10116   lt_prog_compiler_no_builtin_flag_CXX=
10117 fi
10118
10119 if test "$GXX" = yes; then
10120   # Set up default GNU C++ configuration
10121
10122
10123 # Check whether --with-gnu-ld was given.
10124 if test "${with_gnu_ld+set}" = set; then
10125   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10126 else
10127   with_gnu_ld=no
10128 fi
10129
10130 ac_prog=ld
10131 if test "$GCC" = yes; then
10132   # Check if gcc -print-prog-name=ld gives a path.
10133   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10134 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10135   case $host in
10136   *-*-mingw*)
10137     # gcc leaves a trailing carriage return which upsets mingw
10138     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10139   *)
10140     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10141   esac
10142   case $ac_prog in
10143     # Accept absolute paths.
10144     [\\/]* | ?:[\\/]*)
10145       re_direlt='/[^/][^/]*/\.\./'
10146       # Canonicalize the pathname of ld
10147       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10148       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10149         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10150       done
10151       test -z "$LD" && LD="$ac_prog"
10152       ;;
10153   "")
10154     # If it fails, then pretend we aren't using GCC.
10155     ac_prog=ld
10156     ;;
10157   *)
10158     # If it is relative, then search for the first ld in PATH.
10159     with_gnu_ld=unknown
10160     ;;
10161   esac
10162 elif test "$with_gnu_ld" = yes; then
10163   { echo "$as_me:$LINENO: checking for GNU ld" >&5
10164 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10165 else
10166   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10167 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10168 fi
10169 if test "${lt_cv_path_LD+set}" = set; then
10170   echo $ECHO_N "(cached) $ECHO_C" >&6
10171 else
10172   if test -z "$LD"; then
10173   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10174   for ac_dir in $PATH; do
10175     IFS="$lt_save_ifs"
10176     test -z "$ac_dir" && ac_dir=.
10177     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10178       lt_cv_path_LD="$ac_dir/$ac_prog"
10179       # Check to see if the program is GNU ld.  I'd rather use --version,
10180       # but apparently some GNU ld's only accept -v.
10181       # Break only if it was the GNU/non-GNU ld that we prefer.
10182       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10183       *GNU* | *'with BFD'*)
10184         test "$with_gnu_ld" != no && break
10185         ;;
10186       *)
10187         test "$with_gnu_ld" != yes && break
10188         ;;
10189       esac
10190     fi
10191   done
10192   IFS="$lt_save_ifs"
10193 else
10194   lt_cv_path_LD="$LD" # Let the user override the test with a path.
10195 fi
10196 fi
10197
10198 LD="$lt_cv_path_LD"
10199 if test -n "$LD"; then
10200   { echo "$as_me:$LINENO: result: $LD" >&5
10201 echo "${ECHO_T}$LD" >&6; }
10202 else
10203   { echo "$as_me:$LINENO: result: no" >&5
10204 echo "${ECHO_T}no" >&6; }
10205 fi
10206 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10207 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10208    { (exit 1); exit 1; }; }
10209 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10210 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10211 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10212   echo $ECHO_N "(cached) $ECHO_C" >&6
10213 else
10214   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10215 case `$LD -v 2>&1 </dev/null` in
10216 *GNU* | *'with BFD'*)
10217   lt_cv_prog_gnu_ld=yes
10218   ;;
10219 *)
10220   lt_cv_prog_gnu_ld=no
10221   ;;
10222 esac
10223 fi
10224 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10225 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10226 with_gnu_ld=$lt_cv_prog_gnu_ld
10227
10228
10229
10230   # Check if GNU C++ uses GNU ld as the underlying linker, since the
10231   # archiving commands below assume that GNU ld is being used.
10232   if test "$with_gnu_ld" = yes; then
10233     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10234     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'
10235
10236     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10237     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10238
10239     # If archive_cmds runs LD, not CC, wlarc should be empty
10240     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10241     #     investigate it a little bit more. (MM)
10242     wlarc='${wl}'
10243
10244     # ancient GNU ld didn't support --whole-archive et. al.
10245     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10246         grep 'no-whole-archive' > /dev/null; then
10247       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10248     else
10249       whole_archive_flag_spec_CXX=
10250     fi
10251   else
10252     with_gnu_ld=no
10253     wlarc=
10254
10255     # A generic and very simple default shared library creation
10256     # command for GNU C++ for the case where it uses the native
10257     # linker, instead of GNU ld.  If possible, this setting should
10258     # overridden to take advantage of the native linker features on
10259     # the platform it is being used on.
10260     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10261   fi
10262
10263   # Commands to make compiler produce verbose output that lists
10264   # what "hidden" libraries, object files and flags are used when
10265   # linking a shared library.
10266   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10267
10268 else
10269   GXX=no
10270   with_gnu_ld=no
10271   wlarc=
10272 fi
10273
10274 # PORTME: fill in a description of your system's C++ link characteristics
10275 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10276 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10277 ld_shlibs_CXX=yes
10278 case $host_os in
10279   aix3*)
10280     # FIXME: insert proper C++ library support
10281     ld_shlibs_CXX=no
10282     ;;
10283   aix4* | aix5*)
10284     if test "$host_cpu" = ia64; then
10285       # On IA64, the linker does run time linking by default, so we don't
10286       # have to do anything special.
10287       aix_use_runtimelinking=no
10288       exp_sym_flag='-Bexport'
10289       no_entry_flag=""
10290     else
10291       aix_use_runtimelinking=no
10292
10293       # Test if we are trying to use run time linking or normal
10294       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10295       # need to do runtime linking.
10296       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10297         for ld_flag in $LDFLAGS; do
10298           case $ld_flag in
10299           *-brtl*)
10300             aix_use_runtimelinking=yes
10301             break
10302             ;;
10303           esac
10304         done
10305       esac
10306
10307       exp_sym_flag='-bexport'
10308       no_entry_flag='-bnoentry'
10309     fi
10310
10311     # When large executables or shared objects are built, AIX ld can
10312     # have problems creating the table of contents.  If linking a library
10313     # or program results in "error TOC overflow" add -mminimal-toc to
10314     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10315     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10316
10317     archive_cmds_CXX=''
10318     hardcode_direct_CXX=yes
10319     hardcode_libdir_separator_CXX=':'
10320     link_all_deplibs_CXX=yes
10321
10322     if test "$GXX" = yes; then
10323       case $host_os in aix4.012|aix4.012.*)
10324       # We only want to do this on AIX 4.2 and lower, the check
10325       # below for broken collect2 doesn't work under 4.3+
10326         collect2name=`${CC} -print-prog-name=collect2`
10327         if test -f "$collect2name" && \
10328            strings "$collect2name" | grep resolve_lib_name >/dev/null
10329         then
10330           # We have reworked collect2
10331           hardcode_direct_CXX=yes
10332         else
10333           # We have old collect2
10334           hardcode_direct_CXX=unsupported
10335           # It fails to find uninstalled libraries when the uninstalled
10336           # path is not listed in the libpath.  Setting hardcode_minus_L
10337           # to unsupported forces relinking
10338           hardcode_minus_L_CXX=yes
10339           hardcode_libdir_flag_spec_CXX='-L$libdir'
10340           hardcode_libdir_separator_CXX=
10341         fi
10342       esac
10343       shared_flag='-shared'
10344     else
10345       # not using gcc
10346       if test "$host_cpu" = ia64; then
10347         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10348         # chokes on -Wl,-G. The following line is correct:
10349         shared_flag='-G'
10350       else
10351         if test "$aix_use_runtimelinking" = yes; then
10352           shared_flag='${wl}-G'
10353         else
10354           shared_flag='${wl}-bM:SRE'
10355         fi
10356       fi
10357     fi
10358
10359     # It seems that -bexpall does not export symbols beginning with
10360     # underscore (_), so it is better to generate a list of symbols to export.
10361     always_export_symbols_CXX=yes
10362     if test "$aix_use_runtimelinking" = yes; then
10363       # Warning - without using the other runtime loading flags (-brtl),
10364       # -berok will link without error, but may produce a broken library.
10365       allow_undefined_flag_CXX='-berok'
10366       # Determine the default libpath from the value encoded in an empty executable.
10367       cat >conftest.$ac_ext <<_ACEOF
10368 /* confdefs.h.  */
10369 _ACEOF
10370 cat confdefs.h >>conftest.$ac_ext
10371 cat >>conftest.$ac_ext <<_ACEOF
10372 /* end confdefs.h.  */
10373
10374 int
10375 main ()
10376 {
10377
10378   ;
10379   return 0;
10380 }
10381 _ACEOF
10382 rm -f conftest.$ac_objext conftest$ac_exeext
10383 if { (ac_try="$ac_link"
10384 case "(($ac_try" in
10385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10386   *) ac_try_echo=$ac_try;;
10387 esac
10388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10389   (eval "$ac_link") 2>conftest.er1
10390   ac_status=$?
10391   grep -v '^ *+' conftest.er1 >conftest.err
10392   rm -f conftest.er1
10393   cat conftest.err >&5
10394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10395   (exit $ac_status); } && {
10396          test -z "$ac_cxx_werror_flag" ||
10397          test ! -s conftest.err
10398        } && test -s conftest$ac_exeext &&
10399        $as_test_x conftest$ac_exeext; then
10400
10401 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10402 }'`
10403 # Check for a 64-bit object if we didn't find anything.
10404 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; }
10405 }'`; fi
10406 else
10407   echo "$as_me: failed program was:" >&5
10408 sed 's/^/| /' conftest.$ac_ext >&5
10409
10410
10411 fi
10412
10413 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10414       conftest$ac_exeext conftest.$ac_ext
10415 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10416
10417       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10418
10419       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"
10420      else
10421       if test "$host_cpu" = ia64; then
10422         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10423         allow_undefined_flag_CXX="-z nodefs"
10424         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"
10425       else
10426         # Determine the default libpath from the value encoded in an empty executable.
10427         cat >conftest.$ac_ext <<_ACEOF
10428 /* confdefs.h.  */
10429 _ACEOF
10430 cat confdefs.h >>conftest.$ac_ext
10431 cat >>conftest.$ac_ext <<_ACEOF
10432 /* end confdefs.h.  */
10433
10434 int
10435 main ()
10436 {
10437
10438   ;
10439   return 0;
10440 }
10441 _ACEOF
10442 rm -f conftest.$ac_objext conftest$ac_exeext
10443 if { (ac_try="$ac_link"
10444 case "(($ac_try" in
10445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10446   *) ac_try_echo=$ac_try;;
10447 esac
10448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10449   (eval "$ac_link") 2>conftest.er1
10450   ac_status=$?
10451   grep -v '^ *+' conftest.er1 >conftest.err
10452   rm -f conftest.er1
10453   cat conftest.err >&5
10454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10455   (exit $ac_status); } && {
10456          test -z "$ac_cxx_werror_flag" ||
10457          test ! -s conftest.err
10458        } && test -s conftest$ac_exeext &&
10459        $as_test_x conftest$ac_exeext; then
10460
10461 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10462 }'`
10463 # Check for a 64-bit object if we didn't find anything.
10464 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; }
10465 }'`; fi
10466 else
10467   echo "$as_me: failed program was:" >&5
10468 sed 's/^/| /' conftest.$ac_ext >&5
10469
10470
10471 fi
10472
10473 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10474       conftest$ac_exeext conftest.$ac_ext
10475 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10476
10477         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10478         # Warning - without using the other run time loading flags,
10479         # -berok will link without error, but may produce a broken library.
10480         no_undefined_flag_CXX=' ${wl}-bernotok'
10481         allow_undefined_flag_CXX=' ${wl}-berok'
10482         # -bexpall does not export symbols beginning with underscore (_)
10483         always_export_symbols_CXX=yes
10484         # Exported symbols can be pulled into shared objects from archives
10485         whole_archive_flag_spec_CXX=' '
10486         archive_cmds_need_lc_CXX=yes
10487         # This is similar to how AIX traditionally builds it's shared libraries.
10488         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'
10489       fi
10490     fi
10491     ;;
10492   chorus*)
10493     case $cc_basename in
10494       *)
10495         # FIXME: insert proper C++ library support
10496         ld_shlibs_CXX=no
10497         ;;
10498     esac
10499     ;;
10500
10501   cygwin* | mingw* | pw32*)
10502     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10503     # as there is no search path for DLLs.
10504     hardcode_libdir_flag_spec_CXX='-L$libdir'
10505     allow_undefined_flag_CXX=unsupported
10506     always_export_symbols_CXX=no
10507     enable_shared_with_static_runtimes_CXX=yes
10508
10509     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10510       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'
10511       # If the export-symbols file already is a .def file (1st line
10512       # is EXPORTS), use it as is; otherwise, prepend...
10513       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10514         cp $export_symbols $output_objdir/$soname.def;
10515       else
10516         echo EXPORTS > $output_objdir/$soname.def;
10517         cat $export_symbols >> $output_objdir/$soname.def;
10518       fi~
10519       $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'
10520     else
10521       ld_shlibs_CXX=no
10522     fi
10523   ;;
10524
10525   darwin* | rhapsody*)
10526   if test "$GXX" = yes; then
10527     archive_cmds_need_lc_CXX=no
10528     case "$host_os" in
10529     rhapsody* | darwin1.[012])
10530       allow_undefined_flag_CXX='-undefined suppress'
10531       ;;
10532     *) # Darwin 1.3 on
10533       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10534         allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10535       else
10536         case ${MACOSX_DEPLOYMENT_TARGET} in
10537           10.[012])
10538             allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10539             ;;
10540           10.*)
10541             allow_undefined_flag_CXX='-undefined dynamic_lookup'
10542             ;;
10543         esac
10544       fi
10545       ;;
10546     esac
10547     lt_int_apple_cc_single_mod=no
10548     output_verbose_link_cmd='echo'
10549     if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10550       lt_int_apple_cc_single_mod=yes
10551     fi
10552     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10553       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10554     else
10555       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'
10556     fi
10557     module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10558
10559     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10560     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10561       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}'
10562     else
10563       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}'
10564     fi
10565     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}'
10566     hardcode_direct_CXX=no
10567     hardcode_automatic_CXX=yes
10568     hardcode_shlibpath_var_CXX=unsupported
10569     whole_archive_flag_spec_CXX='-all_load $convenience'
10570     link_all_deplibs_CXX=yes
10571   else
10572     ld_shlibs_CXX=no
10573   fi
10574     ;;
10575
10576   dgux*)
10577     case $cc_basename in
10578       ec++)
10579         # FIXME: insert proper C++ library support
10580         ld_shlibs_CXX=no
10581         ;;
10582       ghcx)
10583         # Green Hills C++ Compiler
10584         # FIXME: insert proper C++ library support
10585         ld_shlibs_CXX=no
10586         ;;
10587       *)
10588         # FIXME: insert proper C++ library support
10589         ld_shlibs_CXX=no
10590         ;;
10591     esac
10592     ;;
10593   freebsd12*)
10594     # C++ shared libraries reported to be fairly broken before switch to ELF
10595     ld_shlibs_CXX=no
10596     ;;
10597   freebsd-elf*)
10598     archive_cmds_need_lc_CXX=no
10599     ;;
10600   freebsd* | kfreebsd*-gnu)
10601     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10602     # conventions
10603     ld_shlibs_CXX=yes
10604     ;;
10605   gnu*)
10606     ;;
10607   hpux9*)
10608     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10609     hardcode_libdir_separator_CXX=:
10610     export_dynamic_flag_spec_CXX='${wl}-E'
10611     hardcode_direct_CXX=yes
10612     hardcode_minus_L_CXX=yes # Not in the search PATH,
10613                                 # but as the default
10614                                 # location of the library.
10615
10616     case $cc_basename in
10617     CC)
10618       # FIXME: insert proper C++ library support
10619       ld_shlibs_CXX=no
10620       ;;
10621     aCC)
10622       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'
10623       # Commands to make compiler produce verbose output that lists
10624       # what "hidden" libraries, object files and flags are used when
10625       # linking a shared library.
10626       #
10627       # There doesn't appear to be a way to prevent this compiler from
10628       # explicitly linking system object files so we need to strip them
10629       # from the output so that they don't get included in the library
10630       # dependencies.
10631       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'
10632       ;;
10633     *)
10634       if test "$GXX" = yes; then
10635         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'
10636       else
10637         # FIXME: insert proper C++ library support
10638         ld_shlibs_CXX=no
10639       fi
10640       ;;
10641     esac
10642     ;;
10643   hpux10*|hpux11*)
10644     if test $with_gnu_ld = no; then
10645       case "$host_cpu" in
10646       hppa*64*)
10647         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10648         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10649         hardcode_libdir_separator_CXX=:
10650         ;;
10651       ia64*)
10652         hardcode_libdir_flag_spec_CXX='-L$libdir'
10653         ;;
10654       *)
10655         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10656         hardcode_libdir_separator_CXX=:
10657         export_dynamic_flag_spec_CXX='${wl}-E'
10658         ;;
10659       esac
10660     fi
10661     case "$host_cpu" in
10662     hppa*64*)
10663       hardcode_direct_CXX=no
10664       hardcode_shlibpath_var_CXX=no
10665       ;;
10666     ia64*)
10667       hardcode_direct_CXX=no
10668       hardcode_shlibpath_var_CXX=no
10669       hardcode_minus_L_CXX=yes # Not in the search PATH,
10670                                               # but as the default
10671                                               # location of the library.
10672       ;;
10673     *)
10674       hardcode_direct_CXX=yes
10675       hardcode_minus_L_CXX=yes # Not in the search PATH,
10676                                               # but as the default
10677                                               # location of the library.
10678       ;;
10679     esac
10680
10681     case $cc_basename in
10682       CC)
10683         # FIXME: insert proper C++ library support
10684         ld_shlibs_CXX=no
10685         ;;
10686       aCC)
10687         case "$host_cpu" in
10688         hppa*64*|ia64*)
10689           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10690           ;;
10691         *)
10692           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10693           ;;
10694         esac
10695         # Commands to make compiler produce verbose output that lists
10696         # what "hidden" libraries, object files and flags are used when
10697         # linking a shared library.
10698         #
10699         # There doesn't appear to be a way to prevent this compiler from
10700         # explicitly linking system object files so we need to strip them
10701         # from the output so that they don't get included in the library
10702         # dependencies.
10703         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'
10704         ;;
10705       *)
10706         if test "$GXX" = yes; then
10707           if test $with_gnu_ld = no; then
10708             case "$host_cpu" in
10709             ia64*|hppa*64*)
10710               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10711               ;;
10712             *)
10713               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'
10714               ;;
10715             esac
10716           fi
10717         else
10718           # FIXME: insert proper C++ library support
10719           ld_shlibs_CXX=no
10720         fi
10721         ;;
10722     esac
10723     ;;
10724   irix5* | irix6*)
10725     case $cc_basename in
10726       CC)
10727         # SGI C++
10728         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'
10729
10730         # Archives containing C++ object files must be created using
10731         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10732         # necessary to make sure instantiated templates are included
10733         # in the archive.
10734         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10735         ;;
10736       *)
10737         if test "$GXX" = yes; then
10738           if test "$with_gnu_ld" = no; then
10739             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'
10740           else
10741             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'
10742           fi
10743         fi
10744         link_all_deplibs_CXX=yes
10745         ;;
10746     esac
10747     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10748     hardcode_libdir_separator_CXX=:
10749     ;;
10750   linux*)
10751     case $cc_basename in
10752       KCC)
10753         # Kuck and Associates, Inc. (KAI) C++ Compiler
10754
10755         # KCC will only create a shared library if the output file
10756         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10757         # to its proper name (with version) after linking.
10758         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'
10759         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'
10760         # Commands to make compiler produce verbose output that lists
10761         # what "hidden" libraries, object files and flags are used when
10762         # linking a shared library.
10763         #
10764         # There doesn't appear to be a way to prevent this compiler from
10765         # explicitly linking system object files so we need to strip them
10766         # from the output so that they don't get included in the library
10767         # dependencies.
10768         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'
10769
10770         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10771         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10772
10773         # Archives containing C++ object files must be created using
10774         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10775         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10776         ;;
10777       icpc)
10778         # Intel C++
10779         with_gnu_ld=yes
10780         archive_cmds_need_lc_CXX=no
10781         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10782         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'
10783         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10784         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10785         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10786         ;;
10787       cxx)
10788         # Compaq C++
10789         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10790         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'
10791
10792         runpath_var=LD_RUN_PATH
10793         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10794         hardcode_libdir_separator_CXX=:
10795
10796         # Commands to make compiler produce verbose output that lists
10797         # what "hidden" libraries, object files and flags are used when
10798         # linking a shared library.
10799         #
10800         # There doesn't appear to be a way to prevent this compiler from
10801         # explicitly linking system object files so we need to strip them
10802         # from the output so that they don't get included in the library
10803         # dependencies.
10804         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'
10805         ;;
10806     esac
10807     ;;
10808   lynxos*)
10809     # FIXME: insert proper C++ library support
10810     ld_shlibs_CXX=no
10811     ;;
10812   m88k*)
10813     # FIXME: insert proper C++ library support
10814     ld_shlibs_CXX=no
10815     ;;
10816   mvs*)
10817     case $cc_basename in
10818       cxx)
10819         # FIXME: insert proper C++ library support
10820         ld_shlibs_CXX=no
10821         ;;
10822       *)
10823         # FIXME: insert proper C++ library support
10824         ld_shlibs_CXX=no
10825         ;;
10826     esac
10827     ;;
10828   netbsd*)
10829     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10830       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10831       wlarc=
10832       hardcode_libdir_flag_spec_CXX='-R$libdir'
10833       hardcode_direct_CXX=yes
10834       hardcode_shlibpath_var_CXX=no
10835     fi
10836     # Workaround some broken pre-1.5 toolchains
10837     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10838     ;;
10839   osf3*)
10840     case $cc_basename in
10841       KCC)
10842         # Kuck and Associates, Inc. (KAI) C++ Compiler
10843
10844         # KCC will only create a shared library if the output file
10845         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10846         # to its proper name (with version) after linking.
10847         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'
10848
10849         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10850         hardcode_libdir_separator_CXX=:
10851
10852         # Archives containing C++ object files must be created using
10853         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10854         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10855
10856         ;;
10857       RCC)
10858         # Rational C++ 2.4.1
10859         # FIXME: insert proper C++ library support
10860         ld_shlibs_CXX=no
10861         ;;
10862       cxx)
10863         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10864         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'
10865
10866         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10867         hardcode_libdir_separator_CXX=:
10868
10869         # Commands to make compiler produce verbose output that lists
10870         # what "hidden" libraries, object files and flags are used when
10871         # linking a shared library.
10872         #
10873         # There doesn't appear to be a way to prevent this compiler from
10874         # explicitly linking system object files so we need to strip them
10875         # from the output so that they don't get included in the library
10876         # dependencies.
10877         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'
10878         ;;
10879       *)
10880         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10881           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10882           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'
10883
10884           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10885           hardcode_libdir_separator_CXX=:
10886
10887           # Commands to make compiler produce verbose output that lists
10888           # what "hidden" libraries, object files and flags are used when
10889           # linking a shared library.
10890           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10891
10892         else
10893           # FIXME: insert proper C++ library support
10894           ld_shlibs_CXX=no
10895         fi
10896         ;;
10897     esac
10898     ;;
10899   osf4* | osf5*)
10900     case $cc_basename in
10901       KCC)
10902         # Kuck and Associates, Inc. (KAI) C++ Compiler
10903
10904         # KCC will only create a shared library if the output file
10905         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10906         # to its proper name (with version) after linking.
10907         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'
10908
10909         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10910         hardcode_libdir_separator_CXX=:
10911
10912         # Archives containing C++ object files must be created using
10913         # the KAI C++ compiler.
10914         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10915         ;;
10916       RCC)
10917         # Rational C++ 2.4.1
10918         # FIXME: insert proper C++ library support
10919         ld_shlibs_CXX=no
10920         ;;
10921       cxx)
10922         allow_undefined_flag_CXX=' -expect_unresolved \*'
10923         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'
10924         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10925           echo "-hidden">> $lib.exp~
10926           $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~
10927           $rm $lib.exp'
10928
10929         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10930         hardcode_libdir_separator_CXX=:
10931
10932         # Commands to make compiler produce verbose output that lists
10933         # what "hidden" libraries, object files and flags are used when
10934         # linking a shared library.
10935         #
10936         # There doesn't appear to be a way to prevent this compiler from
10937         # explicitly linking system object files so we need to strip them
10938         # from the output so that they don't get included in the library
10939         # dependencies.
10940         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'
10941         ;;
10942       *)
10943         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10944           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10945          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'
10946
10947           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10948           hardcode_libdir_separator_CXX=:
10949
10950           # Commands to make compiler produce verbose output that lists
10951           # what "hidden" libraries, object files and flags are used when
10952           # linking a shared library.
10953           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10954
10955         else
10956           # FIXME: insert proper C++ library support
10957           ld_shlibs_CXX=no
10958         fi
10959         ;;
10960     esac
10961     ;;
10962   psos*)
10963     # FIXME: insert proper C++ library support
10964     ld_shlibs_CXX=no
10965     ;;
10966   sco*)
10967     archive_cmds_need_lc_CXX=no
10968     case $cc_basename in
10969       CC)
10970         # FIXME: insert proper C++ library support
10971         ld_shlibs_CXX=no
10972         ;;
10973       *)
10974         # FIXME: insert proper C++ library support
10975         ld_shlibs_CXX=no
10976         ;;
10977     esac
10978     ;;
10979   sunos4*)
10980     case $cc_basename in
10981       CC)
10982         # Sun C++ 4.x
10983         # FIXME: insert proper C++ library support
10984         ld_shlibs_CXX=no
10985         ;;
10986       lcc)
10987         # Lucid
10988         # FIXME: insert proper C++ library support
10989         ld_shlibs_CXX=no
10990         ;;
10991       *)
10992         # FIXME: insert proper C++ library support
10993         ld_shlibs_CXX=no
10994         ;;
10995     esac
10996     ;;
10997   solaris*)
10998     case $cc_basename in
10999       CC)
11000         # Sun C++ 4.2, 5.x and Centerline C++
11001         no_undefined_flag_CXX=' -zdefs'
11002         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11003         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11004         $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'
11005
11006         hardcode_libdir_flag_spec_CXX='-R$libdir'
11007         hardcode_shlibpath_var_CXX=no
11008         case $host_os in
11009           solaris2.0-5 | solaris2.0-5.*) ;;
11010           *)
11011             # The C++ compiler is used as linker so we must use $wl
11012             # flag to pass the commands to the underlying system
11013             # linker.
11014             # Supported since Solaris 2.6 (maybe 2.5.1?)
11015             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11016             ;;
11017         esac
11018         link_all_deplibs_CXX=yes
11019
11020         # Commands to make compiler produce verbose output that lists
11021         # what "hidden" libraries, object files and flags are used when
11022         # linking a shared library.
11023         #
11024         # There doesn't appear to be a way to prevent this compiler from
11025         # explicitly linking system object files so we need to strip them
11026         # from the output so that they don't get included in the library
11027         # dependencies.
11028         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'
11029
11030         # Archives containing C++ object files must be created using
11031         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11032         # necessary to make sure instantiated templates are included
11033         # in the archive.
11034         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11035         ;;
11036       gcx)
11037         # Green Hills C++ Compiler
11038         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11039
11040         # The C++ compiler must be used to create the archive.
11041         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11042         ;;
11043       *)
11044         # GNU C++ compiler with Solaris linker
11045         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11046           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11047           if $CC --version | grep -v '^2\.7' > /dev/null; then
11048             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11049             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11050                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11051
11052             # Commands to make compiler produce verbose output that lists
11053             # what "hidden" libraries, object files and flags are used when
11054             # linking a shared library.
11055             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11056           else
11057             # g++ 2.7 appears to require `-G' NOT `-shared' on this
11058             # platform.
11059             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11060             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11061                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11062
11063             # Commands to make compiler produce verbose output that lists
11064             # what "hidden" libraries, object files and flags are used when
11065             # linking a shared library.
11066             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11067           fi
11068
11069           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11070         fi
11071         ;;
11072     esac
11073     ;;
11074   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
11075     archive_cmds_need_lc_CXX=no
11076     ;;
11077   tandem*)
11078     case $cc_basename in
11079       NCC)
11080         # NonStop-UX NCC 3.20
11081         # FIXME: insert proper C++ library support
11082         ld_shlibs_CXX=no
11083         ;;
11084       *)
11085         # FIXME: insert proper C++ library support
11086         ld_shlibs_CXX=no
11087         ;;
11088     esac
11089     ;;
11090   vxworks*)
11091     # FIXME: insert proper C++ library support
11092     ld_shlibs_CXX=no
11093     ;;
11094   *)
11095     # FIXME: insert proper C++ library support
11096     ld_shlibs_CXX=no
11097     ;;
11098 esac
11099 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11100 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11101 test "$ld_shlibs_CXX" = no && can_build_shared=no
11102
11103 GCC_CXX="$GXX"
11104 LD_CXX="$LD"
11105
11106 ## CAVEAT EMPTOR:
11107 ## There is no encapsulation within the following macros, do not change
11108 ## the running order or otherwise move them around unless you know exactly
11109 ## what you are doing...
11110
11111 cat > conftest.$ac_ext <<EOF
11112 class Foo
11113 {
11114 public:
11115   Foo (void) { a = 0; }
11116 private:
11117   int a;
11118 };
11119 EOF
11120
11121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11122   (eval $ac_compile) 2>&5
11123   ac_status=$?
11124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11125   (exit $ac_status); }; then
11126   # Parse the compiler output and extract the necessary
11127   # objects, libraries and library flags.
11128
11129   # Sentinel used to keep track of whether or not we are before
11130   # the conftest object file.
11131   pre_test_object_deps_done=no
11132
11133   # The `*' in the case matches for architectures that use `case' in
11134   # $output_verbose_cmd can trigger glob expansion during the loop
11135   # eval without this substitution.
11136   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
11137
11138   for p in `eval $output_verbose_link_cmd`; do
11139     case $p in
11140
11141     -L* | -R* | -l*)
11142        # Some compilers place space between "-{L,R}" and the path.
11143        # Remove the space.
11144        if test $p = "-L" \
11145           || test $p = "-R"; then
11146          prev=$p
11147          continue
11148        else
11149          prev=
11150        fi
11151
11152        if test "$pre_test_object_deps_done" = no; then
11153          case $p in
11154          -L* | -R*)
11155            # Internal compiler library paths should come after those
11156            # provided the user.  The postdeps already come after the
11157            # user supplied libs so there is no need to process them.
11158            if test -z "$compiler_lib_search_path_CXX"; then
11159              compiler_lib_search_path_CXX="${prev}${p}"
11160            else
11161              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11162            fi
11163            ;;
11164          # The "-l" case would never come before the object being
11165          # linked, so don't bother handling this case.
11166          esac
11167        else
11168          if test -z "$postdeps_CXX"; then
11169            postdeps_CXX="${prev}${p}"
11170          else
11171            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11172          fi
11173        fi
11174        ;;
11175
11176     *.$objext)
11177        # This assumes that the test object file only shows up
11178        # once in the compiler output.
11179        if test "$p" = "conftest.$objext"; then
11180          pre_test_object_deps_done=yes
11181          continue
11182        fi
11183
11184        if test "$pre_test_object_deps_done" = no; then
11185          if test -z "$predep_objects_CXX"; then
11186            predep_objects_CXX="$p"
11187          else
11188            predep_objects_CXX="$predep_objects_CXX $p"
11189          fi
11190        else
11191          if test -z "$postdep_objects_CXX"; then
11192            postdep_objects_CXX="$p"
11193          else
11194            postdep_objects_CXX="$postdep_objects_CXX $p"
11195          fi
11196        fi
11197        ;;
11198
11199     *) ;; # Ignore the rest.
11200
11201     esac
11202   done
11203
11204   # Clean up.
11205   rm -f a.out a.exe
11206 else
11207   echo "libtool.m4: error: problem compiling CXX test program"
11208 fi
11209
11210 $rm -f confest.$objext
11211
11212 case " $postdeps_CXX " in
11213 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11214 esac
11215
11216 lt_prog_compiler_wl_CXX=
11217 lt_prog_compiler_pic_CXX=
11218 lt_prog_compiler_static_CXX=
11219
11220 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11221 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
11222
11223   # C++ specific cases for pic, static, wl, etc.
11224   if test "$GXX" = yes; then
11225     lt_prog_compiler_wl_CXX='-Wl,'
11226     lt_prog_compiler_static_CXX='-static'
11227
11228     case $host_os in
11229     aix*)
11230       # All AIX code is PIC.
11231       if test "$host_cpu" = ia64; then
11232         # AIX 5 now supports IA64 processor
11233         lt_prog_compiler_static_CXX='-Bstatic'
11234       fi
11235       ;;
11236     amigaos*)
11237       # FIXME: we need at least 68020 code to build shared libraries, but
11238       # adding the `-m68020' flag to GCC prevents building anything better,
11239       # like `-m68040'.
11240       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11241       ;;
11242     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11243       # PIC is the default for these OSes.
11244       ;;
11245     mingw* | os2* | pw32*)
11246       # This hack is so that the source file can tell whether it is being
11247       # built for inclusion in a dll (and should export symbols for example).
11248       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11249       ;;
11250     darwin* | rhapsody*)
11251       # PIC is the default on this platform
11252       # Common symbols not allowed in MH_DYLIB files
11253       lt_prog_compiler_pic_CXX='-fno-common'
11254       ;;
11255     *djgpp*)
11256       # DJGPP does not support shared libraries at all
11257       lt_prog_compiler_pic_CXX=
11258       ;;
11259     sysv4*MP*)
11260       if test -d /usr/nec; then
11261         lt_prog_compiler_pic_CXX=-Kconform_pic
11262       fi
11263       ;;
11264     hpux*)
11265       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11266       # not for PA HP-UX.
11267       case "$host_cpu" in
11268       hppa*64*|ia64*)
11269         ;;
11270       *)
11271         lt_prog_compiler_pic_CXX='-fPIC'
11272         ;;
11273       esac
11274       ;;
11275     *)
11276       lt_prog_compiler_pic_CXX='-fPIC'
11277       ;;
11278     esac
11279   else
11280     case $host_os in
11281       aix4* | aix5*)
11282         # All AIX code is PIC.
11283         if test "$host_cpu" = ia64; then
11284           # AIX 5 now supports IA64 processor
11285           lt_prog_compiler_static_CXX='-Bstatic'
11286         else
11287           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11288         fi
11289         ;;
11290       chorus*)
11291         case $cc_basename in
11292         cxch68)
11293           # Green Hills C++ Compiler
11294           # _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"
11295           ;;
11296         esac
11297         ;;
11298       dgux*)
11299         case $cc_basename in
11300           ec++)
11301             lt_prog_compiler_pic_CXX='-KPIC'
11302             ;;
11303           ghcx)
11304             # Green Hills C++ Compiler
11305             lt_prog_compiler_pic_CXX='-pic'
11306             ;;
11307           *)
11308             ;;
11309         esac
11310         ;;
11311       freebsd* | kfreebsd*-gnu)
11312         # FreeBSD uses GNU C++
11313         ;;
11314       hpux9* | hpux10* | hpux11*)
11315         case $cc_basename in
11316           CC)
11317             lt_prog_compiler_wl_CXX='-Wl,'
11318             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11319             if test "$host_cpu" != ia64; then
11320               lt_prog_compiler_pic_CXX='+Z'
11321             fi
11322             ;;
11323           aCC)
11324             lt_prog_compiler_wl_CXX='-Wl,'
11325             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11326             case "$host_cpu" in
11327             hppa*64*|ia64*)
11328               # +Z the default
11329               ;;
11330             *)
11331               lt_prog_compiler_pic_CXX='+Z'
11332               ;;
11333             esac
11334             ;;
11335           *)
11336             ;;
11337         esac
11338         ;;
11339       irix5* | irix6* | nonstopux*)
11340         case $cc_basename in
11341           CC)
11342             lt_prog_compiler_wl_CXX='-Wl,'
11343             lt_prog_compiler_static_CXX='-non_shared'
11344             # CC pic flag -KPIC is the default.
11345             ;;
11346           *)
11347             ;;
11348         esac
11349         ;;
11350       linux*)
11351         case $cc_basename in
11352           KCC)
11353             # KAI C++ Compiler
11354             lt_prog_compiler_wl_CXX='--backend -Wl,'
11355             lt_prog_compiler_pic_CXX='-fPIC'
11356             ;;
11357           icpc)
11358             # Intel C++
11359             lt_prog_compiler_wl_CXX='-Wl,'
11360             lt_prog_compiler_pic_CXX='-KPIC'
11361             lt_prog_compiler_static_CXX='-static'
11362             ;;
11363           cxx)
11364             # Compaq C++
11365             # Make sure the PIC flag is empty.  It appears that all Alpha
11366             # Linux and Compaq Tru64 Unix objects are PIC.
11367             lt_prog_compiler_pic_CXX=
11368             lt_prog_compiler_static_CXX='-non_shared'
11369             ;;
11370           *)
11371             ;;
11372         esac
11373         ;;
11374       lynxos*)
11375         ;;
11376       m88k*)
11377         ;;
11378       mvs*)
11379         case $cc_basename in
11380           cxx)
11381             lt_prog_compiler_pic_CXX='-W c,exportall'
11382             ;;
11383           *)
11384             ;;
11385         esac
11386         ;;
11387       netbsd*)
11388         ;;
11389       osf3* | osf4* | osf5*)
11390         case $cc_basename in
11391           KCC)
11392             lt_prog_compiler_wl_CXX='--backend -Wl,'
11393             ;;
11394           RCC)
11395             # Rational C++ 2.4.1
11396             lt_prog_compiler_pic_CXX='-pic'
11397             ;;
11398           cxx)
11399             # Digital/Compaq C++
11400             lt_prog_compiler_wl_CXX='-Wl,'
11401             # Make sure the PIC flag is empty.  It appears that all Alpha
11402             # Linux and Compaq Tru64 Unix objects are PIC.
11403             lt_prog_compiler_pic_CXX=
11404             lt_prog_compiler_static_CXX='-non_shared'
11405             ;;
11406           *)
11407             ;;
11408         esac
11409         ;;
11410       psos*)
11411         ;;
11412       sco*)
11413         case $cc_basename in
11414           CC)
11415             lt_prog_compiler_pic_CXX='-fPIC'
11416             ;;
11417           *)
11418             ;;
11419         esac
11420         ;;
11421       solaris*)
11422         case $cc_basename in
11423           CC)
11424             # Sun C++ 4.2, 5.x and Centerline C++
11425             lt_prog_compiler_pic_CXX='-KPIC'
11426             lt_prog_compiler_static_CXX='-Bstatic'
11427             lt_prog_compiler_wl_CXX='-Qoption ld '
11428             ;;
11429           gcx)
11430             # Green Hills C++ Compiler
11431             lt_prog_compiler_pic_CXX='-PIC'
11432             ;;
11433           *)
11434             ;;
11435         esac
11436         ;;
11437       sunos4*)
11438         case $cc_basename in
11439           CC)
11440             # Sun C++ 4.x
11441             lt_prog_compiler_pic_CXX='-pic'
11442             lt_prog_compiler_static_CXX='-Bstatic'
11443             ;;
11444           lcc)
11445             # Lucid
11446             lt_prog_compiler_pic_CXX='-pic'
11447             ;;
11448           *)
11449             ;;
11450         esac
11451         ;;
11452       tandem*)
11453         case $cc_basename in
11454           NCC)
11455             # NonStop-UX NCC 3.20
11456             lt_prog_compiler_pic_CXX='-KPIC'
11457             ;;
11458           *)
11459             ;;
11460         esac
11461         ;;
11462       unixware*)
11463         ;;
11464       vxworks*)
11465         ;;
11466       *)
11467         lt_prog_compiler_can_build_shared_CXX=no
11468         ;;
11469     esac
11470   fi
11471
11472 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11473 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
11474
11475 #
11476 # Check to make sure the PIC flag actually works.
11477 #
11478 if test -n "$lt_prog_compiler_pic_CXX"; then
11479
11480 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11481 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
11482 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11483   echo $ECHO_N "(cached) $ECHO_C" >&6
11484 else
11485   lt_prog_compiler_pic_works_CXX=no
11486   ac_outfile=conftest.$ac_objext
11487    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11488    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11489    # Insert the option either (1) after the last *FLAGS variable, or
11490    # (2) before a word containing "conftest.", or (3) at the end.
11491    # Note that $ac_compile itself does not contain backslashes and begins
11492    # with a dollar sign (not a hyphen), so the echo should work correctly.
11493    # The option is referenced via a variable to avoid confusing sed.
11494    lt_compile=`echo "$ac_compile" | $SED \
11495    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11496    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11497    -e 's:$: $lt_compiler_flag:'`
11498    (eval echo "\"\$as_me:11498: $lt_compile\"" >&5)
11499    (eval "$lt_compile" 2>conftest.err)
11500    ac_status=$?
11501    cat conftest.err >&5
11502    echo "$as_me:11502: \$? = $ac_status" >&5
11503    if (exit $ac_status) && test -s "$ac_outfile"; then
11504      # The compiler can only warn and ignore the option if not recognized
11505      # So say no if there are warnings
11506      if test ! -s conftest.err; then
11507        lt_prog_compiler_pic_works_CXX=yes
11508      fi
11509    fi
11510    $rm conftest*
11511
11512 fi
11513 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11514 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
11515
11516 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11517     case $lt_prog_compiler_pic_CXX in
11518      "" | " "*) ;;
11519      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11520      esac
11521 else
11522     lt_prog_compiler_pic_CXX=
11523      lt_prog_compiler_can_build_shared_CXX=no
11524 fi
11525
11526 fi
11527 case "$host_os" in
11528   # For platforms which do not support PIC, -DPIC is meaningless:
11529   *djgpp*)
11530     lt_prog_compiler_pic_CXX=
11531     ;;
11532   *)
11533     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11534     ;;
11535 esac
11536
11537 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11538 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
11539 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11540   echo $ECHO_N "(cached) $ECHO_C" >&6
11541 else
11542   lt_cv_prog_compiler_c_o_CXX=no
11543    $rm -r conftest 2>/dev/null
11544    mkdir conftest
11545    cd conftest
11546    mkdir out
11547    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11548
11549    lt_compiler_flag="-o out/conftest2.$ac_objext"
11550    # Insert the option either (1) after the last *FLAGS variable, or
11551    # (2) before a word containing "conftest.", or (3) at the end.
11552    # Note that $ac_compile itself does not contain backslashes and begins
11553    # with a dollar sign (not a hyphen), so the echo should work correctly.
11554    lt_compile=`echo "$ac_compile" | $SED \
11555    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11556    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11557    -e 's:$: $lt_compiler_flag:'`
11558    (eval echo "\"\$as_me:11558: $lt_compile\"" >&5)
11559    (eval "$lt_compile" 2>out/conftest.err)
11560    ac_status=$?
11561    cat out/conftest.err >&5
11562    echo "$as_me:11562: \$? = $ac_status" >&5
11563    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11564    then
11565      # The compiler can only warn and ignore the option if not recognized
11566      # So say no if there are warnings
11567      if test ! -s out/conftest.err; then
11568        lt_cv_prog_compiler_c_o_CXX=yes
11569      fi
11570    fi
11571    chmod u+w .
11572    $rm conftest*
11573    # SGI C++ compiler will create directory out/ii_files/ for
11574    # template instantiation
11575    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11576    $rm out/* && rmdir out
11577    cd ..
11578    rmdir conftest
11579    $rm conftest*
11580
11581 fi
11582 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11583 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
11584
11585
11586 hard_links="nottested"
11587 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11588   # do not overwrite the value of need_locks provided by the user
11589   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11590 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
11591   hard_links=yes
11592   $rm conftest*
11593   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11594   touch conftest.a
11595   ln conftest.a conftest.b 2>&5 || hard_links=no
11596   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11597   { echo "$as_me:$LINENO: result: $hard_links" >&5
11598 echo "${ECHO_T}$hard_links" >&6; }
11599   if test "$hard_links" = no; then
11600     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11601 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11602     need_locks=warn
11603   fi
11604 else
11605   need_locks=no
11606 fi
11607
11608 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11609 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11610
11611   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11612   case $host_os in
11613   aix4* | aix5*)
11614     # If we're using GNU nm, then we don't want the "-C" option.
11615     # -C means demangle to AIX nm, but means don't demangle with GNU nm
11616     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11617       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'
11618     else
11619       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'
11620     fi
11621     ;;
11622   pw32*)
11623     export_symbols_cmds_CXX="$ltdll_cmds"
11624   ;;
11625   cygwin* | mingw*)
11626     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11627   ;;
11628   *)
11629     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11630   ;;
11631   esac
11632
11633 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11634 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11635 test "$ld_shlibs_CXX" = no && can_build_shared=no
11636
11637 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11638 if test "$GCC" = yes; then
11639   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11640 fi
11641
11642 #
11643 # Do we need to explicitly link libc?
11644 #
11645 case "x$archive_cmds_need_lc_CXX" in
11646 x|xyes)
11647   # Assume -lc should be added
11648   archive_cmds_need_lc_CXX=yes
11649
11650   if test "$enable_shared" = yes && test "$GCC" = yes; then
11651     case $archive_cmds_CXX in
11652     *'~'*)
11653       # FIXME: we may have to deal with multi-command sequences.
11654       ;;
11655     '$CC '*)
11656       # Test whether the compiler implicitly links with -lc since on some
11657       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11658       # to ld, don't add -lc before -lgcc.
11659       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11660 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
11661       $rm conftest*
11662       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11663
11664       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11665   (eval $ac_compile) 2>&5
11666   ac_status=$?
11667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11668   (exit $ac_status); } 2>conftest.err; then
11669         soname=conftest
11670         lib=conftest
11671         libobjs=conftest.$ac_objext
11672         deplibs=
11673         wl=$lt_prog_compiler_wl_CXX
11674         compiler_flags=-v
11675         linker_flags=-v
11676         verstring=
11677         output_objdir=.
11678         libname=conftest
11679         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11680         allow_undefined_flag_CXX=
11681         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11682   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11683   ac_status=$?
11684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11685   (exit $ac_status); }
11686         then
11687           archive_cmds_need_lc_CXX=no
11688         else
11689           archive_cmds_need_lc_CXX=yes
11690         fi
11691         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11692       else
11693         cat conftest.err 1>&5
11694       fi
11695       $rm conftest*
11696       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11697 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
11698       ;;
11699     esac
11700   fi
11701   ;;
11702 esac
11703
11704 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11705 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
11706 library_names_spec=
11707 libname_spec='lib$name'
11708 soname_spec=
11709 shrext_cmds=".so"
11710 postinstall_cmds=
11711 postuninstall_cmds=
11712 finish_cmds=
11713 finish_eval=
11714 shlibpath_var=
11715 shlibpath_overrides_runpath=unknown
11716 version_type=none
11717 dynamic_linker="$host_os ld.so"
11718 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11719 if test "$GCC" = yes; then
11720   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11721   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11722     # if the path contains ";" then we assume it to be the separator
11723     # otherwise default to the standard path separator (i.e. ":") - it is
11724     # assumed that no part of a normal pathname contains ";" but that should
11725     # okay in the real world where ";" in dirpaths is itself problematic.
11726     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11727   else
11728     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11729   fi
11730 else
11731   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11732 fi
11733 need_lib_prefix=unknown
11734 hardcode_into_libs=no
11735
11736 # when you set need_version to no, make sure it does not cause -set_version
11737 # flags to be left without arguments
11738 need_version=unknown
11739
11740 case $host_os in
11741 aix3*)
11742   version_type=linux
11743   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11744   shlibpath_var=LIBPATH
11745
11746   # AIX 3 has no versioning support, so we append a major version to the name.
11747   soname_spec='${libname}${release}${shared_ext}$major'
11748   ;;
11749
11750 aix4* | aix5*)
11751   version_type=linux
11752   need_lib_prefix=no
11753   need_version=no
11754   hardcode_into_libs=yes
11755   if test "$host_cpu" = ia64; then
11756     # AIX 5 supports IA64
11757     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11758     shlibpath_var=LD_LIBRARY_PATH
11759   else
11760     # With GCC up to 2.95.x, collect2 would create an import file
11761     # for dependence libraries.  The import file would start with
11762     # the line `#! .'.  This would cause the generated library to
11763     # depend on `.', always an invalid library.  This was fixed in
11764     # development snapshots of GCC prior to 3.0.
11765     case $host_os in
11766       aix4 | aix4.[01] | aix4.[01].*)
11767       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11768            echo ' yes '
11769            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11770         :
11771       else
11772         can_build_shared=no
11773       fi
11774       ;;
11775     esac
11776     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11777     # soname into executable. Probably we can add versioning support to
11778     # collect2, so additional links can be useful in future.
11779     if test "$aix_use_runtimelinking" = yes; then
11780       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11781       # instead of lib<name>.a to let people know that these are not
11782       # typical AIX shared libraries.
11783       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11784     else
11785       # We preserve .a as extension for shared libraries through AIX4.2
11786       # and later when we are not doing run time linking.
11787       library_names_spec='${libname}${release}.a $libname.a'
11788       soname_spec='${libname}${release}${shared_ext}$major'
11789     fi
11790     shlibpath_var=LIBPATH
11791   fi
11792   ;;
11793
11794 amigaos*)
11795   library_names_spec='$libname.ixlibrary $libname.a'
11796   # Create ${libname}_ixlibrary.a entries in /sys/libs.
11797   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'
11798   ;;
11799
11800 beos*)
11801   library_names_spec='${libname}${shared_ext}'
11802   dynamic_linker="$host_os ld.so"
11803   shlibpath_var=LIBRARY_PATH
11804   ;;
11805
11806 bsdi4*)
11807   version_type=linux
11808   need_version=no
11809   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11810   soname_spec='${libname}${release}${shared_ext}$major'
11811   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11812   shlibpath_var=LD_LIBRARY_PATH
11813   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11814   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11815   # the default ld.so.conf also contains /usr/contrib/lib and
11816   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11817   # libtool to hard-code these into programs
11818   ;;
11819
11820 cygwin* | mingw* | pw32*)
11821   version_type=windows
11822   shrext_cmds=".dll"
11823   need_version=no
11824   need_lib_prefix=no
11825
11826   case $GCC,$host_os in
11827   yes,cygwin* | yes,mingw* | yes,pw32*)
11828     library_names_spec='$libname.dll.a'
11829     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11830     postinstall_cmds='base_file=`basename \${file}`~
11831       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11832       dldir=$destdir/`dirname \$dlpath`~
11833       test -d \$dldir || mkdir -p \$dldir~
11834       $install_prog $dir/$dlname \$dldir/$dlname'
11835     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11836       dlpath=$dir/\$dldll~
11837        $rm \$dlpath'
11838     shlibpath_overrides_runpath=yes
11839
11840     case $host_os in
11841     cygwin*)
11842       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11843       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11844       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11845       ;;
11846     mingw*)
11847       # MinGW DLLs use traditional 'lib' prefix
11848       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11849       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11850       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11851         # It is most probably a Windows format PATH printed by
11852         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11853         # path with ; separators, and with drive letters. We can handle the
11854         # drive letters (cygwin fileutils understands them), so leave them,
11855         # especially as we might pass files found there to a mingw objdump,
11856         # which wouldn't understand a cygwinified path. Ahh.
11857         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11858       else
11859         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11860       fi
11861       ;;
11862     pw32*)
11863       # pw32 DLLs use 'pw' prefix rather than 'lib'
11864       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11865       ;;
11866     esac
11867     ;;
11868
11869   *)
11870     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11871     ;;
11872   esac
11873   dynamic_linker='Win32 ld.exe'
11874   # FIXME: first we should search . and the directory the executable is in
11875   shlibpath_var=PATH
11876   ;;
11877
11878 darwin* | rhapsody*)
11879   dynamic_linker="$host_os dyld"
11880   version_type=darwin
11881   need_lib_prefix=no
11882   need_version=no
11883   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11884   soname_spec='${libname}${release}${major}$shared_ext'
11885   shlibpath_overrides_runpath=yes
11886   shlibpath_var=DYLD_LIBRARY_PATH
11887   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
11888   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11889   if test "$GCC" = yes; then
11890     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"`
11891   else
11892     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11893   fi
11894   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11895   ;;
11896
11897 dgux*)
11898   version_type=linux
11899   need_lib_prefix=no
11900   need_version=no
11901   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11902   soname_spec='${libname}${release}${shared_ext}$major'
11903   shlibpath_var=LD_LIBRARY_PATH
11904   ;;
11905
11906 freebsd1*)
11907   dynamic_linker=no
11908   ;;
11909
11910 kfreebsd*-gnu)
11911   version_type=linux
11912   need_lib_prefix=no
11913   need_version=no
11914   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11915   soname_spec='${libname}${release}${shared_ext}$major'
11916   shlibpath_var=LD_LIBRARY_PATH
11917   shlibpath_overrides_runpath=no
11918   hardcode_into_libs=yes
11919   dynamic_linker='GNU ld.so'
11920   ;;
11921
11922 freebsd*)
11923   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11924   version_type=freebsd-$objformat
11925   case $version_type in
11926     freebsd-elf*)
11927       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11928       need_version=no
11929       need_lib_prefix=no
11930       ;;
11931     freebsd-*)
11932       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11933       need_version=yes
11934       ;;
11935   esac
11936   shlibpath_var=LD_LIBRARY_PATH
11937   case $host_os in
11938   freebsd2*)
11939     shlibpath_overrides_runpath=yes
11940     ;;
11941   freebsd3.01* | freebsdelf3.01*)
11942     shlibpath_overrides_runpath=yes
11943     hardcode_into_libs=yes
11944     ;;
11945   *) # from 3.2 on
11946     shlibpath_overrides_runpath=no
11947     hardcode_into_libs=yes
11948     ;;
11949   esac
11950   ;;
11951
11952 gnu*)
11953   version_type=linux
11954   need_lib_prefix=no
11955   need_version=no
11956   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11957   soname_spec='${libname}${release}${shared_ext}$major'
11958   shlibpath_var=LD_LIBRARY_PATH
11959   hardcode_into_libs=yes
11960   ;;
11961
11962 hpux9* | hpux10* | hpux11*)
11963   # Give a soname corresponding to the major version so that dld.sl refuses to
11964   # link against other versions.
11965   version_type=sunos
11966   need_lib_prefix=no
11967   need_version=no
11968   case "$host_cpu" in
11969   ia64*)
11970     shrext_cmds='.so'
11971     hardcode_into_libs=yes
11972     dynamic_linker="$host_os dld.so"
11973     shlibpath_var=LD_LIBRARY_PATH
11974     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11975     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11976     soname_spec='${libname}${release}${shared_ext}$major'
11977     if test "X$HPUX_IA64_MODE" = X32; then
11978       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11979     else
11980       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11981     fi
11982     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11983     ;;
11984    hppa*64*)
11985      shrext_cmds='.sl'
11986      hardcode_into_libs=yes
11987      dynamic_linker="$host_os dld.sl"
11988      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11989      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11990      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11991      soname_spec='${libname}${release}${shared_ext}$major'
11992      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11993      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11994      ;;
11995    *)
11996     shrext_cmds='.sl'
11997     dynamic_linker="$host_os dld.sl"
11998     shlibpath_var=SHLIB_PATH
11999     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12000     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12001     soname_spec='${libname}${release}${shared_ext}$major'
12002     ;;
12003   esac
12004   # HP-UX runs *really* slowly unless shared libraries are mode 555.
12005   postinstall_cmds='chmod 555 $lib'
12006   ;;
12007
12008 irix5* | irix6* | nonstopux*)
12009   case $host_os in
12010     nonstopux*) version_type=nonstopux ;;
12011     *)
12012         if test "$lt_cv_prog_gnu_ld" = yes; then
12013                 version_type=linux
12014         else
12015                 version_type=irix
12016         fi ;;
12017   esac
12018   need_lib_prefix=no
12019   need_version=no
12020   soname_spec='${libname}${release}${shared_ext}$major'
12021   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12022   case $host_os in
12023   irix5* | nonstopux*)
12024     libsuff= shlibsuff=
12025     ;;
12026   *)
12027     case $LD in # libtool.m4 will add one of these switches to LD
12028     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12029       libsuff= shlibsuff= libmagic=32-bit;;
12030     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12031       libsuff=32 shlibsuff=N32 libmagic=N32;;
12032     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12033       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12034     *) libsuff= shlibsuff= libmagic=never-match;;
12035     esac
12036     ;;
12037   esac
12038   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12039   shlibpath_overrides_runpath=no
12040   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12041   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12042   hardcode_into_libs=yes
12043   ;;
12044
12045 # No shared lib support for Linux oldld, aout, or coff.
12046 linux*oldld* | linux*aout* | linux*coff*)
12047   dynamic_linker=no
12048   ;;
12049
12050 # This must be Linux ELF.
12051 linux*)
12052   version_type=linux
12053   need_lib_prefix=no
12054   need_version=no
12055   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12056   soname_spec='${libname}${release}${shared_ext}$major'
12057   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12058   shlibpath_var=LD_LIBRARY_PATH
12059   shlibpath_overrides_runpath=no
12060   # This implies no fast_install, which is unacceptable.
12061   # Some rework will be needed to allow for fast_install
12062   # before this can be enabled.
12063   hardcode_into_libs=yes
12064
12065   # find out which ABI we are using
12066   libsuff=
12067   case "$host_cpu" in
12068   x86_64*|s390x*|powerpc64*)
12069     echo '#line 12069 "configure"' > conftest.$ac_ext
12070     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12071   (eval $ac_compile) 2>&5
12072   ac_status=$?
12073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12074   (exit $ac_status); }; then
12075       case `/usr/bin/file conftest.$ac_objext` in
12076       *64-bit*)
12077         libsuff=64
12078         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
12079         ;;
12080       esac
12081     fi
12082     rm -rf conftest*
12083     ;;
12084   esac
12085
12086   # Append ld.so.conf contents to the search path
12087   if test -f /etc/ld.so.conf; then
12088     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
12089     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
12090   fi
12091
12092   # We used to test for /lib/ld.so.1 and disable shared libraries on
12093   # powerpc, because MkLinux only supported shared libraries with the
12094   # GNU dynamic linker.  Since this was broken with cross compilers,
12095   # most powerpc-linux boxes support dynamic linking these days and
12096   # people can always --disable-shared, the test was removed, and we
12097   # assume the GNU/Linux dynamic linker is in use.
12098   dynamic_linker='GNU/Linux ld.so'
12099   ;;
12100
12101 knetbsd*-gnu)
12102   version_type=linux
12103   need_lib_prefix=no
12104   need_version=no
12105   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12106   soname_spec='${libname}${release}${shared_ext}$major'
12107   shlibpath_var=LD_LIBRARY_PATH
12108   shlibpath_overrides_runpath=no
12109   hardcode_into_libs=yes
12110   dynamic_linker='GNU ld.so'
12111   ;;
12112
12113 netbsd*)
12114   version_type=sunos
12115   need_lib_prefix=no
12116   need_version=no
12117   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12118     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12119     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12120     dynamic_linker='NetBSD (a.out) ld.so'
12121   else
12122     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12123     soname_spec='${libname}${release}${shared_ext}$major'
12124     dynamic_linker='NetBSD ld.elf_so'
12125   fi
12126   shlibpath_var=LD_LIBRARY_PATH
12127   shlibpath_overrides_runpath=yes
12128   hardcode_into_libs=yes
12129   ;;
12130
12131 newsos6)
12132   version_type=linux
12133   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12134   shlibpath_var=LD_LIBRARY_PATH
12135   shlibpath_overrides_runpath=yes
12136   ;;
12137
12138 nto-qnx*)
12139   version_type=linux
12140   need_lib_prefix=no
12141   need_version=no
12142   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12143   soname_spec='${libname}${release}${shared_ext}$major'
12144   shlibpath_var=LD_LIBRARY_PATH
12145   shlibpath_overrides_runpath=yes
12146   ;;
12147
12148 openbsd*)
12149   version_type=sunos
12150   need_lib_prefix=no
12151   need_version=yes
12152   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12153   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12154   shlibpath_var=LD_LIBRARY_PATH
12155   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12156     case $host_os in
12157       openbsd2.[89] | openbsd2.[89].*)
12158         shlibpath_overrides_runpath=no
12159         ;;
12160       *)
12161         shlibpath_overrides_runpath=yes
12162         ;;
12163       esac
12164   else
12165     shlibpath_overrides_runpath=yes
12166   fi
12167   ;;
12168
12169 os2*)
12170   libname_spec='$name'
12171   shrext_cmds=".dll"
12172   need_lib_prefix=no
12173   library_names_spec='$libname${shared_ext} $libname.a'
12174   dynamic_linker='OS/2 ld.exe'
12175   shlibpath_var=LIBPATH
12176   ;;
12177
12178 osf3* | osf4* | osf5*)
12179   version_type=osf
12180   need_lib_prefix=no
12181   need_version=no
12182   soname_spec='${libname}${release}${shared_ext}$major'
12183   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12184   shlibpath_var=LD_LIBRARY_PATH
12185   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12186   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12187   ;;
12188
12189 sco3.2v5*)
12190   version_type=osf
12191   soname_spec='${libname}${release}${shared_ext}$major'
12192   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12193   shlibpath_var=LD_LIBRARY_PATH
12194   ;;
12195
12196 solaris*)
12197   version_type=linux
12198   need_lib_prefix=no
12199   need_version=no
12200   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12201   soname_spec='${libname}${release}${shared_ext}$major'
12202   shlibpath_var=LD_LIBRARY_PATH
12203   shlibpath_overrides_runpath=yes
12204   hardcode_into_libs=yes
12205   # ldd complains unless libraries are executable
12206   postinstall_cmds='chmod +x $lib'
12207   ;;
12208
12209 sunos4*)
12210   version_type=sunos
12211   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12212   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12213   shlibpath_var=LD_LIBRARY_PATH
12214   shlibpath_overrides_runpath=yes
12215   if test "$with_gnu_ld" = yes; then
12216     need_lib_prefix=no
12217   fi
12218   need_version=yes
12219   ;;
12220
12221 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12222   version_type=linux
12223   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12224   soname_spec='${libname}${release}${shared_ext}$major'
12225   shlibpath_var=LD_LIBRARY_PATH
12226   case $host_vendor in
12227     sni)
12228       shlibpath_overrides_runpath=no
12229       need_lib_prefix=no
12230       export_dynamic_flag_spec='${wl}-Blargedynsym'
12231       runpath_var=LD_RUN_PATH
12232       ;;
12233     siemens)
12234       need_lib_prefix=no
12235       ;;
12236     motorola)
12237       need_lib_prefix=no
12238       need_version=no
12239       shlibpath_overrides_runpath=no
12240       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12241       ;;
12242   esac
12243   ;;
12244
12245 sysv4*MP*)
12246   if test -d /usr/nec ;then
12247     version_type=linux
12248     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12249     soname_spec='$libname${shared_ext}.$major'
12250     shlibpath_var=LD_LIBRARY_PATH
12251   fi
12252   ;;
12253
12254 uts4*)
12255   version_type=linux
12256   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12257   soname_spec='${libname}${release}${shared_ext}$major'
12258   shlibpath_var=LD_LIBRARY_PATH
12259   ;;
12260
12261 *)
12262   dynamic_linker=no
12263   ;;
12264 esac
12265 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12266 echo "${ECHO_T}$dynamic_linker" >&6; }
12267 test "$dynamic_linker" = no && can_build_shared=no
12268
12269 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12270 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
12271 hardcode_action_CXX=
12272 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12273    test -n "$runpath_var CXX" || \
12274    test "X$hardcode_automatic_CXX"="Xyes" ; then
12275
12276   # We can hardcode non-existant directories.
12277   if test "$hardcode_direct_CXX" != no &&
12278      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12279      # have to relink, otherwise we might link with an installed library
12280      # when we should be linking with a yet-to-be-installed one
12281      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12282      test "$hardcode_minus_L_CXX" != no; then
12283     # Linking always hardcodes the temporary library directory.
12284     hardcode_action_CXX=relink
12285   else
12286     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12287     hardcode_action_CXX=immediate
12288   fi
12289 else
12290   # We cannot hardcode anything, or else we can only hardcode existing
12291   # directories.
12292   hardcode_action_CXX=unsupported
12293 fi
12294 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12295 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
12296
12297 if test "$hardcode_action_CXX" = relink; then
12298   # Fast installation is not supported
12299   enable_fast_install=no
12300 elif test "$shlibpath_overrides_runpath" = yes ||
12301      test "$enable_shared" = no; then
12302   # Fast installation is not necessary
12303   enable_fast_install=needless
12304 fi
12305
12306 striplib=
12307 old_striplib=
12308 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12309 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
12310 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12311   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12312   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12313   { echo "$as_me:$LINENO: result: yes" >&5
12314 echo "${ECHO_T}yes" >&6; }
12315 else
12316 # FIXME - insert some real tests, host_os isn't really good enough
12317   case $host_os in
12318    darwin*)
12319        if test -n "$STRIP" ; then
12320          striplib="$STRIP -x"
12321          { echo "$as_me:$LINENO: result: yes" >&5
12322 echo "${ECHO_T}yes" >&6; }
12323        else
12324   { echo "$as_me:$LINENO: result: no" >&5
12325 echo "${ECHO_T}no" >&6; }
12326 fi
12327        ;;
12328    *)
12329   { echo "$as_me:$LINENO: result: no" >&5
12330 echo "${ECHO_T}no" >&6; }
12331     ;;
12332   esac
12333 fi
12334
12335 if test "x$enable_dlopen" != xyes; then
12336   enable_dlopen=unknown
12337   enable_dlopen_self=unknown
12338   enable_dlopen_self_static=unknown
12339 else
12340   lt_cv_dlopen=no
12341   lt_cv_dlopen_libs=
12342
12343   case $host_os in
12344   beos*)
12345     lt_cv_dlopen="load_add_on"
12346     lt_cv_dlopen_libs=
12347     lt_cv_dlopen_self=yes
12348     ;;
12349
12350   mingw* | pw32*)
12351     lt_cv_dlopen="LoadLibrary"
12352     lt_cv_dlopen_libs=
12353    ;;
12354
12355   cygwin*)
12356     lt_cv_dlopen="dlopen"
12357     lt_cv_dlopen_libs=
12358    ;;
12359
12360   darwin*)
12361   # if libdl is installed we need to link against it
12362     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12363 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12364 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12365   echo $ECHO_N "(cached) $ECHO_C" >&6
12366 else
12367   ac_check_lib_save_LIBS=$LIBS
12368 LIBS="-ldl  $LIBS"
12369 cat >conftest.$ac_ext <<_ACEOF
12370 /* confdefs.h.  */
12371 _ACEOF
12372 cat confdefs.h >>conftest.$ac_ext
12373 cat >>conftest.$ac_ext <<_ACEOF
12374 /* end confdefs.h.  */
12375
12376 /* Override any GCC internal prototype to avoid an error.
12377    Use char because int might match the return type of a GCC
12378    builtin and then its argument prototype would still apply.  */
12379 #ifdef __cplusplus
12380 extern "C"
12381 #endif
12382 char dlopen ();
12383 int
12384 main ()
12385 {
12386 return dlopen ();
12387   ;
12388   return 0;
12389 }
12390 _ACEOF
12391 rm -f conftest.$ac_objext conftest$ac_exeext
12392 if { (ac_try="$ac_link"
12393 case "(($ac_try" in
12394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12395   *) ac_try_echo=$ac_try;;
12396 esac
12397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12398   (eval "$ac_link") 2>conftest.er1
12399   ac_status=$?
12400   grep -v '^ *+' conftest.er1 >conftest.err
12401   rm -f conftest.er1
12402   cat conftest.err >&5
12403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12404   (exit $ac_status); } && {
12405          test -z "$ac_cxx_werror_flag" ||
12406          test ! -s conftest.err
12407        } && test -s conftest$ac_exeext &&
12408        $as_test_x conftest$ac_exeext; then
12409   ac_cv_lib_dl_dlopen=yes
12410 else
12411   echo "$as_me: failed program was:" >&5
12412 sed 's/^/| /' conftest.$ac_ext >&5
12413
12414         ac_cv_lib_dl_dlopen=no
12415 fi
12416
12417 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12418       conftest$ac_exeext conftest.$ac_ext
12419 LIBS=$ac_check_lib_save_LIBS
12420 fi
12421 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12422 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12423 if test $ac_cv_lib_dl_dlopen = yes; then
12424   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12425 else
12426
12427     lt_cv_dlopen="dyld"
12428     lt_cv_dlopen_libs=
12429     lt_cv_dlopen_self=yes
12430
12431 fi
12432
12433    ;;
12434
12435   *)
12436     { echo "$as_me:$LINENO: checking for shl_load" >&5
12437 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
12438 if test "${ac_cv_func_shl_load+set}" = set; then
12439   echo $ECHO_N "(cached) $ECHO_C" >&6
12440 else
12441   cat >conftest.$ac_ext <<_ACEOF
12442 /* confdefs.h.  */
12443 _ACEOF
12444 cat confdefs.h >>conftest.$ac_ext
12445 cat >>conftest.$ac_ext <<_ACEOF
12446 /* end confdefs.h.  */
12447 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12448    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12449 #define shl_load innocuous_shl_load
12450
12451 /* System header to define __stub macros and hopefully few prototypes,
12452     which can conflict with char shl_load (); below.
12453     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12454     <limits.h> exists even on freestanding compilers.  */
12455
12456 #ifdef __STDC__
12457 # include <limits.h>
12458 #else
12459 # include <assert.h>
12460 #endif
12461
12462 #undef shl_load
12463
12464 /* Override any GCC internal prototype to avoid an error.
12465    Use char because int might match the return type of a GCC
12466    builtin and then its argument prototype would still apply.  */
12467 #ifdef __cplusplus
12468 extern "C"
12469 #endif
12470 char shl_load ();
12471 /* The GNU C library defines this for functions which it implements
12472     to always fail with ENOSYS.  Some functions are actually named
12473     something starting with __ and the normal name is an alias.  */
12474 #if defined __stub_shl_load || defined __stub___shl_load
12475 choke me
12476 #endif
12477
12478 int
12479 main ()
12480 {
12481 return shl_load ();
12482   ;
12483   return 0;
12484 }
12485 _ACEOF
12486 rm -f conftest.$ac_objext conftest$ac_exeext
12487 if { (ac_try="$ac_link"
12488 case "(($ac_try" in
12489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12490   *) ac_try_echo=$ac_try;;
12491 esac
12492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12493   (eval "$ac_link") 2>conftest.er1
12494   ac_status=$?
12495   grep -v '^ *+' conftest.er1 >conftest.err
12496   rm -f conftest.er1
12497   cat conftest.err >&5
12498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12499   (exit $ac_status); } && {
12500          test -z "$ac_cxx_werror_flag" ||
12501          test ! -s conftest.err
12502        } && test -s conftest$ac_exeext &&
12503        $as_test_x conftest$ac_exeext; then
12504   ac_cv_func_shl_load=yes
12505 else
12506   echo "$as_me: failed program was:" >&5
12507 sed 's/^/| /' conftest.$ac_ext >&5
12508
12509         ac_cv_func_shl_load=no
12510 fi
12511
12512 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12513       conftest$ac_exeext conftest.$ac_ext
12514 fi
12515 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12516 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
12517 if test $ac_cv_func_shl_load = yes; then
12518   lt_cv_dlopen="shl_load"
12519 else
12520   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12521 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
12522 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12523   echo $ECHO_N "(cached) $ECHO_C" >&6
12524 else
12525   ac_check_lib_save_LIBS=$LIBS
12526 LIBS="-ldld  $LIBS"
12527 cat >conftest.$ac_ext <<_ACEOF
12528 /* confdefs.h.  */
12529 _ACEOF
12530 cat confdefs.h >>conftest.$ac_ext
12531 cat >>conftest.$ac_ext <<_ACEOF
12532 /* end confdefs.h.  */
12533
12534 /* Override any GCC internal prototype to avoid an error.
12535    Use char because int might match the return type of a GCC
12536    builtin and then its argument prototype would still apply.  */
12537 #ifdef __cplusplus
12538 extern "C"
12539 #endif
12540 char shl_load ();
12541 int
12542 main ()
12543 {
12544 return shl_load ();
12545   ;
12546   return 0;
12547 }
12548 _ACEOF
12549 rm -f conftest.$ac_objext conftest$ac_exeext
12550 if { (ac_try="$ac_link"
12551 case "(($ac_try" in
12552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12553   *) ac_try_echo=$ac_try;;
12554 esac
12555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12556   (eval "$ac_link") 2>conftest.er1
12557   ac_status=$?
12558   grep -v '^ *+' conftest.er1 >conftest.err
12559   rm -f conftest.er1
12560   cat conftest.err >&5
12561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12562   (exit $ac_status); } && {
12563          test -z "$ac_cxx_werror_flag" ||
12564          test ! -s conftest.err
12565        } && test -s conftest$ac_exeext &&
12566        $as_test_x conftest$ac_exeext; then
12567   ac_cv_lib_dld_shl_load=yes
12568 else
12569   echo "$as_me: failed program was:" >&5
12570 sed 's/^/| /' conftest.$ac_ext >&5
12571
12572         ac_cv_lib_dld_shl_load=no
12573 fi
12574
12575 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12576       conftest$ac_exeext conftest.$ac_ext
12577 LIBS=$ac_check_lib_save_LIBS
12578 fi
12579 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12580 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
12581 if test $ac_cv_lib_dld_shl_load = yes; then
12582   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12583 else
12584   { echo "$as_me:$LINENO: checking for dlopen" >&5
12585 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
12586 if test "${ac_cv_func_dlopen+set}" = set; then
12587   echo $ECHO_N "(cached) $ECHO_C" >&6
12588 else
12589   cat >conftest.$ac_ext <<_ACEOF
12590 /* confdefs.h.  */
12591 _ACEOF
12592 cat confdefs.h >>conftest.$ac_ext
12593 cat >>conftest.$ac_ext <<_ACEOF
12594 /* end confdefs.h.  */
12595 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12596    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12597 #define dlopen innocuous_dlopen
12598
12599 /* System header to define __stub macros and hopefully few prototypes,
12600     which can conflict with char dlopen (); below.
12601     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12602     <limits.h> exists even on freestanding compilers.  */
12603
12604 #ifdef __STDC__
12605 # include <limits.h>
12606 #else
12607 # include <assert.h>
12608 #endif
12609
12610 #undef dlopen
12611
12612 /* Override any GCC internal prototype to avoid an error.
12613    Use char because int might match the return type of a GCC
12614    builtin and then its argument prototype would still apply.  */
12615 #ifdef __cplusplus
12616 extern "C"
12617 #endif
12618 char dlopen ();
12619 /* The GNU C library defines this for functions which it implements
12620     to always fail with ENOSYS.  Some functions are actually named
12621     something starting with __ and the normal name is an alias.  */
12622 #if defined __stub_dlopen || defined __stub___dlopen
12623 choke me
12624 #endif
12625
12626 int
12627 main ()
12628 {
12629 return dlopen ();
12630   ;
12631   return 0;
12632 }
12633 _ACEOF
12634 rm -f conftest.$ac_objext conftest$ac_exeext
12635 if { (ac_try="$ac_link"
12636 case "(($ac_try" in
12637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12638   *) ac_try_echo=$ac_try;;
12639 esac
12640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12641   (eval "$ac_link") 2>conftest.er1
12642   ac_status=$?
12643   grep -v '^ *+' conftest.er1 >conftest.err
12644   rm -f conftest.er1
12645   cat conftest.err >&5
12646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12647   (exit $ac_status); } && {
12648          test -z "$ac_cxx_werror_flag" ||
12649          test ! -s conftest.err
12650        } && test -s conftest$ac_exeext &&
12651        $as_test_x conftest$ac_exeext; then
12652   ac_cv_func_dlopen=yes
12653 else
12654   echo "$as_me: failed program was:" >&5
12655 sed 's/^/| /' conftest.$ac_ext >&5
12656
12657         ac_cv_func_dlopen=no
12658 fi
12659
12660 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12661       conftest$ac_exeext conftest.$ac_ext
12662 fi
12663 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12664 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
12665 if test $ac_cv_func_dlopen = yes; then
12666   lt_cv_dlopen="dlopen"
12667 else
12668   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12669 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12670 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12671   echo $ECHO_N "(cached) $ECHO_C" >&6
12672 else
12673   ac_check_lib_save_LIBS=$LIBS
12674 LIBS="-ldl  $LIBS"
12675 cat >conftest.$ac_ext <<_ACEOF
12676 /* confdefs.h.  */
12677 _ACEOF
12678 cat confdefs.h >>conftest.$ac_ext
12679 cat >>conftest.$ac_ext <<_ACEOF
12680 /* end confdefs.h.  */
12681
12682 /* Override any GCC internal prototype to avoid an error.
12683    Use char because int might match the return type of a GCC
12684    builtin and then its argument prototype would still apply.  */
12685 #ifdef __cplusplus
12686 extern "C"
12687 #endif
12688 char dlopen ();
12689 int
12690 main ()
12691 {
12692 return dlopen ();
12693   ;
12694   return 0;
12695 }
12696 _ACEOF
12697 rm -f conftest.$ac_objext conftest$ac_exeext
12698 if { (ac_try="$ac_link"
12699 case "(($ac_try" in
12700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12701   *) ac_try_echo=$ac_try;;
12702 esac
12703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12704   (eval "$ac_link") 2>conftest.er1
12705   ac_status=$?
12706   grep -v '^ *+' conftest.er1 >conftest.err
12707   rm -f conftest.er1
12708   cat conftest.err >&5
12709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12710   (exit $ac_status); } && {
12711          test -z "$ac_cxx_werror_flag" ||
12712          test ! -s conftest.err
12713        } && test -s conftest$ac_exeext &&
12714        $as_test_x conftest$ac_exeext; then
12715   ac_cv_lib_dl_dlopen=yes
12716 else
12717   echo "$as_me: failed program was:" >&5
12718 sed 's/^/| /' conftest.$ac_ext >&5
12719
12720         ac_cv_lib_dl_dlopen=no
12721 fi
12722
12723 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12724       conftest$ac_exeext conftest.$ac_ext
12725 LIBS=$ac_check_lib_save_LIBS
12726 fi
12727 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12728 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12729 if test $ac_cv_lib_dl_dlopen = yes; then
12730   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12731 else
12732   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12733 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
12734 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12735   echo $ECHO_N "(cached) $ECHO_C" >&6
12736 else
12737   ac_check_lib_save_LIBS=$LIBS
12738 LIBS="-lsvld  $LIBS"
12739 cat >conftest.$ac_ext <<_ACEOF
12740 /* confdefs.h.  */
12741 _ACEOF
12742 cat confdefs.h >>conftest.$ac_ext
12743 cat >>conftest.$ac_ext <<_ACEOF
12744 /* end confdefs.h.  */
12745
12746 /* Override any GCC internal prototype to avoid an error.
12747    Use char because int might match the return type of a GCC
12748    builtin and then its argument prototype would still apply.  */
12749 #ifdef __cplusplus
12750 extern "C"
12751 #endif
12752 char dlopen ();
12753 int
12754 main ()
12755 {
12756 return dlopen ();
12757   ;
12758   return 0;
12759 }
12760 _ACEOF
12761 rm -f conftest.$ac_objext conftest$ac_exeext
12762 if { (ac_try="$ac_link"
12763 case "(($ac_try" in
12764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12765   *) ac_try_echo=$ac_try;;
12766 esac
12767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12768   (eval "$ac_link") 2>conftest.er1
12769   ac_status=$?
12770   grep -v '^ *+' conftest.er1 >conftest.err
12771   rm -f conftest.er1
12772   cat conftest.err >&5
12773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12774   (exit $ac_status); } && {
12775          test -z "$ac_cxx_werror_flag" ||
12776          test ! -s conftest.err
12777        } && test -s conftest$ac_exeext &&
12778        $as_test_x conftest$ac_exeext; then
12779   ac_cv_lib_svld_dlopen=yes
12780 else
12781   echo "$as_me: failed program was:" >&5
12782 sed 's/^/| /' conftest.$ac_ext >&5
12783
12784         ac_cv_lib_svld_dlopen=no
12785 fi
12786
12787 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12788       conftest$ac_exeext conftest.$ac_ext
12789 LIBS=$ac_check_lib_save_LIBS
12790 fi
12791 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12792 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
12793 if test $ac_cv_lib_svld_dlopen = yes; then
12794   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12795 else
12796   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12797 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
12798 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12799   echo $ECHO_N "(cached) $ECHO_C" >&6
12800 else
12801   ac_check_lib_save_LIBS=$LIBS
12802 LIBS="-ldld  $LIBS"
12803 cat >conftest.$ac_ext <<_ACEOF
12804 /* confdefs.h.  */
12805 _ACEOF
12806 cat confdefs.h >>conftest.$ac_ext
12807 cat >>conftest.$ac_ext <<_ACEOF
12808 /* end confdefs.h.  */
12809
12810 /* Override any GCC internal prototype to avoid an error.
12811    Use char because int might match the return type of a GCC
12812    builtin and then its argument prototype would still apply.  */
12813 #ifdef __cplusplus
12814 extern "C"
12815 #endif
12816 char dld_link ();
12817 int
12818 main ()
12819 {
12820 return dld_link ();
12821   ;
12822   return 0;
12823 }
12824 _ACEOF
12825 rm -f conftest.$ac_objext conftest$ac_exeext
12826 if { (ac_try="$ac_link"
12827 case "(($ac_try" in
12828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12829   *) ac_try_echo=$ac_try;;
12830 esac
12831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12832   (eval "$ac_link") 2>conftest.er1
12833   ac_status=$?
12834   grep -v '^ *+' conftest.er1 >conftest.err
12835   rm -f conftest.er1
12836   cat conftest.err >&5
12837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12838   (exit $ac_status); } && {
12839          test -z "$ac_cxx_werror_flag" ||
12840          test ! -s conftest.err
12841        } && test -s conftest$ac_exeext &&
12842        $as_test_x conftest$ac_exeext; then
12843   ac_cv_lib_dld_dld_link=yes
12844 else
12845   echo "$as_me: failed program was:" >&5
12846 sed 's/^/| /' conftest.$ac_ext >&5
12847
12848         ac_cv_lib_dld_dld_link=no
12849 fi
12850
12851 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12852       conftest$ac_exeext conftest.$ac_ext
12853 LIBS=$ac_check_lib_save_LIBS
12854 fi
12855 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12856 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
12857 if test $ac_cv_lib_dld_dld_link = yes; then
12858   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12859 fi
12860
12861
12862 fi
12863
12864
12865 fi
12866
12867
12868 fi
12869
12870
12871 fi
12872
12873
12874 fi
12875
12876     ;;
12877   esac
12878
12879   if test "x$lt_cv_dlopen" != xno; then
12880     enable_dlopen=yes
12881   else
12882     enable_dlopen=no
12883   fi
12884
12885   case $lt_cv_dlopen in
12886   dlopen)
12887     save_CPPFLAGS="$CPPFLAGS"
12888     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12889
12890     save_LDFLAGS="$LDFLAGS"
12891     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12892
12893     save_LIBS="$LIBS"
12894     LIBS="$lt_cv_dlopen_libs $LIBS"
12895
12896     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12897 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
12898 if test "${lt_cv_dlopen_self+set}" = set; then
12899   echo $ECHO_N "(cached) $ECHO_C" >&6
12900 else
12901           if test "$cross_compiling" = yes; then :
12902   lt_cv_dlopen_self=cross
12903 else
12904   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12905   lt_status=$lt_dlunknown
12906   cat > conftest.$ac_ext <<EOF
12907 #line 12907 "configure"
12908 #include "confdefs.h"
12909
12910 #if HAVE_DLFCN_H
12911 #include <dlfcn.h>
12912 #endif
12913
12914 #include <stdio.h>
12915
12916 #ifdef RTLD_GLOBAL
12917 #  define LT_DLGLOBAL           RTLD_GLOBAL
12918 #else
12919 #  ifdef DL_GLOBAL
12920 #    define LT_DLGLOBAL         DL_GLOBAL
12921 #  else
12922 #    define LT_DLGLOBAL         0
12923 #  endif
12924 #endif
12925
12926 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12927    find out it does not work in some platform. */
12928 #ifndef LT_DLLAZY_OR_NOW
12929 #  ifdef RTLD_LAZY
12930 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12931 #  else
12932 #    ifdef DL_LAZY
12933 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12934 #    else
12935 #      ifdef RTLD_NOW
12936 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12937 #      else
12938 #        ifdef DL_NOW
12939 #          define LT_DLLAZY_OR_NOW      DL_NOW
12940 #        else
12941 #          define LT_DLLAZY_OR_NOW      0
12942 #        endif
12943 #      endif
12944 #    endif
12945 #  endif
12946 #endif
12947
12948 #ifdef __cplusplus
12949 extern "C" void exit (int);
12950 #endif
12951
12952 void fnord() { int i=42;}
12953 int main ()
12954 {
12955   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12956   int status = $lt_dlunknown;
12957
12958   if (self)
12959     {
12960       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12961       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12962       /* dlclose (self); */
12963     }
12964
12965     exit (status);
12966 }
12967 EOF
12968   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12969   (eval $ac_link) 2>&5
12970   ac_status=$?
12971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12972   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12973     (./conftest; exit; ) 2>/dev/null
12974     lt_status=$?
12975     case x$lt_status in
12976       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12977       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12978       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12979     esac
12980   else :
12981     # compilation failed
12982     lt_cv_dlopen_self=no
12983   fi
12984 fi
12985 rm -fr conftest*
12986
12987
12988 fi
12989 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12990 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
12991
12992     if test "x$lt_cv_dlopen_self" = xyes; then
12993       LDFLAGS="$LDFLAGS $link_static_flag"
12994       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12995 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
12996 if test "${lt_cv_dlopen_self_static+set}" = set; then
12997   echo $ECHO_N "(cached) $ECHO_C" >&6
12998 else
12999           if test "$cross_compiling" = yes; then :
13000   lt_cv_dlopen_self_static=cross
13001 else
13002   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13003   lt_status=$lt_dlunknown
13004   cat > conftest.$ac_ext <<EOF
13005 #line 13005 "configure"
13006 #include "confdefs.h"
13007
13008 #if HAVE_DLFCN_H
13009 #include <dlfcn.h>
13010 #endif
13011
13012 #include <stdio.h>
13013
13014 #ifdef RTLD_GLOBAL
13015 #  define LT_DLGLOBAL           RTLD_GLOBAL
13016 #else
13017 #  ifdef DL_GLOBAL
13018 #    define LT_DLGLOBAL         DL_GLOBAL
13019 #  else
13020 #    define LT_DLGLOBAL         0
13021 #  endif
13022 #endif
13023
13024 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13025    find out it does not work in some platform. */
13026 #ifndef LT_DLLAZY_OR_NOW
13027 #  ifdef RTLD_LAZY
13028 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13029 #  else
13030 #    ifdef DL_LAZY
13031 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13032 #    else
13033 #      ifdef RTLD_NOW
13034 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13035 #      else
13036 #        ifdef DL_NOW
13037 #          define LT_DLLAZY_OR_NOW      DL_NOW
13038 #        else
13039 #          define LT_DLLAZY_OR_NOW      0
13040 #        endif
13041 #      endif
13042 #    endif
13043 #  endif
13044 #endif
13045
13046 #ifdef __cplusplus
13047 extern "C" void exit (int);
13048 #endif
13049
13050 void fnord() { int i=42;}
13051 int main ()
13052 {
13053   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13054   int status = $lt_dlunknown;
13055
13056   if (self)
13057     {
13058       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13059       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13060       /* dlclose (self); */
13061     }
13062
13063     exit (status);
13064 }
13065 EOF
13066   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13067   (eval $ac_link) 2>&5
13068   ac_status=$?
13069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13070   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13071     (./conftest; exit; ) 2>/dev/null
13072     lt_status=$?
13073     case x$lt_status in
13074       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13075       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13076       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
13077     esac
13078   else :
13079     # compilation failed
13080     lt_cv_dlopen_self_static=no
13081   fi
13082 fi
13083 rm -fr conftest*
13084
13085
13086 fi
13087 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13088 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
13089     fi
13090
13091     CPPFLAGS="$save_CPPFLAGS"
13092     LDFLAGS="$save_LDFLAGS"
13093     LIBS="$save_LIBS"
13094     ;;
13095   esac
13096
13097   case $lt_cv_dlopen_self in
13098   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13099   *) enable_dlopen_self=unknown ;;
13100   esac
13101
13102   case $lt_cv_dlopen_self_static in
13103   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13104   *) enable_dlopen_self_static=unknown ;;
13105   esac
13106 fi
13107
13108
13109 # The else clause should only fire when bootstrapping the
13110 # libtool distribution, otherwise you forgot to ship ltmain.sh
13111 # with your package, and you will get complaints that there are
13112 # no rules to generate ltmain.sh.
13113 if test -f "$ltmain"; then
13114   # See if we are running on zsh, and set the options which allow our commands through
13115   # without removal of \ escapes.
13116   if test -n "${ZSH_VERSION+set}" ; then
13117     setopt NO_GLOB_SUBST
13118   fi
13119   # Now quote all the things that may contain metacharacters while being
13120   # careful not to overquote the AC_SUBSTed values.  We take copies of the
13121   # variables and quote the copies for generation of the libtool script.
13122   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
13123     SED SHELL STRIP \
13124     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13125     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13126     deplibs_check_method reload_flag reload_cmds need_locks \
13127     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13128     lt_cv_sys_global_symbol_to_c_name_address \
13129     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13130     old_postinstall_cmds old_postuninstall_cmds \
13131     compiler_CXX \
13132     CC_CXX \
13133     LD_CXX \
13134     lt_prog_compiler_wl_CXX \
13135     lt_prog_compiler_pic_CXX \
13136     lt_prog_compiler_static_CXX \
13137     lt_prog_compiler_no_builtin_flag_CXX \
13138     export_dynamic_flag_spec_CXX \
13139     thread_safe_flag_spec_CXX \
13140     whole_archive_flag_spec_CXX \
13141     enable_shared_with_static_runtimes_CXX \
13142     old_archive_cmds_CXX \
13143     old_archive_from_new_cmds_CXX \
13144     predep_objects_CXX \
13145     postdep_objects_CXX \
13146     predeps_CXX \
13147     postdeps_CXX \
13148     compiler_lib_search_path_CXX \
13149     archive_cmds_CXX \
13150     archive_expsym_cmds_CXX \
13151     postinstall_cmds_CXX \
13152     postuninstall_cmds_CXX \
13153     old_archive_from_expsyms_cmds_CXX \
13154     allow_undefined_flag_CXX \
13155     no_undefined_flag_CXX \
13156     export_symbols_cmds_CXX \
13157     hardcode_libdir_flag_spec_CXX \
13158     hardcode_libdir_flag_spec_ld_CXX \
13159     hardcode_libdir_separator_CXX \
13160     hardcode_automatic_CXX \
13161     module_cmds_CXX \
13162     module_expsym_cmds_CXX \
13163     lt_cv_prog_compiler_c_o_CXX \
13164     exclude_expsyms_CXX \
13165     include_expsyms_CXX; do
13166
13167     case $var in
13168     old_archive_cmds_CXX | \
13169     old_archive_from_new_cmds_CXX | \
13170     archive_cmds_CXX | \
13171     archive_expsym_cmds_CXX | \
13172     module_cmds_CXX | \
13173     module_expsym_cmds_CXX | \
13174     old_archive_from_expsyms_cmds_CXX | \
13175     export_symbols_cmds_CXX | \
13176     extract_expsyms_cmds | reload_cmds | finish_cmds | \
13177     postinstall_cmds | postuninstall_cmds | \
13178     old_postinstall_cmds | old_postuninstall_cmds | \
13179     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13180       # Double-quote double-evaled strings.
13181       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13182       ;;
13183     *)
13184       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13185       ;;
13186     esac
13187   done
13188
13189   case $lt_echo in
13190   *'\$0 --fallback-echo"')
13191     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13192     ;;
13193   esac
13194
13195 cfgfile="$ofile"
13196
13197   cat <<__EOF__ >> "$cfgfile"
13198 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13199
13200 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13201
13202 # Shell to use when invoking shell scripts.
13203 SHELL=$lt_SHELL
13204
13205 # Whether or not to build shared libraries.
13206 build_libtool_libs=$enable_shared
13207
13208 # Whether or not to build static libraries.
13209 build_old_libs=$enable_static
13210
13211 # Whether or not to add -lc for building shared libraries.
13212 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13213
13214 # Whether or not to disallow shared libs when runtime libs are static
13215 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13216
13217 # Whether or not to optimize for fast installation.
13218 fast_install=$enable_fast_install
13219
13220 # The host system.
13221 host_alias=$host_alias
13222 host=$host
13223
13224 # An echo program that does not interpret backslashes.
13225 echo=$lt_echo
13226
13227 # The archiver.
13228 AR=$lt_AR
13229 AR_FLAGS=$lt_AR_FLAGS
13230
13231 # A C compiler.
13232 LTCC=$lt_LTCC
13233
13234 # A language-specific compiler.
13235 CC=$lt_compiler_CXX
13236
13237 # Is the compiler the GNU C compiler?
13238 with_gcc=$GCC_CXX
13239
13240 # An ERE matcher.
13241 EGREP=$lt_EGREP
13242
13243 # The linker used to build libraries.
13244 LD=$lt_LD_CXX
13245
13246 # Whether we need hard or soft links.
13247 LN_S=$lt_LN_S
13248
13249 # A BSD-compatible nm program.
13250 NM=$lt_NM
13251
13252 # A symbol stripping program
13253 STRIP=$lt_STRIP
13254
13255 # Used to examine libraries when file_magic_cmd begins "file"
13256 MAGIC_CMD=$MAGIC_CMD
13257
13258 # Used on cygwin: DLL creation program.
13259 DLLTOOL="$DLLTOOL"
13260
13261 # Used on cygwin: object dumper.
13262 OBJDUMP="$OBJDUMP"
13263
13264 # Used on cygwin: assembler.
13265 AS="$AS"
13266
13267 # The name of the directory that contains temporary libtool files.
13268 objdir=$objdir
13269
13270 # How to create reloadable object files.
13271 reload_flag=$lt_reload_flag
13272 reload_cmds=$lt_reload_cmds
13273
13274 # How to pass a linker flag through the compiler.
13275 wl=$lt_lt_prog_compiler_wl_CXX
13276
13277 # Object file suffix (normally "o").
13278 objext="$ac_objext"
13279
13280 # Old archive suffix (normally "a").
13281 libext="$libext"
13282
13283 # Shared library suffix (normally ".so").
13284 shrext_cmds='$shrext_cmds'
13285
13286 # Executable file suffix (normally "").
13287 exeext="$exeext"
13288
13289 # Additional compiler flags for building library objects.
13290 pic_flag=$lt_lt_prog_compiler_pic_CXX
13291 pic_mode=$pic_mode
13292
13293 # What is the maximum length of a command?
13294 max_cmd_len=$lt_cv_sys_max_cmd_len
13295
13296 # Does compiler simultaneously support -c and -o options?
13297 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13298
13299 # Must we lock files when doing compilation ?
13300 need_locks=$lt_need_locks
13301
13302 # Do we need the lib prefix for modules?
13303 need_lib_prefix=$need_lib_prefix
13304
13305 # Do we need a version for libraries?
13306 need_version=$need_version
13307
13308 # Whether dlopen is supported.
13309 dlopen_support=$enable_dlopen
13310
13311 # Whether dlopen of programs is supported.
13312 dlopen_self=$enable_dlopen_self
13313
13314 # Whether dlopen of statically linked programs is supported.
13315 dlopen_self_static=$enable_dlopen_self_static
13316
13317 # Compiler flag to prevent dynamic linking.
13318 link_static_flag=$lt_lt_prog_compiler_static_CXX
13319
13320 # Compiler flag to turn off builtin functions.
13321 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13322
13323 # Compiler flag to allow reflexive dlopens.
13324 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13325
13326 # Compiler flag to generate shared objects directly from archives.
13327 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13328
13329 # Compiler flag to generate thread-safe objects.
13330 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13331
13332 # Library versioning type.
13333 version_type=$version_type
13334
13335 # Format of library name prefix.
13336 libname_spec=$lt_libname_spec
13337
13338 # List of archive names.  First name is the real one, the rest are links.
13339 # The last name is the one that the linker finds with -lNAME.
13340 library_names_spec=$lt_library_names_spec
13341
13342 # The coded name of the library, if different from the real name.
13343 soname_spec=$lt_soname_spec
13344
13345 # Commands used to build and install an old-style archive.
13346 RANLIB=$lt_RANLIB
13347 old_archive_cmds=$lt_old_archive_cmds_CXX
13348 old_postinstall_cmds=$lt_old_postinstall_cmds
13349 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13350
13351 # Create an old-style archive from a shared archive.
13352 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13353
13354 # Create a temporary old-style archive to link instead of a shared archive.
13355 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13356
13357 # Commands used to build and install a shared archive.
13358 archive_cmds=$lt_archive_cmds_CXX
13359 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13360 postinstall_cmds=$lt_postinstall_cmds
13361 postuninstall_cmds=$lt_postuninstall_cmds
13362
13363 # Commands used to build a loadable module (assumed same as above if empty)
13364 module_cmds=$lt_module_cmds_CXX
13365 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13366
13367 # Commands to strip libraries.
13368 old_striplib=$lt_old_striplib
13369 striplib=$lt_striplib
13370
13371 # Dependencies to place before the objects being linked to create a
13372 # shared library.
13373 predep_objects=$lt_predep_objects_CXX
13374
13375 # Dependencies to place after the objects being linked to create a
13376 # shared library.
13377 postdep_objects=$lt_postdep_objects_CXX
13378
13379 # Dependencies to place before the objects being linked to create a
13380 # shared library.
13381 predeps=$lt_predeps_CXX
13382
13383 # Dependencies to place after the objects being linked to create a
13384 # shared library.
13385 postdeps=$lt_postdeps_CXX
13386
13387 # The library search path used internally by the compiler when linking
13388 # a shared library.
13389 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13390
13391 # Method to check whether dependent libraries are shared objects.
13392 deplibs_check_method=$lt_deplibs_check_method
13393
13394 # Command to use when deplibs_check_method == file_magic.
13395 file_magic_cmd=$lt_file_magic_cmd
13396
13397 # Flag that allows shared libraries with undefined symbols to be built.
13398 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13399
13400 # Flag that forces no undefined symbols.
13401 no_undefined_flag=$lt_no_undefined_flag_CXX
13402
13403 # Commands used to finish a libtool library installation in a directory.
13404 finish_cmds=$lt_finish_cmds
13405
13406 # Same as above, but a single script fragment to be evaled but not shown.
13407 finish_eval=$lt_finish_eval
13408
13409 # Take the output of nm and produce a listing of raw symbols and C names.
13410 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13411
13412 # Transform the output of nm in a proper C declaration
13413 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13414
13415 # Transform the output of nm in a C name address pair
13416 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13417
13418 # This is the shared library runtime path variable.
13419 runpath_var=$runpath_var
13420
13421 # This is the shared library path variable.
13422 shlibpath_var=$shlibpath_var
13423
13424 # Is shlibpath searched before the hard-coded library search path?
13425 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13426
13427 # How to hardcode a shared library path into an executable.
13428 hardcode_action=$hardcode_action_CXX
13429
13430 # Whether we should hardcode library paths into libraries.
13431 hardcode_into_libs=$hardcode_into_libs
13432
13433 # Flag to hardcode \$libdir into a binary during linking.
13434 # This must work even if \$libdir does not exist.
13435 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13436
13437 # If ld is used when linking, flag to hardcode \$libdir into
13438 # a binary during linking. This must work even if \$libdir does
13439 # not exist.
13440 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13441
13442 # Whether we need a single -rpath flag with a separated argument.
13443 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13444
13445 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13446 # resulting binary.
13447 hardcode_direct=$hardcode_direct_CXX
13448
13449 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13450 # resulting binary.
13451 hardcode_minus_L=$hardcode_minus_L_CXX
13452
13453 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13454 # the resulting binary.
13455 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13456
13457 # Set to yes if building a shared library automatically hardcodes DIR into the library
13458 # and all subsequent libraries and executables linked against it.
13459 hardcode_automatic=$hardcode_automatic_CXX
13460
13461 # Variables whose values should be saved in libtool wrapper scripts and
13462 # restored at relink time.
13463 variables_saved_for_relink="$variables_saved_for_relink"
13464
13465 # Whether libtool must link a program against all its dependency libraries.
13466 link_all_deplibs=$link_all_deplibs_CXX
13467
13468 # Compile-time system search path for libraries
13469 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13470
13471 # Run-time system search path for libraries
13472 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13473
13474 # Fix the shell variable \$srcfile for the compiler.
13475 fix_srcfile_path="$fix_srcfile_path_CXX"
13476
13477 # Set to yes if exported symbols are required.
13478 always_export_symbols=$always_export_symbols_CXX
13479
13480 # The commands to list exported symbols.
13481 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13482
13483 # The commands to extract the exported symbol list from a shared archive.
13484 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13485
13486 # Symbols that should not be listed in the preloaded symbols.
13487 exclude_expsyms=$lt_exclude_expsyms_CXX
13488
13489 # Symbols that must always be exported.
13490 include_expsyms=$lt_include_expsyms_CXX
13491
13492 # ### END LIBTOOL TAG CONFIG: $tagname
13493
13494 __EOF__
13495
13496
13497 else
13498   # If there is no Makefile yet, we rely on a make rule to execute
13499   # `config.status --recheck' to rerun these tests and create the
13500   # libtool script then.
13501   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13502   if test -f "$ltmain_in"; then
13503     test -f Makefile && make "$ltmain"
13504   fi
13505 fi
13506
13507
13508 ac_ext=c
13509 ac_cpp='$CPP $CPPFLAGS'
13510 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13511 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13512 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13513
13514 CC=$lt_save_CC
13515 LDCXX=$LD
13516 LD=$lt_save_LD
13517 GCC=$lt_save_GCC
13518 with_gnu_ldcxx=$with_gnu_ld
13519 with_gnu_ld=$lt_save_with_gnu_ld
13520 lt_cv_path_LDCXX=$lt_cv_path_LD
13521 lt_cv_path_LD=$lt_save_path_LD
13522 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13523 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13524
13525         else
13526           tagname=""
13527         fi
13528         ;;
13529
13530       F77)
13531         if test -n "$F77" && test "X$F77" != "Xno"; then
13532
13533 ac_ext=f
13534 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13535 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13536 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13537
13538
13539 archive_cmds_need_lc_F77=no
13540 allow_undefined_flag_F77=
13541 always_export_symbols_F77=no
13542 archive_expsym_cmds_F77=
13543 export_dynamic_flag_spec_F77=
13544 hardcode_direct_F77=no
13545 hardcode_libdir_flag_spec_F77=
13546 hardcode_libdir_flag_spec_ld_F77=
13547 hardcode_libdir_separator_F77=
13548 hardcode_minus_L_F77=no
13549 hardcode_automatic_F77=no
13550 module_cmds_F77=
13551 module_expsym_cmds_F77=
13552 link_all_deplibs_F77=unknown
13553 old_archive_cmds_F77=$old_archive_cmds
13554 no_undefined_flag_F77=
13555 whole_archive_flag_spec_F77=
13556 enable_shared_with_static_runtimes_F77=no
13557
13558 # Source file extension for f77 test sources.
13559 ac_ext=f
13560
13561 # Object file extension for compiled f77 test sources.
13562 objext=o
13563 objext_F77=$objext
13564
13565 # Code to be used in simple compile tests
13566 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13567
13568 # Code to be used in simple link tests
13569 lt_simple_link_test_code="      program t\n      end\n"
13570
13571 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13572
13573 # If no C compiler was specified, use CC.
13574 LTCC=${LTCC-"$CC"}
13575
13576 # Allow CC to be a program name with arguments.
13577 compiler=$CC
13578
13579
13580 # Allow CC to be a program name with arguments.
13581 lt_save_CC="$CC"
13582 CC=${F77-"f77"}
13583 compiler=$CC
13584 compiler_F77=$CC
13585 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13586
13587 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13588 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13589 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13590 echo "${ECHO_T}$can_build_shared" >&6; }
13591
13592 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13593 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13594 test "$can_build_shared" = "no" && enable_shared=no
13595
13596 # On AIX, shared libraries and static libraries use the same namespace, and
13597 # are all built from PIC.
13598 case "$host_os" in
13599 aix3*)
13600   test "$enable_shared" = yes && enable_static=no
13601   if test -n "$RANLIB"; then
13602     archive_cmds="$archive_cmds~\$RANLIB \$lib"
13603     postinstall_cmds='$RANLIB $lib'
13604   fi
13605   ;;
13606 aix4* | aix5*)
13607   test "$enable_shared" = yes && enable_static=no
13608   ;;
13609 esac
13610 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13611 echo "${ECHO_T}$enable_shared" >&6; }
13612
13613 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13614 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13615 # Make sure either enable_shared or enable_static is yes.
13616 test "$enable_shared" = yes || enable_static=yes
13617 { echo "$as_me:$LINENO: result: $enable_static" >&5
13618 echo "${ECHO_T}$enable_static" >&6; }
13619
13620 test "$ld_shlibs_F77" = no && can_build_shared=no
13621
13622 GCC_F77="$G77"
13623 LD_F77="$LD"
13624
13625 lt_prog_compiler_wl_F77=
13626 lt_prog_compiler_pic_F77=
13627 lt_prog_compiler_static_F77=
13628
13629 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13630 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13631
13632   if test "$GCC" = yes; then
13633     lt_prog_compiler_wl_F77='-Wl,'
13634     lt_prog_compiler_static_F77='-static'
13635
13636     case $host_os in
13637       aix*)
13638       # All AIX code is PIC.
13639       if test "$host_cpu" = ia64; then
13640         # AIX 5 now supports IA64 processor
13641         lt_prog_compiler_static_F77='-Bstatic'
13642       fi
13643       ;;
13644
13645     amigaos*)
13646       # FIXME: we need at least 68020 code to build shared libraries, but
13647       # adding the `-m68020' flag to GCC prevents building anything better,
13648       # like `-m68040'.
13649       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13650       ;;
13651
13652     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13653       # PIC is the default for these OSes.
13654       ;;
13655
13656     mingw* | pw32* | os2*)
13657       # This hack is so that the source file can tell whether it is being
13658       # built for inclusion in a dll (and should export symbols for example).
13659       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13660       ;;
13661
13662     darwin* | rhapsody*)
13663       # PIC is the default on this platform
13664       # Common symbols not allowed in MH_DYLIB files
13665       lt_prog_compiler_pic_F77='-fno-common'
13666       ;;
13667
13668     msdosdjgpp*)
13669       # Just because we use GCC doesn't mean we suddenly get shared libraries
13670       # on systems that don't support them.
13671       lt_prog_compiler_can_build_shared_F77=no
13672       enable_shared=no
13673       ;;
13674
13675     sysv4*MP*)
13676       if test -d /usr/nec; then
13677         lt_prog_compiler_pic_F77=-Kconform_pic
13678       fi
13679       ;;
13680
13681     hpux*)
13682       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13683       # not for PA HP-UX.
13684       case "$host_cpu" in
13685       hppa*64*|ia64*)
13686         # +Z the default
13687         ;;
13688       *)
13689         lt_prog_compiler_pic_F77='-fPIC'
13690         ;;
13691       esac
13692       ;;
13693
13694     *)
13695       lt_prog_compiler_pic_F77='-fPIC'
13696       ;;
13697     esac
13698   else
13699     # PORTME Check for flag to pass linker flags through the system compiler.
13700     case $host_os in
13701     aix*)
13702       lt_prog_compiler_wl_F77='-Wl,'
13703       if test "$host_cpu" = ia64; then
13704         # AIX 5 now supports IA64 processor
13705         lt_prog_compiler_static_F77='-Bstatic'
13706       else
13707         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13708       fi
13709       ;;
13710
13711     mingw* | pw32* | os2*)
13712       # This hack is so that the source file can tell whether it is being
13713       # built for inclusion in a dll (and should export symbols for example).
13714       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13715       ;;
13716
13717     hpux9* | hpux10* | hpux11*)
13718       lt_prog_compiler_wl_F77='-Wl,'
13719       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13720       # not for PA HP-UX.
13721       case "$host_cpu" in
13722       hppa*64*|ia64*)
13723         # +Z the default
13724         ;;
13725       *)
13726         lt_prog_compiler_pic_F77='+Z'
13727         ;;
13728       esac
13729       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13730       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13731       ;;
13732
13733     irix5* | irix6* | nonstopux*)
13734       lt_prog_compiler_wl_F77='-Wl,'
13735       # PIC (with -KPIC) is the default.
13736       lt_prog_compiler_static_F77='-non_shared'
13737       ;;
13738
13739     newsos6)
13740       lt_prog_compiler_pic_F77='-KPIC'
13741       lt_prog_compiler_static_F77='-Bstatic'
13742       ;;
13743
13744     linux*)
13745       case $CC in
13746       icc* | ecc*)
13747         lt_prog_compiler_wl_F77='-Wl,'
13748         lt_prog_compiler_pic_F77='-KPIC'
13749         lt_prog_compiler_static_F77='-static'
13750         ;;
13751       ccc*)
13752         lt_prog_compiler_wl_F77='-Wl,'
13753         # All Alpha code is PIC.
13754         lt_prog_compiler_static_F77='-non_shared'
13755         ;;
13756       esac
13757       ;;
13758
13759     osf3* | osf4* | osf5*)
13760       lt_prog_compiler_wl_F77='-Wl,'
13761       # All OSF/1 code is PIC.
13762       lt_prog_compiler_static_F77='-non_shared'
13763       ;;
13764
13765     sco3.2v5*)
13766       lt_prog_compiler_pic_F77='-Kpic'
13767       lt_prog_compiler_static_F77='-dn'
13768       ;;
13769
13770     solaris*)
13771       lt_prog_compiler_wl_F77='-Wl,'
13772       lt_prog_compiler_pic_F77='-KPIC'
13773       lt_prog_compiler_static_F77='-Bstatic'
13774       ;;
13775
13776     sunos4*)
13777       lt_prog_compiler_wl_F77='-Qoption ld '
13778       lt_prog_compiler_pic_F77='-PIC'
13779       lt_prog_compiler_static_F77='-Bstatic'
13780       ;;
13781
13782     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13783       lt_prog_compiler_wl_F77='-Wl,'
13784       lt_prog_compiler_pic_F77='-KPIC'
13785       lt_prog_compiler_static_F77='-Bstatic'
13786       ;;
13787
13788     sysv4*MP*)
13789       if test -d /usr/nec ;then
13790         lt_prog_compiler_pic_F77='-Kconform_pic'
13791         lt_prog_compiler_static_F77='-Bstatic'
13792       fi
13793       ;;
13794
13795     uts4*)
13796       lt_prog_compiler_pic_F77='-pic'
13797       lt_prog_compiler_static_F77='-Bstatic'
13798       ;;
13799
13800     *)
13801       lt_prog_compiler_can_build_shared_F77=no
13802       ;;
13803     esac
13804   fi
13805
13806 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13807 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
13808
13809 #
13810 # Check to make sure the PIC flag actually works.
13811 #
13812 if test -n "$lt_prog_compiler_pic_F77"; then
13813
13814 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13815 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
13816 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13817   echo $ECHO_N "(cached) $ECHO_C" >&6
13818 else
13819   lt_prog_compiler_pic_works_F77=no
13820   ac_outfile=conftest.$ac_objext
13821    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13822    lt_compiler_flag="$lt_prog_compiler_pic_F77"
13823    # Insert the option either (1) after the last *FLAGS variable, or
13824    # (2) before a word containing "conftest.", or (3) at the end.
13825    # Note that $ac_compile itself does not contain backslashes and begins
13826    # with a dollar sign (not a hyphen), so the echo should work correctly.
13827    # The option is referenced via a variable to avoid confusing sed.
13828    lt_compile=`echo "$ac_compile" | $SED \
13829    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13830    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13831    -e 's:$: $lt_compiler_flag:'`
13832    (eval echo "\"\$as_me:13832: $lt_compile\"" >&5)
13833    (eval "$lt_compile" 2>conftest.err)
13834    ac_status=$?
13835    cat conftest.err >&5
13836    echo "$as_me:13836: \$? = $ac_status" >&5
13837    if (exit $ac_status) && test -s "$ac_outfile"; then
13838      # The compiler can only warn and ignore the option if not recognized
13839      # So say no if there are warnings
13840      if test ! -s conftest.err; then
13841        lt_prog_compiler_pic_works_F77=yes
13842      fi
13843    fi
13844    $rm conftest*
13845
13846 fi
13847 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13848 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
13849
13850 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13851     case $lt_prog_compiler_pic_F77 in
13852      "" | " "*) ;;
13853      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13854      esac
13855 else
13856     lt_prog_compiler_pic_F77=
13857      lt_prog_compiler_can_build_shared_F77=no
13858 fi
13859
13860 fi
13861 case "$host_os" in
13862   # For platforms which do not support PIC, -DPIC is meaningless:
13863   *djgpp*)
13864     lt_prog_compiler_pic_F77=
13865     ;;
13866   *)
13867     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13868     ;;
13869 esac
13870
13871 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13872 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13873 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13874   echo $ECHO_N "(cached) $ECHO_C" >&6
13875 else
13876   lt_cv_prog_compiler_c_o_F77=no
13877    $rm -r conftest 2>/dev/null
13878    mkdir conftest
13879    cd conftest
13880    mkdir out
13881    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13882
13883    lt_compiler_flag="-o out/conftest2.$ac_objext"
13884    # Insert the option either (1) after the last *FLAGS variable, or
13885    # (2) before a word containing "conftest.", or (3) at the end.
13886    # Note that $ac_compile itself does not contain backslashes and begins
13887    # with a dollar sign (not a hyphen), so the echo should work correctly.
13888    lt_compile=`echo "$ac_compile" | $SED \
13889    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13890    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13891    -e 's:$: $lt_compiler_flag:'`
13892    (eval echo "\"\$as_me:13892: $lt_compile\"" >&5)
13893    (eval "$lt_compile" 2>out/conftest.err)
13894    ac_status=$?
13895    cat out/conftest.err >&5
13896    echo "$as_me:13896: \$? = $ac_status" >&5
13897    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13898    then
13899      # The compiler can only warn and ignore the option if not recognized
13900      # So say no if there are warnings
13901      if test ! -s out/conftest.err; then
13902        lt_cv_prog_compiler_c_o_F77=yes
13903      fi
13904    fi
13905    chmod u+w .
13906    $rm conftest*
13907    # SGI C++ compiler will create directory out/ii_files/ for
13908    # template instantiation
13909    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13910    $rm out/* && rmdir out
13911    cd ..
13912    rmdir conftest
13913    $rm conftest*
13914
13915 fi
13916 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13917 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
13918
13919
13920 hard_links="nottested"
13921 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13922   # do not overwrite the value of need_locks provided by the user
13923   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13924 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13925   hard_links=yes
13926   $rm conftest*
13927   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13928   touch conftest.a
13929   ln conftest.a conftest.b 2>&5 || hard_links=no
13930   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13931   { echo "$as_me:$LINENO: result: $hard_links" >&5
13932 echo "${ECHO_T}$hard_links" >&6; }
13933   if test "$hard_links" = no; then
13934     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13935 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13936     need_locks=warn
13937   fi
13938 else
13939   need_locks=no
13940 fi
13941
13942 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13943 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13944
13945   runpath_var=
13946   allow_undefined_flag_F77=
13947   enable_shared_with_static_runtimes_F77=no
13948   archive_cmds_F77=
13949   archive_expsym_cmds_F77=
13950   old_archive_From_new_cmds_F77=
13951   old_archive_from_expsyms_cmds_F77=
13952   export_dynamic_flag_spec_F77=
13953   whole_archive_flag_spec_F77=
13954   thread_safe_flag_spec_F77=
13955   hardcode_libdir_flag_spec_F77=
13956   hardcode_libdir_flag_spec_ld_F77=
13957   hardcode_libdir_separator_F77=
13958   hardcode_direct_F77=no
13959   hardcode_minus_L_F77=no
13960   hardcode_shlibpath_var_F77=unsupported
13961   link_all_deplibs_F77=unknown
13962   hardcode_automatic_F77=no
13963   module_cmds_F77=
13964   module_expsym_cmds_F77=
13965   always_export_symbols_F77=no
13966   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13967   # include_expsyms should be a list of space-separated symbols to be *always*
13968   # included in the symbol list
13969   include_expsyms_F77=
13970   # exclude_expsyms can be an extended regexp of symbols to exclude
13971   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13972   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13973   # as well as any symbol that contains `d'.
13974   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13975   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13976   # platforms (ab)use it in PIC code, but their linkers get confused if
13977   # the symbol is explicitly referenced.  Since portable code cannot
13978   # rely on this symbol name, it's probably fine to never include it in
13979   # preloaded symbol tables.
13980   extract_expsyms_cmds=
13981
13982   case $host_os in
13983   cygwin* | mingw* | pw32*)
13984     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13985     # When not using gcc, we currently assume that we are using
13986     # Microsoft Visual C++.
13987     if test "$GCC" != yes; then
13988       with_gnu_ld=no
13989     fi
13990     ;;
13991   openbsd*)
13992     with_gnu_ld=no
13993     ;;
13994   esac
13995
13996   ld_shlibs_F77=yes
13997   if test "$with_gnu_ld" = yes; then
13998     # If archive_cmds runs LD, not CC, wlarc should be empty
13999     wlarc='${wl}'
14000
14001     # See if GNU ld supports shared libraries.
14002     case $host_os in
14003     aix3* | aix4* | aix5*)
14004       # On AIX/PPC, the GNU linker is very broken
14005       if test "$host_cpu" != ia64; then
14006         ld_shlibs_F77=no
14007         cat <<EOF 1>&2
14008
14009 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14010 *** to be unable to reliably create shared libraries on AIX.
14011 *** Therefore, libtool is disabling shared libraries support.  If you
14012 *** really care for shared libraries, you may want to modify your PATH
14013 *** so that a non-GNU linker is found, and then restart.
14014
14015 EOF
14016       fi
14017       ;;
14018
14019     amigaos*)
14020       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)'
14021       hardcode_libdir_flag_spec_F77='-L$libdir'
14022       hardcode_minus_L_F77=yes
14023
14024       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14025       # that the semantics of dynamic libraries on AmigaOS, at least up
14026       # to version 4, is to share data among multiple programs linked
14027       # with the same dynamic library.  Since this doesn't match the
14028       # behavior of shared libraries on other platforms, we can't use
14029       # them.
14030       ld_shlibs_F77=no
14031       ;;
14032
14033     beos*)
14034       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14035         allow_undefined_flag_F77=unsupported
14036         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14037         # support --undefined.  This deserves some investigation.  FIXME
14038         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14039       else
14040         ld_shlibs_F77=no
14041       fi
14042       ;;
14043
14044     cygwin* | mingw* | pw32*)
14045       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14046       # as there is no search path for DLLs.
14047       hardcode_libdir_flag_spec_F77='-L$libdir'
14048       allow_undefined_flag_F77=unsupported
14049       always_export_symbols_F77=no
14050       enable_shared_with_static_runtimes_F77=yes
14051       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14052
14053       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14054         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14055         # If the export-symbols file already is a .def file (1st line
14056         # is EXPORTS), use it as is; otherwise, prepend...
14057         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14058           cp $export_symbols $output_objdir/$soname.def;
14059         else
14060           echo EXPORTS > $output_objdir/$soname.def;
14061           cat $export_symbols >> $output_objdir/$soname.def;
14062         fi~
14063         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
14064       else
14065         ld_shlibs=no
14066       fi
14067       ;;
14068
14069     netbsd*)
14070       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14071         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14072         wlarc=
14073       else
14074         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14075         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14076       fi
14077       ;;
14078
14079     solaris* | sysv5*)
14080       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14081         ld_shlibs_F77=no
14082         cat <<EOF 1>&2
14083
14084 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14085 *** create shared libraries on Solaris systems.  Therefore, libtool
14086 *** is disabling shared libraries support.  We urge you to upgrade GNU
14087 *** binutils to release 2.9.1 or newer.  Another option is to modify
14088 *** your PATH or compiler configuration so that the native linker is
14089 *** used, and then restart.
14090
14091 EOF
14092       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14093         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14094         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14095       else
14096         ld_shlibs_F77=no
14097       fi
14098       ;;
14099
14100     sunos4*)
14101       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14102       wlarc=
14103       hardcode_direct_F77=yes
14104       hardcode_shlibpath_var_F77=no
14105       ;;
14106
14107   linux*)
14108     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14109         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14110         archive_cmds_F77="$tmp_archive_cmds"
14111       supports_anon_versioning=no
14112       case `$LD -v 2>/dev/null` in
14113         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14114         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14115         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14116         *\ 2.11.*) ;; # other 2.11 versions
14117         *) supports_anon_versioning=yes ;;
14118       esac
14119       if test $supports_anon_versioning = yes; then
14120         archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14121 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14122 $echo "local: *; };" >> $output_objdir/$libname.ver~
14123         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14124       else
14125         archive_expsym_cmds_F77="$tmp_archive_cmds"
14126       fi
14127     else
14128       ld_shlibs_F77=no
14129     fi
14130     ;;
14131
14132     *)
14133       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14134         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14135         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14136       else
14137         ld_shlibs_F77=no
14138       fi
14139       ;;
14140     esac
14141
14142     if test "$ld_shlibs_F77" = yes; then
14143       runpath_var=LD_RUN_PATH
14144       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14145       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14146       # ancient GNU ld didn't support --whole-archive et. al.
14147       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14148         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14149       else
14150         whole_archive_flag_spec_F77=
14151       fi
14152     fi
14153   else
14154     # PORTME fill in a description of your system's linker (not GNU ld)
14155     case $host_os in
14156     aix3*)
14157       allow_undefined_flag_F77=unsupported
14158       always_export_symbols_F77=yes
14159       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'
14160       # Note: this linker hardcodes the directories in LIBPATH if there
14161       # are no directories specified by -L.
14162       hardcode_minus_L_F77=yes
14163       if test "$GCC" = yes && test -z "$link_static_flag"; then
14164         # Neither direct hardcoding nor static linking is supported with a
14165         # broken collect2.
14166         hardcode_direct_F77=unsupported
14167       fi
14168       ;;
14169
14170     aix4* | aix5*)
14171       if test "$host_cpu" = ia64; then
14172         # On IA64, the linker does run time linking by default, so we don't
14173         # have to do anything special.
14174         aix_use_runtimelinking=no
14175         exp_sym_flag='-Bexport'
14176         no_entry_flag=""
14177       else
14178         # If we're using GNU nm, then we don't want the "-C" option.
14179         # -C means demangle to AIX nm, but means don't demangle with GNU nm
14180         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14181           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'
14182         else
14183           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'
14184         fi
14185         aix_use_runtimelinking=no
14186
14187         # Test if we are trying to use run time linking or normal
14188         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14189         # need to do runtime linking.
14190         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14191           for ld_flag in $LDFLAGS; do
14192           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14193             aix_use_runtimelinking=yes
14194             break
14195           fi
14196           done
14197         esac
14198
14199         exp_sym_flag='-bexport'
14200         no_entry_flag='-bnoentry'
14201       fi
14202
14203       # When large executables or shared objects are built, AIX ld can
14204       # have problems creating the table of contents.  If linking a library
14205       # or program results in "error TOC overflow" add -mminimal-toc to
14206       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14207       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14208
14209       archive_cmds_F77=''
14210       hardcode_direct_F77=yes
14211       hardcode_libdir_separator_F77=':'
14212       link_all_deplibs_F77=yes
14213
14214       if test "$GCC" = yes; then
14215         case $host_os in aix4.012|aix4.012.*)
14216         # We only want to do this on AIX 4.2 and lower, the check
14217         # below for broken collect2 doesn't work under 4.3+
14218           collect2name=`${CC} -print-prog-name=collect2`
14219           if test -f "$collect2name" && \
14220            strings "$collect2name" | grep resolve_lib_name >/dev/null
14221           then
14222           # We have reworked collect2
14223           hardcode_direct_F77=yes
14224           else
14225           # We have old collect2
14226           hardcode_direct_F77=unsupported
14227           # It fails to find uninstalled libraries when the uninstalled
14228           # path is not listed in the libpath.  Setting hardcode_minus_L
14229           # to unsupported forces relinking
14230           hardcode_minus_L_F77=yes
14231           hardcode_libdir_flag_spec_F77='-L$libdir'
14232           hardcode_libdir_separator_F77=
14233           fi
14234         esac
14235         shared_flag='-shared'
14236       else
14237         # not using gcc
14238         if test "$host_cpu" = ia64; then
14239         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14240         # chokes on -Wl,-G. The following line is correct:
14241           shared_flag='-G'
14242         else
14243         if test "$aix_use_runtimelinking" = yes; then
14244             shared_flag='${wl}-G'
14245           else
14246             shared_flag='${wl}-bM:SRE'
14247         fi
14248         fi
14249       fi
14250
14251       # It seems that -bexpall does not export symbols beginning with
14252       # underscore (_), so it is better to generate a list of symbols to export.
14253       always_export_symbols_F77=yes
14254       if test "$aix_use_runtimelinking" = yes; then
14255         # Warning - without using the other runtime loading flags (-brtl),
14256         # -berok will link without error, but may produce a broken library.
14257         allow_undefined_flag_F77='-berok'
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         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"
14301        else
14302         if test "$host_cpu" = ia64; then
14303           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14304           allow_undefined_flag_F77="-z nodefs"
14305           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"
14306         else
14307          # Determine the default libpath from the value encoded in an empty executable.
14308          cat >conftest.$ac_ext <<_ACEOF
14309       program main
14310
14311       end
14312 _ACEOF
14313 rm -f conftest.$ac_objext conftest$ac_exeext
14314 if { (ac_try="$ac_link"
14315 case "(($ac_try" in
14316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14317   *) ac_try_echo=$ac_try;;
14318 esac
14319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14320   (eval "$ac_link") 2>conftest.er1
14321   ac_status=$?
14322   grep -v '^ *+' conftest.er1 >conftest.err
14323   rm -f conftest.er1
14324   cat conftest.err >&5
14325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14326   (exit $ac_status); } && {
14327          test -z "$ac_f77_werror_flag" ||
14328          test ! -s conftest.err
14329        } && test -s conftest$ac_exeext &&
14330        $as_test_x conftest$ac_exeext; then
14331
14332 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14333 }'`
14334 # Check for a 64-bit object if we didn't find anything.
14335 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; }
14336 }'`; fi
14337 else
14338   echo "$as_me: failed program was:" >&5
14339 sed 's/^/| /' conftest.$ac_ext >&5
14340
14341
14342 fi
14343
14344 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14345       conftest$ac_exeext conftest.$ac_ext
14346 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14347
14348          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14349           # Warning - without using the other run time loading flags,
14350           # -berok will link without error, but may produce a broken library.
14351           no_undefined_flag_F77=' ${wl}-bernotok'
14352           allow_undefined_flag_F77=' ${wl}-berok'
14353           # -bexpall does not export symbols beginning with underscore (_)
14354           always_export_symbols_F77=yes
14355           # Exported symbols can be pulled into shared objects from archives
14356           whole_archive_flag_spec_F77=' '
14357           archive_cmds_need_lc_F77=yes
14358           # This is similar to how AIX traditionally builds it's shared libraries.
14359           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'
14360         fi
14361       fi
14362       ;;
14363
14364     amigaos*)
14365       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)'
14366       hardcode_libdir_flag_spec_F77='-L$libdir'
14367       hardcode_minus_L_F77=yes
14368       # see comment about different semantics on the GNU ld section
14369       ld_shlibs_F77=no
14370       ;;
14371
14372     bsdi4*)
14373       export_dynamic_flag_spec_F77=-rdynamic
14374       ;;
14375
14376     cygwin* | mingw* | pw32*)
14377       # When not using gcc, we currently assume that we are using
14378       # Microsoft Visual C++.
14379       # hardcode_libdir_flag_spec is actually meaningless, as there is
14380       # no search path for DLLs.
14381       hardcode_libdir_flag_spec_F77=' '
14382       allow_undefined_flag_F77=unsupported
14383       # Tell ltmain to make .lib files, not .a files.
14384       libext=lib
14385       # Tell ltmain to make .dll files, not .so files.
14386       shrext_cmds=".dll"
14387       # FIXME: Setting linknames here is a bad hack.
14388       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14389       # The linker will automatically build a .lib file if we build a DLL.
14390       old_archive_From_new_cmds_F77='true'
14391       # FIXME: Should let the user specify the lib program.
14392       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14393       fix_srcfile_path='`cygpath -w "$srcfile"`'
14394       enable_shared_with_static_runtimes_F77=yes
14395       ;;
14396
14397     darwin* | rhapsody*)
14398     if test "$GXX" = yes ; then
14399       archive_cmds_need_lc_F77=no
14400       case "$host_os" in
14401       rhapsody* | darwin1.[012])
14402         allow_undefined_flag_F77='-undefined suppress'
14403         ;;
14404       *) # Darwin 1.3 on
14405       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14406         allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14407       else
14408         case ${MACOSX_DEPLOYMENT_TARGET} in
14409           10.[012])
14410             allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14411             ;;
14412           10.*)
14413             allow_undefined_flag_F77='-undefined dynamic_lookup'
14414             ;;
14415         esac
14416       fi
14417         ;;
14418       esac
14419         lt_int_apple_cc_single_mod=no
14420         output_verbose_link_cmd='echo'
14421         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
14422           lt_int_apple_cc_single_mod=yes
14423         fi
14424         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14425           archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14426         else
14427         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'
14428       fi
14429       module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14430       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14431         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14432           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}'
14433         else
14434           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}'
14435         fi
14436           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}'
14437       hardcode_direct_F77=no
14438       hardcode_automatic_F77=yes
14439       hardcode_shlibpath_var_F77=unsupported
14440       whole_archive_flag_spec_F77='-all_load $convenience'
14441       link_all_deplibs_F77=yes
14442     else
14443       ld_shlibs_F77=no
14444     fi
14445       ;;
14446
14447     dgux*)
14448       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14449       hardcode_libdir_flag_spec_F77='-L$libdir'
14450       hardcode_shlibpath_var_F77=no
14451       ;;
14452
14453     freebsd1*)
14454       ld_shlibs_F77=no
14455       ;;
14456
14457     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14458     # support.  Future versions do this automatically, but an explicit c++rt0.o
14459     # does not break anything, and helps significantly (at the cost of a little
14460     # extra space).
14461     freebsd2.2*)
14462       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14463       hardcode_libdir_flag_spec_F77='-R$libdir'
14464       hardcode_direct_F77=yes
14465       hardcode_shlibpath_var_F77=no
14466       ;;
14467
14468     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14469     freebsd2*)
14470       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14471       hardcode_direct_F77=yes
14472       hardcode_minus_L_F77=yes
14473       hardcode_shlibpath_var_F77=no
14474       ;;
14475
14476     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14477     freebsd* | kfreebsd*-gnu)
14478       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14479       hardcode_libdir_flag_spec_F77='-R$libdir'
14480       hardcode_direct_F77=yes
14481       hardcode_shlibpath_var_F77=no
14482       ;;
14483
14484     hpux9*)
14485       if test "$GCC" = yes; then
14486         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'
14487       else
14488         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'
14489       fi
14490       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14491       hardcode_libdir_separator_F77=:
14492       hardcode_direct_F77=yes
14493
14494       # hardcode_minus_L: Not really in the search PATH,
14495       # but as the default location of the library.
14496       hardcode_minus_L_F77=yes
14497       export_dynamic_flag_spec_F77='${wl}-E'
14498       ;;
14499
14500     hpux10* | hpux11*)
14501       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14502         case "$host_cpu" in
14503         hppa*64*|ia64*)
14504           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14505           ;;
14506         *)
14507           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14508           ;;
14509         esac
14510       else
14511         case "$host_cpu" in
14512         hppa*64*|ia64*)
14513           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14514           ;;
14515         *)
14516           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14517           ;;
14518         esac
14519       fi
14520       if test "$with_gnu_ld" = no; then
14521         case "$host_cpu" in
14522         hppa*64*)
14523           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14524           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14525           hardcode_libdir_separator_F77=:
14526           hardcode_direct_F77=no
14527           hardcode_shlibpath_var_F77=no
14528           ;;
14529         ia64*)
14530           hardcode_libdir_flag_spec_F77='-L$libdir'
14531           hardcode_direct_F77=no
14532           hardcode_shlibpath_var_F77=no
14533
14534           # hardcode_minus_L: Not really in the search PATH,
14535           # but as the default location of the library.
14536           hardcode_minus_L_F77=yes
14537           ;;
14538         *)
14539           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14540           hardcode_libdir_separator_F77=:
14541           hardcode_direct_F77=yes
14542           export_dynamic_flag_spec_F77='${wl}-E'
14543
14544           # hardcode_minus_L: Not really in the search PATH,
14545           # but as the default location of the library.
14546           hardcode_minus_L_F77=yes
14547           ;;
14548         esac
14549       fi
14550       ;;
14551
14552     irix5* | irix6* | nonstopux*)
14553       if test "$GCC" = yes; then
14554         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'
14555       else
14556         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'
14557         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14558       fi
14559       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14560       hardcode_libdir_separator_F77=:
14561       link_all_deplibs_F77=yes
14562       ;;
14563
14564     netbsd*)
14565       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14566         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14567       else
14568         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14569       fi
14570       hardcode_libdir_flag_spec_F77='-R$libdir'
14571       hardcode_direct_F77=yes
14572       hardcode_shlibpath_var_F77=no
14573       ;;
14574
14575     newsos6)
14576       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14577       hardcode_direct_F77=yes
14578       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14579       hardcode_libdir_separator_F77=:
14580       hardcode_shlibpath_var_F77=no
14581       ;;
14582
14583     openbsd*)
14584       hardcode_direct_F77=yes
14585       hardcode_shlibpath_var_F77=no
14586       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14587         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14588         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14589         export_dynamic_flag_spec_F77='${wl}-E'
14590       else
14591        case $host_os in
14592          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14593            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14594            hardcode_libdir_flag_spec_F77='-R$libdir'
14595            ;;
14596          *)
14597            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14598            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14599            ;;
14600        esac
14601       fi
14602       ;;
14603
14604     os2*)
14605       hardcode_libdir_flag_spec_F77='-L$libdir'
14606       hardcode_minus_L_F77=yes
14607       allow_undefined_flag_F77=unsupported
14608       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'
14609       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14610       ;;
14611
14612     osf3*)
14613       if test "$GCC" = yes; then
14614         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14615         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'
14616       else
14617         allow_undefined_flag_F77=' -expect_unresolved \*'
14618         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'
14619       fi
14620       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14621       hardcode_libdir_separator_F77=:
14622       ;;
14623
14624     osf4* | osf5*)      # as osf3* with the addition of -msym flag
14625       if test "$GCC" = yes; then
14626         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14627         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'
14628         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14629       else
14630         allow_undefined_flag_F77=' -expect_unresolved \*'
14631         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'
14632         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~
14633         $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'
14634
14635         # Both c and cxx compiler support -rpath directly
14636         hardcode_libdir_flag_spec_F77='-rpath $libdir'
14637       fi
14638       hardcode_libdir_separator_F77=:
14639       ;;
14640
14641     sco3.2v5*)
14642       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14643       hardcode_shlibpath_var_F77=no
14644       export_dynamic_flag_spec_F77='${wl}-Bexport'
14645       runpath_var=LD_RUN_PATH
14646       hardcode_runpath_var=yes
14647       ;;
14648
14649     solaris*)
14650       no_undefined_flag_F77=' -z text'
14651       if test "$GCC" = yes; then
14652         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14653         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14654           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14655       else
14656         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14657         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14658         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14659       fi
14660       hardcode_libdir_flag_spec_F77='-R$libdir'
14661       hardcode_shlibpath_var_F77=no
14662       case $host_os in
14663       solaris2.[0-5] | solaris2.[0-5].*) ;;
14664       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14665         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14666       esac
14667       link_all_deplibs_F77=yes
14668       ;;
14669
14670     sunos4*)
14671       if test "x$host_vendor" = xsequent; then
14672         # Use $CC to link under sequent, because it throws in some extra .o
14673         # files that make .init and .fini sections work.
14674         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14675       else
14676         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14677       fi
14678       hardcode_libdir_flag_spec_F77='-L$libdir'
14679       hardcode_direct_F77=yes
14680       hardcode_minus_L_F77=yes
14681       hardcode_shlibpath_var_F77=no
14682       ;;
14683
14684     sysv4)
14685       case $host_vendor in
14686         sni)
14687           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14688           hardcode_direct_F77=yes # is this really true???
14689         ;;
14690         siemens)
14691           ## LD is ld it makes a PLAMLIB
14692           ## CC just makes a GrossModule.
14693           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14694           reload_cmds_F77='$CC -r -o $output$reload_objs'
14695           hardcode_direct_F77=no
14696         ;;
14697         motorola)
14698           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14699           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14700         ;;
14701       esac
14702       runpath_var='LD_RUN_PATH'
14703       hardcode_shlibpath_var_F77=no
14704       ;;
14705
14706     sysv4.3*)
14707       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14708       hardcode_shlibpath_var_F77=no
14709       export_dynamic_flag_spec_F77='-Bexport'
14710       ;;
14711
14712     sysv4*MP*)
14713       if test -d /usr/nec; then
14714         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14715         hardcode_shlibpath_var_F77=no
14716         runpath_var=LD_RUN_PATH
14717         hardcode_runpath_var=yes
14718         ld_shlibs_F77=yes
14719       fi
14720       ;;
14721
14722     sysv4.2uw2*)
14723       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14724       hardcode_direct_F77=yes
14725       hardcode_minus_L_F77=no
14726       hardcode_shlibpath_var_F77=no
14727       hardcode_runpath_var=yes
14728       runpath_var=LD_RUN_PATH
14729       ;;
14730
14731    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
14732       no_undefined_flag_F77='${wl}-z ${wl}text'
14733       if test "$GCC" = yes; then
14734         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14735       else
14736         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14737       fi
14738       runpath_var='LD_RUN_PATH'
14739       hardcode_shlibpath_var_F77=no
14740       ;;
14741
14742     sysv5*)
14743       no_undefined_flag_F77=' -z text'
14744       # $CC -shared without GNU ld will not create a library from C++
14745       # object files and a static libstdc++, better avoid it by now
14746       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14747       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14748                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14749       hardcode_libdir_flag_spec_F77=
14750       hardcode_shlibpath_var_F77=no
14751       runpath_var='LD_RUN_PATH'
14752       ;;
14753
14754     uts4*)
14755       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14756       hardcode_libdir_flag_spec_F77='-L$libdir'
14757       hardcode_shlibpath_var_F77=no
14758       ;;
14759
14760     *)
14761       ld_shlibs_F77=no
14762       ;;
14763     esac
14764   fi
14765
14766 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14767 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
14768 test "$ld_shlibs_F77" = no && can_build_shared=no
14769
14770 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14771 if test "$GCC" = yes; then
14772   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14773 fi
14774
14775 #
14776 # Do we need to explicitly link libc?
14777 #
14778 case "x$archive_cmds_need_lc_F77" in
14779 x|xyes)
14780   # Assume -lc should be added
14781   archive_cmds_need_lc_F77=yes
14782
14783   if test "$enable_shared" = yes && test "$GCC" = yes; then
14784     case $archive_cmds_F77 in
14785     *'~'*)
14786       # FIXME: we may have to deal with multi-command sequences.
14787       ;;
14788     '$CC '*)
14789       # Test whether the compiler implicitly links with -lc since on some
14790       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14791       # to ld, don't add -lc before -lgcc.
14792       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14793 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14794       $rm conftest*
14795       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14796
14797       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14798   (eval $ac_compile) 2>&5
14799   ac_status=$?
14800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14801   (exit $ac_status); } 2>conftest.err; then
14802         soname=conftest
14803         lib=conftest
14804         libobjs=conftest.$ac_objext
14805         deplibs=
14806         wl=$lt_prog_compiler_wl_F77
14807         compiler_flags=-v
14808         linker_flags=-v
14809         verstring=
14810         output_objdir=.
14811         libname=conftest
14812         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14813         allow_undefined_flag_F77=
14814         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14815   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14816   ac_status=$?
14817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14818   (exit $ac_status); }
14819         then
14820           archive_cmds_need_lc_F77=no
14821         else
14822           archive_cmds_need_lc_F77=yes
14823         fi
14824         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14825       else
14826         cat conftest.err 1>&5
14827       fi
14828       $rm conftest*
14829       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14830 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
14831       ;;
14832     esac
14833   fi
14834   ;;
14835 esac
14836
14837 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14838 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14839 library_names_spec=
14840 libname_spec='lib$name'
14841 soname_spec=
14842 shrext_cmds=".so"
14843 postinstall_cmds=
14844 postuninstall_cmds=
14845 finish_cmds=
14846 finish_eval=
14847 shlibpath_var=
14848 shlibpath_overrides_runpath=unknown
14849 version_type=none
14850 dynamic_linker="$host_os ld.so"
14851 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14852 if test "$GCC" = yes; then
14853   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14854   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14855     # if the path contains ";" then we assume it to be the separator
14856     # otherwise default to the standard path separator (i.e. ":") - it is
14857     # assumed that no part of a normal pathname contains ";" but that should
14858     # okay in the real world where ";" in dirpaths is itself problematic.
14859     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14860   else
14861     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14862   fi
14863 else
14864   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14865 fi
14866 need_lib_prefix=unknown
14867 hardcode_into_libs=no
14868
14869 # when you set need_version to no, make sure it does not cause -set_version
14870 # flags to be left without arguments
14871 need_version=unknown
14872
14873 case $host_os in
14874 aix3*)
14875   version_type=linux
14876   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14877   shlibpath_var=LIBPATH
14878
14879   # AIX 3 has no versioning support, so we append a major version to the name.
14880   soname_spec='${libname}${release}${shared_ext}$major'
14881   ;;
14882
14883 aix4* | aix5*)
14884   version_type=linux
14885   need_lib_prefix=no
14886   need_version=no
14887   hardcode_into_libs=yes
14888   if test "$host_cpu" = ia64; then
14889     # AIX 5 supports IA64
14890     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14891     shlibpath_var=LD_LIBRARY_PATH
14892   else
14893     # With GCC up to 2.95.x, collect2 would create an import file
14894     # for dependence libraries.  The import file would start with
14895     # the line `#! .'.  This would cause the generated library to
14896     # depend on `.', always an invalid library.  This was fixed in
14897     # development snapshots of GCC prior to 3.0.
14898     case $host_os in
14899       aix4 | aix4.[01] | aix4.[01].*)
14900       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14901            echo ' yes '
14902            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14903         :
14904       else
14905         can_build_shared=no
14906       fi
14907       ;;
14908     esac
14909     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14910     # soname into executable. Probably we can add versioning support to
14911     # collect2, so additional links can be useful in future.
14912     if test "$aix_use_runtimelinking" = yes; then
14913       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14914       # instead of lib<name>.a to let people know that these are not
14915       # typical AIX shared libraries.
14916       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14917     else
14918       # We preserve .a as extension for shared libraries through AIX4.2
14919       # and later when we are not doing run time linking.
14920       library_names_spec='${libname}${release}.a $libname.a'
14921       soname_spec='${libname}${release}${shared_ext}$major'
14922     fi
14923     shlibpath_var=LIBPATH
14924   fi
14925   ;;
14926
14927 amigaos*)
14928   library_names_spec='$libname.ixlibrary $libname.a'
14929   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14930   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'
14931   ;;
14932
14933 beos*)
14934   library_names_spec='${libname}${shared_ext}'
14935   dynamic_linker="$host_os ld.so"
14936   shlibpath_var=LIBRARY_PATH
14937   ;;
14938
14939 bsdi4*)
14940   version_type=linux
14941   need_version=no
14942   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14943   soname_spec='${libname}${release}${shared_ext}$major'
14944   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14945   shlibpath_var=LD_LIBRARY_PATH
14946   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14947   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14948   # the default ld.so.conf also contains /usr/contrib/lib and
14949   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14950   # libtool to hard-code these into programs
14951   ;;
14952
14953 cygwin* | mingw* | pw32*)
14954   version_type=windows
14955   shrext_cmds=".dll"
14956   need_version=no
14957   need_lib_prefix=no
14958
14959   case $GCC,$host_os in
14960   yes,cygwin* | yes,mingw* | yes,pw32*)
14961     library_names_spec='$libname.dll.a'
14962     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14963     postinstall_cmds='base_file=`basename \${file}`~
14964       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14965       dldir=$destdir/`dirname \$dlpath`~
14966       test -d \$dldir || mkdir -p \$dldir~
14967       $install_prog $dir/$dlname \$dldir/$dlname'
14968     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14969       dlpath=$dir/\$dldll~
14970        $rm \$dlpath'
14971     shlibpath_overrides_runpath=yes
14972
14973     case $host_os in
14974     cygwin*)
14975       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14976       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14977       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14978       ;;
14979     mingw*)
14980       # MinGW DLLs use traditional 'lib' prefix
14981       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14982       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14983       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14984         # It is most probably a Windows format PATH printed by
14985         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14986         # path with ; separators, and with drive letters. We can handle the
14987         # drive letters (cygwin fileutils understands them), so leave them,
14988         # especially as we might pass files found there to a mingw objdump,
14989         # which wouldn't understand a cygwinified path. Ahh.
14990         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14991       else
14992         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14993       fi
14994       ;;
14995     pw32*)
14996       # pw32 DLLs use 'pw' prefix rather than 'lib'
14997       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14998       ;;
14999     esac
15000     ;;
15001
15002   *)
15003     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15004     ;;
15005   esac
15006   dynamic_linker='Win32 ld.exe'
15007   # FIXME: first we should search . and the directory the executable is in
15008   shlibpath_var=PATH
15009   ;;
15010
15011 darwin* | rhapsody*)
15012   dynamic_linker="$host_os dyld"
15013   version_type=darwin
15014   need_lib_prefix=no
15015   need_version=no
15016   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15017   soname_spec='${libname}${release}${major}$shared_ext'
15018   shlibpath_overrides_runpath=yes
15019   shlibpath_var=DYLD_LIBRARY_PATH
15020   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
15021   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15022   if test "$GCC" = yes; then
15023     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"`
15024   else
15025     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15026   fi
15027   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15028   ;;
15029
15030 dgux*)
15031   version_type=linux
15032   need_lib_prefix=no
15033   need_version=no
15034   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15035   soname_spec='${libname}${release}${shared_ext}$major'
15036   shlibpath_var=LD_LIBRARY_PATH
15037   ;;
15038
15039 freebsd1*)
15040   dynamic_linker=no
15041   ;;
15042
15043 kfreebsd*-gnu)
15044   version_type=linux
15045   need_lib_prefix=no
15046   need_version=no
15047   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15048   soname_spec='${libname}${release}${shared_ext}$major'
15049   shlibpath_var=LD_LIBRARY_PATH
15050   shlibpath_overrides_runpath=no
15051   hardcode_into_libs=yes
15052   dynamic_linker='GNU ld.so'
15053   ;;
15054
15055 freebsd*)
15056   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
15057   version_type=freebsd-$objformat
15058   case $version_type in
15059     freebsd-elf*)
15060       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15061       need_version=no
15062       need_lib_prefix=no
15063       ;;
15064     freebsd-*)
15065       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15066       need_version=yes
15067       ;;
15068   esac
15069   shlibpath_var=LD_LIBRARY_PATH
15070   case $host_os in
15071   freebsd2*)
15072     shlibpath_overrides_runpath=yes
15073     ;;
15074   freebsd3.01* | freebsdelf3.01*)
15075     shlibpath_overrides_runpath=yes
15076     hardcode_into_libs=yes
15077     ;;
15078   *) # from 3.2 on
15079     shlibpath_overrides_runpath=no
15080     hardcode_into_libs=yes
15081     ;;
15082   esac
15083   ;;
15084
15085 gnu*)
15086   version_type=linux
15087   need_lib_prefix=no
15088   need_version=no
15089   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15090   soname_spec='${libname}${release}${shared_ext}$major'
15091   shlibpath_var=LD_LIBRARY_PATH
15092   hardcode_into_libs=yes
15093   ;;
15094
15095 hpux9* | hpux10* | hpux11*)
15096   # Give a soname corresponding to the major version so that dld.sl refuses to
15097   # link against other versions.
15098   version_type=sunos
15099   need_lib_prefix=no
15100   need_version=no
15101   case "$host_cpu" in
15102   ia64*)
15103     shrext_cmds='.so'
15104     hardcode_into_libs=yes
15105     dynamic_linker="$host_os dld.so"
15106     shlibpath_var=LD_LIBRARY_PATH
15107     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15108     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15109     soname_spec='${libname}${release}${shared_ext}$major'
15110     if test "X$HPUX_IA64_MODE" = X32; then
15111       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15112     else
15113       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15114     fi
15115     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15116     ;;
15117    hppa*64*)
15118      shrext_cmds='.sl'
15119      hardcode_into_libs=yes
15120      dynamic_linker="$host_os dld.sl"
15121      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15122      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15123      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15124      soname_spec='${libname}${release}${shared_ext}$major'
15125      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15126      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15127      ;;
15128    *)
15129     shrext_cmds='.sl'
15130     dynamic_linker="$host_os dld.sl"
15131     shlibpath_var=SHLIB_PATH
15132     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15133     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15134     soname_spec='${libname}${release}${shared_ext}$major'
15135     ;;
15136   esac
15137   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15138   postinstall_cmds='chmod 555 $lib'
15139   ;;
15140
15141 irix5* | irix6* | nonstopux*)
15142   case $host_os in
15143     nonstopux*) version_type=nonstopux ;;
15144     *)
15145         if test "$lt_cv_prog_gnu_ld" = yes; then
15146                 version_type=linux
15147         else
15148                 version_type=irix
15149         fi ;;
15150   esac
15151   need_lib_prefix=no
15152   need_version=no
15153   soname_spec='${libname}${release}${shared_ext}$major'
15154   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15155   case $host_os in
15156   irix5* | nonstopux*)
15157     libsuff= shlibsuff=
15158     ;;
15159   *)
15160     case $LD in # libtool.m4 will add one of these switches to LD
15161     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15162       libsuff= shlibsuff= libmagic=32-bit;;
15163     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15164       libsuff=32 shlibsuff=N32 libmagic=N32;;
15165     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15166       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15167     *) libsuff= shlibsuff= libmagic=never-match;;
15168     esac
15169     ;;
15170   esac
15171   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15172   shlibpath_overrides_runpath=no
15173   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15174   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15175   hardcode_into_libs=yes
15176   ;;
15177
15178 # No shared lib support for Linux oldld, aout, or coff.
15179 linux*oldld* | linux*aout* | linux*coff*)
15180   dynamic_linker=no
15181   ;;
15182
15183 # This must be Linux ELF.
15184 linux*)
15185   version_type=linux
15186   need_lib_prefix=no
15187   need_version=no
15188   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15189   soname_spec='${libname}${release}${shared_ext}$major'
15190   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15191   shlibpath_var=LD_LIBRARY_PATH
15192   shlibpath_overrides_runpath=no
15193   # This implies no fast_install, which is unacceptable.
15194   # Some rework will be needed to allow for fast_install
15195   # before this can be enabled.
15196   hardcode_into_libs=yes
15197
15198   # find out which ABI we are using
15199   libsuff=
15200   case "$host_cpu" in
15201   x86_64*|s390x*|powerpc64*)
15202     echo '#line 15202 "configure"' > conftest.$ac_ext
15203     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15204   (eval $ac_compile) 2>&5
15205   ac_status=$?
15206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15207   (exit $ac_status); }; then
15208       case `/usr/bin/file conftest.$ac_objext` in
15209       *64-bit*)
15210         libsuff=64
15211         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
15212         ;;
15213       esac
15214     fi
15215     rm -rf conftest*
15216     ;;
15217   esac
15218
15219   # Append ld.so.conf contents to the search path
15220   if test -f /etc/ld.so.conf; then
15221     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
15222     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
15223   fi
15224
15225   # We used to test for /lib/ld.so.1 and disable shared libraries on
15226   # powerpc, because MkLinux only supported shared libraries with the
15227   # GNU dynamic linker.  Since this was broken with cross compilers,
15228   # most powerpc-linux boxes support dynamic linking these days and
15229   # people can always --disable-shared, the test was removed, and we
15230   # assume the GNU/Linux dynamic linker is in use.
15231   dynamic_linker='GNU/Linux ld.so'
15232   ;;
15233
15234 knetbsd*-gnu)
15235   version_type=linux
15236   need_lib_prefix=no
15237   need_version=no
15238   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15239   soname_spec='${libname}${release}${shared_ext}$major'
15240   shlibpath_var=LD_LIBRARY_PATH
15241   shlibpath_overrides_runpath=no
15242   hardcode_into_libs=yes
15243   dynamic_linker='GNU ld.so'
15244   ;;
15245
15246 netbsd*)
15247   version_type=sunos
15248   need_lib_prefix=no
15249   need_version=no
15250   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15251     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15252     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15253     dynamic_linker='NetBSD (a.out) ld.so'
15254   else
15255     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15256     soname_spec='${libname}${release}${shared_ext}$major'
15257     dynamic_linker='NetBSD ld.elf_so'
15258   fi
15259   shlibpath_var=LD_LIBRARY_PATH
15260   shlibpath_overrides_runpath=yes
15261   hardcode_into_libs=yes
15262   ;;
15263
15264 newsos6)
15265   version_type=linux
15266   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15267   shlibpath_var=LD_LIBRARY_PATH
15268   shlibpath_overrides_runpath=yes
15269   ;;
15270
15271 nto-qnx*)
15272   version_type=linux
15273   need_lib_prefix=no
15274   need_version=no
15275   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15276   soname_spec='${libname}${release}${shared_ext}$major'
15277   shlibpath_var=LD_LIBRARY_PATH
15278   shlibpath_overrides_runpath=yes
15279   ;;
15280
15281 openbsd*)
15282   version_type=sunos
15283   need_lib_prefix=no
15284   need_version=yes
15285   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15286   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15287   shlibpath_var=LD_LIBRARY_PATH
15288   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15289     case $host_os in
15290       openbsd2.[89] | openbsd2.[89].*)
15291         shlibpath_overrides_runpath=no
15292         ;;
15293       *)
15294         shlibpath_overrides_runpath=yes
15295         ;;
15296       esac
15297   else
15298     shlibpath_overrides_runpath=yes
15299   fi
15300   ;;
15301
15302 os2*)
15303   libname_spec='$name'
15304   shrext_cmds=".dll"
15305   need_lib_prefix=no
15306   library_names_spec='$libname${shared_ext} $libname.a'
15307   dynamic_linker='OS/2 ld.exe'
15308   shlibpath_var=LIBPATH
15309   ;;
15310
15311 osf3* | osf4* | osf5*)
15312   version_type=osf
15313   need_lib_prefix=no
15314   need_version=no
15315   soname_spec='${libname}${release}${shared_ext}$major'
15316   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15317   shlibpath_var=LD_LIBRARY_PATH
15318   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15319   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15320   ;;
15321
15322 sco3.2v5*)
15323   version_type=osf
15324   soname_spec='${libname}${release}${shared_ext}$major'
15325   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15326   shlibpath_var=LD_LIBRARY_PATH
15327   ;;
15328
15329 solaris*)
15330   version_type=linux
15331   need_lib_prefix=no
15332   need_version=no
15333   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15334   soname_spec='${libname}${release}${shared_ext}$major'
15335   shlibpath_var=LD_LIBRARY_PATH
15336   shlibpath_overrides_runpath=yes
15337   hardcode_into_libs=yes
15338   # ldd complains unless libraries are executable
15339   postinstall_cmds='chmod +x $lib'
15340   ;;
15341
15342 sunos4*)
15343   version_type=sunos
15344   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15345   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15346   shlibpath_var=LD_LIBRARY_PATH
15347   shlibpath_overrides_runpath=yes
15348   if test "$with_gnu_ld" = yes; then
15349     need_lib_prefix=no
15350   fi
15351   need_version=yes
15352   ;;
15353
15354 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15355   version_type=linux
15356   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15357   soname_spec='${libname}${release}${shared_ext}$major'
15358   shlibpath_var=LD_LIBRARY_PATH
15359   case $host_vendor in
15360     sni)
15361       shlibpath_overrides_runpath=no
15362       need_lib_prefix=no
15363       export_dynamic_flag_spec='${wl}-Blargedynsym'
15364       runpath_var=LD_RUN_PATH
15365       ;;
15366     siemens)
15367       need_lib_prefix=no
15368       ;;
15369     motorola)
15370       need_lib_prefix=no
15371       need_version=no
15372       shlibpath_overrides_runpath=no
15373       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15374       ;;
15375   esac
15376   ;;
15377
15378 sysv4*MP*)
15379   if test -d /usr/nec ;then
15380     version_type=linux
15381     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15382     soname_spec='$libname${shared_ext}.$major'
15383     shlibpath_var=LD_LIBRARY_PATH
15384   fi
15385   ;;
15386
15387 uts4*)
15388   version_type=linux
15389   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15390   soname_spec='${libname}${release}${shared_ext}$major'
15391   shlibpath_var=LD_LIBRARY_PATH
15392   ;;
15393
15394 *)
15395   dynamic_linker=no
15396   ;;
15397 esac
15398 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15399 echo "${ECHO_T}$dynamic_linker" >&6; }
15400 test "$dynamic_linker" = no && can_build_shared=no
15401
15402 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15403 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15404 hardcode_action_F77=
15405 if test -n "$hardcode_libdir_flag_spec_F77" || \
15406    test -n "$runpath_var F77" || \
15407    test "X$hardcode_automatic_F77"="Xyes" ; then
15408
15409   # We can hardcode non-existant directories.
15410   if test "$hardcode_direct_F77" != no &&
15411      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15412      # have to relink, otherwise we might link with an installed library
15413      # when we should be linking with a yet-to-be-installed one
15414      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15415      test "$hardcode_minus_L_F77" != no; then
15416     # Linking always hardcodes the temporary library directory.
15417     hardcode_action_F77=relink
15418   else
15419     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15420     hardcode_action_F77=immediate
15421   fi
15422 else
15423   # We cannot hardcode anything, or else we can only hardcode existing
15424   # directories.
15425   hardcode_action_F77=unsupported
15426 fi
15427 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15428 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15429
15430 if test "$hardcode_action_F77" = relink; then
15431   # Fast installation is not supported
15432   enable_fast_install=no
15433 elif test "$shlibpath_overrides_runpath" = yes ||
15434      test "$enable_shared" = no; then
15435   # Fast installation is not necessary
15436   enable_fast_install=needless
15437 fi
15438
15439 striplib=
15440 old_striplib=
15441 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15442 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
15443 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15444   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15445   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15446   { echo "$as_me:$LINENO: result: yes" >&5
15447 echo "${ECHO_T}yes" >&6; }
15448 else
15449 # FIXME - insert some real tests, host_os isn't really good enough
15450   case $host_os in
15451    darwin*)
15452        if test -n "$STRIP" ; then
15453          striplib="$STRIP -x"
15454          { echo "$as_me:$LINENO: result: yes" >&5
15455 echo "${ECHO_T}yes" >&6; }
15456        else
15457   { echo "$as_me:$LINENO: result: no" >&5
15458 echo "${ECHO_T}no" >&6; }
15459 fi
15460        ;;
15461    *)
15462   { echo "$as_me:$LINENO: result: no" >&5
15463 echo "${ECHO_T}no" >&6; }
15464     ;;
15465   esac
15466 fi
15467
15468
15469
15470 # The else clause should only fire when bootstrapping the
15471 # libtool distribution, otherwise you forgot to ship ltmain.sh
15472 # with your package, and you will get complaints that there are
15473 # no rules to generate ltmain.sh.
15474 if test -f "$ltmain"; then
15475   # See if we are running on zsh, and set the options which allow our commands through
15476   # without removal of \ escapes.
15477   if test -n "${ZSH_VERSION+set}" ; then
15478     setopt NO_GLOB_SUBST
15479   fi
15480   # Now quote all the things that may contain metacharacters while being
15481   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15482   # variables and quote the copies for generation of the libtool script.
15483   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15484     SED SHELL STRIP \
15485     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15486     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15487     deplibs_check_method reload_flag reload_cmds need_locks \
15488     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15489     lt_cv_sys_global_symbol_to_c_name_address \
15490     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15491     old_postinstall_cmds old_postuninstall_cmds \
15492     compiler_F77 \
15493     CC_F77 \
15494     LD_F77 \
15495     lt_prog_compiler_wl_F77 \
15496     lt_prog_compiler_pic_F77 \
15497     lt_prog_compiler_static_F77 \
15498     lt_prog_compiler_no_builtin_flag_F77 \
15499     export_dynamic_flag_spec_F77 \
15500     thread_safe_flag_spec_F77 \
15501     whole_archive_flag_spec_F77 \
15502     enable_shared_with_static_runtimes_F77 \
15503     old_archive_cmds_F77 \
15504     old_archive_from_new_cmds_F77 \
15505     predep_objects_F77 \
15506     postdep_objects_F77 \
15507     predeps_F77 \
15508     postdeps_F77 \
15509     compiler_lib_search_path_F77 \
15510     archive_cmds_F77 \
15511     archive_expsym_cmds_F77 \
15512     postinstall_cmds_F77 \
15513     postuninstall_cmds_F77 \
15514     old_archive_from_expsyms_cmds_F77 \
15515     allow_undefined_flag_F77 \
15516     no_undefined_flag_F77 \
15517     export_symbols_cmds_F77 \
15518     hardcode_libdir_flag_spec_F77 \
15519     hardcode_libdir_flag_spec_ld_F77 \
15520     hardcode_libdir_separator_F77 \
15521     hardcode_automatic_F77 \
15522     module_cmds_F77 \
15523     module_expsym_cmds_F77 \
15524     lt_cv_prog_compiler_c_o_F77 \
15525     exclude_expsyms_F77 \
15526     include_expsyms_F77; do
15527
15528     case $var in
15529     old_archive_cmds_F77 | \
15530     old_archive_from_new_cmds_F77 | \
15531     archive_cmds_F77 | \
15532     archive_expsym_cmds_F77 | \
15533     module_cmds_F77 | \
15534     module_expsym_cmds_F77 | \
15535     old_archive_from_expsyms_cmds_F77 | \
15536     export_symbols_cmds_F77 | \
15537     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15538     postinstall_cmds | postuninstall_cmds | \
15539     old_postinstall_cmds | old_postuninstall_cmds | \
15540     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15541       # Double-quote double-evaled strings.
15542       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15543       ;;
15544     *)
15545       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15546       ;;
15547     esac
15548   done
15549
15550   case $lt_echo in
15551   *'\$0 --fallback-echo"')
15552     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15553     ;;
15554   esac
15555
15556 cfgfile="$ofile"
15557
15558   cat <<__EOF__ >> "$cfgfile"
15559 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15560
15561 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15562
15563 # Shell to use when invoking shell scripts.
15564 SHELL=$lt_SHELL
15565
15566 # Whether or not to build shared libraries.
15567 build_libtool_libs=$enable_shared
15568
15569 # Whether or not to build static libraries.
15570 build_old_libs=$enable_static
15571
15572 # Whether or not to add -lc for building shared libraries.
15573 build_libtool_need_lc=$archive_cmds_need_lc_F77
15574
15575 # Whether or not to disallow shared libs when runtime libs are static
15576 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15577
15578 # Whether or not to optimize for fast installation.
15579 fast_install=$enable_fast_install
15580
15581 # The host system.
15582 host_alias=$host_alias
15583 host=$host
15584
15585 # An echo program that does not interpret backslashes.
15586 echo=$lt_echo
15587
15588 # The archiver.
15589 AR=$lt_AR
15590 AR_FLAGS=$lt_AR_FLAGS
15591
15592 # A C compiler.
15593 LTCC=$lt_LTCC
15594
15595 # A language-specific compiler.
15596 CC=$lt_compiler_F77
15597
15598 # Is the compiler the GNU C compiler?
15599 with_gcc=$GCC_F77
15600
15601 # An ERE matcher.
15602 EGREP=$lt_EGREP
15603
15604 # The linker used to build libraries.
15605 LD=$lt_LD_F77
15606
15607 # Whether we need hard or soft links.
15608 LN_S=$lt_LN_S
15609
15610 # A BSD-compatible nm program.
15611 NM=$lt_NM
15612
15613 # A symbol stripping program
15614 STRIP=$lt_STRIP
15615
15616 # Used to examine libraries when file_magic_cmd begins "file"
15617 MAGIC_CMD=$MAGIC_CMD
15618
15619 # Used on cygwin: DLL creation program.
15620 DLLTOOL="$DLLTOOL"
15621
15622 # Used on cygwin: object dumper.
15623 OBJDUMP="$OBJDUMP"
15624
15625 # Used on cygwin: assembler.
15626 AS="$AS"
15627
15628 # The name of the directory that contains temporary libtool files.
15629 objdir=$objdir
15630
15631 # How to create reloadable object files.
15632 reload_flag=$lt_reload_flag
15633 reload_cmds=$lt_reload_cmds
15634
15635 # How to pass a linker flag through the compiler.
15636 wl=$lt_lt_prog_compiler_wl_F77
15637
15638 # Object file suffix (normally "o").
15639 objext="$ac_objext"
15640
15641 # Old archive suffix (normally "a").
15642 libext="$libext"
15643
15644 # Shared library suffix (normally ".so").
15645 shrext_cmds='$shrext_cmds'
15646
15647 # Executable file suffix (normally "").
15648 exeext="$exeext"
15649
15650 # Additional compiler flags for building library objects.
15651 pic_flag=$lt_lt_prog_compiler_pic_F77
15652 pic_mode=$pic_mode
15653
15654 # What is the maximum length of a command?
15655 max_cmd_len=$lt_cv_sys_max_cmd_len
15656
15657 # Does compiler simultaneously support -c and -o options?
15658 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15659
15660 # Must we lock files when doing compilation ?
15661 need_locks=$lt_need_locks
15662
15663 # Do we need the lib prefix for modules?
15664 need_lib_prefix=$need_lib_prefix
15665
15666 # Do we need a version for libraries?
15667 need_version=$need_version
15668
15669 # Whether dlopen is supported.
15670 dlopen_support=$enable_dlopen
15671
15672 # Whether dlopen of programs is supported.
15673 dlopen_self=$enable_dlopen_self
15674
15675 # Whether dlopen of statically linked programs is supported.
15676 dlopen_self_static=$enable_dlopen_self_static
15677
15678 # Compiler flag to prevent dynamic linking.
15679 link_static_flag=$lt_lt_prog_compiler_static_F77
15680
15681 # Compiler flag to turn off builtin functions.
15682 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15683
15684 # Compiler flag to allow reflexive dlopens.
15685 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15686
15687 # Compiler flag to generate shared objects directly from archives.
15688 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15689
15690 # Compiler flag to generate thread-safe objects.
15691 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15692
15693 # Library versioning type.
15694 version_type=$version_type
15695
15696 # Format of library name prefix.
15697 libname_spec=$lt_libname_spec
15698
15699 # List of archive names.  First name is the real one, the rest are links.
15700 # The last name is the one that the linker finds with -lNAME.
15701 library_names_spec=$lt_library_names_spec
15702
15703 # The coded name of the library, if different from the real name.
15704 soname_spec=$lt_soname_spec
15705
15706 # Commands used to build and install an old-style archive.
15707 RANLIB=$lt_RANLIB
15708 old_archive_cmds=$lt_old_archive_cmds_F77
15709 old_postinstall_cmds=$lt_old_postinstall_cmds
15710 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15711
15712 # Create an old-style archive from a shared archive.
15713 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15714
15715 # Create a temporary old-style archive to link instead of a shared archive.
15716 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15717
15718 # Commands used to build and install a shared archive.
15719 archive_cmds=$lt_archive_cmds_F77
15720 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15721 postinstall_cmds=$lt_postinstall_cmds
15722 postuninstall_cmds=$lt_postuninstall_cmds
15723
15724 # Commands used to build a loadable module (assumed same as above if empty)
15725 module_cmds=$lt_module_cmds_F77
15726 module_expsym_cmds=$lt_module_expsym_cmds_F77
15727
15728 # Commands to strip libraries.
15729 old_striplib=$lt_old_striplib
15730 striplib=$lt_striplib
15731
15732 # Dependencies to place before the objects being linked to create a
15733 # shared library.
15734 predep_objects=$lt_predep_objects_F77
15735
15736 # Dependencies to place after the objects being linked to create a
15737 # shared library.
15738 postdep_objects=$lt_postdep_objects_F77
15739
15740 # Dependencies to place before the objects being linked to create a
15741 # shared library.
15742 predeps=$lt_predeps_F77
15743
15744 # Dependencies to place after the objects being linked to create a
15745 # shared library.
15746 postdeps=$lt_postdeps_F77
15747
15748 # The library search path used internally by the compiler when linking
15749 # a shared library.
15750 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15751
15752 # Method to check whether dependent libraries are shared objects.
15753 deplibs_check_method=$lt_deplibs_check_method
15754
15755 # Command to use when deplibs_check_method == file_magic.
15756 file_magic_cmd=$lt_file_magic_cmd
15757
15758 # Flag that allows shared libraries with undefined symbols to be built.
15759 allow_undefined_flag=$lt_allow_undefined_flag_F77
15760
15761 # Flag that forces no undefined symbols.
15762 no_undefined_flag=$lt_no_undefined_flag_F77
15763
15764 # Commands used to finish a libtool library installation in a directory.
15765 finish_cmds=$lt_finish_cmds
15766
15767 # Same as above, but a single script fragment to be evaled but not shown.
15768 finish_eval=$lt_finish_eval
15769
15770 # Take the output of nm and produce a listing of raw symbols and C names.
15771 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15772
15773 # Transform the output of nm in a proper C declaration
15774 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15775
15776 # Transform the output of nm in a C name address pair
15777 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15778
15779 # This is the shared library runtime path variable.
15780 runpath_var=$runpath_var
15781
15782 # This is the shared library path variable.
15783 shlibpath_var=$shlibpath_var
15784
15785 # Is shlibpath searched before the hard-coded library search path?
15786 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15787
15788 # How to hardcode a shared library path into an executable.
15789 hardcode_action=$hardcode_action_F77
15790
15791 # Whether we should hardcode library paths into libraries.
15792 hardcode_into_libs=$hardcode_into_libs
15793
15794 # Flag to hardcode \$libdir into a binary during linking.
15795 # This must work even if \$libdir does not exist.
15796 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15797
15798 # If ld is used when linking, flag to hardcode \$libdir into
15799 # a binary during linking. This must work even if \$libdir does
15800 # not exist.
15801 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15802
15803 # Whether we need a single -rpath flag with a separated argument.
15804 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15805
15806 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15807 # resulting binary.
15808 hardcode_direct=$hardcode_direct_F77
15809
15810 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15811 # resulting binary.
15812 hardcode_minus_L=$hardcode_minus_L_F77
15813
15814 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15815 # the resulting binary.
15816 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15817
15818 # Set to yes if building a shared library automatically hardcodes DIR into the library
15819 # and all subsequent libraries and executables linked against it.
15820 hardcode_automatic=$hardcode_automatic_F77
15821
15822 # Variables whose values should be saved in libtool wrapper scripts and
15823 # restored at relink time.
15824 variables_saved_for_relink="$variables_saved_for_relink"
15825
15826 # Whether libtool must link a program against all its dependency libraries.
15827 link_all_deplibs=$link_all_deplibs_F77
15828
15829 # Compile-time system search path for libraries
15830 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15831
15832 # Run-time system search path for libraries
15833 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15834
15835 # Fix the shell variable \$srcfile for the compiler.
15836 fix_srcfile_path="$fix_srcfile_path_F77"
15837
15838 # Set to yes if exported symbols are required.
15839 always_export_symbols=$always_export_symbols_F77
15840
15841 # The commands to list exported symbols.
15842 export_symbols_cmds=$lt_export_symbols_cmds_F77
15843
15844 # The commands to extract the exported symbol list from a shared archive.
15845 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15846
15847 # Symbols that should not be listed in the preloaded symbols.
15848 exclude_expsyms=$lt_exclude_expsyms_F77
15849
15850 # Symbols that must always be exported.
15851 include_expsyms=$lt_include_expsyms_F77
15852
15853 # ### END LIBTOOL TAG CONFIG: $tagname
15854
15855 __EOF__
15856
15857
15858 else
15859   # If there is no Makefile yet, we rely on a make rule to execute
15860   # `config.status --recheck' to rerun these tests and create the
15861   # libtool script then.
15862   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15863   if test -f "$ltmain_in"; then
15864     test -f Makefile && make "$ltmain"
15865   fi
15866 fi
15867
15868
15869 ac_ext=c
15870 ac_cpp='$CPP $CPPFLAGS'
15871 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15872 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15873 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15874
15875 CC="$lt_save_CC"
15876
15877         else
15878           tagname=""
15879         fi
15880         ;;
15881
15882       GCJ)
15883         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15884
15885
15886 # Source file extension for Java test sources.
15887 ac_ext=java
15888
15889 # Object file extension for compiled Java test sources.
15890 objext=o
15891 objext_GCJ=$objext
15892
15893 # Code to be used in simple compile tests
15894 lt_simple_compile_test_code="class foo {}\n"
15895
15896 # Code to be used in simple link tests
15897 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15898
15899 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15900
15901 # If no C compiler was specified, use CC.
15902 LTCC=${LTCC-"$CC"}
15903
15904 # Allow CC to be a program name with arguments.
15905 compiler=$CC
15906
15907
15908 # Allow CC to be a program name with arguments.
15909 lt_save_CC="$CC"
15910 CC=${GCJ-"gcj"}
15911 compiler=$CC
15912 compiler_GCJ=$CC
15913
15914 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15915 archive_cmds_need_lc_GCJ=no
15916
15917 ## CAVEAT EMPTOR:
15918 ## There is no encapsulation within the following macros, do not change
15919 ## the running order or otherwise move them around unless you know exactly
15920 ## what you are doing...
15921
15922 lt_prog_compiler_no_builtin_flag_GCJ=
15923
15924 if test "$GCC" = yes; then
15925   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15926
15927
15928 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15929 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
15930 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15931   echo $ECHO_N "(cached) $ECHO_C" >&6
15932 else
15933   lt_cv_prog_compiler_rtti_exceptions=no
15934   ac_outfile=conftest.$ac_objext
15935    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15936    lt_compiler_flag="-fno-rtti -fno-exceptions"
15937    # Insert the option either (1) after the last *FLAGS variable, or
15938    # (2) before a word containing "conftest.", or (3) at the end.
15939    # Note that $ac_compile itself does not contain backslashes and begins
15940    # with a dollar sign (not a hyphen), so the echo should work correctly.
15941    # The option is referenced via a variable to avoid confusing sed.
15942    lt_compile=`echo "$ac_compile" | $SED \
15943    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15944    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15945    -e 's:$: $lt_compiler_flag:'`
15946    (eval echo "\"\$as_me:15946: $lt_compile\"" >&5)
15947    (eval "$lt_compile" 2>conftest.err)
15948    ac_status=$?
15949    cat conftest.err >&5
15950    echo "$as_me:15950: \$? = $ac_status" >&5
15951    if (exit $ac_status) && test -s "$ac_outfile"; then
15952      # The compiler can only warn and ignore the option if not recognized
15953      # So say no if there are warnings
15954      if test ! -s conftest.err; then
15955        lt_cv_prog_compiler_rtti_exceptions=yes
15956      fi
15957    fi
15958    $rm conftest*
15959
15960 fi
15961 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15962 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15963
15964 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15965     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15966 else
15967     :
15968 fi
15969
15970 fi
15971
15972 lt_prog_compiler_wl_GCJ=
15973 lt_prog_compiler_pic_GCJ=
15974 lt_prog_compiler_static_GCJ=
15975
15976 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15977 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
15978
15979   if test "$GCC" = yes; then
15980     lt_prog_compiler_wl_GCJ='-Wl,'
15981     lt_prog_compiler_static_GCJ='-static'
15982
15983     case $host_os in
15984       aix*)
15985       # All AIX code is PIC.
15986       if test "$host_cpu" = ia64; then
15987         # AIX 5 now supports IA64 processor
15988         lt_prog_compiler_static_GCJ='-Bstatic'
15989       fi
15990       ;;
15991
15992     amigaos*)
15993       # FIXME: we need at least 68020 code to build shared libraries, but
15994       # adding the `-m68020' flag to GCC prevents building anything better,
15995       # like `-m68040'.
15996       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15997       ;;
15998
15999     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16000       # PIC is the default for these OSes.
16001       ;;
16002
16003     mingw* | pw32* | os2*)
16004       # This hack is so that the source file can tell whether it is being
16005       # built for inclusion in a dll (and should export symbols for example).
16006       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16007       ;;
16008
16009     darwin* | rhapsody*)
16010       # PIC is the default on this platform
16011       # Common symbols not allowed in MH_DYLIB files
16012       lt_prog_compiler_pic_GCJ='-fno-common'
16013       ;;
16014
16015     msdosdjgpp*)
16016       # Just because we use GCC doesn't mean we suddenly get shared libraries
16017       # on systems that don't support them.
16018       lt_prog_compiler_can_build_shared_GCJ=no
16019       enable_shared=no
16020       ;;
16021
16022     sysv4*MP*)
16023       if test -d /usr/nec; then
16024         lt_prog_compiler_pic_GCJ=-Kconform_pic
16025       fi
16026       ;;
16027
16028     hpux*)
16029       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16030       # not for PA HP-UX.
16031       case "$host_cpu" in
16032       hppa*64*|ia64*)
16033         # +Z the default
16034         ;;
16035       *)
16036         lt_prog_compiler_pic_GCJ='-fPIC'
16037         ;;
16038       esac
16039       ;;
16040
16041     *)
16042       lt_prog_compiler_pic_GCJ='-fPIC'
16043       ;;
16044     esac
16045   else
16046     # PORTME Check for flag to pass linker flags through the system compiler.
16047     case $host_os in
16048     aix*)
16049       lt_prog_compiler_wl_GCJ='-Wl,'
16050       if test "$host_cpu" = ia64; then
16051         # AIX 5 now supports IA64 processor
16052         lt_prog_compiler_static_GCJ='-Bstatic'
16053       else
16054         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16055       fi
16056       ;;
16057
16058     mingw* | pw32* | os2*)
16059       # This hack is so that the source file can tell whether it is being
16060       # built for inclusion in a dll (and should export symbols for example).
16061       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16062       ;;
16063
16064     hpux9* | hpux10* | hpux11*)
16065       lt_prog_compiler_wl_GCJ='-Wl,'
16066       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16067       # not for PA HP-UX.
16068       case "$host_cpu" in
16069       hppa*64*|ia64*)
16070         # +Z the default
16071         ;;
16072       *)
16073         lt_prog_compiler_pic_GCJ='+Z'
16074         ;;
16075       esac
16076       # Is there a better lt_prog_compiler_static that works with the bundled CC?
16077       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16078       ;;
16079
16080     irix5* | irix6* | nonstopux*)
16081       lt_prog_compiler_wl_GCJ='-Wl,'
16082       # PIC (with -KPIC) is the default.
16083       lt_prog_compiler_static_GCJ='-non_shared'
16084       ;;
16085
16086     newsos6)
16087       lt_prog_compiler_pic_GCJ='-KPIC'
16088       lt_prog_compiler_static_GCJ='-Bstatic'
16089       ;;
16090
16091     linux*)
16092       case $CC in
16093       icc* | ecc*)
16094         lt_prog_compiler_wl_GCJ='-Wl,'
16095         lt_prog_compiler_pic_GCJ='-KPIC'
16096         lt_prog_compiler_static_GCJ='-static'
16097         ;;
16098       ccc*)
16099         lt_prog_compiler_wl_GCJ='-Wl,'
16100         # All Alpha code is PIC.
16101         lt_prog_compiler_static_GCJ='-non_shared'
16102         ;;
16103       esac
16104       ;;
16105
16106     osf3* | osf4* | osf5*)
16107       lt_prog_compiler_wl_GCJ='-Wl,'
16108       # All OSF/1 code is PIC.
16109       lt_prog_compiler_static_GCJ='-non_shared'
16110       ;;
16111
16112     sco3.2v5*)
16113       lt_prog_compiler_pic_GCJ='-Kpic'
16114       lt_prog_compiler_static_GCJ='-dn'
16115       ;;
16116
16117     solaris*)
16118       lt_prog_compiler_wl_GCJ='-Wl,'
16119       lt_prog_compiler_pic_GCJ='-KPIC'
16120       lt_prog_compiler_static_GCJ='-Bstatic'
16121       ;;
16122
16123     sunos4*)
16124       lt_prog_compiler_wl_GCJ='-Qoption ld '
16125       lt_prog_compiler_pic_GCJ='-PIC'
16126       lt_prog_compiler_static_GCJ='-Bstatic'
16127       ;;
16128
16129     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16130       lt_prog_compiler_wl_GCJ='-Wl,'
16131       lt_prog_compiler_pic_GCJ='-KPIC'
16132       lt_prog_compiler_static_GCJ='-Bstatic'
16133       ;;
16134
16135     sysv4*MP*)
16136       if test -d /usr/nec ;then
16137         lt_prog_compiler_pic_GCJ='-Kconform_pic'
16138         lt_prog_compiler_static_GCJ='-Bstatic'
16139       fi
16140       ;;
16141
16142     uts4*)
16143       lt_prog_compiler_pic_GCJ='-pic'
16144       lt_prog_compiler_static_GCJ='-Bstatic'
16145       ;;
16146
16147     *)
16148       lt_prog_compiler_can_build_shared_GCJ=no
16149       ;;
16150     esac
16151   fi
16152
16153 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16154 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16155
16156 #
16157 # Check to make sure the PIC flag actually works.
16158 #
16159 if test -n "$lt_prog_compiler_pic_GCJ"; then
16160
16161 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16162 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16163 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16164   echo $ECHO_N "(cached) $ECHO_C" >&6
16165 else
16166   lt_prog_compiler_pic_works_GCJ=no
16167   ac_outfile=conftest.$ac_objext
16168    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16169    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16170    # Insert the option either (1) after the last *FLAGS variable, or
16171    # (2) before a word containing "conftest.", or (3) at the end.
16172    # Note that $ac_compile itself does not contain backslashes and begins
16173    # with a dollar sign (not a hyphen), so the echo should work correctly.
16174    # The option is referenced via a variable to avoid confusing sed.
16175    lt_compile=`echo "$ac_compile" | $SED \
16176    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16177    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16178    -e 's:$: $lt_compiler_flag:'`
16179    (eval echo "\"\$as_me:16179: $lt_compile\"" >&5)
16180    (eval "$lt_compile" 2>conftest.err)
16181    ac_status=$?
16182    cat conftest.err >&5
16183    echo "$as_me:16183: \$? = $ac_status" >&5
16184    if (exit $ac_status) && test -s "$ac_outfile"; then
16185      # The compiler can only warn and ignore the option if not recognized
16186      # So say no if there are warnings
16187      if test ! -s conftest.err; then
16188        lt_prog_compiler_pic_works_GCJ=yes
16189      fi
16190    fi
16191    $rm conftest*
16192
16193 fi
16194 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16195 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16196
16197 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16198     case $lt_prog_compiler_pic_GCJ in
16199      "" | " "*) ;;
16200      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16201      esac
16202 else
16203     lt_prog_compiler_pic_GCJ=
16204      lt_prog_compiler_can_build_shared_GCJ=no
16205 fi
16206
16207 fi
16208 case "$host_os" in
16209   # For platforms which do not support PIC, -DPIC is meaningless:
16210   *djgpp*)
16211     lt_prog_compiler_pic_GCJ=
16212     ;;
16213   *)
16214     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16215     ;;
16216 esac
16217
16218 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16219 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16220 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16221   echo $ECHO_N "(cached) $ECHO_C" >&6
16222 else
16223   lt_cv_prog_compiler_c_o_GCJ=no
16224    $rm -r conftest 2>/dev/null
16225    mkdir conftest
16226    cd conftest
16227    mkdir out
16228    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16229
16230    lt_compiler_flag="-o out/conftest2.$ac_objext"
16231    # Insert the option either (1) after the last *FLAGS variable, or
16232    # (2) before a word containing "conftest.", or (3) at the end.
16233    # Note that $ac_compile itself does not contain backslashes and begins
16234    # with a dollar sign (not a hyphen), so the echo should work correctly.
16235    lt_compile=`echo "$ac_compile" | $SED \
16236    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16237    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16238    -e 's:$: $lt_compiler_flag:'`
16239    (eval echo "\"\$as_me:16239: $lt_compile\"" >&5)
16240    (eval "$lt_compile" 2>out/conftest.err)
16241    ac_status=$?
16242    cat out/conftest.err >&5
16243    echo "$as_me:16243: \$? = $ac_status" >&5
16244    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16245    then
16246      # The compiler can only warn and ignore the option if not recognized
16247      # So say no if there are warnings
16248      if test ! -s out/conftest.err; then
16249        lt_cv_prog_compiler_c_o_GCJ=yes
16250      fi
16251    fi
16252    chmod u+w .
16253    $rm conftest*
16254    # SGI C++ compiler will create directory out/ii_files/ for
16255    # template instantiation
16256    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16257    $rm out/* && rmdir out
16258    cd ..
16259    rmdir conftest
16260    $rm conftest*
16261
16262 fi
16263 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16264 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16265
16266
16267 hard_links="nottested"
16268 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16269   # do not overwrite the value of need_locks provided by the user
16270   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16271 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16272   hard_links=yes
16273   $rm conftest*
16274   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16275   touch conftest.a
16276   ln conftest.a conftest.b 2>&5 || hard_links=no
16277   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16278   { echo "$as_me:$LINENO: result: $hard_links" >&5
16279 echo "${ECHO_T}$hard_links" >&6; }
16280   if test "$hard_links" = no; then
16281     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16282 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16283     need_locks=warn
16284   fi
16285 else
16286   need_locks=no
16287 fi
16288
16289 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16290 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16291
16292   runpath_var=
16293   allow_undefined_flag_GCJ=
16294   enable_shared_with_static_runtimes_GCJ=no
16295   archive_cmds_GCJ=
16296   archive_expsym_cmds_GCJ=
16297   old_archive_From_new_cmds_GCJ=
16298   old_archive_from_expsyms_cmds_GCJ=
16299   export_dynamic_flag_spec_GCJ=
16300   whole_archive_flag_spec_GCJ=
16301   thread_safe_flag_spec_GCJ=
16302   hardcode_libdir_flag_spec_GCJ=
16303   hardcode_libdir_flag_spec_ld_GCJ=
16304   hardcode_libdir_separator_GCJ=
16305   hardcode_direct_GCJ=no
16306   hardcode_minus_L_GCJ=no
16307   hardcode_shlibpath_var_GCJ=unsupported
16308   link_all_deplibs_GCJ=unknown
16309   hardcode_automatic_GCJ=no
16310   module_cmds_GCJ=
16311   module_expsym_cmds_GCJ=
16312   always_export_symbols_GCJ=no
16313   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16314   # include_expsyms should be a list of space-separated symbols to be *always*
16315   # included in the symbol list
16316   include_expsyms_GCJ=
16317   # exclude_expsyms can be an extended regexp of symbols to exclude
16318   # it will be wrapped by ` (' and `)$', so one must not match beginning or
16319   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16320   # as well as any symbol that contains `d'.
16321   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16322   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16323   # platforms (ab)use it in PIC code, but their linkers get confused if
16324   # the symbol is explicitly referenced.  Since portable code cannot
16325   # rely on this symbol name, it's probably fine to never include it in
16326   # preloaded symbol tables.
16327   extract_expsyms_cmds=
16328
16329   case $host_os in
16330   cygwin* | mingw* | pw32*)
16331     # FIXME: the MSVC++ port hasn't been tested in a loooong time
16332     # When not using gcc, we currently assume that we are using
16333     # Microsoft Visual C++.
16334     if test "$GCC" != yes; then
16335       with_gnu_ld=no
16336     fi
16337     ;;
16338   openbsd*)
16339     with_gnu_ld=no
16340     ;;
16341   esac
16342
16343   ld_shlibs_GCJ=yes
16344   if test "$with_gnu_ld" = yes; then
16345     # If archive_cmds runs LD, not CC, wlarc should be empty
16346     wlarc='${wl}'
16347
16348     # See if GNU ld supports shared libraries.
16349     case $host_os in
16350     aix3* | aix4* | aix5*)
16351       # On AIX/PPC, the GNU linker is very broken
16352       if test "$host_cpu" != ia64; then
16353         ld_shlibs_GCJ=no
16354         cat <<EOF 1>&2
16355
16356 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16357 *** to be unable to reliably create shared libraries on AIX.
16358 *** Therefore, libtool is disabling shared libraries support.  If you
16359 *** really care for shared libraries, you may want to modify your PATH
16360 *** so that a non-GNU linker is found, and then restart.
16361
16362 EOF
16363       fi
16364       ;;
16365
16366     amigaos*)
16367       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)'
16368       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16369       hardcode_minus_L_GCJ=yes
16370
16371       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16372       # that the semantics of dynamic libraries on AmigaOS, at least up
16373       # to version 4, is to share data among multiple programs linked
16374       # with the same dynamic library.  Since this doesn't match the
16375       # behavior of shared libraries on other platforms, we can't use
16376       # them.
16377       ld_shlibs_GCJ=no
16378       ;;
16379
16380     beos*)
16381       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16382         allow_undefined_flag_GCJ=unsupported
16383         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16384         # support --undefined.  This deserves some investigation.  FIXME
16385         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16386       else
16387         ld_shlibs_GCJ=no
16388       fi
16389       ;;
16390
16391     cygwin* | mingw* | pw32*)
16392       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16393       # as there is no search path for DLLs.
16394       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16395       allow_undefined_flag_GCJ=unsupported
16396       always_export_symbols_GCJ=no
16397       enable_shared_with_static_runtimes_GCJ=yes
16398       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16399
16400       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16401         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16402         # If the export-symbols file already is a .def file (1st line
16403         # is EXPORTS), use it as is; otherwise, prepend...
16404         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16405           cp $export_symbols $output_objdir/$soname.def;
16406         else
16407           echo EXPORTS > $output_objdir/$soname.def;
16408           cat $export_symbols >> $output_objdir/$soname.def;
16409         fi~
16410         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
16411       else
16412         ld_shlibs=no
16413       fi
16414       ;;
16415
16416     netbsd*)
16417       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16418         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16419         wlarc=
16420       else
16421         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16422         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16423       fi
16424       ;;
16425
16426     solaris* | sysv5*)
16427       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16428         ld_shlibs_GCJ=no
16429         cat <<EOF 1>&2
16430
16431 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16432 *** create shared libraries on Solaris systems.  Therefore, libtool
16433 *** is disabling shared libraries support.  We urge you to upgrade GNU
16434 *** binutils to release 2.9.1 or newer.  Another option is to modify
16435 *** your PATH or compiler configuration so that the native linker is
16436 *** used, and then restart.
16437
16438 EOF
16439       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16440         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16441         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16442       else
16443         ld_shlibs_GCJ=no
16444       fi
16445       ;;
16446
16447     sunos4*)
16448       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16449       wlarc=
16450       hardcode_direct_GCJ=yes
16451       hardcode_shlibpath_var_GCJ=no
16452       ;;
16453
16454   linux*)
16455     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16456         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16457         archive_cmds_GCJ="$tmp_archive_cmds"
16458       supports_anon_versioning=no
16459       case `$LD -v 2>/dev/null` in
16460         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16461         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16462         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16463         *\ 2.11.*) ;; # other 2.11 versions
16464         *) supports_anon_versioning=yes ;;
16465       esac
16466       if test $supports_anon_versioning = yes; then
16467         archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16468 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16469 $echo "local: *; };" >> $output_objdir/$libname.ver~
16470         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16471       else
16472         archive_expsym_cmds_GCJ="$tmp_archive_cmds"
16473       fi
16474     else
16475       ld_shlibs_GCJ=no
16476     fi
16477     ;;
16478
16479     *)
16480       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16481         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16482         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16483       else
16484         ld_shlibs_GCJ=no
16485       fi
16486       ;;
16487     esac
16488
16489     if test "$ld_shlibs_GCJ" = yes; then
16490       runpath_var=LD_RUN_PATH
16491       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16492       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16493       # ancient GNU ld didn't support --whole-archive et. al.
16494       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16495         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16496       else
16497         whole_archive_flag_spec_GCJ=
16498       fi
16499     fi
16500   else
16501     # PORTME fill in a description of your system's linker (not GNU ld)
16502     case $host_os in
16503     aix3*)
16504       allow_undefined_flag_GCJ=unsupported
16505       always_export_symbols_GCJ=yes
16506       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'
16507       # Note: this linker hardcodes the directories in LIBPATH if there
16508       # are no directories specified by -L.
16509       hardcode_minus_L_GCJ=yes
16510       if test "$GCC" = yes && test -z "$link_static_flag"; then
16511         # Neither direct hardcoding nor static linking is supported with a
16512         # broken collect2.
16513         hardcode_direct_GCJ=unsupported
16514       fi
16515       ;;
16516
16517     aix4* | aix5*)
16518       if test "$host_cpu" = ia64; then
16519         # On IA64, the linker does run time linking by default, so we don't
16520         # have to do anything special.
16521         aix_use_runtimelinking=no
16522         exp_sym_flag='-Bexport'
16523         no_entry_flag=""
16524       else
16525         # If we're using GNU nm, then we don't want the "-C" option.
16526         # -C means demangle to AIX nm, but means don't demangle with GNU nm
16527         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16528           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'
16529         else
16530           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'
16531         fi
16532         aix_use_runtimelinking=no
16533
16534         # Test if we are trying to use run time linking or normal
16535         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16536         # need to do runtime linking.
16537         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16538           for ld_flag in $LDFLAGS; do
16539           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16540             aix_use_runtimelinking=yes
16541             break
16542           fi
16543           done
16544         esac
16545
16546         exp_sym_flag='-bexport'
16547         no_entry_flag='-bnoentry'
16548       fi
16549
16550       # When large executables or shared objects are built, AIX ld can
16551       # have problems creating the table of contents.  If linking a library
16552       # or program results in "error TOC overflow" add -mminimal-toc to
16553       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16554       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16555
16556       archive_cmds_GCJ=''
16557       hardcode_direct_GCJ=yes
16558       hardcode_libdir_separator_GCJ=':'
16559       link_all_deplibs_GCJ=yes
16560
16561       if test "$GCC" = yes; then
16562         case $host_os in aix4.012|aix4.012.*)
16563         # We only want to do this on AIX 4.2 and lower, the check
16564         # below for broken collect2 doesn't work under 4.3+
16565           collect2name=`${CC} -print-prog-name=collect2`
16566           if test -f "$collect2name" && \
16567            strings "$collect2name" | grep resolve_lib_name >/dev/null
16568           then
16569           # We have reworked collect2
16570           hardcode_direct_GCJ=yes
16571           else
16572           # We have old collect2
16573           hardcode_direct_GCJ=unsupported
16574           # It fails to find uninstalled libraries when the uninstalled
16575           # path is not listed in the libpath.  Setting hardcode_minus_L
16576           # to unsupported forces relinking
16577           hardcode_minus_L_GCJ=yes
16578           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16579           hardcode_libdir_separator_GCJ=
16580           fi
16581         esac
16582         shared_flag='-shared'
16583       else
16584         # not using gcc
16585         if test "$host_cpu" = ia64; then
16586         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16587         # chokes on -Wl,-G. The following line is correct:
16588           shared_flag='-G'
16589         else
16590         if test "$aix_use_runtimelinking" = yes; then
16591             shared_flag='${wl}-G'
16592           else
16593             shared_flag='${wl}-bM:SRE'
16594         fi
16595         fi
16596       fi
16597
16598       # It seems that -bexpall does not export symbols beginning with
16599       # underscore (_), so it is better to generate a list of symbols to export.
16600       always_export_symbols_GCJ=yes
16601       if test "$aix_use_runtimelinking" = yes; then
16602         # Warning - without using the other runtime loading flags (-brtl),
16603         # -berok will link without error, but may produce a broken library.
16604         allow_undefined_flag_GCJ='-berok'
16605        # Determine the default libpath from the value encoded in an empty executable.
16606        cat >conftest.$ac_ext <<_ACEOF
16607 /* confdefs.h.  */
16608 _ACEOF
16609 cat confdefs.h >>conftest.$ac_ext
16610 cat >>conftest.$ac_ext <<_ACEOF
16611 /* end confdefs.h.  */
16612
16613 int
16614 main ()
16615 {
16616
16617   ;
16618   return 0;
16619 }
16620 _ACEOF
16621 rm -f conftest.$ac_objext conftest$ac_exeext
16622 if { (ac_try="$ac_link"
16623 case "(($ac_try" in
16624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16625   *) ac_try_echo=$ac_try;;
16626 esac
16627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16628   (eval "$ac_link") 2>conftest.er1
16629   ac_status=$?
16630   grep -v '^ *+' conftest.er1 >conftest.err
16631   rm -f conftest.er1
16632   cat conftest.err >&5
16633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16634   (exit $ac_status); } && {
16635          test -z "$ac_c_werror_flag" ||
16636          test ! -s conftest.err
16637        } && test -s conftest$ac_exeext &&
16638        $as_test_x conftest$ac_exeext; then
16639
16640 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16641 }'`
16642 # Check for a 64-bit object if we didn't find anything.
16643 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; }
16644 }'`; fi
16645 else
16646   echo "$as_me: failed program was:" >&5
16647 sed 's/^/| /' conftest.$ac_ext >&5
16648
16649
16650 fi
16651
16652 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16653       conftest$ac_exeext conftest.$ac_ext
16654 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16655
16656        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16657         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"
16658        else
16659         if test "$host_cpu" = ia64; then
16660           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16661           allow_undefined_flag_GCJ="-z nodefs"
16662           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"
16663         else
16664          # Determine the default libpath from the value encoded in an empty executable.
16665          cat >conftest.$ac_ext <<_ACEOF
16666 /* confdefs.h.  */
16667 _ACEOF
16668 cat confdefs.h >>conftest.$ac_ext
16669 cat >>conftest.$ac_ext <<_ACEOF
16670 /* end confdefs.h.  */
16671
16672 int
16673 main ()
16674 {
16675
16676   ;
16677   return 0;
16678 }
16679 _ACEOF
16680 rm -f conftest.$ac_objext conftest$ac_exeext
16681 if { (ac_try="$ac_link"
16682 case "(($ac_try" in
16683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16684   *) ac_try_echo=$ac_try;;
16685 esac
16686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16687   (eval "$ac_link") 2>conftest.er1
16688   ac_status=$?
16689   grep -v '^ *+' conftest.er1 >conftest.err
16690   rm -f conftest.er1
16691   cat conftest.err >&5
16692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16693   (exit $ac_status); } && {
16694          test -z "$ac_c_werror_flag" ||
16695          test ! -s conftest.err
16696        } && test -s conftest$ac_exeext &&
16697        $as_test_x conftest$ac_exeext; then
16698
16699 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16700 }'`
16701 # Check for a 64-bit object if we didn't find anything.
16702 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; }
16703 }'`; fi
16704 else
16705   echo "$as_me: failed program was:" >&5
16706 sed 's/^/| /' conftest.$ac_ext >&5
16707
16708
16709 fi
16710
16711 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16712       conftest$ac_exeext conftest.$ac_ext
16713 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16714
16715          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16716           # Warning - without using the other run time loading flags,
16717           # -berok will link without error, but may produce a broken library.
16718           no_undefined_flag_GCJ=' ${wl}-bernotok'
16719           allow_undefined_flag_GCJ=' ${wl}-berok'
16720           # -bexpall does not export symbols beginning with underscore (_)
16721           always_export_symbols_GCJ=yes
16722           # Exported symbols can be pulled into shared objects from archives
16723           whole_archive_flag_spec_GCJ=' '
16724           archive_cmds_need_lc_GCJ=yes
16725           # This is similar to how AIX traditionally builds it's shared libraries.
16726           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'
16727         fi
16728       fi
16729       ;;
16730
16731     amigaos*)
16732       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)'
16733       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16734       hardcode_minus_L_GCJ=yes
16735       # see comment about different semantics on the GNU ld section
16736       ld_shlibs_GCJ=no
16737       ;;
16738
16739     bsdi4*)
16740       export_dynamic_flag_spec_GCJ=-rdynamic
16741       ;;
16742
16743     cygwin* | mingw* | pw32*)
16744       # When not using gcc, we currently assume that we are using
16745       # Microsoft Visual C++.
16746       # hardcode_libdir_flag_spec is actually meaningless, as there is
16747       # no search path for DLLs.
16748       hardcode_libdir_flag_spec_GCJ=' '
16749       allow_undefined_flag_GCJ=unsupported
16750       # Tell ltmain to make .lib files, not .a files.
16751       libext=lib
16752       # Tell ltmain to make .dll files, not .so files.
16753       shrext_cmds=".dll"
16754       # FIXME: Setting linknames here is a bad hack.
16755       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16756       # The linker will automatically build a .lib file if we build a DLL.
16757       old_archive_From_new_cmds_GCJ='true'
16758       # FIXME: Should let the user specify the lib program.
16759       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16760       fix_srcfile_path='`cygpath -w "$srcfile"`'
16761       enable_shared_with_static_runtimes_GCJ=yes
16762       ;;
16763
16764     darwin* | rhapsody*)
16765     if test "$GXX" = yes ; then
16766       archive_cmds_need_lc_GCJ=no
16767       case "$host_os" in
16768       rhapsody* | darwin1.[012])
16769         allow_undefined_flag_GCJ='-undefined suppress'
16770         ;;
16771       *) # Darwin 1.3 on
16772       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16773         allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16774       else
16775         case ${MACOSX_DEPLOYMENT_TARGET} in
16776           10.[012])
16777             allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16778             ;;
16779           10.*)
16780             allow_undefined_flag_GCJ='-undefined dynamic_lookup'
16781             ;;
16782         esac
16783       fi
16784         ;;
16785       esac
16786         lt_int_apple_cc_single_mod=no
16787         output_verbose_link_cmd='echo'
16788         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16789           lt_int_apple_cc_single_mod=yes
16790         fi
16791         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16792           archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16793         else
16794         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'
16795       fi
16796       module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16797       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16798         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16799           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}'
16800         else
16801           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}'
16802         fi
16803           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}'
16804       hardcode_direct_GCJ=no
16805       hardcode_automatic_GCJ=yes
16806       hardcode_shlibpath_var_GCJ=unsupported
16807       whole_archive_flag_spec_GCJ='-all_load $convenience'
16808       link_all_deplibs_GCJ=yes
16809     else
16810       ld_shlibs_GCJ=no
16811     fi
16812       ;;
16813
16814     dgux*)
16815       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16816       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16817       hardcode_shlibpath_var_GCJ=no
16818       ;;
16819
16820     freebsd1*)
16821       ld_shlibs_GCJ=no
16822       ;;
16823
16824     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16825     # support.  Future versions do this automatically, but an explicit c++rt0.o
16826     # does not break anything, and helps significantly (at the cost of a little
16827     # extra space).
16828     freebsd2.2*)
16829       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16830       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16831       hardcode_direct_GCJ=yes
16832       hardcode_shlibpath_var_GCJ=no
16833       ;;
16834
16835     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16836     freebsd2*)
16837       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16838       hardcode_direct_GCJ=yes
16839       hardcode_minus_L_GCJ=yes
16840       hardcode_shlibpath_var_GCJ=no
16841       ;;
16842
16843     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16844     freebsd* | kfreebsd*-gnu)
16845       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16846       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16847       hardcode_direct_GCJ=yes
16848       hardcode_shlibpath_var_GCJ=no
16849       ;;
16850
16851     hpux9*)
16852       if test "$GCC" = yes; then
16853         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'
16854       else
16855         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'
16856       fi
16857       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16858       hardcode_libdir_separator_GCJ=:
16859       hardcode_direct_GCJ=yes
16860
16861       # hardcode_minus_L: Not really in the search PATH,
16862       # but as the default location of the library.
16863       hardcode_minus_L_GCJ=yes
16864       export_dynamic_flag_spec_GCJ='${wl}-E'
16865       ;;
16866
16867     hpux10* | hpux11*)
16868       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16869         case "$host_cpu" in
16870         hppa*64*|ia64*)
16871           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16872           ;;
16873         *)
16874           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16875           ;;
16876         esac
16877       else
16878         case "$host_cpu" in
16879         hppa*64*|ia64*)
16880           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16881           ;;
16882         *)
16883           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16884           ;;
16885         esac
16886       fi
16887       if test "$with_gnu_ld" = no; then
16888         case "$host_cpu" in
16889         hppa*64*)
16890           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16891           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16892           hardcode_libdir_separator_GCJ=:
16893           hardcode_direct_GCJ=no
16894           hardcode_shlibpath_var_GCJ=no
16895           ;;
16896         ia64*)
16897           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16898           hardcode_direct_GCJ=no
16899           hardcode_shlibpath_var_GCJ=no
16900
16901           # hardcode_minus_L: Not really in the search PATH,
16902           # but as the default location of the library.
16903           hardcode_minus_L_GCJ=yes
16904           ;;
16905         *)
16906           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16907           hardcode_libdir_separator_GCJ=:
16908           hardcode_direct_GCJ=yes
16909           export_dynamic_flag_spec_GCJ='${wl}-E'
16910
16911           # hardcode_minus_L: Not really in the search PATH,
16912           # but as the default location of the library.
16913           hardcode_minus_L_GCJ=yes
16914           ;;
16915         esac
16916       fi
16917       ;;
16918
16919     irix5* | irix6* | nonstopux*)
16920       if test "$GCC" = yes; then
16921         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'
16922       else
16923         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'
16924         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16925       fi
16926       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16927       hardcode_libdir_separator_GCJ=:
16928       link_all_deplibs_GCJ=yes
16929       ;;
16930
16931     netbsd*)
16932       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16933         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16934       else
16935         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16936       fi
16937       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16938       hardcode_direct_GCJ=yes
16939       hardcode_shlibpath_var_GCJ=no
16940       ;;
16941
16942     newsos6)
16943       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16944       hardcode_direct_GCJ=yes
16945       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16946       hardcode_libdir_separator_GCJ=:
16947       hardcode_shlibpath_var_GCJ=no
16948       ;;
16949
16950     openbsd*)
16951       hardcode_direct_GCJ=yes
16952       hardcode_shlibpath_var_GCJ=no
16953       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16954         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16955         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16956         export_dynamic_flag_spec_GCJ='${wl}-E'
16957       else
16958        case $host_os in
16959          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16960            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16961            hardcode_libdir_flag_spec_GCJ='-R$libdir'
16962            ;;
16963          *)
16964            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16965            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16966            ;;
16967        esac
16968       fi
16969       ;;
16970
16971     os2*)
16972       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16973       hardcode_minus_L_GCJ=yes
16974       allow_undefined_flag_GCJ=unsupported
16975       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'
16976       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16977       ;;
16978
16979     osf3*)
16980       if test "$GCC" = yes; then
16981         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16982         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'
16983       else
16984         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16985         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'
16986       fi
16987       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16988       hardcode_libdir_separator_GCJ=:
16989       ;;
16990
16991     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16992       if test "$GCC" = yes; then
16993         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16994         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'
16995         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16996       else
16997         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16998         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'
16999         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~
17000         $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'
17001
17002         # Both c and cxx compiler support -rpath directly
17003         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17004       fi
17005       hardcode_libdir_separator_GCJ=:
17006       ;;
17007
17008     sco3.2v5*)
17009       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17010       hardcode_shlibpath_var_GCJ=no
17011       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17012       runpath_var=LD_RUN_PATH
17013       hardcode_runpath_var=yes
17014       ;;
17015
17016     solaris*)
17017       no_undefined_flag_GCJ=' -z text'
17018       if test "$GCC" = yes; then
17019         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17020         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17021           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17022       else
17023         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17024         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17025         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17026       fi
17027       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17028       hardcode_shlibpath_var_GCJ=no
17029       case $host_os in
17030       solaris2.[0-5] | solaris2.[0-5].*) ;;
17031       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
17032         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17033       esac
17034       link_all_deplibs_GCJ=yes
17035       ;;
17036
17037     sunos4*)
17038       if test "x$host_vendor" = xsequent; then
17039         # Use $CC to link under sequent, because it throws in some extra .o
17040         # files that make .init and .fini sections work.
17041         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17042       else
17043         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17044       fi
17045       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17046       hardcode_direct_GCJ=yes
17047       hardcode_minus_L_GCJ=yes
17048       hardcode_shlibpath_var_GCJ=no
17049       ;;
17050
17051     sysv4)
17052       case $host_vendor in
17053         sni)
17054           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17055           hardcode_direct_GCJ=yes # is this really true???
17056         ;;
17057         siemens)
17058           ## LD is ld it makes a PLAMLIB
17059           ## CC just makes a GrossModule.
17060           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17061           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17062           hardcode_direct_GCJ=no
17063         ;;
17064         motorola)
17065           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17066           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17067         ;;
17068       esac
17069       runpath_var='LD_RUN_PATH'
17070       hardcode_shlibpath_var_GCJ=no
17071       ;;
17072
17073     sysv4.3*)
17074       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17075       hardcode_shlibpath_var_GCJ=no
17076       export_dynamic_flag_spec_GCJ='-Bexport'
17077       ;;
17078
17079     sysv4*MP*)
17080       if test -d /usr/nec; then
17081         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17082         hardcode_shlibpath_var_GCJ=no
17083         runpath_var=LD_RUN_PATH
17084         hardcode_runpath_var=yes
17085         ld_shlibs_GCJ=yes
17086       fi
17087       ;;
17088
17089     sysv4.2uw2*)
17090       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17091       hardcode_direct_GCJ=yes
17092       hardcode_minus_L_GCJ=no
17093       hardcode_shlibpath_var_GCJ=no
17094       hardcode_runpath_var=yes
17095       runpath_var=LD_RUN_PATH
17096       ;;
17097
17098    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
17099       no_undefined_flag_GCJ='${wl}-z ${wl}text'
17100       if test "$GCC" = yes; then
17101         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17102       else
17103         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17104       fi
17105       runpath_var='LD_RUN_PATH'
17106       hardcode_shlibpath_var_GCJ=no
17107       ;;
17108
17109     sysv5*)
17110       no_undefined_flag_GCJ=' -z text'
17111       # $CC -shared without GNU ld will not create a library from C++
17112       # object files and a static libstdc++, better avoid it by now
17113       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17114       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17115                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17116       hardcode_libdir_flag_spec_GCJ=
17117       hardcode_shlibpath_var_GCJ=no
17118       runpath_var='LD_RUN_PATH'
17119       ;;
17120
17121     uts4*)
17122       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17123       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17124       hardcode_shlibpath_var_GCJ=no
17125       ;;
17126
17127     *)
17128       ld_shlibs_GCJ=no
17129       ;;
17130     esac
17131   fi
17132
17133 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17134 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17135 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17136
17137 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17138 if test "$GCC" = yes; then
17139   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17140 fi
17141
17142 #
17143 # Do we need to explicitly link libc?
17144 #
17145 case "x$archive_cmds_need_lc_GCJ" in
17146 x|xyes)
17147   # Assume -lc should be added
17148   archive_cmds_need_lc_GCJ=yes
17149
17150   if test "$enable_shared" = yes && test "$GCC" = yes; then
17151     case $archive_cmds_GCJ in
17152     *'~'*)
17153       # FIXME: we may have to deal with multi-command sequences.
17154       ;;
17155     '$CC '*)
17156       # Test whether the compiler implicitly links with -lc since on some
17157       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17158       # to ld, don't add -lc before -lgcc.
17159       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17160 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17161       $rm conftest*
17162       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17163
17164       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17165   (eval $ac_compile) 2>&5
17166   ac_status=$?
17167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17168   (exit $ac_status); } 2>conftest.err; then
17169         soname=conftest
17170         lib=conftest
17171         libobjs=conftest.$ac_objext
17172         deplibs=
17173         wl=$lt_prog_compiler_wl_GCJ
17174         compiler_flags=-v
17175         linker_flags=-v
17176         verstring=
17177         output_objdir=.
17178         libname=conftest
17179         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17180         allow_undefined_flag_GCJ=
17181         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17182   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17183   ac_status=$?
17184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17185   (exit $ac_status); }
17186         then
17187           archive_cmds_need_lc_GCJ=no
17188         else
17189           archive_cmds_need_lc_GCJ=yes
17190         fi
17191         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17192       else
17193         cat conftest.err 1>&5
17194       fi
17195       $rm conftest*
17196       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17197 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17198       ;;
17199     esac
17200   fi
17201   ;;
17202 esac
17203
17204 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17205 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17206 library_names_spec=
17207 libname_spec='lib$name'
17208 soname_spec=
17209 shrext_cmds=".so"
17210 postinstall_cmds=
17211 postuninstall_cmds=
17212 finish_cmds=
17213 finish_eval=
17214 shlibpath_var=
17215 shlibpath_overrides_runpath=unknown
17216 version_type=none
17217 dynamic_linker="$host_os ld.so"
17218 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17219 if test "$GCC" = yes; then
17220   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17221   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17222     # if the path contains ";" then we assume it to be the separator
17223     # otherwise default to the standard path separator (i.e. ":") - it is
17224     # assumed that no part of a normal pathname contains ";" but that should
17225     # okay in the real world where ";" in dirpaths is itself problematic.
17226     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17227   else
17228     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17229   fi
17230 else
17231   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17232 fi
17233 need_lib_prefix=unknown
17234 hardcode_into_libs=no
17235
17236 # when you set need_version to no, make sure it does not cause -set_version
17237 # flags to be left without arguments
17238 need_version=unknown
17239
17240 case $host_os in
17241 aix3*)
17242   version_type=linux
17243   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17244   shlibpath_var=LIBPATH
17245
17246   # AIX 3 has no versioning support, so we append a major version to the name.
17247   soname_spec='${libname}${release}${shared_ext}$major'
17248   ;;
17249
17250 aix4* | aix5*)
17251   version_type=linux
17252   need_lib_prefix=no
17253   need_version=no
17254   hardcode_into_libs=yes
17255   if test "$host_cpu" = ia64; then
17256     # AIX 5 supports IA64
17257     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17258     shlibpath_var=LD_LIBRARY_PATH
17259   else
17260     # With GCC up to 2.95.x, collect2 would create an import file
17261     # for dependence libraries.  The import file would start with
17262     # the line `#! .'.  This would cause the generated library to
17263     # depend on `.', always an invalid library.  This was fixed in
17264     # development snapshots of GCC prior to 3.0.
17265     case $host_os in
17266       aix4 | aix4.[01] | aix4.[01].*)
17267       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17268            echo ' yes '
17269            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17270         :
17271       else
17272         can_build_shared=no
17273       fi
17274       ;;
17275     esac
17276     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17277     # soname into executable. Probably we can add versioning support to
17278     # collect2, so additional links can be useful in future.
17279     if test "$aix_use_runtimelinking" = yes; then
17280       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17281       # instead of lib<name>.a to let people know that these are not
17282       # typical AIX shared libraries.
17283       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17284     else
17285       # We preserve .a as extension for shared libraries through AIX4.2
17286       # and later when we are not doing run time linking.
17287       library_names_spec='${libname}${release}.a $libname.a'
17288       soname_spec='${libname}${release}${shared_ext}$major'
17289     fi
17290     shlibpath_var=LIBPATH
17291   fi
17292   ;;
17293
17294 amigaos*)
17295   library_names_spec='$libname.ixlibrary $libname.a'
17296   # Create ${libname}_ixlibrary.a entries in /sys/libs.
17297   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'
17298   ;;
17299
17300 beos*)
17301   library_names_spec='${libname}${shared_ext}'
17302   dynamic_linker="$host_os ld.so"
17303   shlibpath_var=LIBRARY_PATH
17304   ;;
17305
17306 bsdi4*)
17307   version_type=linux
17308   need_version=no
17309   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17310   soname_spec='${libname}${release}${shared_ext}$major'
17311   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17312   shlibpath_var=LD_LIBRARY_PATH
17313   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17314   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17315   # the default ld.so.conf also contains /usr/contrib/lib and
17316   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17317   # libtool to hard-code these into programs
17318   ;;
17319
17320 cygwin* | mingw* | pw32*)
17321   version_type=windows
17322   shrext_cmds=".dll"
17323   need_version=no
17324   need_lib_prefix=no
17325
17326   case $GCC,$host_os in
17327   yes,cygwin* | yes,mingw* | yes,pw32*)
17328     library_names_spec='$libname.dll.a'
17329     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17330     postinstall_cmds='base_file=`basename \${file}`~
17331       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17332       dldir=$destdir/`dirname \$dlpath`~
17333       test -d \$dldir || mkdir -p \$dldir~
17334       $install_prog $dir/$dlname \$dldir/$dlname'
17335     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17336       dlpath=$dir/\$dldll~
17337        $rm \$dlpath'
17338     shlibpath_overrides_runpath=yes
17339
17340     case $host_os in
17341     cygwin*)
17342       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17343       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17344       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17345       ;;
17346     mingw*)
17347       # MinGW DLLs use traditional 'lib' prefix
17348       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17349       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17350       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17351         # It is most probably a Windows format PATH printed by
17352         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17353         # path with ; separators, and with drive letters. We can handle the
17354         # drive letters (cygwin fileutils understands them), so leave them,
17355         # especially as we might pass files found there to a mingw objdump,
17356         # which wouldn't understand a cygwinified path. Ahh.
17357         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17358       else
17359         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17360       fi
17361       ;;
17362     pw32*)
17363       # pw32 DLLs use 'pw' prefix rather than 'lib'
17364       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
17365       ;;
17366     esac
17367     ;;
17368
17369   *)
17370     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17371     ;;
17372   esac
17373   dynamic_linker='Win32 ld.exe'
17374   # FIXME: first we should search . and the directory the executable is in
17375   shlibpath_var=PATH
17376   ;;
17377
17378 darwin* | rhapsody*)
17379   dynamic_linker="$host_os dyld"
17380   version_type=darwin
17381   need_lib_prefix=no
17382   need_version=no
17383   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17384   soname_spec='${libname}${release}${major}$shared_ext'
17385   shlibpath_overrides_runpath=yes
17386   shlibpath_var=DYLD_LIBRARY_PATH
17387   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17388   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17389   if test "$GCC" = yes; then
17390     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"`
17391   else
17392     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17393   fi
17394   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17395   ;;
17396
17397 dgux*)
17398   version_type=linux
17399   need_lib_prefix=no
17400   need_version=no
17401   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17402   soname_spec='${libname}${release}${shared_ext}$major'
17403   shlibpath_var=LD_LIBRARY_PATH
17404   ;;
17405
17406 freebsd1*)
17407   dynamic_linker=no
17408   ;;
17409
17410 kfreebsd*-gnu)
17411   version_type=linux
17412   need_lib_prefix=no
17413   need_version=no
17414   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17415   soname_spec='${libname}${release}${shared_ext}$major'
17416   shlibpath_var=LD_LIBRARY_PATH
17417   shlibpath_overrides_runpath=no
17418   hardcode_into_libs=yes
17419   dynamic_linker='GNU ld.so'
17420   ;;
17421
17422 freebsd*)
17423   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17424   version_type=freebsd-$objformat
17425   case $version_type in
17426     freebsd-elf*)
17427       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17428       need_version=no
17429       need_lib_prefix=no
17430       ;;
17431     freebsd-*)
17432       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17433       need_version=yes
17434       ;;
17435   esac
17436   shlibpath_var=LD_LIBRARY_PATH
17437   case $host_os in
17438   freebsd2*)
17439     shlibpath_overrides_runpath=yes
17440     ;;
17441   freebsd3.01* | freebsdelf3.01*)
17442     shlibpath_overrides_runpath=yes
17443     hardcode_into_libs=yes
17444     ;;
17445   *) # from 3.2 on
17446     shlibpath_overrides_runpath=no
17447     hardcode_into_libs=yes
17448     ;;
17449   esac
17450   ;;
17451
17452 gnu*)
17453   version_type=linux
17454   need_lib_prefix=no
17455   need_version=no
17456   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17457   soname_spec='${libname}${release}${shared_ext}$major'
17458   shlibpath_var=LD_LIBRARY_PATH
17459   hardcode_into_libs=yes
17460   ;;
17461
17462 hpux9* | hpux10* | hpux11*)
17463   # Give a soname corresponding to the major version so that dld.sl refuses to
17464   # link against other versions.
17465   version_type=sunos
17466   need_lib_prefix=no
17467   need_version=no
17468   case "$host_cpu" in
17469   ia64*)
17470     shrext_cmds='.so'
17471     hardcode_into_libs=yes
17472     dynamic_linker="$host_os dld.so"
17473     shlibpath_var=LD_LIBRARY_PATH
17474     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17475     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17476     soname_spec='${libname}${release}${shared_ext}$major'
17477     if test "X$HPUX_IA64_MODE" = X32; then
17478       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17479     else
17480       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17481     fi
17482     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17483     ;;
17484    hppa*64*)
17485      shrext_cmds='.sl'
17486      hardcode_into_libs=yes
17487      dynamic_linker="$host_os dld.sl"
17488      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17489      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17490      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17491      soname_spec='${libname}${release}${shared_ext}$major'
17492      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17493      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17494      ;;
17495    *)
17496     shrext_cmds='.sl'
17497     dynamic_linker="$host_os dld.sl"
17498     shlibpath_var=SHLIB_PATH
17499     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17500     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17501     soname_spec='${libname}${release}${shared_ext}$major'
17502     ;;
17503   esac
17504   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17505   postinstall_cmds='chmod 555 $lib'
17506   ;;
17507
17508 irix5* | irix6* | nonstopux*)
17509   case $host_os in
17510     nonstopux*) version_type=nonstopux ;;
17511     *)
17512         if test "$lt_cv_prog_gnu_ld" = yes; then
17513                 version_type=linux
17514         else
17515                 version_type=irix
17516         fi ;;
17517   esac
17518   need_lib_prefix=no
17519   need_version=no
17520   soname_spec='${libname}${release}${shared_ext}$major'
17521   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17522   case $host_os in
17523   irix5* | nonstopux*)
17524     libsuff= shlibsuff=
17525     ;;
17526   *)
17527     case $LD in # libtool.m4 will add one of these switches to LD
17528     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17529       libsuff= shlibsuff= libmagic=32-bit;;
17530     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17531       libsuff=32 shlibsuff=N32 libmagic=N32;;
17532     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17533       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17534     *) libsuff= shlibsuff= libmagic=never-match;;
17535     esac
17536     ;;
17537   esac
17538   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17539   shlibpath_overrides_runpath=no
17540   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17541   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17542   hardcode_into_libs=yes
17543   ;;
17544
17545 # No shared lib support for Linux oldld, aout, or coff.
17546 linux*oldld* | linux*aout* | linux*coff*)
17547   dynamic_linker=no
17548   ;;
17549
17550 # This must be Linux ELF.
17551 linux*)
17552   version_type=linux
17553   need_lib_prefix=no
17554   need_version=no
17555   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17556   soname_spec='${libname}${release}${shared_ext}$major'
17557   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17558   shlibpath_var=LD_LIBRARY_PATH
17559   shlibpath_overrides_runpath=no
17560   # This implies no fast_install, which is unacceptable.
17561   # Some rework will be needed to allow for fast_install
17562   # before this can be enabled.
17563   hardcode_into_libs=yes
17564
17565   # find out which ABI we are using
17566   libsuff=
17567   case "$host_cpu" in
17568   x86_64*|s390x*|powerpc64*)
17569     echo '#line 17569 "configure"' > conftest.$ac_ext
17570     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17571   (eval $ac_compile) 2>&5
17572   ac_status=$?
17573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17574   (exit $ac_status); }; then
17575       case `/usr/bin/file conftest.$ac_objext` in
17576       *64-bit*)
17577         libsuff=64
17578         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
17579         ;;
17580       esac
17581     fi
17582     rm -rf conftest*
17583     ;;
17584   esac
17585
17586   # Append ld.so.conf contents to the search path
17587   if test -f /etc/ld.so.conf; then
17588     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17589     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
17590   fi
17591
17592   # We used to test for /lib/ld.so.1 and disable shared libraries on
17593   # powerpc, because MkLinux only supported shared libraries with the
17594   # GNU dynamic linker.  Since this was broken with cross compilers,
17595   # most powerpc-linux boxes support dynamic linking these days and
17596   # people can always --disable-shared, the test was removed, and we
17597   # assume the GNU/Linux dynamic linker is in use.
17598   dynamic_linker='GNU/Linux ld.so'
17599   ;;
17600
17601 knetbsd*-gnu)
17602   version_type=linux
17603   need_lib_prefix=no
17604   need_version=no
17605   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17606   soname_spec='${libname}${release}${shared_ext}$major'
17607   shlibpath_var=LD_LIBRARY_PATH
17608   shlibpath_overrides_runpath=no
17609   hardcode_into_libs=yes
17610   dynamic_linker='GNU ld.so'
17611   ;;
17612
17613 netbsd*)
17614   version_type=sunos
17615   need_lib_prefix=no
17616   need_version=no
17617   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17618     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17619     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17620     dynamic_linker='NetBSD (a.out) ld.so'
17621   else
17622     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17623     soname_spec='${libname}${release}${shared_ext}$major'
17624     dynamic_linker='NetBSD ld.elf_so'
17625   fi
17626   shlibpath_var=LD_LIBRARY_PATH
17627   shlibpath_overrides_runpath=yes
17628   hardcode_into_libs=yes
17629   ;;
17630
17631 newsos6)
17632   version_type=linux
17633   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17634   shlibpath_var=LD_LIBRARY_PATH
17635   shlibpath_overrides_runpath=yes
17636   ;;
17637
17638 nto-qnx*)
17639   version_type=linux
17640   need_lib_prefix=no
17641   need_version=no
17642   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17643   soname_spec='${libname}${release}${shared_ext}$major'
17644   shlibpath_var=LD_LIBRARY_PATH
17645   shlibpath_overrides_runpath=yes
17646   ;;
17647
17648 openbsd*)
17649   version_type=sunos
17650   need_lib_prefix=no
17651   need_version=yes
17652   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17653   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17654   shlibpath_var=LD_LIBRARY_PATH
17655   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17656     case $host_os in
17657       openbsd2.[89] | openbsd2.[89].*)
17658         shlibpath_overrides_runpath=no
17659         ;;
17660       *)
17661         shlibpath_overrides_runpath=yes
17662         ;;
17663       esac
17664   else
17665     shlibpath_overrides_runpath=yes
17666   fi
17667   ;;
17668
17669 os2*)
17670   libname_spec='$name'
17671   shrext_cmds=".dll"
17672   need_lib_prefix=no
17673   library_names_spec='$libname${shared_ext} $libname.a'
17674   dynamic_linker='OS/2 ld.exe'
17675   shlibpath_var=LIBPATH
17676   ;;
17677
17678 osf3* | osf4* | osf5*)
17679   version_type=osf
17680   need_lib_prefix=no
17681   need_version=no
17682   soname_spec='${libname}${release}${shared_ext}$major'
17683   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17684   shlibpath_var=LD_LIBRARY_PATH
17685   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17686   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17687   ;;
17688
17689 sco3.2v5*)
17690   version_type=osf
17691   soname_spec='${libname}${release}${shared_ext}$major'
17692   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17693   shlibpath_var=LD_LIBRARY_PATH
17694   ;;
17695
17696 solaris*)
17697   version_type=linux
17698   need_lib_prefix=no
17699   need_version=no
17700   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17701   soname_spec='${libname}${release}${shared_ext}$major'
17702   shlibpath_var=LD_LIBRARY_PATH
17703   shlibpath_overrides_runpath=yes
17704   hardcode_into_libs=yes
17705   # ldd complains unless libraries are executable
17706   postinstall_cmds='chmod +x $lib'
17707   ;;
17708
17709 sunos4*)
17710   version_type=sunos
17711   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17712   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17713   shlibpath_var=LD_LIBRARY_PATH
17714   shlibpath_overrides_runpath=yes
17715   if test "$with_gnu_ld" = yes; then
17716     need_lib_prefix=no
17717   fi
17718   need_version=yes
17719   ;;
17720
17721 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17722   version_type=linux
17723   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17724   soname_spec='${libname}${release}${shared_ext}$major'
17725   shlibpath_var=LD_LIBRARY_PATH
17726   case $host_vendor in
17727     sni)
17728       shlibpath_overrides_runpath=no
17729       need_lib_prefix=no
17730       export_dynamic_flag_spec='${wl}-Blargedynsym'
17731       runpath_var=LD_RUN_PATH
17732       ;;
17733     siemens)
17734       need_lib_prefix=no
17735       ;;
17736     motorola)
17737       need_lib_prefix=no
17738       need_version=no
17739       shlibpath_overrides_runpath=no
17740       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17741       ;;
17742   esac
17743   ;;
17744
17745 sysv4*MP*)
17746   if test -d /usr/nec ;then
17747     version_type=linux
17748     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17749     soname_spec='$libname${shared_ext}.$major'
17750     shlibpath_var=LD_LIBRARY_PATH
17751   fi
17752   ;;
17753
17754 uts4*)
17755   version_type=linux
17756   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17757   soname_spec='${libname}${release}${shared_ext}$major'
17758   shlibpath_var=LD_LIBRARY_PATH
17759   ;;
17760
17761 *)
17762   dynamic_linker=no
17763   ;;
17764 esac
17765 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17766 echo "${ECHO_T}$dynamic_linker" >&6; }
17767 test "$dynamic_linker" = no && can_build_shared=no
17768
17769 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17770 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
17771 hardcode_action_GCJ=
17772 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17773    test -n "$runpath_var GCJ" || \
17774    test "X$hardcode_automatic_GCJ"="Xyes" ; then
17775
17776   # We can hardcode non-existant directories.
17777   if test "$hardcode_direct_GCJ" != no &&
17778      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17779      # have to relink, otherwise we might link with an installed library
17780      # when we should be linking with a yet-to-be-installed one
17781      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17782      test "$hardcode_minus_L_GCJ" != no; then
17783     # Linking always hardcodes the temporary library directory.
17784     hardcode_action_GCJ=relink
17785   else
17786     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17787     hardcode_action_GCJ=immediate
17788   fi
17789 else
17790   # We cannot hardcode anything, or else we can only hardcode existing
17791   # directories.
17792   hardcode_action_GCJ=unsupported
17793 fi
17794 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17795 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
17796
17797 if test "$hardcode_action_GCJ" = relink; then
17798   # Fast installation is not supported
17799   enable_fast_install=no
17800 elif test "$shlibpath_overrides_runpath" = yes ||
17801      test "$enable_shared" = no; then
17802   # Fast installation is not necessary
17803   enable_fast_install=needless
17804 fi
17805
17806 striplib=
17807 old_striplib=
17808 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17809 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
17810 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17811   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17812   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17813   { echo "$as_me:$LINENO: result: yes" >&5
17814 echo "${ECHO_T}yes" >&6; }
17815 else
17816 # FIXME - insert some real tests, host_os isn't really good enough
17817   case $host_os in
17818    darwin*)
17819        if test -n "$STRIP" ; then
17820          striplib="$STRIP -x"
17821          { echo "$as_me:$LINENO: result: yes" >&5
17822 echo "${ECHO_T}yes" >&6; }
17823        else
17824   { echo "$as_me:$LINENO: result: no" >&5
17825 echo "${ECHO_T}no" >&6; }
17826 fi
17827        ;;
17828    *)
17829   { echo "$as_me:$LINENO: result: no" >&5
17830 echo "${ECHO_T}no" >&6; }
17831     ;;
17832   esac
17833 fi
17834
17835 if test "x$enable_dlopen" != xyes; then
17836   enable_dlopen=unknown
17837   enable_dlopen_self=unknown
17838   enable_dlopen_self_static=unknown
17839 else
17840   lt_cv_dlopen=no
17841   lt_cv_dlopen_libs=
17842
17843   case $host_os in
17844   beos*)
17845     lt_cv_dlopen="load_add_on"
17846     lt_cv_dlopen_libs=
17847     lt_cv_dlopen_self=yes
17848     ;;
17849
17850   mingw* | pw32*)
17851     lt_cv_dlopen="LoadLibrary"
17852     lt_cv_dlopen_libs=
17853    ;;
17854
17855   cygwin*)
17856     lt_cv_dlopen="dlopen"
17857     lt_cv_dlopen_libs=
17858    ;;
17859
17860   darwin*)
17861   # if libdl is installed we need to link against it
17862     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17863 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17864 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17865   echo $ECHO_N "(cached) $ECHO_C" >&6
17866 else
17867   ac_check_lib_save_LIBS=$LIBS
17868 LIBS="-ldl  $LIBS"
17869 cat >conftest.$ac_ext <<_ACEOF
17870 /* confdefs.h.  */
17871 _ACEOF
17872 cat confdefs.h >>conftest.$ac_ext
17873 cat >>conftest.$ac_ext <<_ACEOF
17874 /* end confdefs.h.  */
17875
17876 /* Override any GCC internal prototype to avoid an error.
17877    Use char because int might match the return type of a GCC
17878    builtin and then its argument prototype would still apply.  */
17879 #ifdef __cplusplus
17880 extern "C"
17881 #endif
17882 char dlopen ();
17883 int
17884 main ()
17885 {
17886 return dlopen ();
17887   ;
17888   return 0;
17889 }
17890 _ACEOF
17891 rm -f conftest.$ac_objext conftest$ac_exeext
17892 if { (ac_try="$ac_link"
17893 case "(($ac_try" in
17894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17895   *) ac_try_echo=$ac_try;;
17896 esac
17897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17898   (eval "$ac_link") 2>conftest.er1
17899   ac_status=$?
17900   grep -v '^ *+' conftest.er1 >conftest.err
17901   rm -f conftest.er1
17902   cat conftest.err >&5
17903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17904   (exit $ac_status); } && {
17905          test -z "$ac_c_werror_flag" ||
17906          test ! -s conftest.err
17907        } && test -s conftest$ac_exeext &&
17908        $as_test_x conftest$ac_exeext; then
17909   ac_cv_lib_dl_dlopen=yes
17910 else
17911   echo "$as_me: failed program was:" >&5
17912 sed 's/^/| /' conftest.$ac_ext >&5
17913
17914         ac_cv_lib_dl_dlopen=no
17915 fi
17916
17917 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17918       conftest$ac_exeext conftest.$ac_ext
17919 LIBS=$ac_check_lib_save_LIBS
17920 fi
17921 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17922 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17923 if test $ac_cv_lib_dl_dlopen = yes; then
17924   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17925 else
17926
17927     lt_cv_dlopen="dyld"
17928     lt_cv_dlopen_libs=
17929     lt_cv_dlopen_self=yes
17930
17931 fi
17932
17933    ;;
17934
17935   *)
17936     { echo "$as_me:$LINENO: checking for shl_load" >&5
17937 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
17938 if test "${ac_cv_func_shl_load+set}" = set; then
17939   echo $ECHO_N "(cached) $ECHO_C" >&6
17940 else
17941   cat >conftest.$ac_ext <<_ACEOF
17942 /* confdefs.h.  */
17943 _ACEOF
17944 cat confdefs.h >>conftest.$ac_ext
17945 cat >>conftest.$ac_ext <<_ACEOF
17946 /* end confdefs.h.  */
17947 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17948    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17949 #define shl_load innocuous_shl_load
17950
17951 /* System header to define __stub macros and hopefully few prototypes,
17952     which can conflict with char shl_load (); below.
17953     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17954     <limits.h> exists even on freestanding compilers.  */
17955
17956 #ifdef __STDC__
17957 # include <limits.h>
17958 #else
17959 # include <assert.h>
17960 #endif
17961
17962 #undef shl_load
17963
17964 /* Override any GCC internal prototype to avoid an error.
17965    Use char because int might match the return type of a GCC
17966    builtin and then its argument prototype would still apply.  */
17967 #ifdef __cplusplus
17968 extern "C"
17969 #endif
17970 char shl_load ();
17971 /* The GNU C library defines this for functions which it implements
17972     to always fail with ENOSYS.  Some functions are actually named
17973     something starting with __ and the normal name is an alias.  */
17974 #if defined __stub_shl_load || defined __stub___shl_load
17975 choke me
17976 #endif
17977
17978 int
17979 main ()
17980 {
17981 return shl_load ();
17982   ;
17983   return 0;
17984 }
17985 _ACEOF
17986 rm -f conftest.$ac_objext conftest$ac_exeext
17987 if { (ac_try="$ac_link"
17988 case "(($ac_try" in
17989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17990   *) ac_try_echo=$ac_try;;
17991 esac
17992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17993   (eval "$ac_link") 2>conftest.er1
17994   ac_status=$?
17995   grep -v '^ *+' conftest.er1 >conftest.err
17996   rm -f conftest.er1
17997   cat conftest.err >&5
17998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17999   (exit $ac_status); } && {
18000          test -z "$ac_c_werror_flag" ||
18001          test ! -s conftest.err
18002        } && test -s conftest$ac_exeext &&
18003        $as_test_x conftest$ac_exeext; then
18004   ac_cv_func_shl_load=yes
18005 else
18006   echo "$as_me: failed program was:" >&5
18007 sed 's/^/| /' conftest.$ac_ext >&5
18008
18009         ac_cv_func_shl_load=no
18010 fi
18011
18012 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18013       conftest$ac_exeext conftest.$ac_ext
18014 fi
18015 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
18016 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
18017 if test $ac_cv_func_shl_load = yes; then
18018   lt_cv_dlopen="shl_load"
18019 else
18020   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
18021 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
18022 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
18023   echo $ECHO_N "(cached) $ECHO_C" >&6
18024 else
18025   ac_check_lib_save_LIBS=$LIBS
18026 LIBS="-ldld  $LIBS"
18027 cat >conftest.$ac_ext <<_ACEOF
18028 /* confdefs.h.  */
18029 _ACEOF
18030 cat confdefs.h >>conftest.$ac_ext
18031 cat >>conftest.$ac_ext <<_ACEOF
18032 /* end confdefs.h.  */
18033
18034 /* Override any GCC internal prototype to avoid an error.
18035    Use char because int might match the return type of a GCC
18036    builtin and then its argument prototype would still apply.  */
18037 #ifdef __cplusplus
18038 extern "C"
18039 #endif
18040 char shl_load ();
18041 int
18042 main ()
18043 {
18044 return shl_load ();
18045   ;
18046   return 0;
18047 }
18048 _ACEOF
18049 rm -f conftest.$ac_objext conftest$ac_exeext
18050 if { (ac_try="$ac_link"
18051 case "(($ac_try" in
18052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18053   *) ac_try_echo=$ac_try;;
18054 esac
18055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18056   (eval "$ac_link") 2>conftest.er1
18057   ac_status=$?
18058   grep -v '^ *+' conftest.er1 >conftest.err
18059   rm -f conftest.er1
18060   cat conftest.err >&5
18061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18062   (exit $ac_status); } && {
18063          test -z "$ac_c_werror_flag" ||
18064          test ! -s conftest.err
18065        } && test -s conftest$ac_exeext &&
18066        $as_test_x conftest$ac_exeext; then
18067   ac_cv_lib_dld_shl_load=yes
18068 else
18069   echo "$as_me: failed program was:" >&5
18070 sed 's/^/| /' conftest.$ac_ext >&5
18071
18072         ac_cv_lib_dld_shl_load=no
18073 fi
18074
18075 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18076       conftest$ac_exeext conftest.$ac_ext
18077 LIBS=$ac_check_lib_save_LIBS
18078 fi
18079 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
18080 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
18081 if test $ac_cv_lib_dld_shl_load = yes; then
18082   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18083 else
18084   { echo "$as_me:$LINENO: checking for dlopen" >&5
18085 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
18086 if test "${ac_cv_func_dlopen+set}" = set; then
18087   echo $ECHO_N "(cached) $ECHO_C" >&6
18088 else
18089   cat >conftest.$ac_ext <<_ACEOF
18090 /* confdefs.h.  */
18091 _ACEOF
18092 cat confdefs.h >>conftest.$ac_ext
18093 cat >>conftest.$ac_ext <<_ACEOF
18094 /* end confdefs.h.  */
18095 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
18096    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18097 #define dlopen innocuous_dlopen
18098
18099 /* System header to define __stub macros and hopefully few prototypes,
18100     which can conflict with char dlopen (); below.
18101     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18102     <limits.h> exists even on freestanding compilers.  */
18103
18104 #ifdef __STDC__
18105 # include <limits.h>
18106 #else
18107 # include <assert.h>
18108 #endif
18109
18110 #undef dlopen
18111
18112 /* Override any GCC internal prototype to avoid an error.
18113    Use char because int might match the return type of a GCC
18114    builtin and then its argument prototype would still apply.  */
18115 #ifdef __cplusplus
18116 extern "C"
18117 #endif
18118 char dlopen ();
18119 /* The GNU C library defines this for functions which it implements
18120     to always fail with ENOSYS.  Some functions are actually named
18121     something starting with __ and the normal name is an alias.  */
18122 #if defined __stub_dlopen || defined __stub___dlopen
18123 choke me
18124 #endif
18125
18126 int
18127 main ()
18128 {
18129 return dlopen ();
18130   ;
18131   return 0;
18132 }
18133 _ACEOF
18134 rm -f conftest.$ac_objext conftest$ac_exeext
18135 if { (ac_try="$ac_link"
18136 case "(($ac_try" in
18137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18138   *) ac_try_echo=$ac_try;;
18139 esac
18140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18141   (eval "$ac_link") 2>conftest.er1
18142   ac_status=$?
18143   grep -v '^ *+' conftest.er1 >conftest.err
18144   rm -f conftest.er1
18145   cat conftest.err >&5
18146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18147   (exit $ac_status); } && {
18148          test -z "$ac_c_werror_flag" ||
18149          test ! -s conftest.err
18150        } && test -s conftest$ac_exeext &&
18151        $as_test_x conftest$ac_exeext; then
18152   ac_cv_func_dlopen=yes
18153 else
18154   echo "$as_me: failed program was:" >&5
18155 sed 's/^/| /' conftest.$ac_ext >&5
18156
18157         ac_cv_func_dlopen=no
18158 fi
18159
18160 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18161       conftest$ac_exeext conftest.$ac_ext
18162 fi
18163 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18164 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
18165 if test $ac_cv_func_dlopen = yes; then
18166   lt_cv_dlopen="dlopen"
18167 else
18168   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18169 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
18170 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18171   echo $ECHO_N "(cached) $ECHO_C" >&6
18172 else
18173   ac_check_lib_save_LIBS=$LIBS
18174 LIBS="-ldl  $LIBS"
18175 cat >conftest.$ac_ext <<_ACEOF
18176 /* confdefs.h.  */
18177 _ACEOF
18178 cat confdefs.h >>conftest.$ac_ext
18179 cat >>conftest.$ac_ext <<_ACEOF
18180 /* end confdefs.h.  */
18181
18182 /* Override any GCC internal prototype to avoid an error.
18183    Use char because int might match the return type of a GCC
18184    builtin and then its argument prototype would still apply.  */
18185 #ifdef __cplusplus
18186 extern "C"
18187 #endif
18188 char dlopen ();
18189 int
18190 main ()
18191 {
18192 return dlopen ();
18193   ;
18194   return 0;
18195 }
18196 _ACEOF
18197 rm -f conftest.$ac_objext conftest$ac_exeext
18198 if { (ac_try="$ac_link"
18199 case "(($ac_try" in
18200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18201   *) ac_try_echo=$ac_try;;
18202 esac
18203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18204   (eval "$ac_link") 2>conftest.er1
18205   ac_status=$?
18206   grep -v '^ *+' conftest.er1 >conftest.err
18207   rm -f conftest.er1
18208   cat conftest.err >&5
18209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18210   (exit $ac_status); } && {
18211          test -z "$ac_c_werror_flag" ||
18212          test ! -s conftest.err
18213        } && test -s conftest$ac_exeext &&
18214        $as_test_x conftest$ac_exeext; then
18215   ac_cv_lib_dl_dlopen=yes
18216 else
18217   echo "$as_me: failed program was:" >&5
18218 sed 's/^/| /' conftest.$ac_ext >&5
18219
18220         ac_cv_lib_dl_dlopen=no
18221 fi
18222
18223 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18224       conftest$ac_exeext conftest.$ac_ext
18225 LIBS=$ac_check_lib_save_LIBS
18226 fi
18227 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18228 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
18229 if test $ac_cv_lib_dl_dlopen = yes; then
18230   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18231 else
18232   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18233 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
18234 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18235   echo $ECHO_N "(cached) $ECHO_C" >&6
18236 else
18237   ac_check_lib_save_LIBS=$LIBS
18238 LIBS="-lsvld  $LIBS"
18239 cat >conftest.$ac_ext <<_ACEOF
18240 /* confdefs.h.  */
18241 _ACEOF
18242 cat confdefs.h >>conftest.$ac_ext
18243 cat >>conftest.$ac_ext <<_ACEOF
18244 /* end confdefs.h.  */
18245
18246 /* Override any GCC internal prototype to avoid an error.
18247    Use char because int might match the return type of a GCC
18248    builtin and then its argument prototype would still apply.  */
18249 #ifdef __cplusplus
18250 extern "C"
18251 #endif
18252 char dlopen ();
18253 int
18254 main ()
18255 {
18256 return dlopen ();
18257   ;
18258   return 0;
18259 }
18260 _ACEOF
18261 rm -f conftest.$ac_objext conftest$ac_exeext
18262 if { (ac_try="$ac_link"
18263 case "(($ac_try" in
18264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18265   *) ac_try_echo=$ac_try;;
18266 esac
18267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18268   (eval "$ac_link") 2>conftest.er1
18269   ac_status=$?
18270   grep -v '^ *+' conftest.er1 >conftest.err
18271   rm -f conftest.er1
18272   cat conftest.err >&5
18273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18274   (exit $ac_status); } && {
18275          test -z "$ac_c_werror_flag" ||
18276          test ! -s conftest.err
18277        } && test -s conftest$ac_exeext &&
18278        $as_test_x conftest$ac_exeext; then
18279   ac_cv_lib_svld_dlopen=yes
18280 else
18281   echo "$as_me: failed program was:" >&5
18282 sed 's/^/| /' conftest.$ac_ext >&5
18283
18284         ac_cv_lib_svld_dlopen=no
18285 fi
18286
18287 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18288       conftest$ac_exeext conftest.$ac_ext
18289 LIBS=$ac_check_lib_save_LIBS
18290 fi
18291 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18292 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
18293 if test $ac_cv_lib_svld_dlopen = yes; then
18294   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18295 else
18296   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18297 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
18298 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18299   echo $ECHO_N "(cached) $ECHO_C" >&6
18300 else
18301   ac_check_lib_save_LIBS=$LIBS
18302 LIBS="-ldld  $LIBS"
18303 cat >conftest.$ac_ext <<_ACEOF
18304 /* confdefs.h.  */
18305 _ACEOF
18306 cat confdefs.h >>conftest.$ac_ext
18307 cat >>conftest.$ac_ext <<_ACEOF
18308 /* end confdefs.h.  */
18309
18310 /* Override any GCC internal prototype to avoid an error.
18311    Use char because int might match the return type of a GCC
18312    builtin and then its argument prototype would still apply.  */
18313 #ifdef __cplusplus
18314 extern "C"
18315 #endif
18316 char dld_link ();
18317 int
18318 main ()
18319 {
18320 return dld_link ();
18321   ;
18322   return 0;
18323 }
18324 _ACEOF
18325 rm -f conftest.$ac_objext conftest$ac_exeext
18326 if { (ac_try="$ac_link"
18327 case "(($ac_try" in
18328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18329   *) ac_try_echo=$ac_try;;
18330 esac
18331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18332   (eval "$ac_link") 2>conftest.er1
18333   ac_status=$?
18334   grep -v '^ *+' conftest.er1 >conftest.err
18335   rm -f conftest.er1
18336   cat conftest.err >&5
18337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18338   (exit $ac_status); } && {
18339          test -z "$ac_c_werror_flag" ||
18340          test ! -s conftest.err
18341        } && test -s conftest$ac_exeext &&
18342        $as_test_x conftest$ac_exeext; then
18343   ac_cv_lib_dld_dld_link=yes
18344 else
18345   echo "$as_me: failed program was:" >&5
18346 sed 's/^/| /' conftest.$ac_ext >&5
18347
18348         ac_cv_lib_dld_dld_link=no
18349 fi
18350
18351 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18352       conftest$ac_exeext conftest.$ac_ext
18353 LIBS=$ac_check_lib_save_LIBS
18354 fi
18355 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18356 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
18357 if test $ac_cv_lib_dld_dld_link = yes; then
18358   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18359 fi
18360
18361
18362 fi
18363
18364
18365 fi
18366
18367
18368 fi
18369
18370
18371 fi
18372
18373
18374 fi
18375
18376     ;;
18377   esac
18378
18379   if test "x$lt_cv_dlopen" != xno; then
18380     enable_dlopen=yes
18381   else
18382     enable_dlopen=no
18383   fi
18384
18385   case $lt_cv_dlopen in
18386   dlopen)
18387     save_CPPFLAGS="$CPPFLAGS"
18388     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18389
18390     save_LDFLAGS="$LDFLAGS"
18391     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18392
18393     save_LIBS="$LIBS"
18394     LIBS="$lt_cv_dlopen_libs $LIBS"
18395
18396     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18397 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
18398 if test "${lt_cv_dlopen_self+set}" = set; then
18399   echo $ECHO_N "(cached) $ECHO_C" >&6
18400 else
18401           if test "$cross_compiling" = yes; then :
18402   lt_cv_dlopen_self=cross
18403 else
18404   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18405   lt_status=$lt_dlunknown
18406   cat > conftest.$ac_ext <<EOF
18407 #line 18407 "configure"
18408 #include "confdefs.h"
18409
18410 #if HAVE_DLFCN_H
18411 #include <dlfcn.h>
18412 #endif
18413
18414 #include <stdio.h>
18415
18416 #ifdef RTLD_GLOBAL
18417 #  define LT_DLGLOBAL           RTLD_GLOBAL
18418 #else
18419 #  ifdef DL_GLOBAL
18420 #    define LT_DLGLOBAL         DL_GLOBAL
18421 #  else
18422 #    define LT_DLGLOBAL         0
18423 #  endif
18424 #endif
18425
18426 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18427    find out it does not work in some platform. */
18428 #ifndef LT_DLLAZY_OR_NOW
18429 #  ifdef RTLD_LAZY
18430 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18431 #  else
18432 #    ifdef DL_LAZY
18433 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18434 #    else
18435 #      ifdef RTLD_NOW
18436 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18437 #      else
18438 #        ifdef DL_NOW
18439 #          define LT_DLLAZY_OR_NOW      DL_NOW
18440 #        else
18441 #          define LT_DLLAZY_OR_NOW      0
18442 #        endif
18443 #      endif
18444 #    endif
18445 #  endif
18446 #endif
18447
18448 #ifdef __cplusplus
18449 extern "C" void exit (int);
18450 #endif
18451
18452 void fnord() { int i=42;}
18453 int main ()
18454 {
18455   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18456   int status = $lt_dlunknown;
18457
18458   if (self)
18459     {
18460       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18461       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18462       /* dlclose (self); */
18463     }
18464
18465     exit (status);
18466 }
18467 EOF
18468   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18469   (eval $ac_link) 2>&5
18470   ac_status=$?
18471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18472   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18473     (./conftest; exit; ) 2>/dev/null
18474     lt_status=$?
18475     case x$lt_status in
18476       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18477       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18478       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18479     esac
18480   else :
18481     # compilation failed
18482     lt_cv_dlopen_self=no
18483   fi
18484 fi
18485 rm -fr conftest*
18486
18487
18488 fi
18489 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18490 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
18491
18492     if test "x$lt_cv_dlopen_self" = xyes; then
18493       LDFLAGS="$LDFLAGS $link_static_flag"
18494       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18495 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
18496 if test "${lt_cv_dlopen_self_static+set}" = set; then
18497   echo $ECHO_N "(cached) $ECHO_C" >&6
18498 else
18499           if test "$cross_compiling" = yes; then :
18500   lt_cv_dlopen_self_static=cross
18501 else
18502   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18503   lt_status=$lt_dlunknown
18504   cat > conftest.$ac_ext <<EOF
18505 #line 18505 "configure"
18506 #include "confdefs.h"
18507
18508 #if HAVE_DLFCN_H
18509 #include <dlfcn.h>
18510 #endif
18511
18512 #include <stdio.h>
18513
18514 #ifdef RTLD_GLOBAL
18515 #  define LT_DLGLOBAL           RTLD_GLOBAL
18516 #else
18517 #  ifdef DL_GLOBAL
18518 #    define LT_DLGLOBAL         DL_GLOBAL
18519 #  else
18520 #    define LT_DLGLOBAL         0
18521 #  endif
18522 #endif
18523
18524 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18525    find out it does not work in some platform. */
18526 #ifndef LT_DLLAZY_OR_NOW
18527 #  ifdef RTLD_LAZY
18528 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18529 #  else
18530 #    ifdef DL_LAZY
18531 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18532 #    else
18533 #      ifdef RTLD_NOW
18534 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18535 #      else
18536 #        ifdef DL_NOW
18537 #          define LT_DLLAZY_OR_NOW      DL_NOW
18538 #        else
18539 #          define LT_DLLAZY_OR_NOW      0
18540 #        endif
18541 #      endif
18542 #    endif
18543 #  endif
18544 #endif
18545
18546 #ifdef __cplusplus
18547 extern "C" void exit (int);
18548 #endif
18549
18550 void fnord() { int i=42;}
18551 int main ()
18552 {
18553   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18554   int status = $lt_dlunknown;
18555
18556   if (self)
18557     {
18558       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18559       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18560       /* dlclose (self); */
18561     }
18562
18563     exit (status);
18564 }
18565 EOF
18566   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18567   (eval $ac_link) 2>&5
18568   ac_status=$?
18569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18570   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18571     (./conftest; exit; ) 2>/dev/null
18572     lt_status=$?
18573     case x$lt_status in
18574       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18575       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18576       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18577     esac
18578   else :
18579     # compilation failed
18580     lt_cv_dlopen_self_static=no
18581   fi
18582 fi
18583 rm -fr conftest*
18584
18585
18586 fi
18587 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18588 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
18589     fi
18590
18591     CPPFLAGS="$save_CPPFLAGS"
18592     LDFLAGS="$save_LDFLAGS"
18593     LIBS="$save_LIBS"
18594     ;;
18595   esac
18596
18597   case $lt_cv_dlopen_self in
18598   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18599   *) enable_dlopen_self=unknown ;;
18600   esac
18601
18602   case $lt_cv_dlopen_self_static in
18603   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18604   *) enable_dlopen_self_static=unknown ;;
18605   esac
18606 fi
18607
18608
18609 # The else clause should only fire when bootstrapping the
18610 # libtool distribution, otherwise you forgot to ship ltmain.sh
18611 # with your package, and you will get complaints that there are
18612 # no rules to generate ltmain.sh.
18613 if test -f "$ltmain"; then
18614   # See if we are running on zsh, and set the options which allow our commands through
18615   # without removal of \ escapes.
18616   if test -n "${ZSH_VERSION+set}" ; then
18617     setopt NO_GLOB_SUBST
18618   fi
18619   # Now quote all the things that may contain metacharacters while being
18620   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18621   # variables and quote the copies for generation of the libtool script.
18622   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18623     SED SHELL STRIP \
18624     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18625     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18626     deplibs_check_method reload_flag reload_cmds need_locks \
18627     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18628     lt_cv_sys_global_symbol_to_c_name_address \
18629     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18630     old_postinstall_cmds old_postuninstall_cmds \
18631     compiler_GCJ \
18632     CC_GCJ \
18633     LD_GCJ \
18634     lt_prog_compiler_wl_GCJ \
18635     lt_prog_compiler_pic_GCJ \
18636     lt_prog_compiler_static_GCJ \
18637     lt_prog_compiler_no_builtin_flag_GCJ \
18638     export_dynamic_flag_spec_GCJ \
18639     thread_safe_flag_spec_GCJ \
18640     whole_archive_flag_spec_GCJ \
18641     enable_shared_with_static_runtimes_GCJ \
18642     old_archive_cmds_GCJ \
18643     old_archive_from_new_cmds_GCJ \
18644     predep_objects_GCJ \
18645     postdep_objects_GCJ \
18646     predeps_GCJ \
18647     postdeps_GCJ \
18648     compiler_lib_search_path_GCJ \
18649     archive_cmds_GCJ \
18650     archive_expsym_cmds_GCJ \
18651     postinstall_cmds_GCJ \
18652     postuninstall_cmds_GCJ \
18653     old_archive_from_expsyms_cmds_GCJ \
18654     allow_undefined_flag_GCJ \
18655     no_undefined_flag_GCJ \
18656     export_symbols_cmds_GCJ \
18657     hardcode_libdir_flag_spec_GCJ \
18658     hardcode_libdir_flag_spec_ld_GCJ \
18659     hardcode_libdir_separator_GCJ \
18660     hardcode_automatic_GCJ \
18661     module_cmds_GCJ \
18662     module_expsym_cmds_GCJ \
18663     lt_cv_prog_compiler_c_o_GCJ \
18664     exclude_expsyms_GCJ \
18665     include_expsyms_GCJ; do
18666
18667     case $var in
18668     old_archive_cmds_GCJ | \
18669     old_archive_from_new_cmds_GCJ | \
18670     archive_cmds_GCJ | \
18671     archive_expsym_cmds_GCJ | \
18672     module_cmds_GCJ | \
18673     module_expsym_cmds_GCJ | \
18674     old_archive_from_expsyms_cmds_GCJ | \
18675     export_symbols_cmds_GCJ | \
18676     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18677     postinstall_cmds | postuninstall_cmds | \
18678     old_postinstall_cmds | old_postuninstall_cmds | \
18679     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18680       # Double-quote double-evaled strings.
18681       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18682       ;;
18683     *)
18684       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18685       ;;
18686     esac
18687   done
18688
18689   case $lt_echo in
18690   *'\$0 --fallback-echo"')
18691     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18692     ;;
18693   esac
18694
18695 cfgfile="$ofile"
18696
18697   cat <<__EOF__ >> "$cfgfile"
18698 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18699
18700 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18701
18702 # Shell to use when invoking shell scripts.
18703 SHELL=$lt_SHELL
18704
18705 # Whether or not to build shared libraries.
18706 build_libtool_libs=$enable_shared
18707
18708 # Whether or not to build static libraries.
18709 build_old_libs=$enable_static
18710
18711 # Whether or not to add -lc for building shared libraries.
18712 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18713
18714 # Whether or not to disallow shared libs when runtime libs are static
18715 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18716
18717 # Whether or not to optimize for fast installation.
18718 fast_install=$enable_fast_install
18719
18720 # The host system.
18721 host_alias=$host_alias
18722 host=$host
18723
18724 # An echo program that does not interpret backslashes.
18725 echo=$lt_echo
18726
18727 # The archiver.
18728 AR=$lt_AR
18729 AR_FLAGS=$lt_AR_FLAGS
18730
18731 # A C compiler.
18732 LTCC=$lt_LTCC
18733
18734 # A language-specific compiler.
18735 CC=$lt_compiler_GCJ
18736
18737 # Is the compiler the GNU C compiler?
18738 with_gcc=$GCC_GCJ
18739
18740 # An ERE matcher.
18741 EGREP=$lt_EGREP
18742
18743 # The linker used to build libraries.
18744 LD=$lt_LD_GCJ
18745
18746 # Whether we need hard or soft links.
18747 LN_S=$lt_LN_S
18748
18749 # A BSD-compatible nm program.
18750 NM=$lt_NM
18751
18752 # A symbol stripping program
18753 STRIP=$lt_STRIP
18754
18755 # Used to examine libraries when file_magic_cmd begins "file"
18756 MAGIC_CMD=$MAGIC_CMD
18757
18758 # Used on cygwin: DLL creation program.
18759 DLLTOOL="$DLLTOOL"
18760
18761 # Used on cygwin: object dumper.
18762 OBJDUMP="$OBJDUMP"
18763
18764 # Used on cygwin: assembler.
18765 AS="$AS"
18766
18767 # The name of the directory that contains temporary libtool files.
18768 objdir=$objdir
18769
18770 # How to create reloadable object files.
18771 reload_flag=$lt_reload_flag
18772 reload_cmds=$lt_reload_cmds
18773
18774 # How to pass a linker flag through the compiler.
18775 wl=$lt_lt_prog_compiler_wl_GCJ
18776
18777 # Object file suffix (normally "o").
18778 objext="$ac_objext"
18779
18780 # Old archive suffix (normally "a").
18781 libext="$libext"
18782
18783 # Shared library suffix (normally ".so").
18784 shrext_cmds='$shrext_cmds'
18785
18786 # Executable file suffix (normally "").
18787 exeext="$exeext"
18788
18789 # Additional compiler flags for building library objects.
18790 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18791 pic_mode=$pic_mode
18792
18793 # What is the maximum length of a command?
18794 max_cmd_len=$lt_cv_sys_max_cmd_len
18795
18796 # Does compiler simultaneously support -c and -o options?
18797 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18798
18799 # Must we lock files when doing compilation ?
18800 need_locks=$lt_need_locks
18801
18802 # Do we need the lib prefix for modules?
18803 need_lib_prefix=$need_lib_prefix
18804
18805 # Do we need a version for libraries?
18806 need_version=$need_version
18807
18808 # Whether dlopen is supported.
18809 dlopen_support=$enable_dlopen
18810
18811 # Whether dlopen of programs is supported.
18812 dlopen_self=$enable_dlopen_self
18813
18814 # Whether dlopen of statically linked programs is supported.
18815 dlopen_self_static=$enable_dlopen_self_static
18816
18817 # Compiler flag to prevent dynamic linking.
18818 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18819
18820 # Compiler flag to turn off builtin functions.
18821 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18822
18823 # Compiler flag to allow reflexive dlopens.
18824 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18825
18826 # Compiler flag to generate shared objects directly from archives.
18827 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18828
18829 # Compiler flag to generate thread-safe objects.
18830 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18831
18832 # Library versioning type.
18833 version_type=$version_type
18834
18835 # Format of library name prefix.
18836 libname_spec=$lt_libname_spec
18837
18838 # List of archive names.  First name is the real one, the rest are links.
18839 # The last name is the one that the linker finds with -lNAME.
18840 library_names_spec=$lt_library_names_spec
18841
18842 # The coded name of the library, if different from the real name.
18843 soname_spec=$lt_soname_spec
18844
18845 # Commands used to build and install an old-style archive.
18846 RANLIB=$lt_RANLIB
18847 old_archive_cmds=$lt_old_archive_cmds_GCJ
18848 old_postinstall_cmds=$lt_old_postinstall_cmds
18849 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18850
18851 # Create an old-style archive from a shared archive.
18852 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18853
18854 # Create a temporary old-style archive to link instead of a shared archive.
18855 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18856
18857 # Commands used to build and install a shared archive.
18858 archive_cmds=$lt_archive_cmds_GCJ
18859 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18860 postinstall_cmds=$lt_postinstall_cmds
18861 postuninstall_cmds=$lt_postuninstall_cmds
18862
18863 # Commands used to build a loadable module (assumed same as above if empty)
18864 module_cmds=$lt_module_cmds_GCJ
18865 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18866
18867 # Commands to strip libraries.
18868 old_striplib=$lt_old_striplib
18869 striplib=$lt_striplib
18870
18871 # Dependencies to place before the objects being linked to create a
18872 # shared library.
18873 predep_objects=$lt_predep_objects_GCJ
18874
18875 # Dependencies to place after the objects being linked to create a
18876 # shared library.
18877 postdep_objects=$lt_postdep_objects_GCJ
18878
18879 # Dependencies to place before the objects being linked to create a
18880 # shared library.
18881 predeps=$lt_predeps_GCJ
18882
18883 # Dependencies to place after the objects being linked to create a
18884 # shared library.
18885 postdeps=$lt_postdeps_GCJ
18886
18887 # The library search path used internally by the compiler when linking
18888 # a shared library.
18889 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18890
18891 # Method to check whether dependent libraries are shared objects.
18892 deplibs_check_method=$lt_deplibs_check_method
18893
18894 # Command to use when deplibs_check_method == file_magic.
18895 file_magic_cmd=$lt_file_magic_cmd
18896
18897 # Flag that allows shared libraries with undefined symbols to be built.
18898 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18899
18900 # Flag that forces no undefined symbols.
18901 no_undefined_flag=$lt_no_undefined_flag_GCJ
18902
18903 # Commands used to finish a libtool library installation in a directory.
18904 finish_cmds=$lt_finish_cmds
18905
18906 # Same as above, but a single script fragment to be evaled but not shown.
18907 finish_eval=$lt_finish_eval
18908
18909 # Take the output of nm and produce a listing of raw symbols and C names.
18910 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18911
18912 # Transform the output of nm in a proper C declaration
18913 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18914
18915 # Transform the output of nm in a C name address pair
18916 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18917
18918 # This is the shared library runtime path variable.
18919 runpath_var=$runpath_var
18920
18921 # This is the shared library path variable.
18922 shlibpath_var=$shlibpath_var
18923
18924 # Is shlibpath searched before the hard-coded library search path?
18925 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18926
18927 # How to hardcode a shared library path into an executable.
18928 hardcode_action=$hardcode_action_GCJ
18929
18930 # Whether we should hardcode library paths into libraries.
18931 hardcode_into_libs=$hardcode_into_libs
18932
18933 # Flag to hardcode \$libdir into a binary during linking.
18934 # This must work even if \$libdir does not exist.
18935 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18936
18937 # If ld is used when linking, flag to hardcode \$libdir into
18938 # a binary during linking. This must work even if \$libdir does
18939 # not exist.
18940 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18941
18942 # Whether we need a single -rpath flag with a separated argument.
18943 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18944
18945 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18946 # resulting binary.
18947 hardcode_direct=$hardcode_direct_GCJ
18948
18949 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18950 # resulting binary.
18951 hardcode_minus_L=$hardcode_minus_L_GCJ
18952
18953 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18954 # the resulting binary.
18955 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18956
18957 # Set to yes if building a shared library automatically hardcodes DIR into the library
18958 # and all subsequent libraries and executables linked against it.
18959 hardcode_automatic=$hardcode_automatic_GCJ
18960
18961 # Variables whose values should be saved in libtool wrapper scripts and
18962 # restored at relink time.
18963 variables_saved_for_relink="$variables_saved_for_relink"
18964
18965 # Whether libtool must link a program against all its dependency libraries.
18966 link_all_deplibs=$link_all_deplibs_GCJ
18967
18968 # Compile-time system search path for libraries
18969 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18970
18971 # Run-time system search path for libraries
18972 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18973
18974 # Fix the shell variable \$srcfile for the compiler.
18975 fix_srcfile_path="$fix_srcfile_path_GCJ"
18976
18977 # Set to yes if exported symbols are required.
18978 always_export_symbols=$always_export_symbols_GCJ
18979
18980 # The commands to list exported symbols.
18981 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18982
18983 # The commands to extract the exported symbol list from a shared archive.
18984 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18985
18986 # Symbols that should not be listed in the preloaded symbols.
18987 exclude_expsyms=$lt_exclude_expsyms_GCJ
18988
18989 # Symbols that must always be exported.
18990 include_expsyms=$lt_include_expsyms_GCJ
18991
18992 # ### END LIBTOOL TAG CONFIG: $tagname
18993
18994 __EOF__
18995
18996
18997 else
18998   # If there is no Makefile yet, we rely on a make rule to execute
18999   # `config.status --recheck' to rerun these tests and create the
19000   # libtool script then.
19001   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19002   if test -f "$ltmain_in"; then
19003     test -f Makefile && make "$ltmain"
19004   fi
19005 fi
19006
19007
19008 ac_ext=c
19009 ac_cpp='$CPP $CPPFLAGS'
19010 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19011 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19012 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19013
19014 CC="$lt_save_CC"
19015
19016         else
19017           tagname=""
19018         fi
19019         ;;
19020
19021       RC)
19022
19023
19024 # Source file extension for RC test sources.
19025 ac_ext=rc
19026
19027 # Object file extension for compiled RC test sources.
19028 objext=o
19029 objext_RC=$objext
19030
19031 # Code to be used in simple compile tests
19032 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19033
19034 # Code to be used in simple link tests
19035 lt_simple_link_test_code="$lt_simple_compile_test_code"
19036
19037 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19038
19039 # If no C compiler was specified, use CC.
19040 LTCC=${LTCC-"$CC"}
19041
19042 # Allow CC to be a program name with arguments.
19043 compiler=$CC
19044
19045
19046 # Allow CC to be a program name with arguments.
19047 lt_save_CC="$CC"
19048 CC=${RC-"windres"}
19049 compiler=$CC
19050 compiler_RC=$CC
19051 lt_cv_prog_compiler_c_o_RC=yes
19052
19053 # The else clause should only fire when bootstrapping the
19054 # libtool distribution, otherwise you forgot to ship ltmain.sh
19055 # with your package, and you will get complaints that there are
19056 # no rules to generate ltmain.sh.
19057 if test -f "$ltmain"; then
19058   # See if we are running on zsh, and set the options which allow our commands through
19059   # without removal of \ escapes.
19060   if test -n "${ZSH_VERSION+set}" ; then
19061     setopt NO_GLOB_SUBST
19062   fi
19063   # Now quote all the things that may contain metacharacters while being
19064   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19065   # variables and quote the copies for generation of the libtool script.
19066   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19067     SED SHELL STRIP \
19068     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19069     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19070     deplibs_check_method reload_flag reload_cmds need_locks \
19071     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19072     lt_cv_sys_global_symbol_to_c_name_address \
19073     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19074     old_postinstall_cmds old_postuninstall_cmds \
19075     compiler_RC \
19076     CC_RC \
19077     LD_RC \
19078     lt_prog_compiler_wl_RC \
19079     lt_prog_compiler_pic_RC \
19080     lt_prog_compiler_static_RC \
19081     lt_prog_compiler_no_builtin_flag_RC \
19082     export_dynamic_flag_spec_RC \
19083     thread_safe_flag_spec_RC \
19084     whole_archive_flag_spec_RC \
19085     enable_shared_with_static_runtimes_RC \
19086     old_archive_cmds_RC \
19087     old_archive_from_new_cmds_RC \
19088     predep_objects_RC \
19089     postdep_objects_RC \
19090     predeps_RC \
19091     postdeps_RC \
19092     compiler_lib_search_path_RC \
19093     archive_cmds_RC \
19094     archive_expsym_cmds_RC \
19095     postinstall_cmds_RC \
19096     postuninstall_cmds_RC \
19097     old_archive_from_expsyms_cmds_RC \
19098     allow_undefined_flag_RC \
19099     no_undefined_flag_RC \
19100     export_symbols_cmds_RC \
19101     hardcode_libdir_flag_spec_RC \
19102     hardcode_libdir_flag_spec_ld_RC \
19103     hardcode_libdir_separator_RC \
19104     hardcode_automatic_RC \
19105     module_cmds_RC \
19106     module_expsym_cmds_RC \
19107     lt_cv_prog_compiler_c_o_RC \
19108     exclude_expsyms_RC \
19109     include_expsyms_RC; do
19110
19111     case $var in
19112     old_archive_cmds_RC | \
19113     old_archive_from_new_cmds_RC | \
19114     archive_cmds_RC | \
19115     archive_expsym_cmds_RC | \
19116     module_cmds_RC | \
19117     module_expsym_cmds_RC | \
19118     old_archive_from_expsyms_cmds_RC | \
19119     export_symbols_cmds_RC | \
19120     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19121     postinstall_cmds | postuninstall_cmds | \
19122     old_postinstall_cmds | old_postuninstall_cmds | \
19123     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19124       # Double-quote double-evaled strings.
19125       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19126       ;;
19127     *)
19128       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19129       ;;
19130     esac
19131   done
19132
19133   case $lt_echo in
19134   *'\$0 --fallback-echo"')
19135     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19136     ;;
19137   esac
19138
19139 cfgfile="$ofile"
19140
19141   cat <<__EOF__ >> "$cfgfile"
19142 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19143
19144 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19145
19146 # Shell to use when invoking shell scripts.
19147 SHELL=$lt_SHELL
19148
19149 # Whether or not to build shared libraries.
19150 build_libtool_libs=$enable_shared
19151
19152 # Whether or not to build static libraries.
19153 build_old_libs=$enable_static
19154
19155 # Whether or not to add -lc for building shared libraries.
19156 build_libtool_need_lc=$archive_cmds_need_lc_RC
19157
19158 # Whether or not to disallow shared libs when runtime libs are static
19159 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19160
19161 # Whether or not to optimize for fast installation.
19162 fast_install=$enable_fast_install
19163
19164 # The host system.
19165 host_alias=$host_alias
19166 host=$host
19167
19168 # An echo program that does not interpret backslashes.
19169 echo=$lt_echo
19170
19171 # The archiver.
19172 AR=$lt_AR
19173 AR_FLAGS=$lt_AR_FLAGS
19174
19175 # A C compiler.
19176 LTCC=$lt_LTCC
19177
19178 # A language-specific compiler.
19179 CC=$lt_compiler_RC
19180
19181 # Is the compiler the GNU C compiler?
19182 with_gcc=$GCC_RC
19183
19184 # An ERE matcher.
19185 EGREP=$lt_EGREP
19186
19187 # The linker used to build libraries.
19188 LD=$lt_LD_RC
19189
19190 # Whether we need hard or soft links.
19191 LN_S=$lt_LN_S
19192
19193 # A BSD-compatible nm program.
19194 NM=$lt_NM
19195
19196 # A symbol stripping program
19197 STRIP=$lt_STRIP
19198
19199 # Used to examine libraries when file_magic_cmd begins "file"
19200 MAGIC_CMD=$MAGIC_CMD
19201
19202 # Used on cygwin: DLL creation program.
19203 DLLTOOL="$DLLTOOL"
19204
19205 # Used on cygwin: object dumper.
19206 OBJDUMP="$OBJDUMP"
19207
19208 # Used on cygwin: assembler.
19209 AS="$AS"
19210
19211 # The name of the directory that contains temporary libtool files.
19212 objdir=$objdir
19213
19214 # How to create reloadable object files.
19215 reload_flag=$lt_reload_flag
19216 reload_cmds=$lt_reload_cmds
19217
19218 # How to pass a linker flag through the compiler.
19219 wl=$lt_lt_prog_compiler_wl_RC
19220
19221 # Object file suffix (normally "o").
19222 objext="$ac_objext"
19223
19224 # Old archive suffix (normally "a").
19225 libext="$libext"
19226
19227 # Shared library suffix (normally ".so").
19228 shrext_cmds='$shrext_cmds'
19229
19230 # Executable file suffix (normally "").
19231 exeext="$exeext"
19232
19233 # Additional compiler flags for building library objects.
19234 pic_flag=$lt_lt_prog_compiler_pic_RC
19235 pic_mode=$pic_mode
19236
19237 # What is the maximum length of a command?
19238 max_cmd_len=$lt_cv_sys_max_cmd_len
19239
19240 # Does compiler simultaneously support -c and -o options?
19241 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19242
19243 # Must we lock files when doing compilation ?
19244 need_locks=$lt_need_locks
19245
19246 # Do we need the lib prefix for modules?
19247 need_lib_prefix=$need_lib_prefix
19248
19249 # Do we need a version for libraries?
19250 need_version=$need_version
19251
19252 # Whether dlopen is supported.
19253 dlopen_support=$enable_dlopen
19254
19255 # Whether dlopen of programs is supported.
19256 dlopen_self=$enable_dlopen_self
19257
19258 # Whether dlopen of statically linked programs is supported.
19259 dlopen_self_static=$enable_dlopen_self_static
19260
19261 # Compiler flag to prevent dynamic linking.
19262 link_static_flag=$lt_lt_prog_compiler_static_RC
19263
19264 # Compiler flag to turn off builtin functions.
19265 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19266
19267 # Compiler flag to allow reflexive dlopens.
19268 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19269
19270 # Compiler flag to generate shared objects directly from archives.
19271 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19272
19273 # Compiler flag to generate thread-safe objects.
19274 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19275
19276 # Library versioning type.
19277 version_type=$version_type
19278
19279 # Format of library name prefix.
19280 libname_spec=$lt_libname_spec
19281
19282 # List of archive names.  First name is the real one, the rest are links.
19283 # The last name is the one that the linker finds with -lNAME.
19284 library_names_spec=$lt_library_names_spec
19285
19286 # The coded name of the library, if different from the real name.
19287 soname_spec=$lt_soname_spec
19288
19289 # Commands used to build and install an old-style archive.
19290 RANLIB=$lt_RANLIB
19291 old_archive_cmds=$lt_old_archive_cmds_RC
19292 old_postinstall_cmds=$lt_old_postinstall_cmds
19293 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19294
19295 # Create an old-style archive from a shared archive.
19296 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19297
19298 # Create a temporary old-style archive to link instead of a shared archive.
19299 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19300
19301 # Commands used to build and install a shared archive.
19302 archive_cmds=$lt_archive_cmds_RC
19303 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19304 postinstall_cmds=$lt_postinstall_cmds
19305 postuninstall_cmds=$lt_postuninstall_cmds
19306
19307 # Commands used to build a loadable module (assumed same as above if empty)
19308 module_cmds=$lt_module_cmds_RC
19309 module_expsym_cmds=$lt_module_expsym_cmds_RC
19310
19311 # Commands to strip libraries.
19312 old_striplib=$lt_old_striplib
19313 striplib=$lt_striplib
19314
19315 # Dependencies to place before the objects being linked to create a
19316 # shared library.
19317 predep_objects=$lt_predep_objects_RC
19318
19319 # Dependencies to place after the objects being linked to create a
19320 # shared library.
19321 postdep_objects=$lt_postdep_objects_RC
19322
19323 # Dependencies to place before the objects being linked to create a
19324 # shared library.
19325 predeps=$lt_predeps_RC
19326
19327 # Dependencies to place after the objects being linked to create a
19328 # shared library.
19329 postdeps=$lt_postdeps_RC
19330
19331 # The library search path used internally by the compiler when linking
19332 # a shared library.
19333 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19334
19335 # Method to check whether dependent libraries are shared objects.
19336 deplibs_check_method=$lt_deplibs_check_method
19337
19338 # Command to use when deplibs_check_method == file_magic.
19339 file_magic_cmd=$lt_file_magic_cmd
19340
19341 # Flag that allows shared libraries with undefined symbols to be built.
19342 allow_undefined_flag=$lt_allow_undefined_flag_RC
19343
19344 # Flag that forces no undefined symbols.
19345 no_undefined_flag=$lt_no_undefined_flag_RC
19346
19347 # Commands used to finish a libtool library installation in a directory.
19348 finish_cmds=$lt_finish_cmds
19349
19350 # Same as above, but a single script fragment to be evaled but not shown.
19351 finish_eval=$lt_finish_eval
19352
19353 # Take the output of nm and produce a listing of raw symbols and C names.
19354 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19355
19356 # Transform the output of nm in a proper C declaration
19357 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19358
19359 # Transform the output of nm in a C name address pair
19360 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19361
19362 # This is the shared library runtime path variable.
19363 runpath_var=$runpath_var
19364
19365 # This is the shared library path variable.
19366 shlibpath_var=$shlibpath_var
19367
19368 # Is shlibpath searched before the hard-coded library search path?
19369 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19370
19371 # How to hardcode a shared library path into an executable.
19372 hardcode_action=$hardcode_action_RC
19373
19374 # Whether we should hardcode library paths into libraries.
19375 hardcode_into_libs=$hardcode_into_libs
19376
19377 # Flag to hardcode \$libdir into a binary during linking.
19378 # This must work even if \$libdir does not exist.
19379 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19380
19381 # If ld is used when linking, flag to hardcode \$libdir into
19382 # a binary during linking. This must work even if \$libdir does
19383 # not exist.
19384 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19385
19386 # Whether we need a single -rpath flag with a separated argument.
19387 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19388
19389 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19390 # resulting binary.
19391 hardcode_direct=$hardcode_direct_RC
19392
19393 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19394 # resulting binary.
19395 hardcode_minus_L=$hardcode_minus_L_RC
19396
19397 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19398 # the resulting binary.
19399 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19400
19401 # Set to yes if building a shared library automatically hardcodes DIR into the library
19402 # and all subsequent libraries and executables linked against it.
19403 hardcode_automatic=$hardcode_automatic_RC
19404
19405 # Variables whose values should be saved in libtool wrapper scripts and
19406 # restored at relink time.
19407 variables_saved_for_relink="$variables_saved_for_relink"
19408
19409 # Whether libtool must link a program against all its dependency libraries.
19410 link_all_deplibs=$link_all_deplibs_RC
19411
19412 # Compile-time system search path for libraries
19413 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19414
19415 # Run-time system search path for libraries
19416 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19417
19418 # Fix the shell variable \$srcfile for the compiler.
19419 fix_srcfile_path="$fix_srcfile_path_RC"
19420
19421 # Set to yes if exported symbols are required.
19422 always_export_symbols=$always_export_symbols_RC
19423
19424 # The commands to list exported symbols.
19425 export_symbols_cmds=$lt_export_symbols_cmds_RC
19426
19427 # The commands to extract the exported symbol list from a shared archive.
19428 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19429
19430 # Symbols that should not be listed in the preloaded symbols.
19431 exclude_expsyms=$lt_exclude_expsyms_RC
19432
19433 # Symbols that must always be exported.
19434 include_expsyms=$lt_include_expsyms_RC
19435
19436 # ### END LIBTOOL TAG CONFIG: $tagname
19437
19438 __EOF__
19439
19440
19441 else
19442   # If there is no Makefile yet, we rely on a make rule to execute
19443   # `config.status --recheck' to rerun these tests and create the
19444   # libtool script then.
19445   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19446   if test -f "$ltmain_in"; then
19447     test -f Makefile && make "$ltmain"
19448   fi
19449 fi
19450
19451
19452 ac_ext=c
19453 ac_cpp='$CPP $CPPFLAGS'
19454 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19455 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19456 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19457
19458 CC="$lt_save_CC"
19459
19460         ;;
19461
19462       *)
19463         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19464 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19465    { (exit 1); exit 1; }; }
19466         ;;
19467       esac
19468
19469       # Append the new tag name to the list of available tags.
19470       if test -n "$tagname" ; then
19471       available_tags="$available_tags $tagname"
19472     fi
19473     fi
19474   done
19475   IFS="$lt_save_ifs"
19476
19477   # Now substitute the updated list of available tags.
19478   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19479     mv "${ofile}T" "$ofile"
19480     chmod +x "$ofile"
19481   else
19482     rm -f "${ofile}T"
19483     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19484 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19485    { (exit 1); exit 1; }; }
19486   fi
19487 fi
19488
19489
19490
19491 # This can be used to rebuild libtool when needed
19492 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19493
19494 # Always use our own libtool.
19495 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19496
19497 # Prevent multiple expansion
19498
19499
19500
19501
19502
19503
19504
19505
19506
19507
19508
19509
19510
19511
19512
19513
19514
19515
19516
19517
19518
19519 { echo "$as_me:$LINENO: checking location of temporary directory" >&5
19520 echo $ECHO_N "checking location of temporary directory... $ECHO_C" >&6; }
19521 if test -d /var/tmp; then
19522         found_tmp=/var/tmp/
19523 elif test -d /usr/tmp; then
19524         found_tmp=/usr/tmp/
19525 else
19526         found_tmp=/tmp/
19527 fi
19528 cat >>confdefs.h <<_ACEOF
19529 #define FOUND_TMP "${found_tmp}"
19530 _ACEOF
19531
19532 { echo "$as_me:$LINENO: result: ${found_tmp}" >&5
19533 echo "${ECHO_T}${found_tmp}" >&6; }
19534
19535 { echo "$as_me:$LINENO: checking for X" >&5
19536 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
19537
19538
19539 # Check whether --with-x was given.
19540 if test "${with_x+set}" = set; then
19541   withval=$with_x;
19542 fi
19543
19544 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
19545 if test "x$with_x" = xno; then
19546   # The user explicitly disabled X.
19547   have_x=disabled
19548 else
19549   case $x_includes,$x_libraries in #(
19550     *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
19551 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
19552    { (exit 1); exit 1; }; };; #(
19553     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
19554   echo $ECHO_N "(cached) $ECHO_C" >&6
19555 else
19556   # One or both of the vars are not set, and there is no cached value.
19557 ac_x_includes=no ac_x_libraries=no
19558 rm -f -r conftest.dir
19559 if mkdir conftest.dir; then
19560   cd conftest.dir
19561   cat >Imakefile <<'_ACEOF'
19562 incroot:
19563         @echo incroot='${INCROOT}'
19564 usrlibdir:
19565         @echo usrlibdir='${USRLIBDIR}'
19566 libdir:
19567         @echo libdir='${LIBDIR}'
19568 _ACEOF
19569   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
19570     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19571     for ac_var in incroot usrlibdir libdir; do
19572       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
19573     done
19574     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
19575     for ac_extension in a so sl; do
19576       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
19577          test -f "$ac_im_libdir/libX11.$ac_extension"; then
19578         ac_im_usrlibdir=$ac_im_libdir; break
19579       fi
19580     done
19581     # Screen out bogus values from the imake configuration.  They are
19582     # bogus both because they are the default anyway, and because
19583     # using them would break gcc on systems where it needs fixed includes.
19584     case $ac_im_incroot in
19585         /usr/include) ac_x_includes= ;;
19586         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
19587     esac
19588     case $ac_im_usrlibdir in
19589         /usr/lib | /lib) ;;
19590         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
19591     esac
19592   fi
19593   cd ..
19594   rm -f -r conftest.dir
19595 fi
19596
19597 # Standard set of common directories for X headers.
19598 # Check X11 before X11Rn because it is often a symlink to the current release.
19599 ac_x_header_dirs='
19600 /usr/X11/include
19601 /usr/X11R6/include
19602 /usr/X11R5/include
19603 /usr/X11R4/include
19604
19605 /usr/include/X11
19606 /usr/include/X11R6
19607 /usr/include/X11R5
19608 /usr/include/X11R4
19609
19610 /usr/local/X11/include
19611 /usr/local/X11R6/include
19612 /usr/local/X11R5/include
19613 /usr/local/X11R4/include
19614
19615 /usr/local/include/X11
19616 /usr/local/include/X11R6
19617 /usr/local/include/X11R5
19618 /usr/local/include/X11R4
19619
19620 /usr/X386/include
19621 /usr/x386/include
19622 /usr/XFree86/include/X11
19623
19624 /usr/include
19625 /usr/local/include
19626 /usr/unsupported/include
19627 /usr/athena/include
19628 /usr/local/x11r5/include
19629 /usr/lpp/Xamples/include
19630
19631 /usr/openwin/include
19632 /usr/openwin/share/include'
19633
19634 if test "$ac_x_includes" = no; then
19635   # Guess where to find include files, by looking for Xlib.h.
19636   # First, try using that file with no special directory specified.
19637   cat >conftest.$ac_ext <<_ACEOF
19638 /* confdefs.h.  */
19639 _ACEOF
19640 cat confdefs.h >>conftest.$ac_ext
19641 cat >>conftest.$ac_ext <<_ACEOF
19642 /* end confdefs.h.  */
19643 #include <X11/Xlib.h>
19644 _ACEOF
19645 if { (ac_try="$ac_cpp conftest.$ac_ext"
19646 case "(($ac_try" in
19647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19648   *) ac_try_echo=$ac_try;;
19649 esac
19650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19651   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19652   ac_status=$?
19653   grep -v '^ *+' conftest.er1 >conftest.err
19654   rm -f conftest.er1
19655   cat conftest.err >&5
19656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19657   (exit $ac_status); } >/dev/null && {
19658          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19659          test ! -s conftest.err
19660        }; then
19661   # We can compile using X headers with no special include directory.
19662 ac_x_includes=
19663 else
19664   echo "$as_me: failed program was:" >&5
19665 sed 's/^/| /' conftest.$ac_ext >&5
19666
19667   for ac_dir in $ac_x_header_dirs; do
19668   if test -r "$ac_dir/X11/Xlib.h"; then
19669     ac_x_includes=$ac_dir
19670     break
19671   fi
19672 done
19673 fi
19674
19675 rm -f conftest.err conftest.$ac_ext
19676 fi # $ac_x_includes = no
19677
19678 if test "$ac_x_libraries" = no; then
19679   # Check for the libraries.
19680   # See if we find them without any special options.
19681   # Don't add to $LIBS permanently.
19682   ac_save_LIBS=$LIBS
19683   LIBS="-lX11 $LIBS"
19684   cat >conftest.$ac_ext <<_ACEOF
19685 /* confdefs.h.  */
19686 _ACEOF
19687 cat confdefs.h >>conftest.$ac_ext
19688 cat >>conftest.$ac_ext <<_ACEOF
19689 /* end confdefs.h.  */
19690 #include <X11/Xlib.h>
19691 int
19692 main ()
19693 {
19694 XrmInitialize ()
19695   ;
19696   return 0;
19697 }
19698 _ACEOF
19699 rm -f conftest.$ac_objext conftest$ac_exeext
19700 if { (ac_try="$ac_link"
19701 case "(($ac_try" in
19702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19703   *) ac_try_echo=$ac_try;;
19704 esac
19705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19706   (eval "$ac_link") 2>conftest.er1
19707   ac_status=$?
19708   grep -v '^ *+' conftest.er1 >conftest.err
19709   rm -f conftest.er1
19710   cat conftest.err >&5
19711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19712   (exit $ac_status); } && {
19713          test -z "$ac_c_werror_flag" ||
19714          test ! -s conftest.err
19715        } && test -s conftest$ac_exeext &&
19716        $as_test_x conftest$ac_exeext; then
19717   LIBS=$ac_save_LIBS
19718 # We can link X programs with no special library path.
19719 ac_x_libraries=
19720 else
19721   echo "$as_me: failed program was:" >&5
19722 sed 's/^/| /' conftest.$ac_ext >&5
19723
19724         LIBS=$ac_save_LIBS
19725 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
19726 do
19727   # Don't even attempt the hair of trying to link an X program!
19728   for ac_extension in a so sl; do
19729     if test -r "$ac_dir/libX11.$ac_extension"; then
19730       ac_x_libraries=$ac_dir
19731       break 2
19732     fi
19733   done
19734 done
19735 fi
19736
19737 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19738       conftest$ac_exeext conftest.$ac_ext
19739 fi # $ac_x_libraries = no
19740
19741 case $ac_x_includes,$ac_x_libraries in #(
19742   no,* | *,no | *\'*)
19743     # Didn't find X, or a directory has "'" in its name.
19744     ac_cv_have_x="have_x=no";; #(
19745   *)
19746     # Record where we found X for the cache.
19747     ac_cv_have_x="have_x=yes\
19748         ac_x_includes='$ac_x_includes'\
19749         ac_x_libraries='$ac_x_libraries'"
19750 esac
19751 fi
19752 ;; #(
19753     *) have_x=yes;;
19754   esac
19755   eval "$ac_cv_have_x"
19756 fi # $with_x != no
19757
19758 if test "$have_x" != yes; then
19759   { echo "$as_me:$LINENO: result: $have_x" >&5
19760 echo "${ECHO_T}$have_x" >&6; }
19761   no_x=yes
19762 else
19763   # If each of the values was on the command line, it overrides each guess.
19764   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
19765   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
19766   # Update the cache value to reflect the command line values.
19767   ac_cv_have_x="have_x=yes\
19768         ac_x_includes='$x_includes'\
19769         ac_x_libraries='$x_libraries'"
19770   { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
19771 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
19772 fi
19773
19774 if test "$no_x" = yes; then
19775   # Not all programs may use this symbol, but it does not hurt to define it.
19776
19777 cat >>confdefs.h <<\_ACEOF
19778 #define X_DISPLAY_MISSING 1
19779 _ACEOF
19780
19781   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
19782 else
19783   if test -n "$x_includes"; then
19784     X_CFLAGS="$X_CFLAGS -I$x_includes"
19785   fi
19786
19787   # It would also be nice to do this for all -L options, not just this one.
19788   if test -n "$x_libraries"; then
19789     X_LIBS="$X_LIBS -L$x_libraries"
19790     # For Solaris; some versions of Sun CC require a space after -R and
19791     # others require no space.  Words are not sufficient . . . .
19792     { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
19793 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
19794     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
19795     ac_xsave_c_werror_flag=$ac_c_werror_flag
19796     ac_c_werror_flag=yes
19797     cat >conftest.$ac_ext <<_ACEOF
19798 /* confdefs.h.  */
19799 _ACEOF
19800 cat confdefs.h >>conftest.$ac_ext
19801 cat >>conftest.$ac_ext <<_ACEOF
19802 /* end confdefs.h.  */
19803
19804 int
19805 main ()
19806 {
19807
19808   ;
19809   return 0;
19810 }
19811 _ACEOF
19812 rm -f conftest.$ac_objext conftest$ac_exeext
19813 if { (ac_try="$ac_link"
19814 case "(($ac_try" in
19815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19816   *) ac_try_echo=$ac_try;;
19817 esac
19818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19819   (eval "$ac_link") 2>conftest.er1
19820   ac_status=$?
19821   grep -v '^ *+' conftest.er1 >conftest.err
19822   rm -f conftest.er1
19823   cat conftest.err >&5
19824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19825   (exit $ac_status); } && {
19826          test -z "$ac_c_werror_flag" ||
19827          test ! -s conftest.err
19828        } && test -s conftest$ac_exeext &&
19829        $as_test_x conftest$ac_exeext; then
19830   { echo "$as_me:$LINENO: result: no" >&5
19831 echo "${ECHO_T}no" >&6; }
19832        X_LIBS="$X_LIBS -R$x_libraries"
19833 else
19834   echo "$as_me: failed program was:" >&5
19835 sed 's/^/| /' conftest.$ac_ext >&5
19836
19837         LIBS="$ac_xsave_LIBS -R $x_libraries"
19838        cat >conftest.$ac_ext <<_ACEOF
19839 /* confdefs.h.  */
19840 _ACEOF
19841 cat confdefs.h >>conftest.$ac_ext
19842 cat >>conftest.$ac_ext <<_ACEOF
19843 /* end confdefs.h.  */
19844
19845 int
19846 main ()
19847 {
19848
19849   ;
19850   return 0;
19851 }
19852 _ACEOF
19853 rm -f conftest.$ac_objext conftest$ac_exeext
19854 if { (ac_try="$ac_link"
19855 case "(($ac_try" in
19856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19857   *) ac_try_echo=$ac_try;;
19858 esac
19859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19860   (eval "$ac_link") 2>conftest.er1
19861   ac_status=$?
19862   grep -v '^ *+' conftest.er1 >conftest.err
19863   rm -f conftest.er1
19864   cat conftest.err >&5
19865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19866   (exit $ac_status); } && {
19867          test -z "$ac_c_werror_flag" ||
19868          test ! -s conftest.err
19869        } && test -s conftest$ac_exeext &&
19870        $as_test_x conftest$ac_exeext; then
19871   { echo "$as_me:$LINENO: result: yes" >&5
19872 echo "${ECHO_T}yes" >&6; }
19873           X_LIBS="$X_LIBS -R $x_libraries"
19874 else
19875   echo "$as_me: failed program was:" >&5
19876 sed 's/^/| /' conftest.$ac_ext >&5
19877
19878         { echo "$as_me:$LINENO: result: neither works" >&5
19879 echo "${ECHO_T}neither works" >&6; }
19880 fi
19881
19882 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19883       conftest$ac_exeext conftest.$ac_ext
19884 fi
19885
19886 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19887       conftest$ac_exeext conftest.$ac_ext
19888     ac_c_werror_flag=$ac_xsave_c_werror_flag
19889     LIBS=$ac_xsave_LIBS
19890   fi
19891
19892   # Check for system-dependent libraries X programs must link with.
19893   # Do this before checking for the system-independent R6 libraries
19894   # (-lICE), since we may need -lsocket or whatever for X linking.
19895
19896   if test "$ISC" = yes; then
19897     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
19898   else
19899     # Martyn Johnson says this is needed for Ultrix, if the X
19900     # libraries were built with DECnet support.  And Karl Berry says
19901     # the Alpha needs dnet_stub (dnet does not exist).
19902     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
19903     cat >conftest.$ac_ext <<_ACEOF
19904 /* confdefs.h.  */
19905 _ACEOF
19906 cat confdefs.h >>conftest.$ac_ext
19907 cat >>conftest.$ac_ext <<_ACEOF
19908 /* end confdefs.h.  */
19909
19910 /* Override any GCC internal prototype to avoid an error.
19911    Use char because int might match the return type of a GCC
19912    builtin and then its argument prototype would still apply.  */
19913 #ifdef __cplusplus
19914 extern "C"
19915 #endif
19916 char XOpenDisplay ();
19917 int
19918 main ()
19919 {
19920 return XOpenDisplay ();
19921   ;
19922   return 0;
19923 }
19924 _ACEOF
19925 rm -f conftest.$ac_objext conftest$ac_exeext
19926 if { (ac_try="$ac_link"
19927 case "(($ac_try" in
19928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19929   *) ac_try_echo=$ac_try;;
19930 esac
19931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19932   (eval "$ac_link") 2>conftest.er1
19933   ac_status=$?
19934   grep -v '^ *+' conftest.er1 >conftest.err
19935   rm -f conftest.er1
19936   cat conftest.err >&5
19937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19938   (exit $ac_status); } && {
19939          test -z "$ac_c_werror_flag" ||
19940          test ! -s conftest.err
19941        } && test -s conftest$ac_exeext &&
19942        $as_test_x conftest$ac_exeext; then
19943   :
19944 else
19945   echo "$as_me: failed program was:" >&5
19946 sed 's/^/| /' conftest.$ac_ext >&5
19947
19948         { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
19949 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
19950 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
19951   echo $ECHO_N "(cached) $ECHO_C" >&6
19952 else
19953   ac_check_lib_save_LIBS=$LIBS
19954 LIBS="-ldnet  $LIBS"
19955 cat >conftest.$ac_ext <<_ACEOF
19956 /* confdefs.h.  */
19957 _ACEOF
19958 cat confdefs.h >>conftest.$ac_ext
19959 cat >>conftest.$ac_ext <<_ACEOF
19960 /* end confdefs.h.  */
19961
19962 /* Override any GCC internal prototype to avoid an error.
19963    Use char because int might match the return type of a GCC
19964    builtin and then its argument prototype would still apply.  */
19965 #ifdef __cplusplus
19966 extern "C"
19967 #endif
19968 char dnet_ntoa ();
19969 int
19970 main ()
19971 {
19972 return dnet_ntoa ();
19973   ;
19974   return 0;
19975 }
19976 _ACEOF
19977 rm -f conftest.$ac_objext conftest$ac_exeext
19978 if { (ac_try="$ac_link"
19979 case "(($ac_try" in
19980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19981   *) ac_try_echo=$ac_try;;
19982 esac
19983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19984   (eval "$ac_link") 2>conftest.er1
19985   ac_status=$?
19986   grep -v '^ *+' conftest.er1 >conftest.err
19987   rm -f conftest.er1
19988   cat conftest.err >&5
19989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19990   (exit $ac_status); } && {
19991          test -z "$ac_c_werror_flag" ||
19992          test ! -s conftest.err
19993        } && test -s conftest$ac_exeext &&
19994        $as_test_x conftest$ac_exeext; then
19995   ac_cv_lib_dnet_dnet_ntoa=yes
19996 else
19997   echo "$as_me: failed program was:" >&5
19998 sed 's/^/| /' conftest.$ac_ext >&5
19999
20000         ac_cv_lib_dnet_dnet_ntoa=no
20001 fi
20002
20003 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20004       conftest$ac_exeext conftest.$ac_ext
20005 LIBS=$ac_check_lib_save_LIBS
20006 fi
20007 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
20008 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
20009 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
20010   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
20011 fi
20012
20013     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
20014       { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
20015 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
20016 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
20017   echo $ECHO_N "(cached) $ECHO_C" >&6
20018 else
20019   ac_check_lib_save_LIBS=$LIBS
20020 LIBS="-ldnet_stub  $LIBS"
20021 cat >conftest.$ac_ext <<_ACEOF
20022 /* confdefs.h.  */
20023 _ACEOF
20024 cat confdefs.h >>conftest.$ac_ext
20025 cat >>conftest.$ac_ext <<_ACEOF
20026 /* end confdefs.h.  */
20027
20028 /* Override any GCC internal prototype to avoid an error.
20029    Use char because int might match the return type of a GCC
20030    builtin and then its argument prototype would still apply.  */
20031 #ifdef __cplusplus
20032 extern "C"
20033 #endif
20034 char dnet_ntoa ();
20035 int
20036 main ()
20037 {
20038 return dnet_ntoa ();
20039   ;
20040   return 0;
20041 }
20042 _ACEOF
20043 rm -f conftest.$ac_objext conftest$ac_exeext
20044 if { (ac_try="$ac_link"
20045 case "(($ac_try" in
20046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20047   *) ac_try_echo=$ac_try;;
20048 esac
20049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20050   (eval "$ac_link") 2>conftest.er1
20051   ac_status=$?
20052   grep -v '^ *+' conftest.er1 >conftest.err
20053   rm -f conftest.er1
20054   cat conftest.err >&5
20055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20056   (exit $ac_status); } && {
20057          test -z "$ac_c_werror_flag" ||
20058          test ! -s conftest.err
20059        } && test -s conftest$ac_exeext &&
20060        $as_test_x conftest$ac_exeext; then
20061   ac_cv_lib_dnet_stub_dnet_ntoa=yes
20062 else
20063   echo "$as_me: failed program was:" >&5
20064 sed 's/^/| /' conftest.$ac_ext >&5
20065
20066         ac_cv_lib_dnet_stub_dnet_ntoa=no
20067 fi
20068
20069 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20070       conftest$ac_exeext conftest.$ac_ext
20071 LIBS=$ac_check_lib_save_LIBS
20072 fi
20073 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
20074 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
20075 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
20076   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
20077 fi
20078
20079     fi
20080 fi
20081
20082 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20083       conftest$ac_exeext conftest.$ac_ext
20084     LIBS="$ac_xsave_LIBS"
20085
20086     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
20087     # to get the SysV transport functions.
20088     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
20089     # needs -lnsl.
20090     # The nsl library prevents programs from opening the X display
20091     # on Irix 5.2, according to T.E. Dickey.
20092     # The functions gethostbyname, getservbyname, and inet_addr are
20093     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
20094     { echo "$as_me:$LINENO: checking for gethostbyname" >&5
20095 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
20096 if test "${ac_cv_func_gethostbyname+set}" = set; then
20097   echo $ECHO_N "(cached) $ECHO_C" >&6
20098 else
20099   cat >conftest.$ac_ext <<_ACEOF
20100 /* confdefs.h.  */
20101 _ACEOF
20102 cat confdefs.h >>conftest.$ac_ext
20103 cat >>conftest.$ac_ext <<_ACEOF
20104 /* end confdefs.h.  */
20105 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
20106    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20107 #define gethostbyname innocuous_gethostbyname
20108
20109 /* System header to define __stub macros and hopefully few prototypes,
20110     which can conflict with char gethostbyname (); below.
20111     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20112     <limits.h> exists even on freestanding compilers.  */
20113
20114 #ifdef __STDC__
20115 # include <limits.h>
20116 #else
20117 # include <assert.h>
20118 #endif
20119
20120 #undef gethostbyname
20121
20122 /* Override any GCC internal prototype to avoid an error.
20123    Use char because int might match the return type of a GCC
20124    builtin and then its argument prototype would still apply.  */
20125 #ifdef __cplusplus
20126 extern "C"
20127 #endif
20128 char gethostbyname ();
20129 /* The GNU C library defines this for functions which it implements
20130     to always fail with ENOSYS.  Some functions are actually named
20131     something starting with __ and the normal name is an alias.  */
20132 #if defined __stub_gethostbyname || defined __stub___gethostbyname
20133 choke me
20134 #endif
20135
20136 int
20137 main ()
20138 {
20139 return gethostbyname ();
20140   ;
20141   return 0;
20142 }
20143 _ACEOF
20144 rm -f conftest.$ac_objext conftest$ac_exeext
20145 if { (ac_try="$ac_link"
20146 case "(($ac_try" in
20147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20148   *) ac_try_echo=$ac_try;;
20149 esac
20150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20151   (eval "$ac_link") 2>conftest.er1
20152   ac_status=$?
20153   grep -v '^ *+' conftest.er1 >conftest.err
20154   rm -f conftest.er1
20155   cat conftest.err >&5
20156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20157   (exit $ac_status); } && {
20158          test -z "$ac_c_werror_flag" ||
20159          test ! -s conftest.err
20160        } && test -s conftest$ac_exeext &&
20161        $as_test_x conftest$ac_exeext; then
20162   ac_cv_func_gethostbyname=yes
20163 else
20164   echo "$as_me: failed program was:" >&5
20165 sed 's/^/| /' conftest.$ac_ext >&5
20166
20167         ac_cv_func_gethostbyname=no
20168 fi
20169
20170 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20171       conftest$ac_exeext conftest.$ac_ext
20172 fi
20173 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
20174 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
20175
20176     if test $ac_cv_func_gethostbyname = no; then
20177       { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
20178 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
20179 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
20180   echo $ECHO_N "(cached) $ECHO_C" >&6
20181 else
20182   ac_check_lib_save_LIBS=$LIBS
20183 LIBS="-lnsl  $LIBS"
20184 cat >conftest.$ac_ext <<_ACEOF
20185 /* confdefs.h.  */
20186 _ACEOF
20187 cat confdefs.h >>conftest.$ac_ext
20188 cat >>conftest.$ac_ext <<_ACEOF
20189 /* end confdefs.h.  */
20190
20191 /* Override any GCC internal prototype to avoid an error.
20192    Use char because int might match the return type of a GCC
20193    builtin and then its argument prototype would still apply.  */
20194 #ifdef __cplusplus
20195 extern "C"
20196 #endif
20197 char gethostbyname ();
20198 int
20199 main ()
20200 {
20201 return gethostbyname ();
20202   ;
20203   return 0;
20204 }
20205 _ACEOF
20206 rm -f conftest.$ac_objext conftest$ac_exeext
20207 if { (ac_try="$ac_link"
20208 case "(($ac_try" in
20209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20210   *) ac_try_echo=$ac_try;;
20211 esac
20212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20213   (eval "$ac_link") 2>conftest.er1
20214   ac_status=$?
20215   grep -v '^ *+' conftest.er1 >conftest.err
20216   rm -f conftest.er1
20217   cat conftest.err >&5
20218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20219   (exit $ac_status); } && {
20220          test -z "$ac_c_werror_flag" ||
20221          test ! -s conftest.err
20222        } && test -s conftest$ac_exeext &&
20223        $as_test_x conftest$ac_exeext; then
20224   ac_cv_lib_nsl_gethostbyname=yes
20225 else
20226   echo "$as_me: failed program was:" >&5
20227 sed 's/^/| /' conftest.$ac_ext >&5
20228
20229         ac_cv_lib_nsl_gethostbyname=no
20230 fi
20231
20232 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20233       conftest$ac_exeext conftest.$ac_ext
20234 LIBS=$ac_check_lib_save_LIBS
20235 fi
20236 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
20237 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
20238 if test $ac_cv_lib_nsl_gethostbyname = yes; then
20239   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
20240 fi
20241
20242       if test $ac_cv_lib_nsl_gethostbyname = no; then
20243         { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
20244 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
20245 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
20246   echo $ECHO_N "(cached) $ECHO_C" >&6
20247 else
20248   ac_check_lib_save_LIBS=$LIBS
20249 LIBS="-lbsd  $LIBS"
20250 cat >conftest.$ac_ext <<_ACEOF
20251 /* confdefs.h.  */
20252 _ACEOF
20253 cat confdefs.h >>conftest.$ac_ext
20254 cat >>conftest.$ac_ext <<_ACEOF
20255 /* end confdefs.h.  */
20256
20257 /* Override any GCC internal prototype to avoid an error.
20258    Use char because int might match the return type of a GCC
20259    builtin and then its argument prototype would still apply.  */
20260 #ifdef __cplusplus
20261 extern "C"
20262 #endif
20263 char gethostbyname ();
20264 int
20265 main ()
20266 {
20267 return gethostbyname ();
20268   ;
20269   return 0;
20270 }
20271 _ACEOF
20272 rm -f conftest.$ac_objext conftest$ac_exeext
20273 if { (ac_try="$ac_link"
20274 case "(($ac_try" in
20275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20276   *) ac_try_echo=$ac_try;;
20277 esac
20278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20279   (eval "$ac_link") 2>conftest.er1
20280   ac_status=$?
20281   grep -v '^ *+' conftest.er1 >conftest.err
20282   rm -f conftest.er1
20283   cat conftest.err >&5
20284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20285   (exit $ac_status); } && {
20286          test -z "$ac_c_werror_flag" ||
20287          test ! -s conftest.err
20288        } && test -s conftest$ac_exeext &&
20289        $as_test_x conftest$ac_exeext; then
20290   ac_cv_lib_bsd_gethostbyname=yes
20291 else
20292   echo "$as_me: failed program was:" >&5
20293 sed 's/^/| /' conftest.$ac_ext >&5
20294
20295         ac_cv_lib_bsd_gethostbyname=no
20296 fi
20297
20298 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20299       conftest$ac_exeext conftest.$ac_ext
20300 LIBS=$ac_check_lib_save_LIBS
20301 fi
20302 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
20303 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
20304 if test $ac_cv_lib_bsd_gethostbyname = yes; then
20305   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
20306 fi
20307
20308       fi
20309     fi
20310
20311     # lieder@skyler.mavd.honeywell.com says without -lsocket,
20312     # socket/setsockopt and other routines are undefined under SCO ODT
20313     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
20314     # on later versions), says Simon Leinen: it contains gethostby*
20315     # variants that don't use the name server (or something).  -lsocket
20316     # must be given before -lnsl if both are needed.  We assume that
20317     # if connect needs -lnsl, so does gethostbyname.
20318     { echo "$as_me:$LINENO: checking for connect" >&5
20319 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
20320 if test "${ac_cv_func_connect+set}" = set; then
20321   echo $ECHO_N "(cached) $ECHO_C" >&6
20322 else
20323   cat >conftest.$ac_ext <<_ACEOF
20324 /* confdefs.h.  */
20325 _ACEOF
20326 cat confdefs.h >>conftest.$ac_ext
20327 cat >>conftest.$ac_ext <<_ACEOF
20328 /* end confdefs.h.  */
20329 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
20330    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20331 #define connect innocuous_connect
20332
20333 /* System header to define __stub macros and hopefully few prototypes,
20334     which can conflict with char connect (); below.
20335     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20336     <limits.h> exists even on freestanding compilers.  */
20337
20338 #ifdef __STDC__
20339 # include <limits.h>
20340 #else
20341 # include <assert.h>
20342 #endif
20343
20344 #undef connect
20345
20346 /* Override any GCC internal prototype to avoid an error.
20347    Use char because int might match the return type of a GCC
20348    builtin and then its argument prototype would still apply.  */
20349 #ifdef __cplusplus
20350 extern "C"
20351 #endif
20352 char connect ();
20353 /* The GNU C library defines this for functions which it implements
20354     to always fail with ENOSYS.  Some functions are actually named
20355     something starting with __ and the normal name is an alias.  */
20356 #if defined __stub_connect || defined __stub___connect
20357 choke me
20358 #endif
20359
20360 int
20361 main ()
20362 {
20363 return connect ();
20364   ;
20365   return 0;
20366 }
20367 _ACEOF
20368 rm -f conftest.$ac_objext conftest$ac_exeext
20369 if { (ac_try="$ac_link"
20370 case "(($ac_try" in
20371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20372   *) ac_try_echo=$ac_try;;
20373 esac
20374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20375   (eval "$ac_link") 2>conftest.er1
20376   ac_status=$?
20377   grep -v '^ *+' conftest.er1 >conftest.err
20378   rm -f conftest.er1
20379   cat conftest.err >&5
20380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20381   (exit $ac_status); } && {
20382          test -z "$ac_c_werror_flag" ||
20383          test ! -s conftest.err
20384        } && test -s conftest$ac_exeext &&
20385        $as_test_x conftest$ac_exeext; then
20386   ac_cv_func_connect=yes
20387 else
20388   echo "$as_me: failed program was:" >&5
20389 sed 's/^/| /' conftest.$ac_ext >&5
20390
20391         ac_cv_func_connect=no
20392 fi
20393
20394 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20395       conftest$ac_exeext conftest.$ac_ext
20396 fi
20397 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
20398 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
20399
20400     if test $ac_cv_func_connect = no; then
20401       { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
20402 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
20403 if test "${ac_cv_lib_socket_connect+set}" = set; then
20404   echo $ECHO_N "(cached) $ECHO_C" >&6
20405 else
20406   ac_check_lib_save_LIBS=$LIBS
20407 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
20408 cat >conftest.$ac_ext <<_ACEOF
20409 /* confdefs.h.  */
20410 _ACEOF
20411 cat confdefs.h >>conftest.$ac_ext
20412 cat >>conftest.$ac_ext <<_ACEOF
20413 /* end confdefs.h.  */
20414
20415 /* Override any GCC internal prototype to avoid an error.
20416    Use char because int might match the return type of a GCC
20417    builtin and then its argument prototype would still apply.  */
20418 #ifdef __cplusplus
20419 extern "C"
20420 #endif
20421 char connect ();
20422 int
20423 main ()
20424 {
20425 return connect ();
20426   ;
20427   return 0;
20428 }
20429 _ACEOF
20430 rm -f conftest.$ac_objext conftest$ac_exeext
20431 if { (ac_try="$ac_link"
20432 case "(($ac_try" in
20433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20434   *) ac_try_echo=$ac_try;;
20435 esac
20436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20437   (eval "$ac_link") 2>conftest.er1
20438   ac_status=$?
20439   grep -v '^ *+' conftest.er1 >conftest.err
20440   rm -f conftest.er1
20441   cat conftest.err >&5
20442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20443   (exit $ac_status); } && {
20444          test -z "$ac_c_werror_flag" ||
20445          test ! -s conftest.err
20446        } && test -s conftest$ac_exeext &&
20447        $as_test_x conftest$ac_exeext; then
20448   ac_cv_lib_socket_connect=yes
20449 else
20450   echo "$as_me: failed program was:" >&5
20451 sed 's/^/| /' conftest.$ac_ext >&5
20452
20453         ac_cv_lib_socket_connect=no
20454 fi
20455
20456 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20457       conftest$ac_exeext conftest.$ac_ext
20458 LIBS=$ac_check_lib_save_LIBS
20459 fi
20460 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
20461 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
20462 if test $ac_cv_lib_socket_connect = yes; then
20463   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
20464 fi
20465
20466     fi
20467
20468     # Guillermo Gomez says -lposix is necessary on A/UX.
20469     { echo "$as_me:$LINENO: checking for remove" >&5
20470 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
20471 if test "${ac_cv_func_remove+set}" = set; then
20472   echo $ECHO_N "(cached) $ECHO_C" >&6
20473 else
20474   cat >conftest.$ac_ext <<_ACEOF
20475 /* confdefs.h.  */
20476 _ACEOF
20477 cat confdefs.h >>conftest.$ac_ext
20478 cat >>conftest.$ac_ext <<_ACEOF
20479 /* end confdefs.h.  */
20480 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
20481    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20482 #define remove innocuous_remove
20483
20484 /* System header to define __stub macros and hopefully few prototypes,
20485     which can conflict with char remove (); below.
20486     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20487     <limits.h> exists even on freestanding compilers.  */
20488
20489 #ifdef __STDC__
20490 # include <limits.h>
20491 #else
20492 # include <assert.h>
20493 #endif
20494
20495 #undef remove
20496
20497 /* Override any GCC internal prototype to avoid an error.
20498    Use char because int might match the return type of a GCC
20499    builtin and then its argument prototype would still apply.  */
20500 #ifdef __cplusplus
20501 extern "C"
20502 #endif
20503 char remove ();
20504 /* The GNU C library defines this for functions which it implements
20505     to always fail with ENOSYS.  Some functions are actually named
20506     something starting with __ and the normal name is an alias.  */
20507 #if defined __stub_remove || defined __stub___remove
20508 choke me
20509 #endif
20510
20511 int
20512 main ()
20513 {
20514 return remove ();
20515   ;
20516   return 0;
20517 }
20518 _ACEOF
20519 rm -f conftest.$ac_objext conftest$ac_exeext
20520 if { (ac_try="$ac_link"
20521 case "(($ac_try" in
20522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20523   *) ac_try_echo=$ac_try;;
20524 esac
20525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20526   (eval "$ac_link") 2>conftest.er1
20527   ac_status=$?
20528   grep -v '^ *+' conftest.er1 >conftest.err
20529   rm -f conftest.er1
20530   cat conftest.err >&5
20531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20532   (exit $ac_status); } && {
20533          test -z "$ac_c_werror_flag" ||
20534          test ! -s conftest.err
20535        } && test -s conftest$ac_exeext &&
20536        $as_test_x conftest$ac_exeext; then
20537   ac_cv_func_remove=yes
20538 else
20539   echo "$as_me: failed program was:" >&5
20540 sed 's/^/| /' conftest.$ac_ext >&5
20541
20542         ac_cv_func_remove=no
20543 fi
20544
20545 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20546       conftest$ac_exeext conftest.$ac_ext
20547 fi
20548 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
20549 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
20550
20551     if test $ac_cv_func_remove = no; then
20552       { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
20553 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
20554 if test "${ac_cv_lib_posix_remove+set}" = set; then
20555   echo $ECHO_N "(cached) $ECHO_C" >&6
20556 else
20557   ac_check_lib_save_LIBS=$LIBS
20558 LIBS="-lposix  $LIBS"
20559 cat >conftest.$ac_ext <<_ACEOF
20560 /* confdefs.h.  */
20561 _ACEOF
20562 cat confdefs.h >>conftest.$ac_ext
20563 cat >>conftest.$ac_ext <<_ACEOF
20564 /* end confdefs.h.  */
20565
20566 /* Override any GCC internal prototype to avoid an error.
20567    Use char because int might match the return type of a GCC
20568    builtin and then its argument prototype would still apply.  */
20569 #ifdef __cplusplus
20570 extern "C"
20571 #endif
20572 char remove ();
20573 int
20574 main ()
20575 {
20576 return remove ();
20577   ;
20578   return 0;
20579 }
20580 _ACEOF
20581 rm -f conftest.$ac_objext conftest$ac_exeext
20582 if { (ac_try="$ac_link"
20583 case "(($ac_try" in
20584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20585   *) ac_try_echo=$ac_try;;
20586 esac
20587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20588   (eval "$ac_link") 2>conftest.er1
20589   ac_status=$?
20590   grep -v '^ *+' conftest.er1 >conftest.err
20591   rm -f conftest.er1
20592   cat conftest.err >&5
20593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20594   (exit $ac_status); } && {
20595          test -z "$ac_c_werror_flag" ||
20596          test ! -s conftest.err
20597        } && test -s conftest$ac_exeext &&
20598        $as_test_x conftest$ac_exeext; then
20599   ac_cv_lib_posix_remove=yes
20600 else
20601   echo "$as_me: failed program was:" >&5
20602 sed 's/^/| /' conftest.$ac_ext >&5
20603
20604         ac_cv_lib_posix_remove=no
20605 fi
20606
20607 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20608       conftest$ac_exeext conftest.$ac_ext
20609 LIBS=$ac_check_lib_save_LIBS
20610 fi
20611 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
20612 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
20613 if test $ac_cv_lib_posix_remove = yes; then
20614   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
20615 fi
20616
20617     fi
20618
20619     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
20620     { echo "$as_me:$LINENO: checking for shmat" >&5
20621 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
20622 if test "${ac_cv_func_shmat+set}" = set; then
20623   echo $ECHO_N "(cached) $ECHO_C" >&6
20624 else
20625   cat >conftest.$ac_ext <<_ACEOF
20626 /* confdefs.h.  */
20627 _ACEOF
20628 cat confdefs.h >>conftest.$ac_ext
20629 cat >>conftest.$ac_ext <<_ACEOF
20630 /* end confdefs.h.  */
20631 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
20632    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20633 #define shmat innocuous_shmat
20634
20635 /* System header to define __stub macros and hopefully few prototypes,
20636     which can conflict with char shmat (); below.
20637     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20638     <limits.h> exists even on freestanding compilers.  */
20639
20640 #ifdef __STDC__
20641 # include <limits.h>
20642 #else
20643 # include <assert.h>
20644 #endif
20645
20646 #undef shmat
20647
20648 /* Override any GCC internal prototype to avoid an error.
20649    Use char because int might match the return type of a GCC
20650    builtin and then its argument prototype would still apply.  */
20651 #ifdef __cplusplus
20652 extern "C"
20653 #endif
20654 char shmat ();
20655 /* The GNU C library defines this for functions which it implements
20656     to always fail with ENOSYS.  Some functions are actually named
20657     something starting with __ and the normal name is an alias.  */
20658 #if defined __stub_shmat || defined __stub___shmat
20659 choke me
20660 #endif
20661
20662 int
20663 main ()
20664 {
20665 return shmat ();
20666   ;
20667   return 0;
20668 }
20669 _ACEOF
20670 rm -f conftest.$ac_objext conftest$ac_exeext
20671 if { (ac_try="$ac_link"
20672 case "(($ac_try" in
20673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20674   *) ac_try_echo=$ac_try;;
20675 esac
20676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20677   (eval "$ac_link") 2>conftest.er1
20678   ac_status=$?
20679   grep -v '^ *+' conftest.er1 >conftest.err
20680   rm -f conftest.er1
20681   cat conftest.err >&5
20682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20683   (exit $ac_status); } && {
20684          test -z "$ac_c_werror_flag" ||
20685          test ! -s conftest.err
20686        } && test -s conftest$ac_exeext &&
20687        $as_test_x conftest$ac_exeext; then
20688   ac_cv_func_shmat=yes
20689 else
20690   echo "$as_me: failed program was:" >&5
20691 sed 's/^/| /' conftest.$ac_ext >&5
20692
20693         ac_cv_func_shmat=no
20694 fi
20695
20696 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20697       conftest$ac_exeext conftest.$ac_ext
20698 fi
20699 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
20700 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
20701
20702     if test $ac_cv_func_shmat = no; then
20703       { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
20704 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
20705 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
20706   echo $ECHO_N "(cached) $ECHO_C" >&6
20707 else
20708   ac_check_lib_save_LIBS=$LIBS
20709 LIBS="-lipc  $LIBS"
20710 cat >conftest.$ac_ext <<_ACEOF
20711 /* confdefs.h.  */
20712 _ACEOF
20713 cat confdefs.h >>conftest.$ac_ext
20714 cat >>conftest.$ac_ext <<_ACEOF
20715 /* end confdefs.h.  */
20716
20717 /* Override any GCC internal prototype to avoid an error.
20718    Use char because int might match the return type of a GCC
20719    builtin and then its argument prototype would still apply.  */
20720 #ifdef __cplusplus
20721 extern "C"
20722 #endif
20723 char shmat ();
20724 int
20725 main ()
20726 {
20727 return shmat ();
20728   ;
20729   return 0;
20730 }
20731 _ACEOF
20732 rm -f conftest.$ac_objext conftest$ac_exeext
20733 if { (ac_try="$ac_link"
20734 case "(($ac_try" in
20735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20736   *) ac_try_echo=$ac_try;;
20737 esac
20738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20739   (eval "$ac_link") 2>conftest.er1
20740   ac_status=$?
20741   grep -v '^ *+' conftest.er1 >conftest.err
20742   rm -f conftest.er1
20743   cat conftest.err >&5
20744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20745   (exit $ac_status); } && {
20746          test -z "$ac_c_werror_flag" ||
20747          test ! -s conftest.err
20748        } && test -s conftest$ac_exeext &&
20749        $as_test_x conftest$ac_exeext; then
20750   ac_cv_lib_ipc_shmat=yes
20751 else
20752   echo "$as_me: failed program was:" >&5
20753 sed 's/^/| /' conftest.$ac_ext >&5
20754
20755         ac_cv_lib_ipc_shmat=no
20756 fi
20757
20758 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20759       conftest$ac_exeext conftest.$ac_ext
20760 LIBS=$ac_check_lib_save_LIBS
20761 fi
20762 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
20763 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
20764 if test $ac_cv_lib_ipc_shmat = yes; then
20765   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
20766 fi
20767
20768     fi
20769   fi
20770
20771   # Check for libraries that X11R6 Xt/Xaw programs need.
20772   ac_save_LDFLAGS=$LDFLAGS
20773   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
20774   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
20775   # check for ICE first), but we must link in the order -lSM -lICE or
20776   # we get undefined symbols.  So assume we have SM if we have ICE.
20777   # These have to be linked with before -lX11, unlike the other
20778   # libraries we check for below, so use a different variable.
20779   # John Interrante, Karl Berry
20780   { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
20781 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
20782 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
20783   echo $ECHO_N "(cached) $ECHO_C" >&6
20784 else
20785   ac_check_lib_save_LIBS=$LIBS
20786 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
20787 cat >conftest.$ac_ext <<_ACEOF
20788 /* confdefs.h.  */
20789 _ACEOF
20790 cat confdefs.h >>conftest.$ac_ext
20791 cat >>conftest.$ac_ext <<_ACEOF
20792 /* end confdefs.h.  */
20793
20794 /* Override any GCC internal prototype to avoid an error.
20795    Use char because int might match the return type of a GCC
20796    builtin and then its argument prototype would still apply.  */
20797 #ifdef __cplusplus
20798 extern "C"
20799 #endif
20800 char IceConnectionNumber ();
20801 int
20802 main ()
20803 {
20804 return IceConnectionNumber ();
20805   ;
20806   return 0;
20807 }
20808 _ACEOF
20809 rm -f conftest.$ac_objext conftest$ac_exeext
20810 if { (ac_try="$ac_link"
20811 case "(($ac_try" in
20812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20813   *) ac_try_echo=$ac_try;;
20814 esac
20815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20816   (eval "$ac_link") 2>conftest.er1
20817   ac_status=$?
20818   grep -v '^ *+' conftest.er1 >conftest.err
20819   rm -f conftest.er1
20820   cat conftest.err >&5
20821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20822   (exit $ac_status); } && {
20823          test -z "$ac_c_werror_flag" ||
20824          test ! -s conftest.err
20825        } && test -s conftest$ac_exeext &&
20826        $as_test_x conftest$ac_exeext; then
20827   ac_cv_lib_ICE_IceConnectionNumber=yes
20828 else
20829   echo "$as_me: failed program was:" >&5
20830 sed 's/^/| /' conftest.$ac_ext >&5
20831
20832         ac_cv_lib_ICE_IceConnectionNumber=no
20833 fi
20834
20835 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20836       conftest$ac_exeext conftest.$ac_ext
20837 LIBS=$ac_check_lib_save_LIBS
20838 fi
20839 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
20840 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
20841 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
20842   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
20843 fi
20844
20845   LDFLAGS=$ac_save_LDFLAGS
20846
20847 fi
20848
20849 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20850 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20851 if test "${ac_cv_header_stdc+set}" = set; then
20852   echo $ECHO_N "(cached) $ECHO_C" >&6
20853 else
20854   cat >conftest.$ac_ext <<_ACEOF
20855 /* confdefs.h.  */
20856 _ACEOF
20857 cat confdefs.h >>conftest.$ac_ext
20858 cat >>conftest.$ac_ext <<_ACEOF
20859 /* end confdefs.h.  */
20860 #include <stdlib.h>
20861 #include <stdarg.h>
20862 #include <string.h>
20863 #include <float.h>
20864
20865 int
20866 main ()
20867 {
20868
20869   ;
20870   return 0;
20871 }
20872 _ACEOF
20873 rm -f conftest.$ac_objext
20874 if { (ac_try="$ac_compile"
20875 case "(($ac_try" in
20876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20877   *) ac_try_echo=$ac_try;;
20878 esac
20879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20880   (eval "$ac_compile") 2>conftest.er1
20881   ac_status=$?
20882   grep -v '^ *+' conftest.er1 >conftest.err
20883   rm -f conftest.er1
20884   cat conftest.err >&5
20885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20886   (exit $ac_status); } && {
20887          test -z "$ac_c_werror_flag" ||
20888          test ! -s conftest.err
20889        } && test -s conftest.$ac_objext; then
20890   ac_cv_header_stdc=yes
20891 else
20892   echo "$as_me: failed program was:" >&5
20893 sed 's/^/| /' conftest.$ac_ext >&5
20894
20895         ac_cv_header_stdc=no
20896 fi
20897
20898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20899
20900 if test $ac_cv_header_stdc = yes; then
20901   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20902   cat >conftest.$ac_ext <<_ACEOF
20903 /* confdefs.h.  */
20904 _ACEOF
20905 cat confdefs.h >>conftest.$ac_ext
20906 cat >>conftest.$ac_ext <<_ACEOF
20907 /* end confdefs.h.  */
20908 #include <string.h>
20909
20910 _ACEOF
20911 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20912   $EGREP "memchr" >/dev/null 2>&1; then
20913   :
20914 else
20915   ac_cv_header_stdc=no
20916 fi
20917 rm -f conftest*
20918
20919 fi
20920
20921 if test $ac_cv_header_stdc = yes; then
20922   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20923   cat >conftest.$ac_ext <<_ACEOF
20924 /* confdefs.h.  */
20925 _ACEOF
20926 cat confdefs.h >>conftest.$ac_ext
20927 cat >>conftest.$ac_ext <<_ACEOF
20928 /* end confdefs.h.  */
20929 #include <stdlib.h>
20930
20931 _ACEOF
20932 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20933   $EGREP "free" >/dev/null 2>&1; then
20934   :
20935 else
20936   ac_cv_header_stdc=no
20937 fi
20938 rm -f conftest*
20939
20940 fi
20941
20942 if test $ac_cv_header_stdc = yes; then
20943   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20944   if test "$cross_compiling" = yes; then
20945   :
20946 else
20947   cat >conftest.$ac_ext <<_ACEOF
20948 /* confdefs.h.  */
20949 _ACEOF
20950 cat confdefs.h >>conftest.$ac_ext
20951 cat >>conftest.$ac_ext <<_ACEOF
20952 /* end confdefs.h.  */
20953 #include <ctype.h>
20954 #include <stdlib.h>
20955 #if ((' ' & 0x0FF) == 0x020)
20956 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20957 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20958 #else
20959 # define ISLOWER(c) \
20960                    (('a' <= (c) && (c) <= 'i') \
20961                      || ('j' <= (c) && (c) <= 'r') \
20962                      || ('s' <= (c) && (c) <= 'z'))
20963 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20964 #endif
20965
20966 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20967 int
20968 main ()
20969 {
20970   int i;
20971   for (i = 0; i < 256; i++)
20972     if (XOR (islower (i), ISLOWER (i))
20973         || toupper (i) != TOUPPER (i))
20974       return 2;
20975   return 0;
20976 }
20977 _ACEOF
20978 rm -f conftest$ac_exeext
20979 if { (ac_try="$ac_link"
20980 case "(($ac_try" in
20981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20982   *) ac_try_echo=$ac_try;;
20983 esac
20984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20985   (eval "$ac_link") 2>&5
20986   ac_status=$?
20987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20988   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20989   { (case "(($ac_try" in
20990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20991   *) ac_try_echo=$ac_try;;
20992 esac
20993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20994   (eval "$ac_try") 2>&5
20995   ac_status=$?
20996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20997   (exit $ac_status); }; }; then
20998   :
20999 else
21000   echo "$as_me: program exited with status $ac_status" >&5
21001 echo "$as_me: failed program was:" >&5
21002 sed 's/^/| /' conftest.$ac_ext >&5
21003
21004 ( exit $ac_status )
21005 ac_cv_header_stdc=no
21006 fi
21007 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21008 fi
21009
21010
21011 fi
21012 fi
21013 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21014 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
21015 if test $ac_cv_header_stdc = yes; then
21016
21017 cat >>confdefs.h <<\_ACEOF
21018 #define STDC_HEADERS 1
21019 _ACEOF
21020
21021 fi
21022
21023 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
21024 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
21025 if test "${ac_cv_header_sys_wait_h+set}" = set; then
21026   echo $ECHO_N "(cached) $ECHO_C" >&6
21027 else
21028   cat >conftest.$ac_ext <<_ACEOF
21029 /* confdefs.h.  */
21030 _ACEOF
21031 cat confdefs.h >>conftest.$ac_ext
21032 cat >>conftest.$ac_ext <<_ACEOF
21033 /* end confdefs.h.  */
21034 #include <sys/types.h>
21035 #include <sys/wait.h>
21036 #ifndef WEXITSTATUS
21037 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
21038 #endif
21039 #ifndef WIFEXITED
21040 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
21041 #endif
21042
21043 int
21044 main ()
21045 {
21046   int s;
21047   wait (&s);
21048   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
21049   ;
21050   return 0;
21051 }
21052 _ACEOF
21053 rm -f conftest.$ac_objext
21054 if { (ac_try="$ac_compile"
21055 case "(($ac_try" in
21056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21057   *) ac_try_echo=$ac_try;;
21058 esac
21059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21060   (eval "$ac_compile") 2>conftest.er1
21061   ac_status=$?
21062   grep -v '^ *+' conftest.er1 >conftest.err
21063   rm -f conftest.er1
21064   cat conftest.err >&5
21065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21066   (exit $ac_status); } && {
21067          test -z "$ac_c_werror_flag" ||
21068          test ! -s conftest.err
21069        } && test -s conftest.$ac_objext; then
21070   ac_cv_header_sys_wait_h=yes
21071 else
21072   echo "$as_me: failed program was:" >&5
21073 sed 's/^/| /' conftest.$ac_ext >&5
21074
21075         ac_cv_header_sys_wait_h=no
21076 fi
21077
21078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21079 fi
21080 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
21081 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
21082 if test $ac_cv_header_sys_wait_h = yes; then
21083
21084 cat >>confdefs.h <<\_ACEOF
21085 #define HAVE_SYS_WAIT_H 1
21086 _ACEOF
21087
21088 fi
21089
21090
21091
21092
21093
21094
21095
21096 for ac_header in fcntl.h paths.h sgtty.h unistd.h malloc.h term.h
21097 do
21098 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21099 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21100   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21101 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21102 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21103   echo $ECHO_N "(cached) $ECHO_C" >&6
21104 fi
21105 ac_res=`eval echo '${'$as_ac_Header'}'`
21106                { echo "$as_me:$LINENO: result: $ac_res" >&5
21107 echo "${ECHO_T}$ac_res" >&6; }
21108 else
21109   # Is the header compilable?
21110 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21111 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21112 cat >conftest.$ac_ext <<_ACEOF
21113 /* confdefs.h.  */
21114 _ACEOF
21115 cat confdefs.h >>conftest.$ac_ext
21116 cat >>conftest.$ac_ext <<_ACEOF
21117 /* end confdefs.h.  */
21118 $ac_includes_default
21119 #include <$ac_header>
21120 _ACEOF
21121 rm -f conftest.$ac_objext
21122 if { (ac_try="$ac_compile"
21123 case "(($ac_try" in
21124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21125   *) ac_try_echo=$ac_try;;
21126 esac
21127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21128   (eval "$ac_compile") 2>conftest.er1
21129   ac_status=$?
21130   grep -v '^ *+' conftest.er1 >conftest.err
21131   rm -f conftest.er1
21132   cat conftest.err >&5
21133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21134   (exit $ac_status); } && {
21135          test -z "$ac_c_werror_flag" ||
21136          test ! -s conftest.err
21137        } && test -s conftest.$ac_objext; then
21138   ac_header_compiler=yes
21139 else
21140   echo "$as_me: failed program was:" >&5
21141 sed 's/^/| /' conftest.$ac_ext >&5
21142
21143         ac_header_compiler=no
21144 fi
21145
21146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21147 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21148 echo "${ECHO_T}$ac_header_compiler" >&6; }
21149
21150 # Is the header present?
21151 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21152 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21153 cat >conftest.$ac_ext <<_ACEOF
21154 /* confdefs.h.  */
21155 _ACEOF
21156 cat confdefs.h >>conftest.$ac_ext
21157 cat >>conftest.$ac_ext <<_ACEOF
21158 /* end confdefs.h.  */
21159 #include <$ac_header>
21160 _ACEOF
21161 if { (ac_try="$ac_cpp conftest.$ac_ext"
21162 case "(($ac_try" in
21163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21164   *) ac_try_echo=$ac_try;;
21165 esac
21166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21167   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21168   ac_status=$?
21169   grep -v '^ *+' conftest.er1 >conftest.err
21170   rm -f conftest.er1
21171   cat conftest.err >&5
21172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21173   (exit $ac_status); } >/dev/null && {
21174          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21175          test ! -s conftest.err
21176        }; then
21177   ac_header_preproc=yes
21178 else
21179   echo "$as_me: failed program was:" >&5
21180 sed 's/^/| /' conftest.$ac_ext >&5
21181
21182   ac_header_preproc=no
21183 fi
21184
21185 rm -f conftest.err conftest.$ac_ext
21186 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21187 echo "${ECHO_T}$ac_header_preproc" >&6; }
21188
21189 # So?  What about this header?
21190 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21191   yes:no: )
21192     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21193 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21194     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21195 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21196     ac_header_preproc=yes
21197     ;;
21198   no:yes:* )
21199     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21200 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21201     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21202 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21203     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21204 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21205     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21206 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21207     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21208 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21209     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21210 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21211
21212     ;;
21213 esac
21214 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21215 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21216 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21217   echo $ECHO_N "(cached) $ECHO_C" >&6
21218 else
21219   eval "$as_ac_Header=\$ac_header_preproc"
21220 fi
21221 ac_res=`eval echo '${'$as_ac_Header'}'`
21222                { echo "$as_me:$LINENO: result: $ac_res" >&5
21223 echo "${ECHO_T}$ac_res" >&6; }
21224
21225 fi
21226 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21227   cat >>confdefs.h <<_ACEOF
21228 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21229 _ACEOF
21230
21231 fi
21232
21233 done
21234
21235
21236
21237
21238
21239
21240 for ac_header in sys/filio.h sys/ioctl.h sys/time.h sys/file.h sys/utsname.h
21241 do
21242 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21243 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21244   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21245 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21246 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21247   echo $ECHO_N "(cached) $ECHO_C" >&6
21248 fi
21249 ac_res=`eval echo '${'$as_ac_Header'}'`
21250                { echo "$as_me:$LINENO: result: $ac_res" >&5
21251 echo "${ECHO_T}$ac_res" >&6; }
21252 else
21253   # Is the header compilable?
21254 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21255 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21256 cat >conftest.$ac_ext <<_ACEOF
21257 /* confdefs.h.  */
21258 _ACEOF
21259 cat confdefs.h >>conftest.$ac_ext
21260 cat >>conftest.$ac_ext <<_ACEOF
21261 /* end confdefs.h.  */
21262 $ac_includes_default
21263 #include <$ac_header>
21264 _ACEOF
21265 rm -f conftest.$ac_objext
21266 if { (ac_try="$ac_compile"
21267 case "(($ac_try" in
21268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21269   *) ac_try_echo=$ac_try;;
21270 esac
21271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21272   (eval "$ac_compile") 2>conftest.er1
21273   ac_status=$?
21274   grep -v '^ *+' conftest.er1 >conftest.err
21275   rm -f conftest.er1
21276   cat conftest.err >&5
21277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21278   (exit $ac_status); } && {
21279          test -z "$ac_c_werror_flag" ||
21280          test ! -s conftest.err
21281        } && test -s conftest.$ac_objext; then
21282   ac_header_compiler=yes
21283 else
21284   echo "$as_me: failed program was:" >&5
21285 sed 's/^/| /' conftest.$ac_ext >&5
21286
21287         ac_header_compiler=no
21288 fi
21289
21290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21291 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21292 echo "${ECHO_T}$ac_header_compiler" >&6; }
21293
21294 # Is the header present?
21295 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21296 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21297 cat >conftest.$ac_ext <<_ACEOF
21298 /* confdefs.h.  */
21299 _ACEOF
21300 cat confdefs.h >>conftest.$ac_ext
21301 cat >>conftest.$ac_ext <<_ACEOF
21302 /* end confdefs.h.  */
21303 #include <$ac_header>
21304 _ACEOF
21305 if { (ac_try="$ac_cpp conftest.$ac_ext"
21306 case "(($ac_try" in
21307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21308   *) ac_try_echo=$ac_try;;
21309 esac
21310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21311   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21312   ac_status=$?
21313   grep -v '^ *+' conftest.er1 >conftest.err
21314   rm -f conftest.er1
21315   cat conftest.err >&5
21316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21317   (exit $ac_status); } >/dev/null && {
21318          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21319          test ! -s conftest.err
21320        }; then
21321   ac_header_preproc=yes
21322 else
21323   echo "$as_me: failed program was:" >&5
21324 sed 's/^/| /' conftest.$ac_ext >&5
21325
21326   ac_header_preproc=no
21327 fi
21328
21329 rm -f conftest.err conftest.$ac_ext
21330 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21331 echo "${ECHO_T}$ac_header_preproc" >&6; }
21332
21333 # So?  What about this header?
21334 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21335   yes:no: )
21336     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21337 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21338     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21339 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21340     ac_header_preproc=yes
21341     ;;
21342   no:yes:* )
21343     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21344 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21345     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21346 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21347     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21348 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21349     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21350 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21351     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21352 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21353     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21354 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21355
21356     ;;
21357 esac
21358 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21359 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21360 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21361   echo $ECHO_N "(cached) $ECHO_C" >&6
21362 else
21363   eval "$as_ac_Header=\$ac_header_preproc"
21364 fi
21365 ac_res=`eval echo '${'$as_ac_Header'}'`
21366                { echo "$as_me:$LINENO: result: $ac_res" >&5
21367 echo "${ECHO_T}$ac_res" >&6; }
21368
21369 fi
21370 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21371   cat >>confdefs.h <<_ACEOF
21372 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21373 _ACEOF
21374
21375 fi
21376
21377 done
21378
21379
21380
21381
21382
21383
21384 for ac_header in sys/select.h sys/msgbuf.h sys/cdefs.h krb5_err.h termcap.h
21385 do
21386 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21387 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21388   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21389 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21390 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21391   echo $ECHO_N "(cached) $ECHO_C" >&6
21392 fi
21393 ac_res=`eval echo '${'$as_ac_Header'}'`
21394                { echo "$as_me:$LINENO: result: $ac_res" >&5
21395 echo "${ECHO_T}$ac_res" >&6; }
21396 else
21397   # Is the header compilable?
21398 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21399 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21400 cat >conftest.$ac_ext <<_ACEOF
21401 /* confdefs.h.  */
21402 _ACEOF
21403 cat confdefs.h >>conftest.$ac_ext
21404 cat >>conftest.$ac_ext <<_ACEOF
21405 /* end confdefs.h.  */
21406 $ac_includes_default
21407 #include <$ac_header>
21408 _ACEOF
21409 rm -f conftest.$ac_objext
21410 if { (ac_try="$ac_compile"
21411 case "(($ac_try" in
21412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21413   *) ac_try_echo=$ac_try;;
21414 esac
21415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21416   (eval "$ac_compile") 2>conftest.er1
21417   ac_status=$?
21418   grep -v '^ *+' conftest.er1 >conftest.err
21419   rm -f conftest.er1
21420   cat conftest.err >&5
21421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21422   (exit $ac_status); } && {
21423          test -z "$ac_c_werror_flag" ||
21424          test ! -s conftest.err
21425        } && test -s conftest.$ac_objext; then
21426   ac_header_compiler=yes
21427 else
21428   echo "$as_me: failed program was:" >&5
21429 sed 's/^/| /' conftest.$ac_ext >&5
21430
21431         ac_header_compiler=no
21432 fi
21433
21434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21435 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21436 echo "${ECHO_T}$ac_header_compiler" >&6; }
21437
21438 # Is the header present?
21439 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21440 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21441 cat >conftest.$ac_ext <<_ACEOF
21442 /* confdefs.h.  */
21443 _ACEOF
21444 cat confdefs.h >>conftest.$ac_ext
21445 cat >>conftest.$ac_ext <<_ACEOF
21446 /* end confdefs.h.  */
21447 #include <$ac_header>
21448 _ACEOF
21449 if { (ac_try="$ac_cpp conftest.$ac_ext"
21450 case "(($ac_try" in
21451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21452   *) ac_try_echo=$ac_try;;
21453 esac
21454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21455   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21456   ac_status=$?
21457   grep -v '^ *+' conftest.er1 >conftest.err
21458   rm -f conftest.er1
21459   cat conftest.err >&5
21460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21461   (exit $ac_status); } >/dev/null && {
21462          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21463          test ! -s conftest.err
21464        }; then
21465   ac_header_preproc=yes
21466 else
21467   echo "$as_me: failed program was:" >&5
21468 sed 's/^/| /' conftest.$ac_ext >&5
21469
21470   ac_header_preproc=no
21471 fi
21472
21473 rm -f conftest.err conftest.$ac_ext
21474 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21475 echo "${ECHO_T}$ac_header_preproc" >&6; }
21476
21477 # So?  What about this header?
21478 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21479   yes:no: )
21480     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21481 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21482     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21483 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21484     ac_header_preproc=yes
21485     ;;
21486   no:yes:* )
21487     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21488 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21489     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21490 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21491     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21492 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21493     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21494 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21495     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21496 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21497     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21498 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21499
21500     ;;
21501 esac
21502 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21503 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21504 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21505   echo $ECHO_N "(cached) $ECHO_C" >&6
21506 else
21507   eval "$as_ac_Header=\$ac_header_preproc"
21508 fi
21509 ac_res=`eval echo '${'$as_ac_Header'}'`
21510                { echo "$as_me:$LINENO: result: $ac_res" >&5
21511 echo "${ECHO_T}$ac_res" >&6; }
21512
21513 fi
21514 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21515   cat >>confdefs.h <<_ACEOF
21516 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21517 _ACEOF
21518
21519 fi
21520
21521 done
21522
21523
21524
21525
21526
21527 for ac_header in arpa/nameser_compat.h stdbool.h termio.h curses.h
21528 do
21529 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21530 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21531   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21532 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21533 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21534   echo $ECHO_N "(cached) $ECHO_C" >&6
21535 fi
21536 ac_res=`eval echo '${'$as_ac_Header'}'`
21537                { echo "$as_me:$LINENO: result: $ac_res" >&5
21538 echo "${ECHO_T}$ac_res" >&6; }
21539 else
21540   # Is the header compilable?
21541 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21542 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21543 cat >conftest.$ac_ext <<_ACEOF
21544 /* confdefs.h.  */
21545 _ACEOF
21546 cat confdefs.h >>conftest.$ac_ext
21547 cat >>conftest.$ac_ext <<_ACEOF
21548 /* end confdefs.h.  */
21549 $ac_includes_default
21550 #include <$ac_header>
21551 _ACEOF
21552 rm -f conftest.$ac_objext
21553 if { (ac_try="$ac_compile"
21554 case "(($ac_try" in
21555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21556   *) ac_try_echo=$ac_try;;
21557 esac
21558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21559   (eval "$ac_compile") 2>conftest.er1
21560   ac_status=$?
21561   grep -v '^ *+' conftest.er1 >conftest.err
21562   rm -f conftest.er1
21563   cat conftest.err >&5
21564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21565   (exit $ac_status); } && {
21566          test -z "$ac_c_werror_flag" ||
21567          test ! -s conftest.err
21568        } && test -s conftest.$ac_objext; then
21569   ac_header_compiler=yes
21570 else
21571   echo "$as_me: failed program was:" >&5
21572 sed 's/^/| /' conftest.$ac_ext >&5
21573
21574         ac_header_compiler=no
21575 fi
21576
21577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21578 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21579 echo "${ECHO_T}$ac_header_compiler" >&6; }
21580
21581 # Is the header present?
21582 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21583 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21584 cat >conftest.$ac_ext <<_ACEOF
21585 /* confdefs.h.  */
21586 _ACEOF
21587 cat confdefs.h >>conftest.$ac_ext
21588 cat >>conftest.$ac_ext <<_ACEOF
21589 /* end confdefs.h.  */
21590 #include <$ac_header>
21591 _ACEOF
21592 if { (ac_try="$ac_cpp conftest.$ac_ext"
21593 case "(($ac_try" in
21594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21595   *) ac_try_echo=$ac_try;;
21596 esac
21597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21598   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21599   ac_status=$?
21600   grep -v '^ *+' conftest.er1 >conftest.err
21601   rm -f conftest.er1
21602   cat conftest.err >&5
21603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21604   (exit $ac_status); } >/dev/null && {
21605          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21606          test ! -s conftest.err
21607        }; then
21608   ac_header_preproc=yes
21609 else
21610   echo "$as_me: failed program was:" >&5
21611 sed 's/^/| /' conftest.$ac_ext >&5
21612
21613   ac_header_preproc=no
21614 fi
21615
21616 rm -f conftest.err conftest.$ac_ext
21617 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21618 echo "${ECHO_T}$ac_header_preproc" >&6; }
21619
21620 # So?  What about this header?
21621 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21622   yes:no: )
21623     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21624 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21625     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21626 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21627     ac_header_preproc=yes
21628     ;;
21629   no:yes:* )
21630     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21631 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21632     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21633 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21634     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21635 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21636     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21637 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21638     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21639 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21640     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21641 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21642
21643     ;;
21644 esac
21645 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21646 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21647 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21648   echo $ECHO_N "(cached) $ECHO_C" >&6
21649 else
21650   eval "$as_ac_Header=\$ac_header_preproc"
21651 fi
21652 ac_res=`eval echo '${'$as_ac_Header'}'`
21653                { echo "$as_me:$LINENO: result: $ac_res" >&5
21654 echo "${ECHO_T}$ac_res" >&6; }
21655
21656 fi
21657 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21658   cat >>confdefs.h <<_ACEOF
21659 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21660 _ACEOF
21661
21662 fi
21663
21664 done
21665
21666
21667 if test "$no_x" != "yes"; then
21668         ZWGC_LIBX11=-lX11
21669 fi
21670
21671
21672
21673 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
21674 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
21675 if test "${ac_cv_type_signal+set}" = set; then
21676   echo $ECHO_N "(cached) $ECHO_C" >&6
21677 else
21678   cat >conftest.$ac_ext <<_ACEOF
21679 /* confdefs.h.  */
21680 _ACEOF
21681 cat confdefs.h >>conftest.$ac_ext
21682 cat >>conftest.$ac_ext <<_ACEOF
21683 /* end confdefs.h.  */
21684 #include <sys/types.h>
21685 #include <signal.h>
21686
21687 int
21688 main ()
21689 {
21690 return *(signal (0, 0)) (0) == 1;
21691   ;
21692   return 0;
21693 }
21694 _ACEOF
21695 rm -f conftest.$ac_objext
21696 if { (ac_try="$ac_compile"
21697 case "(($ac_try" in
21698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21699   *) ac_try_echo=$ac_try;;
21700 esac
21701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21702   (eval "$ac_compile") 2>conftest.er1
21703   ac_status=$?
21704   grep -v '^ *+' conftest.er1 >conftest.err
21705   rm -f conftest.er1
21706   cat conftest.err >&5
21707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21708   (exit $ac_status); } && {
21709          test -z "$ac_c_werror_flag" ||
21710          test ! -s conftest.err
21711        } && test -s conftest.$ac_objext; then
21712   ac_cv_type_signal=int
21713 else
21714   echo "$as_me: failed program was:" >&5
21715 sed 's/^/| /' conftest.$ac_ext >&5
21716
21717         ac_cv_type_signal=void
21718 fi
21719
21720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21721 fi
21722 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
21723 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
21724
21725 cat >>confdefs.h <<_ACEOF
21726 #define RETSIGTYPE $ac_cv_type_signal
21727 _ACEOF
21728
21729
21730 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
21731 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
21732 if test "${ac_cv_type_uid_t+set}" = set; then
21733   echo $ECHO_N "(cached) $ECHO_C" >&6
21734 else
21735   cat >conftest.$ac_ext <<_ACEOF
21736 /* confdefs.h.  */
21737 _ACEOF
21738 cat confdefs.h >>conftest.$ac_ext
21739 cat >>conftest.$ac_ext <<_ACEOF
21740 /* end confdefs.h.  */
21741 #include <sys/types.h>
21742
21743 _ACEOF
21744 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21745   $EGREP "uid_t" >/dev/null 2>&1; then
21746   ac_cv_type_uid_t=yes
21747 else
21748   ac_cv_type_uid_t=no
21749 fi
21750 rm -f conftest*
21751
21752 fi
21753 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
21754 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
21755 if test $ac_cv_type_uid_t = no; then
21756
21757 cat >>confdefs.h <<\_ACEOF
21758 #define uid_t int
21759 _ACEOF
21760
21761
21762 cat >>confdefs.h <<\_ACEOF
21763 #define gid_t int
21764 _ACEOF
21765
21766 fi
21767
21768 { echo "$as_me:$LINENO: checking for short" >&5
21769 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
21770 if test "${ac_cv_type_short+set}" = set; then
21771   echo $ECHO_N "(cached) $ECHO_C" >&6
21772 else
21773   cat >conftest.$ac_ext <<_ACEOF
21774 /* confdefs.h.  */
21775 _ACEOF
21776 cat confdefs.h >>conftest.$ac_ext
21777 cat >>conftest.$ac_ext <<_ACEOF
21778 /* end confdefs.h.  */
21779 $ac_includes_default
21780 typedef short ac__type_new_;
21781 int
21782 main ()
21783 {
21784 if ((ac__type_new_ *) 0)
21785   return 0;
21786 if (sizeof (ac__type_new_))
21787   return 0;
21788   ;
21789   return 0;
21790 }
21791 _ACEOF
21792 rm -f conftest.$ac_objext
21793 if { (ac_try="$ac_compile"
21794 case "(($ac_try" in
21795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21796   *) ac_try_echo=$ac_try;;
21797 esac
21798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21799   (eval "$ac_compile") 2>conftest.er1
21800   ac_status=$?
21801   grep -v '^ *+' conftest.er1 >conftest.err
21802   rm -f conftest.er1
21803   cat conftest.err >&5
21804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21805   (exit $ac_status); } && {
21806          test -z "$ac_c_werror_flag" ||
21807          test ! -s conftest.err
21808        } && test -s conftest.$ac_objext; then
21809   ac_cv_type_short=yes
21810 else
21811   echo "$as_me: failed program was:" >&5
21812 sed 's/^/| /' conftest.$ac_ext >&5
21813
21814         ac_cv_type_short=no
21815 fi
21816
21817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21818 fi
21819 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
21820 echo "${ECHO_T}$ac_cv_type_short" >&6; }
21821
21822 # The cast to long int works around a bug in the HP C Compiler
21823 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21824 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21825 # This bug is HP SR number 8606223364.
21826 { echo "$as_me:$LINENO: checking size of short" >&5
21827 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
21828 if test "${ac_cv_sizeof_short+set}" = set; then
21829   echo $ECHO_N "(cached) $ECHO_C" >&6
21830 else
21831   if test "$cross_compiling" = yes; then
21832   # Depending upon the size, compute the lo and hi bounds.
21833 cat >conftest.$ac_ext <<_ACEOF
21834 /* confdefs.h.  */
21835 _ACEOF
21836 cat confdefs.h >>conftest.$ac_ext
21837 cat >>conftest.$ac_ext <<_ACEOF
21838 /* end confdefs.h.  */
21839 $ac_includes_default
21840    typedef short ac__type_sizeof_;
21841 int
21842 main ()
21843 {
21844 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21845 test_array [0] = 0
21846
21847   ;
21848   return 0;
21849 }
21850 _ACEOF
21851 rm -f conftest.$ac_objext
21852 if { (ac_try="$ac_compile"
21853 case "(($ac_try" in
21854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21855   *) ac_try_echo=$ac_try;;
21856 esac
21857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21858   (eval "$ac_compile") 2>conftest.er1
21859   ac_status=$?
21860   grep -v '^ *+' conftest.er1 >conftest.err
21861   rm -f conftest.er1
21862   cat conftest.err >&5
21863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21864   (exit $ac_status); } && {
21865          test -z "$ac_c_werror_flag" ||
21866          test ! -s conftest.err
21867        } && test -s conftest.$ac_objext; then
21868   ac_lo=0 ac_mid=0
21869   while :; do
21870     cat >conftest.$ac_ext <<_ACEOF
21871 /* confdefs.h.  */
21872 _ACEOF
21873 cat confdefs.h >>conftest.$ac_ext
21874 cat >>conftest.$ac_ext <<_ACEOF
21875 /* end confdefs.h.  */
21876 $ac_includes_default
21877    typedef short ac__type_sizeof_;
21878 int
21879 main ()
21880 {
21881 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21882 test_array [0] = 0
21883
21884   ;
21885   return 0;
21886 }
21887 _ACEOF
21888 rm -f conftest.$ac_objext
21889 if { (ac_try="$ac_compile"
21890 case "(($ac_try" in
21891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21892   *) ac_try_echo=$ac_try;;
21893 esac
21894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21895   (eval "$ac_compile") 2>conftest.er1
21896   ac_status=$?
21897   grep -v '^ *+' conftest.er1 >conftest.err
21898   rm -f conftest.er1
21899   cat conftest.err >&5
21900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21901   (exit $ac_status); } && {
21902          test -z "$ac_c_werror_flag" ||
21903          test ! -s conftest.err
21904        } && test -s conftest.$ac_objext; then
21905   ac_hi=$ac_mid; break
21906 else
21907   echo "$as_me: failed program was:" >&5
21908 sed 's/^/| /' conftest.$ac_ext >&5
21909
21910         ac_lo=`expr $ac_mid + 1`
21911                         if test $ac_lo -le $ac_mid; then
21912                           ac_lo= ac_hi=
21913                           break
21914                         fi
21915                         ac_mid=`expr 2 '*' $ac_mid + 1`
21916 fi
21917
21918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21919   done
21920 else
21921   echo "$as_me: failed program was:" >&5
21922 sed 's/^/| /' conftest.$ac_ext >&5
21923
21924         cat >conftest.$ac_ext <<_ACEOF
21925 /* confdefs.h.  */
21926 _ACEOF
21927 cat confdefs.h >>conftest.$ac_ext
21928 cat >>conftest.$ac_ext <<_ACEOF
21929 /* end confdefs.h.  */
21930 $ac_includes_default
21931    typedef short ac__type_sizeof_;
21932 int
21933 main ()
21934 {
21935 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21936 test_array [0] = 0
21937
21938   ;
21939   return 0;
21940 }
21941 _ACEOF
21942 rm -f conftest.$ac_objext
21943 if { (ac_try="$ac_compile"
21944 case "(($ac_try" in
21945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21946   *) ac_try_echo=$ac_try;;
21947 esac
21948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21949   (eval "$ac_compile") 2>conftest.er1
21950   ac_status=$?
21951   grep -v '^ *+' conftest.er1 >conftest.err
21952   rm -f conftest.er1
21953   cat conftest.err >&5
21954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21955   (exit $ac_status); } && {
21956          test -z "$ac_c_werror_flag" ||
21957          test ! -s conftest.err
21958        } && test -s conftest.$ac_objext; then
21959   ac_hi=-1 ac_mid=-1
21960   while :; do
21961     cat >conftest.$ac_ext <<_ACEOF
21962 /* confdefs.h.  */
21963 _ACEOF
21964 cat confdefs.h >>conftest.$ac_ext
21965 cat >>conftest.$ac_ext <<_ACEOF
21966 /* end confdefs.h.  */
21967 $ac_includes_default
21968    typedef short ac__type_sizeof_;
21969 int
21970 main ()
21971 {
21972 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21973 test_array [0] = 0
21974
21975   ;
21976   return 0;
21977 }
21978 _ACEOF
21979 rm -f conftest.$ac_objext
21980 if { (ac_try="$ac_compile"
21981 case "(($ac_try" in
21982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21983   *) ac_try_echo=$ac_try;;
21984 esac
21985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21986   (eval "$ac_compile") 2>conftest.er1
21987   ac_status=$?
21988   grep -v '^ *+' conftest.er1 >conftest.err
21989   rm -f conftest.er1
21990   cat conftest.err >&5
21991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21992   (exit $ac_status); } && {
21993          test -z "$ac_c_werror_flag" ||
21994          test ! -s conftest.err
21995        } && test -s conftest.$ac_objext; then
21996   ac_lo=$ac_mid; break
21997 else
21998   echo "$as_me: failed program was:" >&5
21999 sed 's/^/| /' conftest.$ac_ext >&5
22000
22001         ac_hi=`expr '(' $ac_mid ')' - 1`
22002                         if test $ac_mid -le $ac_hi; then
22003                           ac_lo= ac_hi=
22004                           break
22005                         fi
22006                         ac_mid=`expr 2 '*' $ac_mid`
22007 fi
22008
22009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22010   done
22011 else
22012   echo "$as_me: failed program was:" >&5
22013 sed 's/^/| /' conftest.$ac_ext >&5
22014
22015         ac_lo= ac_hi=
22016 fi
22017
22018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22019 fi
22020
22021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22022 # Binary search between lo and hi bounds.
22023 while test "x$ac_lo" != "x$ac_hi"; do
22024   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22025   cat >conftest.$ac_ext <<_ACEOF
22026 /* confdefs.h.  */
22027 _ACEOF
22028 cat confdefs.h >>conftest.$ac_ext
22029 cat >>conftest.$ac_ext <<_ACEOF
22030 /* end confdefs.h.  */
22031 $ac_includes_default
22032    typedef short ac__type_sizeof_;
22033 int
22034 main ()
22035 {
22036 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22037 test_array [0] = 0
22038
22039   ;
22040   return 0;
22041 }
22042 _ACEOF
22043 rm -f conftest.$ac_objext
22044 if { (ac_try="$ac_compile"
22045 case "(($ac_try" in
22046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22047   *) ac_try_echo=$ac_try;;
22048 esac
22049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22050   (eval "$ac_compile") 2>conftest.er1
22051   ac_status=$?
22052   grep -v '^ *+' conftest.er1 >conftest.err
22053   rm -f conftest.er1
22054   cat conftest.err >&5
22055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22056   (exit $ac_status); } && {
22057          test -z "$ac_c_werror_flag" ||
22058          test ! -s conftest.err
22059        } && test -s conftest.$ac_objext; then
22060   ac_hi=$ac_mid
22061 else
22062   echo "$as_me: failed program was:" >&5
22063 sed 's/^/| /' conftest.$ac_ext >&5
22064
22065         ac_lo=`expr '(' $ac_mid ')' + 1`
22066 fi
22067
22068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22069 done
22070 case $ac_lo in
22071 ?*) ac_cv_sizeof_short=$ac_lo;;
22072 '') if test "$ac_cv_type_short" = yes; then
22073      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
22074 See \`config.log' for more details." >&5
22075 echo "$as_me: error: cannot compute sizeof (short)
22076 See \`config.log' for more details." >&2;}
22077    { (exit 77); exit 77; }; }
22078    else
22079      ac_cv_sizeof_short=0
22080    fi ;;
22081 esac
22082 else
22083   cat >conftest.$ac_ext <<_ACEOF
22084 /* confdefs.h.  */
22085 _ACEOF
22086 cat confdefs.h >>conftest.$ac_ext
22087 cat >>conftest.$ac_ext <<_ACEOF
22088 /* end confdefs.h.  */
22089 $ac_includes_default
22090    typedef short ac__type_sizeof_;
22091 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22092 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22093 #include <stdio.h>
22094 #include <stdlib.h>
22095 int
22096 main ()
22097 {
22098
22099   FILE *f = fopen ("conftest.val", "w");
22100   if (! f)
22101     return 1;
22102   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22103     {
22104       long int i = longval ();
22105       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22106         return 1;
22107       fprintf (f, "%ld\n", i);
22108     }
22109   else
22110     {
22111       unsigned long int i = ulongval ();
22112       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22113         return 1;
22114       fprintf (f, "%lu\n", i);
22115     }
22116   return ferror (f) || fclose (f) != 0;
22117
22118   ;
22119   return 0;
22120 }
22121 _ACEOF
22122 rm -f conftest$ac_exeext
22123 if { (ac_try="$ac_link"
22124 case "(($ac_try" in
22125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22126   *) ac_try_echo=$ac_try;;
22127 esac
22128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22129   (eval "$ac_link") 2>&5
22130   ac_status=$?
22131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22132   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22133   { (case "(($ac_try" in
22134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22135   *) ac_try_echo=$ac_try;;
22136 esac
22137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22138   (eval "$ac_try") 2>&5
22139   ac_status=$?
22140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22141   (exit $ac_status); }; }; then
22142   ac_cv_sizeof_short=`cat conftest.val`
22143 else
22144   echo "$as_me: program exited with status $ac_status" >&5
22145 echo "$as_me: failed program was:" >&5
22146 sed 's/^/| /' conftest.$ac_ext >&5
22147
22148 ( exit $ac_status )
22149 if test "$ac_cv_type_short" = yes; then
22150      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
22151 See \`config.log' for more details." >&5
22152 echo "$as_me: error: cannot compute sizeof (short)
22153 See \`config.log' for more details." >&2;}
22154    { (exit 77); exit 77; }; }
22155    else
22156      ac_cv_sizeof_short=0
22157    fi
22158 fi
22159 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22160 fi
22161 rm -f conftest.val
22162 fi
22163 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
22164 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
22165
22166
22167
22168 cat >>confdefs.h <<_ACEOF
22169 #define SIZEOF_SHORT $ac_cv_sizeof_short
22170 _ACEOF
22171
22172
22173 { echo "$as_me:$LINENO: checking for int" >&5
22174 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
22175 if test "${ac_cv_type_int+set}" = set; then
22176   echo $ECHO_N "(cached) $ECHO_C" >&6
22177 else
22178   cat >conftest.$ac_ext <<_ACEOF
22179 /* confdefs.h.  */
22180 _ACEOF
22181 cat confdefs.h >>conftest.$ac_ext
22182 cat >>conftest.$ac_ext <<_ACEOF
22183 /* end confdefs.h.  */
22184 $ac_includes_default
22185 typedef int ac__type_new_;
22186 int
22187 main ()
22188 {
22189 if ((ac__type_new_ *) 0)
22190   return 0;
22191 if (sizeof (ac__type_new_))
22192   return 0;
22193   ;
22194   return 0;
22195 }
22196 _ACEOF
22197 rm -f conftest.$ac_objext
22198 if { (ac_try="$ac_compile"
22199 case "(($ac_try" in
22200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22201   *) ac_try_echo=$ac_try;;
22202 esac
22203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22204   (eval "$ac_compile") 2>conftest.er1
22205   ac_status=$?
22206   grep -v '^ *+' conftest.er1 >conftest.err
22207   rm -f conftest.er1
22208   cat conftest.err >&5
22209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22210   (exit $ac_status); } && {
22211          test -z "$ac_c_werror_flag" ||
22212          test ! -s conftest.err
22213        } && test -s conftest.$ac_objext; then
22214   ac_cv_type_int=yes
22215 else
22216   echo "$as_me: failed program was:" >&5
22217 sed 's/^/| /' conftest.$ac_ext >&5
22218
22219         ac_cv_type_int=no
22220 fi
22221
22222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22223 fi
22224 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
22225 echo "${ECHO_T}$ac_cv_type_int" >&6; }
22226
22227 # The cast to long int works around a bug in the HP C Compiler
22228 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22229 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22230 # This bug is HP SR number 8606223364.
22231 { echo "$as_me:$LINENO: checking size of int" >&5
22232 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
22233 if test "${ac_cv_sizeof_int+set}" = set; then
22234   echo $ECHO_N "(cached) $ECHO_C" >&6
22235 else
22236   if test "$cross_compiling" = yes; then
22237   # Depending upon the size, compute the lo and hi bounds.
22238 cat >conftest.$ac_ext <<_ACEOF
22239 /* confdefs.h.  */
22240 _ACEOF
22241 cat confdefs.h >>conftest.$ac_ext
22242 cat >>conftest.$ac_ext <<_ACEOF
22243 /* end confdefs.h.  */
22244 $ac_includes_default
22245    typedef int ac__type_sizeof_;
22246 int
22247 main ()
22248 {
22249 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22250 test_array [0] = 0
22251
22252   ;
22253   return 0;
22254 }
22255 _ACEOF
22256 rm -f conftest.$ac_objext
22257 if { (ac_try="$ac_compile"
22258 case "(($ac_try" in
22259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22260   *) ac_try_echo=$ac_try;;
22261 esac
22262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22263   (eval "$ac_compile") 2>conftest.er1
22264   ac_status=$?
22265   grep -v '^ *+' conftest.er1 >conftest.err
22266   rm -f conftest.er1
22267   cat conftest.err >&5
22268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22269   (exit $ac_status); } && {
22270          test -z "$ac_c_werror_flag" ||
22271          test ! -s conftest.err
22272        } && test -s conftest.$ac_objext; then
22273   ac_lo=0 ac_mid=0
22274   while :; do
22275     cat >conftest.$ac_ext <<_ACEOF
22276 /* confdefs.h.  */
22277 _ACEOF
22278 cat confdefs.h >>conftest.$ac_ext
22279 cat >>conftest.$ac_ext <<_ACEOF
22280 /* end confdefs.h.  */
22281 $ac_includes_default
22282    typedef int ac__type_sizeof_;
22283 int
22284 main ()
22285 {
22286 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22287 test_array [0] = 0
22288
22289   ;
22290   return 0;
22291 }
22292 _ACEOF
22293 rm -f conftest.$ac_objext
22294 if { (ac_try="$ac_compile"
22295 case "(($ac_try" in
22296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22297   *) ac_try_echo=$ac_try;;
22298 esac
22299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22300   (eval "$ac_compile") 2>conftest.er1
22301   ac_status=$?
22302   grep -v '^ *+' conftest.er1 >conftest.err
22303   rm -f conftest.er1
22304   cat conftest.err >&5
22305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22306   (exit $ac_status); } && {
22307          test -z "$ac_c_werror_flag" ||
22308          test ! -s conftest.err
22309        } && test -s conftest.$ac_objext; then
22310   ac_hi=$ac_mid; break
22311 else
22312   echo "$as_me: failed program was:" >&5
22313 sed 's/^/| /' conftest.$ac_ext >&5
22314
22315         ac_lo=`expr $ac_mid + 1`
22316                         if test $ac_lo -le $ac_mid; then
22317                           ac_lo= ac_hi=
22318                           break
22319                         fi
22320                         ac_mid=`expr 2 '*' $ac_mid + 1`
22321 fi
22322
22323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22324   done
22325 else
22326   echo "$as_me: failed program was:" >&5
22327 sed 's/^/| /' conftest.$ac_ext >&5
22328
22329         cat >conftest.$ac_ext <<_ACEOF
22330 /* confdefs.h.  */
22331 _ACEOF
22332 cat confdefs.h >>conftest.$ac_ext
22333 cat >>conftest.$ac_ext <<_ACEOF
22334 /* end confdefs.h.  */
22335 $ac_includes_default
22336    typedef int ac__type_sizeof_;
22337 int
22338 main ()
22339 {
22340 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22341 test_array [0] = 0
22342
22343   ;
22344   return 0;
22345 }
22346 _ACEOF
22347 rm -f conftest.$ac_objext
22348 if { (ac_try="$ac_compile"
22349 case "(($ac_try" in
22350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22351   *) ac_try_echo=$ac_try;;
22352 esac
22353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22354   (eval "$ac_compile") 2>conftest.er1
22355   ac_status=$?
22356   grep -v '^ *+' conftest.er1 >conftest.err
22357   rm -f conftest.er1
22358   cat conftest.err >&5
22359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22360   (exit $ac_status); } && {
22361          test -z "$ac_c_werror_flag" ||
22362          test ! -s conftest.err
22363        } && test -s conftest.$ac_objext; then
22364   ac_hi=-1 ac_mid=-1
22365   while :; do
22366     cat >conftest.$ac_ext <<_ACEOF
22367 /* confdefs.h.  */
22368 _ACEOF
22369 cat confdefs.h >>conftest.$ac_ext
22370 cat >>conftest.$ac_ext <<_ACEOF
22371 /* end confdefs.h.  */
22372 $ac_includes_default
22373    typedef int ac__type_sizeof_;
22374 int
22375 main ()
22376 {
22377 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22378 test_array [0] = 0
22379
22380   ;
22381   return 0;
22382 }
22383 _ACEOF
22384 rm -f conftest.$ac_objext
22385 if { (ac_try="$ac_compile"
22386 case "(($ac_try" in
22387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22388   *) ac_try_echo=$ac_try;;
22389 esac
22390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22391   (eval "$ac_compile") 2>conftest.er1
22392   ac_status=$?
22393   grep -v '^ *+' conftest.er1 >conftest.err
22394   rm -f conftest.er1
22395   cat conftest.err >&5
22396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22397   (exit $ac_status); } && {
22398          test -z "$ac_c_werror_flag" ||
22399          test ! -s conftest.err
22400        } && test -s conftest.$ac_objext; then
22401   ac_lo=$ac_mid; break
22402 else
22403   echo "$as_me: failed program was:" >&5
22404 sed 's/^/| /' conftest.$ac_ext >&5
22405
22406         ac_hi=`expr '(' $ac_mid ')' - 1`
22407                         if test $ac_mid -le $ac_hi; then
22408                           ac_lo= ac_hi=
22409                           break
22410                         fi
22411                         ac_mid=`expr 2 '*' $ac_mid`
22412 fi
22413
22414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22415   done
22416 else
22417   echo "$as_me: failed program was:" >&5
22418 sed 's/^/| /' conftest.$ac_ext >&5
22419
22420         ac_lo= ac_hi=
22421 fi
22422
22423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22424 fi
22425
22426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22427 # Binary search between lo and hi bounds.
22428 while test "x$ac_lo" != "x$ac_hi"; do
22429   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22430   cat >conftest.$ac_ext <<_ACEOF
22431 /* confdefs.h.  */
22432 _ACEOF
22433 cat confdefs.h >>conftest.$ac_ext
22434 cat >>conftest.$ac_ext <<_ACEOF
22435 /* end confdefs.h.  */
22436 $ac_includes_default
22437    typedef int ac__type_sizeof_;
22438 int
22439 main ()
22440 {
22441 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22442 test_array [0] = 0
22443
22444   ;
22445   return 0;
22446 }
22447 _ACEOF
22448 rm -f conftest.$ac_objext
22449 if { (ac_try="$ac_compile"
22450 case "(($ac_try" in
22451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22452   *) ac_try_echo=$ac_try;;
22453 esac
22454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22455   (eval "$ac_compile") 2>conftest.er1
22456   ac_status=$?
22457   grep -v '^ *+' conftest.er1 >conftest.err
22458   rm -f conftest.er1
22459   cat conftest.err >&5
22460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22461   (exit $ac_status); } && {
22462          test -z "$ac_c_werror_flag" ||
22463          test ! -s conftest.err
22464        } && test -s conftest.$ac_objext; then
22465   ac_hi=$ac_mid
22466 else
22467   echo "$as_me: failed program was:" >&5
22468 sed 's/^/| /' conftest.$ac_ext >&5
22469
22470         ac_lo=`expr '(' $ac_mid ')' + 1`
22471 fi
22472
22473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22474 done
22475 case $ac_lo in
22476 ?*) ac_cv_sizeof_int=$ac_lo;;
22477 '') if test "$ac_cv_type_int" = yes; then
22478      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
22479 See \`config.log' for more details." >&5
22480 echo "$as_me: error: cannot compute sizeof (int)
22481 See \`config.log' for more details." >&2;}
22482    { (exit 77); exit 77; }; }
22483    else
22484      ac_cv_sizeof_int=0
22485    fi ;;
22486 esac
22487 else
22488   cat >conftest.$ac_ext <<_ACEOF
22489 /* confdefs.h.  */
22490 _ACEOF
22491 cat confdefs.h >>conftest.$ac_ext
22492 cat >>conftest.$ac_ext <<_ACEOF
22493 /* end confdefs.h.  */
22494 $ac_includes_default
22495    typedef int ac__type_sizeof_;
22496 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22497 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22498 #include <stdio.h>
22499 #include <stdlib.h>
22500 int
22501 main ()
22502 {
22503
22504   FILE *f = fopen ("conftest.val", "w");
22505   if (! f)
22506     return 1;
22507   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22508     {
22509       long int i = longval ();
22510       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22511         return 1;
22512       fprintf (f, "%ld\n", i);
22513     }
22514   else
22515     {
22516       unsigned long int i = ulongval ();
22517       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22518         return 1;
22519       fprintf (f, "%lu\n", i);
22520     }
22521   return ferror (f) || fclose (f) != 0;
22522
22523   ;
22524   return 0;
22525 }
22526 _ACEOF
22527 rm -f conftest$ac_exeext
22528 if { (ac_try="$ac_link"
22529 case "(($ac_try" in
22530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22531   *) ac_try_echo=$ac_try;;
22532 esac
22533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22534   (eval "$ac_link") 2>&5
22535   ac_status=$?
22536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22537   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22538   { (case "(($ac_try" in
22539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22540   *) ac_try_echo=$ac_try;;
22541 esac
22542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22543   (eval "$ac_try") 2>&5
22544   ac_status=$?
22545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22546   (exit $ac_status); }; }; then
22547   ac_cv_sizeof_int=`cat conftest.val`
22548 else
22549   echo "$as_me: program exited with status $ac_status" >&5
22550 echo "$as_me: failed program was:" >&5
22551 sed 's/^/| /' conftest.$ac_ext >&5
22552
22553 ( exit $ac_status )
22554 if test "$ac_cv_type_int" = yes; then
22555      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
22556 See \`config.log' for more details." >&5
22557 echo "$as_me: error: cannot compute sizeof (int)
22558 See \`config.log' for more details." >&2;}
22559    { (exit 77); exit 77; }; }
22560    else
22561      ac_cv_sizeof_int=0
22562    fi
22563 fi
22564 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22565 fi
22566 rm -f conftest.val
22567 fi
22568 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
22569 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
22570
22571
22572
22573 cat >>confdefs.h <<_ACEOF
22574 #define SIZEOF_INT $ac_cv_sizeof_int
22575 _ACEOF
22576
22577
22578 { echo "$as_me:$LINENO: checking for long" >&5
22579 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
22580 if test "${ac_cv_type_long+set}" = set; then
22581   echo $ECHO_N "(cached) $ECHO_C" >&6
22582 else
22583   cat >conftest.$ac_ext <<_ACEOF
22584 /* confdefs.h.  */
22585 _ACEOF
22586 cat confdefs.h >>conftest.$ac_ext
22587 cat >>conftest.$ac_ext <<_ACEOF
22588 /* end confdefs.h.  */
22589 $ac_includes_default
22590 typedef long ac__type_new_;
22591 int
22592 main ()
22593 {
22594 if ((ac__type_new_ *) 0)
22595   return 0;
22596 if (sizeof (ac__type_new_))
22597   return 0;
22598   ;
22599   return 0;
22600 }
22601 _ACEOF
22602 rm -f conftest.$ac_objext
22603 if { (ac_try="$ac_compile"
22604 case "(($ac_try" in
22605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22606   *) ac_try_echo=$ac_try;;
22607 esac
22608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22609   (eval "$ac_compile") 2>conftest.er1
22610   ac_status=$?
22611   grep -v '^ *+' conftest.er1 >conftest.err
22612   rm -f conftest.er1
22613   cat conftest.err >&5
22614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22615   (exit $ac_status); } && {
22616          test -z "$ac_c_werror_flag" ||
22617          test ! -s conftest.err
22618        } && test -s conftest.$ac_objext; then
22619   ac_cv_type_long=yes
22620 else
22621   echo "$as_me: failed program was:" >&5
22622 sed 's/^/| /' conftest.$ac_ext >&5
22623
22624         ac_cv_type_long=no
22625 fi
22626
22627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22628 fi
22629 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
22630 echo "${ECHO_T}$ac_cv_type_long" >&6; }
22631
22632 # The cast to long int works around a bug in the HP C Compiler
22633 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22634 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22635 # This bug is HP SR number 8606223364.
22636 { echo "$as_me:$LINENO: checking size of long" >&5
22637 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
22638 if test "${ac_cv_sizeof_long+set}" = set; then
22639   echo $ECHO_N "(cached) $ECHO_C" >&6
22640 else
22641   if test "$cross_compiling" = yes; then
22642   # Depending upon the size, compute the lo and hi bounds.
22643 cat >conftest.$ac_ext <<_ACEOF
22644 /* confdefs.h.  */
22645 _ACEOF
22646 cat confdefs.h >>conftest.$ac_ext
22647 cat >>conftest.$ac_ext <<_ACEOF
22648 /* end confdefs.h.  */
22649 $ac_includes_default
22650    typedef long ac__type_sizeof_;
22651 int
22652 main ()
22653 {
22654 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22655 test_array [0] = 0
22656
22657   ;
22658   return 0;
22659 }
22660 _ACEOF
22661 rm -f conftest.$ac_objext
22662 if { (ac_try="$ac_compile"
22663 case "(($ac_try" in
22664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22665   *) ac_try_echo=$ac_try;;
22666 esac
22667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22668   (eval "$ac_compile") 2>conftest.er1
22669   ac_status=$?
22670   grep -v '^ *+' conftest.er1 >conftest.err
22671   rm -f conftest.er1
22672   cat conftest.err >&5
22673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22674   (exit $ac_status); } && {
22675          test -z "$ac_c_werror_flag" ||
22676          test ! -s conftest.err
22677        } && test -s conftest.$ac_objext; then
22678   ac_lo=0 ac_mid=0
22679   while :; do
22680     cat >conftest.$ac_ext <<_ACEOF
22681 /* confdefs.h.  */
22682 _ACEOF
22683 cat confdefs.h >>conftest.$ac_ext
22684 cat >>conftest.$ac_ext <<_ACEOF
22685 /* end confdefs.h.  */
22686 $ac_includes_default
22687    typedef long ac__type_sizeof_;
22688 int
22689 main ()
22690 {
22691 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22692 test_array [0] = 0
22693
22694   ;
22695   return 0;
22696 }
22697 _ACEOF
22698 rm -f conftest.$ac_objext
22699 if { (ac_try="$ac_compile"
22700 case "(($ac_try" in
22701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22702   *) ac_try_echo=$ac_try;;
22703 esac
22704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22705   (eval "$ac_compile") 2>conftest.er1
22706   ac_status=$?
22707   grep -v '^ *+' conftest.er1 >conftest.err
22708   rm -f conftest.er1
22709   cat conftest.err >&5
22710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22711   (exit $ac_status); } && {
22712          test -z "$ac_c_werror_flag" ||
22713          test ! -s conftest.err
22714        } && test -s conftest.$ac_objext; then
22715   ac_hi=$ac_mid; break
22716 else
22717   echo "$as_me: failed program was:" >&5
22718 sed 's/^/| /' conftest.$ac_ext >&5
22719
22720         ac_lo=`expr $ac_mid + 1`
22721                         if test $ac_lo -le $ac_mid; then
22722                           ac_lo= ac_hi=
22723                           break
22724                         fi
22725                         ac_mid=`expr 2 '*' $ac_mid + 1`
22726 fi
22727
22728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22729   done
22730 else
22731   echo "$as_me: failed program was:" >&5
22732 sed 's/^/| /' conftest.$ac_ext >&5
22733
22734         cat >conftest.$ac_ext <<_ACEOF
22735 /* confdefs.h.  */
22736 _ACEOF
22737 cat confdefs.h >>conftest.$ac_ext
22738 cat >>conftest.$ac_ext <<_ACEOF
22739 /* end confdefs.h.  */
22740 $ac_includes_default
22741    typedef long ac__type_sizeof_;
22742 int
22743 main ()
22744 {
22745 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22746 test_array [0] = 0
22747
22748   ;
22749   return 0;
22750 }
22751 _ACEOF
22752 rm -f conftest.$ac_objext
22753 if { (ac_try="$ac_compile"
22754 case "(($ac_try" in
22755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22756   *) ac_try_echo=$ac_try;;
22757 esac
22758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22759   (eval "$ac_compile") 2>conftest.er1
22760   ac_status=$?
22761   grep -v '^ *+' conftest.er1 >conftest.err
22762   rm -f conftest.er1
22763   cat conftest.err >&5
22764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22765   (exit $ac_status); } && {
22766          test -z "$ac_c_werror_flag" ||
22767          test ! -s conftest.err
22768        } && test -s conftest.$ac_objext; then
22769   ac_hi=-1 ac_mid=-1
22770   while :; do
22771     cat >conftest.$ac_ext <<_ACEOF
22772 /* confdefs.h.  */
22773 _ACEOF
22774 cat confdefs.h >>conftest.$ac_ext
22775 cat >>conftest.$ac_ext <<_ACEOF
22776 /* end confdefs.h.  */
22777 $ac_includes_default
22778    typedef long ac__type_sizeof_;
22779 int
22780 main ()
22781 {
22782 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22783 test_array [0] = 0
22784
22785   ;
22786   return 0;
22787 }
22788 _ACEOF
22789 rm -f conftest.$ac_objext
22790 if { (ac_try="$ac_compile"
22791 case "(($ac_try" in
22792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22793   *) ac_try_echo=$ac_try;;
22794 esac
22795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22796   (eval "$ac_compile") 2>conftest.er1
22797   ac_status=$?
22798   grep -v '^ *+' conftest.er1 >conftest.err
22799   rm -f conftest.er1
22800   cat conftest.err >&5
22801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22802   (exit $ac_status); } && {
22803          test -z "$ac_c_werror_flag" ||
22804          test ! -s conftest.err
22805        } && test -s conftest.$ac_objext; then
22806   ac_lo=$ac_mid; break
22807 else
22808   echo "$as_me: failed program was:" >&5
22809 sed 's/^/| /' conftest.$ac_ext >&5
22810
22811         ac_hi=`expr '(' $ac_mid ')' - 1`
22812                         if test $ac_mid -le $ac_hi; then
22813                           ac_lo= ac_hi=
22814                           break
22815                         fi
22816                         ac_mid=`expr 2 '*' $ac_mid`
22817 fi
22818
22819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22820   done
22821 else
22822   echo "$as_me: failed program was:" >&5
22823 sed 's/^/| /' conftest.$ac_ext >&5
22824
22825         ac_lo= ac_hi=
22826 fi
22827
22828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22829 fi
22830
22831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22832 # Binary search between lo and hi bounds.
22833 while test "x$ac_lo" != "x$ac_hi"; do
22834   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22835   cat >conftest.$ac_ext <<_ACEOF
22836 /* confdefs.h.  */
22837 _ACEOF
22838 cat confdefs.h >>conftest.$ac_ext
22839 cat >>conftest.$ac_ext <<_ACEOF
22840 /* end confdefs.h.  */
22841 $ac_includes_default
22842    typedef long ac__type_sizeof_;
22843 int
22844 main ()
22845 {
22846 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22847 test_array [0] = 0
22848
22849   ;
22850   return 0;
22851 }
22852 _ACEOF
22853 rm -f conftest.$ac_objext
22854 if { (ac_try="$ac_compile"
22855 case "(($ac_try" in
22856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22857   *) ac_try_echo=$ac_try;;
22858 esac
22859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22860   (eval "$ac_compile") 2>conftest.er1
22861   ac_status=$?
22862   grep -v '^ *+' conftest.er1 >conftest.err
22863   rm -f conftest.er1
22864   cat conftest.err >&5
22865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22866   (exit $ac_status); } && {
22867          test -z "$ac_c_werror_flag" ||
22868          test ! -s conftest.err
22869        } && test -s conftest.$ac_objext; then
22870   ac_hi=$ac_mid
22871 else
22872   echo "$as_me: failed program was:" >&5
22873 sed 's/^/| /' conftest.$ac_ext >&5
22874
22875         ac_lo=`expr '(' $ac_mid ')' + 1`
22876 fi
22877
22878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22879 done
22880 case $ac_lo in
22881 ?*) ac_cv_sizeof_long=$ac_lo;;
22882 '') if test "$ac_cv_type_long" = yes; then
22883      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
22884 See \`config.log' for more details." >&5
22885 echo "$as_me: error: cannot compute sizeof (long)
22886 See \`config.log' for more details." >&2;}
22887    { (exit 77); exit 77; }; }
22888    else
22889      ac_cv_sizeof_long=0
22890    fi ;;
22891 esac
22892 else
22893   cat >conftest.$ac_ext <<_ACEOF
22894 /* confdefs.h.  */
22895 _ACEOF
22896 cat confdefs.h >>conftest.$ac_ext
22897 cat >>conftest.$ac_ext <<_ACEOF
22898 /* end confdefs.h.  */
22899 $ac_includes_default
22900    typedef long ac__type_sizeof_;
22901 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22902 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22903 #include <stdio.h>
22904 #include <stdlib.h>
22905 int
22906 main ()
22907 {
22908
22909   FILE *f = fopen ("conftest.val", "w");
22910   if (! f)
22911     return 1;
22912   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22913     {
22914       long int i = longval ();
22915       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22916         return 1;
22917       fprintf (f, "%ld\n", i);
22918     }
22919   else
22920     {
22921       unsigned long int i = ulongval ();
22922       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22923         return 1;
22924       fprintf (f, "%lu\n", i);
22925     }
22926   return ferror (f) || fclose (f) != 0;
22927
22928   ;
22929   return 0;
22930 }
22931 _ACEOF
22932 rm -f conftest$ac_exeext
22933 if { (ac_try="$ac_link"
22934 case "(($ac_try" in
22935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22936   *) ac_try_echo=$ac_try;;
22937 esac
22938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22939   (eval "$ac_link") 2>&5
22940   ac_status=$?
22941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22942   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22943   { (case "(($ac_try" in
22944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22945   *) ac_try_echo=$ac_try;;
22946 esac
22947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22948   (eval "$ac_try") 2>&5
22949   ac_status=$?
22950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22951   (exit $ac_status); }; }; then
22952   ac_cv_sizeof_long=`cat conftest.val`
22953 else
22954   echo "$as_me: program exited with status $ac_status" >&5
22955 echo "$as_me: failed program was:" >&5
22956 sed 's/^/| /' conftest.$ac_ext >&5
22957
22958 ( exit $ac_status )
22959 if test "$ac_cv_type_long" = yes; then
22960      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
22961 See \`config.log' for more details." >&5
22962 echo "$as_me: error: cannot compute sizeof (long)
22963 See \`config.log' for more details." >&2;}
22964    { (exit 77); exit 77; }; }
22965    else
22966      ac_cv_sizeof_long=0
22967    fi
22968 fi
22969 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22970 fi
22971 rm -f conftest.val
22972 fi
22973 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
22974 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
22975
22976
22977
22978 cat >>confdefs.h <<_ACEOF
22979 #define SIZEOF_LONG $ac_cv_sizeof_long
22980 _ACEOF
22981
22982
22983 { echo "$as_me:$LINENO: checking for 32-bit integer type" >&5
22984 echo $ECHO_N "checking for 32-bit integer type... $ECHO_C" >&6; }
22985 if test "$ac_cv_sizeof_long" = 4; then
22986         int32=long
22987 elif test "$ac_cv_sizeof_int" = 4; then
22988         int32=int
22989 elif test "$ac_cv_sizeof_short" = 4; then
22990         int32=short
22991 else
22992         { echo "$as_me:$LINENO: WARNING: Can't find 32-bit type, using long" >&5
22993 echo "$as_me: WARNING: Can't find 32-bit type, using long" >&2;}
22994         int32=long
22995 fi
22996 cat >>confdefs.h <<_ACEOF
22997 #define ZEPHYR_INT32 ${int32}
22998 _ACEOF
22999
23000 { echo "$as_me:$LINENO: result: ${int32}" >&5
23001 echo "${ECHO_T}${int32}" >&6; }
23002
23003
23004 { echo "$as_me:$LINENO: checking for wslen in -lw" >&5
23005 echo $ECHO_N "checking for wslen in -lw... $ECHO_C" >&6; }
23006 if test "${ac_cv_lib_w_wslen+set}" = set; then
23007   echo $ECHO_N "(cached) $ECHO_C" >&6
23008 else
23009   ac_check_lib_save_LIBS=$LIBS
23010 LIBS="-lw  $LIBS"
23011 cat >conftest.$ac_ext <<_ACEOF
23012 /* confdefs.h.  */
23013 _ACEOF
23014 cat confdefs.h >>conftest.$ac_ext
23015 cat >>conftest.$ac_ext <<_ACEOF
23016 /* end confdefs.h.  */
23017
23018 /* Override any GCC internal prototype to avoid an error.
23019    Use char because int might match the return type of a GCC
23020    builtin and then its argument prototype would still apply.  */
23021 #ifdef __cplusplus
23022 extern "C"
23023 #endif
23024 char wslen ();
23025 int
23026 main ()
23027 {
23028 return wslen ();
23029   ;
23030   return 0;
23031 }
23032 _ACEOF
23033 rm -f conftest.$ac_objext conftest$ac_exeext
23034 if { (ac_try="$ac_link"
23035 case "(($ac_try" in
23036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23037   *) ac_try_echo=$ac_try;;
23038 esac
23039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23040   (eval "$ac_link") 2>conftest.er1
23041   ac_status=$?
23042   grep -v '^ *+' conftest.er1 >conftest.err
23043   rm -f conftest.er1
23044   cat conftest.err >&5
23045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23046   (exit $ac_status); } && {
23047          test -z "$ac_c_werror_flag" ||
23048          test ! -s conftest.err
23049        } && test -s conftest$ac_exeext &&
23050        $as_test_x conftest$ac_exeext; then
23051   ac_cv_lib_w_wslen=yes
23052 else
23053   echo "$as_me: failed program was:" >&5
23054 sed 's/^/| /' conftest.$ac_ext >&5
23055
23056         ac_cv_lib_w_wslen=no
23057 fi
23058
23059 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23060       conftest$ac_exeext conftest.$ac_ext
23061 LIBS=$ac_check_lib_save_LIBS
23062 fi
23063 { echo "$as_me:$LINENO: result: $ac_cv_lib_w_wslen" >&5
23064 echo "${ECHO_T}$ac_cv_lib_w_wslen" >&6; }
23065 if test $ac_cv_lib_w_wslen = yes; then
23066   cat >>confdefs.h <<_ACEOF
23067 #define HAVE_LIBW 1
23068 _ACEOF
23069
23070   LIBS="-lw $LIBS"
23071
23072 fi
23073
23074 # XXX? AC_CHECK_LIB(dl, dlopen)
23075
23076 { echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
23077 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6; }
23078 if test "${ac_cv_search_gethostbyname+set}" = set; then
23079   echo $ECHO_N "(cached) $ECHO_C" >&6
23080 else
23081   ac_func_search_save_LIBS=$LIBS
23082 cat >conftest.$ac_ext <<_ACEOF
23083 /* confdefs.h.  */
23084 _ACEOF
23085 cat confdefs.h >>conftest.$ac_ext
23086 cat >>conftest.$ac_ext <<_ACEOF
23087 /* end confdefs.h.  */
23088
23089 /* Override any GCC internal prototype to avoid an error.
23090    Use char because int might match the return type of a GCC
23091    builtin and then its argument prototype would still apply.  */
23092 #ifdef __cplusplus
23093 extern "C"
23094 #endif
23095 char gethostbyname ();
23096 int
23097 main ()
23098 {
23099 return gethostbyname ();
23100   ;
23101   return 0;
23102 }
23103 _ACEOF
23104 for ac_lib in '' nsl; do
23105   if test -z "$ac_lib"; then
23106     ac_res="none required"
23107   else
23108     ac_res=-l$ac_lib
23109     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23110   fi
23111   rm -f conftest.$ac_objext conftest$ac_exeext
23112 if { (ac_try="$ac_link"
23113 case "(($ac_try" in
23114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23115   *) ac_try_echo=$ac_try;;
23116 esac
23117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23118   (eval "$ac_link") 2>conftest.er1
23119   ac_status=$?
23120   grep -v '^ *+' conftest.er1 >conftest.err
23121   rm -f conftest.er1
23122   cat conftest.err >&5
23123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23124   (exit $ac_status); } && {
23125          test -z "$ac_c_werror_flag" ||
23126          test ! -s conftest.err
23127        } && test -s conftest$ac_exeext &&
23128        $as_test_x conftest$ac_exeext; then
23129   ac_cv_search_gethostbyname=$ac_res
23130 else
23131   echo "$as_me: failed program was:" >&5
23132 sed 's/^/| /' conftest.$ac_ext >&5
23133
23134
23135 fi
23136
23137 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23138       conftest$ac_exeext
23139   if test "${ac_cv_search_gethostbyname+set}" = set; then
23140   break
23141 fi
23142 done
23143 if test "${ac_cv_search_gethostbyname+set}" = set; then
23144   :
23145 else
23146   ac_cv_search_gethostbyname=no
23147 fi
23148 rm conftest.$ac_ext
23149 LIBS=$ac_func_search_save_LIBS
23150 fi
23151 { echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
23152 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6; }
23153 ac_res=$ac_cv_search_gethostbyname
23154 if test "$ac_res" != no; then
23155   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23156
23157 fi
23158
23159 { echo "$as_me:$LINENO: checking for library containing socket" >&5
23160 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
23161 if test "${ac_cv_search_socket+set}" = set; then
23162   echo $ECHO_N "(cached) $ECHO_C" >&6
23163 else
23164   ac_func_search_save_LIBS=$LIBS
23165 cat >conftest.$ac_ext <<_ACEOF
23166 /* confdefs.h.  */
23167 _ACEOF
23168 cat confdefs.h >>conftest.$ac_ext
23169 cat >>conftest.$ac_ext <<_ACEOF
23170 /* end confdefs.h.  */
23171
23172 /* Override any GCC internal prototype to avoid an error.
23173    Use char because int might match the return type of a GCC
23174    builtin and then its argument prototype would still apply.  */
23175 #ifdef __cplusplus
23176 extern "C"
23177 #endif
23178 char socket ();
23179 int
23180 main ()
23181 {
23182 return socket ();
23183   ;
23184   return 0;
23185 }
23186 _ACEOF
23187 for ac_lib in '' socket; do
23188   if test -z "$ac_lib"; then
23189     ac_res="none required"
23190   else
23191     ac_res=-l$ac_lib
23192     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23193   fi
23194   rm -f conftest.$ac_objext conftest$ac_exeext
23195 if { (ac_try="$ac_link"
23196 case "(($ac_try" in
23197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23198   *) ac_try_echo=$ac_try;;
23199 esac
23200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23201   (eval "$ac_link") 2>conftest.er1
23202   ac_status=$?
23203   grep -v '^ *+' conftest.er1 >conftest.err
23204   rm -f conftest.er1
23205   cat conftest.err >&5
23206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23207   (exit $ac_status); } && {
23208          test -z "$ac_c_werror_flag" ||
23209          test ! -s conftest.err
23210        } && test -s conftest$ac_exeext &&
23211        $as_test_x conftest$ac_exeext; then
23212   ac_cv_search_socket=$ac_res
23213 else
23214   echo "$as_me: failed program was:" >&5
23215 sed 's/^/| /' conftest.$ac_ext >&5
23216
23217
23218 fi
23219
23220 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23221       conftest$ac_exeext
23222   if test "${ac_cv_search_socket+set}" = set; then
23223   break
23224 fi
23225 done
23226 if test "${ac_cv_search_socket+set}" = set; then
23227   :
23228 else
23229   ac_cv_search_socket=no
23230 fi
23231 rm conftest.$ac_ext
23232 LIBS=$ac_func_search_save_LIBS
23233 fi
23234 { echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
23235 echo "${ECHO_T}$ac_cv_search_socket" >&6; }
23236 ac_res=$ac_cv_search_socket
23237 if test "$ac_res" != no; then
23238   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23239
23240 fi
23241
23242
23243
23244 { echo "$as_me:$LINENO: checking for strerror in -l44bsd" >&5
23245 echo $ECHO_N "checking for strerror in -l44bsd... $ECHO_C" >&6; }
23246 if test "${ac_cv_lib_44bsd_strerror+set}" = set; then
23247   echo $ECHO_N "(cached) $ECHO_C" >&6
23248 else
23249   ac_check_lib_save_LIBS=$LIBS
23250 LIBS="-l44bsd  $LIBS"
23251 cat >conftest.$ac_ext <<_ACEOF
23252 /* confdefs.h.  */
23253 _ACEOF
23254 cat confdefs.h >>conftest.$ac_ext
23255 cat >>conftest.$ac_ext <<_ACEOF
23256 /* end confdefs.h.  */
23257
23258 /* Override any GCC internal prototype to avoid an error.
23259    Use char because int might match the return type of a GCC
23260    builtin and then its argument prototype would still apply.  */
23261 #ifdef __cplusplus
23262 extern "C"
23263 #endif
23264 char strerror ();
23265 int
23266 main ()
23267 {
23268 return strerror ();
23269   ;
23270   return 0;
23271 }
23272 _ACEOF
23273 rm -f conftest.$ac_objext conftest$ac_exeext
23274 if { (ac_try="$ac_link"
23275 case "(($ac_try" in
23276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23277   *) ac_try_echo=$ac_try;;
23278 esac
23279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23280   (eval "$ac_link") 2>conftest.er1
23281   ac_status=$?
23282   grep -v '^ *+' conftest.er1 >conftest.err
23283   rm -f conftest.er1
23284   cat conftest.err >&5
23285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23286   (exit $ac_status); } && {
23287          test -z "$ac_c_werror_flag" ||
23288          test ! -s conftest.err
23289        } && test -s conftest$ac_exeext &&
23290        $as_test_x conftest$ac_exeext; then
23291   ac_cv_lib_44bsd_strerror=yes
23292 else
23293   echo "$as_me: failed program was:" >&5
23294 sed 's/^/| /' conftest.$ac_ext >&5
23295
23296         ac_cv_lib_44bsd_strerror=no
23297 fi
23298
23299 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23300       conftest$ac_exeext conftest.$ac_ext
23301 LIBS=$ac_check_lib_save_LIBS
23302 fi
23303 { echo "$as_me:$LINENO: result: $ac_cv_lib_44bsd_strerror" >&5
23304 echo "${ECHO_T}$ac_cv_lib_44bsd_strerror" >&6; }
23305 if test $ac_cv_lib_44bsd_strerror = yes; then
23306   cat >>confdefs.h <<_ACEOF
23307 #define HAVE_LIB44BSD 1
23308 _ACEOF
23309
23310   LIBS="-l44bsd $LIBS"
23311
23312 fi
23313
23314
23315 { echo "$as_me:$LINENO: checking for libiconv_open in -liconv" >&5
23316 echo $ECHO_N "checking for libiconv_open in -liconv... $ECHO_C" >&6; }
23317 if test "${ac_cv_lib_iconv_libiconv_open+set}" = set; then
23318   echo $ECHO_N "(cached) $ECHO_C" >&6
23319 else
23320   ac_check_lib_save_LIBS=$LIBS
23321 LIBS="-liconv  $LIBS"
23322 cat >conftest.$ac_ext <<_ACEOF
23323 /* confdefs.h.  */
23324 _ACEOF
23325 cat confdefs.h >>conftest.$ac_ext
23326 cat >>conftest.$ac_ext <<_ACEOF
23327 /* end confdefs.h.  */
23328
23329 /* Override any GCC internal prototype to avoid an error.
23330    Use char because int might match the return type of a GCC
23331    builtin and then its argument prototype would still apply.  */
23332 #ifdef __cplusplus
23333 extern "C"
23334 #endif
23335 char libiconv_open ();
23336 int
23337 main ()
23338 {
23339 return libiconv_open ();
23340   ;
23341   return 0;
23342 }
23343 _ACEOF
23344 rm -f conftest.$ac_objext conftest$ac_exeext
23345 if { (ac_try="$ac_link"
23346 case "(($ac_try" in
23347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23348   *) ac_try_echo=$ac_try;;
23349 esac
23350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23351   (eval "$ac_link") 2>conftest.er1
23352   ac_status=$?
23353   grep -v '^ *+' conftest.er1 >conftest.err
23354   rm -f conftest.er1
23355   cat conftest.err >&5
23356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23357   (exit $ac_status); } && {
23358          test -z "$ac_c_werror_flag" ||
23359          test ! -s conftest.err
23360        } && test -s conftest$ac_exeext &&
23361        $as_test_x conftest$ac_exeext; then
23362   ac_cv_lib_iconv_libiconv_open=yes
23363 else
23364   echo "$as_me: failed program was:" >&5
23365 sed 's/^/| /' conftest.$ac_ext >&5
23366
23367         ac_cv_lib_iconv_libiconv_open=no
23368 fi
23369
23370 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23371       conftest$ac_exeext conftest.$ac_ext
23372 LIBS=$ac_check_lib_save_LIBS
23373 fi
23374 { echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_libiconv_open" >&5
23375 echo "${ECHO_T}$ac_cv_lib_iconv_libiconv_open" >&6; }
23376 if test $ac_cv_lib_iconv_libiconv_open = yes; then
23377   LIBICONV=-liconv;
23378 fi
23379
23380
23381 { echo "$as_me:$LINENO: checking for tgetstr in -lcurses" >&5
23382 echo $ECHO_N "checking for tgetstr in -lcurses... $ECHO_C" >&6; }
23383 if test "${ac_cv_lib_curses_tgetstr+set}" = set; then
23384   echo $ECHO_N "(cached) $ECHO_C" >&6
23385 else
23386   ac_check_lib_save_LIBS=$LIBS
23387 LIBS="-lcurses  $LIBS"
23388 cat >conftest.$ac_ext <<_ACEOF
23389 /* confdefs.h.  */
23390 _ACEOF
23391 cat confdefs.h >>conftest.$ac_ext
23392 cat >>conftest.$ac_ext <<_ACEOF
23393 /* end confdefs.h.  */
23394
23395 /* Override any GCC internal prototype to avoid an error.
23396    Use char because int might match the return type of a GCC
23397    builtin and then its argument prototype would still apply.  */
23398 #ifdef __cplusplus
23399 extern "C"
23400 #endif
23401 char tgetstr ();
23402 int
23403 main ()
23404 {
23405 return tgetstr ();
23406   ;
23407   return 0;
23408 }
23409 _ACEOF
23410 rm -f conftest.$ac_objext conftest$ac_exeext
23411 if { (ac_try="$ac_link"
23412 case "(($ac_try" in
23413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23414   *) ac_try_echo=$ac_try;;
23415 esac
23416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23417   (eval "$ac_link") 2>conftest.er1
23418   ac_status=$?
23419   grep -v '^ *+' conftest.er1 >conftest.err
23420   rm -f conftest.er1
23421   cat conftest.err >&5
23422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23423   (exit $ac_status); } && {
23424          test -z "$ac_c_werror_flag" ||
23425          test ! -s conftest.err
23426        } && test -s conftest$ac_exeext &&
23427        $as_test_x conftest$ac_exeext; then
23428   ac_cv_lib_curses_tgetstr=yes
23429 else
23430   echo "$as_me: failed program was:" >&5
23431 sed 's/^/| /' conftest.$ac_ext >&5
23432
23433         ac_cv_lib_curses_tgetstr=no
23434 fi
23435
23436 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23437       conftest$ac_exeext conftest.$ac_ext
23438 LIBS=$ac_check_lib_save_LIBS
23439 fi
23440 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetstr" >&5
23441 echo "${ECHO_T}$ac_cv_lib_curses_tgetstr" >&6; }
23442 if test $ac_cv_lib_curses_tgetstr = yes; then
23443   TLIB=-lcurses
23444 else
23445   TLIB=-ltermcap
23446 fi
23447
23448 { echo "$as_me:$LINENO: checking for srcsrpy in -lsrc" >&5
23449 echo $ECHO_N "checking for srcsrpy in -lsrc... $ECHO_C" >&6; }
23450 if test "${ac_cv_lib_src_srcsrpy+set}" = set; then
23451   echo $ECHO_N "(cached) $ECHO_C" >&6
23452 else
23453   ac_check_lib_save_LIBS=$LIBS
23454 LIBS="-lsrc  $LIBS"
23455 cat >conftest.$ac_ext <<_ACEOF
23456 /* confdefs.h.  */
23457 _ACEOF
23458 cat confdefs.h >>conftest.$ac_ext
23459 cat >>conftest.$ac_ext <<_ACEOF
23460 /* end confdefs.h.  */
23461
23462 /* Override any GCC internal prototype to avoid an error.
23463    Use char because int might match the return type of a GCC
23464    builtin and then its argument prototype would still apply.  */
23465 #ifdef __cplusplus
23466 extern "C"
23467 #endif
23468 char srcsrpy ();
23469 int
23470 main ()
23471 {
23472 return srcsrpy ();
23473   ;
23474   return 0;
23475 }
23476 _ACEOF
23477 rm -f conftest.$ac_objext conftest$ac_exeext
23478 if { (ac_try="$ac_link"
23479 case "(($ac_try" in
23480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23481   *) ac_try_echo=$ac_try;;
23482 esac
23483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23484   (eval "$ac_link") 2>conftest.er1
23485   ac_status=$?
23486   grep -v '^ *+' conftest.er1 >conftest.err
23487   rm -f conftest.er1
23488   cat conftest.err >&5
23489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23490   (exit $ac_status); } && {
23491          test -z "$ac_c_werror_flag" ||
23492          test ! -s conftest.err
23493        } && test -s conftest$ac_exeext &&
23494        $as_test_x conftest$ac_exeext; then
23495   ac_cv_lib_src_srcsrpy=yes
23496 else
23497   echo "$as_me: failed program was:" >&5
23498 sed 's/^/| /' conftest.$ac_ext >&5
23499
23500         ac_cv_lib_src_srcsrpy=no
23501 fi
23502
23503 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23504       conftest$ac_exeext conftest.$ac_ext
23505 LIBS=$ac_check_lib_save_LIBS
23506 fi
23507 { echo "$as_me:$LINENO: result: $ac_cv_lib_src_srcsrpy" >&5
23508 echo "${ECHO_T}$ac_cv_lib_src_srcsrpy" >&6; }
23509 if test $ac_cv_lib_src_srcsrpy = yes; then
23510   SLIB=-lsrc; cat >>confdefs.h <<\_ACEOF
23511 #define HAVE_SRC 1
23512 _ACEOF
23513
23514 fi
23515
23516
23517
23518
23519
23520
23521 # Check whether --with-krb4 was given.
23522 if test "${with_krb4+set}" = set; then
23523   withval=$with_krb4; krb4="$withval"
23524 else
23525   krb4=no
23526 fi
23527
23528 if test "$krb4" != no; then
23529         { echo "$as_me:$LINENO: checking for gethostbyname" >&5
23530 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
23531 if test "${ac_cv_func_gethostbyname+set}" = set; then
23532   echo $ECHO_N "(cached) $ECHO_C" >&6
23533 else
23534   cat >conftest.$ac_ext <<_ACEOF
23535 /* confdefs.h.  */
23536 _ACEOF
23537 cat confdefs.h >>conftest.$ac_ext
23538 cat >>conftest.$ac_ext <<_ACEOF
23539 /* end confdefs.h.  */
23540 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
23541    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23542 #define gethostbyname innocuous_gethostbyname
23543
23544 /* System header to define __stub macros and hopefully few prototypes,
23545     which can conflict with char gethostbyname (); below.
23546     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23547     <limits.h> exists even on freestanding compilers.  */
23548
23549 #ifdef __STDC__
23550 # include <limits.h>
23551 #else
23552 # include <assert.h>
23553 #endif
23554
23555 #undef gethostbyname
23556
23557 /* Override any GCC internal prototype to avoid an error.
23558    Use char because int might match the return type of a GCC
23559    builtin and then its argument prototype would still apply.  */
23560 #ifdef __cplusplus
23561 extern "C"
23562 #endif
23563 char gethostbyname ();
23564 /* The GNU C library defines this for functions which it implements
23565     to always fail with ENOSYS.  Some functions are actually named
23566     something starting with __ and the normal name is an alias.  */
23567 #if defined __stub_gethostbyname || defined __stub___gethostbyname
23568 choke me
23569 #endif
23570
23571 int
23572 main ()
23573 {
23574 return gethostbyname ();
23575   ;
23576   return 0;
23577 }
23578 _ACEOF
23579 rm -f conftest.$ac_objext conftest$ac_exeext
23580 if { (ac_try="$ac_link"
23581 case "(($ac_try" in
23582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23583   *) ac_try_echo=$ac_try;;
23584 esac
23585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23586   (eval "$ac_link") 2>conftest.er1
23587   ac_status=$?
23588   grep -v '^ *+' conftest.er1 >conftest.err
23589   rm -f conftest.er1
23590   cat conftest.err >&5
23591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23592   (exit $ac_status); } && {
23593          test -z "$ac_c_werror_flag" ||
23594          test ! -s conftest.err
23595        } && test -s conftest$ac_exeext &&
23596        $as_test_x conftest$ac_exeext; then
23597   ac_cv_func_gethostbyname=yes
23598 else
23599   echo "$as_me: failed program was:" >&5
23600 sed 's/^/| /' conftest.$ac_ext >&5
23601
23602         ac_cv_func_gethostbyname=no
23603 fi
23604
23605 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23606       conftest$ac_exeext conftest.$ac_ext
23607 fi
23608 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
23609 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
23610 if test $ac_cv_func_gethostbyname = yes; then
23611   :
23612 else
23613
23614 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
23615 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
23616 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
23617   echo $ECHO_N "(cached) $ECHO_C" >&6
23618 else
23619   ac_check_lib_save_LIBS=$LIBS
23620 LIBS="-lnsl  $LIBS"
23621 cat >conftest.$ac_ext <<_ACEOF
23622 /* confdefs.h.  */
23623 _ACEOF
23624 cat confdefs.h >>conftest.$ac_ext
23625 cat >>conftest.$ac_ext <<_ACEOF
23626 /* end confdefs.h.  */
23627
23628 /* Override any GCC internal prototype to avoid an error.
23629    Use char because int might match the return type of a GCC
23630    builtin and then its argument prototype would still apply.  */
23631 #ifdef __cplusplus
23632 extern "C"
23633 #endif
23634 char gethostbyname ();
23635 int
23636 main ()
23637 {
23638 return gethostbyname ();
23639   ;
23640   return 0;
23641 }
23642 _ACEOF
23643 rm -f conftest.$ac_objext conftest$ac_exeext
23644 if { (ac_try="$ac_link"
23645 case "(($ac_try" in
23646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23647   *) ac_try_echo=$ac_try;;
23648 esac
23649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23650   (eval "$ac_link") 2>conftest.er1
23651   ac_status=$?
23652   grep -v '^ *+' conftest.er1 >conftest.err
23653   rm -f conftest.er1
23654   cat conftest.err >&5
23655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23656   (exit $ac_status); } && {
23657          test -z "$ac_c_werror_flag" ||
23658          test ! -s conftest.err
23659        } && test -s conftest$ac_exeext &&
23660        $as_test_x conftest$ac_exeext; then
23661   ac_cv_lib_nsl_gethostbyname=yes
23662 else
23663   echo "$as_me: failed program was:" >&5
23664 sed 's/^/| /' conftest.$ac_ext >&5
23665
23666         ac_cv_lib_nsl_gethostbyname=no
23667 fi
23668
23669 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23670       conftest$ac_exeext conftest.$ac_ext
23671 LIBS=$ac_check_lib_save_LIBS
23672 fi
23673 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
23674 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
23675 if test $ac_cv_lib_nsl_gethostbyname = yes; then
23676   cat >>confdefs.h <<_ACEOF
23677 #define HAVE_LIBNSL 1
23678 _ACEOF
23679
23680   LIBS="-lnsl $LIBS"
23681
23682 fi
23683
23684 fi
23685
23686         { echo "$as_me:$LINENO: checking for socket" >&5
23687 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
23688 if test "${ac_cv_func_socket+set}" = set; then
23689   echo $ECHO_N "(cached) $ECHO_C" >&6
23690 else
23691   cat >conftest.$ac_ext <<_ACEOF
23692 /* confdefs.h.  */
23693 _ACEOF
23694 cat confdefs.h >>conftest.$ac_ext
23695 cat >>conftest.$ac_ext <<_ACEOF
23696 /* end confdefs.h.  */
23697 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
23698    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23699 #define socket innocuous_socket
23700
23701 /* System header to define __stub macros and hopefully few prototypes,
23702     which can conflict with char socket (); below.
23703     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23704     <limits.h> exists even on freestanding compilers.  */
23705
23706 #ifdef __STDC__
23707 # include <limits.h>
23708 #else
23709 # include <assert.h>
23710 #endif
23711
23712 #undef socket
23713
23714 /* Override any GCC internal prototype to avoid an error.
23715    Use char because int might match the return type of a GCC
23716    builtin and then its argument prototype would still apply.  */
23717 #ifdef __cplusplus
23718 extern "C"
23719 #endif
23720 char socket ();
23721 /* The GNU C library defines this for functions which it implements
23722     to always fail with ENOSYS.  Some functions are actually named
23723     something starting with __ and the normal name is an alias.  */
23724 #if defined __stub_socket || defined __stub___socket
23725 choke me
23726 #endif
23727
23728 int
23729 main ()
23730 {
23731 return socket ();
23732   ;
23733   return 0;
23734 }
23735 _ACEOF
23736 rm -f conftest.$ac_objext conftest$ac_exeext
23737 if { (ac_try="$ac_link"
23738 case "(($ac_try" in
23739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23740   *) ac_try_echo=$ac_try;;
23741 esac
23742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23743   (eval "$ac_link") 2>conftest.er1
23744   ac_status=$?
23745   grep -v '^ *+' conftest.er1 >conftest.err
23746   rm -f conftest.er1
23747   cat conftest.err >&5
23748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23749   (exit $ac_status); } && {
23750          test -z "$ac_c_werror_flag" ||
23751          test ! -s conftest.err
23752        } && test -s conftest$ac_exeext &&
23753        $as_test_x conftest$ac_exeext; then
23754   ac_cv_func_socket=yes
23755 else
23756   echo "$as_me: failed program was:" >&5
23757 sed 's/^/| /' conftest.$ac_ext >&5
23758
23759         ac_cv_func_socket=no
23760 fi
23761
23762 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23763       conftest$ac_exeext conftest.$ac_ext
23764 fi
23765 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
23766 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
23767 if test $ac_cv_func_socket = yes; then
23768   :
23769 else
23770
23771 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
23772 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
23773 if test "${ac_cv_lib_socket_socket+set}" = set; then
23774   echo $ECHO_N "(cached) $ECHO_C" >&6
23775 else
23776   ac_check_lib_save_LIBS=$LIBS
23777 LIBS="-lsocket  $LIBS"
23778 cat >conftest.$ac_ext <<_ACEOF
23779 /* confdefs.h.  */
23780 _ACEOF
23781 cat confdefs.h >>conftest.$ac_ext
23782 cat >>conftest.$ac_ext <<_ACEOF
23783 /* end confdefs.h.  */
23784
23785 /* Override any GCC internal prototype to avoid an error.
23786    Use char because int might match the return type of a GCC
23787    builtin and then its argument prototype would still apply.  */
23788 #ifdef __cplusplus
23789 extern "C"
23790 #endif
23791 char socket ();
23792 int
23793 main ()
23794 {
23795 return socket ();
23796   ;
23797   return 0;
23798 }
23799 _ACEOF
23800 rm -f conftest.$ac_objext conftest$ac_exeext
23801 if { (ac_try="$ac_link"
23802 case "(($ac_try" in
23803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23804   *) ac_try_echo=$ac_try;;
23805 esac
23806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23807   (eval "$ac_link") 2>conftest.er1
23808   ac_status=$?
23809   grep -v '^ *+' conftest.er1 >conftest.err
23810   rm -f conftest.er1
23811   cat conftest.err >&5
23812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23813   (exit $ac_status); } && {
23814          test -z "$ac_c_werror_flag" ||
23815          test ! -s conftest.err
23816        } && test -s conftest$ac_exeext &&
23817        $as_test_x conftest$ac_exeext; then
23818   ac_cv_lib_socket_socket=yes
23819 else
23820   echo "$as_me: failed program was:" >&5
23821 sed 's/^/| /' conftest.$ac_ext >&5
23822
23823         ac_cv_lib_socket_socket=no
23824 fi
23825
23826 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23827       conftest$ac_exeext conftest.$ac_ext
23828 LIBS=$ac_check_lib_save_LIBS
23829 fi
23830 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
23831 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
23832 if test $ac_cv_lib_socket_socket = yes; then
23833   cat >>confdefs.h <<_ACEOF
23834 #define HAVE_LIBSOCKET 1
23835 _ACEOF
23836
23837   LIBS="-lsocket $LIBS"
23838
23839 fi
23840
23841 fi
23842
23843
23844 { echo "$as_me:$LINENO: checking for compile in -lgen" >&5
23845 echo $ECHO_N "checking for compile in -lgen... $ECHO_C" >&6; }
23846 if test "${ac_cv_lib_gen_compile+set}" = set; then
23847   echo $ECHO_N "(cached) $ECHO_C" >&6
23848 else
23849   ac_check_lib_save_LIBS=$LIBS
23850 LIBS="-lgen  $LIBS"
23851 cat >conftest.$ac_ext <<_ACEOF
23852 /* confdefs.h.  */
23853 _ACEOF
23854 cat confdefs.h >>conftest.$ac_ext
23855 cat >>conftest.$ac_ext <<_ACEOF
23856 /* end confdefs.h.  */
23857
23858 /* Override any GCC internal prototype to avoid an error.
23859    Use char because int might match the return type of a GCC
23860    builtin and then its argument prototype would still apply.  */
23861 #ifdef __cplusplus
23862 extern "C"
23863 #endif
23864 char compile ();
23865 int
23866 main ()
23867 {
23868 return compile ();
23869   ;
23870   return 0;
23871 }
23872 _ACEOF
23873 rm -f conftest.$ac_objext conftest$ac_exeext
23874 if { (ac_try="$ac_link"
23875 case "(($ac_try" in
23876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23877   *) ac_try_echo=$ac_try;;
23878 esac
23879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23880   (eval "$ac_link") 2>conftest.er1
23881   ac_status=$?
23882   grep -v '^ *+' conftest.er1 >conftest.err
23883   rm -f conftest.er1
23884   cat conftest.err >&5
23885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23886   (exit $ac_status); } && {
23887          test -z "$ac_c_werror_flag" ||
23888          test ! -s conftest.err
23889        } && test -s conftest$ac_exeext &&
23890        $as_test_x conftest$ac_exeext; then
23891   ac_cv_lib_gen_compile=yes
23892 else
23893   echo "$as_me: failed program was:" >&5
23894 sed 's/^/| /' conftest.$ac_ext >&5
23895
23896         ac_cv_lib_gen_compile=no
23897 fi
23898
23899 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23900       conftest$ac_exeext conftest.$ac_ext
23901 LIBS=$ac_check_lib_save_LIBS
23902 fi
23903 { echo "$as_me:$LINENO: result: $ac_cv_lib_gen_compile" >&5
23904 echo "${ECHO_T}$ac_cv_lib_gen_compile" >&6; }
23905 if test $ac_cv_lib_gen_compile = yes; then
23906   cat >>confdefs.h <<_ACEOF
23907 #define HAVE_LIBGEN 1
23908 _ACEOF
23909
23910   LIBS="-lgen $LIBS"
23911
23912 fi
23913
23914         if test "$krb4" != yes; then
23915            CPPFLAGS="$CPPFLAGS -I$krb4/include"
23916            if test -d "$krb4/include/kerberosIV"; then
23917               CPPFLAGS="$CPPFLAGS -I$krb4/include/kerberosIV"
23918            fi
23919            LDFLAGS="$LDFLAGS -L$krb4/lib"
23920         fi
23921         { echo "$as_me:$LINENO: checking for krb_rd_req in -lkrb4" >&5
23922 echo $ECHO_N "checking for krb_rd_req in -lkrb4... $ECHO_C" >&6; }
23923 if test "${ac_cv_lib_krb4_krb_rd_req+set}" = set; then
23924   echo $ECHO_N "(cached) $ECHO_C" >&6
23925 else
23926   ac_check_lib_save_LIBS=$LIBS
23927 LIBS="-lkrb4 -ldes425 -lkrb5 -lk5crypto -lcom_err $LIBS"
23928 cat >conftest.$ac_ext <<_ACEOF
23929 /* confdefs.h.  */
23930 _ACEOF
23931 cat confdefs.h >>conftest.$ac_ext
23932 cat >>conftest.$ac_ext <<_ACEOF
23933 /* end confdefs.h.  */
23934
23935 /* Override any GCC internal prototype to avoid an error.
23936    Use char because int might match the return type of a GCC
23937    builtin and then its argument prototype would still apply.  */
23938 #ifdef __cplusplus
23939 extern "C"
23940 #endif
23941 char krb_rd_req ();
23942 int
23943 main ()
23944 {
23945 return krb_rd_req ();
23946   ;
23947   return 0;
23948 }
23949 _ACEOF
23950 rm -f conftest.$ac_objext conftest$ac_exeext
23951 if { (ac_try="$ac_link"
23952 case "(($ac_try" in
23953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23954   *) ac_try_echo=$ac_try;;
23955 esac
23956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23957   (eval "$ac_link") 2>conftest.er1
23958   ac_status=$?
23959   grep -v '^ *+' conftest.er1 >conftest.err
23960   rm -f conftest.er1
23961   cat conftest.err >&5
23962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23963   (exit $ac_status); } && {
23964          test -z "$ac_c_werror_flag" ||
23965          test ! -s conftest.err
23966        } && test -s conftest$ac_exeext &&
23967        $as_test_x conftest$ac_exeext; then
23968   ac_cv_lib_krb4_krb_rd_req=yes
23969 else
23970   echo "$as_me: failed program was:" >&5
23971 sed 's/^/| /' conftest.$ac_ext >&5
23972
23973         ac_cv_lib_krb4_krb_rd_req=no
23974 fi
23975
23976 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23977       conftest$ac_exeext conftest.$ac_ext
23978 LIBS=$ac_check_lib_save_LIBS
23979 fi
23980 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_rd_req" >&5
23981 echo "${ECHO_T}$ac_cv_lib_krb4_krb_rd_req" >&6; }
23982 if test $ac_cv_lib_krb4_krb_rd_req = yes; then
23983   KRB4_LIBS="-lkrb4 -ldes425 -lkrb5 -lk5crypto -lcom_err"
23984 else
23985   { echo "$as_me:$LINENO: checking for krb_rd_req in -lkrb" >&5
23986 echo $ECHO_N "checking for krb_rd_req in -lkrb... $ECHO_C" >&6; }
23987 if test "${ac_cv_lib_krb_krb_rd_req+set}" = set; then
23988   echo $ECHO_N "(cached) $ECHO_C" >&6
23989 else
23990   ac_check_lib_save_LIBS=$LIBS
23991 LIBS="-lkrb -ldes $LIBS"
23992 cat >conftest.$ac_ext <<_ACEOF
23993 /* confdefs.h.  */
23994 _ACEOF
23995 cat confdefs.h >>conftest.$ac_ext
23996 cat >>conftest.$ac_ext <<_ACEOF
23997 /* end confdefs.h.  */
23998
23999 /* Override any GCC internal prototype to avoid an error.
24000    Use char because int might match the return type of a GCC
24001    builtin and then its argument prototype would still apply.  */
24002 #ifdef __cplusplus
24003 extern "C"
24004 #endif
24005 char krb_rd_req ();
24006 int
24007 main ()
24008 {
24009 return krb_rd_req ();
24010   ;
24011   return 0;
24012 }
24013 _ACEOF
24014 rm -f conftest.$ac_objext conftest$ac_exeext
24015 if { (ac_try="$ac_link"
24016 case "(($ac_try" in
24017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24018   *) ac_try_echo=$ac_try;;
24019 esac
24020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24021   (eval "$ac_link") 2>conftest.er1
24022   ac_status=$?
24023   grep -v '^ *+' conftest.er1 >conftest.err
24024   rm -f conftest.er1
24025   cat conftest.err >&5
24026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24027   (exit $ac_status); } && {
24028          test -z "$ac_c_werror_flag" ||
24029          test ! -s conftest.err
24030        } && test -s conftest$ac_exeext &&
24031        $as_test_x conftest$ac_exeext; then
24032   ac_cv_lib_krb_krb_rd_req=yes
24033 else
24034   echo "$as_me: failed program was:" >&5
24035 sed 's/^/| /' conftest.$ac_ext >&5
24036
24037         ac_cv_lib_krb_krb_rd_req=no
24038 fi
24039
24040 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24041       conftest$ac_exeext conftest.$ac_ext
24042 LIBS=$ac_check_lib_save_LIBS
24043 fi
24044 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_rd_req" >&5
24045 echo "${ECHO_T}$ac_cv_lib_krb_krb_rd_req" >&6; }
24046 if test $ac_cv_lib_krb_krb_rd_req = yes; then
24047   KRB4_LIBS="-lkrb -ldes"
24048 else
24049   { { echo "$as_me:$LINENO: error: Kerberos 4 libraries not found" >&5
24050 echo "$as_me: error: Kerberos 4 libraries not found" >&2;}
24051    { (exit 1); exit 1; }; }
24052 fi
24053
24054 fi
24055
24056         cat >>confdefs.h <<\_ACEOF
24057 #define HAVE_KRB4 1
24058 _ACEOF
24059
24060         LIBZEPHYR_LIBS="$LIBZEPHYR_LIBS $KRB4_LIBS"
24061 fi
24062
24063
24064
24065 # Check whether --with-krb5 was given.
24066 if test "${with_krb5+set}" = set; then
24067   withval=$with_krb5; krb5="$withval"
24068 else
24069   krb5=no
24070 fi
24071
24072 if test "$krb5" != no; then
24073    { echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
24074 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6; }
24075 if test "${ac_cv_search_gethostbyname+set}" = set; then
24076   echo $ECHO_N "(cached) $ECHO_C" >&6
24077 else
24078   ac_func_search_save_LIBS=$LIBS
24079 cat >conftest.$ac_ext <<_ACEOF
24080 /* confdefs.h.  */
24081 _ACEOF
24082 cat confdefs.h >>conftest.$ac_ext
24083 cat >>conftest.$ac_ext <<_ACEOF
24084 /* end confdefs.h.  */
24085
24086 /* Override any GCC internal prototype to avoid an error.
24087    Use char because int might match the return type of a GCC
24088    builtin and then its argument prototype would still apply.  */
24089 #ifdef __cplusplus
24090 extern "C"
24091 #endif
24092 char gethostbyname ();
24093 int
24094 main ()
24095 {
24096 return gethostbyname ();
24097   ;
24098   return 0;
24099 }
24100 _ACEOF
24101 for ac_lib in '' nsl; do
24102   if test -z "$ac_lib"; then
24103     ac_res="none required"
24104   else
24105     ac_res=-l$ac_lib
24106     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
24107   fi
24108   rm -f conftest.$ac_objext conftest$ac_exeext
24109 if { (ac_try="$ac_link"
24110 case "(($ac_try" in
24111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24112   *) ac_try_echo=$ac_try;;
24113 esac
24114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24115   (eval "$ac_link") 2>conftest.er1
24116   ac_status=$?
24117   grep -v '^ *+' conftest.er1 >conftest.err
24118   rm -f conftest.er1
24119   cat conftest.err >&5
24120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24121   (exit $ac_status); } && {
24122          test -z "$ac_c_werror_flag" ||
24123          test ! -s conftest.err
24124        } && test -s conftest$ac_exeext &&
24125        $as_test_x conftest$ac_exeext; then
24126   ac_cv_search_gethostbyname=$ac_res
24127 else
24128   echo "$as_me: failed program was:" >&5
24129 sed 's/^/| /' conftest.$ac_ext >&5
24130
24131
24132 fi
24133
24134 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24135       conftest$ac_exeext
24136   if test "${ac_cv_search_gethostbyname+set}" = set; then
24137   break
24138 fi
24139 done
24140 if test "${ac_cv_search_gethostbyname+set}" = set; then
24141   :
24142 else
24143   ac_cv_search_gethostbyname=no
24144 fi
24145 rm conftest.$ac_ext
24146 LIBS=$ac_func_search_save_LIBS
24147 fi
24148 { echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
24149 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6; }
24150 ac_res=$ac_cv_search_gethostbyname
24151 if test "$ac_res" != no; then
24152   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24153
24154 fi
24155
24156    { echo "$as_me:$LINENO: checking for library containing socket" >&5
24157 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
24158 if test "${ac_cv_search_socket+set}" = set; then
24159   echo $ECHO_N "(cached) $ECHO_C" >&6
24160 else
24161   ac_func_search_save_LIBS=$LIBS
24162 cat >conftest.$ac_ext <<_ACEOF
24163 /* confdefs.h.  */
24164 _ACEOF
24165 cat confdefs.h >>conftest.$ac_ext
24166 cat >>conftest.$ac_ext <<_ACEOF
24167 /* end confdefs.h.  */
24168
24169 /* Override any GCC internal prototype to avoid an error.
24170    Use char because int might match the return type of a GCC
24171    builtin and then its argument prototype would still apply.  */
24172 #ifdef __cplusplus
24173 extern "C"
24174 #endif
24175 char socket ();
24176 int
24177 main ()
24178 {
24179 return socket ();
24180   ;
24181   return 0;
24182 }
24183 _ACEOF
24184 for ac_lib in '' socket; do
24185   if test -z "$ac_lib"; then
24186     ac_res="none required"
24187   else
24188     ac_res=-l$ac_lib
24189     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
24190   fi
24191   rm -f conftest.$ac_objext conftest$ac_exeext
24192 if { (ac_try="$ac_link"
24193 case "(($ac_try" in
24194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24195   *) ac_try_echo=$ac_try;;
24196 esac
24197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24198   (eval "$ac_link") 2>conftest.er1
24199   ac_status=$?
24200   grep -v '^ *+' conftest.er1 >conftest.err
24201   rm -f conftest.er1
24202   cat conftest.err >&5
24203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24204   (exit $ac_status); } && {
24205          test -z "$ac_c_werror_flag" ||
24206          test ! -s conftest.err
24207        } && test -s conftest$ac_exeext &&
24208        $as_test_x conftest$ac_exeext; then
24209   ac_cv_search_socket=$ac_res
24210 else
24211   echo "$as_me: failed program was:" >&5
24212 sed 's/^/| /' conftest.$ac_ext >&5
24213
24214
24215 fi
24216
24217 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24218       conftest$ac_exeext
24219   if test "${ac_cv_search_socket+set}" = set; then
24220   break
24221 fi
24222 done
24223 if test "${ac_cv_search_socket+set}" = set; then
24224   :
24225 else
24226   ac_cv_search_socket=no
24227 fi
24228 rm conftest.$ac_ext
24229 LIBS=$ac_func_search_save_LIBS
24230 fi
24231 { echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
24232 echo "${ECHO_T}$ac_cv_search_socket" >&6; }
24233 ac_res=$ac_cv_search_socket
24234 if test "$ac_res" != no; then
24235   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24236
24237 fi
24238
24239
24240 { echo "$as_me:$LINENO: checking for compile in -lgen" >&5
24241 echo $ECHO_N "checking for compile in -lgen... $ECHO_C" >&6; }
24242 if test "${ac_cv_lib_gen_compile+set}" = set; then
24243   echo $ECHO_N "(cached) $ECHO_C" >&6
24244 else
24245   ac_check_lib_save_LIBS=$LIBS
24246 LIBS="-lgen  $LIBS"
24247 cat >conftest.$ac_ext <<_ACEOF
24248 /* confdefs.h.  */
24249 _ACEOF
24250 cat confdefs.h >>conftest.$ac_ext
24251 cat >>conftest.$ac_ext <<_ACEOF
24252 /* end confdefs.h.  */
24253
24254 /* Override any GCC internal prototype to avoid an error.
24255    Use char because int might match the return type of a GCC
24256    builtin and then its argument prototype would still apply.  */
24257 #ifdef __cplusplus
24258 extern "C"
24259 #endif
24260 char compile ();
24261 int
24262 main ()
24263 {
24264 return compile ();
24265   ;
24266   return 0;
24267 }
24268 _ACEOF
24269 rm -f conftest.$ac_objext conftest$ac_exeext
24270 if { (ac_try="$ac_link"
24271 case "(($ac_try" in
24272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24273   *) ac_try_echo=$ac_try;;
24274 esac
24275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24276   (eval "$ac_link") 2>conftest.er1
24277   ac_status=$?
24278   grep -v '^ *+' conftest.er1 >conftest.err
24279   rm -f conftest.er1
24280   cat conftest.err >&5
24281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24282   (exit $ac_status); } && {
24283          test -z "$ac_c_werror_flag" ||
24284          test ! -s conftest.err
24285        } && test -s conftest$ac_exeext &&
24286        $as_test_x conftest$ac_exeext; then
24287   ac_cv_lib_gen_compile=yes
24288 else
24289   echo "$as_me: failed program was:" >&5
24290 sed 's/^/| /' conftest.$ac_ext >&5
24291
24292         ac_cv_lib_gen_compile=no
24293 fi
24294
24295 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24296       conftest$ac_exeext conftest.$ac_ext
24297 LIBS=$ac_check_lib_save_LIBS
24298 fi
24299 { echo "$as_me:$LINENO: result: $ac_cv_lib_gen_compile" >&5
24300 echo "${ECHO_T}$ac_cv_lib_gen_compile" >&6; }
24301 if test $ac_cv_lib_gen_compile = yes; then
24302   cat >>confdefs.h <<_ACEOF
24303 #define HAVE_LIBGEN 1
24304 _ACEOF
24305
24306   LIBS="-lgen $LIBS"
24307
24308 fi
24309
24310    if test "$krb5" != yes; then
24311       PATH="$PATH:$krb5/bin"
24312    fi
24313    # Extract the first word of "krb5-config", so it can be a program name with args.
24314 set dummy krb5-config; ac_word=$2
24315 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24316 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24317 if test "${ac_cv_prog_krb5config+set}" = set; then
24318   echo $ECHO_N "(cached) $ECHO_C" >&6
24319 else
24320   if test -n "$krb5config"; then
24321   ac_cv_prog_krb5config="$krb5config" # Let the user override the test.
24322 else
24323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24324 for as_dir in $PATH
24325 do
24326   IFS=$as_save_IFS
24327   test -z "$as_dir" && as_dir=.
24328   for ac_exec_ext in '' $ac_executable_extensions; do
24329   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24330     ac_cv_prog_krb5config="yes"
24331     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24332     break 2
24333   fi
24334 done
24335 done
24336 IFS=$as_save_IFS
24337
24338 fi
24339 fi
24340 krb5config=$ac_cv_prog_krb5config
24341 if test -n "$krb5config"; then
24342   { echo "$as_me:$LINENO: result: $krb5config" >&5
24343 echo "${ECHO_T}$krb5config" >&6; }
24344 else
24345   { echo "$as_me:$LINENO: result: no" >&5
24346 echo "${ECHO_T}no" >&6; }
24347 fi
24348
24349
24350    if test "$krb5config" = yes; then
24351       CPPFLAGS="$CPPFLAGS $(krb5-config --cflags krb5)"
24352       KRB5_LIBS="$(krb5-config --libs krb5)"
24353    else
24354       if test "$krb5" != yes; then
24355          CPPFLAGS="$CPPFLAGS -I$krb5/include"
24356          LDFLAGS="$LDFLAGS -L$krb5/lib"
24357       fi
24358       KRB5_LIBS="-lkrb5 -lk5crypto -lcom_err"
24359    fi
24360    if test "${ac_cv_header_krb5_h+set}" = set; then
24361   { echo "$as_me:$LINENO: checking for krb5.h" >&5
24362 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6; }
24363 if test "${ac_cv_header_krb5_h+set}" = set; then
24364   echo $ECHO_N "(cached) $ECHO_C" >&6
24365 fi
24366 { echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
24367 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6; }
24368 else
24369   # Is the header compilable?
24370 { echo "$as_me:$LINENO: checking krb5.h usability" >&5
24371 echo $ECHO_N "checking krb5.h usability... $ECHO_C" >&6; }
24372 cat >conftest.$ac_ext <<_ACEOF
24373 /* confdefs.h.  */
24374 _ACEOF
24375 cat confdefs.h >>conftest.$ac_ext
24376 cat >>conftest.$ac_ext <<_ACEOF
24377 /* end confdefs.h.  */
24378 $ac_includes_default
24379 #include <krb5.h>
24380 _ACEOF
24381 rm -f conftest.$ac_objext
24382 if { (ac_try="$ac_compile"
24383 case "(($ac_try" in
24384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24385   *) ac_try_echo=$ac_try;;
24386 esac
24387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24388   (eval "$ac_compile") 2>conftest.er1
24389   ac_status=$?
24390   grep -v '^ *+' conftest.er1 >conftest.err
24391   rm -f conftest.er1
24392   cat conftest.err >&5
24393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24394   (exit $ac_status); } && {
24395          test -z "$ac_c_werror_flag" ||
24396          test ! -s conftest.err
24397        } && test -s conftest.$ac_objext; then
24398   ac_header_compiler=yes
24399 else
24400   echo "$as_me: failed program was:" >&5
24401 sed 's/^/| /' conftest.$ac_ext >&5
24402
24403         ac_header_compiler=no
24404 fi
24405
24406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24407 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24408 echo "${ECHO_T}$ac_header_compiler" >&6; }
24409
24410 # Is the header present?
24411 { echo "$as_me:$LINENO: checking krb5.h presence" >&5
24412 echo $ECHO_N "checking krb5.h presence... $ECHO_C" >&6; }
24413 cat >conftest.$ac_ext <<_ACEOF
24414 /* confdefs.h.  */
24415 _ACEOF
24416 cat confdefs.h >>conftest.$ac_ext
24417 cat >>conftest.$ac_ext <<_ACEOF
24418 /* end confdefs.h.  */
24419 #include <krb5.h>
24420 _ACEOF
24421 if { (ac_try="$ac_cpp conftest.$ac_ext"
24422 case "(($ac_try" in
24423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24424   *) ac_try_echo=$ac_try;;
24425 esac
24426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24427   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24428   ac_status=$?
24429   grep -v '^ *+' conftest.er1 >conftest.err
24430   rm -f conftest.er1
24431   cat conftest.err >&5
24432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24433   (exit $ac_status); } >/dev/null && {
24434          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24435          test ! -s conftest.err
24436        }; then
24437   ac_header_preproc=yes
24438 else
24439   echo "$as_me: failed program was:" >&5
24440 sed 's/^/| /' conftest.$ac_ext >&5
24441
24442   ac_header_preproc=no
24443 fi
24444
24445 rm -f conftest.err conftest.$ac_ext
24446 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24447 echo "${ECHO_T}$ac_header_preproc" >&6; }
24448
24449 # So?  What about this header?
24450 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24451   yes:no: )
24452     { echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
24453 echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24454     { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the compiler's result" >&5
24455 echo "$as_me: WARNING: krb5.h: proceeding with the compiler's result" >&2;}
24456     ac_header_preproc=yes
24457     ;;
24458   no:yes:* )
24459     { echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
24460 echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
24461     { echo "$as_me:$LINENO: WARNING: krb5.h:     check for missing prerequisite headers?" >&5
24462 echo "$as_me: WARNING: krb5.h:     check for missing prerequisite headers?" >&2;}
24463     { echo "$as_me:$LINENO: WARNING: krb5.h: see the Autoconf documentation" >&5
24464 echo "$as_me: WARNING: krb5.h: see the Autoconf documentation" >&2;}
24465     { echo "$as_me:$LINENO: WARNING: krb5.h:     section \"Present But Cannot Be Compiled\"" >&5
24466 echo "$as_me: WARNING: krb5.h:     section \"Present But Cannot Be Compiled\"" >&2;}
24467     { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
24468 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;}
24469     { echo "$as_me:$LINENO: WARNING: krb5.h: in the future, the compiler will take precedence" >&5
24470 echo "$as_me: WARNING: krb5.h: in the future, the compiler will take precedence" >&2;}
24471
24472     ;;
24473 esac
24474 { echo "$as_me:$LINENO: checking for krb5.h" >&5
24475 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6; }
24476 if test "${ac_cv_header_krb5_h+set}" = set; then
24477   echo $ECHO_N "(cached) $ECHO_C" >&6
24478 else
24479   ac_cv_header_krb5_h=$ac_header_preproc
24480 fi
24481 { echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
24482 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6; }
24483
24484 fi
24485 if test $ac_cv_header_krb5_h = yes; then
24486   :
24487 else
24488   { { echo "$as_me:$LINENO: error: Kerberos 5 headers not found" >&5
24489 echo "$as_me: error: Kerberos 5 headers not found" >&2;}
24490    { (exit 1); exit 1; }; }
24491 fi
24492
24493
24494    local_save_LIBS=$LIBS
24495    LIBS="$libs $KRB5_LIBS"
24496    { echo "$as_me:$LINENO: checking for krb5_init_context" >&5
24497 echo $ECHO_N "checking for krb5_init_context... $ECHO_C" >&6; }
24498 if test "${ac_cv_func_krb5_init_context+set}" = set; then
24499   echo $ECHO_N "(cached) $ECHO_C" >&6
24500 else
24501   cat >conftest.$ac_ext <<_ACEOF
24502 /* confdefs.h.  */
24503 _ACEOF
24504 cat confdefs.h >>conftest.$ac_ext
24505 cat >>conftest.$ac_ext <<_ACEOF
24506 /* end confdefs.h.  */
24507 /* Define krb5_init_context to an innocuous variant, in case <limits.h> declares krb5_init_context.
24508    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24509 #define krb5_init_context innocuous_krb5_init_context
24510
24511 /* System header to define __stub macros and hopefully few prototypes,
24512     which can conflict with char krb5_init_context (); below.
24513     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24514     <limits.h> exists even on freestanding compilers.  */
24515
24516 #ifdef __STDC__
24517 # include <limits.h>
24518 #else
24519 # include <assert.h>
24520 #endif
24521
24522 #undef krb5_init_context
24523
24524 /* Override any GCC internal prototype to avoid an error.
24525    Use char because int might match the return type of a GCC
24526    builtin and then its argument prototype would still apply.  */
24527 #ifdef __cplusplus
24528 extern "C"
24529 #endif
24530 char krb5_init_context ();
24531 /* The GNU C library defines this for functions which it implements
24532     to always fail with ENOSYS.  Some functions are actually named
24533     something starting with __ and the normal name is an alias.  */
24534 #if defined __stub_krb5_init_context || defined __stub___krb5_init_context
24535 choke me
24536 #endif
24537
24538 int
24539 main ()
24540 {
24541 return krb5_init_context ();
24542   ;
24543   return 0;
24544 }
24545 _ACEOF
24546 rm -f conftest.$ac_objext conftest$ac_exeext
24547 if { (ac_try="$ac_link"
24548 case "(($ac_try" in
24549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24550   *) ac_try_echo=$ac_try;;
24551 esac
24552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24553   (eval "$ac_link") 2>conftest.er1
24554   ac_status=$?
24555   grep -v '^ *+' conftest.er1 >conftest.err
24556   rm -f conftest.er1
24557   cat conftest.err >&5
24558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24559   (exit $ac_status); } && {
24560          test -z "$ac_c_werror_flag" ||
24561          test ! -s conftest.err
24562        } && test -s conftest$ac_exeext &&
24563        $as_test_x conftest$ac_exeext; then
24564   ac_cv_func_krb5_init_context=yes
24565 else
24566   echo "$as_me: failed program was:" >&5
24567 sed 's/^/| /' conftest.$ac_ext >&5
24568
24569         ac_cv_func_krb5_init_context=no
24570 fi
24571
24572 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24573       conftest$ac_exeext conftest.$ac_ext
24574 fi
24575 { echo "$as_me:$LINENO: result: $ac_cv_func_krb5_init_context" >&5
24576 echo "${ECHO_T}$ac_cv_func_krb5_init_context" >&6; }
24577 if test $ac_cv_func_krb5_init_context = yes; then
24578   :
24579 else
24580   { { echo "$as_me:$LINENO: error: Kerberos 5 libraries not found" >&5
24581 echo "$as_me: error: Kerberos 5 libraries not found" >&2;}
24582    { (exit 1); exit 1; }; }
24583 fi
24584
24585    LIBS="$local_save_LIBS"
24586    cat >>confdefs.h <<\_ACEOF
24587 #define HAVE_KRB5 1
24588 _ACEOF
24589
24590    LIBZEPHYR_LIBS="$LIBZEPHYR_LIBS $KRB5_LIBS"
24591    # the zephyr library needs -lresolv if it's built with krb5
24592    { echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
24593 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6; }
24594 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
24595   echo $ECHO_N "(cached) $ECHO_C" >&6
24596 else
24597   ac_check_lib_save_LIBS=$LIBS
24598 LIBS="-lresolv  $LIBS"
24599 cat >conftest.$ac_ext <<_ACEOF
24600 /* confdefs.h.  */
24601 _ACEOF
24602 cat confdefs.h >>conftest.$ac_ext
24603 cat >>conftest.$ac_ext <<_ACEOF
24604 /* end confdefs.h.  */
24605
24606 /* Override any GCC internal prototype to avoid an error.
24607    Use char because int might match the return type of a GCC
24608    builtin and then its argument prototype would still apply.  */
24609 #ifdef __cplusplus
24610 extern "C"
24611 #endif
24612 char res_send ();
24613 int
24614 main ()
24615 {
24616 return res_send ();
24617   ;
24618   return 0;
24619 }
24620 _ACEOF
24621 rm -f conftest.$ac_objext conftest$ac_exeext
24622 if { (ac_try="$ac_link"
24623 case "(($ac_try" in
24624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24625   *) ac_try_echo=$ac_try;;
24626 esac
24627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24628   (eval "$ac_link") 2>conftest.er1
24629   ac_status=$?
24630   grep -v '^ *+' conftest.er1 >conftest.err
24631   rm -f conftest.er1
24632   cat conftest.err >&5
24633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24634   (exit $ac_status); } && {
24635          test -z "$ac_c_werror_flag" ||
24636          test ! -s conftest.err
24637        } && test -s conftest$ac_exeext &&
24638        $as_test_x conftest$ac_exeext; then
24639   ac_cv_lib_resolv_res_send=yes
24640 else
24641   echo "$as_me: failed program was:" >&5
24642 sed 's/^/| /' conftest.$ac_ext >&5
24643
24644         ac_cv_lib_resolv_res_send=no
24645 fi
24646
24647 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24648       conftest$ac_exeext conftest.$ac_ext
24649 LIBS=$ac_check_lib_save_LIBS
24650 fi
24651 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
24652 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
24653 if test $ac_cv_lib_resolv_res_send = yes; then
24654   LIBZEPHYR_LIBS="-lresolv $LIBZEPHYR_LIBS"
24655 else
24656   { echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
24657 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6; }
24658 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
24659   echo $ECHO_N "(cached) $ECHO_C" >&6
24660 else
24661   ac_check_lib_save_LIBS=$LIBS
24662 LIBS="-lresolv  $LIBS"
24663 cat >conftest.$ac_ext <<_ACEOF
24664 /* confdefs.h.  */
24665 _ACEOF
24666 cat confdefs.h >>conftest.$ac_ext
24667 cat >>conftest.$ac_ext <<_ACEOF
24668 /* end confdefs.h.  */
24669
24670 /* Override any GCC internal prototype to avoid an error.
24671    Use char because int might match the return type of a GCC
24672    builtin and then its argument prototype would still apply.  */
24673 #ifdef __cplusplus
24674 extern "C"
24675 #endif
24676 char __res_send ();
24677 int
24678 main ()
24679 {
24680 return __res_send ();
24681   ;
24682   return 0;
24683 }
24684 _ACEOF
24685 rm -f conftest.$ac_objext conftest$ac_exeext
24686 if { (ac_try="$ac_link"
24687 case "(($ac_try" in
24688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24689   *) ac_try_echo=$ac_try;;
24690 esac
24691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24692   (eval "$ac_link") 2>conftest.er1
24693   ac_status=$?
24694   grep -v '^ *+' conftest.er1 >conftest.err
24695   rm -f conftest.er1
24696   cat conftest.err >&5
24697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24698   (exit $ac_status); } && {
24699          test -z "$ac_c_werror_flag" ||
24700          test ! -s conftest.err
24701        } && test -s conftest$ac_exeext &&
24702        $as_test_x conftest$ac_exeext; then
24703   ac_cv_lib_resolv___res_send=yes
24704 else
24705   echo "$as_me: failed program was:" >&5
24706 sed 's/^/| /' conftest.$ac_ext >&5
24707
24708         ac_cv_lib_resolv___res_send=no
24709 fi
24710
24711 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24712       conftest$ac_exeext conftest.$ac_ext
24713 LIBS=$ac_check_lib_save_LIBS
24714 fi
24715 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
24716 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
24717 if test $ac_cv_lib_resolv___res_send = yes; then
24718   LIBZEPHYR_LIBS="-lresolv $LIBZEPHYR_LIBS"
24719 else
24720   { { echo "$as_me:$LINENO: error: Zephyr requires libresolv along with Kerberos V." >&5
24721 echo "$as_me: error: Zephyr requires libresolv along with Kerberos V." >&2;}
24722    { (exit 1); exit 1; }; }
24723 fi
24724
24725 fi
24726
24727    case "$target_os" in
24728       darwin*) KRB5_LIBS="$KRB5_LIBS -framework Kerberos" ;;
24729    esac
24730 fi
24731
24732
24733
24734
24735
24736 # Check whether --with-hesiod was given.
24737 if test "${with_hesiod+set}" = set; then
24738   withval=$with_hesiod; hesiod="$withval"
24739 else
24740   hesiod=no
24741 fi
24742
24743 if test "$hesiod" != no; then
24744         { echo "$as_me:$LINENO: checking for res_send" >&5
24745 echo $ECHO_N "checking for res_send... $ECHO_C" >&6; }
24746 if test "${ac_cv_func_res_send+set}" = set; then
24747   echo $ECHO_N "(cached) $ECHO_C" >&6
24748 else
24749   cat >conftest.$ac_ext <<_ACEOF
24750 /* confdefs.h.  */
24751 _ACEOF
24752 cat confdefs.h >>conftest.$ac_ext
24753 cat >>conftest.$ac_ext <<_ACEOF
24754 /* end confdefs.h.  */
24755 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
24756    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24757 #define res_send innocuous_res_send
24758
24759 /* System header to define __stub macros and hopefully few prototypes,
24760     which can conflict with char res_send (); below.
24761     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24762     <limits.h> exists even on freestanding compilers.  */
24763
24764 #ifdef __STDC__
24765 # include <limits.h>
24766 #else
24767 # include <assert.h>
24768 #endif
24769
24770 #undef res_send
24771
24772 /* Override any GCC internal prototype to avoid an error.
24773    Use char because int might match the return type of a GCC
24774    builtin and then its argument prototype would still apply.  */
24775 #ifdef __cplusplus
24776 extern "C"
24777 #endif
24778 char res_send ();
24779 /* The GNU C library defines this for functions which it implements
24780     to always fail with ENOSYS.  Some functions are actually named
24781     something starting with __ and the normal name is an alias.  */
24782 #if defined __stub_res_send || defined __stub___res_send
24783 choke me
24784 #endif
24785
24786 int
24787 main ()
24788 {
24789 return res_send ();
24790   ;
24791   return 0;
24792 }
24793 _ACEOF
24794 rm -f conftest.$ac_objext conftest$ac_exeext
24795 if { (ac_try="$ac_link"
24796 case "(($ac_try" in
24797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24798   *) ac_try_echo=$ac_try;;
24799 esac
24800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24801   (eval "$ac_link") 2>conftest.er1
24802   ac_status=$?
24803   grep -v '^ *+' conftest.er1 >conftest.err
24804   rm -f conftest.er1
24805   cat conftest.err >&5
24806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24807   (exit $ac_status); } && {
24808          test -z "$ac_c_werror_flag" ||
24809          test ! -s conftest.err
24810        } && test -s conftest$ac_exeext &&
24811        $as_test_x conftest$ac_exeext; then
24812   ac_cv_func_res_send=yes
24813 else
24814   echo "$as_me: failed program was:" >&5
24815 sed 's/^/| /' conftest.$ac_ext >&5
24816
24817         ac_cv_func_res_send=no
24818 fi
24819
24820 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24821       conftest$ac_exeext conftest.$ac_ext
24822 fi
24823 { echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
24824 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
24825 if test $ac_cv_func_res_send = yes; then
24826   :
24827 else
24828
24829 { echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
24830 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6; }
24831 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
24832   echo $ECHO_N "(cached) $ECHO_C" >&6
24833 else
24834   ac_check_lib_save_LIBS=$LIBS
24835 LIBS="-lresolv  $LIBS"
24836 cat >conftest.$ac_ext <<_ACEOF
24837 /* confdefs.h.  */
24838 _ACEOF
24839 cat confdefs.h >>conftest.$ac_ext
24840 cat >>conftest.$ac_ext <<_ACEOF
24841 /* end confdefs.h.  */
24842
24843 /* Override any GCC internal prototype to avoid an error.
24844    Use char because int might match the return type of a GCC
24845    builtin and then its argument prototype would still apply.  */
24846 #ifdef __cplusplus
24847 extern "C"
24848 #endif
24849 char res_send ();
24850 int
24851 main ()
24852 {
24853 return res_send ();
24854   ;
24855   return 0;
24856 }
24857 _ACEOF
24858 rm -f conftest.$ac_objext conftest$ac_exeext
24859 if { (ac_try="$ac_link"
24860 case "(($ac_try" in
24861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24862   *) ac_try_echo=$ac_try;;
24863 esac
24864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24865   (eval "$ac_link") 2>conftest.er1
24866   ac_status=$?
24867   grep -v '^ *+' conftest.er1 >conftest.err
24868   rm -f conftest.er1
24869   cat conftest.err >&5
24870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24871   (exit $ac_status); } && {
24872          test -z "$ac_c_werror_flag" ||
24873          test ! -s conftest.err
24874        } && test -s conftest$ac_exeext &&
24875        $as_test_x conftest$ac_exeext; then
24876   ac_cv_lib_resolv_res_send=yes
24877 else
24878   echo "$as_me: failed program was:" >&5
24879 sed 's/^/| /' conftest.$ac_ext >&5
24880
24881         ac_cv_lib_resolv_res_send=no
24882 fi
24883
24884 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24885       conftest$ac_exeext conftest.$ac_ext
24886 LIBS=$ac_check_lib_save_LIBS
24887 fi
24888 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
24889 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
24890 if test $ac_cv_lib_resolv_res_send = yes; then
24891   cat >>confdefs.h <<_ACEOF
24892 #define HAVE_LIBRESOLV 1
24893 _ACEOF
24894
24895   LIBS="-lresolv $LIBS"
24896
24897 fi
24898
24899 fi
24900
24901 if test "$hesiod" != yes; then
24902         CPPFLAGS="$CPPFLAGS -I$hesiod/include"
24903         LDFLAGS="$LDFLAGS -L$hesiod/lib"
24904 fi
24905 { echo "$as_me:$LINENO: checking for hes_resolve in -lhesiod" >&5
24906 echo $ECHO_N "checking for hes_resolve in -lhesiod... $ECHO_C" >&6; }
24907 if test "${ac_cv_lib_hesiod_hes_resolve+set}" = set; then
24908   echo $ECHO_N "(cached) $ECHO_C" >&6
24909 else
24910   ac_check_lib_save_LIBS=$LIBS
24911 LIBS="-lhesiod $LIBS $LIBS"
24912 cat >conftest.$ac_ext <<_ACEOF
24913 /* confdefs.h.  */
24914 _ACEOF
24915 cat confdefs.h >>conftest.$ac_ext
24916 cat >>conftest.$ac_ext <<_ACEOF
24917 /* end confdefs.h.  */
24918
24919 /* Override any GCC internal prototype to avoid an error.
24920    Use char because int might match the return type of a GCC
24921    builtin and then its argument prototype would still apply.  */
24922 #ifdef __cplusplus
24923 extern "C"
24924 #endif
24925 char hes_resolve ();
24926 int
24927 main ()
24928 {
24929 return hes_resolve ();
24930   ;
24931   return 0;
24932 }
24933 _ACEOF
24934 rm -f conftest.$ac_objext conftest$ac_exeext
24935 if { (ac_try="$ac_link"
24936 case "(($ac_try" in
24937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24938   *) ac_try_echo=$ac_try;;
24939 esac
24940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24941   (eval "$ac_link") 2>conftest.er1
24942   ac_status=$?
24943   grep -v '^ *+' conftest.er1 >conftest.err
24944   rm -f conftest.er1
24945   cat conftest.err >&5
24946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24947   (exit $ac_status); } && {
24948          test -z "$ac_c_werror_flag" ||
24949          test ! -s conftest.err
24950        } && test -s conftest$ac_exeext &&
24951        $as_test_x conftest$ac_exeext; then
24952   ac_cv_lib_hesiod_hes_resolve=yes
24953 else
24954   echo "$as_me: failed program was:" >&5
24955 sed 's/^/| /' conftest.$ac_ext >&5
24956
24957         ac_cv_lib_hesiod_hes_resolve=no
24958 fi
24959
24960 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24961       conftest$ac_exeext conftest.$ac_ext
24962 LIBS=$ac_check_lib_save_LIBS
24963 fi
24964 { echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_resolve" >&5
24965 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_resolve" >&6; }
24966 if test $ac_cv_lib_hesiod_hes_resolve = yes; then
24967   :
24968 else
24969   { { echo "$as_me:$LINENO: error: Hesiod library not found" >&5
24970 echo "$as_me: error: Hesiod library not found" >&2;}
24971    { (exit 1); exit 1; }; }
24972 fi
24973
24974         HESIOD_LIBS="-lhesiod"
24975         cat >>confdefs.h <<\_ACEOF
24976 #define HAVE_HESIOD 1
24977 _ACEOF
24978
24979 fi
24980
24981
24982 # Check whether --with-regex was given.
24983 if test "${with_regex+set}" = set; then
24984   withval=$with_regex; regex="$withval"
24985 else
24986   regex=no
24987 fi
24988
24989 if test "$regex" != no; then
24990         if test "$regex" != yes; then
24991                 CPPFLAGS="$CPPFLAGS -I$regex/include"
24992                 LDFLAGS="$LDFLAGS -L$regex/lib"
24993         fi
24994         { echo "$as_me:$LINENO: checking for regcomp in -lregex" >&5
24995 echo $ECHO_N "checking for regcomp in -lregex... $ECHO_C" >&6; }
24996 if test "${ac_cv_lib_regex_regcomp+set}" = set; then
24997   echo $ECHO_N "(cached) $ECHO_C" >&6
24998 else
24999   ac_check_lib_save_LIBS=$LIBS
25000 LIBS="-lregex  $LIBS"
25001 cat >conftest.$ac_ext <<_ACEOF
25002 /* confdefs.h.  */
25003 _ACEOF
25004 cat confdefs.h >>conftest.$ac_ext
25005 cat >>conftest.$ac_ext <<_ACEOF
25006 /* end confdefs.h.  */
25007
25008 /* Override any GCC internal prototype to avoid an error.
25009    Use char because int might match the return type of a GCC
25010    builtin and then its argument prototype would still apply.  */
25011 #ifdef __cplusplus
25012 extern "C"
25013 #endif
25014 char regcomp ();
25015 int
25016 main ()
25017 {
25018 return regcomp ();
25019   ;
25020   return 0;
25021 }
25022 _ACEOF
25023 rm -f conftest.$ac_objext conftest$ac_exeext
25024 if { (ac_try="$ac_link"
25025 case "(($ac_try" in
25026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25027   *) ac_try_echo=$ac_try;;
25028 esac
25029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25030   (eval "$ac_link") 2>conftest.er1
25031   ac_status=$?
25032   grep -v '^ *+' conftest.er1 >conftest.err
25033   rm -f conftest.er1
25034   cat conftest.err >&5
25035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25036   (exit $ac_status); } && {
25037          test -z "$ac_c_werror_flag" ||
25038          test ! -s conftest.err
25039        } && test -s conftest$ac_exeext &&
25040        $as_test_x conftest$ac_exeext; then
25041   ac_cv_lib_regex_regcomp=yes
25042 else
25043   echo "$as_me: failed program was:" >&5
25044 sed 's/^/| /' conftest.$ac_ext >&5
25045
25046         ac_cv_lib_regex_regcomp=no
25047 fi
25048
25049 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25050       conftest$ac_exeext conftest.$ac_ext
25051 LIBS=$ac_check_lib_save_LIBS
25052 fi
25053 { echo "$as_me:$LINENO: result: $ac_cv_lib_regex_regcomp" >&5
25054 echo "${ECHO_T}$ac_cv_lib_regex_regcomp" >&6; }
25055 if test $ac_cv_lib_regex_regcomp = yes; then
25056   REGEX_LIBS=-lregex
25057 else
25058   { { echo "$as_me:$LINENO: error: regex library not found" >&5
25059 echo "$as_me: error: regex library not found" >&2;}
25060    { (exit 1); exit 1; }; }
25061 fi
25062
25063 else
25064         { echo "$as_me:$LINENO: checking for regcomp" >&5
25065 echo $ECHO_N "checking for regcomp... $ECHO_C" >&6; }
25066 if test "${ac_cv_func_regcomp+set}" = set; then
25067   echo $ECHO_N "(cached) $ECHO_C" >&6
25068 else
25069   cat >conftest.$ac_ext <<_ACEOF
25070 /* confdefs.h.  */
25071 _ACEOF
25072 cat confdefs.h >>conftest.$ac_ext
25073 cat >>conftest.$ac_ext <<_ACEOF
25074 /* end confdefs.h.  */
25075 /* Define regcomp to an innocuous variant, in case <limits.h> declares regcomp.
25076    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25077 #define regcomp innocuous_regcomp
25078
25079 /* System header to define __stub macros and hopefully few prototypes,
25080     which can conflict with char regcomp (); below.
25081     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25082     <limits.h> exists even on freestanding compilers.  */
25083
25084 #ifdef __STDC__
25085 # include <limits.h>
25086 #else
25087 # include <assert.h>
25088 #endif
25089
25090 #undef regcomp
25091
25092 /* Override any GCC internal prototype to avoid an error.
25093    Use char because int might match the return type of a GCC
25094    builtin and then its argument prototype would still apply.  */
25095 #ifdef __cplusplus
25096 extern "C"
25097 #endif
25098 char regcomp ();
25099 /* The GNU C library defines this for functions which it implements
25100     to always fail with ENOSYS.  Some functions are actually named
25101     something starting with __ and the normal name is an alias.  */
25102 #if defined __stub_regcomp || defined __stub___regcomp
25103 choke me
25104 #endif
25105
25106 int
25107 main ()
25108 {
25109 return regcomp ();
25110   ;
25111   return 0;
25112 }
25113 _ACEOF
25114 rm -f conftest.$ac_objext conftest$ac_exeext
25115 if { (ac_try="$ac_link"
25116 case "(($ac_try" in
25117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25118   *) ac_try_echo=$ac_try;;
25119 esac
25120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25121   (eval "$ac_link") 2>conftest.er1
25122   ac_status=$?
25123   grep -v '^ *+' conftest.er1 >conftest.err
25124   rm -f conftest.er1
25125   cat conftest.err >&5
25126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25127   (exit $ac_status); } && {
25128          test -z "$ac_c_werror_flag" ||
25129          test ! -s conftest.err
25130        } && test -s conftest$ac_exeext &&
25131        $as_test_x conftest$ac_exeext; then
25132   ac_cv_func_regcomp=yes
25133 else
25134   echo "$as_me: failed program was:" >&5
25135 sed 's/^/| /' conftest.$ac_ext >&5
25136
25137         ac_cv_func_regcomp=no
25138 fi
25139
25140 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25141       conftest$ac_exeext conftest.$ac_ext
25142 fi
25143 { echo "$as_me:$LINENO: result: $ac_cv_func_regcomp" >&5
25144 echo "${ECHO_T}$ac_cv_func_regcomp" >&6; }
25145 if test $ac_cv_func_regcomp = yes; then
25146   :
25147 else
25148   { { echo "$as_me:$LINENO: error: can't find POSIX regexp support" >&5
25149 echo "$as_me: error: can't find POSIX regexp support" >&2;}
25150    { (exit 1); exit 1; }; }
25151 fi
25152
25153 fi
25154
25155
25156 # Check whether --with-com_err was given.
25157 if test "${with_com_err+set}" = set; then
25158   withval=$with_com_err; com_err="$withval"
25159 else
25160   com_err=yes
25161 fi
25162
25163 if test "$com_err" != no; then
25164         if test "$com_err" != yes; then
25165                 CPPFLAGS="$CPPFLAGS -I$com_err/include"
25166                 LDFLAGS="$LDFLAGS -L$com_err/lib"
25167         fi
25168         { echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
25169 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6; }
25170 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
25171   echo $ECHO_N "(cached) $ECHO_C" >&6
25172 else
25173   ac_check_lib_save_LIBS=$LIBS
25174 LIBS="-lcom_err  $LIBS"
25175 cat >conftest.$ac_ext <<_ACEOF
25176 /* confdefs.h.  */
25177 _ACEOF
25178 cat confdefs.h >>conftest.$ac_ext
25179 cat >>conftest.$ac_ext <<_ACEOF
25180 /* end confdefs.h.  */
25181
25182 /* Override any GCC internal prototype to avoid an error.
25183    Use char because int might match the return type of a GCC
25184    builtin and then its argument prototype would still apply.  */
25185 #ifdef __cplusplus
25186 extern "C"
25187 #endif
25188 char com_err ();
25189 int
25190 main ()
25191 {
25192 return com_err ();
25193   ;
25194   return 0;
25195 }
25196 _ACEOF
25197 rm -f conftest.$ac_objext conftest$ac_exeext
25198 if { (ac_try="$ac_link"
25199 case "(($ac_try" in
25200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25201   *) ac_try_echo=$ac_try;;
25202 esac
25203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25204   (eval "$ac_link") 2>conftest.er1
25205   ac_status=$?
25206   grep -v '^ *+' conftest.er1 >conftest.err
25207   rm -f conftest.er1
25208   cat conftest.err >&5
25209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25210   (exit $ac_status); } && {
25211          test -z "$ac_c_werror_flag" ||
25212          test ! -s conftest.err
25213        } && test -s conftest$ac_exeext &&
25214        $as_test_x conftest$ac_exeext; then
25215   ac_cv_lib_com_err_com_err=yes
25216 else
25217   echo "$as_me: failed program was:" >&5
25218 sed 's/^/| /' conftest.$ac_ext >&5
25219
25220         ac_cv_lib_com_err_com_err=no
25221 fi
25222
25223 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25224       conftest$ac_exeext conftest.$ac_ext
25225 LIBS=$ac_check_lib_save_LIBS
25226 fi
25227 { echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
25228 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
25229 if test $ac_cv_lib_com_err_com_err = yes; then
25230   :
25231 else
25232   { { echo "$as_me:$LINENO: error: com_err library not found" >&5
25233 echo "$as_me: error: com_err library not found" >&2;}
25234    { (exit 1); exit 1; }; }
25235 fi
25236
25237 else
25238         { { echo "$as_me:$LINENO: error: This package requires com_err." >&5
25239 echo "$as_me: error: This package requires com_err." >&2;}
25240    { (exit 1); exit 1; }; }
25241 fi
25242
25243
25244 # Check whether --with-ss was given.
25245 if test "${with_ss+set}" = set; then
25246   withval=$with_ss; ss="$withval"
25247 else
25248   ss=yes
25249 fi
25250
25251 if test "$ss" != no; then
25252         if test "$ss" != yes; then
25253                 CPPFLAGS="$CPPFLAGS -I$ss/include"
25254                 LDFLAGS="$LDFLAGS -L$ss/lib"
25255         fi
25256         { echo "$as_me:$LINENO: checking for ss_perror in -lss" >&5
25257 echo $ECHO_N "checking for ss_perror in -lss... $ECHO_C" >&6; }
25258 if test "${ac_cv_lib_ss_ss_perror+set}" = set; then
25259   echo $ECHO_N "(cached) $ECHO_C" >&6
25260 else
25261   ac_check_lib_save_LIBS=$LIBS
25262 LIBS="-lss -lcom_err -lreadline -lcurses $LIBS"
25263 cat >conftest.$ac_ext <<_ACEOF
25264 /* confdefs.h.  */
25265 _ACEOF
25266 cat confdefs.h >>conftest.$ac_ext
25267 cat >>conftest.$ac_ext <<_ACEOF
25268 /* end confdefs.h.  */
25269
25270 /* Override any GCC internal prototype to avoid an error.
25271    Use char because int might match the return type of a GCC
25272    builtin and then its argument prototype would still apply.  */
25273 #ifdef __cplusplus
25274 extern "C"
25275 #endif
25276 char ss_perror ();
25277 int
25278 main ()
25279 {
25280 return ss_perror ();
25281   ;
25282   return 0;
25283 }
25284 _ACEOF
25285 rm -f conftest.$ac_objext conftest$ac_exeext
25286 if { (ac_try="$ac_link"
25287 case "(($ac_try" in
25288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25289   *) ac_try_echo=$ac_try;;
25290 esac
25291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25292   (eval "$ac_link") 2>conftest.er1
25293   ac_status=$?
25294   grep -v '^ *+' conftest.er1 >conftest.err
25295   rm -f conftest.er1
25296   cat conftest.err >&5
25297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25298   (exit $ac_status); } && {
25299          test -z "$ac_c_werror_flag" ||
25300          test ! -s conftest.err
25301        } && test -s conftest$ac_exeext &&
25302        $as_test_x conftest$ac_exeext; then
25303   ac_cv_lib_ss_ss_perror=yes
25304 else
25305   echo "$as_me: failed program was:" >&5
25306 sed 's/^/| /' conftest.$ac_ext >&5
25307
25308         ac_cv_lib_ss_ss_perror=no
25309 fi
25310
25311 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25312       conftest$ac_exeext conftest.$ac_ext
25313 LIBS=$ac_check_lib_save_LIBS
25314 fi
25315 { echo "$as_me:$LINENO: result: $ac_cv_lib_ss_ss_perror" >&5
25316 echo "${ECHO_T}$ac_cv_lib_ss_ss_perror" >&6; }
25317 if test $ac_cv_lib_ss_ss_perror = yes; then
25318   SS_LIBS="-lss -lreadline -lcurses"
25319 else
25320   { { echo "$as_me:$LINENO: error: ss library not found" >&5
25321 echo "$as_me: error: ss library not found" >&2;}
25322    { (exit 1); exit 1; }; }
25323 fi
25324
25325
25326 else
25327         { { echo "$as_me:$LINENO: error: This package requires ss." >&5
25328 echo "$as_me: error: This package requires ss." >&2;}
25329    { (exit 1); exit 1; }; }
25330 fi
25331
25332 LIBS="$KRB5_LIBS $KRB4_LIBS $LIBS"
25333
25334 #XXX more looking for res_send
25335 #AC_CHECK_FUNC(res_send, :, AC_CHECK_LIB(resolv, res_send))
25336 { echo "$as_me:$LINENO: checking for ares_getnameinfo in -lcares" >&5
25337 echo $ECHO_N "checking for ares_getnameinfo in -lcares... $ECHO_C" >&6; }
25338 if test "${ac_cv_lib_cares_ares_getnameinfo+set}" = set; then
25339   echo $ECHO_N "(cached) $ECHO_C" >&6
25340 else
25341   ac_check_lib_save_LIBS=$LIBS
25342 LIBS="-lcares  $LIBS"
25343 cat >conftest.$ac_ext <<_ACEOF
25344 /* confdefs.h.  */
25345 _ACEOF
25346 cat confdefs.h >>conftest.$ac_ext
25347 cat >>conftest.$ac_ext <<_ACEOF
25348 /* end confdefs.h.  */
25349
25350 /* Override any GCC internal prototype to avoid an error.
25351    Use char because int might match the return type of a GCC
25352    builtin and then its argument prototype would still apply.  */
25353 #ifdef __cplusplus
25354 extern "C"
25355 #endif
25356 char ares_getnameinfo ();
25357 int
25358 main ()
25359 {
25360 return ares_getnameinfo ();
25361   ;
25362   return 0;
25363 }
25364 _ACEOF
25365 rm -f conftest.$ac_objext conftest$ac_exeext
25366 if { (ac_try="$ac_link"
25367 case "(($ac_try" in
25368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25369   *) ac_try_echo=$ac_try;;
25370 esac
25371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25372   (eval "$ac_link") 2>conftest.er1
25373   ac_status=$?
25374   grep -v '^ *+' conftest.er1 >conftest.err
25375   rm -f conftest.er1
25376   cat conftest.err >&5
25377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25378   (exit $ac_status); } && {
25379          test -z "$ac_c_werror_flag" ||
25380          test ! -s conftest.err
25381        } && test -s conftest$ac_exeext &&
25382        $as_test_x conftest$ac_exeext; then
25383   ac_cv_lib_cares_ares_getnameinfo=yes
25384 else
25385   echo "$as_me: failed program was:" >&5
25386 sed 's/^/| /' conftest.$ac_ext >&5
25387
25388         ac_cv_lib_cares_ares_getnameinfo=no
25389 fi
25390
25391 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25392       conftest$ac_exeext conftest.$ac_ext
25393 LIBS=$ac_check_lib_save_LIBS
25394 fi
25395 { echo "$as_me:$LINENO: result: $ac_cv_lib_cares_ares_getnameinfo" >&5
25396 echo "${ECHO_T}$ac_cv_lib_cares_ares_getnameinfo" >&6; }
25397 if test $ac_cv_lib_cares_ares_getnameinfo = yes; then
25398   ARES_LIBS="-lcares"
25399                     cat >>confdefs.h <<\_ACEOF
25400 #define HAVE_ARES 1
25401 _ACEOF
25402
25403 else
25404   :
25405 fi
25406
25407
25408
25409 if test $ac_cv_c_compiler_gnu = yes; then
25410     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
25411 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
25412 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
25413   echo $ECHO_N "(cached) $ECHO_C" >&6
25414 else
25415     ac_pattern="Autoconf.*'x'"
25416   cat >conftest.$ac_ext <<_ACEOF
25417 /* confdefs.h.  */
25418 _ACEOF
25419 cat confdefs.h >>conftest.$ac_ext
25420 cat >>conftest.$ac_ext <<_ACEOF
25421 /* end confdefs.h.  */
25422 #include <sgtty.h>
25423 Autoconf TIOCGETP
25424 _ACEOF
25425 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25426   $EGREP "$ac_pattern" >/dev/null 2>&1; then
25427   ac_cv_prog_gcc_traditional=yes
25428 else
25429   ac_cv_prog_gcc_traditional=no
25430 fi
25431 rm -f conftest*
25432
25433
25434   if test $ac_cv_prog_gcc_traditional = no; then
25435     cat >conftest.$ac_ext <<_ACEOF
25436 /* confdefs.h.  */
25437 _ACEOF
25438 cat confdefs.h >>conftest.$ac_ext
25439 cat >>conftest.$ac_ext <<_ACEOF
25440 /* end confdefs.h.  */
25441 #include <termio.h>
25442 Autoconf TCGETA
25443 _ACEOF
25444 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25445   $EGREP "$ac_pattern" >/dev/null 2>&1; then
25446   ac_cv_prog_gcc_traditional=yes
25447 fi
25448 rm -f conftest*
25449
25450   fi
25451 fi
25452 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
25453 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
25454   if test $ac_cv_prog_gcc_traditional = yes; then
25455     CC="$CC -traditional"
25456   fi
25457 fi
25458
25459
25460 for ac_func in vprintf
25461 do
25462 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25463 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25464 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25465 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25466   echo $ECHO_N "(cached) $ECHO_C" >&6
25467 else
25468   cat >conftest.$ac_ext <<_ACEOF
25469 /* confdefs.h.  */
25470 _ACEOF
25471 cat confdefs.h >>conftest.$ac_ext
25472 cat >>conftest.$ac_ext <<_ACEOF
25473 /* end confdefs.h.  */
25474 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25475    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25476 #define $ac_func innocuous_$ac_func
25477
25478 /* System header to define __stub macros and hopefully few prototypes,
25479     which can conflict with char $ac_func (); below.
25480     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25481     <limits.h> exists even on freestanding compilers.  */
25482
25483 #ifdef __STDC__
25484 # include <limits.h>
25485 #else
25486 # include <assert.h>
25487 #endif
25488
25489 #undef $ac_func
25490
25491 /* Override any GCC internal prototype to avoid an error.
25492    Use char because int might match the return type of a GCC
25493    builtin and then its argument prototype would still apply.  */
25494 #ifdef __cplusplus
25495 extern "C"
25496 #endif
25497 char $ac_func ();
25498 /* The GNU C library defines this for functions which it implements
25499     to always fail with ENOSYS.  Some functions are actually named
25500     something starting with __ and the normal name is an alias.  */
25501 #if defined __stub_$ac_func || defined __stub___$ac_func
25502 choke me
25503 #endif
25504
25505 int
25506 main ()
25507 {
25508 return $ac_func ();
25509   ;
25510   return 0;
25511 }
25512 _ACEOF
25513 rm -f conftest.$ac_objext conftest$ac_exeext
25514 if { (ac_try="$ac_link"
25515 case "(($ac_try" in
25516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25517   *) ac_try_echo=$ac_try;;
25518 esac
25519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25520   (eval "$ac_link") 2>conftest.er1
25521   ac_status=$?
25522   grep -v '^ *+' conftest.er1 >conftest.err
25523   rm -f conftest.er1
25524   cat conftest.err >&5
25525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25526   (exit $ac_status); } && {
25527          test -z "$ac_c_werror_flag" ||
25528          test ! -s conftest.err
25529        } && test -s conftest$ac_exeext &&
25530        $as_test_x conftest$ac_exeext; then
25531   eval "$as_ac_var=yes"
25532 else
25533   echo "$as_me: failed program was:" >&5
25534 sed 's/^/| /' conftest.$ac_ext >&5
25535
25536         eval "$as_ac_var=no"
25537 fi
25538
25539 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25540       conftest$ac_exeext conftest.$ac_ext
25541 fi
25542 ac_res=`eval echo '${'$as_ac_var'}'`
25543                { echo "$as_me:$LINENO: result: $ac_res" >&5
25544 echo "${ECHO_T}$ac_res" >&6; }
25545 if test `eval echo '${'$as_ac_var'}'` = yes; then
25546   cat >>confdefs.h <<_ACEOF
25547 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25548 _ACEOF
25549
25550 { echo "$as_me:$LINENO: checking for _doprnt" >&5
25551 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
25552 if test "${ac_cv_func__doprnt+set}" = set; then
25553   echo $ECHO_N "(cached) $ECHO_C" >&6
25554 else
25555   cat >conftest.$ac_ext <<_ACEOF
25556 /* confdefs.h.  */
25557 _ACEOF
25558 cat confdefs.h >>conftest.$ac_ext
25559 cat >>conftest.$ac_ext <<_ACEOF
25560 /* end confdefs.h.  */
25561 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
25562    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25563 #define _doprnt innocuous__doprnt
25564
25565 /* System header to define __stub macros and hopefully few prototypes,
25566     which can conflict with char _doprnt (); below.
25567     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25568     <limits.h> exists even on freestanding compilers.  */
25569
25570 #ifdef __STDC__
25571 # include <limits.h>
25572 #else
25573 # include <assert.h>
25574 #endif
25575
25576 #undef _doprnt
25577
25578 /* Override any GCC internal prototype to avoid an error.
25579    Use char because int might match the return type of a GCC
25580    builtin and then its argument prototype would still apply.  */
25581 #ifdef __cplusplus
25582 extern "C"
25583 #endif
25584 char _doprnt ();
25585 /* The GNU C library defines this for functions which it implements
25586     to always fail with ENOSYS.  Some functions are actually named
25587     something starting with __ and the normal name is an alias.  */
25588 #if defined __stub__doprnt || defined __stub____doprnt
25589 choke me
25590 #endif
25591
25592 int
25593 main ()
25594 {
25595 return _doprnt ();
25596   ;
25597   return 0;
25598 }
25599 _ACEOF
25600 rm -f conftest.$ac_objext conftest$ac_exeext
25601 if { (ac_try="$ac_link"
25602 case "(($ac_try" in
25603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25604   *) ac_try_echo=$ac_try;;
25605 esac
25606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25607   (eval "$ac_link") 2>conftest.er1
25608   ac_status=$?
25609   grep -v '^ *+' conftest.er1 >conftest.err
25610   rm -f conftest.er1
25611   cat conftest.err >&5
25612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25613   (exit $ac_status); } && {
25614          test -z "$ac_c_werror_flag" ||
25615          test ! -s conftest.err
25616        } && test -s conftest$ac_exeext &&
25617        $as_test_x conftest$ac_exeext; then
25618   ac_cv_func__doprnt=yes
25619 else
25620   echo "$as_me: failed program was:" >&5
25621 sed 's/^/| /' conftest.$ac_ext >&5
25622
25623         ac_cv_func__doprnt=no
25624 fi
25625
25626 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25627       conftest$ac_exeext conftest.$ac_ext
25628 fi
25629 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
25630 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
25631 if test $ac_cv_func__doprnt = yes; then
25632
25633 cat >>confdefs.h <<\_ACEOF
25634 #define HAVE_DOPRNT 1
25635 _ACEOF
25636
25637 fi
25638
25639 fi
25640 done
25641
25642
25643 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
25644 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; }
25645 if test "${ac_cv_func_getpgrp_void+set}" = set; then
25646   echo $ECHO_N "(cached) $ECHO_C" >&6
25647 else
25648   # Use it with a single arg.
25649 cat >conftest.$ac_ext <<_ACEOF
25650 /* confdefs.h.  */
25651 _ACEOF
25652 cat confdefs.h >>conftest.$ac_ext
25653 cat >>conftest.$ac_ext <<_ACEOF
25654 /* end confdefs.h.  */
25655 $ac_includes_default
25656 int
25657 main ()
25658 {
25659 getpgrp (0);
25660   ;
25661   return 0;
25662 }
25663 _ACEOF
25664 rm -f conftest.$ac_objext
25665 if { (ac_try="$ac_compile"
25666 case "(($ac_try" in
25667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25668   *) ac_try_echo=$ac_try;;
25669 esac
25670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25671   (eval "$ac_compile") 2>conftest.er1
25672   ac_status=$?
25673   grep -v '^ *+' conftest.er1 >conftest.err
25674   rm -f conftest.er1
25675   cat conftest.err >&5
25676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25677   (exit $ac_status); } && {
25678          test -z "$ac_c_werror_flag" ||
25679          test ! -s conftest.err
25680        } && test -s conftest.$ac_objext; then
25681   ac_cv_func_getpgrp_void=no
25682 else
25683   echo "$as_me: failed program was:" >&5
25684 sed 's/^/| /' conftest.$ac_ext >&5
25685
25686         ac_cv_func_getpgrp_void=yes
25687 fi
25688
25689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25690
25691 fi
25692 { echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
25693 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
25694 if test $ac_cv_func_getpgrp_void = yes; then
25695
25696 cat >>confdefs.h <<\_ACEOF
25697 #define GETPGRP_VOID 1
25698 _ACEOF
25699
25700 fi
25701
25702 { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
25703 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; }
25704 if test "${ac_cv_func_setpgrp_void+set}" = set; then
25705   echo $ECHO_N "(cached) $ECHO_C" >&6
25706 else
25707   if test "$cross_compiling" = yes; then
25708   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
25709 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
25710    { (exit 1); exit 1; }; }
25711 else
25712   cat >conftest.$ac_ext <<_ACEOF
25713 /* confdefs.h.  */
25714 _ACEOF
25715 cat confdefs.h >>conftest.$ac_ext
25716 cat >>conftest.$ac_ext <<_ACEOF
25717 /* end confdefs.h.  */
25718 $ac_includes_default
25719 int
25720 main ()
25721 {
25722 /* If this system has a BSD-style setpgrp which takes arguments,
25723   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
25724   exit successfully. */
25725   return setpgrp (1,1) != -1;
25726   ;
25727   return 0;
25728 }
25729 _ACEOF
25730 rm -f conftest$ac_exeext
25731 if { (ac_try="$ac_link"
25732 case "(($ac_try" in
25733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25734   *) ac_try_echo=$ac_try;;
25735 esac
25736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25737   (eval "$ac_link") 2>&5
25738   ac_status=$?
25739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25740   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25741   { (case "(($ac_try" in
25742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25743   *) ac_try_echo=$ac_try;;
25744 esac
25745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25746   (eval "$ac_try") 2>&5
25747   ac_status=$?
25748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25749   (exit $ac_status); }; }; then
25750   ac_cv_func_setpgrp_void=no
25751 else
25752   echo "$as_me: program exited with status $ac_status" >&5
25753 echo "$as_me: failed program was:" >&5
25754 sed 's/^/| /' conftest.$ac_ext >&5
25755
25756 ( exit $ac_status )
25757 ac_cv_func_setpgrp_void=yes
25758 fi
25759 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25760 fi
25761
25762
25763 fi
25764 { echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
25765 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; }
25766 if test $ac_cv_func_setpgrp_void = yes; then
25767
25768 cat >>confdefs.h <<\_ACEOF
25769 #define SETPGRP_VOID 1
25770 _ACEOF
25771
25772 fi
25773
25774
25775
25776
25777
25778
25779
25780
25781
25782 for ac_func in putenv strchr memcpy memmove waitpid getlogin strerror random
25783 do
25784 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25785 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25786 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25787 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25788   echo $ECHO_N "(cached) $ECHO_C" >&6
25789 else
25790   cat >conftest.$ac_ext <<_ACEOF
25791 /* confdefs.h.  */
25792 _ACEOF
25793 cat confdefs.h >>conftest.$ac_ext
25794 cat >>conftest.$ac_ext <<_ACEOF
25795 /* end confdefs.h.  */
25796 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25797    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25798 #define $ac_func innocuous_$ac_func
25799
25800 /* System header to define __stub macros and hopefully few prototypes,
25801     which can conflict with char $ac_func (); below.
25802     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25803     <limits.h> exists even on freestanding compilers.  */
25804
25805 #ifdef __STDC__
25806 # include <limits.h>
25807 #else
25808 # include <assert.h>
25809 #endif
25810
25811 #undef $ac_func
25812
25813 /* Override any GCC internal prototype to avoid an error.
25814    Use char because int might match the return type of a GCC
25815    builtin and then its argument prototype would still apply.  */
25816 #ifdef __cplusplus
25817 extern "C"
25818 #endif
25819 char $ac_func ();
25820 /* The GNU C library defines this for functions which it implements
25821     to always fail with ENOSYS.  Some functions are actually named
25822     something starting with __ and the normal name is an alias.  */
25823 #if defined __stub_$ac_func || defined __stub___$ac_func
25824 choke me
25825 #endif
25826
25827 int
25828 main ()
25829 {
25830 return $ac_func ();
25831   ;
25832   return 0;
25833 }
25834 _ACEOF
25835 rm -f conftest.$ac_objext conftest$ac_exeext
25836 if { (ac_try="$ac_link"
25837 case "(($ac_try" in
25838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25839   *) ac_try_echo=$ac_try;;
25840 esac
25841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25842   (eval "$ac_link") 2>conftest.er1
25843   ac_status=$?
25844   grep -v '^ *+' conftest.er1 >conftest.err
25845   rm -f conftest.er1
25846   cat conftest.err >&5
25847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25848   (exit $ac_status); } && {
25849          test -z "$ac_c_werror_flag" ||
25850          test ! -s conftest.err
25851        } && test -s conftest$ac_exeext &&
25852        $as_test_x conftest$ac_exeext; then
25853   eval "$as_ac_var=yes"
25854 else
25855   echo "$as_me: failed program was:" >&5
25856 sed 's/^/| /' conftest.$ac_ext >&5
25857
25858         eval "$as_ac_var=no"
25859 fi
25860
25861 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25862       conftest$ac_exeext conftest.$ac_ext
25863 fi
25864 ac_res=`eval echo '${'$as_ac_var'}'`
25865                { echo "$as_me:$LINENO: result: $ac_res" >&5
25866 echo "${ECHO_T}$ac_res" >&6; }
25867 if test `eval echo '${'$as_ac_var'}'` = yes; then
25868   cat >>confdefs.h <<_ACEOF
25869 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25870 _ACEOF
25871
25872 fi
25873 done
25874
25875
25876
25877
25878
25879
25880
25881 for ac_func in lrand48 gethostid getsid getpgid krb_get_err_text krb_log
25882 do
25883 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25884 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25885 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25886 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25887   echo $ECHO_N "(cached) $ECHO_C" >&6
25888 else
25889   cat >conftest.$ac_ext <<_ACEOF
25890 /* confdefs.h.  */
25891 _ACEOF
25892 cat confdefs.h >>conftest.$ac_ext
25893 cat >>conftest.$ac_ext <<_ACEOF
25894 /* end confdefs.h.  */
25895 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25896    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25897 #define $ac_func innocuous_$ac_func
25898
25899 /* System header to define __stub macros and hopefully few prototypes,
25900     which can conflict with char $ac_func (); below.
25901     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25902     <limits.h> exists even on freestanding compilers.  */
25903
25904 #ifdef __STDC__
25905 # include <limits.h>
25906 #else
25907 # include <assert.h>
25908 #endif
25909
25910 #undef $ac_func
25911
25912 /* Override any GCC internal prototype to avoid an error.
25913    Use char because int might match the return type of a GCC
25914    builtin and then its argument prototype would still apply.  */
25915 #ifdef __cplusplus
25916 extern "C"
25917 #endif
25918 char $ac_func ();
25919 /* The GNU C library defines this for functions which it implements
25920     to always fail with ENOSYS.  Some functions are actually named
25921     something starting with __ and the normal name is an alias.  */
25922 #if defined __stub_$ac_func || defined __stub___$ac_func
25923 choke me
25924 #endif
25925
25926 int
25927 main ()
25928 {
25929 return $ac_func ();
25930   ;
25931   return 0;
25932 }
25933 _ACEOF
25934 rm -f conftest.$ac_objext conftest$ac_exeext
25935 if { (ac_try="$ac_link"
25936 case "(($ac_try" in
25937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25938   *) ac_try_echo=$ac_try;;
25939 esac
25940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25941   (eval "$ac_link") 2>conftest.er1
25942   ac_status=$?
25943   grep -v '^ *+' conftest.er1 >conftest.err
25944   rm -f conftest.er1
25945   cat conftest.err >&5
25946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25947   (exit $ac_status); } && {
25948          test -z "$ac_c_werror_flag" ||
25949          test ! -s conftest.err
25950        } && test -s conftest$ac_exeext &&
25951        $as_test_x conftest$ac_exeext; then
25952   eval "$as_ac_var=yes"
25953 else
25954   echo "$as_me: failed program was:" >&5
25955 sed 's/^/| /' conftest.$ac_ext >&5
25956
25957         eval "$as_ac_var=no"
25958 fi
25959
25960 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25961       conftest$ac_exeext conftest.$ac_ext
25962 fi
25963 ac_res=`eval echo '${'$as_ac_var'}'`
25964                { echo "$as_me:$LINENO: result: $ac_res" >&5
25965 echo "${ECHO_T}$ac_res" >&6; }
25966 if test `eval echo '${'$as_ac_var'}'` = yes; then
25967   cat >>confdefs.h <<_ACEOF
25968 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25969 _ACEOF
25970
25971 fi
25972 done
25973
25974
25975
25976
25977 for ac_func in krb5_free_data krb5_c_make_checksum krb5_cc_set_default_name
25978 do
25979 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25980 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25981 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25982 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25983   echo $ECHO_N "(cached) $ECHO_C" >&6
25984 else
25985   cat >conftest.$ac_ext <<_ACEOF
25986 /* confdefs.h.  */
25987 _ACEOF
25988 cat confdefs.h >>conftest.$ac_ext
25989 cat >>conftest.$ac_ext <<_ACEOF
25990 /* end confdefs.h.  */
25991 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25992    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25993 #define $ac_func innocuous_$ac_func
25994
25995 /* System header to define __stub macros and hopefully few prototypes,
25996     which can conflict with char $ac_func (); below.
25997     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25998     <limits.h> exists even on freestanding compilers.  */
25999
26000 #ifdef __STDC__
26001 # include <limits.h>
26002 #else
26003 # include <assert.h>
26004 #endif
26005
26006 #undef $ac_func
26007
26008 /* Override any GCC internal prototype to avoid an error.
26009    Use char because int might match the return type of a GCC
26010    builtin and then its argument prototype would still apply.  */
26011 #ifdef __cplusplus
26012 extern "C"
26013 #endif
26014 char $ac_func ();
26015 /* The GNU C library defines this for functions which it implements
26016     to always fail with ENOSYS.  Some functions are actually named
26017     something starting with __ and the normal name is an alias.  */
26018 #if defined __stub_$ac_func || defined __stub___$ac_func
26019 choke me
26020 #endif
26021
26022 int
26023 main ()
26024 {
26025 return $ac_func ();
26026   ;
26027   return 0;
26028 }
26029 _ACEOF
26030 rm -f conftest.$ac_objext conftest$ac_exeext
26031 if { (ac_try="$ac_link"
26032 case "(($ac_try" in
26033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26034   *) ac_try_echo=$ac_try;;
26035 esac
26036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26037   (eval "$ac_link") 2>conftest.er1
26038   ac_status=$?
26039   grep -v '^ *+' conftest.er1 >conftest.err
26040   rm -f conftest.er1
26041   cat conftest.err >&5
26042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26043   (exit $ac_status); } && {
26044          test -z "$ac_c_werror_flag" ||
26045          test ! -s conftest.err
26046        } && test -s conftest$ac_exeext &&
26047        $as_test_x conftest$ac_exeext; then
26048   eval "$as_ac_var=yes"
26049 else
26050   echo "$as_me: failed program was:" >&5
26051 sed 's/^/| /' conftest.$ac_ext >&5
26052
26053         eval "$as_ac_var=no"
26054 fi
26055
26056 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26057       conftest$ac_exeext conftest.$ac_ext
26058 fi
26059 ac_res=`eval echo '${'$as_ac_var'}'`
26060                { echo "$as_me:$LINENO: result: $ac_res" >&5
26061 echo "${ECHO_T}$ac_res" >&6; }
26062 if test `eval echo '${'$as_ac_var'}'` = yes; then
26063   cat >>confdefs.h <<_ACEOF
26064 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26065 _ACEOF
26066
26067 fi
26068 done
26069
26070
26071
26072 for ac_func in krb5_crypto_init krb5_c_decrypt
26073 do
26074 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26075 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26076 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26077 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26078   echo $ECHO_N "(cached) $ECHO_C" >&6
26079 else
26080   cat >conftest.$ac_ext <<_ACEOF
26081 /* confdefs.h.  */
26082 _ACEOF
26083 cat confdefs.h >>conftest.$ac_ext
26084 cat >>conftest.$ac_ext <<_ACEOF
26085 /* end confdefs.h.  */
26086 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26087    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26088 #define $ac_func innocuous_$ac_func
26089
26090 /* System header to define __stub macros and hopefully few prototypes,
26091     which can conflict with char $ac_func (); below.
26092     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26093     <limits.h> exists even on freestanding compilers.  */
26094
26095 #ifdef __STDC__
26096 # include <limits.h>
26097 #else
26098 # include <assert.h>
26099 #endif
26100
26101 #undef $ac_func
26102
26103 /* Override any GCC internal prototype to avoid an error.
26104    Use char because int might match the return type of a GCC
26105    builtin and then its argument prototype would still apply.  */
26106 #ifdef __cplusplus
26107 extern "C"
26108 #endif
26109 char $ac_func ();
26110 /* The GNU C library defines this for functions which it implements
26111     to always fail with ENOSYS.  Some functions are actually named
26112     something starting with __ and the normal name is an alias.  */
26113 #if defined __stub_$ac_func || defined __stub___$ac_func
26114 choke me
26115 #endif
26116
26117 int
26118 main ()
26119 {
26120 return $ac_func ();
26121   ;
26122   return 0;
26123 }
26124 _ACEOF
26125 rm -f conftest.$ac_objext conftest$ac_exeext
26126 if { (ac_try="$ac_link"
26127 case "(($ac_try" in
26128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26129   *) ac_try_echo=$ac_try;;
26130 esac
26131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26132   (eval "$ac_link") 2>conftest.er1
26133   ac_status=$?
26134   grep -v '^ *+' conftest.er1 >conftest.err
26135   rm -f conftest.er1
26136   cat conftest.err >&5
26137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26138   (exit $ac_status); } && {
26139          test -z "$ac_c_werror_flag" ||
26140          test ! -s conftest.err
26141        } && test -s conftest$ac_exeext &&
26142        $as_test_x conftest$ac_exeext; then
26143   eval "$as_ac_var=yes"
26144 else
26145   echo "$as_me: failed program was:" >&5
26146 sed 's/^/| /' conftest.$ac_ext >&5
26147
26148         eval "$as_ac_var=no"
26149 fi
26150
26151 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26152       conftest$ac_exeext conftest.$ac_ext
26153 fi
26154 ac_res=`eval echo '${'$as_ac_var'}'`
26155                { echo "$as_me:$LINENO: result: $ac_res" >&5
26156 echo "${ECHO_T}$ac_res" >&6; }
26157 if test `eval echo '${'$as_ac_var'}'` = yes; then
26158   cat >>confdefs.h <<_ACEOF
26159 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26160 _ACEOF
26161
26162 fi
26163 done
26164
26165
26166 { echo "$as_me:$LINENO: checking krb5_auth_con_getauthenticator out argument type" >&5
26167 echo $ECHO_N "checking krb5_auth_con_getauthenticator out argument type... $ECHO_C" >&6; }
26168 if test "${ac_cv_krb5_auth_con_getauthenticator_takes_double_pointer+set}" = set; then
26169   echo $ECHO_N "(cached) $ECHO_C" >&6
26170 else
26171
26172 local_save_CPPFLAGS="$CPPFLAGS"
26173 CPPFLAGS="${CPPFLAGS} ${KRB5_INC_FLAGS}"
26174 cat >conftest.$ac_ext <<_ACEOF
26175 /* confdefs.h.  */
26176 _ACEOF
26177 cat confdefs.h >>conftest.$ac_ext
26178 cat >>conftest.$ac_ext <<_ACEOF
26179 /* end confdefs.h.  */
26180 #include <krb5.h>
26181 krb5_error_code
26182 krb5_auth_con_getauthenticator(krb5_context context,
26183                            krb5_auth_context auth_context,
26184                            krb5_authenticator *authenticator);
26185 int
26186 main ()
26187 {
26188 krb5_error_code foo = krb5_auth_con_getauthenticator(0, 0, 0);
26189   ;
26190   return 0;
26191 }
26192 _ACEOF
26193 rm -f conftest.$ac_objext
26194 if { (ac_try="$ac_compile"
26195 case "(($ac_try" in
26196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26197   *) ac_try_echo=$ac_try;;
26198 esac
26199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26200   (eval "$ac_compile") 2>conftest.er1
26201   ac_status=$?
26202   grep -v '^ *+' conftest.er1 >conftest.err
26203   rm -f conftest.er1
26204   cat conftest.err >&5
26205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26206   (exit $ac_status); } && {
26207          test -z "$ac_c_werror_flag" ||
26208          test ! -s conftest.err
26209        } && test -s conftest.$ac_objext; then
26210   ac_cv_krb5_auth_con_getauthenticator_takes_double_pointer=no
26211 else
26212   echo "$as_me: failed program was:" >&5
26213 sed 's/^/| /' conftest.$ac_ext >&5
26214
26215         cat >conftest.$ac_ext <<_ACEOF
26216 /* confdefs.h.  */
26217 _ACEOF
26218 cat confdefs.h >>conftest.$ac_ext
26219 cat >>conftest.$ac_ext <<_ACEOF
26220 /* end confdefs.h.  */
26221 #include <krb5.h>
26222 krb5_error_code
26223 krb5_auth_con_getauthenticator(krb5_context context,
26224                            krb5_auth_context auth_context,
26225                            krb5_authenticator **authenticator);
26226 int
26227 main ()
26228 {
26229 krb5_error_code foo = krb5_auth_con_getauthenticator(0, 0, 0);
26230   ;
26231   return 0;
26232 }
26233 _ACEOF
26234 rm -f conftest.$ac_objext
26235 if { (ac_try="$ac_compile"
26236 case "(($ac_try" in
26237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26238   *) ac_try_echo=$ac_try;;
26239 esac
26240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26241   (eval "$ac_compile") 2>conftest.er1
26242   ac_status=$?
26243   grep -v '^ *+' conftest.er1 >conftest.err
26244   rm -f conftest.er1
26245   cat conftest.err >&5
26246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26247   (exit $ac_status); } && {
26248          test -z "$ac_c_werror_flag" ||
26249          test ! -s conftest.err
26250        } && test -s conftest.$ac_objext; then
26251   ac_cv_krb5_auth_con_getauthenticator_takes_double_pointer=yes
26252 else
26253   echo "$as_me: failed program was:" >&5
26254 sed 's/^/| /' conftest.$ac_ext >&5
26255
26256         { { echo "$as_me:$LINENO: error: Cannot identify krb5_auth_con_getauthenticator function signature" >&5
26257 echo "$as_me: error: Cannot identify krb5_auth_con_getauthenticator function signature" >&2;}
26258    { (exit 1); exit 1; }; }
26259
26260 fi
26261
26262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26263 fi
26264
26265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26266 CPPFLAGS="${local_save_CPPFLAGS}"
26267
26268 fi
26269
26270 krb5_authent_type='krb5_authenticator *'
26271 if test "$ac_cv_krb5_auth_con_getauthenticator_takes_double_pointer" = yes; then
26272         cat >>confdefs.h <<\_ACEOF
26273 #define KRB5_AUTH_CON_GETAUTHENTICATOR_TAKES_DOUBLE_POINTER 1
26274 _ACEOF
26275         krb5_authent_type='krb5_authenticator **'
26276 fi
26277 { echo "$as_me:$LINENO: result: $krb5_authent_type" >&5
26278 echo "${ECHO_T}$krb5_authent_type" >&6; }
26279
26280 { echo "$as_me:$LINENO: checking for enc_part2 in struct krb5_ticket" >&5
26281 echo $ECHO_N "checking for enc_part2 in struct krb5_ticket... $ECHO_C" >&6; }
26282 if test "${ac_cv_have_krb5_ticket_enc_part2+set}" = set; then
26283   echo $ECHO_N "(cached) $ECHO_C" >&6
26284 else
26285
26286 local_save_CPPFLAGS="$CPPFLAGS"
26287 CPPFLAGS="${CPPFLAGS} ${KRB5_INC_FLAGS}"
26288 cat >conftest.$ac_ext <<_ACEOF
26289 /* confdefs.h.  */
26290 _ACEOF
26291 cat confdefs.h >>conftest.$ac_ext
26292 cat >>conftest.$ac_ext <<_ACEOF
26293 /* end confdefs.h.  */
26294 #include <krb5.h>
26295 int
26296 main ()
26297 {
26298 krb5_ticket _tkt; _tkt.enc_part2;
26299   ;
26300   return 0;
26301 }
26302 _ACEOF
26303 rm -f conftest.$ac_objext
26304 if { (ac_try="$ac_compile"
26305 case "(($ac_try" in
26306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26307   *) ac_try_echo=$ac_try;;
26308 esac
26309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26310   (eval "$ac_compile") 2>conftest.er1
26311   ac_status=$?
26312   grep -v '^ *+' conftest.er1 >conftest.err
26313   rm -f conftest.er1
26314   cat conftest.err >&5
26315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26316   (exit $ac_status); } && {
26317          test -z "$ac_c_werror_flag" ||
26318          test ! -s conftest.err
26319        } && test -s conftest.$ac_objext; then
26320   ac_cv_have_krb5_ticket_enc_part2=yes
26321 else
26322   echo "$as_me: failed program was:" >&5
26323 sed 's/^/| /' conftest.$ac_ext >&5
26324
26325         ac_cv_have_krb5_ticket_enc_part2=no
26326 fi
26327
26328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26329
26330 fi
26331
26332 CPPFLAGS="${local_save_CPPFLAGS}"
26333 if test "$ac_cv_have_krb5_ticket_enc_part2" = yes; then
26334         cat >>confdefs.h <<\_ACEOF
26335 #define HAVE_KRB5_TICKET_ENC_PART2 1
26336 _ACEOF
26337 fi
26338 { echo "$as_me:$LINENO: result: $ac_cv_have_krb5_ticket_enc_part2" >&5
26339 echo "${ECHO_T}$ac_cv_have_krb5_ticket_enc_part2" >&6; }
26340
26341 { echo "$as_me:$LINENO: checking for enctype in struct krb5_keyblock" >&5
26342 echo $ECHO_N "checking for enctype in struct krb5_keyblock... $ECHO_C" >&6; }
26343 if test "${ac_cv_have_krb5_creds_keyblock_enctype+set}" = set; then
26344   echo $ECHO_N "(cached) $ECHO_C" >&6
26345 else
26346
26347 local_save_CPPFLAGS="$CPPFLAGS"
26348 CPPFLAGS="${CPPFLAGS} ${KRB5_INC_FLAGS}"
26349 cat >conftest.$ac_ext <<_ACEOF
26350 /* confdefs.h.  */
26351 _ACEOF
26352 cat confdefs.h >>conftest.$ac_ext
26353 cat >>conftest.$ac_ext <<_ACEOF
26354 /* end confdefs.h.  */
26355 #include <krb5.h>
26356 int
26357 main ()
26358 {
26359 krb5_creds _creds; _creds.keyblock.enctype;
26360   ;
26361   return 0;
26362 }
26363 _ACEOF
26364 rm -f conftest.$ac_objext
26365 if { (ac_try="$ac_compile"
26366 case "(($ac_try" in
26367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26368   *) ac_try_echo=$ac_try;;
26369 esac
26370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26371   (eval "$ac_compile") 2>conftest.er1
26372   ac_status=$?
26373   grep -v '^ *+' conftest.er1 >conftest.err
26374   rm -f conftest.er1
26375   cat conftest.err >&5
26376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26377   (exit $ac_status); } && {
26378          test -z "$ac_c_werror_flag" ||
26379          test ! -s conftest.err
26380        } && test -s conftest.$ac_objext; then
26381   ac_cv_have_krb5_creds_keyblock_enctype=yes
26382 else
26383   echo "$as_me: failed program was:" >&5
26384 sed 's/^/| /' conftest.$ac_ext >&5
26385
26386         ac_cv_have_krb5_creds_keyblock_enctype=no
26387 fi
26388
26389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26390
26391 fi
26392
26393 CPPFLAGS="${local_save_CPPFLAGS}"
26394 if test "$ac_cv_have_krb5_creds_keyblock_enctype" = yes; then
26395         cat >>confdefs.h <<\_ACEOF
26396 #define HAVE_KRB5_CREDS_KEYBLOCK_ENCTYPE 1
26397 _ACEOF
26398 fi
26399 { echo "$as_me:$LINENO: result: $ac_cv_have_krb5_creds_keyblock_enctype" >&5
26400 echo "${ECHO_T}$ac_cv_have_krb5_creds_keyblock_enctype" >&6; }
26401
26402 # Check whether --enable-cmu-zwgcplus was given.
26403 if test "${enable_cmu_zwgcplus+set}" = set; then
26404   enableval=$enable_cmu_zwgcplus;
26405 if test "$enableval" = "yes"; then
26406         cat >>confdefs.h <<\_ACEOF
26407 #define CMU_ZWGCPLUS 1
26408 _ACEOF
26409
26410 fi
26411
26412 fi
26413
26414
26415 # Check whether --enable-cmu-zctl-punt was given.
26416 if test "${enable_cmu_zctl_punt+set}" = set; then
26417   enableval=$enable_cmu_zctl_punt;
26418 if test "$enableval" = "yes"; then
26419         cat >>confdefs.h <<\_ACEOF
26420 #define CMU_ZCTL_PUNT 1
26421 _ACEOF
26422
26423 fi
26424
26425 fi
26426
26427
26428 # Check whether --enable-cmu-hm-flush-restrict was given.
26429 if test "${enable_cmu_hm_flush_restrict+set}" = set; then
26430   enableval=$enable_cmu_hm_flush_restrict;
26431 if test "$enableval" = "yes"; then
26432         cat >>confdefs.h <<\_ACEOF
26433 #define HM_FLUSH_RESTRICT 1
26434 _ACEOF
26435
26436 fi
26437
26438 fi
26439
26440
26441 # Check whether --enable-cmu-opstaff-locate-self was given.
26442 if test "${enable_cmu_opstaff_locate_self+set}" = set; then
26443   enableval=$enable_cmu_opstaff_locate_self;
26444 if test "$enableval" = "yes"; then
26445         cat >>confdefs.h <<\_ACEOF
26446 #define OPSTAFF_LOCATE_SELF 1
26447 _ACEOF
26448
26449 fi
26450
26451 fi
26452
26453
26454 ac_config_headers="$ac_config_headers h/config.h"
26455
26456 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"
26457
26458 cat >confcache <<\_ACEOF
26459 # This file is a shell script that caches the results of configure
26460 # tests run on this system so they can be shared between configure
26461 # scripts and configure runs, see configure's option --config-cache.
26462 # It is not useful on other systems.  If it contains results you don't
26463 # want to keep, you may remove or edit it.
26464 #
26465 # config.status only pays attention to the cache file if you give it
26466 # the --recheck option to rerun configure.
26467 #
26468 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26469 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26470 # following values.
26471
26472 _ACEOF
26473
26474 # The following way of writing the cache mishandles newlines in values,
26475 # but we know of no workaround that is simple, portable, and efficient.
26476 # So, we kill variables containing newlines.
26477 # Ultrix sh set writes to stderr and can't be redirected directly,
26478 # and sets the high bit in the cache file unless we assign to the vars.
26479 (
26480   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26481     eval ac_val=\$$ac_var
26482     case $ac_val in #(
26483     *${as_nl}*)
26484       case $ac_var in #(
26485       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
26486 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
26487       esac
26488       case $ac_var in #(
26489       _ | IFS | as_nl) ;; #(
26490       *) $as_unset $ac_var ;;
26491       esac ;;
26492     esac
26493   done
26494
26495   (set) 2>&1 |
26496     case $as_nl`(ac_space=' '; set) 2>&1` in #(
26497     *${as_nl}ac_space=\ *)
26498       # `set' does not quote correctly, so add quotes (double-quote
26499       # substitution turns \\\\ into \\, and sed turns \\ into \).
26500       sed -n \
26501         "s/'/'\\\\''/g;
26502           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26503       ;; #(
26504     *)
26505       # `set' quotes correctly as required by POSIX, so do not add quotes.
26506       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26507       ;;
26508     esac |
26509     sort
26510 ) |
26511   sed '
26512      /^ac_cv_env_/b end
26513      t clear
26514      :clear
26515      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26516      t end
26517      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26518      :end' >>confcache
26519 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26520   if test -w "$cache_file"; then
26521     test "x$cache_file" != "x/dev/null" &&
26522       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
26523 echo "$as_me: updating cache $cache_file" >&6;}
26524     cat confcache >$cache_file
26525   else
26526     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
26527 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26528   fi
26529 fi
26530 rm -f confcache
26531
26532 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26533 # Let make expand exec_prefix.
26534 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26535
26536 DEFS=-DHAVE_CONFIG_H
26537
26538 ac_libobjs=
26539 ac_ltlibobjs=
26540 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26541   # 1. Remove the extension, and $U if already installed.
26542   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26543   ac_i=`echo "$ac_i" | sed "$ac_script"`
26544   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
26545   #    will be set to the directory where LIBOBJS objects are built.
26546   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26547   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
26548 done
26549 LIBOBJS=$ac_libobjs
26550
26551 LTLIBOBJS=$ac_ltlibobjs
26552
26553
26554
26555 : ${CONFIG_STATUS=./config.status}
26556 ac_clean_files_save=$ac_clean_files
26557 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26558 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26559 echo "$as_me: creating $CONFIG_STATUS" >&6;}
26560 cat >$CONFIG_STATUS <<_ACEOF
26561 #! $SHELL
26562 # Generated by $as_me.
26563 # Run this file to recreate the current configuration.
26564 # Compiler output produced by configure, useful for debugging
26565 # configure, is in config.log if it exists.
26566
26567 debug=false
26568 ac_cs_recheck=false
26569 ac_cs_silent=false
26570 SHELL=\${CONFIG_SHELL-$SHELL}
26571 _ACEOF
26572
26573 cat >>$CONFIG_STATUS <<\_ACEOF
26574 ## --------------------- ##
26575 ## M4sh Initialization.  ##
26576 ## --------------------- ##
26577
26578 # Be more Bourne compatible
26579 DUALCASE=1; export DUALCASE # for MKS sh
26580 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26581   emulate sh
26582   NULLCMD=:
26583   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26584   # is contrary to our usage.  Disable this feature.
26585   alias -g '${1+"$@"}'='"$@"'
26586   setopt NO_GLOB_SUBST
26587 else
26588   case `(set -o) 2>/dev/null` in
26589   *posix*) set -o posix ;;
26590 esac
26591
26592 fi
26593
26594
26595
26596
26597 # PATH needs CR
26598 # Avoid depending upon Character Ranges.
26599 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26600 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26601 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26602 as_cr_digits='0123456789'
26603 as_cr_alnum=$as_cr_Letters$as_cr_digits
26604
26605 # The user is always right.
26606 if test "${PATH_SEPARATOR+set}" != set; then
26607   echo "#! /bin/sh" >conf$$.sh
26608   echo  "exit 0"   >>conf$$.sh
26609   chmod +x conf$$.sh
26610   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
26611     PATH_SEPARATOR=';'
26612   else
26613     PATH_SEPARATOR=:
26614   fi
26615   rm -f conf$$.sh
26616 fi
26617
26618 # Support unset when possible.
26619 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26620   as_unset=unset
26621 else
26622   as_unset=false
26623 fi
26624
26625
26626 # IFS
26627 # We need space, tab and new line, in precisely that order.  Quoting is
26628 # there to prevent editors from complaining about space-tab.
26629 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26630 # splitting by setting IFS to empty value.)
26631 as_nl='
26632 '
26633 IFS=" ""        $as_nl"
26634
26635 # Find who we are.  Look in the path if we contain no directory separator.
26636 case $0 in
26637   *[\\/]* ) as_myself=$0 ;;
26638   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26639 for as_dir in $PATH
26640 do
26641   IFS=$as_save_IFS
26642   test -z "$as_dir" && as_dir=.
26643   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26644 done
26645 IFS=$as_save_IFS
26646
26647      ;;
26648 esac
26649 # We did not find ourselves, most probably we were run as `sh COMMAND'
26650 # in which case we are not to be found in the path.
26651 if test "x$as_myself" = x; then
26652   as_myself=$0
26653 fi
26654 if test ! -f "$as_myself"; then
26655   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26656   { (exit 1); exit 1; }
26657 fi
26658
26659 # Work around bugs in pre-3.0 UWIN ksh.
26660 for as_var in ENV MAIL MAILPATH
26661 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26662 done
26663 PS1='$ '
26664 PS2='> '
26665 PS4='+ '
26666
26667 # NLS nuisances.
26668 for as_var in \
26669   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
26670   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
26671   LC_TELEPHONE LC_TIME
26672 do
26673   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
26674     eval $as_var=C; export $as_var
26675   else
26676     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26677   fi
26678 done
26679
26680 # Required to use basename.
26681 if expr a : '\(a\)' >/dev/null 2>&1 &&
26682    test "X`expr 00001 : '.*\(...\)'`" = X001; then
26683   as_expr=expr
26684 else
26685   as_expr=false
26686 fi
26687
26688 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26689   as_basename=basename
26690 else
26691   as_basename=false
26692 fi
26693
26694
26695 # Name of the executable.
26696 as_me=`$as_basename -- "$0" ||
26697 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26698          X"$0" : 'X\(//\)$' \| \
26699          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26700 echo X/"$0" |
26701     sed '/^.*\/\([^/][^/]*\)\/*$/{
26702             s//\1/
26703             q
26704           }
26705           /^X\/\(\/\/\)$/{
26706             s//\1/
26707             q
26708           }
26709           /^X\/\(\/\).*/{
26710             s//\1/
26711             q
26712           }
26713           s/.*/./; q'`
26714
26715 # CDPATH.
26716 $as_unset CDPATH
26717
26718
26719
26720   as_lineno_1=$LINENO
26721   as_lineno_2=$LINENO
26722   test "x$as_lineno_1" != "x$as_lineno_2" &&
26723   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
26724
26725   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26726   # uniformly replaced by the line number.  The first 'sed' inserts a
26727   # line-number line after each line using $LINENO; the second 'sed'
26728   # does the real work.  The second script uses 'N' to pair each
26729   # line-number line with the line containing $LINENO, and appends
26730   # trailing '-' during substitution so that $LINENO is not a special
26731   # case at line end.
26732   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26733   # scripts with optimization help from Paolo Bonzini.  Blame Lee
26734   # E. McMahon (1931-1989) for sed's syntax.  :-)
26735   sed -n '
26736     p
26737     /[$]LINENO/=
26738   ' <$as_myself |
26739     sed '
26740       s/[$]LINENO.*/&-/
26741       t lineno
26742       b
26743       :lineno
26744       N
26745       :loop
26746       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
26747       t loop
26748       s/-\n.*//
26749     ' >$as_me.lineno &&
26750   chmod +x "$as_me.lineno" ||
26751     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
26752    { (exit 1); exit 1; }; }
26753
26754   # Don't try to exec as it changes $[0], causing all sort of problems
26755   # (the dirname of $[0] is not the place where we might find the
26756   # original and so on.  Autoconf is especially sensitive to this).
26757   . "./$as_me.lineno"
26758   # Exit status is that of the last command.
26759   exit
26760 }
26761
26762
26763 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26764   as_dirname=dirname
26765 else
26766   as_dirname=false
26767 fi
26768
26769 ECHO_C= ECHO_N= ECHO_T=
26770 case `echo -n x` in
26771 -n*)
26772   case `echo 'x\c'` in
26773   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
26774   *)   ECHO_C='\c';;
26775   esac;;
26776 *)
26777   ECHO_N='-n';;
26778 esac
26779
26780 if expr a : '\(a\)' >/dev/null 2>&1 &&
26781    test "X`expr 00001 : '.*\(...\)'`" = X001; then
26782   as_expr=expr
26783 else
26784   as_expr=false
26785 fi
26786
26787 rm -f conf$$ conf$$.exe conf$$.file
26788 if test -d conf$$.dir; then
26789   rm -f conf$$.dir/conf$$.file
26790 else
26791   rm -f conf$$.dir
26792   mkdir conf$$.dir
26793 fi
26794 echo >conf$$.file
26795 if ln -s conf$$.file conf$$ 2>/dev/null; then
26796   as_ln_s='ln -s'
26797   # ... but there are two gotchas:
26798   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26799   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26800   # In both cases, we have to default to `cp -p'.
26801   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26802     as_ln_s='cp -p'
26803 elif ln conf$$.file conf$$ 2>/dev/null; then
26804   as_ln_s=ln
26805 else
26806   as_ln_s='cp -p'
26807 fi
26808 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26809 rmdir conf$$.dir 2>/dev/null
26810
26811 if mkdir -p . 2>/dev/null; then
26812   as_mkdir_p=:
26813 else
26814   test -d ./-p && rmdir ./-p
26815   as_mkdir_p=false
26816 fi
26817
26818 if test -x / >/dev/null 2>&1; then
26819   as_test_x='test -x'
26820 else
26821   if ls -dL / >/dev/null 2>&1; then
26822     as_ls_L_option=L
26823   else
26824     as_ls_L_option=
26825   fi
26826   as_test_x='
26827     eval sh -c '\''
26828       if test -d "$1"; then
26829         test -d "$1/.";
26830       else
26831         case $1 in
26832         -*)set "./$1";;
26833         esac;
26834         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
26835         ???[sx]*):;;*)false;;esac;fi
26836     '\'' sh
26837   '
26838 fi
26839 as_executable_p=$as_test_x
26840
26841 # Sed expression to map a string onto a valid CPP name.
26842 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26843
26844 # Sed expression to map a string onto a valid variable name.
26845 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26846
26847
26848 exec 6>&1
26849
26850 # Save the log message, to keep $[0] and so on meaningful, and to
26851 # report actual input values of CONFIG_FILES etc. instead of their
26852 # values after options handling.
26853 ac_log="
26854 This file was extended by $as_me, which was
26855 generated by GNU Autoconf 2.61.  Invocation command line was
26856
26857   CONFIG_FILES    = $CONFIG_FILES
26858   CONFIG_HEADERS  = $CONFIG_HEADERS
26859   CONFIG_LINKS    = $CONFIG_LINKS
26860   CONFIG_COMMANDS = $CONFIG_COMMANDS
26861   $ $0 $@
26862
26863 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26864 "
26865
26866 _ACEOF
26867
26868 cat >>$CONFIG_STATUS <<_ACEOF
26869 # Files that config.status was made for.
26870 config_files="$ac_config_files"
26871 config_headers="$ac_config_headers"
26872
26873 _ACEOF
26874
26875 cat >>$CONFIG_STATUS <<\_ACEOF
26876 ac_cs_usage="\
26877 \`$as_me' instantiates files from templates according to the
26878 current configuration.
26879
26880 Usage: $0 [OPTIONS] [FILE]...
26881
26882   -h, --help       print this help, then exit
26883   -V, --version    print version number and configuration settings, then exit
26884   -q, --quiet      do not print progress messages
26885   -d, --debug      don't remove temporary files
26886       --recheck    update $as_me by reconfiguring in the same conditions
26887   --file=FILE[:TEMPLATE]
26888                    instantiate the configuration file FILE
26889   --header=FILE[:TEMPLATE]
26890                    instantiate the configuration header FILE
26891
26892 Configuration files:
26893 $config_files
26894
26895 Configuration headers:
26896 $config_headers
26897
26898 Report bugs to <bug-autoconf@gnu.org>."
26899
26900 _ACEOF
26901 cat >>$CONFIG_STATUS <<_ACEOF
26902 ac_cs_version="\\
26903 config.status
26904 configured by $0, generated by GNU Autoconf 2.61,
26905   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26906
26907 Copyright (C) 2006 Free Software Foundation, Inc.
26908 This config.status script is free software; the Free Software Foundation
26909 gives unlimited permission to copy, distribute and modify it."
26910
26911 ac_pwd='$ac_pwd'
26912 srcdir='$srcdir'
26913 INSTALL='$INSTALL'
26914 _ACEOF
26915
26916 cat >>$CONFIG_STATUS <<\_ACEOF
26917 # If no file are specified by the user, then we need to provide default
26918 # value.  By we need to know if files were specified by the user.
26919 ac_need_defaults=:
26920 while test $# != 0
26921 do
26922   case $1 in
26923   --*=*)
26924     ac_option=`expr "X$1" : 'X\([^=]*\)='`
26925     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26926     ac_shift=:
26927     ;;
26928   *)
26929     ac_option=$1
26930     ac_optarg=$2
26931     ac_shift=shift
26932     ;;
26933   esac
26934
26935   case $ac_option in
26936   # Handling of the options.
26937   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26938     ac_cs_recheck=: ;;
26939   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26940     echo "$ac_cs_version"; exit ;;
26941   --debug | --debu | --deb | --de | --d | -d )
26942     debug=: ;;
26943   --file | --fil | --fi | --f )
26944     $ac_shift
26945     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
26946     ac_need_defaults=false;;
26947   --header | --heade | --head | --hea )
26948     $ac_shift
26949     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
26950     ac_need_defaults=false;;
26951   --he | --h)
26952     # Conflict between --help and --header
26953     { echo "$as_me: error: ambiguous option: $1
26954 Try \`$0 --help' for more information." >&2
26955    { (exit 1); exit 1; }; };;
26956   --help | --hel | -h )
26957     echo "$ac_cs_usage"; exit ;;
26958   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26959   | -silent | --silent | --silen | --sile | --sil | --si | --s)
26960     ac_cs_silent=: ;;
26961
26962   # This is an error.
26963   -*) { echo "$as_me: error: unrecognized option: $1
26964 Try \`$0 --help' for more information." >&2
26965    { (exit 1); exit 1; }; } ;;
26966
26967   *) ac_config_targets="$ac_config_targets $1"
26968      ac_need_defaults=false ;;
26969
26970   esac
26971   shift
26972 done
26973
26974 ac_configure_extra_args=
26975
26976 if $ac_cs_silent; then
26977   exec 6>/dev/null
26978   ac_configure_extra_args="$ac_configure_extra_args --silent"
26979 fi
26980
26981 _ACEOF
26982 cat >>$CONFIG_STATUS <<_ACEOF
26983 if \$ac_cs_recheck; then
26984   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
26985   CONFIG_SHELL=$SHELL
26986   export CONFIG_SHELL
26987   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26988 fi
26989
26990 _ACEOF
26991 cat >>$CONFIG_STATUS <<\_ACEOF
26992 exec 5>>config.log
26993 {
26994   echo
26995   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26996 ## Running $as_me. ##
26997 _ASBOX
26998   echo "$ac_log"
26999 } >&5
27000
27001 _ACEOF
27002 cat >>$CONFIG_STATUS <<_ACEOF
27003 _ACEOF
27004
27005 cat >>$CONFIG_STATUS <<\_ACEOF
27006
27007 # Handling of arguments.
27008 for ac_config_target in $ac_config_targets
27009 do
27010   case $ac_config_target in
27011     "h/config.h") CONFIG_HEADERS="$CONFIG_HEADERS h/config.h" ;;
27012     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
27013     "clients/Makefile") CONFIG_FILES="$CONFIG_FILES clients/Makefile" ;;
27014     "clients/zaway/Makefile") CONFIG_FILES="$CONFIG_FILES clients/zaway/Makefile" ;;
27015     "clients/zctl/Makefile") CONFIG_FILES="$CONFIG_FILES clients/zctl/Makefile" ;;
27016     "clients/zleave/Makefile") CONFIG_FILES="$CONFIG_FILES clients/zleave/Makefile" ;;
27017     "clients/zlocate/Makefile") CONFIG_FILES="$CONFIG_FILES clients/zlocate/Makefile" ;;
27018     "clients/znol/Makefile") CONFIG_FILES="$CONFIG_FILES clients/znol/Makefile" ;;
27019     "clients/zshutdown_notify/Makefile") CONFIG_FILES="$CONFIG_FILES clients/zshutdown_notify/Makefile" ;;
27020     "clients/zstat/Makefile") CONFIG_FILES="$CONFIG_FILES clients/zstat/Makefile" ;;
27021     "clients/zwrite/Makefile") CONFIG_FILES="$CONFIG_FILES clients/zwrite/Makefile" ;;
27022     "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
27023     "libdyn/Makefile") CONFIG_FILES="$CONFIG_FILES libdyn/Makefile" ;;
27024     "server/Makefile") CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
27025     "zhm/Makefile") CONFIG_FILES="$CONFIG_FILES zhm/Makefile" ;;
27026     "zwgc/Makefile") CONFIG_FILES="$CONFIG_FILES zwgc/Makefile" ;;
27027
27028   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
27029 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
27030    { (exit 1); exit 1; }; };;
27031   esac
27032 done
27033
27034
27035 # If the user did not use the arguments to specify the items to instantiate,
27036 # then the envvar interface is used.  Set only those that are not.
27037 # We use the long form for the default assignment because of an extremely
27038 # bizarre bug on SunOS 4.1.3.
27039 if $ac_need_defaults; then
27040   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27041   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27042 fi
27043
27044 # Have a temporary directory for convenience.  Make it in the build tree
27045 # simply because there is no reason against having it here, and in addition,
27046 # creating and moving files from /tmp can sometimes cause problems.
27047 # Hook for its removal unless debugging.
27048 # Note that there is a small window in which the directory will not be cleaned:
27049 # after its creation but before its name has been assigned to `$tmp'.
27050 $debug ||
27051 {
27052   tmp=
27053   trap 'exit_status=$?
27054   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27055 ' 0
27056   trap '{ (exit 1); exit 1; }' 1 2 13 15
27057 }
27058 # Create a (secure) tmp directory for tmp files.
27059
27060 {
27061   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27062   test -n "$tmp" && test -d "$tmp"
27063 }  ||
27064 {
27065   tmp=./conf$$-$RANDOM
27066   (umask 077 && mkdir "$tmp")
27067 } ||
27068 {
27069    echo "$me: cannot create a temporary directory in ." >&2
27070    { (exit 1); exit 1; }
27071 }
27072
27073 #
27074 # Set up the sed scripts for CONFIG_FILES section.
27075 #
27076
27077 # No need to generate the scripts if there are no CONFIG_FILES.
27078 # This happens for instance when ./config.status config.h
27079 if test -n "$CONFIG_FILES"; then
27080
27081 _ACEOF
27082
27083
27084
27085 ac_delim='%!_!# '
27086 for ac_last_try in false false false false false :; do
27087   cat >conf$$subs.sed <<_ACEOF
27088 SHELL!$SHELL$ac_delim
27089 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
27090 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
27091 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
27092 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
27093 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
27094 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
27095 exec_prefix!$exec_prefix$ac_delim
27096 prefix!$prefix$ac_delim
27097 program_transform_name!$program_transform_name$ac_delim
27098 bindir!$bindir$ac_delim
27099 sbindir!$sbindir$ac_delim
27100 libexecdir!$libexecdir$ac_delim
27101 datarootdir!$datarootdir$ac_delim
27102 datadir!$datadir$ac_delim
27103 sysconfdir!$sysconfdir$ac_delim
27104 sharedstatedir!$sharedstatedir$ac_delim
27105 localstatedir!$localstatedir$ac_delim
27106 includedir!$includedir$ac_delim
27107 oldincludedir!$oldincludedir$ac_delim
27108 docdir!$docdir$ac_delim
27109 infodir!$infodir$ac_delim
27110 htmldir!$htmldir$ac_delim
27111 dvidir!$dvidir$ac_delim
27112 pdfdir!$pdfdir$ac_delim
27113 psdir!$psdir$ac_delim
27114 libdir!$libdir$ac_delim
27115 localedir!$localedir$ac_delim
27116 mandir!$mandir$ac_delim
27117 DEFS!$DEFS$ac_delim
27118 ECHO_C!$ECHO_C$ac_delim
27119 ECHO_N!$ECHO_N$ac_delim
27120 ECHO_T!$ECHO_T$ac_delim
27121 LIBS!$LIBS$ac_delim
27122 build_alias!$build_alias$ac_delim
27123 host_alias!$host_alias$ac_delim
27124 target_alias!$target_alias$ac_delim
27125 lbindir!$lbindir$ac_delim
27126 lsbindir!$lsbindir$ac_delim
27127 build!$build$ac_delim
27128 build_cpu!$build_cpu$ac_delim
27129 build_vendor!$build_vendor$ac_delim
27130 build_os!$build_os$ac_delim
27131 host!$host$ac_delim
27132 host_cpu!$host_cpu$ac_delim
27133 host_vendor!$host_vendor$ac_delim
27134 host_os!$host_os$ac_delim
27135 target!$target$ac_delim
27136 target_cpu!$target_cpu$ac_delim
27137 target_vendor!$target_vendor$ac_delim
27138 target_os!$target_os$ac_delim
27139 CC!$CC$ac_delim
27140 CFLAGS!$CFLAGS$ac_delim
27141 LDFLAGS!$LDFLAGS$ac_delim
27142 CPPFLAGS!$CPPFLAGS$ac_delim
27143 ac_ct_CC!$ac_ct_CC$ac_delim
27144 EXEEXT!$EXEEXT$ac_delim
27145 OBJEXT!$OBJEXT$ac_delim
27146 YACC!$YACC$ac_delim
27147 YFLAGS!$YFLAGS$ac_delim
27148 LEX!$LEX$ac_delim
27149 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
27150 LEXLIB!$LEXLIB$ac_delim
27151 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
27152 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
27153 INSTALL_DATA!$INSTALL_DATA$ac_delim
27154 RANLIB!$RANLIB$ac_delim
27155 GREP!$GREP$ac_delim
27156 EGREP!$EGREP$ac_delim
27157 LN_S!$LN_S$ac_delim
27158 ECHO!$ECHO$ac_delim
27159 AR!$AR$ac_delim
27160 STRIP!$STRIP$ac_delim
27161 CPP!$CPP$ac_delim
27162 CXX!$CXX$ac_delim
27163 CXXFLAGS!$CXXFLAGS$ac_delim
27164 ac_ct_CXX!$ac_ct_CXX$ac_delim
27165 CXXCPP!$CXXCPP$ac_delim
27166 F77!$F77$ac_delim
27167 FFLAGS!$FFLAGS$ac_delim
27168 ac_ct_F77!$ac_ct_F77$ac_delim
27169 LIBTOOL!$LIBTOOL$ac_delim
27170 XMKMF!$XMKMF$ac_delim
27171 X_CFLAGS!$X_CFLAGS$ac_delim
27172 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
27173 X_LIBS!$X_LIBS$ac_delim
27174 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
27175 XCLIENTS!$XCLIENTS$ac_delim
27176 ZWGC_LIBX11!$ZWGC_LIBX11$ac_delim
27177 LIBICONV!$LIBICONV$ac_delim
27178 TLIB!$TLIB$ac_delim
27179 RLIB!$RLIB$ac_delim
27180 SLIB!$SLIB$ac_delim
27181 KRB4_LIBS!$KRB4_LIBS$ac_delim
27182 krb5config!$krb5config$ac_delim
27183 KRB5_LIBS!$KRB5_LIBS$ac_delim
27184 LIBZEPHYR_LIBS!$LIBZEPHYR_LIBS$ac_delim
27185 _ACEOF
27186
27187   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
27188     break
27189   elif $ac_last_try; then
27190     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27191 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27192    { (exit 1); exit 1; }; }
27193   else
27194     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27195   fi
27196 done
27197
27198 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
27199 if test -n "$ac_eof"; then
27200   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
27201   ac_eof=`expr $ac_eof + 1`
27202 fi
27203
27204 cat >>$CONFIG_STATUS <<_ACEOF
27205 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
27206 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27207 _ACEOF
27208 sed '
27209 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
27210 s/^/s,@/; s/!/@,|#_!!_#|/
27211 :n
27212 t n
27213 s/'"$ac_delim"'$/,g/; t
27214 s/$/\\/; p
27215 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
27216 ' >>$CONFIG_STATUS <conf$$subs.sed
27217 rm -f conf$$subs.sed
27218 cat >>$CONFIG_STATUS <<_ACEOF
27219 CEOF$ac_eof
27220 _ACEOF
27221
27222
27223 ac_delim='%!_!# '
27224 for ac_last_try in false false false false false :; do
27225   cat >conf$$subs.sed <<_ACEOF
27226 HESIOD_LIBS!$HESIOD_LIBS$ac_delim
27227 REGEX_LIBS!$REGEX_LIBS$ac_delim
27228 SS_LIBS!$SS_LIBS$ac_delim
27229 ARES_LIBS!$ARES_LIBS$ac_delim
27230 LIBOBJS!$LIBOBJS$ac_delim
27231 LTLIBOBJS!$LTLIBOBJS$ac_delim
27232 _ACEOF
27233
27234   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 6; then
27235     break
27236   elif $ac_last_try; then
27237     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27238 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27239    { (exit 1); exit 1; }; }
27240   else
27241     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27242   fi
27243 done
27244
27245 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
27246 if test -n "$ac_eof"; then
27247   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
27248   ac_eof=`expr $ac_eof + 1`
27249 fi
27250
27251 cat >>$CONFIG_STATUS <<_ACEOF
27252 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
27253 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
27254 _ACEOF
27255 sed '
27256 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
27257 s/^/s,@/; s/!/@,|#_!!_#|/
27258 :n
27259 t n
27260 s/'"$ac_delim"'$/,g/; t
27261 s/$/\\/; p
27262 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
27263 ' >>$CONFIG_STATUS <conf$$subs.sed
27264 rm -f conf$$subs.sed
27265 cat >>$CONFIG_STATUS <<_ACEOF
27266 :end
27267 s/|#_!!_#|//g
27268 CEOF$ac_eof
27269 _ACEOF
27270
27271
27272 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27273 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27274 # trailing colons and then remove the whole line if VPATH becomes empty
27275 # (actually we leave an empty line to preserve line numbers).
27276 if test "x$srcdir" = x.; then
27277   ac_vpsub='/^[  ]*VPATH[        ]*=/{
27278 s/:*\$(srcdir):*/:/
27279 s/:*\${srcdir}:*/:/
27280 s/:*@srcdir@:*/:/
27281 s/^\([^=]*=[     ]*\):*/\1/
27282 s/:*$//
27283 s/^[^=]*=[       ]*$//
27284 }'
27285 fi
27286
27287 cat >>$CONFIG_STATUS <<\_ACEOF
27288 fi # test -n "$CONFIG_FILES"
27289
27290
27291 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS
27292 do
27293   case $ac_tag in
27294   :[FHLC]) ac_mode=$ac_tag; continue;;
27295   esac
27296   case $ac_mode$ac_tag in
27297   :[FHL]*:*);;
27298   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
27299 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
27300    { (exit 1); exit 1; }; };;
27301   :[FH]-) ac_tag=-:-;;
27302   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27303   esac
27304   ac_save_IFS=$IFS
27305   IFS=:
27306   set x $ac_tag
27307   IFS=$ac_save_IFS
27308   shift
27309   ac_file=$1
27310   shift
27311
27312   case $ac_mode in
27313   :L) ac_source=$1;;
27314   :[FH])
27315     ac_file_inputs=
27316     for ac_f
27317     do
27318       case $ac_f in
27319       -) ac_f="$tmp/stdin";;
27320       *) # Look for the file first in the build tree, then in the source tree
27321          # (if the path is not absolute).  The absolute path cannot be DOS-style,
27322          # because $ac_f cannot contain `:'.
27323          test -f "$ac_f" ||
27324            case $ac_f in
27325            [\\/$]*) false;;
27326            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27327            esac ||
27328            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
27329 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
27330    { (exit 1); exit 1; }; };;
27331       esac
27332       ac_file_inputs="$ac_file_inputs $ac_f"
27333     done
27334
27335     # Let's still pretend it is `configure' which instantiates (i.e., don't
27336     # use $as_me), people would be surprised to read:
27337     #    /* config.h.  Generated by config.status.  */
27338     configure_input="Generated from "`IFS=:
27339           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
27340     if test x"$ac_file" != x-; then
27341       configure_input="$ac_file.  $configure_input"
27342       { echo "$as_me:$LINENO: creating $ac_file" >&5
27343 echo "$as_me: creating $ac_file" >&6;}
27344     fi
27345
27346     case $ac_tag in
27347     *:-:* | *:-) cat >"$tmp/stdin";;
27348     esac
27349     ;;
27350   esac
27351
27352   ac_dir=`$as_dirname -- "$ac_file" ||
27353 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27354          X"$ac_file" : 'X\(//\)[^/]' \| \
27355          X"$ac_file" : 'X\(//\)$' \| \
27356          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27357 echo X"$ac_file" |
27358     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27359             s//\1/
27360             q
27361           }
27362           /^X\(\/\/\)[^/].*/{
27363             s//\1/
27364             q
27365           }
27366           /^X\(\/\/\)$/{
27367             s//\1/
27368             q
27369           }
27370           /^X\(\/\).*/{
27371             s//\1/
27372             q
27373           }
27374           s/.*/./; q'`
27375   { as_dir="$ac_dir"
27376   case $as_dir in #(
27377   -*) as_dir=./$as_dir;;
27378   esac
27379   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27380     as_dirs=
27381     while :; do
27382       case $as_dir in #(
27383       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
27384       *) as_qdir=$as_dir;;
27385       esac
27386       as_dirs="'$as_qdir' $as_dirs"
27387       as_dir=`$as_dirname -- "$as_dir" ||
27388 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27389          X"$as_dir" : 'X\(//\)[^/]' \| \
27390          X"$as_dir" : 'X\(//\)$' \| \
27391          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27392 echo X"$as_dir" |
27393     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27394             s//\1/
27395             q
27396           }
27397           /^X\(\/\/\)[^/].*/{
27398             s//\1/
27399             q
27400           }
27401           /^X\(\/\/\)$/{
27402             s//\1/
27403             q
27404           }
27405           /^X\(\/\).*/{
27406             s//\1/
27407             q
27408           }
27409           s/.*/./; q'`
27410       test -d "$as_dir" && break
27411     done
27412     test -z "$as_dirs" || eval "mkdir $as_dirs"
27413   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27414 echo "$as_me: error: cannot create directory $as_dir" >&2;}
27415    { (exit 1); exit 1; }; }; }
27416   ac_builddir=.
27417
27418 case "$ac_dir" in
27419 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27420 *)
27421   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27422   # A ".." for each directory in $ac_dir_suffix.
27423   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
27424   case $ac_top_builddir_sub in
27425   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27426   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27427   esac ;;
27428 esac
27429 ac_abs_top_builddir=$ac_pwd
27430 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27431 # for backward compatibility:
27432 ac_top_builddir=$ac_top_build_prefix
27433
27434 case $srcdir in
27435   .)  # We are building in place.
27436     ac_srcdir=.
27437     ac_top_srcdir=$ac_top_builddir_sub
27438     ac_abs_top_srcdir=$ac_pwd ;;
27439   [\\/]* | ?:[\\/]* )  # Absolute name.
27440     ac_srcdir=$srcdir$ac_dir_suffix;
27441     ac_top_srcdir=$srcdir
27442     ac_abs_top_srcdir=$srcdir ;;
27443   *) # Relative name.
27444     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27445     ac_top_srcdir=$ac_top_build_prefix$srcdir
27446     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27447 esac
27448 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27449
27450
27451   case $ac_mode in
27452   :F)
27453   #
27454   # CONFIG_FILE
27455   #
27456
27457   case $INSTALL in
27458   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27459   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
27460   esac
27461 _ACEOF
27462
27463 cat >>$CONFIG_STATUS <<\_ACEOF
27464 # If the template does not know about datarootdir, expand it.
27465 # FIXME: This hack should be removed a few years after 2.60.
27466 ac_datarootdir_hack=; ac_datarootdir_seen=
27467
27468 case `sed -n '/datarootdir/ {
27469   p
27470   q
27471 }
27472 /@datadir@/p
27473 /@docdir@/p
27474 /@infodir@/p
27475 /@localedir@/p
27476 /@mandir@/p
27477 ' $ac_file_inputs` in
27478 *datarootdir*) ac_datarootdir_seen=yes;;
27479 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27480   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27481 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27482 _ACEOF
27483 cat >>$CONFIG_STATUS <<_ACEOF
27484   ac_datarootdir_hack='
27485   s&@datadir@&$datadir&g
27486   s&@docdir@&$docdir&g
27487   s&@infodir@&$infodir&g
27488   s&@localedir@&$localedir&g
27489   s&@mandir@&$mandir&g
27490     s&\\\${datarootdir}&$datarootdir&g' ;;
27491 esac
27492 _ACEOF
27493
27494 # Neutralize VPATH when `$srcdir' = `.'.
27495 # Shell code in configure.ac might set extrasub.
27496 # FIXME: do we really want to maintain this feature?
27497 cat >>$CONFIG_STATUS <<_ACEOF
27498   sed "$ac_vpsub
27499 $extrasub
27500 _ACEOF
27501 cat >>$CONFIG_STATUS <<\_ACEOF
27502 :t
27503 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27504 s&@configure_input@&$configure_input&;t t
27505 s&@top_builddir@&$ac_top_builddir_sub&;t t
27506 s&@srcdir@&$ac_srcdir&;t t
27507 s&@abs_srcdir@&$ac_abs_srcdir&;t t
27508 s&@top_srcdir@&$ac_top_srcdir&;t t
27509 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27510 s&@builddir@&$ac_builddir&;t t
27511 s&@abs_builddir@&$ac_abs_builddir&;t t
27512 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27513 s&@INSTALL@&$ac_INSTALL&;t t
27514 $ac_datarootdir_hack
27515 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
27516
27517 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27518   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
27519   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
27520   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27521 which seems to be undefined.  Please make sure it is defined." >&5
27522 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27523 which seems to be undefined.  Please make sure it is defined." >&2;}
27524
27525   rm -f "$tmp/stdin"
27526   case $ac_file in
27527   -) cat "$tmp/out"; rm -f "$tmp/out";;
27528   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
27529   esac
27530  ;;
27531   :H)
27532   #
27533   # CONFIG_HEADER
27534   #
27535 _ACEOF
27536
27537 # Transform confdefs.h into a sed script `conftest.defines', that
27538 # substitutes the proper values into config.h.in to produce config.h.
27539 rm -f conftest.defines conftest.tail
27540 # First, append a space to every undef/define line, to ease matching.
27541 echo 's/$/ /' >conftest.defines
27542 # Then, protect against being on the right side of a sed subst, or in
27543 # an unquoted here document, in config.status.  If some macros were
27544 # called several times there might be several #defines for the same
27545 # symbol, which is useless.  But do not sort them, since the last
27546 # AC_DEFINE must be honored.
27547 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27548 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
27549 # NAME is the cpp macro being defined, VALUE is the value it is being given.
27550 # PARAMS is the parameter list in the macro definition--in most cases, it's
27551 # just an empty string.
27552 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
27553 ac_dB='\\)[      (].*,\\1define\\2'
27554 ac_dC=' '
27555 ac_dD=' ,'
27556
27557 uniq confdefs.h |
27558   sed -n '
27559         t rset
27560         :rset
27561         s/^[     ]*#[    ]*define[       ][      ]*//
27562         t ok
27563         d
27564         :ok
27565         s/[\\&,]/\\&/g
27566         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
27567         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
27568   ' >>conftest.defines
27569
27570 # Remove the space that was appended to ease matching.
27571 # Then replace #undef with comments.  This is necessary, for
27572 # example, in the case of _POSIX_SOURCE, which is predefined and required
27573 # on some systems where configure will not decide to define it.
27574 # (The regexp can be short, since the line contains either #define or #undef.)
27575 echo 's/ $//
27576 s,^[     #]*u.*,/* & */,' >>conftest.defines
27577
27578 # Break up conftest.defines:
27579 ac_max_sed_lines=50
27580
27581 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
27582 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
27583 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
27584 # et cetera.
27585 ac_in='$ac_file_inputs'
27586 ac_out='"$tmp/out1"'
27587 ac_nxt='"$tmp/out2"'
27588
27589 while :
27590 do
27591   # Write a here document:
27592     cat >>$CONFIG_STATUS <<_ACEOF
27593     # First, check the format of the line:
27594     cat >"\$tmp/defines.sed" <<\\CEOF
27595 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
27596 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
27597 b
27598 :def
27599 _ACEOF
27600   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
27601   echo 'CEOF
27602     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
27603   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
27604   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
27605   grep . conftest.tail >/dev/null || break
27606   rm -f conftest.defines
27607   mv conftest.tail conftest.defines
27608 done
27609 rm -f conftest.defines conftest.tail
27610
27611 echo "ac_result=$ac_in" >>$CONFIG_STATUS
27612 cat >>$CONFIG_STATUS <<\_ACEOF
27613   if test x"$ac_file" != x-; then
27614     echo "/* $configure_input  */" >"$tmp/config.h"
27615     cat "$ac_result" >>"$tmp/config.h"
27616     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
27617       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27618 echo "$as_me: $ac_file is unchanged" >&6;}
27619     else
27620       rm -f $ac_file
27621       mv "$tmp/config.h" $ac_file
27622     fi
27623   else
27624     echo "/* $configure_input  */"
27625     cat "$ac_result"
27626   fi
27627   rm -f "$tmp/out12"
27628  ;;
27629
27630
27631   esac
27632
27633 done # for ac_tag
27634
27635
27636 { (exit 0); exit 0; }
27637 _ACEOF
27638 chmod +x $CONFIG_STATUS
27639 ac_clean_files=$ac_clean_files_save
27640
27641
27642 # configure is writing to config.log, and then calls config.status.
27643 # config.status does its own redirection, appending to config.log.
27644 # Unfortunately, on DOS this fails, as config.log is still kept open
27645 # by configure, so config.status won't be able to write to it; its
27646 # output is simply discarded.  So we exec the FD to /dev/null,
27647 # effectively closing config.log, so it can be properly (re)opened and
27648 # appended to by config.status.  When coming back to configure, we
27649 # need to make the FD available again.
27650 if test "$no_create" != yes; then
27651   ac_cs_success=:
27652   ac_config_status_args=
27653   test "$silent" = yes &&
27654     ac_config_status_args="$ac_config_status_args --quiet"
27655   exec 5>/dev/null
27656   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27657   exec 5>>config.log
27658   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27659   # would make configure fail if this is the last instruction.
27660   $ac_cs_success || { (exit 1); exit 1; }
27661 fi
27662