]> CyberLeo.Net >> Repos - FreeBSD/releng/9.0.git/blob - crypto/heimdal/configure
Copy stable/9 to releng/9.0 as part of the FreeBSD 9.0-RELEASE release
[FreeBSD/releng/9.0.git] / crypto / heimdal / configure
1 #! /bin/sh
2 # From configure.in Revision: 22513 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61 for Heimdal 1.1.
5 #
6 # Report bugs to <heimdal-bugs@h5l.org>.
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization.  ##
14 ## --------------------- ##
15
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19   emulate sh
20   NULLCMD=:
21   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22   # is contrary to our usage.  Disable this feature.
23   alias -g '${1+"$@"}'='"$@"'
24   setopt NO_GLOB_SUBST
25 else
26   case `(set -o) 2>/dev/null` in
27   *posix*) set -o posix ;;
28 esac
29
30 fi
31
32
33
34
35 # PATH needs CR
36 # Avoid depending upon Character Ranges.
37 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
38 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
40 as_cr_digits='0123456789'
41 as_cr_alnum=$as_cr_Letters$as_cr_digits
42
43 # The user is always right.
44 if test "${PATH_SEPARATOR+set}" != set; then
45   echo "#! /bin/sh" >conf$$.sh
46   echo  "exit 0"   >>conf$$.sh
47   chmod +x conf$$.sh
48   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
49     PATH_SEPARATOR=';'
50   else
51     PATH_SEPARATOR=:
52   fi
53   rm -f conf$$.sh
54 fi
55
56 # Support unset when possible.
57 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
58   as_unset=unset
59 else
60   as_unset=false
61 fi
62
63
64 # IFS
65 # We need space, tab and new line, in precisely that order.  Quoting is
66 # there to prevent editors from complaining about space-tab.
67 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
68 # splitting by setting IFS to empty value.)
69 as_nl='
70 '
71 IFS=" ""        $as_nl"
72
73 # Find who we are.  Look in the path if we contain no directory separator.
74 case $0 in
75   *[\\/]* ) as_myself=$0 ;;
76   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 for as_dir in $PATH
78 do
79   IFS=$as_save_IFS
80   test -z "$as_dir" && as_dir=.
81   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
82 done
83 IFS=$as_save_IFS
84
85      ;;
86 esac
87 # We did not find ourselves, most probably we were run as `sh COMMAND'
88 # in which case we are not to be found in the path.
89 if test "x$as_myself" = x; then
90   as_myself=$0
91 fi
92 if test ! -f "$as_myself"; then
93   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94   { (exit 1); exit 1; }
95 fi
96
97 # Work around bugs in pre-3.0 UWIN ksh.
98 for as_var in ENV MAIL MAILPATH
99 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
100 done
101 PS1='$ '
102 PS2='> '
103 PS4='+ '
104
105 # NLS nuisances.
106 for as_var in \
107   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
108   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
109   LC_TELEPHONE LC_TIME
110 do
111   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
112     eval $as_var=C; export $as_var
113   else
114     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115   fi
116 done
117
118 # Required to use basename.
119 if expr a : '\(a\)' >/dev/null 2>&1 &&
120    test "X`expr 00001 : '.*\(...\)'`" = X001; then
121   as_expr=expr
122 else
123   as_expr=false
124 fi
125
126 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
127   as_basename=basename
128 else
129   as_basename=false
130 fi
131
132
133 # Name of the executable.
134 as_me=`$as_basename -- "$0" ||
135 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
136          X"$0" : 'X\(//\)$' \| \
137          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
138 echo X/"$0" |
139     sed '/^.*\/\([^/][^/]*\)\/*$/{
140             s//\1/
141             q
142           }
143           /^X\/\(\/\/\)$/{
144             s//\1/
145             q
146           }
147           /^X\/\(\/\).*/{
148             s//\1/
149             q
150           }
151           s/.*/./; q'`
152
153 # CDPATH.
154 $as_unset CDPATH
155
156
157 if test "x$CONFIG_SHELL" = x; then
158   if (eval ":") 2>/dev/null; then
159   as_have_required=yes
160 else
161   as_have_required=no
162 fi
163
164   if test $as_have_required = yes &&     (eval ":
165 (as_func_return () {
166   (exit \$1)
167 }
168 as_func_success () {
169   as_func_return 0
170 }
171 as_func_failure () {
172   as_func_return 1
173 }
174 as_func_ret_success () {
175   return 0
176 }
177 as_func_ret_failure () {
178   return 1
179 }
180
181 exitcode=0
182 if as_func_success; then
183   :
184 else
185   exitcode=1
186   echo as_func_success failed.
187 fi
188
189 if as_func_failure; then
190   exitcode=1
191   echo as_func_failure succeeded.
192 fi
193
194 if as_func_ret_success; then
195   :
196 else
197   exitcode=1
198   echo as_func_ret_success failed.
199 fi
200
201 if as_func_ret_failure; then
202   exitcode=1
203   echo as_func_ret_failure succeeded.
204 fi
205
206 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207   :
208 else
209   exitcode=1
210   echo positional parameters were not saved.
211 fi
212
213 test \$exitcode = 0) || { (exit 1); exit 1; }
214
215 (
216   as_lineno_1=\$LINENO
217   as_lineno_2=\$LINENO
218   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
219   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
220 ") 2> /dev/null; then
221   :
222 else
223   as_candidate_shells=
224     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
225 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
226 do
227   IFS=$as_save_IFS
228   test -z "$as_dir" && as_dir=.
229   case $as_dir in
230          /*)
231            for as_base in sh bash ksh sh5; do
232              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
233            done;;
234        esac
235 done
236 IFS=$as_save_IFS
237
238
239       for as_shell in $as_candidate_shells $SHELL; do
240          # Try only shells that exist, to save several forks.
241          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
242                 { ("$as_shell") 2> /dev/null <<\_ASEOF
243 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244   emulate sh
245   NULLCMD=:
246   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
247   # is contrary to our usage.  Disable this feature.
248   alias -g '${1+"$@"}'='"$@"'
249   setopt NO_GLOB_SUBST
250 else
251   case `(set -o) 2>/dev/null` in
252   *posix*) set -o posix ;;
253 esac
254
255 fi
256
257
258 :
259 _ASEOF
260 }; then
261   CONFIG_SHELL=$as_shell
262                as_have_required=yes
263                if { "$as_shell" 2> /dev/null <<\_ASEOF
264 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
265   emulate sh
266   NULLCMD=:
267   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
268   # is contrary to our usage.  Disable this feature.
269   alias -g '${1+"$@"}'='"$@"'
270   setopt NO_GLOB_SUBST
271 else
272   case `(set -o) 2>/dev/null` in
273   *posix*) set -o posix ;;
274 esac
275
276 fi
277
278
279 :
280 (as_func_return () {
281   (exit $1)
282 }
283 as_func_success () {
284   as_func_return 0
285 }
286 as_func_failure () {
287   as_func_return 1
288 }
289 as_func_ret_success () {
290   return 0
291 }
292 as_func_ret_failure () {
293   return 1
294 }
295
296 exitcode=0
297 if as_func_success; then
298   :
299 else
300   exitcode=1
301   echo as_func_success failed.
302 fi
303
304 if as_func_failure; then
305   exitcode=1
306   echo as_func_failure succeeded.
307 fi
308
309 if as_func_ret_success; then
310   :
311 else
312   exitcode=1
313   echo as_func_ret_success failed.
314 fi
315
316 if as_func_ret_failure; then
317   exitcode=1
318   echo as_func_ret_failure succeeded.
319 fi
320
321 if ( set x; as_func_ret_success y && test x = "$1" ); then
322   :
323 else
324   exitcode=1
325   echo positional parameters were not saved.
326 fi
327
328 test $exitcode = 0) || { (exit 1); exit 1; }
329
330 (
331   as_lineno_1=$LINENO
332   as_lineno_2=$LINENO
333   test "x$as_lineno_1" != "x$as_lineno_2" &&
334   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
335
336 _ASEOF
337 }; then
338   break
339 fi
340
341 fi
342
343       done
344
345       if test "x$CONFIG_SHELL" != x; then
346   for as_var in BASH_ENV ENV
347         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
348         done
349         export CONFIG_SHELL
350         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 fi
352
353
354     if test $as_have_required = no; then
355   echo This script requires a shell more modern than all the
356       echo shells that I found on your system.  Please install a
357       echo modern shell, or manually run the script under such a
358       echo shell if you do have one.
359       { (exit 1); exit 1; }
360 fi
361
362
363 fi
364
365 fi
366
367
368
369 (eval "as_func_return () {
370   (exit \$1)
371 }
372 as_func_success () {
373   as_func_return 0
374 }
375 as_func_failure () {
376   as_func_return 1
377 }
378 as_func_ret_success () {
379   return 0
380 }
381 as_func_ret_failure () {
382   return 1
383 }
384
385 exitcode=0
386 if as_func_success; then
387   :
388 else
389   exitcode=1
390   echo as_func_success failed.
391 fi
392
393 if as_func_failure; then
394   exitcode=1
395   echo as_func_failure succeeded.
396 fi
397
398 if as_func_ret_success; then
399   :
400 else
401   exitcode=1
402   echo as_func_ret_success failed.
403 fi
404
405 if as_func_ret_failure; then
406   exitcode=1
407   echo as_func_ret_failure succeeded.
408 fi
409
410 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411   :
412 else
413   exitcode=1
414   echo positional parameters were not saved.
415 fi
416
417 test \$exitcode = 0") || {
418   echo No shell found that supports shell functions.
419   echo Please tell autoconf@gnu.org about your system,
420   echo including any error possibly output before this
421   echo message
422 }
423
424
425
426   as_lineno_1=$LINENO
427   as_lineno_2=$LINENO
428   test "x$as_lineno_1" != "x$as_lineno_2" &&
429   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
430
431   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
432   # uniformly replaced by the line number.  The first 'sed' inserts a
433   # line-number line after each line using $LINENO; the second 'sed'
434   # does the real work.  The second script uses 'N' to pair each
435   # line-number line with the line containing $LINENO, and appends
436   # trailing '-' during substitution so that $LINENO is not a special
437   # case at line end.
438   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
439   # scripts with optimization help from Paolo Bonzini.  Blame Lee
440   # E. McMahon (1931-1989) for sed's syntax.  :-)
441   sed -n '
442     p
443     /[$]LINENO/=
444   ' <$as_myself |
445     sed '
446       s/[$]LINENO.*/&-/
447       t lineno
448       b
449       :lineno
450       N
451       :loop
452       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453       t loop
454       s/-\n.*//
455     ' >$as_me.lineno &&
456   chmod +x "$as_me.lineno" ||
457     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
458    { (exit 1); exit 1; }; }
459
460   # Don't try to exec as it changes $[0], causing all sort of problems
461   # (the dirname of $[0] is not the place where we might find the
462   # original and so on.  Autoconf is especially sensitive to this).
463   . "./$as_me.lineno"
464   # Exit status is that of the last command.
465   exit
466 }
467
468
469 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
470   as_dirname=dirname
471 else
472   as_dirname=false
473 fi
474
475 ECHO_C= ECHO_N= ECHO_T=
476 case `echo -n x` in
477 -n*)
478   case `echo 'x\c'` in
479   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
480   *)   ECHO_C='\c';;
481   esac;;
482 *)
483   ECHO_N='-n';;
484 esac
485
486 if expr a : '\(a\)' >/dev/null 2>&1 &&
487    test "X`expr 00001 : '.*\(...\)'`" = X001; then
488   as_expr=expr
489 else
490   as_expr=false
491 fi
492
493 rm -f conf$$ conf$$.exe conf$$.file
494 if test -d conf$$.dir; then
495   rm -f conf$$.dir/conf$$.file
496 else
497   rm -f conf$$.dir
498   mkdir conf$$.dir
499 fi
500 echo >conf$$.file
501 if ln -s conf$$.file conf$$ 2>/dev/null; then
502   as_ln_s='ln -s'
503   # ... but there are two gotchas:
504   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
505   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
506   # In both cases, we have to default to `cp -p'.
507   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
508     as_ln_s='cp -p'
509 elif ln conf$$.file conf$$ 2>/dev/null; then
510   as_ln_s=ln
511 else
512   as_ln_s='cp -p'
513 fi
514 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
515 rmdir conf$$.dir 2>/dev/null
516
517 if mkdir -p . 2>/dev/null; then
518   as_mkdir_p=:
519 else
520   test -d ./-p && rmdir ./-p
521   as_mkdir_p=false
522 fi
523
524 if test -x / >/dev/null 2>&1; then
525   as_test_x='test -x'
526 else
527   if ls -dL / >/dev/null 2>&1; then
528     as_ls_L_option=L
529   else
530     as_ls_L_option=
531   fi
532   as_test_x='
533     eval sh -c '\''
534       if test -d "$1"; then
535         test -d "$1/.";
536       else
537         case $1 in
538         -*)set "./$1";;
539         esac;
540         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
541         ???[sx]*):;;*)false;;esac;fi
542     '\'' sh
543   '
544 fi
545 as_executable_p=$as_test_x
546
547 # Sed expression to map a string onto a valid CPP name.
548 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
549
550 # Sed expression to map a string onto a valid variable name.
551 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552
553
554
555
556 # Check that we are running under the correct shell.
557 SHELL=${CONFIG_SHELL-/bin/sh}
558
559 case X$ECHO in
560 X*--fallback-echo)
561   # Remove one level of quotation (which was required for Make).
562   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
563   ;;
564 esac
565
566 echo=${ECHO-echo}
567 if test "X$1" = X--no-reexec; then
568   # Discard the --no-reexec flag, and continue.
569   shift
570 elif test "X$1" = X--fallback-echo; then
571   # Avoid inline document here, it may be left over
572   :
573 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
574   # Yippee, $echo works!
575   :
576 else
577   # Restart under the correct shell.
578   exec $SHELL "$0" --no-reexec ${1+"$@"}
579 fi
580
581 if test "X$1" = X--fallback-echo; then
582   # used as fallback echo
583   shift
584   cat <<EOF
585 $*
586 EOF
587   exit 0
588 fi
589
590 # The HP-UX ksh and POSIX shell print the target directory to stdout
591 # if CDPATH is set.
592 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
593
594 if test -z "$ECHO"; then
595 if test "X${echo_test_string+set}" != Xset; then
596 # find a string as large as possible, as long as the shell can cope with it
597   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
598     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
599     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
600        echo_test_string=`eval $cmd` &&
601        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
602     then
603       break
604     fi
605   done
606 fi
607
608 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
609    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
610    test "X$echo_testing_string" = "X$echo_test_string"; then
611   :
612 else
613   # The Solaris, AIX, and Digital Unix default echo programs unquote
614   # backslashes.  This makes it impossible to quote backslashes using
615   #   echo "$something" | sed 's/\\/\\\\/g'
616   #
617   # So, first we look for a working echo in the user's PATH.
618
619   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
620   for dir in $PATH /usr/ucb; do
621     IFS="$lt_save_ifs"
622     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
623        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
624        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
625        test "X$echo_testing_string" = "X$echo_test_string"; then
626       echo="$dir/echo"
627       break
628     fi
629   done
630   IFS="$lt_save_ifs"
631
632   if test "X$echo" = Xecho; then
633     # We didn't find a better echo, so look for alternatives.
634     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
635        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
636        test "X$echo_testing_string" = "X$echo_test_string"; then
637       # This shell has a builtin print -r that does the trick.
638       echo='print -r'
639     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
640          test "X$CONFIG_SHELL" != X/bin/ksh; then
641       # If we have ksh, try running configure again with it.
642       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
643       export ORIGINAL_CONFIG_SHELL
644       CONFIG_SHELL=/bin/ksh
645       export CONFIG_SHELL
646       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
647     else
648       # Try using printf.
649       echo='printf %s\n'
650       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
651          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
652          test "X$echo_testing_string" = "X$echo_test_string"; then
653         # Cool, printf works
654         :
655       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
656            test "X$echo_testing_string" = 'X\t' &&
657            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
658            test "X$echo_testing_string" = "X$echo_test_string"; then
659         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
660         export CONFIG_SHELL
661         SHELL="$CONFIG_SHELL"
662         export SHELL
663         echo="$CONFIG_SHELL $0 --fallback-echo"
664       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
665            test "X$echo_testing_string" = 'X\t' &&
666            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
667            test "X$echo_testing_string" = "X$echo_test_string"; then
668         echo="$CONFIG_SHELL $0 --fallback-echo"
669       else
670         # maybe with a smaller string...
671         prev=:
672
673         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
674           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
675           then
676             break
677           fi
678           prev="$cmd"
679         done
680
681         if test "$prev" != 'sed 50q "$0"'; then
682           echo_test_string=`eval $prev`
683           export echo_test_string
684           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
685         else
686           # Oops.  We lost completely, so just stick with echo.
687           echo=echo
688         fi
689       fi
690     fi
691   fi
692 fi
693 fi
694
695 # Copy echo and quote the copy suitably for passing to libtool from
696 # the Makefile, instead of quoting the original, which is used later.
697 ECHO=$echo
698 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
699    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
700 fi
701
702
703
704
705 tagnames=${tagnames+${tagnames},}CXX
706
707 tagnames=${tagnames+${tagnames},}F77
708
709 exec 7<&0 </dev/null 6>&1
710
711 # Name of the host.
712 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
713 # so uname gets run too.
714 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
715
716 #
717 # Initializations.
718 #
719 ac_default_prefix=/usr/local
720 ac_clean_files=
721 ac_config_libobj_dir=.
722 LIBOBJS=
723 cross_compiling=no
724 subdirs=
725 MFLAGS=
726 MAKEFLAGS=
727 SHELL=${CONFIG_SHELL-/bin/sh}
728
729 # Identity of this package.
730 PACKAGE_NAME='Heimdal'
731 PACKAGE_TARNAME='heimdal'
732 PACKAGE_VERSION='1.1'
733 PACKAGE_STRING='Heimdal 1.1'
734 PACKAGE_BUGREPORT='heimdal-bugs@h5l.org'
735
736 ac_unique_file="kuser/kinit.c"
737 ac_default_prefix=/usr/heimdal
738 # Factoring default headers for most tests.
739 ac_includes_default="\
740 #include <stdio.h>
741 #ifdef HAVE_SYS_TYPES_H
742 # include <sys/types.h>
743 #endif
744 #ifdef HAVE_SYS_STAT_H
745 # include <sys/stat.h>
746 #endif
747 #ifdef STDC_HEADERS
748 # include <stdlib.h>
749 # include <stddef.h>
750 #else
751 # ifdef HAVE_STDLIB_H
752 #  include <stdlib.h>
753 # endif
754 #endif
755 #ifdef HAVE_STRING_H
756 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
757 #  include <memory.h>
758 # endif
759 # include <string.h>
760 #endif
761 #ifdef HAVE_STRINGS_H
762 # include <strings.h>
763 #endif
764 #ifdef HAVE_INTTYPES_H
765 # include <inttypes.h>
766 #endif
767 #ifdef HAVE_STDINT_H
768 # include <stdint.h>
769 #endif
770 #ifdef HAVE_UNISTD_H
771 # include <unistd.h>
772 #endif"
773
774 ac_subst_vars='SHELL
775 PATH_SEPARATOR
776 PACKAGE_NAME
777 PACKAGE_TARNAME
778 PACKAGE_VERSION
779 PACKAGE_STRING
780 PACKAGE_BUGREPORT
781 exec_prefix
782 prefix
783 program_transform_name
784 bindir
785 sbindir
786 libexecdir
787 datarootdir
788 datadir
789 sysconfdir
790 sharedstatedir
791 localstatedir
792 includedir
793 oldincludedir
794 docdir
795 infodir
796 htmldir
797 dvidir
798 pdfdir
799 psdir
800 libdir
801 localedir
802 mandir
803 DEFS
804 ECHO_C
805 ECHO_N
806 ECHO_T
807 LIBS
808 build_alias
809 host_alias
810 target_alias
811 INSTALL_PROGRAM
812 INSTALL_SCRIPT
813 INSTALL_DATA
814 am__isrc
815 CYGPATH_W
816 PACKAGE
817 VERSION
818 ACLOCAL
819 AUTOCONF
820 AUTOMAKE
821 AUTOHEADER
822 MAKEINFO
823 install_sh
824 STRIP
825 INSTALL_STRIP_PROGRAM
826 mkdir_p
827 AWK
828 SET_MAKE
829 am__leading_dot
830 AMTAR
831 am__tar
832 am__untar
833 MAINTAINER_MODE_TRUE
834 MAINTAINER_MODE_FALSE
835 MAINT
836 CC
837 CFLAGS
838 LDFLAGS
839 CPPFLAGS
840 ac_ct_CC
841 EXEEXT
842 OBJEXT
843 CPP
844 build
845 build_cpu
846 build_vendor
847 build_os
848 host
849 host_cpu
850 host_vendor
851 host_os
852 CANONICAL_HOST
853 YACC
854 YFLAGS
855 LEX
856 LEX_OUTPUT_ROOT
857 LEXLIB
858 LN_S
859 GREP
860 EGREP
861 ECHO
862 AR
863 RANLIB
864 CXX
865 CXXFLAGS
866 ac_ct_CXX
867 CXXCPP
868 F77
869 FFLAGS
870 ac_ct_F77
871 LIBTOOL
872 ENABLE_SHARED_TRUE
873 ENABLE_SHARED_FALSE
874 VERSIONING
875 versionscript_TRUE
876 versionscript_FALSE
877 LDFLAGS_VERSION_SCRIPT
878 INCLUDE_openldap
879 LIB_openldap
880 OPENLDAP_MODULE_TRUE
881 OPENLDAP_MODULE_FALSE
882 PKINIT_TRUE
883 PKINIT_FALSE
884 DIR_hdbdir
885 INCLUDE_krb4
886 LIB_krb4
887 KRB4_TRUE
888 KRB4_FALSE
889 KRB5_TRUE
890 KRB5_FALSE
891 do_roken_rename_TRUE
892 do_roken_rename_FALSE
893 LIB_kdb
894 HAVE_OPENSSL_TRUE
895 HAVE_OPENSSL_FALSE
896 DIR_hcrypto
897 INCLUDE_hcrypto
898 LIB_hcrypto
899 LIB_hcrypto_a
900 LIB_hcrypto_so
901 LIB_hcrypto_appl
902 PTHREADS_CFLAGS
903 PTHREADS_LIBS
904 DCE_TRUE
905 DCE_FALSE
906 dpagaix_cflags
907 dpagaix_ldadd
908 dpagaix_ldflags
909 LIB_db_create
910 LIB_dbopen
911 LIB_dbm_firstkey
912 HAVE_DB1_TRUE
913 HAVE_DB1_FALSE
914 HAVE_DB3_TRUE
915 HAVE_DB3_FALSE
916 HAVE_NDBM_TRUE
917 HAVE_NDBM_FALSE
918 DBLIB
919 LIB_NDBM
920 WFLAGS
921 WFLAGS_NOUNUSED
922 WFLAGS_NOIMPLICITINT
923 VOID_RETSIGTYPE
924 have_err_h_TRUE
925 have_err_h_FALSE
926 have_ifaddrs_h_TRUE
927 have_ifaddrs_h_FALSE
928 have_vis_h_TRUE
929 have_vis_h_FALSE
930 LIB_socket
931 LIB_gethostbyname
932 LIB_syslog
933 LIB_gethostbyname2
934 LIB_res_search
935 LIB_res_nsearch
936 LIB_res_ndestroy
937 LIB_dn_expand
938 LIBOBJS
939 have_glob_h_TRUE
940 have_glob_h_FALSE
941 have_cgetent_TRUE
942 have_cgetent_FALSE
943 LIB_getsockopt
944 LIB_setsockopt
945 LIB_hstrerror
946 LIB_bswap16
947 LIB_bswap32
948 LIB_pidfile
949 LIB_getaddrinfo
950 LIB_getnameinfo
951 LIB_freeaddrinfo
952 LIB_gai_strerror
953 have_fnmatch_h_TRUE
954 have_fnmatch_h_FALSE
955 LIB_crypt
956 have_socket_wrapper_TRUE
957 have_socket_wrapper_FALSE
958 DIR_roken
959 LIB_roken
960 INCLUDES_roken
961 LIBADD_roken
962 LIB_otp
963 OTP_TRUE
964 OTP_FALSE
965 LIB_security
966 NROFF
967 GROFF
968 CATMAN
969 CATMAN_TRUE
970 CATMAN_FALSE
971 CATMANEXT
972 INCLUDE_readline
973 LIB_readline
974 INCLUDE_hesiod
975 LIB_hesiod
976 AIX_TRUE
977 AIX_FALSE
978 AIX4_TRUE
979 AIX4_FALSE
980 LIB_dlopen
981 HAVE_DLOPEN_TRUE
982 HAVE_DLOPEN_FALSE
983 LIB_loadquery
984 AIX_DYNAMIC_AFS_TRUE
985 AIX_DYNAMIC_AFS_FALSE
986 AIX_EXTRA_KAFS
987 IRIX_TRUE
988 IRIX_FALSE
989 XMKMF
990 X_CFLAGS
991 X_PRE_LIBS
992 X_LIBS
993 X_EXTRA_LIBS
994 HAVE_X_TRUE
995 HAVE_X_FALSE
996 LIB_XauWriteAuth
997 LIB_XauReadAuth
998 LIB_XauFileName
999 NEED_WRITEAUTH_TRUE
1000 NEED_WRITEAUTH_FALSE
1001 LIB_logwtmp
1002 LIB_logout
1003 LIB_openpty
1004 LIB_tgetent
1005 LIB_getpwnam_r
1006 LIB_door_create
1007 KCM_TRUE
1008 KCM_FALSE
1009 FRAMEWORK_SECURITY_TRUE
1010 FRAMEWORK_SECURITY_FALSE
1011 LIB_el_init
1012 el_compat_TRUE
1013 el_compat_FALSE
1014 COMPILE_ET
1015 COM_ERR_TRUE
1016 COM_ERR_FALSE
1017 DIR_com_err
1018 LIB_com_err
1019 LIB_com_err_a
1020 LIB_com_err_so
1021 LIB_AUTH_SUBDIRS
1022 LTLIBOBJS'
1023 ac_subst_files=''
1024       ac_precious_vars='build_alias
1025 host_alias
1026 target_alias
1027 CC
1028 CFLAGS
1029 LDFLAGS
1030 LIBS
1031 CPPFLAGS
1032 CPP
1033 YACC
1034 YFLAGS
1035 CXX
1036 CXXFLAGS
1037 CCC
1038 CXXCPP
1039 F77
1040 FFLAGS
1041 XMKMF'
1042
1043
1044 # Initialize some variables set by options.
1045 ac_init_help=
1046 ac_init_version=false
1047 # The variables have the same names as the options, with
1048 # dashes changed to underlines.
1049 cache_file=/dev/null
1050 exec_prefix=NONE
1051 no_create=
1052 no_recursion=
1053 prefix=NONE
1054 program_prefix=NONE
1055 program_suffix=NONE
1056 program_transform_name=s,x,x,
1057 silent=
1058 site=
1059 srcdir=
1060 verbose=
1061 x_includes=NONE
1062 x_libraries=NONE
1063
1064 # Installation directory options.
1065 # These are left unexpanded so users can "make install exec_prefix=/foo"
1066 # and all the variables that are supposed to be based on exec_prefix
1067 # by default will actually change.
1068 # Use braces instead of parens because sh, perl, etc. also accept them.
1069 # (The list follows the same order as the GNU Coding Standards.)
1070 bindir='${exec_prefix}/bin'
1071 sbindir='${exec_prefix}/sbin'
1072 libexecdir='${exec_prefix}/libexec'
1073 datarootdir='${prefix}/share'
1074 datadir='${datarootdir}'
1075 sysconfdir='${prefix}/etc'
1076 sharedstatedir='${prefix}/com'
1077 localstatedir='${prefix}/var'
1078 includedir='${prefix}/include'
1079 oldincludedir='/usr/include'
1080 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1081 infodir='${datarootdir}/info'
1082 htmldir='${docdir}'
1083 dvidir='${docdir}'
1084 pdfdir='${docdir}'
1085 psdir='${docdir}'
1086 libdir='${exec_prefix}/lib'
1087 localedir='${datarootdir}/locale'
1088 mandir='${datarootdir}/man'
1089
1090 ac_prev=
1091 ac_dashdash=
1092 for ac_option
1093 do
1094   # If the previous option needs an argument, assign it.
1095   if test -n "$ac_prev"; then
1096     eval $ac_prev=\$ac_option
1097     ac_prev=
1098     continue
1099   fi
1100
1101   case $ac_option in
1102   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1103   *)    ac_optarg=yes ;;
1104   esac
1105
1106   # Accept the important Cygnus configure options, so we can diagnose typos.
1107
1108   case $ac_dashdash$ac_option in
1109   --)
1110     ac_dashdash=yes ;;
1111
1112   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1113     ac_prev=bindir ;;
1114   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1115     bindir=$ac_optarg ;;
1116
1117   -build | --build | --buil | --bui | --bu)
1118     ac_prev=build_alias ;;
1119   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1120     build_alias=$ac_optarg ;;
1121
1122   -cache-file | --cache-file | --cache-fil | --cache-fi \
1123   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1124     ac_prev=cache_file ;;
1125   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1126   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1127     cache_file=$ac_optarg ;;
1128
1129   --config-cache | -C)
1130     cache_file=config.cache ;;
1131
1132   -datadir | --datadir | --datadi | --datad)
1133     ac_prev=datadir ;;
1134   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1135     datadir=$ac_optarg ;;
1136
1137   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1138   | --dataroo | --dataro | --datar)
1139     ac_prev=datarootdir ;;
1140   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1141   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1142     datarootdir=$ac_optarg ;;
1143
1144   -disable-* | --disable-*)
1145     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1146     # Reject names that are not valid shell variable names.
1147     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1148       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1149    { (exit 1); exit 1; }; }
1150     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1151     eval enable_$ac_feature=no ;;
1152
1153   -docdir | --docdir | --docdi | --doc | --do)
1154     ac_prev=docdir ;;
1155   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1156     docdir=$ac_optarg ;;
1157
1158   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1159     ac_prev=dvidir ;;
1160   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1161     dvidir=$ac_optarg ;;
1162
1163   -enable-* | --enable-*)
1164     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1165     # Reject names that are not valid shell variable names.
1166     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1167       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1168    { (exit 1); exit 1; }; }
1169     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1170     eval enable_$ac_feature=\$ac_optarg ;;
1171
1172   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1173   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1174   | --exec | --exe | --ex)
1175     ac_prev=exec_prefix ;;
1176   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1177   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1178   | --exec=* | --exe=* | --ex=*)
1179     exec_prefix=$ac_optarg ;;
1180
1181   -gas | --gas | --ga | --g)
1182     # Obsolete; use --with-gas.
1183     with_gas=yes ;;
1184
1185   -help | --help | --hel | --he | -h)
1186     ac_init_help=long ;;
1187   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1188     ac_init_help=recursive ;;
1189   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1190     ac_init_help=short ;;
1191
1192   -host | --host | --hos | --ho)
1193     ac_prev=host_alias ;;
1194   -host=* | --host=* | --hos=* | --ho=*)
1195     host_alias=$ac_optarg ;;
1196
1197   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1198     ac_prev=htmldir ;;
1199   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1200   | --ht=*)
1201     htmldir=$ac_optarg ;;
1202
1203   -includedir | --includedir | --includedi | --included | --include \
1204   | --includ | --inclu | --incl | --inc)
1205     ac_prev=includedir ;;
1206   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1207   | --includ=* | --inclu=* | --incl=* | --inc=*)
1208     includedir=$ac_optarg ;;
1209
1210   -infodir | --infodir | --infodi | --infod | --info | --inf)
1211     ac_prev=infodir ;;
1212   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1213     infodir=$ac_optarg ;;
1214
1215   -libdir | --libdir | --libdi | --libd)
1216     ac_prev=libdir ;;
1217   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1218     libdir=$ac_optarg ;;
1219
1220   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1221   | --libexe | --libex | --libe)
1222     ac_prev=libexecdir ;;
1223   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1224   | --libexe=* | --libex=* | --libe=*)
1225     libexecdir=$ac_optarg ;;
1226
1227   -localedir | --localedir | --localedi | --localed | --locale)
1228     ac_prev=localedir ;;
1229   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1230     localedir=$ac_optarg ;;
1231
1232   -localstatedir | --localstatedir | --localstatedi | --localstated \
1233   | --localstate | --localstat | --localsta | --localst | --locals)
1234     ac_prev=localstatedir ;;
1235   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1236   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1237     localstatedir=$ac_optarg ;;
1238
1239   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1240     ac_prev=mandir ;;
1241   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1242     mandir=$ac_optarg ;;
1243
1244   -nfp | --nfp | --nf)
1245     # Obsolete; use --without-fp.
1246     with_fp=no ;;
1247
1248   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1249   | --no-cr | --no-c | -n)
1250     no_create=yes ;;
1251
1252   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1253   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1254     no_recursion=yes ;;
1255
1256   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1257   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1258   | --oldin | --oldi | --old | --ol | --o)
1259     ac_prev=oldincludedir ;;
1260   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1261   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1262   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1263     oldincludedir=$ac_optarg ;;
1264
1265   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1266     ac_prev=prefix ;;
1267   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1268     prefix=$ac_optarg ;;
1269
1270   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1271   | --program-pre | --program-pr | --program-p)
1272     ac_prev=program_prefix ;;
1273   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1274   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1275     program_prefix=$ac_optarg ;;
1276
1277   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1278   | --program-suf | --program-su | --program-s)
1279     ac_prev=program_suffix ;;
1280   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1281   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1282     program_suffix=$ac_optarg ;;
1283
1284   -program-transform-name | --program-transform-name \
1285   | --program-transform-nam | --program-transform-na \
1286   | --program-transform-n | --program-transform- \
1287   | --program-transform | --program-transfor \
1288   | --program-transfo | --program-transf \
1289   | --program-trans | --program-tran \
1290   | --progr-tra | --program-tr | --program-t)
1291     ac_prev=program_transform_name ;;
1292   -program-transform-name=* | --program-transform-name=* \
1293   | --program-transform-nam=* | --program-transform-na=* \
1294   | --program-transform-n=* | --program-transform-=* \
1295   | --program-transform=* | --program-transfor=* \
1296   | --program-transfo=* | --program-transf=* \
1297   | --program-trans=* | --program-tran=* \
1298   | --progr-tra=* | --program-tr=* | --program-t=*)
1299     program_transform_name=$ac_optarg ;;
1300
1301   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1302     ac_prev=pdfdir ;;
1303   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1304     pdfdir=$ac_optarg ;;
1305
1306   -psdir | --psdir | --psdi | --psd | --ps)
1307     ac_prev=psdir ;;
1308   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1309     psdir=$ac_optarg ;;
1310
1311   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1312   | -silent | --silent | --silen | --sile | --sil)
1313     silent=yes ;;
1314
1315   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1316     ac_prev=sbindir ;;
1317   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1318   | --sbi=* | --sb=*)
1319     sbindir=$ac_optarg ;;
1320
1321   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1322   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1323   | --sharedst | --shareds | --shared | --share | --shar \
1324   | --sha | --sh)
1325     ac_prev=sharedstatedir ;;
1326   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1327   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1328   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1329   | --sha=* | --sh=*)
1330     sharedstatedir=$ac_optarg ;;
1331
1332   -site | --site | --sit)
1333     ac_prev=site ;;
1334   -site=* | --site=* | --sit=*)
1335     site=$ac_optarg ;;
1336
1337   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1338     ac_prev=srcdir ;;
1339   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1340     srcdir=$ac_optarg ;;
1341
1342   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1343   | --syscon | --sysco | --sysc | --sys | --sy)
1344     ac_prev=sysconfdir ;;
1345   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1346   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1347     sysconfdir=$ac_optarg ;;
1348
1349   -target | --target | --targe | --targ | --tar | --ta | --t)
1350     ac_prev=target_alias ;;
1351   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1352     target_alias=$ac_optarg ;;
1353
1354   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1355     verbose=yes ;;
1356
1357   -version | --version | --versio | --versi | --vers | -V)
1358     ac_init_version=: ;;
1359
1360   -with-* | --with-*)
1361     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1362     # Reject names that are not valid shell variable names.
1363     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1364       { echo "$as_me: error: invalid package name: $ac_package" >&2
1365    { (exit 1); exit 1; }; }
1366     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1367     eval with_$ac_package=\$ac_optarg ;;
1368
1369   -without-* | --without-*)
1370     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1371     # Reject names that are not valid shell variable names.
1372     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1373       { echo "$as_me: error: invalid package name: $ac_package" >&2
1374    { (exit 1); exit 1; }; }
1375     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1376     eval with_$ac_package=no ;;
1377
1378   --x)
1379     # Obsolete; use --with-x.
1380     with_x=yes ;;
1381
1382   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1383   | --x-incl | --x-inc | --x-in | --x-i)
1384     ac_prev=x_includes ;;
1385   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1386   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1387     x_includes=$ac_optarg ;;
1388
1389   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1390   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1391     ac_prev=x_libraries ;;
1392   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1393   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1394     x_libraries=$ac_optarg ;;
1395
1396   -*) { echo "$as_me: error: unrecognized option: $ac_option
1397 Try \`$0 --help' for more information." >&2
1398    { (exit 1); exit 1; }; }
1399     ;;
1400
1401   *=*)
1402     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1403     # Reject names that are not valid shell variable names.
1404     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1405       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1406    { (exit 1); exit 1; }; }
1407     eval $ac_envvar=\$ac_optarg
1408     export $ac_envvar ;;
1409
1410   *)
1411     # FIXME: should be removed in autoconf 3.0.
1412     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1413     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1414       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1415     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1416     ;;
1417
1418   esac
1419 done
1420
1421 if test -n "$ac_prev"; then
1422   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1423   { echo "$as_me: error: missing argument to $ac_option" >&2
1424    { (exit 1); exit 1; }; }
1425 fi
1426
1427 # Be sure to have absolute directory names.
1428 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1429                 datadir sysconfdir sharedstatedir localstatedir includedir \
1430                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1431                 libdir localedir mandir
1432 do
1433   eval ac_val=\$$ac_var
1434   case $ac_val in
1435     [\\/$]* | ?:[\\/]* )  continue;;
1436     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1437   esac
1438   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1439    { (exit 1); exit 1; }; }
1440 done
1441
1442 # There might be people who depend on the old broken behavior: `$host'
1443 # used to hold the argument of --host etc.
1444 # FIXME: To remove some day.
1445 build=$build_alias
1446 host=$host_alias
1447 target=$target_alias
1448
1449 # FIXME: To remove some day.
1450 if test "x$host_alias" != x; then
1451   if test "x$build_alias" = x; then
1452     cross_compiling=maybe
1453     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1454     If a cross compiler is detected then cross compile mode will be used." >&2
1455   elif test "x$build_alias" != "x$host_alias"; then
1456     cross_compiling=yes
1457   fi
1458 fi
1459
1460 ac_tool_prefix=
1461 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1462
1463 test "$silent" = yes && exec 6>/dev/null
1464
1465
1466 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1467 ac_ls_di=`ls -di .` &&
1468 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1469   { echo "$as_me: error: Working directory cannot be determined" >&2
1470    { (exit 1); exit 1; }; }
1471 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1472   { echo "$as_me: error: pwd does not report name of working directory" >&2
1473    { (exit 1); exit 1; }; }
1474
1475
1476 # Find the source files, if location was not specified.
1477 if test -z "$srcdir"; then
1478   ac_srcdir_defaulted=yes
1479   # Try the directory containing this script, then the parent directory.
1480   ac_confdir=`$as_dirname -- "$0" ||
1481 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1482          X"$0" : 'X\(//\)[^/]' \| \
1483          X"$0" : 'X\(//\)$' \| \
1484          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1485 echo X"$0" |
1486     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1487             s//\1/
1488             q
1489           }
1490           /^X\(\/\/\)[^/].*/{
1491             s//\1/
1492             q
1493           }
1494           /^X\(\/\/\)$/{
1495             s//\1/
1496             q
1497           }
1498           /^X\(\/\).*/{
1499             s//\1/
1500             q
1501           }
1502           s/.*/./; q'`
1503   srcdir=$ac_confdir
1504   if test ! -r "$srcdir/$ac_unique_file"; then
1505     srcdir=..
1506   fi
1507 else
1508   ac_srcdir_defaulted=no
1509 fi
1510 if test ! -r "$srcdir/$ac_unique_file"; then
1511   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1512   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1513    { (exit 1); exit 1; }; }
1514 fi
1515 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1516 ac_abs_confdir=`(
1517         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1518    { (exit 1); exit 1; }; }
1519         pwd)`
1520 # When building in place, set srcdir=.
1521 if test "$ac_abs_confdir" = "$ac_pwd"; then
1522   srcdir=.
1523 fi
1524 # Remove unnecessary trailing slashes from srcdir.
1525 # Double slashes in file names in object file debugging info
1526 # mess up M-x gdb in Emacs.
1527 case $srcdir in
1528 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1529 esac
1530 for ac_var in $ac_precious_vars; do
1531   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1532   eval ac_env_${ac_var}_value=\$${ac_var}
1533   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1534   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1535 done
1536
1537 #
1538 # Report the --help message.
1539 #
1540 if test "$ac_init_help" = "long"; then
1541   # Omit some internal or obsolete options to make the list less imposing.
1542   # This message is too long to be a string in the A/UX 3.1 sh.
1543   cat <<_ACEOF
1544 \`configure' configures Heimdal 1.1 to adapt to many kinds of systems.
1545
1546 Usage: $0 [OPTION]... [VAR=VALUE]...
1547
1548 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1549 VAR=VALUE.  See below for descriptions of some of the useful variables.
1550
1551 Defaults for the options are specified in brackets.
1552
1553 Configuration:
1554   -h, --help              display this help and exit
1555       --help=short        display options specific to this package
1556       --help=recursive    display the short help of all the included packages
1557   -V, --version           display version information and exit
1558   -q, --quiet, --silent   do not print \`checking...' messages
1559       --cache-file=FILE   cache test results in FILE [disabled]
1560   -C, --config-cache      alias for \`--cache-file=config.cache'
1561   -n, --no-create         do not create output files
1562       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1563
1564 Installation directories:
1565   --prefix=PREFIX         install architecture-independent files in PREFIX
1566                           [$ac_default_prefix]
1567   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1568                           [PREFIX]
1569
1570 By default, \`make install' will install all the files in
1571 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1572 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1573 for instance \`--prefix=\$HOME'.
1574
1575 For better control, use the options below.
1576
1577 Fine tuning of the installation directories:
1578   --bindir=DIR           user executables [EPREFIX/bin]
1579   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1580   --libexecdir=DIR       program executables [EPREFIX/libexec]
1581   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1582   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1583   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1584   --libdir=DIR           object code libraries [EPREFIX/lib]
1585   --includedir=DIR       C header files [PREFIX/include]
1586   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1587   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1588   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1589   --infodir=DIR          info documentation [DATAROOTDIR/info]
1590   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1591   --mandir=DIR           man documentation [DATAROOTDIR/man]
1592   --docdir=DIR           documentation root [DATAROOTDIR/doc/heimdal]
1593   --htmldir=DIR          html documentation [DOCDIR]
1594   --dvidir=DIR           dvi documentation [DOCDIR]
1595   --pdfdir=DIR           pdf documentation [DOCDIR]
1596   --psdir=DIR            ps documentation [DOCDIR]
1597 _ACEOF
1598
1599   cat <<\_ACEOF
1600
1601 Program names:
1602   --program-prefix=PREFIX            prepend PREFIX to installed program names
1603   --program-suffix=SUFFIX            append SUFFIX to installed program names
1604   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1605
1606 X features:
1607   --x-includes=DIR    X include files are in DIR
1608   --x-libraries=DIR   X library files are in DIR
1609
1610 System types:
1611   --build=BUILD     configure for building on BUILD [guessed]
1612   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1613 _ACEOF
1614 fi
1615
1616 if test -n "$ac_init_help"; then
1617   case $ac_init_help in
1618      short | recursive ) echo "Configuration of Heimdal 1.1:";;
1619    esac
1620   cat <<\_ACEOF
1621
1622 Optional Features:
1623   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1624   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1625   --enable-maintainer-mode  enable make rules and dependencies not useful
1626                           (and sometimes confusing) to the casual installer
1627   --disable-largefile     omit support for large files
1628   --enable-shared[=PKGS]  build shared libraries [default=yes]
1629   --enable-static[=PKGS]  build static libraries [default=yes]
1630   --enable-fast-install[=PKGS]
1631                           optimize for fast installation [default=yes]
1632   --disable-libtool-lock  avoid locking (might break parallel builds)
1633   --enable-hdb-openldap-module
1634                           if you want support to build openldap hdb as shared
1635                           object
1636   --disable-pk-init       if you want disable to PK-INIT support
1637   --enable-pthread-support
1638                           if you want thread safe libraries
1639   --enable-dce            if you want support for DCE/DFS PAG's
1640   --disable-afs-support   if you don't want support for AFS
1641   --disable-berkeley-db   if you don't want berkeley db
1642   --disable-ndbm-db       if you don't want ndbm db
1643   --enable-developer      enable developer warnings
1644   --enable-socket-wrapper use sambas socket-wrapper for testing
1645   --disable-otp           if you don't want OTP support
1646   --enable-osfc2          enable some OSF C2 support
1647   --disable-mmap          disable use of mmap
1648   --disable-afs-string-to-key
1649                           disable use of weak AFS string-to-key functions
1650   --enable-bigendian      the target is big endian
1651   --enable-littleendian   the target is little endian
1652   --disable-dynamic-afs   do not use loaded AFS library with AIX
1653   --enable-netinfo        enable netinfo for configuration lookup
1654   --enable-kcm            enable Kerberos Credentials Manager
1655
1656 Optional Packages:
1657   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1658   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1659   --with-mips-abi=abi     ABI to use for IRIX (32, n32, or 64)
1660   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1661   --with-pic              try to use only PIC/non-PIC objects [default=use
1662                           both]
1663   --with-tags[=TAGS]      include additional configurations [automatic]
1664   --with-openldap=dir     use openldap in dir
1665   --with-openldap-lib=dir use openldap libraries in dir
1666   --with-openldap-include=dir
1667                           use openldap headers in dir
1668   --with-openldap-config=path
1669                           config program for openldap
1670   --with-hdbdir           Default location for KDC database
1671                           [default=/var/heimdal]
1672   --with-openssl=dir      use openssl in dir
1673   --with-openssl-lib=dir  use openssl libraries in dir
1674   --with-openssl-include=dir
1675                           use openssl headers in dir
1676   --without-ipv6          do not enable IPv6 support
1677   --with-readline=dir     use readline in dir
1678   --with-readline-lib=dir use readline libraries in dir
1679   --with-readline-include=dir
1680                           use readline headers in dir
1681   --with-readline-config=path
1682                           config program for readline
1683   --with-hesiod=dir       use hesiod in dir
1684   --with-hesiod-lib=dir   use hesiod libraries in dir
1685   --with-hesiod-include=dir
1686                           use hesiod headers in dir
1687   --with-hesiod-config=path
1688                           config program for hesiod
1689   --with-x                use the X Window System
1690
1691 Some influential environment variables:
1692   CC          C compiler command
1693   CFLAGS      C compiler flags
1694   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1695               nonstandard directory <lib dir>
1696   LIBS        libraries to pass to the linker, e.g. -l<library>
1697   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1698               you have headers in a nonstandard directory <include dir>
1699   CPP         C preprocessor
1700   YACC        The `Yet Another C Compiler' implementation to use. Defaults to
1701               the first program found out of: `bison -y', `byacc', `yacc'.
1702   YFLAGS      The list of arguments that will be passed by default to $YACC.
1703               This script will default YFLAGS to the empty string to avoid a
1704               default value of `-d' given by some make applications.
1705   CXX         C++ compiler command
1706   CXXFLAGS    C++ compiler flags
1707   CXXCPP      C++ preprocessor
1708   F77         Fortran 77 compiler command
1709   FFLAGS      Fortran 77 compiler flags
1710   XMKMF       Path to xmkmf, Makefile generator for X Window System
1711
1712 Use these variables to override the choices made by `configure' or to help
1713 it to find libraries and programs with nonstandard names/locations.
1714
1715 Report bugs to <heimdal-bugs@h5l.org>.
1716 _ACEOF
1717 ac_status=$?
1718 fi
1719
1720 if test "$ac_init_help" = "recursive"; then
1721   # If there are subdirs, report their specific --help.
1722   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1723     test -d "$ac_dir" || continue
1724     ac_builddir=.
1725
1726 case "$ac_dir" in
1727 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1728 *)
1729   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1730   # A ".." for each directory in $ac_dir_suffix.
1731   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1732   case $ac_top_builddir_sub in
1733   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1734   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1735   esac ;;
1736 esac
1737 ac_abs_top_builddir=$ac_pwd
1738 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1739 # for backward compatibility:
1740 ac_top_builddir=$ac_top_build_prefix
1741
1742 case $srcdir in
1743   .)  # We are building in place.
1744     ac_srcdir=.
1745     ac_top_srcdir=$ac_top_builddir_sub
1746     ac_abs_top_srcdir=$ac_pwd ;;
1747   [\\/]* | ?:[\\/]* )  # Absolute name.
1748     ac_srcdir=$srcdir$ac_dir_suffix;
1749     ac_top_srcdir=$srcdir
1750     ac_abs_top_srcdir=$srcdir ;;
1751   *) # Relative name.
1752     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1753     ac_top_srcdir=$ac_top_build_prefix$srcdir
1754     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1755 esac
1756 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1757
1758     cd "$ac_dir" || { ac_status=$?; continue; }
1759     # Check for guested configure.
1760     if test -f "$ac_srcdir/configure.gnu"; then
1761       echo &&
1762       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1763     elif test -f "$ac_srcdir/configure"; then
1764       echo &&
1765       $SHELL "$ac_srcdir/configure" --help=recursive
1766     else
1767       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1768     fi || ac_status=$?
1769     cd "$ac_pwd" || { ac_status=$?; break; }
1770   done
1771 fi
1772
1773 test -n "$ac_init_help" && exit $ac_status
1774 if $ac_init_version; then
1775   cat <<\_ACEOF
1776 Heimdal configure 1.1
1777 generated by GNU Autoconf 2.61
1778
1779 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1780 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1781 This configure script is free software; the Free Software Foundation
1782 gives unlimited permission to copy, distribute and modify it.
1783 _ACEOF
1784   exit
1785 fi
1786 cat >config.log <<_ACEOF
1787 This file contains any messages produced by compilers while
1788 running configure, to aid debugging if configure makes a mistake.
1789
1790 It was created by Heimdal $as_me 1.1, which was
1791 generated by GNU Autoconf 2.61.  Invocation command line was
1792
1793   $ $0 $@
1794
1795 _ACEOF
1796 exec 5>>config.log
1797 {
1798 cat <<_ASUNAME
1799 ## --------- ##
1800 ## Platform. ##
1801 ## --------- ##
1802
1803 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1804 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1805 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1806 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1807 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1808
1809 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1810 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1811
1812 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1813 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1814 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1815 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1816 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1817 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1818 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1819
1820 _ASUNAME
1821
1822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1823 for as_dir in $PATH
1824 do
1825   IFS=$as_save_IFS
1826   test -z "$as_dir" && as_dir=.
1827   echo "PATH: $as_dir"
1828 done
1829 IFS=$as_save_IFS
1830
1831 } >&5
1832
1833 cat >&5 <<_ACEOF
1834
1835
1836 ## ----------- ##
1837 ## Core tests. ##
1838 ## ----------- ##
1839
1840 _ACEOF
1841
1842
1843 # Keep a trace of the command line.
1844 # Strip out --no-create and --no-recursion so they do not pile up.
1845 # Strip out --silent because we don't want to record it for future runs.
1846 # Also quote any args containing shell meta-characters.
1847 # Make two passes to allow for proper duplicate-argument suppression.
1848 ac_configure_args=
1849 ac_configure_args0=
1850 ac_configure_args1=
1851 ac_must_keep_next=false
1852 for ac_pass in 1 2
1853 do
1854   for ac_arg
1855   do
1856     case $ac_arg in
1857     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1858     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1859     | -silent | --silent | --silen | --sile | --sil)
1860       continue ;;
1861     *\'*)
1862       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1863     esac
1864     case $ac_pass in
1865     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1866     2)
1867       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1868       if test $ac_must_keep_next = true; then
1869         ac_must_keep_next=false # Got value, back to normal.
1870       else
1871         case $ac_arg in
1872           *=* | --config-cache | -C | -disable-* | --disable-* \
1873           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1874           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1875           | -with-* | --with-* | -without-* | --without-* | --x)
1876             case "$ac_configure_args0 " in
1877               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1878             esac
1879             ;;
1880           -* ) ac_must_keep_next=true ;;
1881         esac
1882       fi
1883       ac_configure_args="$ac_configure_args '$ac_arg'"
1884       ;;
1885     esac
1886   done
1887 done
1888 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1889 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1890
1891 # When interrupted or exit'd, cleanup temporary files, and complete
1892 # config.log.  We remove comments because anyway the quotes in there
1893 # would cause problems or look ugly.
1894 # WARNING: Use '\'' to represent an apostrophe within the trap.
1895 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1896 trap 'exit_status=$?
1897   # Save into config.log some information that might help in debugging.
1898   {
1899     echo
1900
1901     cat <<\_ASBOX
1902 ## ---------------- ##
1903 ## Cache variables. ##
1904 ## ---------------- ##
1905 _ASBOX
1906     echo
1907     # The following way of writing the cache mishandles newlines in values,
1908 (
1909   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1910     eval ac_val=\$$ac_var
1911     case $ac_val in #(
1912     *${as_nl}*)
1913       case $ac_var in #(
1914       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1915 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1916       esac
1917       case $ac_var in #(
1918       _ | IFS | as_nl) ;; #(
1919       *) $as_unset $ac_var ;;
1920       esac ;;
1921     esac
1922   done
1923   (set) 2>&1 |
1924     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1925     *${as_nl}ac_space=\ *)
1926       sed -n \
1927         "s/'\''/'\''\\\\'\'''\''/g;
1928           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1929       ;; #(
1930     *)
1931       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1932       ;;
1933     esac |
1934     sort
1935 )
1936     echo
1937
1938     cat <<\_ASBOX
1939 ## ----------------- ##
1940 ## Output variables. ##
1941 ## ----------------- ##
1942 _ASBOX
1943     echo
1944     for ac_var in $ac_subst_vars
1945     do
1946       eval ac_val=\$$ac_var
1947       case $ac_val in
1948       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1949       esac
1950       echo "$ac_var='\''$ac_val'\''"
1951     done | sort
1952     echo
1953
1954     if test -n "$ac_subst_files"; then
1955       cat <<\_ASBOX
1956 ## ------------------- ##
1957 ## File substitutions. ##
1958 ## ------------------- ##
1959 _ASBOX
1960       echo
1961       for ac_var in $ac_subst_files
1962       do
1963         eval ac_val=\$$ac_var
1964         case $ac_val in
1965         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1966         esac
1967         echo "$ac_var='\''$ac_val'\''"
1968       done | sort
1969       echo
1970     fi
1971
1972     if test -s confdefs.h; then
1973       cat <<\_ASBOX
1974 ## ----------- ##
1975 ## confdefs.h. ##
1976 ## ----------- ##
1977 _ASBOX
1978       echo
1979       cat confdefs.h
1980       echo
1981     fi
1982     test "$ac_signal" != 0 &&
1983       echo "$as_me: caught signal $ac_signal"
1984     echo "$as_me: exit $exit_status"
1985   } >&5
1986   rm -f core *.core core.conftest.* &&
1987     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1988     exit $exit_status
1989 ' 0
1990 for ac_signal in 1 2 13 15; do
1991   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1992 done
1993 ac_signal=0
1994
1995 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1996 rm -f -r conftest* confdefs.h
1997
1998 # Predefined preprocessor variables.
1999
2000 cat >>confdefs.h <<_ACEOF
2001 #define PACKAGE_NAME "$PACKAGE_NAME"
2002 _ACEOF
2003
2004
2005 cat >>confdefs.h <<_ACEOF
2006 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2007 _ACEOF
2008
2009
2010 cat >>confdefs.h <<_ACEOF
2011 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2012 _ACEOF
2013
2014
2015 cat >>confdefs.h <<_ACEOF
2016 #define PACKAGE_STRING "$PACKAGE_STRING"
2017 _ACEOF
2018
2019
2020 cat >>confdefs.h <<_ACEOF
2021 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2022 _ACEOF
2023
2024
2025 # Let the site file select an alternate cache file if it wants to.
2026 # Prefer explicitly selected file to automatically selected ones.
2027 if test -n "$CONFIG_SITE"; then
2028   set x "$CONFIG_SITE"
2029 elif test "x$prefix" != xNONE; then
2030   set x "$prefix/share/config.site" "$prefix/etc/config.site"
2031 else
2032   set x "$ac_default_prefix/share/config.site" \
2033         "$ac_default_prefix/etc/config.site"
2034 fi
2035 shift
2036 for ac_site_file
2037 do
2038   if test -r "$ac_site_file"; then
2039     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2040 echo "$as_me: loading site script $ac_site_file" >&6;}
2041     sed 's/^/| /' "$ac_site_file" >&5
2042     . "$ac_site_file"
2043   fi
2044 done
2045
2046 if test -r "$cache_file"; then
2047   # Some versions of bash will fail to source /dev/null (special
2048   # files actually), so we avoid doing that.
2049   if test -f "$cache_file"; then
2050     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2051 echo "$as_me: loading cache $cache_file" >&6;}
2052     case $cache_file in
2053       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2054       *)                      . "./$cache_file";;
2055     esac
2056   fi
2057 else
2058   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2059 echo "$as_me: creating cache $cache_file" >&6;}
2060   >$cache_file
2061 fi
2062
2063 # Check that the precious variables saved in the cache have kept the same
2064 # value.
2065 ac_cache_corrupted=false
2066 for ac_var in $ac_precious_vars; do
2067   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2068   eval ac_new_set=\$ac_env_${ac_var}_set
2069   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2070   eval ac_new_val=\$ac_env_${ac_var}_value
2071   case $ac_old_set,$ac_new_set in
2072     set,)
2073       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2074 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2075       ac_cache_corrupted=: ;;
2076     ,set)
2077       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2078 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2079       ac_cache_corrupted=: ;;
2080     ,);;
2081     *)
2082       if test "x$ac_old_val" != "x$ac_new_val"; then
2083         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2084 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2085         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
2086 echo "$as_me:   former value:  $ac_old_val" >&2;}
2087         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
2088 echo "$as_me:   current value: $ac_new_val" >&2;}
2089         ac_cache_corrupted=:
2090       fi;;
2091   esac
2092   # Pass precious variables to config.status.
2093   if test "$ac_new_set" = set; then
2094     case $ac_new_val in
2095     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2096     *) ac_arg=$ac_var=$ac_new_val ;;
2097     esac
2098     case " $ac_configure_args " in
2099       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2100       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2101     esac
2102   fi
2103 done
2104 if $ac_cache_corrupted; then
2105   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2106 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2107   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2108 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2109    { (exit 1); exit 1; }; }
2110 fi
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136 ac_ext=c
2137 ac_cpp='$CPP $CPPFLAGS'
2138 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2139 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2140 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2141
2142
2143
2144 ac_config_headers="$ac_config_headers include/config.h"
2145
2146
2147 am__api_version='1.10'
2148
2149 ac_aux_dir=
2150 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2151   if test -f "$ac_dir/install-sh"; then
2152     ac_aux_dir=$ac_dir
2153     ac_install_sh="$ac_aux_dir/install-sh -c"
2154     break
2155   elif test -f "$ac_dir/install.sh"; then
2156     ac_aux_dir=$ac_dir
2157     ac_install_sh="$ac_aux_dir/install.sh -c"
2158     break
2159   elif test -f "$ac_dir/shtool"; then
2160     ac_aux_dir=$ac_dir
2161     ac_install_sh="$ac_aux_dir/shtool install -c"
2162     break
2163   fi
2164 done
2165 if test -z "$ac_aux_dir"; then
2166   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2167 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2168    { (exit 1); exit 1; }; }
2169 fi
2170
2171 # These three variables are undocumented and unsupported,
2172 # and are intended to be withdrawn in a future Autoconf release.
2173 # They can cause serious problems if a builder's source tree is in a directory
2174 # whose full name contains unusual characters.
2175 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2176 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2177 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2178
2179
2180 # Find a good install program.  We prefer a C program (faster),
2181 # so one script is as good as another.  But avoid the broken or
2182 # incompatible versions:
2183 # SysV /etc/install, /usr/sbin/install
2184 # SunOS /usr/etc/install
2185 # IRIX /sbin/install
2186 # AIX /bin/install
2187 # AmigaOS /C/install, which installs bootblocks on floppy discs
2188 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2189 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2190 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2191 # OS/2's system install, which has a completely different semantic
2192 # ./install, which can be erroneously created by make from ./install.sh.
2193 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2194 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2195 if test -z "$INSTALL"; then
2196 if test "${ac_cv_path_install+set}" = set; then
2197   echo $ECHO_N "(cached) $ECHO_C" >&6
2198 else
2199   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2200 for as_dir in $PATH
2201 do
2202   IFS=$as_save_IFS
2203   test -z "$as_dir" && as_dir=.
2204   # Account for people who put trailing slashes in PATH elements.
2205 case $as_dir/ in
2206   ./ | .// | /cC/* | \
2207   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2208   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2209   /usr/ucb/* ) ;;
2210   *)
2211     # OSF1 and SCO ODT 3.0 have their own names for install.
2212     # Don't use installbsd from OSF since it installs stuff as root
2213     # by default.
2214     for ac_prog in ginstall scoinst install; do
2215       for ac_exec_ext in '' $ac_executable_extensions; do
2216         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2217           if test $ac_prog = install &&
2218             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2219             # AIX install.  It has an incompatible calling convention.
2220             :
2221           elif test $ac_prog = install &&
2222             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2223             # program-specific install script used by HP pwplus--don't use.
2224             :
2225           else
2226             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2227             break 3
2228           fi
2229         fi
2230       done
2231     done
2232     ;;
2233 esac
2234 done
2235 IFS=$as_save_IFS
2236
2237
2238 fi
2239   if test "${ac_cv_path_install+set}" = set; then
2240     INSTALL=$ac_cv_path_install
2241   else
2242     # As a last resort, use the slow shell script.  Don't cache a
2243     # value for INSTALL within a source directory, because that will
2244     # break other packages using the cache if that directory is
2245     # removed, or if the value is a relative name.
2246     INSTALL=$ac_install_sh
2247   fi
2248 fi
2249 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2250 echo "${ECHO_T}$INSTALL" >&6; }
2251
2252 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2253 # It thinks the first close brace ends the variable substitution.
2254 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2255
2256 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2257
2258 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2259
2260 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2261 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2262 # Just in case
2263 sleep 1
2264 echo timestamp > conftest.file
2265 # Do `set' in a subshell so we don't clobber the current shell's
2266 # arguments.  Must try -L first in case configure is actually a
2267 # symlink; some systems play weird games with the mod time of symlinks
2268 # (eg FreeBSD returns the mod time of the symlink's containing
2269 # directory).
2270 if (
2271    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2272    if test "$*" = "X"; then
2273       # -L didn't work.
2274       set X `ls -t $srcdir/configure conftest.file`
2275    fi
2276    rm -f conftest.file
2277    if test "$*" != "X $srcdir/configure conftest.file" \
2278       && test "$*" != "X conftest.file $srcdir/configure"; then
2279
2280       # If neither matched, then we have a broken ls.  This can happen
2281       # if, for instance, CONFIG_SHELL is bash and it inherits a
2282       # broken ls alias from the environment.  This has actually
2283       # happened.  Such a system could not be considered "sane".
2284       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2285 alias in your environment" >&5
2286 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2287 alias in your environment" >&2;}
2288    { (exit 1); exit 1; }; }
2289    fi
2290
2291    test "$2" = conftest.file
2292    )
2293 then
2294    # Ok.
2295    :
2296 else
2297    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2298 Check your system clock" >&5
2299 echo "$as_me: error: newly created file is older than distributed files!
2300 Check your system clock" >&2;}
2301    { (exit 1); exit 1; }; }
2302 fi
2303 { echo "$as_me:$LINENO: result: yes" >&5
2304 echo "${ECHO_T}yes" >&6; }
2305 test "$program_prefix" != NONE &&
2306   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2307 # Use a double $ so make ignores it.
2308 test "$program_suffix" != NONE &&
2309   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2310 # Double any \ or $.  echo might interpret backslashes.
2311 # By default was `s,x,x', remove it if useless.
2312 cat <<\_ACEOF >conftest.sed
2313 s/[\\$]/&&/g;s/;s,x,x,$//
2314 _ACEOF
2315 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2316 rm -f conftest.sed
2317
2318 # expand $ac_aux_dir to an absolute path
2319 am_aux_dir=`cd $ac_aux_dir && pwd`
2320
2321 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2322 # Use eval to expand $SHELL
2323 if eval "$MISSING --run true"; then
2324   am_missing_run="$MISSING --run "
2325 else
2326   am_missing_run=
2327   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2328 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2329 fi
2330
2331 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2332 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2333 if test -z "$MKDIR_P"; then
2334   if test "${ac_cv_path_mkdir+set}" = set; then
2335   echo $ECHO_N "(cached) $ECHO_C" >&6
2336 else
2337   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2338 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2339 do
2340   IFS=$as_save_IFS
2341   test -z "$as_dir" && as_dir=.
2342   for ac_prog in mkdir gmkdir; do
2343          for ac_exec_ext in '' $ac_executable_extensions; do
2344            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2345            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2346              'mkdir (GNU coreutils) '* | \
2347              'mkdir (coreutils) '* | \
2348              'mkdir (fileutils) '4.1*)
2349                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2350                break 3;;
2351            esac
2352          done
2353        done
2354 done
2355 IFS=$as_save_IFS
2356
2357 fi
2358
2359   if test "${ac_cv_path_mkdir+set}" = set; then
2360     MKDIR_P="$ac_cv_path_mkdir -p"
2361   else
2362     # As a last resort, use the slow shell script.  Don't cache a
2363     # value for MKDIR_P within a source directory, because that will
2364     # break other packages using the cache if that directory is
2365     # removed, or if the value is a relative name.
2366     test -d ./--version && rmdir ./--version
2367     MKDIR_P="$ac_install_sh -d"
2368   fi
2369 fi
2370 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2371 echo "${ECHO_T}$MKDIR_P" >&6; }
2372
2373 mkdir_p="$MKDIR_P"
2374 case $mkdir_p in
2375   [\\/$]* | ?:[\\/]*) ;;
2376   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2377 esac
2378
2379 for ac_prog in gawk mawk nawk awk
2380 do
2381   # Extract the first word of "$ac_prog", so it can be a program name with args.
2382 set dummy $ac_prog; ac_word=$2
2383 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2384 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2385 if test "${ac_cv_prog_AWK+set}" = set; then
2386   echo $ECHO_N "(cached) $ECHO_C" >&6
2387 else
2388   if test -n "$AWK"; then
2389   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2390 else
2391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2392 for as_dir in $PATH
2393 do
2394   IFS=$as_save_IFS
2395   test -z "$as_dir" && as_dir=.
2396   for ac_exec_ext in '' $ac_executable_extensions; do
2397   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2398     ac_cv_prog_AWK="$ac_prog"
2399     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2400     break 2
2401   fi
2402 done
2403 done
2404 IFS=$as_save_IFS
2405
2406 fi
2407 fi
2408 AWK=$ac_cv_prog_AWK
2409 if test -n "$AWK"; then
2410   { echo "$as_me:$LINENO: result: $AWK" >&5
2411 echo "${ECHO_T}$AWK" >&6; }
2412 else
2413   { echo "$as_me:$LINENO: result: no" >&5
2414 echo "${ECHO_T}no" >&6; }
2415 fi
2416
2417
2418   test -n "$AWK" && break
2419 done
2420
2421 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2422 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2423 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2424 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2425   echo $ECHO_N "(cached) $ECHO_C" >&6
2426 else
2427   cat >conftest.make <<\_ACEOF
2428 SHELL = /bin/sh
2429 all:
2430         @echo '@@@%%%=$(MAKE)=@@@%%%'
2431 _ACEOF
2432 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2433 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2434   *@@@%%%=?*=@@@%%%*)
2435     eval ac_cv_prog_make_${ac_make}_set=yes;;
2436   *)
2437     eval ac_cv_prog_make_${ac_make}_set=no;;
2438 esac
2439 rm -f conftest.make
2440 fi
2441 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2442   { echo "$as_me:$LINENO: result: yes" >&5
2443 echo "${ECHO_T}yes" >&6; }
2444   SET_MAKE=
2445 else
2446   { echo "$as_me:$LINENO: result: no" >&5
2447 echo "${ECHO_T}no" >&6; }
2448   SET_MAKE="MAKE=${MAKE-make}"
2449 fi
2450
2451 rm -rf .tst 2>/dev/null
2452 mkdir .tst 2>/dev/null
2453 if test -d .tst; then
2454   am__leading_dot=.
2455 else
2456   am__leading_dot=_
2457 fi
2458 rmdir .tst 2>/dev/null
2459
2460 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2461   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2462   # is not polluted with repeated "-I."
2463   am__isrc=' -I$(srcdir)'
2464   # test to see if srcdir already configured
2465   if test -f $srcdir/config.status; then
2466     { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2467 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2468    { (exit 1); exit 1; }; }
2469   fi
2470 fi
2471
2472 # test whether we have cygpath
2473 if test -z "$CYGPATH_W"; then
2474   if (cygpath --version) >/dev/null 2>/dev/null; then
2475     CYGPATH_W='cygpath -w'
2476   else
2477     CYGPATH_W=echo
2478   fi
2479 fi
2480
2481
2482 # Define the identity of the package.
2483  PACKAGE='heimdal'
2484  VERSION='1.1'
2485
2486
2487 cat >>confdefs.h <<_ACEOF
2488 #define PACKAGE "$PACKAGE"
2489 _ACEOF
2490
2491
2492 cat >>confdefs.h <<_ACEOF
2493 #define VERSION "$VERSION"
2494 _ACEOF
2495
2496 # Some tools Automake needs.
2497
2498 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2499
2500
2501 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2502
2503
2504 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2505
2506
2507 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2508
2509
2510 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2511
2512 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2513
2514 # Installed binaries are usually stripped using `strip' when the user
2515 # run `make install-strip'.  However `strip' might not be the right
2516 # tool to use in cross-compilation environments, therefore Automake
2517 # will honor the `STRIP' environment variable to overrule this program.
2518 if test "$cross_compiling" != no; then
2519   if test -n "$ac_tool_prefix"; then
2520   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2521 set dummy ${ac_tool_prefix}strip; ac_word=$2
2522 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2523 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2524 if test "${ac_cv_prog_STRIP+set}" = set; then
2525   echo $ECHO_N "(cached) $ECHO_C" >&6
2526 else
2527   if test -n "$STRIP"; then
2528   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2529 else
2530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2531 for as_dir in $PATH
2532 do
2533   IFS=$as_save_IFS
2534   test -z "$as_dir" && as_dir=.
2535   for ac_exec_ext in '' $ac_executable_extensions; do
2536   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2537     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2538     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2539     break 2
2540   fi
2541 done
2542 done
2543 IFS=$as_save_IFS
2544
2545 fi
2546 fi
2547 STRIP=$ac_cv_prog_STRIP
2548 if test -n "$STRIP"; then
2549   { echo "$as_me:$LINENO: result: $STRIP" >&5
2550 echo "${ECHO_T}$STRIP" >&6; }
2551 else
2552   { echo "$as_me:$LINENO: result: no" >&5
2553 echo "${ECHO_T}no" >&6; }
2554 fi
2555
2556
2557 fi
2558 if test -z "$ac_cv_prog_STRIP"; then
2559   ac_ct_STRIP=$STRIP
2560   # Extract the first word of "strip", so it can be a program name with args.
2561 set dummy strip; ac_word=$2
2562 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2563 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2564 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2565   echo $ECHO_N "(cached) $ECHO_C" >&6
2566 else
2567   if test -n "$ac_ct_STRIP"; then
2568   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2569 else
2570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2571 for as_dir in $PATH
2572 do
2573   IFS=$as_save_IFS
2574   test -z "$as_dir" && as_dir=.
2575   for ac_exec_ext in '' $ac_executable_extensions; do
2576   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2577     ac_cv_prog_ac_ct_STRIP="strip"
2578     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2579     break 2
2580   fi
2581 done
2582 done
2583 IFS=$as_save_IFS
2584
2585 fi
2586 fi
2587 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2588 if test -n "$ac_ct_STRIP"; then
2589   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2590 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2591 else
2592   { echo "$as_me:$LINENO: result: no" >&5
2593 echo "${ECHO_T}no" >&6; }
2594 fi
2595
2596   if test "x$ac_ct_STRIP" = x; then
2597     STRIP=":"
2598   else
2599     case $cross_compiling:$ac_tool_warned in
2600 yes:)
2601 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2602 whose name does not start with the host triplet.  If you think this
2603 configuration is useful to you, please write to autoconf@gnu.org." >&5
2604 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2605 whose name does not start with the host triplet.  If you think this
2606 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2607 ac_tool_warned=yes ;;
2608 esac
2609     STRIP=$ac_ct_STRIP
2610   fi
2611 else
2612   STRIP="$ac_cv_prog_STRIP"
2613 fi
2614
2615 fi
2616 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2617
2618 # We need awk for the "check" target.  The system "awk" is bad on
2619 # some platforms.
2620 # Always define AMTAR for backward compatibility.
2621
2622 AMTAR=${AMTAR-"${am_missing_run}tar"}
2623
2624 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2625
2626
2627
2628
2629
2630 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2631 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2632     # Check whether --enable-maintainer-mode was given.
2633 if test "${enable_maintainer_mode+set}" = set; then
2634   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2635 else
2636   USE_MAINTAINER_MODE=no
2637 fi
2638
2639   { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2640 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2641    if test $USE_MAINTAINER_MODE = yes; then
2642   MAINTAINER_MODE_TRUE=
2643   MAINTAINER_MODE_FALSE='#'
2644 else
2645   MAINTAINER_MODE_TRUE='#'
2646   MAINTAINER_MODE_FALSE=
2647 fi
2648
2649   MAINT=$MAINTAINER_MODE_TRUE
2650
2651
2652
2653 ac_ext=c
2654 ac_cpp='$CPP $CPPFLAGS'
2655 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2656 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2657 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2658 if test -n "$ac_tool_prefix"; then
2659   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2660 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2661 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2662 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2663 if test "${ac_cv_prog_CC+set}" = set; then
2664   echo $ECHO_N "(cached) $ECHO_C" >&6
2665 else
2666   if test -n "$CC"; then
2667   ac_cv_prog_CC="$CC" # Let the user override the test.
2668 else
2669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2670 for as_dir in $PATH
2671 do
2672   IFS=$as_save_IFS
2673   test -z "$as_dir" && as_dir=.
2674   for ac_exec_ext in '' $ac_executable_extensions; do
2675   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2676     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2677     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2678     break 2
2679   fi
2680 done
2681 done
2682 IFS=$as_save_IFS
2683
2684 fi
2685 fi
2686 CC=$ac_cv_prog_CC
2687 if test -n "$CC"; then
2688   { echo "$as_me:$LINENO: result: $CC" >&5
2689 echo "${ECHO_T}$CC" >&6; }
2690 else
2691   { echo "$as_me:$LINENO: result: no" >&5
2692 echo "${ECHO_T}no" >&6; }
2693 fi
2694
2695
2696 fi
2697 if test -z "$ac_cv_prog_CC"; then
2698   ac_ct_CC=$CC
2699   # Extract the first word of "gcc", so it can be a program name with args.
2700 set dummy gcc; ac_word=$2
2701 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2702 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2703 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2704   echo $ECHO_N "(cached) $ECHO_C" >&6
2705 else
2706   if test -n "$ac_ct_CC"; then
2707   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2708 else
2709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2710 for as_dir in $PATH
2711 do
2712   IFS=$as_save_IFS
2713   test -z "$as_dir" && as_dir=.
2714   for ac_exec_ext in '' $ac_executable_extensions; do
2715   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2716     ac_cv_prog_ac_ct_CC="gcc"
2717     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2718     break 2
2719   fi
2720 done
2721 done
2722 IFS=$as_save_IFS
2723
2724 fi
2725 fi
2726 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2727 if test -n "$ac_ct_CC"; then
2728   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2729 echo "${ECHO_T}$ac_ct_CC" >&6; }
2730 else
2731   { echo "$as_me:$LINENO: result: no" >&5
2732 echo "${ECHO_T}no" >&6; }
2733 fi
2734
2735   if test "x$ac_ct_CC" = x; then
2736     CC=""
2737   else
2738     case $cross_compiling:$ac_tool_warned in
2739 yes:)
2740 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2741 whose name does not start with the host triplet.  If you think this
2742 configuration is useful to you, please write to autoconf@gnu.org." >&5
2743 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2744 whose name does not start with the host triplet.  If you think this
2745 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2746 ac_tool_warned=yes ;;
2747 esac
2748     CC=$ac_ct_CC
2749   fi
2750 else
2751   CC="$ac_cv_prog_CC"
2752 fi
2753
2754 if test -z "$CC"; then
2755           if test -n "$ac_tool_prefix"; then
2756     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2757 set dummy ${ac_tool_prefix}cc; ac_word=$2
2758 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2759 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2760 if test "${ac_cv_prog_CC+set}" = set; then
2761   echo $ECHO_N "(cached) $ECHO_C" >&6
2762 else
2763   if test -n "$CC"; then
2764   ac_cv_prog_CC="$CC" # Let the user override the test.
2765 else
2766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2767 for as_dir in $PATH
2768 do
2769   IFS=$as_save_IFS
2770   test -z "$as_dir" && as_dir=.
2771   for ac_exec_ext in '' $ac_executable_extensions; do
2772   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2773     ac_cv_prog_CC="${ac_tool_prefix}cc"
2774     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2775     break 2
2776   fi
2777 done
2778 done
2779 IFS=$as_save_IFS
2780
2781 fi
2782 fi
2783 CC=$ac_cv_prog_CC
2784 if test -n "$CC"; then
2785   { echo "$as_me:$LINENO: result: $CC" >&5
2786 echo "${ECHO_T}$CC" >&6; }
2787 else
2788   { echo "$as_me:$LINENO: result: no" >&5
2789 echo "${ECHO_T}no" >&6; }
2790 fi
2791
2792
2793   fi
2794 fi
2795 if test -z "$CC"; then
2796   # Extract the first word of "cc", so it can be a program name with args.
2797 set dummy cc; ac_word=$2
2798 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2799 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2800 if test "${ac_cv_prog_CC+set}" = set; then
2801   echo $ECHO_N "(cached) $ECHO_C" >&6
2802 else
2803   if test -n "$CC"; then
2804   ac_cv_prog_CC="$CC" # Let the user override the test.
2805 else
2806   ac_prog_rejected=no
2807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2808 for as_dir in $PATH
2809 do
2810   IFS=$as_save_IFS
2811   test -z "$as_dir" && as_dir=.
2812   for ac_exec_ext in '' $ac_executable_extensions; do
2813   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2814     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2815        ac_prog_rejected=yes
2816        continue
2817      fi
2818     ac_cv_prog_CC="cc"
2819     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2820     break 2
2821   fi
2822 done
2823 done
2824 IFS=$as_save_IFS
2825
2826 if test $ac_prog_rejected = yes; then
2827   # We found a bogon in the path, so make sure we never use it.
2828   set dummy $ac_cv_prog_CC
2829   shift
2830   if test $# != 0; then
2831     # We chose a different compiler from the bogus one.
2832     # However, it has the same basename, so the bogon will be chosen
2833     # first if we set CC to just the basename; use the full file name.
2834     shift
2835     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2836   fi
2837 fi
2838 fi
2839 fi
2840 CC=$ac_cv_prog_CC
2841 if test -n "$CC"; then
2842   { echo "$as_me:$LINENO: result: $CC" >&5
2843 echo "${ECHO_T}$CC" >&6; }
2844 else
2845   { echo "$as_me:$LINENO: result: no" >&5
2846 echo "${ECHO_T}no" >&6; }
2847 fi
2848
2849
2850 fi
2851 if test -z "$CC"; then
2852   if test -n "$ac_tool_prefix"; then
2853   for ac_prog in cl.exe
2854   do
2855     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2856 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2857 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2859 if test "${ac_cv_prog_CC+set}" = set; then
2860   echo $ECHO_N "(cached) $ECHO_C" >&6
2861 else
2862   if test -n "$CC"; then
2863   ac_cv_prog_CC="$CC" # Let the user override the test.
2864 else
2865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2866 for as_dir in $PATH
2867 do
2868   IFS=$as_save_IFS
2869   test -z "$as_dir" && as_dir=.
2870   for ac_exec_ext in '' $ac_executable_extensions; do
2871   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2872     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2873     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2874     break 2
2875   fi
2876 done
2877 done
2878 IFS=$as_save_IFS
2879
2880 fi
2881 fi
2882 CC=$ac_cv_prog_CC
2883 if test -n "$CC"; then
2884   { echo "$as_me:$LINENO: result: $CC" >&5
2885 echo "${ECHO_T}$CC" >&6; }
2886 else
2887   { echo "$as_me:$LINENO: result: no" >&5
2888 echo "${ECHO_T}no" >&6; }
2889 fi
2890
2891
2892     test -n "$CC" && break
2893   done
2894 fi
2895 if test -z "$CC"; then
2896   ac_ct_CC=$CC
2897   for ac_prog in cl.exe
2898 do
2899   # Extract the first word of "$ac_prog", so it can be a program name with args.
2900 set dummy $ac_prog; ac_word=$2
2901 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2902 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2903 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2904   echo $ECHO_N "(cached) $ECHO_C" >&6
2905 else
2906   if test -n "$ac_ct_CC"; then
2907   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2908 else
2909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2910 for as_dir in $PATH
2911 do
2912   IFS=$as_save_IFS
2913   test -z "$as_dir" && as_dir=.
2914   for ac_exec_ext in '' $ac_executable_extensions; do
2915   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2916     ac_cv_prog_ac_ct_CC="$ac_prog"
2917     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2918     break 2
2919   fi
2920 done
2921 done
2922 IFS=$as_save_IFS
2923
2924 fi
2925 fi
2926 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2927 if test -n "$ac_ct_CC"; then
2928   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2929 echo "${ECHO_T}$ac_ct_CC" >&6; }
2930 else
2931   { echo "$as_me:$LINENO: result: no" >&5
2932 echo "${ECHO_T}no" >&6; }
2933 fi
2934
2935
2936   test -n "$ac_ct_CC" && break
2937 done
2938
2939   if test "x$ac_ct_CC" = x; then
2940     CC=""
2941   else
2942     case $cross_compiling:$ac_tool_warned in
2943 yes:)
2944 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2945 whose name does not start with the host triplet.  If you think this
2946 configuration is useful to you, please write to autoconf@gnu.org." >&5
2947 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2948 whose name does not start with the host triplet.  If you think this
2949 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2950 ac_tool_warned=yes ;;
2951 esac
2952     CC=$ac_ct_CC
2953   fi
2954 fi
2955
2956 fi
2957
2958
2959 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2960 See \`config.log' for more details." >&5
2961 echo "$as_me: error: no acceptable C compiler found in \$PATH
2962 See \`config.log' for more details." >&2;}
2963    { (exit 1); exit 1; }; }
2964
2965 # Provide some information about the compiler.
2966 echo "$as_me:$LINENO: checking for C compiler version" >&5
2967 ac_compiler=`set X $ac_compile; echo $2`
2968 { (ac_try="$ac_compiler --version >&5"
2969 case "(($ac_try" in
2970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2971   *) ac_try_echo=$ac_try;;
2972 esac
2973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2974   (eval "$ac_compiler --version >&5") 2>&5
2975   ac_status=$?
2976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2977   (exit $ac_status); }
2978 { (ac_try="$ac_compiler -v >&5"
2979 case "(($ac_try" in
2980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2981   *) ac_try_echo=$ac_try;;
2982 esac
2983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2984   (eval "$ac_compiler -v >&5") 2>&5
2985   ac_status=$?
2986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2987   (exit $ac_status); }
2988 { (ac_try="$ac_compiler -V >&5"
2989 case "(($ac_try" in
2990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2991   *) ac_try_echo=$ac_try;;
2992 esac
2993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2994   (eval "$ac_compiler -V >&5") 2>&5
2995   ac_status=$?
2996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2997   (exit $ac_status); }
2998
2999 cat >conftest.$ac_ext <<_ACEOF
3000 /* confdefs.h.  */
3001 _ACEOF
3002 cat confdefs.h >>conftest.$ac_ext
3003 cat >>conftest.$ac_ext <<_ACEOF
3004 /* end confdefs.h.  */
3005
3006 int
3007 main ()
3008 {
3009
3010   ;
3011   return 0;
3012 }
3013 _ACEOF
3014 ac_clean_files_save=$ac_clean_files
3015 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3016 # Try to create an executable without -o first, disregard a.out.
3017 # It will help us diagnose broken compilers, and finding out an intuition
3018 # of exeext.
3019 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3020 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3021 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3022 #
3023 # List of possible output files, starting from the most likely.
3024 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3025 # only as a last resort.  b.out is created by i960 compilers.
3026 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3027 #
3028 # The IRIX 6 linker writes into existing files which may not be
3029 # executable, retaining their permissions.  Remove them first so a
3030 # subsequent execution test works.
3031 ac_rmfiles=
3032 for ac_file in $ac_files
3033 do
3034   case $ac_file in
3035     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3036     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3037   esac
3038 done
3039 rm -f $ac_rmfiles
3040
3041 if { (ac_try="$ac_link_default"
3042 case "(($ac_try" in
3043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3044   *) ac_try_echo=$ac_try;;
3045 esac
3046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3047   (eval "$ac_link_default") 2>&5
3048   ac_status=$?
3049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050   (exit $ac_status); }; then
3051   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3052 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3053 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3054 # so that the user can short-circuit this test for compilers unknown to
3055 # Autoconf.
3056 for ac_file in $ac_files ''
3057 do
3058   test -f "$ac_file" || continue
3059   case $ac_file in
3060     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3061         ;;
3062     [ab].out )
3063         # We found the default executable, but exeext='' is most
3064         # certainly right.
3065         break;;
3066     *.* )
3067         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3068         then :; else
3069            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3070         fi
3071         # We set ac_cv_exeext here because the later test for it is not
3072         # safe: cross compilers may not add the suffix if given an `-o'
3073         # argument, so we may need to know it at that point already.
3074         # Even if this section looks crufty: it has the advantage of
3075         # actually working.
3076         break;;
3077     * )
3078         break;;
3079   esac
3080 done
3081 test "$ac_cv_exeext" = no && ac_cv_exeext=
3082
3083 else
3084   ac_file=''
3085 fi
3086
3087 { echo "$as_me:$LINENO: result: $ac_file" >&5
3088 echo "${ECHO_T}$ac_file" >&6; }
3089 if test -z "$ac_file"; then
3090   echo "$as_me: failed program was:" >&5
3091 sed 's/^/| /' conftest.$ac_ext >&5
3092
3093 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3094 See \`config.log' for more details." >&5
3095 echo "$as_me: error: C compiler cannot create executables
3096 See \`config.log' for more details." >&2;}
3097    { (exit 77); exit 77; }; }
3098 fi
3099
3100 ac_exeext=$ac_cv_exeext
3101
3102 # Check that the compiler produces executables we can run.  If not, either
3103 # the compiler is broken, or we cross compile.
3104 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3105 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3106 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3107 # If not cross compiling, check that we can run a simple program.
3108 if test "$cross_compiling" != yes; then
3109   if { ac_try='./$ac_file'
3110   { (case "(($ac_try" in
3111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3112   *) ac_try_echo=$ac_try;;
3113 esac
3114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3115   (eval "$ac_try") 2>&5
3116   ac_status=$?
3117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3118   (exit $ac_status); }; }; then
3119     cross_compiling=no
3120   else
3121     if test "$cross_compiling" = maybe; then
3122         cross_compiling=yes
3123     else
3124         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3125 If you meant to cross compile, use \`--host'.
3126 See \`config.log' for more details." >&5
3127 echo "$as_me: error: cannot run C compiled programs.
3128 If you meant to cross compile, use \`--host'.
3129 See \`config.log' for more details." >&2;}
3130    { (exit 1); exit 1; }; }
3131     fi
3132   fi
3133 fi
3134 { echo "$as_me:$LINENO: result: yes" >&5
3135 echo "${ECHO_T}yes" >&6; }
3136
3137 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3138 ac_clean_files=$ac_clean_files_save
3139 # Check that the compiler produces executables we can run.  If not, either
3140 # the compiler is broken, or we cross compile.
3141 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3142 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3143 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3144 echo "${ECHO_T}$cross_compiling" >&6; }
3145
3146 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3147 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3148 if { (ac_try="$ac_link"
3149 case "(($ac_try" in
3150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3151   *) ac_try_echo=$ac_try;;
3152 esac
3153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3154   (eval "$ac_link") 2>&5
3155   ac_status=$?
3156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3157   (exit $ac_status); }; then
3158   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3159 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3160 # work properly (i.e., refer to `conftest.exe'), while it won't with
3161 # `rm'.
3162 for ac_file in conftest.exe conftest conftest.*; do
3163   test -f "$ac_file" || continue
3164   case $ac_file in
3165     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3166     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3167           break;;
3168     * ) break;;
3169   esac
3170 done
3171 else
3172   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3173 See \`config.log' for more details." >&5
3174 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3175 See \`config.log' for more details." >&2;}
3176    { (exit 1); exit 1; }; }
3177 fi
3178
3179 rm -f conftest$ac_cv_exeext
3180 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3181 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3182
3183 rm -f conftest.$ac_ext
3184 EXEEXT=$ac_cv_exeext
3185 ac_exeext=$EXEEXT
3186 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3187 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3188 if test "${ac_cv_objext+set}" = set; then
3189   echo $ECHO_N "(cached) $ECHO_C" >&6
3190 else
3191   cat >conftest.$ac_ext <<_ACEOF
3192 /* confdefs.h.  */
3193 _ACEOF
3194 cat confdefs.h >>conftest.$ac_ext
3195 cat >>conftest.$ac_ext <<_ACEOF
3196 /* end confdefs.h.  */
3197
3198 int
3199 main ()
3200 {
3201
3202   ;
3203   return 0;
3204 }
3205 _ACEOF
3206 rm -f conftest.o conftest.obj
3207 if { (ac_try="$ac_compile"
3208 case "(($ac_try" in
3209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3210   *) ac_try_echo=$ac_try;;
3211 esac
3212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3213   (eval "$ac_compile") 2>&5
3214   ac_status=$?
3215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3216   (exit $ac_status); }; then
3217   for ac_file in conftest.o conftest.obj conftest.*; do
3218   test -f "$ac_file" || continue;
3219   case $ac_file in
3220     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3221     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3222        break;;
3223   esac
3224 done
3225 else
3226   echo "$as_me: failed program was:" >&5
3227 sed 's/^/| /' conftest.$ac_ext >&5
3228
3229 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3230 See \`config.log' for more details." >&5
3231 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3232 See \`config.log' for more details." >&2;}
3233    { (exit 1); exit 1; }; }
3234 fi
3235
3236 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3237 fi
3238 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3239 echo "${ECHO_T}$ac_cv_objext" >&6; }
3240 OBJEXT=$ac_cv_objext
3241 ac_objext=$OBJEXT
3242 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3243 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3244 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3245   echo $ECHO_N "(cached) $ECHO_C" >&6
3246 else
3247   cat >conftest.$ac_ext <<_ACEOF
3248 /* confdefs.h.  */
3249 _ACEOF
3250 cat confdefs.h >>conftest.$ac_ext
3251 cat >>conftest.$ac_ext <<_ACEOF
3252 /* end confdefs.h.  */
3253
3254 int
3255 main ()
3256 {
3257 #ifndef __GNUC__
3258        choke me
3259 #endif
3260
3261   ;
3262   return 0;
3263 }
3264 _ACEOF
3265 rm -f conftest.$ac_objext
3266 if { (ac_try="$ac_compile"
3267 case "(($ac_try" in
3268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3269   *) ac_try_echo=$ac_try;;
3270 esac
3271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3272   (eval "$ac_compile") 2>conftest.er1
3273   ac_status=$?
3274   grep -v '^ *+' conftest.er1 >conftest.err
3275   rm -f conftest.er1
3276   cat conftest.err >&5
3277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3278   (exit $ac_status); } && {
3279          test -z "$ac_c_werror_flag" ||
3280          test ! -s conftest.err
3281        } && test -s conftest.$ac_objext; then
3282   ac_compiler_gnu=yes
3283 else
3284   echo "$as_me: failed program was:" >&5
3285 sed 's/^/| /' conftest.$ac_ext >&5
3286
3287         ac_compiler_gnu=no
3288 fi
3289
3290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3291 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3292
3293 fi
3294 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3295 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3296 GCC=`test $ac_compiler_gnu = yes && echo yes`
3297 ac_test_CFLAGS=${CFLAGS+set}
3298 ac_save_CFLAGS=$CFLAGS
3299 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3300 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3301 if test "${ac_cv_prog_cc_g+set}" = set; then
3302   echo $ECHO_N "(cached) $ECHO_C" >&6
3303 else
3304   ac_save_c_werror_flag=$ac_c_werror_flag
3305    ac_c_werror_flag=yes
3306    ac_cv_prog_cc_g=no
3307    CFLAGS="-g"
3308    cat >conftest.$ac_ext <<_ACEOF
3309 /* confdefs.h.  */
3310 _ACEOF
3311 cat confdefs.h >>conftest.$ac_ext
3312 cat >>conftest.$ac_ext <<_ACEOF
3313 /* end confdefs.h.  */
3314
3315 int
3316 main ()
3317 {
3318
3319   ;
3320   return 0;
3321 }
3322 _ACEOF
3323 rm -f conftest.$ac_objext
3324 if { (ac_try="$ac_compile"
3325 case "(($ac_try" in
3326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3327   *) ac_try_echo=$ac_try;;
3328 esac
3329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3330   (eval "$ac_compile") 2>conftest.er1
3331   ac_status=$?
3332   grep -v '^ *+' conftest.er1 >conftest.err
3333   rm -f conftest.er1
3334   cat conftest.err >&5
3335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3336   (exit $ac_status); } && {
3337          test -z "$ac_c_werror_flag" ||
3338          test ! -s conftest.err
3339        } && test -s conftest.$ac_objext; then
3340   ac_cv_prog_cc_g=yes
3341 else
3342   echo "$as_me: failed program was:" >&5
3343 sed 's/^/| /' conftest.$ac_ext >&5
3344
3345         CFLAGS=""
3346       cat >conftest.$ac_ext <<_ACEOF
3347 /* confdefs.h.  */
3348 _ACEOF
3349 cat confdefs.h >>conftest.$ac_ext
3350 cat >>conftest.$ac_ext <<_ACEOF
3351 /* end confdefs.h.  */
3352
3353 int
3354 main ()
3355 {
3356
3357   ;
3358   return 0;
3359 }
3360 _ACEOF
3361 rm -f conftest.$ac_objext
3362 if { (ac_try="$ac_compile"
3363 case "(($ac_try" in
3364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3365   *) ac_try_echo=$ac_try;;
3366 esac
3367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3368   (eval "$ac_compile") 2>conftest.er1
3369   ac_status=$?
3370   grep -v '^ *+' conftest.er1 >conftest.err
3371   rm -f conftest.er1
3372   cat conftest.err >&5
3373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3374   (exit $ac_status); } && {
3375          test -z "$ac_c_werror_flag" ||
3376          test ! -s conftest.err
3377        } && test -s conftest.$ac_objext; then
3378   :
3379 else
3380   echo "$as_me: failed program was:" >&5
3381 sed 's/^/| /' conftest.$ac_ext >&5
3382
3383         ac_c_werror_flag=$ac_save_c_werror_flag
3384          CFLAGS="-g"
3385          cat >conftest.$ac_ext <<_ACEOF
3386 /* confdefs.h.  */
3387 _ACEOF
3388 cat confdefs.h >>conftest.$ac_ext
3389 cat >>conftest.$ac_ext <<_ACEOF
3390 /* end confdefs.h.  */
3391
3392 int
3393 main ()
3394 {
3395
3396   ;
3397   return 0;
3398 }
3399 _ACEOF
3400 rm -f conftest.$ac_objext
3401 if { (ac_try="$ac_compile"
3402 case "(($ac_try" in
3403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3404   *) ac_try_echo=$ac_try;;
3405 esac
3406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3407   (eval "$ac_compile") 2>conftest.er1
3408   ac_status=$?
3409   grep -v '^ *+' conftest.er1 >conftest.err
3410   rm -f conftest.er1
3411   cat conftest.err >&5
3412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3413   (exit $ac_status); } && {
3414          test -z "$ac_c_werror_flag" ||
3415          test ! -s conftest.err
3416        } && test -s conftest.$ac_objext; then
3417   ac_cv_prog_cc_g=yes
3418 else
3419   echo "$as_me: failed program was:" >&5
3420 sed 's/^/| /' conftest.$ac_ext >&5
3421
3422
3423 fi
3424
3425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3426 fi
3427
3428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3429 fi
3430
3431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3432    ac_c_werror_flag=$ac_save_c_werror_flag
3433 fi
3434 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3435 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3436 if test "$ac_test_CFLAGS" = set; then
3437   CFLAGS=$ac_save_CFLAGS
3438 elif test $ac_cv_prog_cc_g = yes; then
3439   if test "$GCC" = yes; then
3440     CFLAGS="-g -O2"
3441   else
3442     CFLAGS="-g"
3443   fi
3444 else
3445   if test "$GCC" = yes; then
3446     CFLAGS="-O2"
3447   else
3448     CFLAGS=
3449   fi
3450 fi
3451 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3452 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3453 if test "${ac_cv_prog_cc_c89+set}" = set; then
3454   echo $ECHO_N "(cached) $ECHO_C" >&6
3455 else
3456   ac_cv_prog_cc_c89=no
3457 ac_save_CC=$CC
3458 cat >conftest.$ac_ext <<_ACEOF
3459 /* confdefs.h.  */
3460 _ACEOF
3461 cat confdefs.h >>conftest.$ac_ext
3462 cat >>conftest.$ac_ext <<_ACEOF
3463 /* end confdefs.h.  */
3464 #include <stdarg.h>
3465 #include <stdio.h>
3466 #include <sys/types.h>
3467 #include <sys/stat.h>
3468 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3469 struct buf { int x; };
3470 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3471 static char *e (p, i)
3472      char **p;
3473      int i;
3474 {
3475   return p[i];
3476 }
3477 static char *f (char * (*g) (char **, int), char **p, ...)
3478 {
3479   char *s;
3480   va_list v;
3481   va_start (v,p);
3482   s = g (p, va_arg (v,int));
3483   va_end (v);
3484   return s;
3485 }
3486
3487 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3488    function prototypes and stuff, but not '\xHH' hex character constants.
3489    These don't provoke an error unfortunately, instead are silently treated
3490    as 'x'.  The following induces an error, until -std is added to get
3491    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3492    array size at least.  It's necessary to write '\x00'==0 to get something
3493    that's true only with -std.  */
3494 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3495
3496 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3497    inside strings and character constants.  */
3498 #define FOO(x) 'x'
3499 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3500
3501 int test (int i, double x);
3502 struct s1 {int (*f) (int a);};
3503 struct s2 {int (*f) (double a);};
3504 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3505 int argc;
3506 char **argv;
3507 int
3508 main ()
3509 {
3510 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3511   ;
3512   return 0;
3513 }
3514 _ACEOF
3515 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3516         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3517 do
3518   CC="$ac_save_CC $ac_arg"
3519   rm -f conftest.$ac_objext
3520 if { (ac_try="$ac_compile"
3521 case "(($ac_try" in
3522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3523   *) ac_try_echo=$ac_try;;
3524 esac
3525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3526   (eval "$ac_compile") 2>conftest.er1
3527   ac_status=$?
3528   grep -v '^ *+' conftest.er1 >conftest.err
3529   rm -f conftest.er1
3530   cat conftest.err >&5
3531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3532   (exit $ac_status); } && {
3533          test -z "$ac_c_werror_flag" ||
3534          test ! -s conftest.err
3535        } && test -s conftest.$ac_objext; then
3536   ac_cv_prog_cc_c89=$ac_arg
3537 else
3538   echo "$as_me: failed program was:" >&5
3539 sed 's/^/| /' conftest.$ac_ext >&5
3540
3541
3542 fi
3543
3544 rm -f core conftest.err conftest.$ac_objext
3545   test "x$ac_cv_prog_cc_c89" != "xno" && break
3546 done
3547 rm -f conftest.$ac_ext
3548 CC=$ac_save_CC
3549
3550 fi
3551 # AC_CACHE_VAL
3552 case "x$ac_cv_prog_cc_c89" in
3553   x)
3554     { echo "$as_me:$LINENO: result: none needed" >&5
3555 echo "${ECHO_T}none needed" >&6; } ;;
3556   xno)
3557     { echo "$as_me:$LINENO: result: unsupported" >&5
3558 echo "${ECHO_T}unsupported" >&6; } ;;
3559   *)
3560     CC="$CC $ac_cv_prog_cc_c89"
3561     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3562 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3563 esac
3564
3565
3566 ac_ext=c
3567 ac_cpp='$CPP $CPPFLAGS'
3568 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3569 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3570 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3571
3572 if test "x$CC" != xcc; then
3573   { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3574 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3575 else
3576   { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3577 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3578 fi
3579 set dummy $CC; ac_cc=`echo $2 |
3580                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3581 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3582   echo $ECHO_N "(cached) $ECHO_C" >&6
3583 else
3584   cat >conftest.$ac_ext <<_ACEOF
3585 /* confdefs.h.  */
3586 _ACEOF
3587 cat confdefs.h >>conftest.$ac_ext
3588 cat >>conftest.$ac_ext <<_ACEOF
3589 /* end confdefs.h.  */
3590
3591 int
3592 main ()
3593 {
3594
3595   ;
3596   return 0;
3597 }
3598 _ACEOF
3599 # Make sure it works both with $CC and with simple cc.
3600 # We do the test twice because some compilers refuse to overwrite an
3601 # existing .o file with -o, though they will create one.
3602 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3603 rm -f conftest2.*
3604 if { (case "(($ac_try" in
3605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3606   *) ac_try_echo=$ac_try;;
3607 esac
3608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3609   (eval "$ac_try") 2>&5
3610   ac_status=$?
3611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3612   (exit $ac_status); } &&
3613    test -f conftest2.$ac_objext && { (case "(($ac_try" in
3614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3615   *) ac_try_echo=$ac_try;;
3616 esac
3617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3618   (eval "$ac_try") 2>&5
3619   ac_status=$?
3620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3621   (exit $ac_status); };
3622 then
3623   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3624   if test "x$CC" != xcc; then
3625     # Test first that cc exists at all.
3626     if { ac_try='cc -c conftest.$ac_ext >&5'
3627   { (case "(($ac_try" in
3628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3629   *) ac_try_echo=$ac_try;;
3630 esac
3631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3632   (eval "$ac_try") 2>&5
3633   ac_status=$?
3634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3635   (exit $ac_status); }; }; then
3636       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3637       rm -f conftest2.*
3638       if { (case "(($ac_try" in
3639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3640   *) ac_try_echo=$ac_try;;
3641 esac
3642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3643   (eval "$ac_try") 2>&5
3644   ac_status=$?
3645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3646   (exit $ac_status); } &&
3647          test -f conftest2.$ac_objext && { (case "(($ac_try" in
3648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3649   *) ac_try_echo=$ac_try;;
3650 esac
3651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3652   (eval "$ac_try") 2>&5
3653   ac_status=$?
3654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3655   (exit $ac_status); };
3656       then
3657         # cc works too.
3658         :
3659       else
3660         # cc exists but doesn't like -o.
3661         eval ac_cv_prog_cc_${ac_cc}_c_o=no
3662       fi
3663     fi
3664   fi
3665 else
3666   eval ac_cv_prog_cc_${ac_cc}_c_o=no
3667 fi
3668 rm -f core conftest*
3669
3670 fi
3671 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3672   { echo "$as_me:$LINENO: result: yes" >&5
3673 echo "${ECHO_T}yes" >&6; }
3674 else
3675   { echo "$as_me:$LINENO: result: no" >&5
3676 echo "${ECHO_T}no" >&6; }
3677
3678 cat >>confdefs.h <<\_ACEOF
3679 #define NO_MINUS_C_MINUS_O 1
3680 _ACEOF
3681
3682 fi
3683
3684 # FIXME: we rely on the cache variable name because
3685 # there is no other way.
3686 set dummy $CC
3687 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3688 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
3689    # Losing compiler, so override with the script.
3690    # FIXME: It is wrong to rewrite CC.
3691    # But if we don't then we get into trouble of one sort or another.
3692    # A longer-term fix would be to have automake use am__CC in this case,
3693    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3694    CC="$am_aux_dir/compile $CC"
3695 fi
3696
3697
3698 ac_ext=c
3699 ac_cpp='$CPP $CPPFLAGS'
3700 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3701 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3702 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3703 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3704 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3705 # On Suns, sometimes $CPP names a directory.
3706 if test -n "$CPP" && test -d "$CPP"; then
3707   CPP=
3708 fi
3709 if test -z "$CPP"; then
3710   if test "${ac_cv_prog_CPP+set}" = set; then
3711   echo $ECHO_N "(cached) $ECHO_C" >&6
3712 else
3713       # Double quotes because CPP needs to be expanded
3714     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3715     do
3716       ac_preproc_ok=false
3717 for ac_c_preproc_warn_flag in '' yes
3718 do
3719   # Use a header file that comes with gcc, so configuring glibc
3720   # with a fresh cross-compiler works.
3721   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3722   # <limits.h> exists even on freestanding compilers.
3723   # On the NeXT, cc -E runs the code through the compiler's parser,
3724   # not just through cpp. "Syntax error" is here to catch this case.
3725   cat >conftest.$ac_ext <<_ACEOF
3726 /* confdefs.h.  */
3727 _ACEOF
3728 cat confdefs.h >>conftest.$ac_ext
3729 cat >>conftest.$ac_ext <<_ACEOF
3730 /* end confdefs.h.  */
3731 #ifdef __STDC__
3732 # include <limits.h>
3733 #else
3734 # include <assert.h>
3735 #endif
3736                      Syntax error
3737 _ACEOF
3738 if { (ac_try="$ac_cpp conftest.$ac_ext"
3739 case "(($ac_try" in
3740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3741   *) ac_try_echo=$ac_try;;
3742 esac
3743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3744   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3745   ac_status=$?
3746   grep -v '^ *+' conftest.er1 >conftest.err
3747   rm -f conftest.er1
3748   cat conftest.err >&5
3749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3750   (exit $ac_status); } >/dev/null && {
3751          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3752          test ! -s conftest.err
3753        }; then
3754   :
3755 else
3756   echo "$as_me: failed program was:" >&5
3757 sed 's/^/| /' conftest.$ac_ext >&5
3758
3759   # Broken: fails on valid input.
3760 continue
3761 fi
3762
3763 rm -f conftest.err conftest.$ac_ext
3764
3765   # OK, works on sane cases.  Now check whether nonexistent headers
3766   # can be detected and how.
3767   cat >conftest.$ac_ext <<_ACEOF
3768 /* confdefs.h.  */
3769 _ACEOF
3770 cat confdefs.h >>conftest.$ac_ext
3771 cat >>conftest.$ac_ext <<_ACEOF
3772 /* end confdefs.h.  */
3773 #include <ac_nonexistent.h>
3774 _ACEOF
3775 if { (ac_try="$ac_cpp conftest.$ac_ext"
3776 case "(($ac_try" in
3777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3778   *) ac_try_echo=$ac_try;;
3779 esac
3780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3781   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3782   ac_status=$?
3783   grep -v '^ *+' conftest.er1 >conftest.err
3784   rm -f conftest.er1
3785   cat conftest.err >&5
3786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3787   (exit $ac_status); } >/dev/null && {
3788          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3789          test ! -s conftest.err
3790        }; then
3791   # Broken: success on invalid input.
3792 continue
3793 else
3794   echo "$as_me: failed program was:" >&5
3795 sed 's/^/| /' conftest.$ac_ext >&5
3796
3797   # Passes both tests.
3798 ac_preproc_ok=:
3799 break
3800 fi
3801
3802 rm -f conftest.err conftest.$ac_ext
3803
3804 done
3805 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3806 rm -f conftest.err conftest.$ac_ext
3807 if $ac_preproc_ok; then
3808   break
3809 fi
3810
3811     done
3812     ac_cv_prog_CPP=$CPP
3813
3814 fi
3815   CPP=$ac_cv_prog_CPP
3816 else
3817   ac_cv_prog_CPP=$CPP
3818 fi
3819 { echo "$as_me:$LINENO: result: $CPP" >&5
3820 echo "${ECHO_T}$CPP" >&6; }
3821 ac_preproc_ok=false
3822 for ac_c_preproc_warn_flag in '' yes
3823 do
3824   # Use a header file that comes with gcc, so configuring glibc
3825   # with a fresh cross-compiler works.
3826   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3827   # <limits.h> exists even on freestanding compilers.
3828   # On the NeXT, cc -E runs the code through the compiler's parser,
3829   # not just through cpp. "Syntax error" is here to catch this case.
3830   cat >conftest.$ac_ext <<_ACEOF
3831 /* confdefs.h.  */
3832 _ACEOF
3833 cat confdefs.h >>conftest.$ac_ext
3834 cat >>conftest.$ac_ext <<_ACEOF
3835 /* end confdefs.h.  */
3836 #ifdef __STDC__
3837 # include <limits.h>
3838 #else
3839 # include <assert.h>
3840 #endif
3841                      Syntax error
3842 _ACEOF
3843 if { (ac_try="$ac_cpp conftest.$ac_ext"
3844 case "(($ac_try" in
3845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3846   *) ac_try_echo=$ac_try;;
3847 esac
3848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3849   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3850   ac_status=$?
3851   grep -v '^ *+' conftest.er1 >conftest.err
3852   rm -f conftest.er1
3853   cat conftest.err >&5
3854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3855   (exit $ac_status); } >/dev/null && {
3856          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3857          test ! -s conftest.err
3858        }; then
3859   :
3860 else
3861   echo "$as_me: failed program was:" >&5
3862 sed 's/^/| /' conftest.$ac_ext >&5
3863
3864   # Broken: fails on valid input.
3865 continue
3866 fi
3867
3868 rm -f conftest.err conftest.$ac_ext
3869
3870   # OK, works on sane cases.  Now check whether nonexistent headers
3871   # can be detected and how.
3872   cat >conftest.$ac_ext <<_ACEOF
3873 /* confdefs.h.  */
3874 _ACEOF
3875 cat confdefs.h >>conftest.$ac_ext
3876 cat >>conftest.$ac_ext <<_ACEOF
3877 /* end confdefs.h.  */
3878 #include <ac_nonexistent.h>
3879 _ACEOF
3880 if { (ac_try="$ac_cpp conftest.$ac_ext"
3881 case "(($ac_try" in
3882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3883   *) ac_try_echo=$ac_try;;
3884 esac
3885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3886   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3887   ac_status=$?
3888   grep -v '^ *+' conftest.er1 >conftest.err
3889   rm -f conftest.er1
3890   cat conftest.err >&5
3891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3892   (exit $ac_status); } >/dev/null && {
3893          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3894          test ! -s conftest.err
3895        }; then
3896   # Broken: success on invalid input.
3897 continue
3898 else
3899   echo "$as_me: failed program was:" >&5
3900 sed 's/^/| /' conftest.$ac_ext >&5
3901
3902   # Passes both tests.
3903 ac_preproc_ok=:
3904 break
3905 fi
3906
3907 rm -f conftest.err conftest.$ac_ext
3908
3909 done
3910 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3911 rm -f conftest.err conftest.$ac_ext
3912 if $ac_preproc_ok; then
3913   :
3914 else
3915   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3916 See \`config.log' for more details." >&5
3917 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3918 See \`config.log' for more details." >&2;}
3919    { (exit 1); exit 1; }; }
3920 fi
3921
3922 ac_ext=c
3923 ac_cpp='$CPP $CPPFLAGS'
3924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3927
3928
3929
3930
3931 test "$sysconfdir" = '${prefix}/etc' && sysconfdir='/etc'
3932 test "$localstatedir" = '${prefix}/var' && localstatedir='/var/heimdal'
3933
3934 # Make sure we can run config.sub.
3935 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3936   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3937 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3938    { (exit 1); exit 1; }; }
3939
3940 { echo "$as_me:$LINENO: checking build system type" >&5
3941 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3942 if test "${ac_cv_build+set}" = set; then
3943   echo $ECHO_N "(cached) $ECHO_C" >&6
3944 else
3945   ac_build_alias=$build_alias
3946 test "x$ac_build_alias" = x &&
3947   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3948 test "x$ac_build_alias" = x &&
3949   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3950 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3951    { (exit 1); exit 1; }; }
3952 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3953   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3954 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3955    { (exit 1); exit 1; }; }
3956
3957 fi
3958 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3959 echo "${ECHO_T}$ac_cv_build" >&6; }
3960 case $ac_cv_build in
3961 *-*-*) ;;
3962 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3963 echo "$as_me: error: invalid value of canonical build" >&2;}
3964    { (exit 1); exit 1; }; };;
3965 esac
3966 build=$ac_cv_build
3967 ac_save_IFS=$IFS; IFS='-'
3968 set x $ac_cv_build
3969 shift
3970 build_cpu=$1
3971 build_vendor=$2
3972 shift; shift
3973 # Remember, the first character of IFS is used to create $*,
3974 # except with old shells:
3975 build_os=$*
3976 IFS=$ac_save_IFS
3977 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3978
3979
3980 { echo "$as_me:$LINENO: checking host system type" >&5
3981 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3982 if test "${ac_cv_host+set}" = set; then
3983   echo $ECHO_N "(cached) $ECHO_C" >&6
3984 else
3985   if test "x$host_alias" = x; then
3986   ac_cv_host=$ac_cv_build
3987 else
3988   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3989     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3990 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3991    { (exit 1); exit 1; }; }
3992 fi
3993
3994 fi
3995 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3996 echo "${ECHO_T}$ac_cv_host" >&6; }
3997 case $ac_cv_host in
3998 *-*-*) ;;
3999 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4000 echo "$as_me: error: invalid value of canonical host" >&2;}
4001    { (exit 1); exit 1; }; };;
4002 esac
4003 host=$ac_cv_host
4004 ac_save_IFS=$IFS; IFS='-'
4005 set x $ac_cv_host
4006 shift
4007 host_cpu=$1
4008 host_vendor=$2
4009 shift; shift
4010 # Remember, the first character of IFS is used to create $*,
4011 # except with old shells:
4012 host_os=$*
4013 IFS=$ac_save_IFS
4014 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4015
4016
4017 CANONICAL_HOST=$host
4018
4019
4020
4021
4022
4023
4024         { echo "$as_me:$LINENO: autobuild project... ${PACKAGE_NAME:-$PACKAGE}" >&5
4025 echo "$as_me: autobuild project... ${PACKAGE_NAME:-$PACKAGE}" >&6;}
4026         { echo "$as_me:$LINENO: autobuild revision... ${PACKAGE_VERSION:-$VERSION}" >&5
4027 echo "$as_me: autobuild revision... ${PACKAGE_VERSION:-$VERSION}" >&6;}
4028         hostname=`hostname`
4029         if test "$hostname"; then
4030            { echo "$as_me:$LINENO: autobuild hostname... $hostname" >&5
4031 echo "$as_me: autobuild hostname... $hostname" >&6;}
4032         fi
4033
4034         date=`date +%Y%m%d-%H%M%S`
4035         if test "$?" != 0; then
4036            date=`date`
4037         fi
4038         if test "$date"; then
4039            { echo "$as_me:$LINENO: autobuild timestamp... $date" >&5
4040 echo "$as_me: autobuild timestamp... $date" >&6;}
4041         fi
4042
4043
4044
4045 # Check whether --enable-largefile was given.
4046 if test "${enable_largefile+set}" = set; then
4047   enableval=$enable_largefile;
4048 fi
4049
4050 if test "$enable_largefile" != no; then
4051
4052   { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4053 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
4054 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4055   echo $ECHO_N "(cached) $ECHO_C" >&6
4056 else
4057   ac_cv_sys_largefile_CC=no
4058      if test "$GCC" != yes; then
4059        ac_save_CC=$CC
4060        while :; do
4061          # IRIX 6.2 and later do not support large files by default,
4062          # so use the C compiler's -n32 option if that helps.
4063          cat >conftest.$ac_ext <<_ACEOF
4064 /* confdefs.h.  */
4065 _ACEOF
4066 cat confdefs.h >>conftest.$ac_ext
4067 cat >>conftest.$ac_ext <<_ACEOF
4068 /* end confdefs.h.  */
4069 #include <sys/types.h>
4070  /* Check that off_t can represent 2**63 - 1 correctly.
4071     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4072     since some C++ compilers masquerading as C compilers
4073     incorrectly reject 9223372036854775807.  */
4074 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4075   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4076                        && LARGE_OFF_T % 2147483647 == 1)
4077                       ? 1 : -1];
4078 int
4079 main ()
4080 {
4081
4082   ;
4083   return 0;
4084 }
4085 _ACEOF
4086          rm -f conftest.$ac_objext
4087 if { (ac_try="$ac_compile"
4088 case "(($ac_try" in
4089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4090   *) ac_try_echo=$ac_try;;
4091 esac
4092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4093   (eval "$ac_compile") 2>conftest.er1
4094   ac_status=$?
4095   grep -v '^ *+' conftest.er1 >conftest.err
4096   rm -f conftest.er1
4097   cat conftest.err >&5
4098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4099   (exit $ac_status); } && {
4100          test -z "$ac_c_werror_flag" ||
4101          test ! -s conftest.err
4102        } && test -s conftest.$ac_objext; then
4103   break
4104 else
4105   echo "$as_me: failed program was:" >&5
4106 sed 's/^/| /' conftest.$ac_ext >&5
4107
4108
4109 fi
4110
4111 rm -f core conftest.err conftest.$ac_objext
4112          CC="$CC -n32"
4113          rm -f conftest.$ac_objext
4114 if { (ac_try="$ac_compile"
4115 case "(($ac_try" in
4116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4117   *) ac_try_echo=$ac_try;;
4118 esac
4119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4120   (eval "$ac_compile") 2>conftest.er1
4121   ac_status=$?
4122   grep -v '^ *+' conftest.er1 >conftest.err
4123   rm -f conftest.er1
4124   cat conftest.err >&5
4125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4126   (exit $ac_status); } && {
4127          test -z "$ac_c_werror_flag" ||
4128          test ! -s conftest.err
4129        } && test -s conftest.$ac_objext; then
4130   ac_cv_sys_largefile_CC=' -n32'; break
4131 else
4132   echo "$as_me: failed program was:" >&5
4133 sed 's/^/| /' conftest.$ac_ext >&5
4134
4135
4136 fi
4137
4138 rm -f core conftest.err conftest.$ac_objext
4139          break
4140        done
4141        CC=$ac_save_CC
4142        rm -f conftest.$ac_ext
4143     fi
4144 fi
4145 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4146 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
4147   if test "$ac_cv_sys_largefile_CC" != no; then
4148     CC=$CC$ac_cv_sys_largefile_CC
4149   fi
4150
4151   { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4152 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
4153 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4154   echo $ECHO_N "(cached) $ECHO_C" >&6
4155 else
4156   while :; do
4157   cat >conftest.$ac_ext <<_ACEOF
4158 /* confdefs.h.  */
4159 _ACEOF
4160 cat confdefs.h >>conftest.$ac_ext
4161 cat >>conftest.$ac_ext <<_ACEOF
4162 /* end confdefs.h.  */
4163 #include <sys/types.h>
4164  /* Check that off_t can represent 2**63 - 1 correctly.
4165     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4166     since some C++ compilers masquerading as C compilers
4167     incorrectly reject 9223372036854775807.  */
4168 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4169   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4170                        && LARGE_OFF_T % 2147483647 == 1)
4171                       ? 1 : -1];
4172 int
4173 main ()
4174 {
4175
4176   ;
4177   return 0;
4178 }
4179 _ACEOF
4180 rm -f conftest.$ac_objext
4181 if { (ac_try="$ac_compile"
4182 case "(($ac_try" in
4183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4184   *) ac_try_echo=$ac_try;;
4185 esac
4186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4187   (eval "$ac_compile") 2>conftest.er1
4188   ac_status=$?
4189   grep -v '^ *+' conftest.er1 >conftest.err
4190   rm -f conftest.er1
4191   cat conftest.err >&5
4192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4193   (exit $ac_status); } && {
4194          test -z "$ac_c_werror_flag" ||
4195          test ! -s conftest.err
4196        } && test -s conftest.$ac_objext; then
4197   ac_cv_sys_file_offset_bits=no; break
4198 else
4199   echo "$as_me: failed program was:" >&5
4200 sed 's/^/| /' conftest.$ac_ext >&5
4201
4202
4203 fi
4204
4205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4206   cat >conftest.$ac_ext <<_ACEOF
4207 /* confdefs.h.  */
4208 _ACEOF
4209 cat confdefs.h >>conftest.$ac_ext
4210 cat >>conftest.$ac_ext <<_ACEOF
4211 /* end confdefs.h.  */
4212 #define _FILE_OFFSET_BITS 64
4213 #include <sys/types.h>
4214  /* Check that off_t can represent 2**63 - 1 correctly.
4215     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4216     since some C++ compilers masquerading as C compilers
4217     incorrectly reject 9223372036854775807.  */
4218 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4219   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4220                        && LARGE_OFF_T % 2147483647 == 1)
4221                       ? 1 : -1];
4222 int
4223 main ()
4224 {
4225
4226   ;
4227   return 0;
4228 }
4229 _ACEOF
4230 rm -f conftest.$ac_objext
4231 if { (ac_try="$ac_compile"
4232 case "(($ac_try" in
4233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4234   *) ac_try_echo=$ac_try;;
4235 esac
4236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4237   (eval "$ac_compile") 2>conftest.er1
4238   ac_status=$?
4239   grep -v '^ *+' conftest.er1 >conftest.err
4240   rm -f conftest.er1
4241   cat conftest.err >&5
4242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4243   (exit $ac_status); } && {
4244          test -z "$ac_c_werror_flag" ||
4245          test ! -s conftest.err
4246        } && test -s conftest.$ac_objext; then
4247   ac_cv_sys_file_offset_bits=64; break
4248 else
4249   echo "$as_me: failed program was:" >&5
4250 sed 's/^/| /' conftest.$ac_ext >&5
4251
4252
4253 fi
4254
4255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4256   ac_cv_sys_file_offset_bits=unknown
4257   break
4258 done
4259 fi
4260 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4261 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
4262 case $ac_cv_sys_file_offset_bits in #(
4263   no | unknown) ;;
4264   *)
4265 cat >>confdefs.h <<_ACEOF
4266 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4267 _ACEOF
4268 ;;
4269 esac
4270 rm -f conftest*
4271   if test $ac_cv_sys_file_offset_bits = unknown; then
4272     { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4273 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
4274 if test "${ac_cv_sys_large_files+set}" = set; then
4275   echo $ECHO_N "(cached) $ECHO_C" >&6
4276 else
4277   while :; do
4278   cat >conftest.$ac_ext <<_ACEOF
4279 /* confdefs.h.  */
4280 _ACEOF
4281 cat confdefs.h >>conftest.$ac_ext
4282 cat >>conftest.$ac_ext <<_ACEOF
4283 /* end confdefs.h.  */
4284 #include <sys/types.h>
4285  /* Check that off_t can represent 2**63 - 1 correctly.
4286     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4287     since some C++ compilers masquerading as C compilers
4288     incorrectly reject 9223372036854775807.  */
4289 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4290   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4291                        && LARGE_OFF_T % 2147483647 == 1)
4292                       ? 1 : -1];
4293 int
4294 main ()
4295 {
4296
4297   ;
4298   return 0;
4299 }
4300 _ACEOF
4301 rm -f conftest.$ac_objext
4302 if { (ac_try="$ac_compile"
4303 case "(($ac_try" in
4304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4305   *) ac_try_echo=$ac_try;;
4306 esac
4307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4308   (eval "$ac_compile") 2>conftest.er1
4309   ac_status=$?
4310   grep -v '^ *+' conftest.er1 >conftest.err
4311   rm -f conftest.er1
4312   cat conftest.err >&5
4313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4314   (exit $ac_status); } && {
4315          test -z "$ac_c_werror_flag" ||
4316          test ! -s conftest.err
4317        } && test -s conftest.$ac_objext; then
4318   ac_cv_sys_large_files=no; break
4319 else
4320   echo "$as_me: failed program was:" >&5
4321 sed 's/^/| /' conftest.$ac_ext >&5
4322
4323
4324 fi
4325
4326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4327   cat >conftest.$ac_ext <<_ACEOF
4328 /* confdefs.h.  */
4329 _ACEOF
4330 cat confdefs.h >>conftest.$ac_ext
4331 cat >>conftest.$ac_ext <<_ACEOF
4332 /* end confdefs.h.  */
4333 #define _LARGE_FILES 1
4334 #include <sys/types.h>
4335  /* Check that off_t can represent 2**63 - 1 correctly.
4336     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4337     since some C++ compilers masquerading as C compilers
4338     incorrectly reject 9223372036854775807.  */
4339 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4340   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4341                        && LARGE_OFF_T % 2147483647 == 1)
4342                       ? 1 : -1];
4343 int
4344 main ()
4345 {
4346
4347   ;
4348   return 0;
4349 }
4350 _ACEOF
4351 rm -f conftest.$ac_objext
4352 if { (ac_try="$ac_compile"
4353 case "(($ac_try" in
4354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4355   *) ac_try_echo=$ac_try;;
4356 esac
4357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4358   (eval "$ac_compile") 2>conftest.er1
4359   ac_status=$?
4360   grep -v '^ *+' conftest.er1 >conftest.err
4361   rm -f conftest.er1
4362   cat conftest.err >&5
4363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4364   (exit $ac_status); } && {
4365          test -z "$ac_c_werror_flag" ||
4366          test ! -s conftest.err
4367        } && test -s conftest.$ac_objext; then
4368   ac_cv_sys_large_files=1; break
4369 else
4370   echo "$as_me: failed program was:" >&5
4371 sed 's/^/| /' conftest.$ac_ext >&5
4372
4373
4374 fi
4375
4376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4377   ac_cv_sys_large_files=unknown
4378   break
4379 done
4380 fi
4381 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4382 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
4383 case $ac_cv_sys_large_files in #(
4384   no | unknown) ;;
4385   *)
4386 cat >>confdefs.h <<_ACEOF
4387 #define _LARGE_FILES $ac_cv_sys_large_files
4388 _ACEOF
4389 ;;
4390 esac
4391 rm -f conftest*
4392   fi
4393 fi
4394
4395
4396 if test "$enable_largefile" != no -a "$ac_cv_sys_large_files" != no; then
4397         CPPFLAGS="$CPPFLAGS -D_LARGE_FILES=$ac_cv_sys_large_files"
4398 fi
4399 if test "$enable_largefile" != no -a "$ac_cv_sys_file_offset_bits" != no; then
4400         CPPFLAGS="$CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
4401 fi
4402
4403
4404
4405 cat >>confdefs.h <<\_ACEOF
4406 #define _GNU_SOURCE 1
4407 _ACEOF
4408
4409
4410
4411
4412
4413 for ac_prog in 'bison -y' byacc
4414 do
4415   # Extract the first word of "$ac_prog", so it can be a program name with args.
4416 set dummy $ac_prog; ac_word=$2
4417 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4419 if test "${ac_cv_prog_YACC+set}" = set; then
4420   echo $ECHO_N "(cached) $ECHO_C" >&6
4421 else
4422   if test -n "$YACC"; then
4423   ac_cv_prog_YACC="$YACC" # Let the user override the test.
4424 else
4425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4426 for as_dir in $PATH
4427 do
4428   IFS=$as_save_IFS
4429   test -z "$as_dir" && as_dir=.
4430   for ac_exec_ext in '' $ac_executable_extensions; do
4431   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4432     ac_cv_prog_YACC="$ac_prog"
4433     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4434     break 2
4435   fi
4436 done
4437 done
4438 IFS=$as_save_IFS
4439
4440 fi
4441 fi
4442 YACC=$ac_cv_prog_YACC
4443 if test -n "$YACC"; then
4444   { echo "$as_me:$LINENO: result: $YACC" >&5
4445 echo "${ECHO_T}$YACC" >&6; }
4446 else
4447   { echo "$as_me:$LINENO: result: no" >&5
4448 echo "${ECHO_T}no" >&6; }
4449 fi
4450
4451
4452   test -n "$YACC" && break
4453 done
4454 test -n "$YACC" || YACC="yacc"
4455
4456 for ac_prog in flex lex
4457 do
4458   # Extract the first word of "$ac_prog", so it can be a program name with args.
4459 set dummy $ac_prog; ac_word=$2
4460 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4462 if test "${ac_cv_prog_LEX+set}" = set; then
4463   echo $ECHO_N "(cached) $ECHO_C" >&6
4464 else
4465   if test -n "$LEX"; then
4466   ac_cv_prog_LEX="$LEX" # Let the user override the test.
4467 else
4468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4469 for as_dir in $PATH
4470 do
4471   IFS=$as_save_IFS
4472   test -z "$as_dir" && as_dir=.
4473   for ac_exec_ext in '' $ac_executable_extensions; do
4474   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4475     ac_cv_prog_LEX="$ac_prog"
4476     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4477     break 2
4478   fi
4479 done
4480 done
4481 IFS=$as_save_IFS
4482
4483 fi
4484 fi
4485 LEX=$ac_cv_prog_LEX
4486 if test -n "$LEX"; then
4487   { echo "$as_me:$LINENO: result: $LEX" >&5
4488 echo "${ECHO_T}$LEX" >&6; }
4489 else
4490   { echo "$as_me:$LINENO: result: no" >&5
4491 echo "${ECHO_T}no" >&6; }
4492 fi
4493
4494
4495   test -n "$LEX" && break
4496 done
4497 test -n "$LEX" || LEX=":"
4498
4499 if test "x$LEX" != "x:"; then
4500   cat >conftest.l <<_ACEOF
4501 %%
4502 a { ECHO; }
4503 b { REJECT; }
4504 c { yymore (); }
4505 d { yyless (1); }
4506 e { yyless (input () != 0); }
4507 f { unput (yytext[0]); }
4508 . { BEGIN INITIAL; }
4509 %%
4510 #ifdef YYTEXT_POINTER
4511 extern char *yytext;
4512 #endif
4513 int
4514 main (void)
4515 {
4516   return ! yylex () + ! yywrap ();
4517 }
4518 _ACEOF
4519 { (ac_try="$LEX conftest.l"
4520 case "(($ac_try" in
4521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4522   *) ac_try_echo=$ac_try;;
4523 esac
4524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4525   (eval "$LEX conftest.l") 2>&5
4526   ac_status=$?
4527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4528   (exit $ac_status); }
4529 { echo "$as_me:$LINENO: checking lex output file root" >&5
4530 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
4531 if test "${ac_cv_prog_lex_root+set}" = set; then
4532   echo $ECHO_N "(cached) $ECHO_C" >&6
4533 else
4534
4535 if test -f lex.yy.c; then
4536   ac_cv_prog_lex_root=lex.yy
4537 elif test -f lexyy.c; then
4538   ac_cv_prog_lex_root=lexyy
4539 else
4540   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4541 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4542    { (exit 1); exit 1; }; }
4543 fi
4544 fi
4545 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4546 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
4547 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4548
4549 if test -z "${LEXLIB+set}"; then
4550   { echo "$as_me:$LINENO: checking lex library" >&5
4551 echo $ECHO_N "checking lex library... $ECHO_C" >&6; }
4552 if test "${ac_cv_lib_lex+set}" = set; then
4553   echo $ECHO_N "(cached) $ECHO_C" >&6
4554 else
4555
4556     ac_save_LIBS=$LIBS
4557     ac_cv_lib_lex='none needed'
4558     for ac_lib in '' -lfl -ll; do
4559       LIBS="$ac_lib $ac_save_LIBS"
4560       cat >conftest.$ac_ext <<_ACEOF
4561 `cat $LEX_OUTPUT_ROOT.c`
4562 _ACEOF
4563 rm -f conftest.$ac_objext conftest$ac_exeext
4564 if { (ac_try="$ac_link"
4565 case "(($ac_try" in
4566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4567   *) ac_try_echo=$ac_try;;
4568 esac
4569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4570   (eval "$ac_link") 2>conftest.er1
4571   ac_status=$?
4572   grep -v '^ *+' conftest.er1 >conftest.err
4573   rm -f conftest.er1
4574   cat conftest.err >&5
4575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4576   (exit $ac_status); } && {
4577          test -z "$ac_c_werror_flag" ||
4578          test ! -s conftest.err
4579        } && test -s conftest$ac_exeext &&
4580        $as_test_x conftest$ac_exeext; then
4581   ac_cv_lib_lex=$ac_lib
4582 else
4583   echo "$as_me: failed program was:" >&5
4584 sed 's/^/| /' conftest.$ac_ext >&5
4585
4586
4587 fi
4588
4589 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4590       conftest$ac_exeext conftest.$ac_ext
4591       test "$ac_cv_lib_lex" != 'none needed' && break
4592     done
4593     LIBS=$ac_save_LIBS
4594
4595 fi
4596 { echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
4597 echo "${ECHO_T}$ac_cv_lib_lex" >&6; }
4598   test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
4599 fi
4600
4601
4602 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4603 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
4604 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4605   echo $ECHO_N "(cached) $ECHO_C" >&6
4606 else
4607   # POSIX says lex can declare yytext either as a pointer or an array; the
4608 # default is implementation-dependent.  Figure out which it is, since
4609 # not all implementations provide the %pointer and %array declarations.
4610 ac_cv_prog_lex_yytext_pointer=no
4611 ac_save_LIBS=$LIBS
4612 LIBS="$LEXLIB $ac_save_LIBS"
4613 cat >conftest.$ac_ext <<_ACEOF
4614 #define YYTEXT_POINTER 1
4615 `cat $LEX_OUTPUT_ROOT.c`
4616 _ACEOF
4617 rm -f conftest.$ac_objext conftest$ac_exeext
4618 if { (ac_try="$ac_link"
4619 case "(($ac_try" in
4620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4621   *) ac_try_echo=$ac_try;;
4622 esac
4623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4624   (eval "$ac_link") 2>conftest.er1
4625   ac_status=$?
4626   grep -v '^ *+' conftest.er1 >conftest.err
4627   rm -f conftest.er1
4628   cat conftest.err >&5
4629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4630   (exit $ac_status); } && {
4631          test -z "$ac_c_werror_flag" ||
4632          test ! -s conftest.err
4633        } && test -s conftest$ac_exeext &&
4634        $as_test_x conftest$ac_exeext; then
4635   ac_cv_prog_lex_yytext_pointer=yes
4636 else
4637   echo "$as_me: failed program was:" >&5
4638 sed 's/^/| /' conftest.$ac_ext >&5
4639
4640
4641 fi
4642
4643 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4644       conftest$ac_exeext conftest.$ac_ext
4645 LIBS=$ac_save_LIBS
4646
4647 fi
4648 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4649 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
4650 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4651
4652 cat >>confdefs.h <<\_ACEOF
4653 #define YYTEXT_POINTER 1
4654 _ACEOF
4655
4656 fi
4657 rm -f conftest.l $LEX_OUTPUT_ROOT.c
4658
4659 fi
4660 if test "$LEX" = :; then
4661   LEX=${am_missing_run}flex
4662 fi
4663 for ac_prog in gawk mawk nawk awk
4664 do
4665   # Extract the first word of "$ac_prog", so it can be a program name with args.
4666 set dummy $ac_prog; ac_word=$2
4667 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4668 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4669 if test "${ac_cv_prog_AWK+set}" = set; then
4670   echo $ECHO_N "(cached) $ECHO_C" >&6
4671 else
4672   if test -n "$AWK"; then
4673   ac_cv_prog_AWK="$AWK" # Let the user override the test.
4674 else
4675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4676 for as_dir in $PATH
4677 do
4678   IFS=$as_save_IFS
4679   test -z "$as_dir" && as_dir=.
4680   for ac_exec_ext in '' $ac_executable_extensions; do
4681   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4682     ac_cv_prog_AWK="$ac_prog"
4683     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4684     break 2
4685   fi
4686 done
4687 done
4688 IFS=$as_save_IFS
4689
4690 fi
4691 fi
4692 AWK=$ac_cv_prog_AWK
4693 if test -n "$AWK"; then
4694   { echo "$as_me:$LINENO: result: $AWK" >&5
4695 echo "${ECHO_T}$AWK" >&6; }
4696 else
4697   { echo "$as_me:$LINENO: result: no" >&5
4698 echo "${ECHO_T}no" >&6; }
4699 fi
4700
4701
4702   test -n "$AWK" && break
4703 done
4704
4705 { echo "$as_me:$LINENO: checking for ln -s or something else" >&5
4706 echo $ECHO_N "checking for ln -s or something else... $ECHO_C" >&6; }
4707 if test "${ac_cv_prog_LN_S+set}" = set; then
4708   echo $ECHO_N "(cached) $ECHO_C" >&6
4709 else
4710   rm -f conftestdata
4711 if ln -s X conftestdata 2>/dev/null
4712 then
4713   rm -f conftestdata
4714   ac_cv_prog_LN_S="ln -s"
4715 else
4716   touch conftestdata1
4717   if ln conftestdata1 conftestdata2; then
4718     rm -f conftestdata*
4719     ac_cv_prog_LN_S=ln
4720   else
4721     ac_cv_prog_LN_S=cp
4722   fi
4723 fi
4724 fi
4725 LN_S="$ac_cv_prog_LN_S"
4726 { echo "$as_me:$LINENO: result: $ac_cv_prog_LN_S" >&5
4727 echo "${ECHO_T}$ac_cv_prog_LN_S" >&6; }
4728
4729
4730
4731
4732 # Check whether --with-mips_abi was given.
4733 if test "${with_mips_abi+set}" = set; then
4734   withval=$with_mips_abi;
4735 fi
4736
4737
4738 case "$host_os" in
4739 irix*)
4740 with_mips_abi="${with_mips_abi:-yes}"
4741 if test -n "$GCC"; then
4742
4743 # GCC < 2.8 only supports the O32 ABI. GCC >= 2.8 has a flag to select
4744 # which ABI to use, but only supports (as of 2.8.1) the N32 and 64 ABIs.
4745 #
4746 # Default to N32, but if GCC doesn't grok -mabi=n32, we assume an old
4747 # GCC and revert back to O32. The same goes if O32 is asked for - old
4748 # GCCs doesn't like the -mabi option, and new GCCs can't output O32.
4749 #
4750 # Don't you just love *all* the different SGI ABIs?
4751
4752 case "${with_mips_abi}" in
4753         32|o32) abi='-mabi=32';  abilibdirext=''     ;;
4754        n32|yes) abi='-mabi=n32'; abilibdirext='32'  ;;
4755         64) abi='-mabi=64';  abilibdirext='64'   ;;
4756         no) abi=''; abilibdirext='';;
4757          *) { { echo "$as_me:$LINENO: error: \"Invalid ABI specified\"" >&5
4758 echo "$as_me: error: \"Invalid ABI specified\"" >&2;}
4759    { (exit 1); exit 1; }; } ;;
4760 esac
4761 if test -n "$abi" ; then
4762 ac_foo=krb_cv_gcc_`echo $abi | tr =- __`
4763 { echo "$as_me:$LINENO: checking if $CC supports the $abi option" >&5
4764 echo $ECHO_N "checking if $CC supports the $abi option... $ECHO_C" >&6; }
4765 if { as_var=$ac_foo; eval "test \"\${$as_var+set}\" = set"; }; then
4766   echo $ECHO_N "(cached) $ECHO_C" >&6
4767 else
4768
4769 save_CFLAGS="$CFLAGS"
4770 CFLAGS="$CFLAGS $abi"
4771 cat >conftest.$ac_ext <<_ACEOF
4772 /* confdefs.h.  */
4773 _ACEOF
4774 cat confdefs.h >>conftest.$ac_ext
4775 cat >>conftest.$ac_ext <<_ACEOF
4776 /* end confdefs.h.  */
4777
4778 int
4779 main ()
4780 {
4781 int x;
4782   ;
4783   return 0;
4784 }
4785 _ACEOF
4786 rm -f conftest.$ac_objext
4787 if { (ac_try="$ac_compile"
4788 case "(($ac_try" in
4789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4790   *) ac_try_echo=$ac_try;;
4791 esac
4792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4793   (eval "$ac_compile") 2>conftest.er1
4794   ac_status=$?
4795   grep -v '^ *+' conftest.er1 >conftest.err
4796   rm -f conftest.er1
4797   cat conftest.err >&5
4798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4799   (exit $ac_status); } && {
4800          test -z "$ac_c_werror_flag" ||
4801          test ! -s conftest.err
4802        } && test -s conftest.$ac_objext; then
4803   eval $ac_foo=yes
4804 else
4805   echo "$as_me: failed program was:" >&5
4806 sed 's/^/| /' conftest.$ac_ext >&5
4807
4808         eval $ac_foo=no
4809 fi
4810
4811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_extCFLAGS="$save_CFLAGS"
4812
4813 fi
4814
4815 ac_res=`eval echo \\\$$ac_foo`
4816 { echo "$as_me:$LINENO: result: $ac_res" >&5
4817 echo "${ECHO_T}$ac_res" >&6; }
4818 if test $ac_res = no; then
4819 # Try to figure out why that failed...
4820 case $abi in
4821         -mabi=32)
4822         save_CFLAGS="$CFLAGS"
4823         CFLAGS="$CFLAGS -mabi=n32"
4824         cat >conftest.$ac_ext <<_ACEOF
4825 /* confdefs.h.  */
4826 _ACEOF
4827 cat confdefs.h >>conftest.$ac_ext
4828 cat >>conftest.$ac_ext <<_ACEOF
4829 /* end confdefs.h.  */
4830
4831 int
4832 main ()
4833 {
4834 int x;
4835   ;
4836   return 0;
4837 }
4838 _ACEOF
4839 rm -f conftest.$ac_objext
4840 if { (ac_try="$ac_compile"
4841 case "(($ac_try" in
4842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4843   *) ac_try_echo=$ac_try;;
4844 esac
4845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4846   (eval "$ac_compile") 2>conftest.er1
4847   ac_status=$?
4848   grep -v '^ *+' conftest.er1 >conftest.err
4849   rm -f conftest.er1
4850   cat conftest.err >&5
4851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4852   (exit $ac_status); } && {
4853          test -z "$ac_c_werror_flag" ||
4854          test ! -s conftest.err
4855        } && test -s conftest.$ac_objext; then
4856   ac_res=yes
4857 else
4858   echo "$as_me: failed program was:" >&5
4859 sed 's/^/| /' conftest.$ac_ext >&5
4860
4861         ac_res=no
4862 fi
4863
4864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext    CLAGS="$save_CFLAGS"
4865         if test $ac_res = yes; then
4866                 # New GCC
4867                 { { echo "$as_me:$LINENO: error: $CC does not support the $with_mips_abi ABI" >&5
4868 echo "$as_me: error: $CC does not support the $with_mips_abi ABI" >&2;}
4869    { (exit 1); exit 1; }; }
4870         fi
4871         # Old GCC
4872         abi=''
4873         abilibdirext=''
4874         ;;
4875         -mabi=n32|-mabi=64)
4876                 if test $with_mips_abi = yes; then
4877                         # Old GCC, default to O32
4878                         abi=''
4879                         abilibdirext=''
4880                 else
4881                         # Some broken GCC
4882                         { { echo "$as_me:$LINENO: error: $CC does not support the $with_mips_abi ABI" >&5
4883 echo "$as_me: error: $CC does not support the $with_mips_abi ABI" >&2;}
4884    { (exit 1); exit 1; }; }
4885                 fi
4886         ;;
4887 esac
4888 fi #if test $ac_res = no; then
4889 fi #if test -n "$abi" ; then
4890 else
4891 case "${with_mips_abi}" in
4892         32|o32) abi='-32'; abilibdirext=''     ;;
4893        n32|yes) abi='-n32'; abilibdirext='32'  ;;
4894         64) abi='-64'; abilibdirext='64'   ;;
4895         no) abi=''; abilibdirext='';;
4896          *) { { echo "$as_me:$LINENO: error: \"Invalid ABI specified\"" >&5
4897 echo "$as_me: error: \"Invalid ABI specified\"" >&2;}
4898    { (exit 1); exit 1; }; } ;;
4899 esac
4900 fi #if test -n "$GCC"; then
4901 ;;
4902 esac
4903
4904 CC="$CC $abi"
4905 libdir="$libdir$abilibdirext"
4906
4907
4908 { echo "$as_me:$LINENO: checking for __attribute__" >&5
4909 echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6; }
4910 if test "${ac_cv___attribute__+set}" = set; then
4911   echo $ECHO_N "(cached) $ECHO_C" >&6
4912 else
4913
4914 cat >conftest.$ac_ext <<_ACEOF
4915 /* confdefs.h.  */
4916 _ACEOF
4917 cat confdefs.h >>conftest.$ac_ext
4918 cat >>conftest.$ac_ext <<_ACEOF
4919 /* end confdefs.h.  */
4920 #include <stdlib.h>
4921 static void foo(void) __attribute__ ((noreturn));
4922
4923 static void
4924 foo(void)
4925 {
4926   exit(1);
4927 }
4928
4929 _ACEOF
4930 rm -f conftest.$ac_objext
4931 if { (ac_try="$ac_compile"
4932 case "(($ac_try" in
4933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4934   *) ac_try_echo=$ac_try;;
4935 esac
4936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4937   (eval "$ac_compile") 2>conftest.er1
4938   ac_status=$?
4939   grep -v '^ *+' conftest.er1 >conftest.err
4940   rm -f conftest.er1
4941   cat conftest.err >&5
4942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4943   (exit $ac_status); } && {
4944          test -z "$ac_c_werror_flag" ||
4945          test ! -s conftest.err
4946        } && test -s conftest.$ac_objext; then
4947   ac_cv___attribute__=yes
4948 else
4949   echo "$as_me: failed program was:" >&5
4950 sed 's/^/| /' conftest.$ac_ext >&5
4951
4952         ac_cv___attribute__=no
4953 fi
4954
4955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4956 fi
4957
4958 if test "$ac_cv___attribute__" = "yes"; then
4959
4960 cat >>confdefs.h <<\_ACEOF
4961 #define HAVE___ATTRIBUTE__ 1
4962 _ACEOF
4963
4964 fi
4965 { echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5
4966 echo "${ECHO_T}$ac_cv___attribute__" >&6; }
4967
4968
4969 # Check whether --enable-shared was given.
4970 if test "${enable_shared+set}" = set; then
4971   enableval=$enable_shared; p=${PACKAGE-default}
4972     case $enableval in
4973     yes) enable_shared=yes ;;
4974     no) enable_shared=no ;;
4975     *)
4976       enable_shared=no
4977       # Look at the argument we got.  We use all the common list separators.
4978       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4979       for pkg in $enableval; do
4980         IFS="$lt_save_ifs"
4981         if test "X$pkg" = "X$p"; then
4982           enable_shared=yes
4983         fi
4984       done
4985       IFS="$lt_save_ifs"
4986       ;;
4987     esac
4988 else
4989   enable_shared=yes
4990 fi
4991
4992
4993 # Check whether --enable-static was given.
4994 if test "${enable_static+set}" = set; then
4995   enableval=$enable_static; p=${PACKAGE-default}
4996     case $enableval in
4997     yes) enable_static=yes ;;
4998     no) enable_static=no ;;
4999     *)
5000      enable_static=no
5001       # Look at the argument we got.  We use all the common list separators.
5002       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5003       for pkg in $enableval; do
5004         IFS="$lt_save_ifs"
5005         if test "X$pkg" = "X$p"; then
5006           enable_static=yes
5007         fi
5008       done
5009       IFS="$lt_save_ifs"
5010       ;;
5011     esac
5012 else
5013   enable_static=yes
5014 fi
5015
5016
5017 # Check whether --enable-fast-install was given.
5018 if test "${enable_fast_install+set}" = set; then
5019   enableval=$enable_fast_install; p=${PACKAGE-default}
5020     case $enableval in
5021     yes) enable_fast_install=yes ;;
5022     no) enable_fast_install=no ;;
5023     *)
5024       enable_fast_install=no
5025       # Look at the argument we got.  We use all the common list separators.
5026       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5027       for pkg in $enableval; do
5028         IFS="$lt_save_ifs"
5029         if test "X$pkg" = "X$p"; then
5030           enable_fast_install=yes
5031         fi
5032       done
5033       IFS="$lt_save_ifs"
5034       ;;
5035     esac
5036 else
5037   enable_fast_install=yes
5038 fi
5039
5040
5041 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5042 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5043 if test "${lt_cv_path_SED+set}" = set; then
5044   echo $ECHO_N "(cached) $ECHO_C" >&6
5045 else
5046   # Loop through the user's path and test for sed and gsed.
5047 # Then use that list of sed's as ones to test for truncation.
5048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5049 for as_dir in $PATH
5050 do
5051   IFS=$as_save_IFS
5052   test -z "$as_dir" && as_dir=.
5053   for lt_ac_prog in sed gsed; do
5054     for ac_exec_ext in '' $ac_executable_extensions; do
5055       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5056         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5057       fi
5058     done
5059   done
5060 done
5061 lt_ac_max=0
5062 lt_ac_count=0
5063 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5064 # along with /bin/sed that truncates output.
5065 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5066   test ! -f $lt_ac_sed && continue
5067   cat /dev/null > conftest.in
5068   lt_ac_count=0
5069   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5070   # Check for GNU sed and select it if it is found.
5071   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5072     lt_cv_path_SED=$lt_ac_sed
5073     break
5074   fi
5075   while true; do
5076     cat conftest.in conftest.in >conftest.tmp
5077     mv conftest.tmp conftest.in
5078     cp conftest.in conftest.nl
5079     echo >>conftest.nl
5080     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5081     cmp -s conftest.out conftest.nl || break
5082     # 10000 chars as input seems more than enough
5083     test $lt_ac_count -gt 10 && break
5084     lt_ac_count=`expr $lt_ac_count + 1`
5085     if test $lt_ac_count -gt $lt_ac_max; then
5086       lt_ac_max=$lt_ac_count
5087       lt_cv_path_SED=$lt_ac_sed
5088     fi
5089   done
5090 done
5091
5092 fi
5093
5094 SED=$lt_cv_path_SED
5095 { echo "$as_me:$LINENO: result: $SED" >&5
5096 echo "${ECHO_T}$SED" >&6; }
5097
5098 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5099 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5100 if test "${ac_cv_path_GREP+set}" = set; then
5101   echo $ECHO_N "(cached) $ECHO_C" >&6
5102 else
5103   # Extract the first word of "grep ggrep" to use in msg output
5104 if test -z "$GREP"; then
5105 set dummy grep ggrep; ac_prog_name=$2
5106 if test "${ac_cv_path_GREP+set}" = set; then
5107   echo $ECHO_N "(cached) $ECHO_C" >&6
5108 else
5109   ac_path_GREP_found=false
5110 # Loop through the user's path and test for each of PROGNAME-LIST
5111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5112 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5113 do
5114   IFS=$as_save_IFS
5115   test -z "$as_dir" && as_dir=.
5116   for ac_prog in grep ggrep; do
5117   for ac_exec_ext in '' $ac_executable_extensions; do
5118     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5119     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5120     # Check for GNU ac_path_GREP and select it if it is found.
5121   # Check for GNU $ac_path_GREP
5122 case `"$ac_path_GREP" --version 2>&1` in
5123 *GNU*)
5124   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5125 *)
5126   ac_count=0
5127   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5128   while :
5129   do
5130     cat "conftest.in" "conftest.in" >"conftest.tmp"
5131     mv "conftest.tmp" "conftest.in"
5132     cp "conftest.in" "conftest.nl"
5133     echo 'GREP' >> "conftest.nl"
5134     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5135     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5136     ac_count=`expr $ac_count + 1`
5137     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5138       # Best one so far, save it but keep looking for a better one
5139       ac_cv_path_GREP="$ac_path_GREP"
5140       ac_path_GREP_max=$ac_count
5141     fi
5142     # 10*(2^10) chars as input seems more than enough
5143     test $ac_count -gt 10 && break
5144   done
5145   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5146 esac
5147
5148
5149     $ac_path_GREP_found && break 3
5150   done
5151 done
5152
5153 done
5154 IFS=$as_save_IFS
5155
5156
5157 fi
5158
5159 GREP="$ac_cv_path_GREP"
5160 if test -z "$GREP"; then
5161   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5162 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5163    { (exit 1); exit 1; }; }
5164 fi
5165
5166 else
5167   ac_cv_path_GREP=$GREP
5168 fi
5169
5170
5171 fi
5172 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5173 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5174  GREP="$ac_cv_path_GREP"
5175
5176
5177 { echo "$as_me:$LINENO: checking for egrep" >&5
5178 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5179 if test "${ac_cv_path_EGREP+set}" = set; then
5180   echo $ECHO_N "(cached) $ECHO_C" >&6
5181 else
5182   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5183    then ac_cv_path_EGREP="$GREP -E"
5184    else
5185      # Extract the first word of "egrep" to use in msg output
5186 if test -z "$EGREP"; then
5187 set dummy egrep; ac_prog_name=$2
5188 if test "${ac_cv_path_EGREP+set}" = set; then
5189   echo $ECHO_N "(cached) $ECHO_C" >&6
5190 else
5191   ac_path_EGREP_found=false
5192 # Loop through the user's path and test for each of PROGNAME-LIST
5193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5194 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5195 do
5196   IFS=$as_save_IFS
5197   test -z "$as_dir" && as_dir=.
5198   for ac_prog in egrep; do
5199   for ac_exec_ext in '' $ac_executable_extensions; do
5200     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5201     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5202     # Check for GNU ac_path_EGREP and select it if it is found.
5203   # Check for GNU $ac_path_EGREP
5204 case `"$ac_path_EGREP" --version 2>&1` in
5205 *GNU*)
5206   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5207 *)
5208   ac_count=0
5209   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5210   while :
5211   do
5212     cat "conftest.in" "conftest.in" >"conftest.tmp"
5213     mv "conftest.tmp" "conftest.in"
5214     cp "conftest.in" "conftest.nl"
5215     echo 'EGREP' >> "conftest.nl"
5216     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5217     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5218     ac_count=`expr $ac_count + 1`
5219     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5220       # Best one so far, save it but keep looking for a better one
5221       ac_cv_path_EGREP="$ac_path_EGREP"
5222       ac_path_EGREP_max=$ac_count
5223     fi
5224     # 10*(2^10) chars as input seems more than enough
5225     test $ac_count -gt 10 && break
5226   done
5227   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5228 esac
5229
5230
5231     $ac_path_EGREP_found && break 3
5232   done
5233 done
5234
5235 done
5236 IFS=$as_save_IFS
5237
5238
5239 fi
5240
5241 EGREP="$ac_cv_path_EGREP"
5242 if test -z "$EGREP"; then
5243   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5244 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5245    { (exit 1); exit 1; }; }
5246 fi
5247
5248 else
5249   ac_cv_path_EGREP=$EGREP
5250 fi
5251
5252
5253    fi
5254 fi
5255 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5256 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5257  EGREP="$ac_cv_path_EGREP"
5258
5259
5260
5261 # Check whether --with-gnu-ld was given.
5262 if test "${with_gnu_ld+set}" = set; then
5263   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5264 else
5265   with_gnu_ld=no
5266 fi
5267
5268 ac_prog=ld
5269 if test "$GCC" = yes; then
5270   # Check if gcc -print-prog-name=ld gives a path.
5271   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5272 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5273   case $host in
5274   *-*-mingw*)
5275     # gcc leaves a trailing carriage return which upsets mingw
5276     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5277   *)
5278     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5279   esac
5280   case $ac_prog in
5281     # Accept absolute paths.
5282     [\\/]* | ?:[\\/]*)
5283       re_direlt='/[^/][^/]*/\.\./'
5284       # Canonicalize the pathname of ld
5285       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5286       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5287         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5288       done
5289       test -z "$LD" && LD="$ac_prog"
5290       ;;
5291   "")
5292     # If it fails, then pretend we aren't using GCC.
5293     ac_prog=ld
5294     ;;
5295   *)
5296     # If it is relative, then search for the first ld in PATH.
5297     with_gnu_ld=unknown
5298     ;;
5299   esac
5300 elif test "$with_gnu_ld" = yes; then
5301   { echo "$as_me:$LINENO: checking for GNU ld" >&5
5302 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5303 else
5304   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5305 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5306 fi
5307 if test "${lt_cv_path_LD+set}" = set; then
5308   echo $ECHO_N "(cached) $ECHO_C" >&6
5309 else
5310   if test -z "$LD"; then
5311   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5312   for ac_dir in $PATH; do
5313     IFS="$lt_save_ifs"
5314     test -z "$ac_dir" && ac_dir=.
5315     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5316       lt_cv_path_LD="$ac_dir/$ac_prog"
5317       # Check to see if the program is GNU ld.  I'd rather use --version,
5318       # but apparently some variants of GNU ld only accept -v.
5319       # Break only if it was the GNU/non-GNU ld that we prefer.
5320       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5321       *GNU* | *'with BFD'*)
5322         test "$with_gnu_ld" != no && break
5323         ;;
5324       *)
5325         test "$with_gnu_ld" != yes && break
5326         ;;
5327       esac
5328     fi
5329   done
5330   IFS="$lt_save_ifs"
5331 else
5332   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5333 fi
5334 fi
5335
5336 LD="$lt_cv_path_LD"
5337 if test -n "$LD"; then
5338   { echo "$as_me:$LINENO: result: $LD" >&5
5339 echo "${ECHO_T}$LD" >&6; }
5340 else
5341   { echo "$as_me:$LINENO: result: no" >&5
5342 echo "${ECHO_T}no" >&6; }
5343 fi
5344 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5345 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5346    { (exit 1); exit 1; }; }
5347 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5348 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5349 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5350   echo $ECHO_N "(cached) $ECHO_C" >&6
5351 else
5352   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5353 case `$LD -v 2>&1 </dev/null` in
5354 *GNU* | *'with BFD'*)
5355   lt_cv_prog_gnu_ld=yes
5356   ;;
5357 *)
5358   lt_cv_prog_gnu_ld=no
5359   ;;
5360 esac
5361 fi
5362 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5363 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5364 with_gnu_ld=$lt_cv_prog_gnu_ld
5365
5366
5367 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5368 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
5369 if test "${lt_cv_ld_reload_flag+set}" = set; then
5370   echo $ECHO_N "(cached) $ECHO_C" >&6
5371 else
5372   lt_cv_ld_reload_flag='-r'
5373 fi
5374 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5375 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
5376 reload_flag=$lt_cv_ld_reload_flag
5377 case $reload_flag in
5378 "" | " "*) ;;
5379 *) reload_flag=" $reload_flag" ;;
5380 esac
5381 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5382 case $host_os in
5383   darwin*)
5384     if test "$GCC" = yes; then
5385       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5386     else
5387       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5388     fi
5389     ;;
5390 esac
5391
5392 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5393 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5394 if test "${lt_cv_path_NM+set}" = set; then
5395   echo $ECHO_N "(cached) $ECHO_C" >&6
5396 else
5397   if test -n "$NM"; then
5398   # Let the user override the test.
5399   lt_cv_path_NM="$NM"
5400 else
5401   lt_nm_to_check="${ac_tool_prefix}nm"
5402   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5403     lt_nm_to_check="$lt_nm_to_check nm"
5404   fi
5405   for lt_tmp_nm in $lt_nm_to_check; do
5406     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5407     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5408       IFS="$lt_save_ifs"
5409       test -z "$ac_dir" && ac_dir=.
5410       tmp_nm="$ac_dir/$lt_tmp_nm"
5411       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5412         # Check to see if the nm accepts a BSD-compat flag.
5413         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5414         #   nm: unknown option "B" ignored
5415         # Tru64's nm complains that /dev/null is an invalid object file
5416         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5417         */dev/null* | *'Invalid file or object type'*)
5418           lt_cv_path_NM="$tmp_nm -B"
5419           break
5420           ;;
5421         *)
5422           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5423           */dev/null*)
5424             lt_cv_path_NM="$tmp_nm -p"
5425             break
5426             ;;
5427           *)
5428             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5429             continue # so that we can try to find one that supports BSD flags
5430             ;;
5431           esac
5432           ;;
5433         esac
5434       fi
5435     done
5436     IFS="$lt_save_ifs"
5437   done
5438   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5439 fi
5440 fi
5441 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5442 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5443 NM="$lt_cv_path_NM"
5444
5445 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5446 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5447 LN_S=$as_ln_s
5448 if test "$LN_S" = "ln -s"; then
5449   { echo "$as_me:$LINENO: result: yes" >&5
5450 echo "${ECHO_T}yes" >&6; }
5451 else
5452   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5453 echo "${ECHO_T}no, using $LN_S" >&6; }
5454 fi
5455
5456 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5457 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
5458 if test "${lt_cv_deplibs_check_method+set}" = set; then
5459   echo $ECHO_N "(cached) $ECHO_C" >&6
5460 else
5461   lt_cv_file_magic_cmd='$MAGIC_CMD'
5462 lt_cv_file_magic_test_file=
5463 lt_cv_deplibs_check_method='unknown'
5464 # Need to set the preceding variable on all platforms that support
5465 # interlibrary dependencies.
5466 # 'none' -- dependencies not supported.
5467 # `unknown' -- same as none, but documents that we really don't know.
5468 # 'pass_all' -- all dependencies passed with no checks.
5469 # 'test_compile' -- check by making test program.
5470 # 'file_magic [[regex]]' -- check by looking for files in library path
5471 # which responds to the $file_magic_cmd with a given extended regex.
5472 # If you have `file' or equivalent on your system and you're not sure
5473 # whether `pass_all' will *always* work, you probably want this one.
5474
5475 case $host_os in
5476 aix4* | aix5*)
5477   lt_cv_deplibs_check_method=pass_all
5478   ;;
5479
5480 beos*)
5481   lt_cv_deplibs_check_method=pass_all
5482   ;;
5483
5484 bsdi[45]*)
5485   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5486   lt_cv_file_magic_cmd='/usr/bin/file -L'
5487   lt_cv_file_magic_test_file=/shlib/libc.so
5488   ;;
5489
5490 cygwin*)
5491   # func_win32_libid is a shell function defined in ltmain.sh
5492   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5493   lt_cv_file_magic_cmd='func_win32_libid'
5494   ;;
5495
5496 mingw* | pw32*)
5497   # Base MSYS/MinGW do not provide the 'file' command needed by
5498   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5499   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5500   lt_cv_file_magic_cmd='$OBJDUMP -f'
5501   ;;
5502
5503 darwin* | rhapsody*)
5504   lt_cv_deplibs_check_method=pass_all
5505   ;;
5506
5507 freebsd* | kfreebsd*-gnu | dragonfly*)
5508   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5509     case $host_cpu in
5510     i*86 )
5511       # Not sure whether the presence of OpenBSD here was a mistake.
5512       # Let's accept both of them until this is cleared up.
5513       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5514       lt_cv_file_magic_cmd=/usr/bin/file
5515       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5516       ;;
5517     esac
5518   else
5519     lt_cv_deplibs_check_method=pass_all
5520   fi
5521   ;;
5522
5523 gnu*)
5524   lt_cv_deplibs_check_method=pass_all
5525   ;;
5526
5527 hpux10.20* | hpux11*)
5528   lt_cv_file_magic_cmd=/usr/bin/file
5529   case $host_cpu in
5530   ia64*)
5531     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5532     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5533     ;;
5534   hppa*64*)
5535     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]'
5536     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5537     ;;
5538   *)
5539     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5540     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5541     ;;
5542   esac
5543   ;;
5544
5545 interix3*)
5546   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5547   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5548   ;;
5549
5550 irix5* | irix6* | nonstopux*)
5551   case $LD in
5552   *-32|*"-32 ") libmagic=32-bit;;
5553   *-n32|*"-n32 ") libmagic=N32;;
5554   *-64|*"-64 ") libmagic=64-bit;;
5555   *) libmagic=never-match;;
5556   esac
5557   lt_cv_deplibs_check_method=pass_all
5558   ;;
5559
5560 # This must be Linux ELF.
5561 linux*)
5562   lt_cv_deplibs_check_method=pass_all
5563   ;;
5564
5565 netbsd*)
5566   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5567     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5568   else
5569     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5570   fi
5571   ;;
5572
5573 newos6*)
5574   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5575   lt_cv_file_magic_cmd=/usr/bin/file
5576   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5577   ;;
5578
5579 nto-qnx*)
5580   lt_cv_deplibs_check_method=unknown
5581   ;;
5582
5583 openbsd*)
5584   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5585     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5586   else
5587     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5588   fi
5589   ;;
5590
5591 osf3* | osf4* | osf5*)
5592   lt_cv_deplibs_check_method=pass_all
5593   ;;
5594
5595 solaris*)
5596   lt_cv_deplibs_check_method=pass_all
5597   ;;
5598
5599 sysv4 | sysv4.3*)
5600   case $host_vendor in
5601   motorola)
5602     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]'
5603     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5604     ;;
5605   ncr)
5606     lt_cv_deplibs_check_method=pass_all
5607     ;;
5608   sequent)
5609     lt_cv_file_magic_cmd='/bin/file'
5610     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5611     ;;
5612   sni)
5613     lt_cv_file_magic_cmd='/bin/file'
5614     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5615     lt_cv_file_magic_test_file=/lib/libc.so
5616     ;;
5617   siemens)
5618     lt_cv_deplibs_check_method=pass_all
5619     ;;
5620   pc)
5621     lt_cv_deplibs_check_method=pass_all
5622     ;;
5623   esac
5624   ;;
5625
5626 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5627   lt_cv_deplibs_check_method=pass_all
5628   ;;
5629 esac
5630
5631 fi
5632 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5633 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
5634 file_magic_cmd=$lt_cv_file_magic_cmd
5635 deplibs_check_method=$lt_cv_deplibs_check_method
5636 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5637
5638
5639 # If no C compiler was specified, use CC.
5640 LTCC=${LTCC-"$CC"}
5641
5642 # If no C compiler flags were specified, use CFLAGS.
5643 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5644
5645 # Allow CC to be a program name with arguments.
5646 compiler=$CC
5647
5648 # Check whether --enable-libtool-lock was given.
5649 if test "${enable_libtool_lock+set}" = set; then
5650   enableval=$enable_libtool_lock;
5651 fi
5652
5653 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5654
5655 # Some flags need to be propagated to the compiler or linker for good
5656 # libtool support.
5657 case $host in
5658 ia64-*-hpux*)
5659   # Find out which ABI we are using.
5660   echo 'int i;' > conftest.$ac_ext
5661   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5662   (eval $ac_compile) 2>&5
5663   ac_status=$?
5664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5665   (exit $ac_status); }; then
5666     case `/usr/bin/file conftest.$ac_objext` in
5667     *ELF-32*)
5668       HPUX_IA64_MODE="32"
5669       ;;
5670     *ELF-64*)
5671       HPUX_IA64_MODE="64"
5672       ;;
5673     esac
5674   fi
5675   rm -rf conftest*
5676   ;;
5677 *-*-irix6*)
5678   # Find out which ABI we are using.
5679   echo '#line 5679 "configure"' > conftest.$ac_ext
5680   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5681   (eval $ac_compile) 2>&5
5682   ac_status=$?
5683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5684   (exit $ac_status); }; then
5685    if test "$lt_cv_prog_gnu_ld" = yes; then
5686     case `/usr/bin/file conftest.$ac_objext` in
5687     *32-bit*)
5688       LD="${LD-ld} -melf32bsmip"
5689       ;;
5690     *N32*)
5691       LD="${LD-ld} -melf32bmipn32"
5692       ;;
5693     *64-bit*)
5694       LD="${LD-ld} -melf64bmip"
5695       ;;
5696     esac
5697    else
5698     case `/usr/bin/file conftest.$ac_objext` in
5699     *32-bit*)
5700       LD="${LD-ld} -32"
5701       ;;
5702     *N32*)
5703       LD="${LD-ld} -n32"
5704       ;;
5705     *64-bit*)
5706       LD="${LD-ld} -64"
5707       ;;
5708     esac
5709    fi
5710   fi
5711   rm -rf conftest*
5712   ;;
5713
5714 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5715   # Find out which ABI we are using.
5716   echo 'int i;' > conftest.$ac_ext
5717   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5718   (eval $ac_compile) 2>&5
5719   ac_status=$?
5720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5721   (exit $ac_status); }; then
5722     case `/usr/bin/file conftest.o` in
5723     *32-bit*)
5724       case $host in
5725         x86_64-*linux*)
5726           LD="${LD-ld} -m elf_i386"
5727           ;;
5728         ppc64-*linux*|powerpc64-*linux*)
5729           LD="${LD-ld} -m elf32ppclinux"
5730           ;;
5731         s390x-*linux*)
5732           LD="${LD-ld} -m elf_s390"
5733           ;;
5734         sparc64-*linux*)
5735           LD="${LD-ld} -m elf32_sparc"
5736           ;;
5737       esac
5738       ;;
5739     *64-bit*)
5740       case $host in
5741         x86_64-*linux*)
5742           LD="${LD-ld} -m elf_x86_64"
5743           ;;
5744         ppc*-*linux*|powerpc*-*linux*)
5745           LD="${LD-ld} -m elf64ppc"
5746           ;;
5747         s390*-*linux*)
5748           LD="${LD-ld} -m elf64_s390"
5749           ;;
5750         sparc*-*linux*)
5751           LD="${LD-ld} -m elf64_sparc"
5752           ;;
5753       esac
5754       ;;
5755     esac
5756   fi
5757   rm -rf conftest*
5758   ;;
5759
5760 *-*-sco3.2v5*)
5761   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5762   SAVE_CFLAGS="$CFLAGS"
5763   CFLAGS="$CFLAGS -belf"
5764   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5765 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
5766 if test "${lt_cv_cc_needs_belf+set}" = set; then
5767   echo $ECHO_N "(cached) $ECHO_C" >&6
5768 else
5769   ac_ext=c
5770 ac_cpp='$CPP $CPPFLAGS'
5771 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5772 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5773 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5774
5775      cat >conftest.$ac_ext <<_ACEOF
5776 /* confdefs.h.  */
5777 _ACEOF
5778 cat confdefs.h >>conftest.$ac_ext
5779 cat >>conftest.$ac_ext <<_ACEOF
5780 /* end confdefs.h.  */
5781
5782 int
5783 main ()
5784 {
5785
5786   ;
5787   return 0;
5788 }
5789 _ACEOF
5790 rm -f conftest.$ac_objext conftest$ac_exeext
5791 if { (ac_try="$ac_link"
5792 case "(($ac_try" in
5793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5794   *) ac_try_echo=$ac_try;;
5795 esac
5796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5797   (eval "$ac_link") 2>conftest.er1
5798   ac_status=$?
5799   grep -v '^ *+' conftest.er1 >conftest.err
5800   rm -f conftest.er1
5801   cat conftest.err >&5
5802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5803   (exit $ac_status); } && {
5804          test -z "$ac_c_werror_flag" ||
5805          test ! -s conftest.err
5806        } && test -s conftest$ac_exeext &&
5807        $as_test_x conftest$ac_exeext; then
5808   lt_cv_cc_needs_belf=yes
5809 else
5810   echo "$as_me: failed program was:" >&5
5811 sed 's/^/| /' conftest.$ac_ext >&5
5812
5813         lt_cv_cc_needs_belf=no
5814 fi
5815
5816 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5817       conftest$ac_exeext conftest.$ac_ext
5818      ac_ext=c
5819 ac_cpp='$CPP $CPPFLAGS'
5820 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5821 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5822 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5823
5824 fi
5825 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5826 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5827   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5828     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5829     CFLAGS="$SAVE_CFLAGS"
5830   fi
5831   ;;
5832 sparc*-*solaris*)
5833   # Find out which ABI we are using.
5834   echo 'int i;' > conftest.$ac_ext
5835   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5836   (eval $ac_compile) 2>&5
5837   ac_status=$?
5838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5839   (exit $ac_status); }; then
5840     case `/usr/bin/file conftest.o` in
5841     *64-bit*)
5842       case $lt_cv_prog_gnu_ld in
5843       yes*) LD="${LD-ld} -m elf64_sparc" ;;
5844       *)    LD="${LD-ld} -64" ;;
5845       esac
5846       ;;
5847     esac
5848   fi
5849   rm -rf conftest*
5850   ;;
5851
5852
5853 esac
5854
5855 need_locks="$enable_libtool_lock"
5856
5857
5858
5859 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5860 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5861 if test "${ac_cv_header_stdc+set}" = set; then
5862   echo $ECHO_N "(cached) $ECHO_C" >&6
5863 else
5864   cat >conftest.$ac_ext <<_ACEOF
5865 /* confdefs.h.  */
5866 _ACEOF
5867 cat confdefs.h >>conftest.$ac_ext
5868 cat >>conftest.$ac_ext <<_ACEOF
5869 /* end confdefs.h.  */
5870 #include <stdlib.h>
5871 #include <stdarg.h>
5872 #include <string.h>
5873 #include <float.h>
5874
5875 int
5876 main ()
5877 {
5878
5879   ;
5880   return 0;
5881 }
5882 _ACEOF
5883 rm -f conftest.$ac_objext
5884 if { (ac_try="$ac_compile"
5885 case "(($ac_try" in
5886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5887   *) ac_try_echo=$ac_try;;
5888 esac
5889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5890   (eval "$ac_compile") 2>conftest.er1
5891   ac_status=$?
5892   grep -v '^ *+' conftest.er1 >conftest.err
5893   rm -f conftest.er1
5894   cat conftest.err >&5
5895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5896   (exit $ac_status); } && {
5897          test -z "$ac_c_werror_flag" ||
5898          test ! -s conftest.err
5899        } && test -s conftest.$ac_objext; then
5900   ac_cv_header_stdc=yes
5901 else
5902   echo "$as_me: failed program was:" >&5
5903 sed 's/^/| /' conftest.$ac_ext >&5
5904
5905         ac_cv_header_stdc=no
5906 fi
5907
5908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5909
5910 if test $ac_cv_header_stdc = yes; then
5911   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5912   cat >conftest.$ac_ext <<_ACEOF
5913 /* confdefs.h.  */
5914 _ACEOF
5915 cat confdefs.h >>conftest.$ac_ext
5916 cat >>conftest.$ac_ext <<_ACEOF
5917 /* end confdefs.h.  */
5918 #include <string.h>
5919
5920 _ACEOF
5921 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5922   $EGREP "memchr" >/dev/null 2>&1; then
5923   :
5924 else
5925   ac_cv_header_stdc=no
5926 fi
5927 rm -f conftest*
5928
5929 fi
5930
5931 if test $ac_cv_header_stdc = yes; then
5932   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5933   cat >conftest.$ac_ext <<_ACEOF
5934 /* confdefs.h.  */
5935 _ACEOF
5936 cat confdefs.h >>conftest.$ac_ext
5937 cat >>conftest.$ac_ext <<_ACEOF
5938 /* end confdefs.h.  */
5939 #include <stdlib.h>
5940
5941 _ACEOF
5942 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5943   $EGREP "free" >/dev/null 2>&1; then
5944   :
5945 else
5946   ac_cv_header_stdc=no
5947 fi
5948 rm -f conftest*
5949
5950 fi
5951
5952 if test $ac_cv_header_stdc = yes; then
5953   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5954   if test "$cross_compiling" = yes; then
5955   :
5956 else
5957   cat >conftest.$ac_ext <<_ACEOF
5958 /* confdefs.h.  */
5959 _ACEOF
5960 cat confdefs.h >>conftest.$ac_ext
5961 cat >>conftest.$ac_ext <<_ACEOF
5962 /* end confdefs.h.  */
5963 #include <ctype.h>
5964 #include <stdlib.h>
5965 #if ((' ' & 0x0FF) == 0x020)
5966 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5967 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5968 #else
5969 # define ISLOWER(c) \
5970                    (('a' <= (c) && (c) <= 'i') \
5971                      || ('j' <= (c) && (c) <= 'r') \
5972                      || ('s' <= (c) && (c) <= 'z'))
5973 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5974 #endif
5975
5976 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5977 int
5978 main ()
5979 {
5980   int i;
5981   for (i = 0; i < 256; i++)
5982     if (XOR (islower (i), ISLOWER (i))
5983         || toupper (i) != TOUPPER (i))
5984       return 2;
5985   return 0;
5986 }
5987 _ACEOF
5988 rm -f conftest$ac_exeext
5989 if { (ac_try="$ac_link"
5990 case "(($ac_try" in
5991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5992   *) ac_try_echo=$ac_try;;
5993 esac
5994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5995   (eval "$ac_link") 2>&5
5996   ac_status=$?
5997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5998   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5999   { (case "(($ac_try" in
6000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6001   *) ac_try_echo=$ac_try;;
6002 esac
6003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6004   (eval "$ac_try") 2>&5
6005   ac_status=$?
6006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6007   (exit $ac_status); }; }; then
6008   :
6009 else
6010   echo "$as_me: program exited with status $ac_status" >&5
6011 echo "$as_me: failed program was:" >&5
6012 sed 's/^/| /' conftest.$ac_ext >&5
6013
6014 ( exit $ac_status )
6015 ac_cv_header_stdc=no
6016 fi
6017 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6018 fi
6019
6020
6021 fi
6022 fi
6023 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6024 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6025 if test $ac_cv_header_stdc = yes; then
6026
6027 cat >>confdefs.h <<\_ACEOF
6028 #define STDC_HEADERS 1
6029 _ACEOF
6030
6031 fi
6032
6033 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6044                   inttypes.h stdint.h unistd.h
6045 do
6046 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6047 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6048 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6049 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6050   echo $ECHO_N "(cached) $ECHO_C" >&6
6051 else
6052   cat >conftest.$ac_ext <<_ACEOF
6053 /* confdefs.h.  */
6054 _ACEOF
6055 cat confdefs.h >>conftest.$ac_ext
6056 cat >>conftest.$ac_ext <<_ACEOF
6057 /* end confdefs.h.  */
6058 $ac_includes_default
6059
6060 #include <$ac_header>
6061 _ACEOF
6062 rm -f conftest.$ac_objext
6063 if { (ac_try="$ac_compile"
6064 case "(($ac_try" in
6065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6066   *) ac_try_echo=$ac_try;;
6067 esac
6068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6069   (eval "$ac_compile") 2>conftest.er1
6070   ac_status=$?
6071   grep -v '^ *+' conftest.er1 >conftest.err
6072   rm -f conftest.er1
6073   cat conftest.err >&5
6074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6075   (exit $ac_status); } && {
6076          test -z "$ac_c_werror_flag" ||
6077          test ! -s conftest.err
6078        } && test -s conftest.$ac_objext; then
6079   eval "$as_ac_Header=yes"
6080 else
6081   echo "$as_me: failed program was:" >&5
6082 sed 's/^/| /' conftest.$ac_ext >&5
6083
6084         eval "$as_ac_Header=no"
6085 fi
6086
6087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6088 fi
6089 ac_res=`eval echo '${'$as_ac_Header'}'`
6090                { echo "$as_me:$LINENO: result: $ac_res" >&5
6091 echo "${ECHO_T}$ac_res" >&6; }
6092 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6093   cat >>confdefs.h <<_ACEOF
6094 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6095 _ACEOF
6096
6097 fi
6098
6099 done
6100
6101
6102
6103 for ac_header in dlfcn.h
6104 do
6105 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6106 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6107   { echo "$as_me:$LINENO: checking for $ac_header" >&5
6108 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6109 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6110   echo $ECHO_N "(cached) $ECHO_C" >&6
6111 fi
6112 ac_res=`eval echo '${'$as_ac_Header'}'`
6113                { echo "$as_me:$LINENO: result: $ac_res" >&5
6114 echo "${ECHO_T}$ac_res" >&6; }
6115 else
6116   # Is the header compilable?
6117 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6118 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6119 cat >conftest.$ac_ext <<_ACEOF
6120 /* confdefs.h.  */
6121 _ACEOF
6122 cat confdefs.h >>conftest.$ac_ext
6123 cat >>conftest.$ac_ext <<_ACEOF
6124 /* end confdefs.h.  */
6125 $ac_includes_default
6126 #include <$ac_header>
6127 _ACEOF
6128 rm -f conftest.$ac_objext
6129 if { (ac_try="$ac_compile"
6130 case "(($ac_try" in
6131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6132   *) ac_try_echo=$ac_try;;
6133 esac
6134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6135   (eval "$ac_compile") 2>conftest.er1
6136   ac_status=$?
6137   grep -v '^ *+' conftest.er1 >conftest.err
6138   rm -f conftest.er1
6139   cat conftest.err >&5
6140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6141   (exit $ac_status); } && {
6142          test -z "$ac_c_werror_flag" ||
6143          test ! -s conftest.err
6144        } && test -s conftest.$ac_objext; then
6145   ac_header_compiler=yes
6146 else
6147   echo "$as_me: failed program was:" >&5
6148 sed 's/^/| /' conftest.$ac_ext >&5
6149
6150         ac_header_compiler=no
6151 fi
6152
6153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6154 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6155 echo "${ECHO_T}$ac_header_compiler" >&6; }
6156
6157 # Is the header present?
6158 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6159 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6160 cat >conftest.$ac_ext <<_ACEOF
6161 /* confdefs.h.  */
6162 _ACEOF
6163 cat confdefs.h >>conftest.$ac_ext
6164 cat >>conftest.$ac_ext <<_ACEOF
6165 /* end confdefs.h.  */
6166 #include <$ac_header>
6167 _ACEOF
6168 if { (ac_try="$ac_cpp conftest.$ac_ext"
6169 case "(($ac_try" in
6170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6171   *) ac_try_echo=$ac_try;;
6172 esac
6173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6174   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6175   ac_status=$?
6176   grep -v '^ *+' conftest.er1 >conftest.err
6177   rm -f conftest.er1
6178   cat conftest.err >&5
6179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6180   (exit $ac_status); } >/dev/null && {
6181          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6182          test ! -s conftest.err
6183        }; then
6184   ac_header_preproc=yes
6185 else
6186   echo "$as_me: failed program was:" >&5
6187 sed 's/^/| /' conftest.$ac_ext >&5
6188
6189   ac_header_preproc=no
6190 fi
6191
6192 rm -f conftest.err conftest.$ac_ext
6193 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6194 echo "${ECHO_T}$ac_header_preproc" >&6; }
6195
6196 # So?  What about this header?
6197 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6198   yes:no: )
6199     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6200 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6201     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6202 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6203     ac_header_preproc=yes
6204     ;;
6205   no:yes:* )
6206     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6207 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6208     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6209 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6210     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6211 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6212     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6213 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6214     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6215 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6216     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6217 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6218     ( cat <<\_ASBOX
6219 ## ----------------------------------- ##
6220 ## Report this to heimdal-bugs@h5l.org ##
6221 ## ----------------------------------- ##
6222 _ASBOX
6223      ) | sed "s/^/$as_me: WARNING:     /" >&2
6224     ;;
6225 esac
6226 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6227 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6228 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6229   echo $ECHO_N "(cached) $ECHO_C" >&6
6230 else
6231   eval "$as_ac_Header=\$ac_header_preproc"
6232 fi
6233 ac_res=`eval echo '${'$as_ac_Header'}'`
6234                { echo "$as_me:$LINENO: result: $ac_res" >&5
6235 echo "${ECHO_T}$ac_res" >&6; }
6236
6237 fi
6238 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6239   cat >>confdefs.h <<_ACEOF
6240 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6241 _ACEOF
6242
6243 fi
6244
6245 done
6246
6247 ac_ext=cpp
6248 ac_cpp='$CXXCPP $CPPFLAGS'
6249 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6250 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6251 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6252 if test -z "$CXX"; then
6253   if test -n "$CCC"; then
6254     CXX=$CCC
6255   else
6256     if test -n "$ac_tool_prefix"; then
6257   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6258   do
6259     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6260 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6261 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6262 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6263 if test "${ac_cv_prog_CXX+set}" = set; then
6264   echo $ECHO_N "(cached) $ECHO_C" >&6
6265 else
6266   if test -n "$CXX"; then
6267   ac_cv_prog_CXX="$CXX" # Let the user override the test.
6268 else
6269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6270 for as_dir in $PATH
6271 do
6272   IFS=$as_save_IFS
6273   test -z "$as_dir" && as_dir=.
6274   for ac_exec_ext in '' $ac_executable_extensions; do
6275   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6276     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6277     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6278     break 2
6279   fi
6280 done
6281 done
6282 IFS=$as_save_IFS
6283
6284 fi
6285 fi
6286 CXX=$ac_cv_prog_CXX
6287 if test -n "$CXX"; then
6288   { echo "$as_me:$LINENO: result: $CXX" >&5
6289 echo "${ECHO_T}$CXX" >&6; }
6290 else
6291   { echo "$as_me:$LINENO: result: no" >&5
6292 echo "${ECHO_T}no" >&6; }
6293 fi
6294
6295
6296     test -n "$CXX" && break
6297   done
6298 fi
6299 if test -z "$CXX"; then
6300   ac_ct_CXX=$CXX
6301   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6302 do
6303   # Extract the first word of "$ac_prog", so it can be a program name with args.
6304 set dummy $ac_prog; ac_word=$2
6305 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6306 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6307 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6308   echo $ECHO_N "(cached) $ECHO_C" >&6
6309 else
6310   if test -n "$ac_ct_CXX"; then
6311   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6312 else
6313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6314 for as_dir in $PATH
6315 do
6316   IFS=$as_save_IFS
6317   test -z "$as_dir" && as_dir=.
6318   for ac_exec_ext in '' $ac_executable_extensions; do
6319   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6320     ac_cv_prog_ac_ct_CXX="$ac_prog"
6321     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6322     break 2
6323   fi
6324 done
6325 done
6326 IFS=$as_save_IFS
6327
6328 fi
6329 fi
6330 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6331 if test -n "$ac_ct_CXX"; then
6332   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6333 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6334 else
6335   { echo "$as_me:$LINENO: result: no" >&5
6336 echo "${ECHO_T}no" >&6; }
6337 fi
6338
6339
6340   test -n "$ac_ct_CXX" && break
6341 done
6342
6343   if test "x$ac_ct_CXX" = x; then
6344     CXX="g++"
6345   else
6346     case $cross_compiling:$ac_tool_warned in
6347 yes:)
6348 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6349 whose name does not start with the host triplet.  If you think this
6350 configuration is useful to you, please write to autoconf@gnu.org." >&5
6351 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6352 whose name does not start with the host triplet.  If you think this
6353 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6354 ac_tool_warned=yes ;;
6355 esac
6356     CXX=$ac_ct_CXX
6357   fi
6358 fi
6359
6360   fi
6361 fi
6362 # Provide some information about the compiler.
6363 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6364 ac_compiler=`set X $ac_compile; echo $2`
6365 { (ac_try="$ac_compiler --version >&5"
6366 case "(($ac_try" in
6367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6368   *) ac_try_echo=$ac_try;;
6369 esac
6370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6371   (eval "$ac_compiler --version >&5") 2>&5
6372   ac_status=$?
6373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6374   (exit $ac_status); }
6375 { (ac_try="$ac_compiler -v >&5"
6376 case "(($ac_try" in
6377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6378   *) ac_try_echo=$ac_try;;
6379 esac
6380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6381   (eval "$ac_compiler -v >&5") 2>&5
6382   ac_status=$?
6383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6384   (exit $ac_status); }
6385 { (ac_try="$ac_compiler -V >&5"
6386 case "(($ac_try" in
6387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6388   *) ac_try_echo=$ac_try;;
6389 esac
6390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6391   (eval "$ac_compiler -V >&5") 2>&5
6392   ac_status=$?
6393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6394   (exit $ac_status); }
6395
6396 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6397 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6398 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6399   echo $ECHO_N "(cached) $ECHO_C" >&6
6400 else
6401   cat >conftest.$ac_ext <<_ACEOF
6402 /* confdefs.h.  */
6403 _ACEOF
6404 cat confdefs.h >>conftest.$ac_ext
6405 cat >>conftest.$ac_ext <<_ACEOF
6406 /* end confdefs.h.  */
6407
6408 int
6409 main ()
6410 {
6411 #ifndef __GNUC__
6412        choke me
6413 #endif
6414
6415   ;
6416   return 0;
6417 }
6418 _ACEOF
6419 rm -f conftest.$ac_objext
6420 if { (ac_try="$ac_compile"
6421 case "(($ac_try" in
6422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6423   *) ac_try_echo=$ac_try;;
6424 esac
6425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6426   (eval "$ac_compile") 2>conftest.er1
6427   ac_status=$?
6428   grep -v '^ *+' conftest.er1 >conftest.err
6429   rm -f conftest.er1
6430   cat conftest.err >&5
6431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432   (exit $ac_status); } && {
6433          test -z "$ac_cxx_werror_flag" ||
6434          test ! -s conftest.err
6435        } && test -s conftest.$ac_objext; then
6436   ac_compiler_gnu=yes
6437 else
6438   echo "$as_me: failed program was:" >&5
6439 sed 's/^/| /' conftest.$ac_ext >&5
6440
6441         ac_compiler_gnu=no
6442 fi
6443
6444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6445 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6446
6447 fi
6448 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6449 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6450 GXX=`test $ac_compiler_gnu = yes && echo yes`
6451 ac_test_CXXFLAGS=${CXXFLAGS+set}
6452 ac_save_CXXFLAGS=$CXXFLAGS
6453 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6454 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6455 if test "${ac_cv_prog_cxx_g+set}" = set; then
6456   echo $ECHO_N "(cached) $ECHO_C" >&6
6457 else
6458   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6459    ac_cxx_werror_flag=yes
6460    ac_cv_prog_cxx_g=no
6461    CXXFLAGS="-g"
6462    cat >conftest.$ac_ext <<_ACEOF
6463 /* confdefs.h.  */
6464 _ACEOF
6465 cat confdefs.h >>conftest.$ac_ext
6466 cat >>conftest.$ac_ext <<_ACEOF
6467 /* end confdefs.h.  */
6468
6469 int
6470 main ()
6471 {
6472
6473   ;
6474   return 0;
6475 }
6476 _ACEOF
6477 rm -f conftest.$ac_objext
6478 if { (ac_try="$ac_compile"
6479 case "(($ac_try" in
6480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6481   *) ac_try_echo=$ac_try;;
6482 esac
6483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6484   (eval "$ac_compile") 2>conftest.er1
6485   ac_status=$?
6486   grep -v '^ *+' conftest.er1 >conftest.err
6487   rm -f conftest.er1
6488   cat conftest.err >&5
6489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6490   (exit $ac_status); } && {
6491          test -z "$ac_cxx_werror_flag" ||
6492          test ! -s conftest.err
6493        } && test -s conftest.$ac_objext; then
6494   ac_cv_prog_cxx_g=yes
6495 else
6496   echo "$as_me: failed program was:" >&5
6497 sed 's/^/| /' conftest.$ac_ext >&5
6498
6499         CXXFLAGS=""
6500       cat >conftest.$ac_ext <<_ACEOF
6501 /* confdefs.h.  */
6502 _ACEOF
6503 cat confdefs.h >>conftest.$ac_ext
6504 cat >>conftest.$ac_ext <<_ACEOF
6505 /* end confdefs.h.  */
6506
6507 int
6508 main ()
6509 {
6510
6511   ;
6512   return 0;
6513 }
6514 _ACEOF
6515 rm -f conftest.$ac_objext
6516 if { (ac_try="$ac_compile"
6517 case "(($ac_try" in
6518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6519   *) ac_try_echo=$ac_try;;
6520 esac
6521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6522   (eval "$ac_compile") 2>conftest.er1
6523   ac_status=$?
6524   grep -v '^ *+' conftest.er1 >conftest.err
6525   rm -f conftest.er1
6526   cat conftest.err >&5
6527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6528   (exit $ac_status); } && {
6529          test -z "$ac_cxx_werror_flag" ||
6530          test ! -s conftest.err
6531        } && test -s conftest.$ac_objext; then
6532   :
6533 else
6534   echo "$as_me: failed program was:" >&5
6535 sed 's/^/| /' conftest.$ac_ext >&5
6536
6537         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6538          CXXFLAGS="-g"
6539          cat >conftest.$ac_ext <<_ACEOF
6540 /* confdefs.h.  */
6541 _ACEOF
6542 cat confdefs.h >>conftest.$ac_ext
6543 cat >>conftest.$ac_ext <<_ACEOF
6544 /* end confdefs.h.  */
6545
6546 int
6547 main ()
6548 {
6549
6550   ;
6551   return 0;
6552 }
6553 _ACEOF
6554 rm -f conftest.$ac_objext
6555 if { (ac_try="$ac_compile"
6556 case "(($ac_try" in
6557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6558   *) ac_try_echo=$ac_try;;
6559 esac
6560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6561   (eval "$ac_compile") 2>conftest.er1
6562   ac_status=$?
6563   grep -v '^ *+' conftest.er1 >conftest.err
6564   rm -f conftest.er1
6565   cat conftest.err >&5
6566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6567   (exit $ac_status); } && {
6568          test -z "$ac_cxx_werror_flag" ||
6569          test ! -s conftest.err
6570        } && test -s conftest.$ac_objext; then
6571   ac_cv_prog_cxx_g=yes
6572 else
6573   echo "$as_me: failed program was:" >&5
6574 sed 's/^/| /' conftest.$ac_ext >&5
6575
6576
6577 fi
6578
6579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6580 fi
6581
6582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6583 fi
6584
6585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6586    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6587 fi
6588 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6589 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6590 if test "$ac_test_CXXFLAGS" = set; then
6591   CXXFLAGS=$ac_save_CXXFLAGS
6592 elif test $ac_cv_prog_cxx_g = yes; then
6593   if test "$GXX" = yes; then
6594     CXXFLAGS="-g -O2"
6595   else
6596     CXXFLAGS="-g"
6597   fi
6598 else
6599   if test "$GXX" = yes; then
6600     CXXFLAGS="-O2"
6601   else
6602     CXXFLAGS=
6603   fi
6604 fi
6605 ac_ext=cpp
6606 ac_cpp='$CXXCPP $CPPFLAGS'
6607 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6608 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6609 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6610
6611
6612
6613 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6614     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6615     (test "X$CXX" != "Xg++"))) ; then
6616   ac_ext=cpp
6617 ac_cpp='$CXXCPP $CPPFLAGS'
6618 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6619 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6620 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6621 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6622 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
6623 if test -z "$CXXCPP"; then
6624   if test "${ac_cv_prog_CXXCPP+set}" = set; then
6625   echo $ECHO_N "(cached) $ECHO_C" >&6
6626 else
6627       # Double quotes because CXXCPP needs to be expanded
6628     for CXXCPP in "$CXX -E" "/lib/cpp"
6629     do
6630       ac_preproc_ok=false
6631 for ac_cxx_preproc_warn_flag in '' yes
6632 do
6633   # Use a header file that comes with gcc, so configuring glibc
6634   # with a fresh cross-compiler works.
6635   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6636   # <limits.h> exists even on freestanding compilers.
6637   # On the NeXT, cc -E runs the code through the compiler's parser,
6638   # not just through cpp. "Syntax error" is here to catch this case.
6639   cat >conftest.$ac_ext <<_ACEOF
6640 /* confdefs.h.  */
6641 _ACEOF
6642 cat confdefs.h >>conftest.$ac_ext
6643 cat >>conftest.$ac_ext <<_ACEOF
6644 /* end confdefs.h.  */
6645 #ifdef __STDC__
6646 # include <limits.h>
6647 #else
6648 # include <assert.h>
6649 #endif
6650                      Syntax error
6651 _ACEOF
6652 if { (ac_try="$ac_cpp conftest.$ac_ext"
6653 case "(($ac_try" in
6654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6655   *) ac_try_echo=$ac_try;;
6656 esac
6657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6658   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6659   ac_status=$?
6660   grep -v '^ *+' conftest.er1 >conftest.err
6661   rm -f conftest.er1
6662   cat conftest.err >&5
6663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6664   (exit $ac_status); } >/dev/null && {
6665          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6666          test ! -s conftest.err
6667        }; then
6668   :
6669 else
6670   echo "$as_me: failed program was:" >&5
6671 sed 's/^/| /' conftest.$ac_ext >&5
6672
6673   # Broken: fails on valid input.
6674 continue
6675 fi
6676
6677 rm -f conftest.err conftest.$ac_ext
6678
6679   # OK, works on sane cases.  Now check whether nonexistent headers
6680   # can be detected and how.
6681   cat >conftest.$ac_ext <<_ACEOF
6682 /* confdefs.h.  */
6683 _ACEOF
6684 cat confdefs.h >>conftest.$ac_ext
6685 cat >>conftest.$ac_ext <<_ACEOF
6686 /* end confdefs.h.  */
6687 #include <ac_nonexistent.h>
6688 _ACEOF
6689 if { (ac_try="$ac_cpp conftest.$ac_ext"
6690 case "(($ac_try" in
6691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6692   *) ac_try_echo=$ac_try;;
6693 esac
6694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6695   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6696   ac_status=$?
6697   grep -v '^ *+' conftest.er1 >conftest.err
6698   rm -f conftest.er1
6699   cat conftest.err >&5
6700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6701   (exit $ac_status); } >/dev/null && {
6702          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6703          test ! -s conftest.err
6704        }; then
6705   # Broken: success on invalid input.
6706 continue
6707 else
6708   echo "$as_me: failed program was:" >&5
6709 sed 's/^/| /' conftest.$ac_ext >&5
6710
6711   # Passes both tests.
6712 ac_preproc_ok=:
6713 break
6714 fi
6715
6716 rm -f conftest.err conftest.$ac_ext
6717
6718 done
6719 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6720 rm -f conftest.err conftest.$ac_ext
6721 if $ac_preproc_ok; then
6722   break
6723 fi
6724
6725     done
6726     ac_cv_prog_CXXCPP=$CXXCPP
6727
6728 fi
6729   CXXCPP=$ac_cv_prog_CXXCPP
6730 else
6731   ac_cv_prog_CXXCPP=$CXXCPP
6732 fi
6733 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
6734 echo "${ECHO_T}$CXXCPP" >&6; }
6735 ac_preproc_ok=false
6736 for ac_cxx_preproc_warn_flag in '' yes
6737 do
6738   # Use a header file that comes with gcc, so configuring glibc
6739   # with a fresh cross-compiler works.
6740   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6741   # <limits.h> exists even on freestanding compilers.
6742   # On the NeXT, cc -E runs the code through the compiler's parser,
6743   # not just through cpp. "Syntax error" is here to catch this case.
6744   cat >conftest.$ac_ext <<_ACEOF
6745 /* confdefs.h.  */
6746 _ACEOF
6747 cat confdefs.h >>conftest.$ac_ext
6748 cat >>conftest.$ac_ext <<_ACEOF
6749 /* end confdefs.h.  */
6750 #ifdef __STDC__
6751 # include <limits.h>
6752 #else
6753 # include <assert.h>
6754 #endif
6755                      Syntax error
6756 _ACEOF
6757 if { (ac_try="$ac_cpp conftest.$ac_ext"
6758 case "(($ac_try" in
6759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6760   *) ac_try_echo=$ac_try;;
6761 esac
6762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6763   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6764   ac_status=$?
6765   grep -v '^ *+' conftest.er1 >conftest.err
6766   rm -f conftest.er1
6767   cat conftest.err >&5
6768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6769   (exit $ac_status); } >/dev/null && {
6770          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6771          test ! -s conftest.err
6772        }; then
6773   :
6774 else
6775   echo "$as_me: failed program was:" >&5
6776 sed 's/^/| /' conftest.$ac_ext >&5
6777
6778   # Broken: fails on valid input.
6779 continue
6780 fi
6781
6782 rm -f conftest.err conftest.$ac_ext
6783
6784   # OK, works on sane cases.  Now check whether nonexistent headers
6785   # can be detected and how.
6786   cat >conftest.$ac_ext <<_ACEOF
6787 /* confdefs.h.  */
6788 _ACEOF
6789 cat confdefs.h >>conftest.$ac_ext
6790 cat >>conftest.$ac_ext <<_ACEOF
6791 /* end confdefs.h.  */
6792 #include <ac_nonexistent.h>
6793 _ACEOF
6794 if { (ac_try="$ac_cpp conftest.$ac_ext"
6795 case "(($ac_try" in
6796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6797   *) ac_try_echo=$ac_try;;
6798 esac
6799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6800   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6801   ac_status=$?
6802   grep -v '^ *+' conftest.er1 >conftest.err
6803   rm -f conftest.er1
6804   cat conftest.err >&5
6805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6806   (exit $ac_status); } >/dev/null && {
6807          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6808          test ! -s conftest.err
6809        }; then
6810   # Broken: success on invalid input.
6811 continue
6812 else
6813   echo "$as_me: failed program was:" >&5
6814 sed 's/^/| /' conftest.$ac_ext >&5
6815
6816   # Passes both tests.
6817 ac_preproc_ok=:
6818 break
6819 fi
6820
6821 rm -f conftest.err conftest.$ac_ext
6822
6823 done
6824 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6825 rm -f conftest.err conftest.$ac_ext
6826 if $ac_preproc_ok; then
6827   :
6828 else
6829   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6830 See \`config.log' for more details." >&5
6831 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6832 See \`config.log' for more details." >&2;}
6833    { (exit 1); exit 1; }; }
6834 fi
6835
6836 ac_ext=cpp
6837 ac_cpp='$CXXCPP $CPPFLAGS'
6838 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6839 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6840 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6841
6842 fi
6843
6844
6845 ac_ext=f
6846 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6847 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6848 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6849 if test -n "$ac_tool_prefix"; then
6850   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
6851   do
6852     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6853 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6854 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6855 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6856 if test "${ac_cv_prog_F77+set}" = set; then
6857   echo $ECHO_N "(cached) $ECHO_C" >&6
6858 else
6859   if test -n "$F77"; then
6860   ac_cv_prog_F77="$F77" # Let the user override the test.
6861 else
6862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6863 for as_dir in $PATH
6864 do
6865   IFS=$as_save_IFS
6866   test -z "$as_dir" && as_dir=.
6867   for ac_exec_ext in '' $ac_executable_extensions; do
6868   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6869     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6870     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6871     break 2
6872   fi
6873 done
6874 done
6875 IFS=$as_save_IFS
6876
6877 fi
6878 fi
6879 F77=$ac_cv_prog_F77
6880 if test -n "$F77"; then
6881   { echo "$as_me:$LINENO: result: $F77" >&5
6882 echo "${ECHO_T}$F77" >&6; }
6883 else
6884   { echo "$as_me:$LINENO: result: no" >&5
6885 echo "${ECHO_T}no" >&6; }
6886 fi
6887
6888
6889     test -n "$F77" && break
6890   done
6891 fi
6892 if test -z "$F77"; then
6893   ac_ct_F77=$F77
6894   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
6895 do
6896   # Extract the first word of "$ac_prog", so it can be a program name with args.
6897 set dummy $ac_prog; ac_word=$2
6898 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6899 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6900 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6901   echo $ECHO_N "(cached) $ECHO_C" >&6
6902 else
6903   if test -n "$ac_ct_F77"; then
6904   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6905 else
6906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6907 for as_dir in $PATH
6908 do
6909   IFS=$as_save_IFS
6910   test -z "$as_dir" && as_dir=.
6911   for ac_exec_ext in '' $ac_executable_extensions; do
6912   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6913     ac_cv_prog_ac_ct_F77="$ac_prog"
6914     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6915     break 2
6916   fi
6917 done
6918 done
6919 IFS=$as_save_IFS
6920
6921 fi
6922 fi
6923 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6924 if test -n "$ac_ct_F77"; then
6925   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6926 echo "${ECHO_T}$ac_ct_F77" >&6; }
6927 else
6928   { echo "$as_me:$LINENO: result: no" >&5
6929 echo "${ECHO_T}no" >&6; }
6930 fi
6931
6932
6933   test -n "$ac_ct_F77" && break
6934 done
6935
6936   if test "x$ac_ct_F77" = x; then
6937     F77=""
6938   else
6939     case $cross_compiling:$ac_tool_warned in
6940 yes:)
6941 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6942 whose name does not start with the host triplet.  If you think this
6943 configuration is useful to you, please write to autoconf@gnu.org." >&5
6944 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6945 whose name does not start with the host triplet.  If you think this
6946 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6947 ac_tool_warned=yes ;;
6948 esac
6949     F77=$ac_ct_F77
6950   fi
6951 fi
6952
6953
6954 # Provide some information about the compiler.
6955 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6956 ac_compiler=`set X $ac_compile; echo $2`
6957 { (ac_try="$ac_compiler --version >&5"
6958 case "(($ac_try" in
6959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6960   *) ac_try_echo=$ac_try;;
6961 esac
6962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6963   (eval "$ac_compiler --version >&5") 2>&5
6964   ac_status=$?
6965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6966   (exit $ac_status); }
6967 { (ac_try="$ac_compiler -v >&5"
6968 case "(($ac_try" in
6969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6970   *) ac_try_echo=$ac_try;;
6971 esac
6972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6973   (eval "$ac_compiler -v >&5") 2>&5
6974   ac_status=$?
6975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6976   (exit $ac_status); }
6977 { (ac_try="$ac_compiler -V >&5"
6978 case "(($ac_try" in
6979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6980   *) ac_try_echo=$ac_try;;
6981 esac
6982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6983   (eval "$ac_compiler -V >&5") 2>&5
6984   ac_status=$?
6985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6986   (exit $ac_status); }
6987 rm -f a.out
6988
6989 # If we don't use `.F' as extension, the preprocessor is not run on the
6990 # input file.  (Note that this only needs to work for GNU compilers.)
6991 ac_save_ext=$ac_ext
6992 ac_ext=F
6993 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6994 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6995 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6996   echo $ECHO_N "(cached) $ECHO_C" >&6
6997 else
6998   cat >conftest.$ac_ext <<_ACEOF
6999       program main
7000 #ifndef __GNUC__
7001        choke me
7002 #endif
7003
7004       end
7005 _ACEOF
7006 rm -f conftest.$ac_objext
7007 if { (ac_try="$ac_compile"
7008 case "(($ac_try" in
7009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7010   *) ac_try_echo=$ac_try;;
7011 esac
7012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7013   (eval "$ac_compile") 2>conftest.er1
7014   ac_status=$?
7015   grep -v '^ *+' conftest.er1 >conftest.err
7016   rm -f conftest.er1
7017   cat conftest.err >&5
7018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7019   (exit $ac_status); } && {
7020          test -z "$ac_f77_werror_flag" ||
7021          test ! -s conftest.err
7022        } && test -s conftest.$ac_objext; then
7023   ac_compiler_gnu=yes
7024 else
7025   echo "$as_me: failed program was:" >&5
7026 sed 's/^/| /' conftest.$ac_ext >&5
7027
7028         ac_compiler_gnu=no
7029 fi
7030
7031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7032 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7033
7034 fi
7035 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7036 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
7037 ac_ext=$ac_save_ext
7038 ac_test_FFLAGS=${FFLAGS+set}
7039 ac_save_FFLAGS=$FFLAGS
7040 FFLAGS=
7041 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7042 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
7043 if test "${ac_cv_prog_f77_g+set}" = set; then
7044   echo $ECHO_N "(cached) $ECHO_C" >&6
7045 else
7046   FFLAGS=-g
7047 cat >conftest.$ac_ext <<_ACEOF
7048       program main
7049
7050       end
7051 _ACEOF
7052 rm -f conftest.$ac_objext
7053 if { (ac_try="$ac_compile"
7054 case "(($ac_try" in
7055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7056   *) ac_try_echo=$ac_try;;
7057 esac
7058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7059   (eval "$ac_compile") 2>conftest.er1
7060   ac_status=$?
7061   grep -v '^ *+' conftest.er1 >conftest.err
7062   rm -f conftest.er1
7063   cat conftest.err >&5
7064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7065   (exit $ac_status); } && {
7066          test -z "$ac_f77_werror_flag" ||
7067          test ! -s conftest.err
7068        } && test -s conftest.$ac_objext; then
7069   ac_cv_prog_f77_g=yes
7070 else
7071   echo "$as_me: failed program was:" >&5
7072 sed 's/^/| /' conftest.$ac_ext >&5
7073
7074         ac_cv_prog_f77_g=no
7075 fi
7076
7077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7078
7079 fi
7080 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7081 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
7082 if test "$ac_test_FFLAGS" = set; then
7083   FFLAGS=$ac_save_FFLAGS
7084 elif test $ac_cv_prog_f77_g = yes; then
7085   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7086     FFLAGS="-g -O2"
7087   else
7088     FFLAGS="-g"
7089   fi
7090 else
7091   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7092     FFLAGS="-O2"
7093   else
7094     FFLAGS=
7095   fi
7096 fi
7097
7098 G77=`test $ac_compiler_gnu = yes && echo yes`
7099 ac_ext=c
7100 ac_cpp='$CPP $CPPFLAGS'
7101 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7102 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7103 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7104
7105
7106
7107 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7108
7109 # find the maximum length of command line arguments
7110 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7111 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
7112 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7113   echo $ECHO_N "(cached) $ECHO_C" >&6
7114 else
7115     i=0
7116   teststring="ABCD"
7117
7118   case $build_os in
7119   msdosdjgpp*)
7120     # On DJGPP, this test can blow up pretty badly due to problems in libc
7121     # (any single argument exceeding 2000 bytes causes a buffer overrun
7122     # during glob expansion).  Even if it were fixed, the result of this
7123     # check would be larger than it should be.
7124     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7125     ;;
7126
7127   gnu*)
7128     # Under GNU Hurd, this test is not required because there is
7129     # no limit to the length of command line arguments.
7130     # Libtool will interpret -1 as no limit whatsoever
7131     lt_cv_sys_max_cmd_len=-1;
7132     ;;
7133
7134   cygwin* | mingw*)
7135     # On Win9x/ME, this test blows up -- it succeeds, but takes
7136     # about 5 minutes as the teststring grows exponentially.
7137     # Worse, since 9x/ME are not pre-emptively multitasking,
7138     # you end up with a "frozen" computer, even though with patience
7139     # the test eventually succeeds (with a max line length of 256k).
7140     # Instead, let's just punt: use the minimum linelength reported by
7141     # all of the supported platforms: 8192 (on NT/2K/XP).
7142     lt_cv_sys_max_cmd_len=8192;
7143     ;;
7144
7145   amigaos*)
7146     # On AmigaOS with pdksh, this test takes hours, literally.
7147     # So we just punt and use a minimum line length of 8192.
7148     lt_cv_sys_max_cmd_len=8192;
7149     ;;
7150
7151   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7152     # This has been around since 386BSD, at least.  Likely further.
7153     if test -x /sbin/sysctl; then
7154       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7155     elif test -x /usr/sbin/sysctl; then
7156       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7157     else
7158       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7159     fi
7160     # And add a safety zone
7161     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7162     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7163     ;;
7164
7165   interix*)
7166     # We know the value 262144 and hardcode it with a safety zone (like BSD)
7167     lt_cv_sys_max_cmd_len=196608
7168     ;;
7169
7170   osf*)
7171     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7172     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7173     # nice to cause kernel panics so lets avoid the loop below.
7174     # First set a reasonable default.
7175     lt_cv_sys_max_cmd_len=16384
7176     #
7177     if test -x /sbin/sysconfig; then
7178       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7179         *1*) lt_cv_sys_max_cmd_len=-1 ;;
7180       esac
7181     fi
7182     ;;
7183   sco3.2v5*)
7184     lt_cv_sys_max_cmd_len=102400
7185     ;;
7186   sysv5* | sco5v6* | sysv4.2uw2*)
7187     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7188     if test -n "$kargmax"; then
7189       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
7190     else
7191       lt_cv_sys_max_cmd_len=32768
7192     fi
7193     ;;
7194   *)
7195     # If test is not a shell built-in, we'll probably end up computing a
7196     # maximum length that is only half of the actual maximum length, but
7197     # we can't tell.
7198     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7199     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7200                = "XX$teststring") >/dev/null 2>&1 &&
7201             new_result=`expr "X$teststring" : ".*" 2>&1` &&
7202             lt_cv_sys_max_cmd_len=$new_result &&
7203             test $i != 17 # 1/2 MB should be enough
7204     do
7205       i=`expr $i + 1`
7206       teststring=$teststring$teststring
7207     done
7208     teststring=
7209     # Add a significant safety factor because C++ compilers can tack on massive
7210     # amounts of additional arguments before passing them to the linker.
7211     # It appears as though 1/2 is a usable value.
7212     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7213     ;;
7214   esac
7215
7216 fi
7217
7218 if test -n $lt_cv_sys_max_cmd_len ; then
7219   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7220 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
7221 else
7222   { echo "$as_me:$LINENO: result: none" >&5
7223 echo "${ECHO_T}none" >&6; }
7224 fi
7225
7226
7227
7228
7229 # Check for command to grab the raw symbol name followed by C symbol from nm.
7230 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7231 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
7232 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7233   echo $ECHO_N "(cached) $ECHO_C" >&6
7234 else
7235
7236 # These are sane defaults that work on at least a few old systems.
7237 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7238
7239 # Character class describing NM global symbol codes.
7240 symcode='[BCDEGRST]'
7241
7242 # Regexp to match symbols that can be accessed directly from C.
7243 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7244
7245 # Transform an extracted symbol line into a proper C declaration
7246 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7247
7248 # Transform an extracted symbol line into symbol name and symbol address
7249 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'"
7250
7251 # Define system-specific variables.
7252 case $host_os in
7253 aix*)
7254   symcode='[BCDT]'
7255   ;;
7256 cygwin* | mingw* | pw32*)
7257   symcode='[ABCDGISTW]'
7258   ;;
7259 hpux*) # Its linker distinguishes data from code symbols
7260   if test "$host_cpu" = ia64; then
7261     symcode='[ABCDEGRST]'
7262   fi
7263   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7264   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'"
7265   ;;
7266 linux*)
7267   if test "$host_cpu" = ia64; then
7268     symcode='[ABCDGIRSTW]'
7269     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7270     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'"
7271   fi
7272   ;;
7273 irix* | nonstopux*)
7274   symcode='[BCDEGRST]'
7275   ;;
7276 osf*)
7277   symcode='[BCDEGQRST]'
7278   ;;
7279 solaris*)
7280   symcode='[BDRT]'
7281   ;;
7282 sco3.2v5*)
7283   symcode='[DT]'
7284   ;;
7285 sysv4.2uw2*)
7286   symcode='[DT]'
7287   ;;
7288 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7289   symcode='[ABDT]'
7290   ;;
7291 sysv4)
7292   symcode='[DFNSTU]'
7293   ;;
7294 esac
7295
7296 # Handle CRLF in mingw tool chain
7297 opt_cr=
7298 case $build_os in
7299 mingw*)
7300   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7301   ;;
7302 esac
7303
7304 # If we're using GNU nm, then use its standard symbol codes.
7305 case `$NM -V 2>&1` in
7306 *GNU* | *'with BFD'*)
7307   symcode='[ABCDGIRSTW]' ;;
7308 esac
7309
7310 # Try without a prefix undercore, then with it.
7311 for ac_symprfx in "" "_"; do
7312
7313   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7314   symxfrm="\\1 $ac_symprfx\\2 \\2"
7315
7316   # Write the raw and C identifiers.
7317   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7318
7319   # Check to see that the pipe works correctly.
7320   pipe_works=no
7321
7322   rm -f conftest*
7323   cat > conftest.$ac_ext <<EOF
7324 #ifdef __cplusplus
7325 extern "C" {
7326 #endif
7327 char nm_test_var;
7328 void nm_test_func(){}
7329 #ifdef __cplusplus
7330 }
7331 #endif
7332 int main(){nm_test_var='a';nm_test_func();return(0);}
7333 EOF
7334
7335   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7336   (eval $ac_compile) 2>&5
7337   ac_status=$?
7338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7339   (exit $ac_status); }; then
7340     # Now try to grab the symbols.
7341     nlist=conftest.nm
7342     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7343   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7344   ac_status=$?
7345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7346   (exit $ac_status); } && test -s "$nlist"; then
7347       # Try sorting and uniquifying the output.
7348       if sort "$nlist" | uniq > "$nlist"T; then
7349         mv -f "$nlist"T "$nlist"
7350       else
7351         rm -f "$nlist"T
7352       fi
7353
7354       # Make sure that we snagged all the symbols we need.
7355       if grep ' nm_test_var$' "$nlist" >/dev/null; then
7356         if grep ' nm_test_func$' "$nlist" >/dev/null; then
7357           cat <<EOF > conftest.$ac_ext
7358 #ifdef __cplusplus
7359 extern "C" {
7360 #endif
7361
7362 EOF
7363           # Now generate the symbol file.
7364           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7365
7366           cat <<EOF >> conftest.$ac_ext
7367 #if defined (__STDC__) && __STDC__
7368 # define lt_ptr_t void *
7369 #else
7370 # define lt_ptr_t char *
7371 # define const
7372 #endif
7373
7374 /* The mapping between symbol names and symbols. */
7375 const struct {
7376   const char *name;
7377   lt_ptr_t address;
7378 }
7379 lt_preloaded_symbols[] =
7380 {
7381 EOF
7382           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7383           cat <<\EOF >> conftest.$ac_ext
7384   {0, (lt_ptr_t) 0}
7385 };
7386
7387 #ifdef __cplusplus
7388 }
7389 #endif
7390 EOF
7391           # Now try linking the two files.
7392           mv conftest.$ac_objext conftstm.$ac_objext
7393           lt_save_LIBS="$LIBS"
7394           lt_save_CFLAGS="$CFLAGS"
7395           LIBS="conftstm.$ac_objext"
7396           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7397           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7398   (eval $ac_link) 2>&5
7399   ac_status=$?
7400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7401   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7402             pipe_works=yes
7403           fi
7404           LIBS="$lt_save_LIBS"
7405           CFLAGS="$lt_save_CFLAGS"
7406         else
7407           echo "cannot find nm_test_func in $nlist" >&5
7408         fi
7409       else
7410         echo "cannot find nm_test_var in $nlist" >&5
7411       fi
7412     else
7413       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7414     fi
7415   else
7416     echo "$progname: failed program was:" >&5
7417     cat conftest.$ac_ext >&5
7418   fi
7419   rm -f conftest* conftst*
7420
7421   # Do not use the global_symbol_pipe unless it works.
7422   if test "$pipe_works" = yes; then
7423     break
7424   else
7425     lt_cv_sys_global_symbol_pipe=
7426   fi
7427 done
7428
7429 fi
7430
7431 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7432   lt_cv_sys_global_symbol_to_cdecl=
7433 fi
7434 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7435   { echo "$as_me:$LINENO: result: failed" >&5
7436 echo "${ECHO_T}failed" >&6; }
7437 else
7438   { echo "$as_me:$LINENO: result: ok" >&5
7439 echo "${ECHO_T}ok" >&6; }
7440 fi
7441
7442 { echo "$as_me:$LINENO: checking for objdir" >&5
7443 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
7444 if test "${lt_cv_objdir+set}" = set; then
7445   echo $ECHO_N "(cached) $ECHO_C" >&6
7446 else
7447   rm -f .libs 2>/dev/null
7448 mkdir .libs 2>/dev/null
7449 if test -d .libs; then
7450   lt_cv_objdir=.libs
7451 else
7452   # MS-DOS does not allow filenames that begin with a dot.
7453   lt_cv_objdir=_libs
7454 fi
7455 rmdir .libs 2>/dev/null
7456 fi
7457 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7458 echo "${ECHO_T}$lt_cv_objdir" >&6; }
7459 objdir=$lt_cv_objdir
7460
7461
7462
7463
7464
7465 case $host_os in
7466 aix3*)
7467   # AIX sometimes has problems with the GCC collect2 program.  For some
7468   # reason, if we set the COLLECT_NAMES environment variable, the problems
7469   # vanish in a puff of smoke.
7470   if test "X${COLLECT_NAMES+set}" != Xset; then
7471     COLLECT_NAMES=
7472     export COLLECT_NAMES
7473   fi
7474   ;;
7475 esac
7476
7477 # Sed substitution that helps us do robust quoting.  It backslashifies
7478 # metacharacters that are still active within double-quoted strings.
7479 Xsed='sed -e 1s/^X//'
7480 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7481
7482 # Same as above, but do not quote variable references.
7483 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7484
7485 # Sed substitution to delay expansion of an escaped shell variable in a
7486 # double_quote_subst'ed string.
7487 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7488
7489 # Sed substitution to avoid accidental globbing in evaled expressions
7490 no_glob_subst='s/\*/\\\*/g'
7491
7492 # Constants:
7493 rm="rm -f"
7494
7495 # Global variables:
7496 default_ofile=libtool
7497 can_build_shared=yes
7498
7499 # All known linkers require a `.a' archive for static linking (except MSVC,
7500 # which needs '.lib').
7501 libext=a
7502 ltmain="$ac_aux_dir/ltmain.sh"
7503 ofile="$default_ofile"
7504 with_gnu_ld="$lt_cv_prog_gnu_ld"
7505
7506 if test -n "$ac_tool_prefix"; then
7507   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7508 set dummy ${ac_tool_prefix}ar; ac_word=$2
7509 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7510 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7511 if test "${ac_cv_prog_AR+set}" = set; then
7512   echo $ECHO_N "(cached) $ECHO_C" >&6
7513 else
7514   if test -n "$AR"; then
7515   ac_cv_prog_AR="$AR" # Let the user override the test.
7516 else
7517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7518 for as_dir in $PATH
7519 do
7520   IFS=$as_save_IFS
7521   test -z "$as_dir" && as_dir=.
7522   for ac_exec_ext in '' $ac_executable_extensions; do
7523   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7524     ac_cv_prog_AR="${ac_tool_prefix}ar"
7525     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7526     break 2
7527   fi
7528 done
7529 done
7530 IFS=$as_save_IFS
7531
7532 fi
7533 fi
7534 AR=$ac_cv_prog_AR
7535 if test -n "$AR"; then
7536   { echo "$as_me:$LINENO: result: $AR" >&5
7537 echo "${ECHO_T}$AR" >&6; }
7538 else
7539   { echo "$as_me:$LINENO: result: no" >&5
7540 echo "${ECHO_T}no" >&6; }
7541 fi
7542
7543
7544 fi
7545 if test -z "$ac_cv_prog_AR"; then
7546   ac_ct_AR=$AR
7547   # Extract the first word of "ar", so it can be a program name with args.
7548 set dummy ar; ac_word=$2
7549 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7550 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7551 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7552   echo $ECHO_N "(cached) $ECHO_C" >&6
7553 else
7554   if test -n "$ac_ct_AR"; then
7555   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7556 else
7557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7558 for as_dir in $PATH
7559 do
7560   IFS=$as_save_IFS
7561   test -z "$as_dir" && as_dir=.
7562   for ac_exec_ext in '' $ac_executable_extensions; do
7563   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7564     ac_cv_prog_ac_ct_AR="ar"
7565     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7566     break 2
7567   fi
7568 done
7569 done
7570 IFS=$as_save_IFS
7571
7572 fi
7573 fi
7574 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7575 if test -n "$ac_ct_AR"; then
7576   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7577 echo "${ECHO_T}$ac_ct_AR" >&6; }
7578 else
7579   { echo "$as_me:$LINENO: result: no" >&5
7580 echo "${ECHO_T}no" >&6; }
7581 fi
7582
7583   if test "x$ac_ct_AR" = x; then
7584     AR="false"
7585   else
7586     case $cross_compiling:$ac_tool_warned in
7587 yes:)
7588 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7589 whose name does not start with the host triplet.  If you think this
7590 configuration is useful to you, please write to autoconf@gnu.org." >&5
7591 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7592 whose name does not start with the host triplet.  If you think this
7593 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7594 ac_tool_warned=yes ;;
7595 esac
7596     AR=$ac_ct_AR
7597   fi
7598 else
7599   AR="$ac_cv_prog_AR"
7600 fi
7601
7602 if test -n "$ac_tool_prefix"; then
7603   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7604 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7605 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7606 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7607 if test "${ac_cv_prog_RANLIB+set}" = set; then
7608   echo $ECHO_N "(cached) $ECHO_C" >&6
7609 else
7610   if test -n "$RANLIB"; then
7611   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7612 else
7613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7614 for as_dir in $PATH
7615 do
7616   IFS=$as_save_IFS
7617   test -z "$as_dir" && as_dir=.
7618   for ac_exec_ext in '' $ac_executable_extensions; do
7619   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7620     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7621     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7622     break 2
7623   fi
7624 done
7625 done
7626 IFS=$as_save_IFS
7627
7628 fi
7629 fi
7630 RANLIB=$ac_cv_prog_RANLIB
7631 if test -n "$RANLIB"; then
7632   { echo "$as_me:$LINENO: result: $RANLIB" >&5
7633 echo "${ECHO_T}$RANLIB" >&6; }
7634 else
7635   { echo "$as_me:$LINENO: result: no" >&5
7636 echo "${ECHO_T}no" >&6; }
7637 fi
7638
7639
7640 fi
7641 if test -z "$ac_cv_prog_RANLIB"; then
7642   ac_ct_RANLIB=$RANLIB
7643   # Extract the first word of "ranlib", so it can be a program name with args.
7644 set dummy ranlib; ac_word=$2
7645 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7647 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7648   echo $ECHO_N "(cached) $ECHO_C" >&6
7649 else
7650   if test -n "$ac_ct_RANLIB"; then
7651   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7652 else
7653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7654 for as_dir in $PATH
7655 do
7656   IFS=$as_save_IFS
7657   test -z "$as_dir" && as_dir=.
7658   for ac_exec_ext in '' $ac_executable_extensions; do
7659   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7660     ac_cv_prog_ac_ct_RANLIB="ranlib"
7661     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7662     break 2
7663   fi
7664 done
7665 done
7666 IFS=$as_save_IFS
7667
7668 fi
7669 fi
7670 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7671 if test -n "$ac_ct_RANLIB"; then
7672   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7673 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7674 else
7675   { echo "$as_me:$LINENO: result: no" >&5
7676 echo "${ECHO_T}no" >&6; }
7677 fi
7678
7679   if test "x$ac_ct_RANLIB" = x; then
7680     RANLIB=":"
7681   else
7682     case $cross_compiling:$ac_tool_warned in
7683 yes:)
7684 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7685 whose name does not start with the host triplet.  If you think this
7686 configuration is useful to you, please write to autoconf@gnu.org." >&5
7687 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7688 whose name does not start with the host triplet.  If you think this
7689 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7690 ac_tool_warned=yes ;;
7691 esac
7692     RANLIB=$ac_ct_RANLIB
7693   fi
7694 else
7695   RANLIB="$ac_cv_prog_RANLIB"
7696 fi
7697
7698 if test -n "$ac_tool_prefix"; then
7699   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7700 set dummy ${ac_tool_prefix}strip; ac_word=$2
7701 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7702 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7703 if test "${ac_cv_prog_STRIP+set}" = set; then
7704   echo $ECHO_N "(cached) $ECHO_C" >&6
7705 else
7706   if test -n "$STRIP"; then
7707   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7708 else
7709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7710 for as_dir in $PATH
7711 do
7712   IFS=$as_save_IFS
7713   test -z "$as_dir" && as_dir=.
7714   for ac_exec_ext in '' $ac_executable_extensions; do
7715   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7716     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7717     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7718     break 2
7719   fi
7720 done
7721 done
7722 IFS=$as_save_IFS
7723
7724 fi
7725 fi
7726 STRIP=$ac_cv_prog_STRIP
7727 if test -n "$STRIP"; then
7728   { echo "$as_me:$LINENO: result: $STRIP" >&5
7729 echo "${ECHO_T}$STRIP" >&6; }
7730 else
7731   { echo "$as_me:$LINENO: result: no" >&5
7732 echo "${ECHO_T}no" >&6; }
7733 fi
7734
7735
7736 fi
7737 if test -z "$ac_cv_prog_STRIP"; then
7738   ac_ct_STRIP=$STRIP
7739   # Extract the first word of "strip", so it can be a program name with args.
7740 set dummy strip; ac_word=$2
7741 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7742 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7743 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7744   echo $ECHO_N "(cached) $ECHO_C" >&6
7745 else
7746   if test -n "$ac_ct_STRIP"; then
7747   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7748 else
7749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7750 for as_dir in $PATH
7751 do
7752   IFS=$as_save_IFS
7753   test -z "$as_dir" && as_dir=.
7754   for ac_exec_ext in '' $ac_executable_extensions; do
7755   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7756     ac_cv_prog_ac_ct_STRIP="strip"
7757     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7758     break 2
7759   fi
7760 done
7761 done
7762 IFS=$as_save_IFS
7763
7764 fi
7765 fi
7766 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7767 if test -n "$ac_ct_STRIP"; then
7768   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7769 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7770 else
7771   { echo "$as_me:$LINENO: result: no" >&5
7772 echo "${ECHO_T}no" >&6; }
7773 fi
7774
7775   if test "x$ac_ct_STRIP" = x; then
7776     STRIP=":"
7777   else
7778     case $cross_compiling:$ac_tool_warned in
7779 yes:)
7780 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7781 whose name does not start with the host triplet.  If you think this
7782 configuration is useful to you, please write to autoconf@gnu.org." >&5
7783 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7784 whose name does not start with the host triplet.  If you think this
7785 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7786 ac_tool_warned=yes ;;
7787 esac
7788     STRIP=$ac_ct_STRIP
7789   fi
7790 else
7791   STRIP="$ac_cv_prog_STRIP"
7792 fi
7793
7794
7795 old_CC="$CC"
7796 old_CFLAGS="$CFLAGS"
7797
7798 # Set sane defaults for various variables
7799 test -z "$AR" && AR=ar
7800 test -z "$AR_FLAGS" && AR_FLAGS=cru
7801 test -z "$AS" && AS=as
7802 test -z "$CC" && CC=cc
7803 test -z "$LTCC" && LTCC=$CC
7804 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7805 test -z "$DLLTOOL" && DLLTOOL=dlltool
7806 test -z "$LD" && LD=ld
7807 test -z "$LN_S" && LN_S="ln -s"
7808 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7809 test -z "$NM" && NM=nm
7810 test -z "$SED" && SED=sed
7811 test -z "$OBJDUMP" && OBJDUMP=objdump
7812 test -z "$RANLIB" && RANLIB=:
7813 test -z "$STRIP" && STRIP=:
7814 test -z "$ac_objext" && ac_objext=o
7815
7816 # Determine commands to create old-style static archives.
7817 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7818 old_postinstall_cmds='chmod 644 $oldlib'
7819 old_postuninstall_cmds=
7820
7821 if test -n "$RANLIB"; then
7822   case $host_os in
7823   openbsd*)
7824     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7825     ;;
7826   *)
7827     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7828     ;;
7829   esac
7830   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7831 fi
7832
7833 for cc_temp in $compiler""; do
7834   case $cc_temp in
7835     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7836     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7837     \-*) ;;
7838     *) break;;
7839   esac
7840 done
7841 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7842
7843
7844 # Only perform the check for file, if the check method requires it
7845 case $deplibs_check_method in
7846 file_magic*)
7847   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7848     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7849 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7850 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7851   echo $ECHO_N "(cached) $ECHO_C" >&6
7852 else
7853   case $MAGIC_CMD in
7854 [\\/*] |  ?:[\\/]*)
7855   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7856   ;;
7857 *)
7858   lt_save_MAGIC_CMD="$MAGIC_CMD"
7859   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7860   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7861   for ac_dir in $ac_dummy; do
7862     IFS="$lt_save_ifs"
7863     test -z "$ac_dir" && ac_dir=.
7864     if test -f $ac_dir/${ac_tool_prefix}file; then
7865       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7866       if test -n "$file_magic_test_file"; then
7867         case $deplibs_check_method in
7868         "file_magic "*)
7869           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7870           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7871           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7872             $EGREP "$file_magic_regex" > /dev/null; then
7873             :
7874           else
7875             cat <<EOF 1>&2
7876
7877 *** Warning: the command libtool uses to detect shared libraries,
7878 *** $file_magic_cmd, produces output that libtool cannot recognize.
7879 *** The result is that libtool may fail to recognize shared libraries
7880 *** as such.  This will affect the creation of libtool libraries that
7881 *** depend on shared libraries, but programs linked with such libtool
7882 *** libraries will work regardless of this problem.  Nevertheless, you
7883 *** may want to report the problem to your system manager and/or to
7884 *** bug-libtool@gnu.org
7885
7886 EOF
7887           fi ;;
7888         esac
7889       fi
7890       break
7891     fi
7892   done
7893   IFS="$lt_save_ifs"
7894   MAGIC_CMD="$lt_save_MAGIC_CMD"
7895   ;;
7896 esac
7897 fi
7898
7899 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7900 if test -n "$MAGIC_CMD"; then
7901   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7902 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7903 else
7904   { echo "$as_me:$LINENO: result: no" >&5
7905 echo "${ECHO_T}no" >&6; }
7906 fi
7907
7908 if test -z "$lt_cv_path_MAGIC_CMD"; then
7909   if test -n "$ac_tool_prefix"; then
7910     { echo "$as_me:$LINENO: checking for file" >&5
7911 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7912 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7913   echo $ECHO_N "(cached) $ECHO_C" >&6
7914 else
7915   case $MAGIC_CMD in
7916 [\\/*] |  ?:[\\/]*)
7917   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7918   ;;
7919 *)
7920   lt_save_MAGIC_CMD="$MAGIC_CMD"
7921   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7922   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7923   for ac_dir in $ac_dummy; do
7924     IFS="$lt_save_ifs"
7925     test -z "$ac_dir" && ac_dir=.
7926     if test -f $ac_dir/file; then
7927       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7928       if test -n "$file_magic_test_file"; then
7929         case $deplibs_check_method in
7930         "file_magic "*)
7931           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7932           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7933           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7934             $EGREP "$file_magic_regex" > /dev/null; then
7935             :
7936           else
7937             cat <<EOF 1>&2
7938
7939 *** Warning: the command libtool uses to detect shared libraries,
7940 *** $file_magic_cmd, produces output that libtool cannot recognize.
7941 *** The result is that libtool may fail to recognize shared libraries
7942 *** as such.  This will affect the creation of libtool libraries that
7943 *** depend on shared libraries, but programs linked with such libtool
7944 *** libraries will work regardless of this problem.  Nevertheless, you
7945 *** may want to report the problem to your system manager and/or to
7946 *** bug-libtool@gnu.org
7947
7948 EOF
7949           fi ;;
7950         esac
7951       fi
7952       break
7953     fi
7954   done
7955   IFS="$lt_save_ifs"
7956   MAGIC_CMD="$lt_save_MAGIC_CMD"
7957   ;;
7958 esac
7959 fi
7960
7961 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7962 if test -n "$MAGIC_CMD"; then
7963   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7964 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7965 else
7966   { echo "$as_me:$LINENO: result: no" >&5
7967 echo "${ECHO_T}no" >&6; }
7968 fi
7969
7970   else
7971     MAGIC_CMD=:
7972   fi
7973 fi
7974
7975   fi
7976   ;;
7977 esac
7978
7979 enable_dlopen=no
7980 enable_win32_dll=no
7981
7982 # Check whether --enable-libtool-lock was given.
7983 if test "${enable_libtool_lock+set}" = set; then
7984   enableval=$enable_libtool_lock;
7985 fi
7986
7987 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7988
7989
7990 # Check whether --with-pic was given.
7991 if test "${with_pic+set}" = set; then
7992   withval=$with_pic; pic_mode="$withval"
7993 else
7994   pic_mode=default
7995 fi
7996
7997 test -z "$pic_mode" && pic_mode=default
7998
7999 # Use C for the default configuration in the libtool script
8000 tagname=
8001 lt_save_CC="$CC"
8002 ac_ext=c
8003 ac_cpp='$CPP $CPPFLAGS'
8004 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8005 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8006 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8007
8008
8009 # Source file extension for C test sources.
8010 ac_ext=c
8011
8012 # Object file extension for compiled C test sources.
8013 objext=o
8014 objext=$objext
8015
8016 # Code to be used in simple compile tests
8017 lt_simple_compile_test_code="int some_variable = 0;\n"
8018
8019 # Code to be used in simple link tests
8020 lt_simple_link_test_code='int main(){return(0);}\n'
8021
8022
8023 # If no C compiler was specified, use CC.
8024 LTCC=${LTCC-"$CC"}
8025
8026 # If no C compiler flags were specified, use CFLAGS.
8027 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8028
8029 # Allow CC to be a program name with arguments.
8030 compiler=$CC
8031
8032
8033 # save warnings/boilerplate of simple test code
8034 ac_outfile=conftest.$ac_objext
8035 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8036 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8037 _lt_compiler_boilerplate=`cat conftest.err`
8038 $rm conftest*
8039
8040 ac_outfile=conftest.$ac_objext
8041 printf "$lt_simple_link_test_code" >conftest.$ac_ext
8042 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8043 _lt_linker_boilerplate=`cat conftest.err`
8044 $rm conftest*
8045
8046
8047
8048 lt_prog_compiler_no_builtin_flag=
8049
8050 if test "$GCC" = yes; then
8051   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8052
8053
8054 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8055 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
8056 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8057   echo $ECHO_N "(cached) $ECHO_C" >&6
8058 else
8059   lt_cv_prog_compiler_rtti_exceptions=no
8060   ac_outfile=conftest.$ac_objext
8061    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8062    lt_compiler_flag="-fno-rtti -fno-exceptions"
8063    # Insert the option either (1) after the last *FLAGS variable, or
8064    # (2) before a word containing "conftest.", or (3) at the end.
8065    # Note that $ac_compile itself does not contain backslashes and begins
8066    # with a dollar sign (not a hyphen), so the echo should work correctly.
8067    # The option is referenced via a variable to avoid confusing sed.
8068    lt_compile=`echo "$ac_compile" | $SED \
8069    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8070    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8071    -e 's:$: $lt_compiler_flag:'`
8072    (eval echo "\"\$as_me:8072: $lt_compile\"" >&5)
8073    (eval "$lt_compile" 2>conftest.err)
8074    ac_status=$?
8075    cat conftest.err >&5
8076    echo "$as_me:8076: \$? = $ac_status" >&5
8077    if (exit $ac_status) && test -s "$ac_outfile"; then
8078      # The compiler can only warn and ignore the option if not recognized
8079      # So say no if there are warnings other than the usual output.
8080      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8081      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8082      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8083        lt_cv_prog_compiler_rtti_exceptions=yes
8084      fi
8085    fi
8086    $rm conftest*
8087
8088 fi
8089 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8090 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8091
8092 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8093     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8094 else
8095     :
8096 fi
8097
8098 fi
8099
8100 lt_prog_compiler_wl=
8101 lt_prog_compiler_pic=
8102 lt_prog_compiler_static=
8103
8104 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8105 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
8106
8107   if test "$GCC" = yes; then
8108     lt_prog_compiler_wl='-Wl,'
8109     lt_prog_compiler_static='-static'
8110
8111     case $host_os in
8112       aix*)
8113       # All AIX code is PIC.
8114       if test "$host_cpu" = ia64; then
8115         # AIX 5 now supports IA64 processor
8116         lt_prog_compiler_static='-Bstatic'
8117       fi
8118       ;;
8119
8120     amigaos*)
8121       # FIXME: we need at least 68020 code to build shared libraries, but
8122       # adding the `-m68020' flag to GCC prevents building anything better,
8123       # like `-m68040'.
8124       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8125       ;;
8126
8127     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8128       # PIC is the default for these OSes.
8129       ;;
8130
8131     mingw* | pw32* | os2*)
8132       # This hack is so that the source file can tell whether it is being
8133       # built for inclusion in a dll (and should export symbols for example).
8134       lt_prog_compiler_pic='-DDLL_EXPORT'
8135       ;;
8136
8137     darwin* | rhapsody*)
8138       # PIC is the default on this platform
8139       # Common symbols not allowed in MH_DYLIB files
8140       lt_prog_compiler_pic='-fno-common'
8141       ;;
8142
8143     interix3*)
8144       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8145       # Instead, we relocate shared libraries at runtime.
8146       ;;
8147
8148     msdosdjgpp*)
8149       # Just because we use GCC doesn't mean we suddenly get shared libraries
8150       # on systems that don't support them.
8151       lt_prog_compiler_can_build_shared=no
8152       enable_shared=no
8153       ;;
8154
8155     sysv4*MP*)
8156       if test -d /usr/nec; then
8157         lt_prog_compiler_pic=-Kconform_pic
8158       fi
8159       ;;
8160
8161     hpux*)
8162       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8163       # not for PA HP-UX.
8164       case $host_cpu in
8165       hppa*64*|ia64*)
8166         # +Z the default
8167         ;;
8168       *)
8169         lt_prog_compiler_pic='-fPIC'
8170         ;;
8171       esac
8172       ;;
8173
8174     *)
8175       lt_prog_compiler_pic='-fPIC'
8176       ;;
8177     esac
8178   else
8179     # PORTME Check for flag to pass linker flags through the system compiler.
8180     case $host_os in
8181     aix*)
8182       lt_prog_compiler_wl='-Wl,'
8183       if test "$host_cpu" = ia64; then
8184         # AIX 5 now supports IA64 processor
8185         lt_prog_compiler_static='-Bstatic'
8186       else
8187         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8188       fi
8189       ;;
8190       darwin*)
8191         # PIC is the default on this platform
8192         # Common symbols not allowed in MH_DYLIB files
8193        case $cc_basename in
8194          xlc*)
8195          lt_prog_compiler_pic='-qnocommon'
8196          lt_prog_compiler_wl='-Wl,'
8197          ;;
8198        esac
8199        ;;
8200
8201     mingw* | pw32* | os2*)
8202       # This hack is so that the source file can tell whether it is being
8203       # built for inclusion in a dll (and should export symbols for example).
8204       lt_prog_compiler_pic='-DDLL_EXPORT'
8205       ;;
8206
8207     hpux9* | hpux10* | hpux11*)
8208       lt_prog_compiler_wl='-Wl,'
8209       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8210       # not for PA HP-UX.
8211       case $host_cpu in
8212       hppa*64*|ia64*)
8213         # +Z the default
8214         ;;
8215       *)
8216         lt_prog_compiler_pic='+Z'
8217         ;;
8218       esac
8219       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8220       lt_prog_compiler_static='${wl}-a ${wl}archive'
8221       ;;
8222
8223     irix5* | irix6* | nonstopux*)
8224       lt_prog_compiler_wl='-Wl,'
8225       # PIC (with -KPIC) is the default.
8226       lt_prog_compiler_static='-non_shared'
8227       ;;
8228
8229     newsos6)
8230       lt_prog_compiler_pic='-KPIC'
8231       lt_prog_compiler_static='-Bstatic'
8232       ;;
8233
8234     linux*)
8235       case $cc_basename in
8236       icc* | ecc*)
8237         lt_prog_compiler_wl='-Wl,'
8238         lt_prog_compiler_pic='-KPIC'
8239         lt_prog_compiler_static='-static'
8240         ;;
8241       pgcc* | pgf77* | pgf90* | pgf95*)
8242         # Portland Group compilers (*not* the Pentium gcc compiler,
8243         # which looks to be a dead project)
8244         lt_prog_compiler_wl='-Wl,'
8245         lt_prog_compiler_pic='-fpic'
8246         lt_prog_compiler_static='-Bstatic'
8247         ;;
8248       ccc*)
8249         lt_prog_compiler_wl='-Wl,'
8250         # All Alpha code is PIC.
8251         lt_prog_compiler_static='-non_shared'
8252         ;;
8253       esac
8254       ;;
8255
8256     osf3* | osf4* | osf5*)
8257       lt_prog_compiler_wl='-Wl,'
8258       # All OSF/1 code is PIC.
8259       lt_prog_compiler_static='-non_shared'
8260       ;;
8261
8262     solaris*)
8263       lt_prog_compiler_pic='-KPIC'
8264       lt_prog_compiler_static='-Bstatic'
8265       case $cc_basename in
8266       f77* | f90* | f95*)
8267         lt_prog_compiler_wl='-Qoption ld ';;
8268       *)
8269         lt_prog_compiler_wl='-Wl,';;
8270       esac
8271       ;;
8272
8273     sunos4*)
8274       lt_prog_compiler_wl='-Qoption ld '
8275       lt_prog_compiler_pic='-PIC'
8276       lt_prog_compiler_static='-Bstatic'
8277       ;;
8278
8279     sysv4 | sysv4.2uw2* | sysv4.3*)
8280       lt_prog_compiler_wl='-Wl,'
8281       lt_prog_compiler_pic='-KPIC'
8282       lt_prog_compiler_static='-Bstatic'
8283       ;;
8284
8285     sysv4*MP*)
8286       if test -d /usr/nec ;then
8287         lt_prog_compiler_pic='-Kconform_pic'
8288         lt_prog_compiler_static='-Bstatic'
8289       fi
8290       ;;
8291
8292     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8293       lt_prog_compiler_wl='-Wl,'
8294       lt_prog_compiler_pic='-KPIC'
8295       lt_prog_compiler_static='-Bstatic'
8296       ;;
8297
8298     unicos*)
8299       lt_prog_compiler_wl='-Wl,'
8300       lt_prog_compiler_can_build_shared=no
8301       ;;
8302
8303     uts4*)
8304       lt_prog_compiler_pic='-pic'
8305       lt_prog_compiler_static='-Bstatic'
8306       ;;
8307
8308     *)
8309       lt_prog_compiler_can_build_shared=no
8310       ;;
8311     esac
8312   fi
8313
8314 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8315 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
8316
8317 #
8318 # Check to make sure the PIC flag actually works.
8319 #
8320 if test -n "$lt_prog_compiler_pic"; then
8321
8322 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8323 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
8324 if test "${lt_prog_compiler_pic_works+set}" = set; then
8325   echo $ECHO_N "(cached) $ECHO_C" >&6
8326 else
8327   lt_prog_compiler_pic_works=no
8328   ac_outfile=conftest.$ac_objext
8329    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8330    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8331    # Insert the option either (1) after the last *FLAGS variable, or
8332    # (2) before a word containing "conftest.", or (3) at the end.
8333    # Note that $ac_compile itself does not contain backslashes and begins
8334    # with a dollar sign (not a hyphen), so the echo should work correctly.
8335    # The option is referenced via a variable to avoid confusing sed.
8336    lt_compile=`echo "$ac_compile" | $SED \
8337    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8338    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8339    -e 's:$: $lt_compiler_flag:'`
8340    (eval echo "\"\$as_me:8340: $lt_compile\"" >&5)
8341    (eval "$lt_compile" 2>conftest.err)
8342    ac_status=$?
8343    cat conftest.err >&5
8344    echo "$as_me:8344: \$? = $ac_status" >&5
8345    if (exit $ac_status) && test -s "$ac_outfile"; then
8346      # The compiler can only warn and ignore the option if not recognized
8347      # So say no if there are warnings other than the usual output.
8348      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8349      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8350      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8351        lt_prog_compiler_pic_works=yes
8352      fi
8353    fi
8354    $rm conftest*
8355
8356 fi
8357 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8358 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
8359
8360 if test x"$lt_prog_compiler_pic_works" = xyes; then
8361     case $lt_prog_compiler_pic in
8362      "" | " "*) ;;
8363      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8364      esac
8365 else
8366     lt_prog_compiler_pic=
8367      lt_prog_compiler_can_build_shared=no
8368 fi
8369
8370 fi
8371 case $host_os in
8372   # For platforms which do not support PIC, -DPIC is meaningless:
8373   *djgpp*)
8374     lt_prog_compiler_pic=
8375     ;;
8376   *)
8377     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8378     ;;
8379 esac
8380
8381 #
8382 # Check to make sure the static flag actually works.
8383 #
8384 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8385 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8386 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
8387 if test "${lt_prog_compiler_static_works+set}" = set; then
8388   echo $ECHO_N "(cached) $ECHO_C" >&6
8389 else
8390   lt_prog_compiler_static_works=no
8391    save_LDFLAGS="$LDFLAGS"
8392    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8393    printf "$lt_simple_link_test_code" > conftest.$ac_ext
8394    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8395      # The linker can only warn and ignore the option if not recognized
8396      # So say no if there are warnings
8397      if test -s conftest.err; then
8398        # Append any errors to the config.log.
8399        cat conftest.err 1>&5
8400        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8401        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8402        if diff conftest.exp conftest.er2 >/dev/null; then
8403          lt_prog_compiler_static_works=yes
8404        fi
8405      else
8406        lt_prog_compiler_static_works=yes
8407      fi
8408    fi
8409    $rm conftest*
8410    LDFLAGS="$save_LDFLAGS"
8411
8412 fi
8413 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8414 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
8415
8416 if test x"$lt_prog_compiler_static_works" = xyes; then
8417     :
8418 else
8419     lt_prog_compiler_static=
8420 fi
8421
8422
8423 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8424 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8425 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8426   echo $ECHO_N "(cached) $ECHO_C" >&6
8427 else
8428   lt_cv_prog_compiler_c_o=no
8429    $rm -r conftest 2>/dev/null
8430    mkdir conftest
8431    cd conftest
8432    mkdir out
8433    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8434
8435    lt_compiler_flag="-o out/conftest2.$ac_objext"
8436    # Insert the option either (1) after the last *FLAGS variable, or
8437    # (2) before a word containing "conftest.", or (3) at the end.
8438    # Note that $ac_compile itself does not contain backslashes and begins
8439    # with a dollar sign (not a hyphen), so the echo should work correctly.
8440    lt_compile=`echo "$ac_compile" | $SED \
8441    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8442    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8443    -e 's:$: $lt_compiler_flag:'`
8444    (eval echo "\"\$as_me:8444: $lt_compile\"" >&5)
8445    (eval "$lt_compile" 2>out/conftest.err)
8446    ac_status=$?
8447    cat out/conftest.err >&5
8448    echo "$as_me:8448: \$? = $ac_status" >&5
8449    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8450    then
8451      # The compiler can only warn and ignore the option if not recognized
8452      # So say no if there are warnings
8453      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8454      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8455      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8456        lt_cv_prog_compiler_c_o=yes
8457      fi
8458    fi
8459    chmod u+w . 2>&5
8460    $rm conftest*
8461    # SGI C++ compiler will create directory out/ii_files/ for
8462    # template instantiation
8463    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8464    $rm out/* && rmdir out
8465    cd ..
8466    rmdir conftest
8467    $rm conftest*
8468
8469 fi
8470 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8471 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8472
8473
8474 hard_links="nottested"
8475 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8476   # do not overwrite the value of need_locks provided by the user
8477   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8478 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8479   hard_links=yes
8480   $rm conftest*
8481   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8482   touch conftest.a
8483   ln conftest.a conftest.b 2>&5 || hard_links=no
8484   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8485   { echo "$as_me:$LINENO: result: $hard_links" >&5
8486 echo "${ECHO_T}$hard_links" >&6; }
8487   if test "$hard_links" = no; then
8488     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8489 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8490     need_locks=warn
8491   fi
8492 else
8493   need_locks=no
8494 fi
8495
8496 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8497 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8498
8499   runpath_var=
8500   allow_undefined_flag=
8501   enable_shared_with_static_runtimes=no
8502   archive_cmds=
8503   archive_expsym_cmds=
8504   old_archive_From_new_cmds=
8505   old_archive_from_expsyms_cmds=
8506   export_dynamic_flag_spec=
8507   whole_archive_flag_spec=
8508   thread_safe_flag_spec=
8509   hardcode_libdir_flag_spec=
8510   hardcode_libdir_flag_spec_ld=
8511   hardcode_libdir_separator=
8512   hardcode_direct=no
8513   hardcode_minus_L=no
8514   hardcode_shlibpath_var=unsupported
8515   link_all_deplibs=unknown
8516   hardcode_automatic=no
8517   module_cmds=
8518   module_expsym_cmds=
8519   always_export_symbols=no
8520   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8521   # include_expsyms should be a list of space-separated symbols to be *always*
8522   # included in the symbol list
8523   include_expsyms=
8524   # exclude_expsyms can be an extended regexp of symbols to exclude
8525   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8526   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8527   # as well as any symbol that contains `d'.
8528   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8529   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8530   # platforms (ab)use it in PIC code, but their linkers get confused if
8531   # the symbol is explicitly referenced.  Since portable code cannot
8532   # rely on this symbol name, it's probably fine to never include it in
8533   # preloaded symbol tables.
8534   extract_expsyms_cmds=
8535   # Just being paranoid about ensuring that cc_basename is set.
8536   for cc_temp in $compiler""; do
8537   case $cc_temp in
8538     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8539     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8540     \-*) ;;
8541     *) break;;
8542   esac
8543 done
8544 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8545
8546   case $host_os in
8547   cygwin* | mingw* | pw32*)
8548     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8549     # When not using gcc, we currently assume that we are using
8550     # Microsoft Visual C++.
8551     if test "$GCC" != yes; then
8552       with_gnu_ld=no
8553     fi
8554     ;;
8555   interix*)
8556     # we just hope/assume this is gcc and not c89 (= MSVC++)
8557     with_gnu_ld=yes
8558     ;;
8559   openbsd*)
8560     with_gnu_ld=no
8561     ;;
8562   esac
8563
8564   ld_shlibs=yes
8565   if test "$with_gnu_ld" = yes; then
8566     # If archive_cmds runs LD, not CC, wlarc should be empty
8567     wlarc='${wl}'
8568
8569     # Set some defaults for GNU ld with shared library support. These
8570     # are reset later if shared libraries are not supported. Putting them
8571     # here allows them to be overridden if necessary.
8572     runpath_var=LD_RUN_PATH
8573     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8574     export_dynamic_flag_spec='${wl}--export-dynamic'
8575     # ancient GNU ld didn't support --whole-archive et. al.
8576     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8577         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8578       else
8579         whole_archive_flag_spec=
8580     fi
8581     supports_anon_versioning=no
8582     case `$LD -v 2>/dev/null` in
8583       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8584       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8585       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8586       *\ 2.11.*) ;; # other 2.11 versions
8587       *) supports_anon_versioning=yes ;;
8588     esac
8589
8590     # See if GNU ld supports shared libraries.
8591     case $host_os in
8592     aix3* | aix4* | aix5*)
8593       # On AIX/PPC, the GNU linker is very broken
8594       if test "$host_cpu" != ia64; then
8595         ld_shlibs=no
8596         cat <<EOF 1>&2
8597
8598 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8599 *** to be unable to reliably create shared libraries on AIX.
8600 *** Therefore, libtool is disabling shared libraries support.  If you
8601 *** really care for shared libraries, you may want to modify your PATH
8602 *** so that a non-GNU linker is found, and then restart.
8603
8604 EOF
8605       fi
8606       ;;
8607
8608     amigaos*)
8609       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)'
8610       hardcode_libdir_flag_spec='-L$libdir'
8611       hardcode_minus_L=yes
8612
8613       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8614       # that the semantics of dynamic libraries on AmigaOS, at least up
8615       # to version 4, is to share data among multiple programs linked
8616       # with the same dynamic library.  Since this doesn't match the
8617       # behavior of shared libraries on other platforms, we can't use
8618       # them.
8619       ld_shlibs=no
8620       ;;
8621
8622     beos*)
8623       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8624         allow_undefined_flag=unsupported
8625         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8626         # support --undefined.  This deserves some investigation.  FIXME
8627         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8628       else
8629         ld_shlibs=no
8630       fi
8631       ;;
8632
8633     cygwin* | mingw* | pw32*)
8634       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8635       # as there is no search path for DLLs.
8636       hardcode_libdir_flag_spec='-L$libdir'
8637       allow_undefined_flag=unsupported
8638       always_export_symbols=no
8639       enable_shared_with_static_runtimes=yes
8640       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8641
8642       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8643         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8644         # If the export-symbols file already is a .def file (1st line
8645         # is EXPORTS), use it as is; otherwise, prepend...
8646         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8647           cp $export_symbols $output_objdir/$soname.def;
8648         else
8649           echo EXPORTS > $output_objdir/$soname.def;
8650           cat $export_symbols >> $output_objdir/$soname.def;
8651         fi~
8652         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8653       else
8654         ld_shlibs=no
8655       fi
8656       ;;
8657
8658     interix3*)
8659       hardcode_direct=no
8660       hardcode_shlibpath_var=no
8661       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8662       export_dynamic_flag_spec='${wl}-E'
8663       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8664       # Instead, shared libraries are loaded at an image base (0x10000000 by
8665       # default) and relocated if they conflict, which is a slow very memory
8666       # consuming and fragmenting process.  To avoid this, we pick a random,
8667       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8668       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8669       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8670       archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8671       ;;
8672
8673     linux*)
8674       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8675         tmp_addflag=
8676         case $cc_basename,$host_cpu in
8677         pgcc*)                          # Portland Group C compiler
8678           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8679           tmp_addflag=' $pic_flag'
8680           ;;
8681         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8682           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8683           tmp_addflag=' $pic_flag -Mnomain' ;;
8684         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8685           tmp_addflag=' -i_dynamic' ;;
8686         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8687           tmp_addflag=' -i_dynamic -nofor_main' ;;
8688         ifc* | ifort*)                  # Intel Fortran compiler
8689           tmp_addflag=' -nofor_main' ;;
8690         esac
8691         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8692
8693         if test $supports_anon_versioning = yes; then
8694           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8695   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8696   $echo "local: *; };" >> $output_objdir/$libname.ver~
8697           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8698         fi
8699       else
8700         ld_shlibs=no
8701       fi
8702       ;;
8703
8704     netbsd*)
8705       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8706         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8707         wlarc=
8708       else
8709         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8710         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8711       fi
8712       ;;
8713
8714     solaris*)
8715       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8716         ld_shlibs=no
8717         cat <<EOF 1>&2
8718
8719 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8720 *** create shared libraries on Solaris systems.  Therefore, libtool
8721 *** is disabling shared libraries support.  We urge you to upgrade GNU
8722 *** binutils to release 2.9.1 or newer.  Another option is to modify
8723 *** your PATH or compiler configuration so that the native linker is
8724 *** used, and then restart.
8725
8726 EOF
8727       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8728         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8729         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8730       else
8731         ld_shlibs=no
8732       fi
8733       ;;
8734
8735     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8736       case `$LD -v 2>&1` in
8737         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8738         ld_shlibs=no
8739         cat <<_LT_EOF 1>&2
8740
8741 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8742 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8743 *** is disabling shared libraries support.  We urge you to upgrade GNU
8744 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8745 *** your PATH or compiler configuration so that the native linker is
8746 *** used, and then restart.
8747
8748 _LT_EOF
8749         ;;
8750         *)
8751           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8752             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8753             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8754             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8755           else
8756             ld_shlibs=no
8757           fi
8758         ;;
8759       esac
8760       ;;
8761
8762     sunos4*)
8763       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8764       wlarc=
8765       hardcode_direct=yes
8766       hardcode_shlibpath_var=no
8767       ;;
8768
8769     *)
8770       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8771         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8772         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8773       else
8774         ld_shlibs=no
8775       fi
8776       ;;
8777     esac
8778
8779     if test "$ld_shlibs" = no; then
8780       runpath_var=
8781       hardcode_libdir_flag_spec=
8782       export_dynamic_flag_spec=
8783       whole_archive_flag_spec=
8784     fi
8785   else
8786     # PORTME fill in a description of your system's linker (not GNU ld)
8787     case $host_os in
8788     aix3*)
8789       allow_undefined_flag=unsupported
8790       always_export_symbols=yes
8791       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'
8792       # Note: this linker hardcodes the directories in LIBPATH if there
8793       # are no directories specified by -L.
8794       hardcode_minus_L=yes
8795       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8796         # Neither direct hardcoding nor static linking is supported with a
8797         # broken collect2.
8798         hardcode_direct=unsupported
8799       fi
8800       ;;
8801
8802     aix4* | aix5*)
8803       if test "$host_cpu" = ia64; then
8804         # On IA64, the linker does run time linking by default, so we don't
8805         # have to do anything special.
8806         aix_use_runtimelinking=no
8807         exp_sym_flag='-Bexport'
8808         no_entry_flag=""
8809       else
8810         # If we're using GNU nm, then we don't want the "-C" option.
8811         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8812         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8813           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'
8814         else
8815           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'
8816         fi
8817         aix_use_runtimelinking=no
8818
8819         # Test if we are trying to use run time linking or normal
8820         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8821         # need to do runtime linking.
8822         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8823           for ld_flag in $LDFLAGS; do
8824           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8825             aix_use_runtimelinking=yes
8826             break
8827           fi
8828           done
8829           ;;
8830         esac
8831
8832         exp_sym_flag='-bexport'
8833         no_entry_flag='-bnoentry'
8834       fi
8835
8836       # When large executables or shared objects are built, AIX ld can
8837       # have problems creating the table of contents.  If linking a library
8838       # or program results in "error TOC overflow" add -mminimal-toc to
8839       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8840       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8841
8842       archive_cmds=''
8843       hardcode_direct=yes
8844       hardcode_libdir_separator=':'
8845       link_all_deplibs=yes
8846
8847       if test "$GCC" = yes; then
8848         case $host_os in aix4.[012]|aix4.[012].*)
8849         # We only want to do this on AIX 4.2 and lower, the check
8850         # below for broken collect2 doesn't work under 4.3+
8851           collect2name=`${CC} -print-prog-name=collect2`
8852           if test -f "$collect2name" && \
8853            strings "$collect2name" | grep resolve_lib_name >/dev/null
8854           then
8855           # We have reworked collect2
8856           hardcode_direct=yes
8857           else
8858           # We have old collect2
8859           hardcode_direct=unsupported
8860           # It fails to find uninstalled libraries when the uninstalled
8861           # path is not listed in the libpath.  Setting hardcode_minus_L
8862           # to unsupported forces relinking
8863           hardcode_minus_L=yes
8864           hardcode_libdir_flag_spec='-L$libdir'
8865           hardcode_libdir_separator=
8866           fi
8867           ;;
8868         esac
8869         shared_flag='-shared'
8870         if test "$aix_use_runtimelinking" = yes; then
8871           shared_flag="$shared_flag "'${wl}-G'
8872         fi
8873       else
8874         # not using gcc
8875         if test "$host_cpu" = ia64; then
8876         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8877         # chokes on -Wl,-G. The following line is correct:
8878           shared_flag='-G'
8879         else
8880           if test "$aix_use_runtimelinking" = yes; then
8881             shared_flag='${wl}-G'
8882           else
8883             shared_flag='${wl}-bM:SRE'
8884           fi
8885         fi
8886       fi
8887
8888       # It seems that -bexpall does not export symbols beginning with
8889       # underscore (_), so it is better to generate a list of symbols to export.
8890       always_export_symbols=yes
8891       if test "$aix_use_runtimelinking" = yes; then
8892         # Warning - without using the other runtime loading flags (-brtl),
8893         # -berok will link without error, but may produce a broken library.
8894         allow_undefined_flag='-berok'
8895        # Determine the default libpath from the value encoded in an empty executable.
8896        cat >conftest.$ac_ext <<_ACEOF
8897 /* confdefs.h.  */
8898 _ACEOF
8899 cat confdefs.h >>conftest.$ac_ext
8900 cat >>conftest.$ac_ext <<_ACEOF
8901 /* end confdefs.h.  */
8902
8903 int
8904 main ()
8905 {
8906
8907   ;
8908   return 0;
8909 }
8910 _ACEOF
8911 rm -f conftest.$ac_objext conftest$ac_exeext
8912 if { (ac_try="$ac_link"
8913 case "(($ac_try" in
8914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8915   *) ac_try_echo=$ac_try;;
8916 esac
8917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8918   (eval "$ac_link") 2>conftest.er1
8919   ac_status=$?
8920   grep -v '^ *+' conftest.er1 >conftest.err
8921   rm -f conftest.er1
8922   cat conftest.err >&5
8923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8924   (exit $ac_status); } && {
8925          test -z "$ac_c_werror_flag" ||
8926          test ! -s conftest.err
8927        } && test -s conftest$ac_exeext &&
8928        $as_test_x conftest$ac_exeext; then
8929
8930 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8931 }'`
8932 # Check for a 64-bit object if we didn't find anything.
8933 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; }
8934 }'`; fi
8935 else
8936   echo "$as_me: failed program was:" >&5
8937 sed 's/^/| /' conftest.$ac_ext >&5
8938
8939
8940 fi
8941
8942 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8943       conftest$ac_exeext conftest.$ac_ext
8944 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8945
8946        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8947         archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8948        else
8949         if test "$host_cpu" = ia64; then
8950           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8951           allow_undefined_flag="-z nodefs"
8952           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
8953         else
8954          # Determine the default libpath from the value encoded in an empty executable.
8955          cat >conftest.$ac_ext <<_ACEOF
8956 /* confdefs.h.  */
8957 _ACEOF
8958 cat confdefs.h >>conftest.$ac_ext
8959 cat >>conftest.$ac_ext <<_ACEOF
8960 /* end confdefs.h.  */
8961
8962 int
8963 main ()
8964 {
8965
8966   ;
8967   return 0;
8968 }
8969 _ACEOF
8970 rm -f conftest.$ac_objext conftest$ac_exeext
8971 if { (ac_try="$ac_link"
8972 case "(($ac_try" in
8973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8974   *) ac_try_echo=$ac_try;;
8975 esac
8976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8977   (eval "$ac_link") 2>conftest.er1
8978   ac_status=$?
8979   grep -v '^ *+' conftest.er1 >conftest.err
8980   rm -f conftest.er1
8981   cat conftest.err >&5
8982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8983   (exit $ac_status); } && {
8984          test -z "$ac_c_werror_flag" ||
8985          test ! -s conftest.err
8986        } && test -s conftest$ac_exeext &&
8987        $as_test_x conftest$ac_exeext; then
8988
8989 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8990 }'`
8991 # Check for a 64-bit object if we didn't find anything.
8992 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; }
8993 }'`; fi
8994 else
8995   echo "$as_me: failed program was:" >&5
8996 sed 's/^/| /' conftest.$ac_ext >&5
8997
8998
8999 fi
9000
9001 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9002       conftest$ac_exeext conftest.$ac_ext
9003 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9004
9005          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9006           # Warning - without using the other run time loading flags,
9007           # -berok will link without error, but may produce a broken library.
9008           no_undefined_flag=' ${wl}-bernotok'
9009           allow_undefined_flag=' ${wl}-berok'
9010           # Exported symbols can be pulled into shared objects from archives
9011           whole_archive_flag_spec='$convenience'
9012           archive_cmds_need_lc=yes
9013           # This is similar to how AIX traditionally builds its shared libraries.
9014           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9015         fi
9016       fi
9017       ;;
9018
9019     amigaos*)
9020       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)'
9021       hardcode_libdir_flag_spec='-L$libdir'
9022       hardcode_minus_L=yes
9023       # see comment about different semantics on the GNU ld section
9024       ld_shlibs=no
9025       ;;
9026
9027     bsdi[45]*)
9028       export_dynamic_flag_spec=-rdynamic
9029       ;;
9030
9031     cygwin* | mingw* | pw32*)
9032       # When not using gcc, we currently assume that we are using
9033       # Microsoft Visual C++.
9034       # hardcode_libdir_flag_spec is actually meaningless, as there is
9035       # no search path for DLLs.
9036       hardcode_libdir_flag_spec=' '
9037       allow_undefined_flag=unsupported
9038       # Tell ltmain to make .lib files, not .a files.
9039       libext=lib
9040       # Tell ltmain to make .dll files, not .so files.
9041       shrext_cmds=".dll"
9042       # FIXME: Setting linknames here is a bad hack.
9043       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9044       # The linker will automatically build a .lib file if we build a DLL.
9045       old_archive_From_new_cmds='true'
9046       # FIXME: Should let the user specify the lib program.
9047       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9048       fix_srcfile_path='`cygpath -w "$srcfile"`'
9049       enable_shared_with_static_runtimes=yes
9050       ;;
9051
9052     darwin* | rhapsody*)
9053       case $host_os in
9054         rhapsody* | darwin1.[012])
9055          allow_undefined_flag='${wl}-undefined ${wl}suppress'
9056          ;;
9057        *) # Darwin 1.3 on
9058          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9059            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9060          else
9061            case ${MACOSX_DEPLOYMENT_TARGET} in
9062              10.[012])
9063                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9064                ;;
9065              10.*)
9066                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9067                ;;
9068            esac
9069          fi
9070          ;;
9071       esac
9072       archive_cmds_need_lc=no
9073       hardcode_direct=no
9074       hardcode_automatic=yes
9075       hardcode_shlibpath_var=unsupported
9076       whole_archive_flag_spec=''
9077       link_all_deplibs=yes
9078     if test "$GCC" = yes ; then
9079         output_verbose_link_cmd='echo'
9080         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9081       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9082       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9083       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}'
9084       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}'
9085     else
9086       case $cc_basename in
9087         xlc*)
9088          output_verbose_link_cmd='echo'
9089          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9090          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9091           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9092          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9093           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}'
9094           ;;
9095        *)
9096          ld_shlibs=no
9097           ;;
9098       esac
9099     fi
9100       ;;
9101
9102     dgux*)
9103       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9104       hardcode_libdir_flag_spec='-L$libdir'
9105       hardcode_shlibpath_var=no
9106       ;;
9107
9108     freebsd1*)
9109       ld_shlibs=no
9110       ;;
9111
9112     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9113     # support.  Future versions do this automatically, but an explicit c++rt0.o
9114     # does not break anything, and helps significantly (at the cost of a little
9115     # extra space).
9116     freebsd2.2*)
9117       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9118       hardcode_libdir_flag_spec='-R$libdir'
9119       hardcode_direct=yes
9120       hardcode_shlibpath_var=no
9121       ;;
9122
9123     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9124     freebsd2*)
9125       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9126       hardcode_direct=yes
9127       hardcode_minus_L=yes
9128       hardcode_shlibpath_var=no
9129       ;;
9130
9131     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9132     freebsd* | kfreebsd*-gnu | dragonfly*)
9133       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9134       hardcode_libdir_flag_spec='-R$libdir'
9135       hardcode_direct=yes
9136       hardcode_shlibpath_var=no
9137       ;;
9138
9139     hpux9*)
9140       if test "$GCC" = yes; then
9141         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'
9142       else
9143         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'
9144       fi
9145       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9146       hardcode_libdir_separator=:
9147       hardcode_direct=yes
9148
9149       # hardcode_minus_L: Not really in the search PATH,
9150       # but as the default location of the library.
9151       hardcode_minus_L=yes
9152       export_dynamic_flag_spec='${wl}-E'
9153       ;;
9154
9155     hpux10*)
9156       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9157         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9158       else
9159         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9160       fi
9161       if test "$with_gnu_ld" = no; then
9162         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9163         hardcode_libdir_separator=:
9164
9165         hardcode_direct=yes
9166         export_dynamic_flag_spec='${wl}-E'
9167
9168         # hardcode_minus_L: Not really in the search PATH,
9169         # but as the default location of the library.
9170         hardcode_minus_L=yes
9171       fi
9172       ;;
9173
9174     hpux11*)
9175       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9176         case $host_cpu in
9177         hppa*64*)
9178           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9179           ;;
9180         ia64*)
9181           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9182           ;;
9183         *)
9184           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9185           ;;
9186         esac
9187       else
9188         case $host_cpu in
9189         hppa*64*)
9190           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9191           ;;
9192         ia64*)
9193           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9194           ;;
9195         *)
9196           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9197           ;;
9198         esac
9199       fi
9200       if test "$with_gnu_ld" = no; then
9201         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9202         hardcode_libdir_separator=:
9203
9204         case $host_cpu in
9205         hppa*64*|ia64*)
9206           hardcode_libdir_flag_spec_ld='+b $libdir'
9207           hardcode_direct=no
9208           hardcode_shlibpath_var=no
9209           ;;
9210         *)
9211           hardcode_direct=yes
9212           export_dynamic_flag_spec='${wl}-E'
9213
9214           # hardcode_minus_L: Not really in the search PATH,
9215           # but as the default location of the library.
9216           hardcode_minus_L=yes
9217           ;;
9218         esac
9219       fi
9220       ;;
9221
9222     irix5* | irix6* | nonstopux*)
9223       if test "$GCC" = yes; then
9224         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'
9225       else
9226         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'
9227         hardcode_libdir_flag_spec_ld='-rpath $libdir'
9228       fi
9229       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9230       hardcode_libdir_separator=:
9231       link_all_deplibs=yes
9232       ;;
9233
9234     netbsd*)
9235       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9236         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9237       else
9238         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9239       fi
9240       hardcode_libdir_flag_spec='-R$libdir'
9241       hardcode_direct=yes
9242       hardcode_shlibpath_var=no
9243       ;;
9244
9245     newsos6)
9246       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9247       hardcode_direct=yes
9248       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9249       hardcode_libdir_separator=:
9250       hardcode_shlibpath_var=no
9251       ;;
9252
9253     openbsd*)
9254       hardcode_direct=yes
9255       hardcode_shlibpath_var=no
9256       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9257         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9258         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9259         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9260         export_dynamic_flag_spec='${wl}-E'
9261       else
9262        case $host_os in
9263          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9264            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9265            hardcode_libdir_flag_spec='-R$libdir'
9266            ;;
9267          *)
9268            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9269            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9270            ;;
9271        esac
9272       fi
9273       ;;
9274
9275     os2*)
9276       hardcode_libdir_flag_spec='-L$libdir'
9277       hardcode_minus_L=yes
9278       allow_undefined_flag=unsupported
9279       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'
9280       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9281       ;;
9282
9283     osf3*)
9284       if test "$GCC" = yes; then
9285         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9286         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'
9287       else
9288         allow_undefined_flag=' -expect_unresolved \*'
9289         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'
9290       fi
9291       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9292       hardcode_libdir_separator=:
9293       ;;
9294
9295     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9296       if test "$GCC" = yes; then
9297         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9298         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'
9299         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9300       else
9301         allow_undefined_flag=' -expect_unresolved \*'
9302         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'
9303         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9304         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
9305
9306         # Both c and cxx compiler support -rpath directly
9307         hardcode_libdir_flag_spec='-rpath $libdir'
9308       fi
9309       hardcode_libdir_separator=:
9310       ;;
9311
9312     solaris*)
9313       no_undefined_flag=' -z text'
9314       if test "$GCC" = yes; then
9315         wlarc='${wl}'
9316         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9317         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9318           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9319       else
9320         wlarc=''
9321         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9322         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9323         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9324       fi
9325       hardcode_libdir_flag_spec='-R$libdir'
9326       hardcode_shlibpath_var=no
9327       case $host_os in
9328       solaris2.[0-5] | solaris2.[0-5].*) ;;
9329       *)
9330         # The compiler driver will combine linker options so we
9331         # cannot just pass the convience library names through
9332         # without $wl, iff we do not link with $LD.
9333         # Luckily, gcc supports the same syntax we need for Sun Studio.
9334         # Supported since Solaris 2.6 (maybe 2.5.1?)
9335         case $wlarc in
9336         '')
9337           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9338         *)
9339           whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
9340         esac ;;
9341       esac
9342       link_all_deplibs=yes
9343       ;;
9344
9345     sunos4*)
9346       if test "x$host_vendor" = xsequent; then
9347         # Use $CC to link under sequent, because it throws in some extra .o
9348         # files that make .init and .fini sections work.
9349         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9350       else
9351         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9352       fi
9353       hardcode_libdir_flag_spec='-L$libdir'
9354       hardcode_direct=yes
9355       hardcode_minus_L=yes
9356       hardcode_shlibpath_var=no
9357       ;;
9358
9359     sysv4)
9360       case $host_vendor in
9361         sni)
9362           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9363           hardcode_direct=yes # is this really true???
9364         ;;
9365         siemens)
9366           ## LD is ld it makes a PLAMLIB
9367           ## CC just makes a GrossModule.
9368           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9369           reload_cmds='$CC -r -o $output$reload_objs'
9370           hardcode_direct=no
9371         ;;
9372         motorola)
9373           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9374           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9375         ;;
9376       esac
9377       runpath_var='LD_RUN_PATH'
9378       hardcode_shlibpath_var=no
9379       ;;
9380
9381     sysv4.3*)
9382       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9383       hardcode_shlibpath_var=no
9384       export_dynamic_flag_spec='-Bexport'
9385       ;;
9386
9387     sysv4*MP*)
9388       if test -d /usr/nec; then
9389         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9390         hardcode_shlibpath_var=no
9391         runpath_var=LD_RUN_PATH
9392         hardcode_runpath_var=yes
9393         ld_shlibs=yes
9394       fi
9395       ;;
9396
9397     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9398       no_undefined_flag='${wl}-z,text'
9399       archive_cmds_need_lc=no
9400       hardcode_shlibpath_var=no
9401       runpath_var='LD_RUN_PATH'
9402
9403       if test "$GCC" = yes; then
9404         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9405         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9406       else
9407         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9408         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9409       fi
9410       ;;
9411
9412     sysv5* | sco3.2v5* | sco5v6*)
9413       # Note: We can NOT use -z defs as we might desire, because we do not
9414       # link with -lc, and that would cause any symbols used from libc to
9415       # always be unresolved, which means just about no library would
9416       # ever link correctly.  If we're not using GNU ld we use -z text
9417       # though, which does catch some bad symbols but isn't as heavy-handed
9418       # as -z defs.
9419       no_undefined_flag='${wl}-z,text'
9420       allow_undefined_flag='${wl}-z,nodefs'
9421       archive_cmds_need_lc=no
9422       hardcode_shlibpath_var=no
9423       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9424       hardcode_libdir_separator=':'
9425       link_all_deplibs=yes
9426       export_dynamic_flag_spec='${wl}-Bexport'
9427       runpath_var='LD_RUN_PATH'
9428
9429       if test "$GCC" = yes; then
9430         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9431         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9432       else
9433         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9434         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9435       fi
9436       ;;
9437
9438     uts4*)
9439       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9440       hardcode_libdir_flag_spec='-L$libdir'
9441       hardcode_shlibpath_var=no
9442       ;;
9443
9444     *)
9445       ld_shlibs=no
9446       ;;
9447     esac
9448   fi
9449
9450 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9451 echo "${ECHO_T}$ld_shlibs" >&6; }
9452 test "$ld_shlibs" = no && can_build_shared=no
9453
9454 #
9455 # Do we need to explicitly link libc?
9456 #
9457 case "x$archive_cmds_need_lc" in
9458 x|xyes)
9459   # Assume -lc should be added
9460   archive_cmds_need_lc=yes
9461
9462   if test "$enable_shared" = yes && test "$GCC" = yes; then
9463     case $archive_cmds in
9464     *'~'*)
9465       # FIXME: we may have to deal with multi-command sequences.
9466       ;;
9467     '$CC '*)
9468       # Test whether the compiler implicitly links with -lc since on some
9469       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9470       # to ld, don't add -lc before -lgcc.
9471       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9472 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9473       $rm conftest*
9474       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9475
9476       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9477   (eval $ac_compile) 2>&5
9478   ac_status=$?
9479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9480   (exit $ac_status); } 2>conftest.err; then
9481         soname=conftest
9482         lib=conftest
9483         libobjs=conftest.$ac_objext
9484         deplibs=
9485         wl=$lt_prog_compiler_wl
9486         pic_flag=$lt_prog_compiler_pic
9487         compiler_flags=-v
9488         linker_flags=-v
9489         verstring=
9490         output_objdir=.
9491         libname=conftest
9492         lt_save_allow_undefined_flag=$allow_undefined_flag
9493         allow_undefined_flag=
9494         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9495   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9496   ac_status=$?
9497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9498   (exit $ac_status); }
9499         then
9500           archive_cmds_need_lc=no
9501         else
9502           archive_cmds_need_lc=yes
9503         fi
9504         allow_undefined_flag=$lt_save_allow_undefined_flag
9505       else
9506         cat conftest.err 1>&5
9507       fi
9508       $rm conftest*
9509       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9510 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9511       ;;
9512     esac
9513   fi
9514   ;;
9515 esac
9516
9517 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9518 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9519 library_names_spec=
9520 libname_spec='lib$name'
9521 soname_spec=
9522 shrext_cmds=".so"
9523 postinstall_cmds=
9524 postuninstall_cmds=
9525 finish_cmds=
9526 finish_eval=
9527 shlibpath_var=
9528 shlibpath_overrides_runpath=unknown
9529 version_type=none
9530 dynamic_linker="$host_os ld.so"
9531 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9532 if test "$GCC" = yes; then
9533   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9534   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9535     # if the path contains ";" then we assume it to be the separator
9536     # otherwise default to the standard path separator (i.e. ":") - it is
9537     # assumed that no part of a normal pathname contains ";" but that should
9538     # okay in the real world where ";" in dirpaths is itself problematic.
9539     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9540   else
9541     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9542   fi
9543 else
9544   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9545 fi
9546 need_lib_prefix=unknown
9547 hardcode_into_libs=no
9548
9549 # when you set need_version to no, make sure it does not cause -set_version
9550 # flags to be left without arguments
9551 need_version=unknown
9552
9553 case $host_os in
9554 aix3*)
9555   version_type=linux
9556   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9557   shlibpath_var=LIBPATH
9558
9559   # AIX 3 has no versioning support, so we append a major version to the name.
9560   soname_spec='${libname}${release}${shared_ext}$major'
9561   ;;
9562
9563 aix4* | aix5*)
9564   version_type=linux
9565   need_lib_prefix=no
9566   need_version=no
9567   hardcode_into_libs=yes
9568   if test "$host_cpu" = ia64; then
9569     # AIX 5 supports IA64
9570     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9571     shlibpath_var=LD_LIBRARY_PATH
9572   else
9573     # With GCC up to 2.95.x, collect2 would create an import file
9574     # for dependence libraries.  The import file would start with
9575     # the line `#! .'.  This would cause the generated library to
9576     # depend on `.', always an invalid library.  This was fixed in
9577     # development snapshots of GCC prior to 3.0.
9578     case $host_os in
9579       aix4 | aix4.[01] | aix4.[01].*)
9580       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9581            echo ' yes '
9582            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9583         :
9584       else
9585         can_build_shared=no
9586       fi
9587       ;;
9588     esac
9589     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9590     # soname into executable. Probably we can add versioning support to
9591     # collect2, so additional links can be useful in future.
9592     if test "$aix_use_runtimelinking" = yes; then
9593       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9594       # instead of lib<name>.a to let people know that these are not
9595       # typical AIX shared libraries.
9596       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9597     else
9598       # We preserve .a as extension for shared libraries through AIX4.2
9599       # and later when we are not doing run time linking.
9600       library_names_spec='${libname}${release}.a $libname.a'
9601       soname_spec='${libname}${release}${shared_ext}$major'
9602     fi
9603     shlibpath_var=LIBPATH
9604   fi
9605   ;;
9606
9607 amigaos*)
9608   library_names_spec='$libname.ixlibrary $libname.a'
9609   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9610   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'
9611   ;;
9612
9613 beos*)
9614   library_names_spec='${libname}${shared_ext}'
9615   dynamic_linker="$host_os ld.so"
9616   shlibpath_var=LIBRARY_PATH
9617   ;;
9618
9619 bsdi[45]*)
9620   version_type=linux
9621   need_version=no
9622   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9623   soname_spec='${libname}${release}${shared_ext}$major'
9624   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9625   shlibpath_var=LD_LIBRARY_PATH
9626   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9627   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9628   # the default ld.so.conf also contains /usr/contrib/lib and
9629   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9630   # libtool to hard-code these into programs
9631   ;;
9632
9633 cygwin* | mingw* | pw32*)
9634   version_type=windows
9635   shrext_cmds=".dll"
9636   need_version=no
9637   need_lib_prefix=no
9638
9639   case $GCC,$host_os in
9640   yes,cygwin* | yes,mingw* | yes,pw32*)
9641     library_names_spec='$libname.dll.a'
9642     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9643     postinstall_cmds='base_file=`basename \${file}`~
9644       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9645       dldir=$destdir/`dirname \$dlpath`~
9646       test -d \$dldir || mkdir -p \$dldir~
9647       $install_prog $dir/$dlname \$dldir/$dlname~
9648       chmod a+x \$dldir/$dlname'
9649     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9650       dlpath=$dir/\$dldll~
9651        $rm \$dlpath'
9652     shlibpath_overrides_runpath=yes
9653
9654     case $host_os in
9655     cygwin*)
9656       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9657       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9658       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9659       ;;
9660     mingw*)
9661       # MinGW DLLs use traditional 'lib' prefix
9662       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9663       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9664       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9665         # It is most probably a Windows format PATH printed by
9666         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9667         # path with ; separators, and with drive letters. We can handle the
9668         # drive letters (cygwin fileutils understands them), so leave them,
9669         # especially as we might pass files found there to a mingw objdump,
9670         # which wouldn't understand a cygwinified path. Ahh.
9671         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9672       else
9673         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9674       fi
9675       ;;
9676     pw32*)
9677       # pw32 DLLs use 'pw' prefix rather than 'lib'
9678       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9679       ;;
9680     esac
9681     ;;
9682
9683   *)
9684     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9685     ;;
9686   esac
9687   dynamic_linker='Win32 ld.exe'
9688   # FIXME: first we should search . and the directory the executable is in
9689   shlibpath_var=PATH
9690   ;;
9691
9692 darwin* | rhapsody*)
9693   dynamic_linker="$host_os dyld"
9694   version_type=darwin
9695   need_lib_prefix=no
9696   need_version=no
9697   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext ${libname}${release}${versuffix}$shared_ext'
9698   soname_spec='${libname}${release}${major}$shared_ext'
9699   shlibpath_overrides_runpath=yes
9700   shlibpath_var=DYLD_LIBRARY_PATH
9701   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9702   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9703   if test "$GCC" = yes; then
9704     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"`
9705   else
9706     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9707   fi
9708   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9709   ;;
9710
9711 dgux*)
9712   version_type=linux
9713   need_lib_prefix=no
9714   need_version=no
9715   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9716   soname_spec='${libname}${release}${shared_ext}$major'
9717   shlibpath_var=LD_LIBRARY_PATH
9718   ;;
9719
9720 freebsd1*)
9721   dynamic_linker=no
9722   ;;
9723
9724 kfreebsd*-gnu)
9725   version_type=linux
9726   need_lib_prefix=no
9727   need_version=no
9728   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9729   soname_spec='${libname}${release}${shared_ext}$major'
9730   shlibpath_var=LD_LIBRARY_PATH
9731   shlibpath_overrides_runpath=no
9732   hardcode_into_libs=yes
9733   dynamic_linker='GNU ld.so'
9734   ;;
9735
9736 freebsd* | dragonfly*)
9737   # DragonFly does not have aout.  When/if they implement a new
9738   # versioning mechanism, adjust this.
9739   if test -x /usr/bin/objformat; then
9740     objformat=`/usr/bin/objformat`
9741   else
9742     case $host_os in
9743     freebsd[123]*) objformat=aout ;;
9744     *) objformat=elf ;;
9745     esac
9746   fi
9747   version_type=freebsd-$objformat
9748   case $version_type in
9749     freebsd-elf*)
9750       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9751       need_version=no
9752       need_lib_prefix=no
9753       ;;
9754     freebsd-*)
9755       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9756       need_version=yes
9757       ;;
9758   esac
9759   shlibpath_var=LD_LIBRARY_PATH
9760   case $host_os in
9761   freebsd2*)
9762     shlibpath_overrides_runpath=yes
9763     ;;
9764   freebsd3.[01]* | freebsdelf3.[01]*)
9765     shlibpath_overrides_runpath=yes
9766     hardcode_into_libs=yes
9767     ;;
9768   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9769   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9770     shlibpath_overrides_runpath=no
9771     hardcode_into_libs=yes
9772     ;;
9773   freebsd*) # from 4.6 on
9774     shlibpath_overrides_runpath=yes
9775     hardcode_into_libs=yes
9776     ;;
9777   esac
9778   ;;
9779
9780 gnu*)
9781   version_type=linux
9782   need_lib_prefix=no
9783   need_version=no
9784   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9785   soname_spec='${libname}${release}${shared_ext}$major'
9786   shlibpath_var=LD_LIBRARY_PATH
9787   hardcode_into_libs=yes
9788   ;;
9789
9790 hpux9* | hpux10* | hpux11*)
9791   # Give a soname corresponding to the major version so that dld.sl refuses to
9792   # link against other versions.
9793   version_type=sunos
9794   need_lib_prefix=no
9795   need_version=no
9796   case $host_cpu in
9797   ia64*)
9798     shrext_cmds='.so'
9799     hardcode_into_libs=yes
9800     dynamic_linker="$host_os dld.so"
9801     shlibpath_var=LD_LIBRARY_PATH
9802     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9803     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9804     soname_spec='${libname}${release}${shared_ext}$major'
9805     if test "X$HPUX_IA64_MODE" = X32; then
9806       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9807     else
9808       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9809     fi
9810     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9811     ;;
9812    hppa*64*)
9813      shrext_cmds='.sl'
9814      hardcode_into_libs=yes
9815      dynamic_linker="$host_os dld.sl"
9816      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9817      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9818      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9819      soname_spec='${libname}${release}${shared_ext}$major'
9820      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9821      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9822      ;;
9823    *)
9824     shrext_cmds='.sl'
9825     dynamic_linker="$host_os dld.sl"
9826     shlibpath_var=SHLIB_PATH
9827     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9828     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9829     soname_spec='${libname}${release}${shared_ext}$major'
9830     ;;
9831   esac
9832   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9833   postinstall_cmds='chmod 555 $lib'
9834   ;;
9835
9836 interix3*)
9837   version_type=linux
9838   need_lib_prefix=no
9839   need_version=no
9840   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9841   soname_spec='${libname}${release}${shared_ext}$major'
9842   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9843   shlibpath_var=LD_LIBRARY_PATH
9844   shlibpath_overrides_runpath=no
9845   hardcode_into_libs=yes
9846   ;;
9847
9848 irix5* | irix6* | nonstopux*)
9849   case $host_os in
9850     nonstopux*) version_type=nonstopux ;;
9851     *)
9852         if test "$lt_cv_prog_gnu_ld" = yes; then
9853                 version_type=linux
9854         else
9855                 version_type=irix
9856         fi ;;
9857   esac
9858   need_lib_prefix=no
9859   need_version=no
9860   soname_spec='${libname}${release}${shared_ext}$major'
9861   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9862   case $host_os in
9863   irix5* | nonstopux*)
9864     libsuff= shlibsuff=
9865     ;;
9866   *)
9867     case $LD in # libtool.m4 will add one of these switches to LD
9868     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9869       libsuff= shlibsuff= libmagic=32-bit;;
9870     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9871       libsuff=32 shlibsuff=N32 libmagic=N32;;
9872     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9873       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9874     *) libsuff= shlibsuff= libmagic=never-match;;
9875     esac
9876     ;;
9877   esac
9878   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9879   shlibpath_overrides_runpath=no
9880   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9881   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9882   hardcode_into_libs=yes
9883   ;;
9884
9885 # No shared lib support for Linux oldld, aout, or coff.
9886 linux*oldld* | linux*aout* | linux*coff*)
9887   dynamic_linker=no
9888   ;;
9889
9890 # This must be Linux ELF.
9891 linux*)
9892   version_type=linux
9893   need_lib_prefix=no
9894   need_version=no
9895   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9896   soname_spec='${libname}${release}${shared_ext}$major'
9897   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9898   shlibpath_var=LD_LIBRARY_PATH
9899   shlibpath_overrides_runpath=no
9900   # This implies no fast_install, which is unacceptable.
9901   # Some rework will be needed to allow for fast_install
9902   # before this can be enabled.
9903   hardcode_into_libs=yes
9904
9905   # Append ld.so.conf contents to the search path
9906   if test -f /etc/ld.so.conf; then
9907     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9908     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9909   fi
9910
9911   # We used to test for /lib/ld.so.1 and disable shared libraries on
9912   # powerpc, because MkLinux only supported shared libraries with the
9913   # GNU dynamic linker.  Since this was broken with cross compilers,
9914   # most powerpc-linux boxes support dynamic linking these days and
9915   # people can always --disable-shared, the test was removed, and we
9916   # assume the GNU/Linux dynamic linker is in use.
9917   dynamic_linker='GNU/Linux ld.so'
9918   ;;
9919
9920 knetbsd*-gnu)
9921   version_type=linux
9922   need_lib_prefix=no
9923   need_version=no
9924   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9925   soname_spec='${libname}${release}${shared_ext}$major'
9926   shlibpath_var=LD_LIBRARY_PATH
9927   shlibpath_overrides_runpath=no
9928   hardcode_into_libs=yes
9929   dynamic_linker='GNU ld.so'
9930   ;;
9931
9932 netbsd*)
9933   version_type=sunos
9934   need_lib_prefix=no
9935   need_version=no
9936   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9937     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9938     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9939     dynamic_linker='NetBSD (a.out) ld.so'
9940   else
9941     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9942     soname_spec='${libname}${release}${shared_ext}$major'
9943     dynamic_linker='NetBSD ld.elf_so'
9944   fi
9945   shlibpath_var=LD_LIBRARY_PATH
9946   shlibpath_overrides_runpath=yes
9947   hardcode_into_libs=yes
9948   ;;
9949
9950 newsos6)
9951   version_type=linux
9952   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9953   shlibpath_var=LD_LIBRARY_PATH
9954   shlibpath_overrides_runpath=yes
9955   ;;
9956
9957 nto-qnx*)
9958   version_type=linux
9959   need_lib_prefix=no
9960   need_version=no
9961   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9962   soname_spec='${libname}${release}${shared_ext}$major'
9963   shlibpath_var=LD_LIBRARY_PATH
9964   shlibpath_overrides_runpath=yes
9965   ;;
9966
9967 openbsd*)
9968   version_type=sunos
9969   sys_lib_dlsearch_path_spec="/usr/lib"
9970   need_lib_prefix=no
9971   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9972   case $host_os in
9973     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9974     *)                         need_version=no  ;;
9975   esac
9976   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9977   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9978   shlibpath_var=LD_LIBRARY_PATH
9979   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9980     case $host_os in
9981       openbsd2.[89] | openbsd2.[89].*)
9982         shlibpath_overrides_runpath=no
9983         ;;
9984       *)
9985         shlibpath_overrides_runpath=yes
9986         ;;
9987       esac
9988   else
9989     shlibpath_overrides_runpath=yes
9990   fi
9991   ;;
9992
9993 os2*)
9994   libname_spec='$name'
9995   shrext_cmds=".dll"
9996   need_lib_prefix=no
9997   library_names_spec='$libname${shared_ext} $libname.a'
9998   dynamic_linker='OS/2 ld.exe'
9999   shlibpath_var=LIBPATH
10000   ;;
10001
10002 osf3* | osf4* | osf5*)
10003   version_type=osf
10004   need_lib_prefix=no
10005   need_version=no
10006   soname_spec='${libname}${release}${shared_ext}$major'
10007   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10008   shlibpath_var=LD_LIBRARY_PATH
10009   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10010   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10011   ;;
10012
10013 solaris*)
10014   version_type=linux
10015   need_lib_prefix=no
10016   need_version=no
10017   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10018   soname_spec='${libname}${release}${shared_ext}$major'
10019   shlibpath_var=LD_LIBRARY_PATH
10020   shlibpath_overrides_runpath=yes
10021   hardcode_into_libs=yes
10022   # ldd complains unless libraries are executable
10023   postinstall_cmds='chmod +x $lib'
10024   ;;
10025
10026 sunos4*)
10027   version_type=sunos
10028   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10029   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10030   shlibpath_var=LD_LIBRARY_PATH
10031   shlibpath_overrides_runpath=yes
10032   if test "$with_gnu_ld" = yes; then
10033     need_lib_prefix=no
10034   fi
10035   need_version=yes
10036   ;;
10037
10038 sysv4 | sysv4.3*)
10039   version_type=linux
10040   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10041   soname_spec='${libname}${release}${shared_ext}$major'
10042   shlibpath_var=LD_LIBRARY_PATH
10043   case $host_vendor in
10044     sni)
10045       shlibpath_overrides_runpath=no
10046       need_lib_prefix=no
10047       export_dynamic_flag_spec='${wl}-Blargedynsym'
10048       runpath_var=LD_RUN_PATH
10049       ;;
10050     siemens)
10051       need_lib_prefix=no
10052       ;;
10053     motorola)
10054       need_lib_prefix=no
10055       need_version=no
10056       shlibpath_overrides_runpath=no
10057       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10058       ;;
10059   esac
10060   ;;
10061
10062 sysv4*MP*)
10063   if test -d /usr/nec ;then
10064     version_type=linux
10065     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10066     soname_spec='$libname${shared_ext}.$major'
10067     shlibpath_var=LD_LIBRARY_PATH
10068   fi
10069   ;;
10070
10071 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10072   version_type=freebsd-elf
10073   need_lib_prefix=no
10074   need_version=no
10075   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10076   soname_spec='${libname}${release}${shared_ext}$major'
10077   shlibpath_var=LD_LIBRARY_PATH
10078   hardcode_into_libs=yes
10079   if test "$with_gnu_ld" = yes; then
10080     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10081     shlibpath_overrides_runpath=no
10082   else
10083     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10084     shlibpath_overrides_runpath=yes
10085     case $host_os in
10086       sco3.2v5*)
10087         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10088         ;;
10089     esac
10090   fi
10091   sys_lib_dlsearch_path_spec='/usr/lib'
10092   ;;
10093
10094 uts4*)
10095   version_type=linux
10096   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10097   soname_spec='${libname}${release}${shared_ext}$major'
10098   shlibpath_var=LD_LIBRARY_PATH
10099   ;;
10100
10101 *)
10102   dynamic_linker=no
10103   ;;
10104 esac
10105 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10106 echo "${ECHO_T}$dynamic_linker" >&6; }
10107 test "$dynamic_linker" = no && can_build_shared=no
10108
10109 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10110 if test "$GCC" = yes; then
10111   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10112 fi
10113
10114 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10115 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10116 hardcode_action=
10117 if test -n "$hardcode_libdir_flag_spec" || \
10118    test -n "$runpath_var" || \
10119    test "X$hardcode_automatic" = "Xyes" ; then
10120
10121   # We can hardcode non-existant directories.
10122   if test "$hardcode_direct" != no &&
10123      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10124      # have to relink, otherwise we might link with an installed library
10125      # when we should be linking with a yet-to-be-installed one
10126      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10127      test "$hardcode_minus_L" != no; then
10128     # Linking always hardcodes the temporary library directory.
10129     hardcode_action=relink
10130   else
10131     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10132     hardcode_action=immediate
10133   fi
10134 else
10135   # We cannot hardcode anything, or else we can only hardcode existing
10136   # directories.
10137   hardcode_action=unsupported
10138 fi
10139 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
10140 echo "${ECHO_T}$hardcode_action" >&6; }
10141
10142 if test "$hardcode_action" = relink; then
10143   # Fast installation is not supported
10144   enable_fast_install=no
10145 elif test "$shlibpath_overrides_runpath" = yes ||
10146      test "$enable_shared" = no; then
10147   # Fast installation is not necessary
10148   enable_fast_install=needless
10149 fi
10150
10151 striplib=
10152 old_striplib=
10153 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10154 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10155 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10156   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10157   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10158   { echo "$as_me:$LINENO: result: yes" >&5
10159 echo "${ECHO_T}yes" >&6; }
10160 else
10161 # FIXME - insert some real tests, host_os isn't really good enough
10162   case $host_os in
10163    darwin*)
10164        if test -n "$STRIP" ; then
10165          striplib="$STRIP -x"
10166          { echo "$as_me:$LINENO: result: yes" >&5
10167 echo "${ECHO_T}yes" >&6; }
10168        else
10169   { echo "$as_me:$LINENO: result: no" >&5
10170 echo "${ECHO_T}no" >&6; }
10171 fi
10172        ;;
10173    *)
10174   { echo "$as_me:$LINENO: result: no" >&5
10175 echo "${ECHO_T}no" >&6; }
10176     ;;
10177   esac
10178 fi
10179
10180 if test "x$enable_dlopen" != xyes; then
10181   enable_dlopen=unknown
10182   enable_dlopen_self=unknown
10183   enable_dlopen_self_static=unknown
10184 else
10185   lt_cv_dlopen=no
10186   lt_cv_dlopen_libs=
10187
10188   case $host_os in
10189   beos*)
10190     lt_cv_dlopen="load_add_on"
10191     lt_cv_dlopen_libs=
10192     lt_cv_dlopen_self=yes
10193     ;;
10194
10195   mingw* | pw32*)
10196     lt_cv_dlopen="LoadLibrary"
10197     lt_cv_dlopen_libs=
10198    ;;
10199
10200   cygwin*)
10201     lt_cv_dlopen="dlopen"
10202     lt_cv_dlopen_libs=
10203    ;;
10204
10205   darwin*)
10206   # if libdl is installed we need to link against it
10207     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10208 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10209 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10210   echo $ECHO_N "(cached) $ECHO_C" >&6
10211 else
10212   ac_check_lib_save_LIBS=$LIBS
10213 LIBS="-ldl  $LIBS"
10214 cat >conftest.$ac_ext <<_ACEOF
10215 /* confdefs.h.  */
10216 _ACEOF
10217 cat confdefs.h >>conftest.$ac_ext
10218 cat >>conftest.$ac_ext <<_ACEOF
10219 /* end confdefs.h.  */
10220
10221 /* Override any GCC internal prototype to avoid an error.
10222    Use char because int might match the return type of a GCC
10223    builtin and then its argument prototype would still apply.  */
10224 #ifdef __cplusplus
10225 extern "C"
10226 #endif
10227 char dlopen ();
10228 int
10229 main ()
10230 {
10231 return dlopen ();
10232   ;
10233   return 0;
10234 }
10235 _ACEOF
10236 rm -f conftest.$ac_objext conftest$ac_exeext
10237 if { (ac_try="$ac_link"
10238 case "(($ac_try" in
10239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10240   *) ac_try_echo=$ac_try;;
10241 esac
10242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10243   (eval "$ac_link") 2>conftest.er1
10244   ac_status=$?
10245   grep -v '^ *+' conftest.er1 >conftest.err
10246   rm -f conftest.er1
10247   cat conftest.err >&5
10248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10249   (exit $ac_status); } && {
10250          test -z "$ac_c_werror_flag" ||
10251          test ! -s conftest.err
10252        } && test -s conftest$ac_exeext &&
10253        $as_test_x conftest$ac_exeext; then
10254   ac_cv_lib_dl_dlopen=yes
10255 else
10256   echo "$as_me: failed program was:" >&5
10257 sed 's/^/| /' conftest.$ac_ext >&5
10258
10259         ac_cv_lib_dl_dlopen=no
10260 fi
10261
10262 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10263       conftest$ac_exeext conftest.$ac_ext
10264 LIBS=$ac_check_lib_save_LIBS
10265 fi
10266 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10267 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10268 if test $ac_cv_lib_dl_dlopen = yes; then
10269   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10270 else
10271
10272     lt_cv_dlopen="dyld"
10273     lt_cv_dlopen_libs=
10274     lt_cv_dlopen_self=yes
10275
10276 fi
10277
10278    ;;
10279
10280   *)
10281     { echo "$as_me:$LINENO: checking for shl_load" >&5
10282 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10283 if test "${ac_cv_func_shl_load+set}" = set; then
10284   echo $ECHO_N "(cached) $ECHO_C" >&6
10285 else
10286   cat >conftest.$ac_ext <<_ACEOF
10287 /* confdefs.h.  */
10288 _ACEOF
10289 cat confdefs.h >>conftest.$ac_ext
10290 cat >>conftest.$ac_ext <<_ACEOF
10291 /* end confdefs.h.  */
10292 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10293    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10294 #define shl_load innocuous_shl_load
10295
10296 /* System header to define __stub macros and hopefully few prototypes,
10297     which can conflict with char shl_load (); below.
10298     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10299     <limits.h> exists even on freestanding compilers.  */
10300
10301 #ifdef __STDC__
10302 # include <limits.h>
10303 #else
10304 # include <assert.h>
10305 #endif
10306
10307 #undef shl_load
10308
10309 /* Override any GCC internal prototype to avoid an error.
10310    Use char because int might match the return type of a GCC
10311    builtin and then its argument prototype would still apply.  */
10312 #ifdef __cplusplus
10313 extern "C"
10314 #endif
10315 char shl_load ();
10316 /* The GNU C library defines this for functions which it implements
10317     to always fail with ENOSYS.  Some functions are actually named
10318     something starting with __ and the normal name is an alias.  */
10319 #if defined __stub_shl_load || defined __stub___shl_load
10320 choke me
10321 #endif
10322
10323 int
10324 main ()
10325 {
10326 return shl_load ();
10327   ;
10328   return 0;
10329 }
10330 _ACEOF
10331 rm -f conftest.$ac_objext conftest$ac_exeext
10332 if { (ac_try="$ac_link"
10333 case "(($ac_try" in
10334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10335   *) ac_try_echo=$ac_try;;
10336 esac
10337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10338   (eval "$ac_link") 2>conftest.er1
10339   ac_status=$?
10340   grep -v '^ *+' conftest.er1 >conftest.err
10341   rm -f conftest.er1
10342   cat conftest.err >&5
10343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10344   (exit $ac_status); } && {
10345          test -z "$ac_c_werror_flag" ||
10346          test ! -s conftest.err
10347        } && test -s conftest$ac_exeext &&
10348        $as_test_x conftest$ac_exeext; then
10349   ac_cv_func_shl_load=yes
10350 else
10351   echo "$as_me: failed program was:" >&5
10352 sed 's/^/| /' conftest.$ac_ext >&5
10353
10354         ac_cv_func_shl_load=no
10355 fi
10356
10357 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10358       conftest$ac_exeext conftest.$ac_ext
10359 fi
10360 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10361 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10362 if test $ac_cv_func_shl_load = yes; then
10363   lt_cv_dlopen="shl_load"
10364 else
10365   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10366 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10367 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10368   echo $ECHO_N "(cached) $ECHO_C" >&6
10369 else
10370   ac_check_lib_save_LIBS=$LIBS
10371 LIBS="-ldld  $LIBS"
10372 cat >conftest.$ac_ext <<_ACEOF
10373 /* confdefs.h.  */
10374 _ACEOF
10375 cat confdefs.h >>conftest.$ac_ext
10376 cat >>conftest.$ac_ext <<_ACEOF
10377 /* end confdefs.h.  */
10378
10379 /* Override any GCC internal prototype to avoid an error.
10380    Use char because int might match the return type of a GCC
10381    builtin and then its argument prototype would still apply.  */
10382 #ifdef __cplusplus
10383 extern "C"
10384 #endif
10385 char shl_load ();
10386 int
10387 main ()
10388 {
10389 return shl_load ();
10390   ;
10391   return 0;
10392 }
10393 _ACEOF
10394 rm -f conftest.$ac_objext conftest$ac_exeext
10395 if { (ac_try="$ac_link"
10396 case "(($ac_try" in
10397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10398   *) ac_try_echo=$ac_try;;
10399 esac
10400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10401   (eval "$ac_link") 2>conftest.er1
10402   ac_status=$?
10403   grep -v '^ *+' conftest.er1 >conftest.err
10404   rm -f conftest.er1
10405   cat conftest.err >&5
10406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10407   (exit $ac_status); } && {
10408          test -z "$ac_c_werror_flag" ||
10409          test ! -s conftest.err
10410        } && test -s conftest$ac_exeext &&
10411        $as_test_x conftest$ac_exeext; then
10412   ac_cv_lib_dld_shl_load=yes
10413 else
10414   echo "$as_me: failed program was:" >&5
10415 sed 's/^/| /' conftest.$ac_ext >&5
10416
10417         ac_cv_lib_dld_shl_load=no
10418 fi
10419
10420 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10421       conftest$ac_exeext conftest.$ac_ext
10422 LIBS=$ac_check_lib_save_LIBS
10423 fi
10424 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10425 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10426 if test $ac_cv_lib_dld_shl_load = yes; then
10427   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10428 else
10429   { echo "$as_me:$LINENO: checking for dlopen" >&5
10430 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10431 if test "${ac_cv_func_dlopen+set}" = set; then
10432   echo $ECHO_N "(cached) $ECHO_C" >&6
10433 else
10434   cat >conftest.$ac_ext <<_ACEOF
10435 /* confdefs.h.  */
10436 _ACEOF
10437 cat confdefs.h >>conftest.$ac_ext
10438 cat >>conftest.$ac_ext <<_ACEOF
10439 /* end confdefs.h.  */
10440 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10441    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10442 #define dlopen innocuous_dlopen
10443
10444 /* System header to define __stub macros and hopefully few prototypes,
10445     which can conflict with char dlopen (); below.
10446     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10447     <limits.h> exists even on freestanding compilers.  */
10448
10449 #ifdef __STDC__
10450 # include <limits.h>
10451 #else
10452 # include <assert.h>
10453 #endif
10454
10455 #undef dlopen
10456
10457 /* Override any GCC internal prototype to avoid an error.
10458    Use char because int might match the return type of a GCC
10459    builtin and then its argument prototype would still apply.  */
10460 #ifdef __cplusplus
10461 extern "C"
10462 #endif
10463 char dlopen ();
10464 /* The GNU C library defines this for functions which it implements
10465     to always fail with ENOSYS.  Some functions are actually named
10466     something starting with __ and the normal name is an alias.  */
10467 #if defined __stub_dlopen || defined __stub___dlopen
10468 choke me
10469 #endif
10470
10471 int
10472 main ()
10473 {
10474 return dlopen ();
10475   ;
10476   return 0;
10477 }
10478 _ACEOF
10479 rm -f conftest.$ac_objext conftest$ac_exeext
10480 if { (ac_try="$ac_link"
10481 case "(($ac_try" in
10482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10483   *) ac_try_echo=$ac_try;;
10484 esac
10485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10486   (eval "$ac_link") 2>conftest.er1
10487   ac_status=$?
10488   grep -v '^ *+' conftest.er1 >conftest.err
10489   rm -f conftest.er1
10490   cat conftest.err >&5
10491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10492   (exit $ac_status); } && {
10493          test -z "$ac_c_werror_flag" ||
10494          test ! -s conftest.err
10495        } && test -s conftest$ac_exeext &&
10496        $as_test_x conftest$ac_exeext; then
10497   ac_cv_func_dlopen=yes
10498 else
10499   echo "$as_me: failed program was:" >&5
10500 sed 's/^/| /' conftest.$ac_ext >&5
10501
10502         ac_cv_func_dlopen=no
10503 fi
10504
10505 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10506       conftest$ac_exeext conftest.$ac_ext
10507 fi
10508 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10509 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10510 if test $ac_cv_func_dlopen = yes; then
10511   lt_cv_dlopen="dlopen"
10512 else
10513   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10514 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10515 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10516   echo $ECHO_N "(cached) $ECHO_C" >&6
10517 else
10518   ac_check_lib_save_LIBS=$LIBS
10519 LIBS="-ldl  $LIBS"
10520 cat >conftest.$ac_ext <<_ACEOF
10521 /* confdefs.h.  */
10522 _ACEOF
10523 cat confdefs.h >>conftest.$ac_ext
10524 cat >>conftest.$ac_ext <<_ACEOF
10525 /* end confdefs.h.  */
10526
10527 /* Override any GCC internal prototype to avoid an error.
10528    Use char because int might match the return type of a GCC
10529    builtin and then its argument prototype would still apply.  */
10530 #ifdef __cplusplus
10531 extern "C"
10532 #endif
10533 char dlopen ();
10534 int
10535 main ()
10536 {
10537 return dlopen ();
10538   ;
10539   return 0;
10540 }
10541 _ACEOF
10542 rm -f conftest.$ac_objext conftest$ac_exeext
10543 if { (ac_try="$ac_link"
10544 case "(($ac_try" in
10545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10546   *) ac_try_echo=$ac_try;;
10547 esac
10548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10549   (eval "$ac_link") 2>conftest.er1
10550   ac_status=$?
10551   grep -v '^ *+' conftest.er1 >conftest.err
10552   rm -f conftest.er1
10553   cat conftest.err >&5
10554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10555   (exit $ac_status); } && {
10556          test -z "$ac_c_werror_flag" ||
10557          test ! -s conftest.err
10558        } && test -s conftest$ac_exeext &&
10559        $as_test_x conftest$ac_exeext; then
10560   ac_cv_lib_dl_dlopen=yes
10561 else
10562   echo "$as_me: failed program was:" >&5
10563 sed 's/^/| /' conftest.$ac_ext >&5
10564
10565         ac_cv_lib_dl_dlopen=no
10566 fi
10567
10568 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10569       conftest$ac_exeext conftest.$ac_ext
10570 LIBS=$ac_check_lib_save_LIBS
10571 fi
10572 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10573 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10574 if test $ac_cv_lib_dl_dlopen = yes; then
10575   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10576 else
10577   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10578 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10579 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10580   echo $ECHO_N "(cached) $ECHO_C" >&6
10581 else
10582   ac_check_lib_save_LIBS=$LIBS
10583 LIBS="-lsvld  $LIBS"
10584 cat >conftest.$ac_ext <<_ACEOF
10585 /* confdefs.h.  */
10586 _ACEOF
10587 cat confdefs.h >>conftest.$ac_ext
10588 cat >>conftest.$ac_ext <<_ACEOF
10589 /* end confdefs.h.  */
10590
10591 /* Override any GCC internal prototype to avoid an error.
10592    Use char because int might match the return type of a GCC
10593    builtin and then its argument prototype would still apply.  */
10594 #ifdef __cplusplus
10595 extern "C"
10596 #endif
10597 char dlopen ();
10598 int
10599 main ()
10600 {
10601 return dlopen ();
10602   ;
10603   return 0;
10604 }
10605 _ACEOF
10606 rm -f conftest.$ac_objext conftest$ac_exeext
10607 if { (ac_try="$ac_link"
10608 case "(($ac_try" in
10609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10610   *) ac_try_echo=$ac_try;;
10611 esac
10612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10613   (eval "$ac_link") 2>conftest.er1
10614   ac_status=$?
10615   grep -v '^ *+' conftest.er1 >conftest.err
10616   rm -f conftest.er1
10617   cat conftest.err >&5
10618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10619   (exit $ac_status); } && {
10620          test -z "$ac_c_werror_flag" ||
10621          test ! -s conftest.err
10622        } && test -s conftest$ac_exeext &&
10623        $as_test_x conftest$ac_exeext; then
10624   ac_cv_lib_svld_dlopen=yes
10625 else
10626   echo "$as_me: failed program was:" >&5
10627 sed 's/^/| /' conftest.$ac_ext >&5
10628
10629         ac_cv_lib_svld_dlopen=no
10630 fi
10631
10632 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10633       conftest$ac_exeext conftest.$ac_ext
10634 LIBS=$ac_check_lib_save_LIBS
10635 fi
10636 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10637 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10638 if test $ac_cv_lib_svld_dlopen = yes; then
10639   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10640 else
10641   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10642 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10643 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10644   echo $ECHO_N "(cached) $ECHO_C" >&6
10645 else
10646   ac_check_lib_save_LIBS=$LIBS
10647 LIBS="-ldld  $LIBS"
10648 cat >conftest.$ac_ext <<_ACEOF
10649 /* confdefs.h.  */
10650 _ACEOF
10651 cat confdefs.h >>conftest.$ac_ext
10652 cat >>conftest.$ac_ext <<_ACEOF
10653 /* end confdefs.h.  */
10654
10655 /* Override any GCC internal prototype to avoid an error.
10656    Use char because int might match the return type of a GCC
10657    builtin and then its argument prototype would still apply.  */
10658 #ifdef __cplusplus
10659 extern "C"
10660 #endif
10661 char dld_link ();
10662 int
10663 main ()
10664 {
10665 return dld_link ();
10666   ;
10667   return 0;
10668 }
10669 _ACEOF
10670 rm -f conftest.$ac_objext conftest$ac_exeext
10671 if { (ac_try="$ac_link"
10672 case "(($ac_try" in
10673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10674   *) ac_try_echo=$ac_try;;
10675 esac
10676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10677   (eval "$ac_link") 2>conftest.er1
10678   ac_status=$?
10679   grep -v '^ *+' conftest.er1 >conftest.err
10680   rm -f conftest.er1
10681   cat conftest.err >&5
10682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10683   (exit $ac_status); } && {
10684          test -z "$ac_c_werror_flag" ||
10685          test ! -s conftest.err
10686        } && test -s conftest$ac_exeext &&
10687        $as_test_x conftest$ac_exeext; then
10688   ac_cv_lib_dld_dld_link=yes
10689 else
10690   echo "$as_me: failed program was:" >&5
10691 sed 's/^/| /' conftest.$ac_ext >&5
10692
10693         ac_cv_lib_dld_dld_link=no
10694 fi
10695
10696 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10697       conftest$ac_exeext conftest.$ac_ext
10698 LIBS=$ac_check_lib_save_LIBS
10699 fi
10700 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10701 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10702 if test $ac_cv_lib_dld_dld_link = yes; then
10703   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10704 fi
10705
10706
10707 fi
10708
10709
10710 fi
10711
10712
10713 fi
10714
10715
10716 fi
10717
10718
10719 fi
10720
10721     ;;
10722   esac
10723
10724   if test "x$lt_cv_dlopen" != xno; then
10725     enable_dlopen=yes
10726   else
10727     enable_dlopen=no
10728   fi
10729
10730   case $lt_cv_dlopen in
10731   dlopen)
10732     save_CPPFLAGS="$CPPFLAGS"
10733     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10734
10735     save_LDFLAGS="$LDFLAGS"
10736     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10737
10738     save_LIBS="$LIBS"
10739     LIBS="$lt_cv_dlopen_libs $LIBS"
10740
10741     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10742 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10743 if test "${lt_cv_dlopen_self+set}" = set; then
10744   echo $ECHO_N "(cached) $ECHO_C" >&6
10745 else
10746           if test "$cross_compiling" = yes; then :
10747   lt_cv_dlopen_self=cross
10748 else
10749   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10750   lt_status=$lt_dlunknown
10751   cat > conftest.$ac_ext <<EOF
10752 #line 10752 "configure"
10753 #include "confdefs.h"
10754
10755 #if HAVE_DLFCN_H
10756 #include <dlfcn.h>
10757 #endif
10758
10759 #include <stdio.h>
10760
10761 #ifdef RTLD_GLOBAL
10762 #  define LT_DLGLOBAL           RTLD_GLOBAL
10763 #else
10764 #  ifdef DL_GLOBAL
10765 #    define LT_DLGLOBAL         DL_GLOBAL
10766 #  else
10767 #    define LT_DLGLOBAL         0
10768 #  endif
10769 #endif
10770
10771 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10772    find out it does not work in some platform. */
10773 #ifndef LT_DLLAZY_OR_NOW
10774 #  ifdef RTLD_LAZY
10775 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10776 #  else
10777 #    ifdef DL_LAZY
10778 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10779 #    else
10780 #      ifdef RTLD_NOW
10781 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10782 #      else
10783 #        ifdef DL_NOW
10784 #          define LT_DLLAZY_OR_NOW      DL_NOW
10785 #        else
10786 #          define LT_DLLAZY_OR_NOW      0
10787 #        endif
10788 #      endif
10789 #    endif
10790 #  endif
10791 #endif
10792
10793 #ifdef __cplusplus
10794 extern "C" void exit (int);
10795 #endif
10796
10797 void fnord() { int i=42;}
10798 int main ()
10799 {
10800   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10801   int status = $lt_dlunknown;
10802
10803   if (self)
10804     {
10805       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10806       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10807       /* dlclose (self); */
10808     }
10809   else
10810     puts (dlerror ());
10811
10812     exit (status);
10813 }
10814 EOF
10815   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10816   (eval $ac_link) 2>&5
10817   ac_status=$?
10818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10819   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10820     (./conftest; exit; ) >&5 2>/dev/null
10821     lt_status=$?
10822     case x$lt_status in
10823       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10824       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10825       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10826     esac
10827   else :
10828     # compilation failed
10829     lt_cv_dlopen_self=no
10830   fi
10831 fi
10832 rm -fr conftest*
10833
10834
10835 fi
10836 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10837 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10838
10839     if test "x$lt_cv_dlopen_self" = xyes; then
10840       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10841       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10842 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10843 if test "${lt_cv_dlopen_self_static+set}" = set; then
10844   echo $ECHO_N "(cached) $ECHO_C" >&6
10845 else
10846           if test "$cross_compiling" = yes; then :
10847   lt_cv_dlopen_self_static=cross
10848 else
10849   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10850   lt_status=$lt_dlunknown
10851   cat > conftest.$ac_ext <<EOF
10852 #line 10852 "configure"
10853 #include "confdefs.h"
10854
10855 #if HAVE_DLFCN_H
10856 #include <dlfcn.h>
10857 #endif
10858
10859 #include <stdio.h>
10860
10861 #ifdef RTLD_GLOBAL
10862 #  define LT_DLGLOBAL           RTLD_GLOBAL
10863 #else
10864 #  ifdef DL_GLOBAL
10865 #    define LT_DLGLOBAL         DL_GLOBAL
10866 #  else
10867 #    define LT_DLGLOBAL         0
10868 #  endif
10869 #endif
10870
10871 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10872    find out it does not work in some platform. */
10873 #ifndef LT_DLLAZY_OR_NOW
10874 #  ifdef RTLD_LAZY
10875 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10876 #  else
10877 #    ifdef DL_LAZY
10878 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10879 #    else
10880 #      ifdef RTLD_NOW
10881 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10882 #      else
10883 #        ifdef DL_NOW
10884 #          define LT_DLLAZY_OR_NOW      DL_NOW
10885 #        else
10886 #          define LT_DLLAZY_OR_NOW      0
10887 #        endif
10888 #      endif
10889 #    endif
10890 #  endif
10891 #endif
10892
10893 #ifdef __cplusplus
10894 extern "C" void exit (int);
10895 #endif
10896
10897 void fnord() { int i=42;}
10898 int main ()
10899 {
10900   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10901   int status = $lt_dlunknown;
10902
10903   if (self)
10904     {
10905       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10906       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10907       /* dlclose (self); */
10908     }
10909   else
10910     puts (dlerror ());
10911
10912     exit (status);
10913 }
10914 EOF
10915   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10916   (eval $ac_link) 2>&5
10917   ac_status=$?
10918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10919   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10920     (./conftest; exit; ) >&5 2>/dev/null
10921     lt_status=$?
10922     case x$lt_status in
10923       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10924       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10925       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10926     esac
10927   else :
10928     # compilation failed
10929     lt_cv_dlopen_self_static=no
10930   fi
10931 fi
10932 rm -fr conftest*
10933
10934
10935 fi
10936 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10937 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10938     fi
10939
10940     CPPFLAGS="$save_CPPFLAGS"
10941     LDFLAGS="$save_LDFLAGS"
10942     LIBS="$save_LIBS"
10943     ;;
10944   esac
10945
10946   case $lt_cv_dlopen_self in
10947   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10948   *) enable_dlopen_self=unknown ;;
10949   esac
10950
10951   case $lt_cv_dlopen_self_static in
10952   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10953   *) enable_dlopen_self_static=unknown ;;
10954   esac
10955 fi
10956
10957
10958 # Report which library types will actually be built
10959 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10960 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10961 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10962 echo "${ECHO_T}$can_build_shared" >&6; }
10963
10964 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10965 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10966 test "$can_build_shared" = "no" && enable_shared=no
10967
10968 # On AIX, shared libraries and static libraries use the same namespace, and
10969 # are all built from PIC.
10970 case $host_os in
10971 aix3*)
10972   test "$enable_shared" = yes && enable_static=no
10973   if test -n "$RANLIB"; then
10974     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10975     postinstall_cmds='$RANLIB $lib'
10976   fi
10977   ;;
10978
10979 aix4* | aix5*)
10980   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10981     test "$enable_shared" = yes && enable_static=no
10982   fi
10983     ;;
10984 esac
10985 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10986 echo "${ECHO_T}$enable_shared" >&6; }
10987
10988 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10989 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10990 # Make sure either enable_shared or enable_static is yes.
10991 test "$enable_shared" = yes || enable_static=yes
10992 { echo "$as_me:$LINENO: result: $enable_static" >&5
10993 echo "${ECHO_T}$enable_static" >&6; }
10994
10995 # The else clause should only fire when bootstrapping the
10996 # libtool distribution, otherwise you forgot to ship ltmain.sh
10997 # with your package, and you will get complaints that there are
10998 # no rules to generate ltmain.sh.
10999 if test -f "$ltmain"; then
11000   # See if we are running on zsh, and set the options which allow our commands through
11001   # without removal of \ escapes.
11002   if test -n "${ZSH_VERSION+set}" ; then
11003     setopt NO_GLOB_SUBST
11004   fi
11005   # Now quote all the things that may contain metacharacters while being
11006   # careful not to overquote the AC_SUBSTed values.  We take copies of the
11007   # variables and quote the copies for generation of the libtool script.
11008   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
11009     SED SHELL STRIP \
11010     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11011     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11012     deplibs_check_method reload_flag reload_cmds need_locks \
11013     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11014     lt_cv_sys_global_symbol_to_c_name_address \
11015     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11016     old_postinstall_cmds old_postuninstall_cmds \
11017     compiler \
11018     CC \
11019     LD \
11020     lt_prog_compiler_wl \
11021     lt_prog_compiler_pic \
11022     lt_prog_compiler_static \
11023     lt_prog_compiler_no_builtin_flag \
11024     export_dynamic_flag_spec \
11025     thread_safe_flag_spec \
11026     whole_archive_flag_spec \
11027     enable_shared_with_static_runtimes \
11028     old_archive_cmds \
11029     old_archive_from_new_cmds \
11030     predep_objects \
11031     postdep_objects \
11032     predeps \
11033     postdeps \
11034     compiler_lib_search_path \
11035     archive_cmds \
11036     archive_expsym_cmds \
11037     postinstall_cmds \
11038     postuninstall_cmds \
11039     old_archive_from_expsyms_cmds \
11040     allow_undefined_flag \
11041     no_undefined_flag \
11042     export_symbols_cmds \
11043     hardcode_libdir_flag_spec \
11044     hardcode_libdir_flag_spec_ld \
11045     hardcode_libdir_separator \
11046     hardcode_automatic \
11047     module_cmds \
11048     module_expsym_cmds \
11049     lt_cv_prog_compiler_c_o \
11050     exclude_expsyms \
11051     include_expsyms; do
11052
11053     case $var in
11054     old_archive_cmds | \
11055     old_archive_from_new_cmds | \
11056     archive_cmds | \
11057     archive_expsym_cmds | \
11058     module_cmds | \
11059     module_expsym_cmds | \
11060     old_archive_from_expsyms_cmds | \
11061     export_symbols_cmds | \
11062     extract_expsyms_cmds | reload_cmds | finish_cmds | \
11063     postinstall_cmds | postuninstall_cmds | \
11064     old_postinstall_cmds | old_postuninstall_cmds | \
11065     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11066       # Double-quote double-evaled strings.
11067       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11068       ;;
11069     *)
11070       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11071       ;;
11072     esac
11073   done
11074
11075   case $lt_echo in
11076   *'\$0 --fallback-echo"')
11077     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11078     ;;
11079   esac
11080
11081 cfgfile="${ofile}T"
11082   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11083   $rm -f "$cfgfile"
11084   { echo "$as_me:$LINENO: creating $ofile" >&5
11085 echo "$as_me: creating $ofile" >&6;}
11086
11087   cat <<__EOF__ >> "$cfgfile"
11088 #! $SHELL
11089
11090 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11091 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11092 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11093 #
11094 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11095 # Free Software Foundation, Inc.
11096 #
11097 # This file is part of GNU Libtool:
11098 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11099 #
11100 # This program is free software; you can redistribute it and/or modify
11101 # it under the terms of the GNU General Public License as published by
11102 # the Free Software Foundation; either version 2 of the License, or
11103 # (at your option) any later version.
11104 #
11105 # This program is distributed in the hope that it will be useful, but
11106 # WITHOUT ANY WARRANTY; without even the implied warranty of
11107 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11108 # General Public License for more details.
11109 #
11110 # You should have received a copy of the GNU General Public License
11111 # along with this program; if not, write to the Free Software
11112 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11113 #
11114 # As a special exception to the GNU General Public License, if you
11115 # distribute this file as part of a program that contains a
11116 # configuration script generated by Autoconf, you may include it under
11117 # the same distribution terms that you use for the rest of that program.
11118
11119 # A sed program that does not truncate output.
11120 SED=$lt_SED
11121
11122 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11123 Xsed="$SED -e 1s/^X//"
11124
11125 # The HP-UX ksh and POSIX shell print the target directory to stdout
11126 # if CDPATH is set.
11127 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11128
11129 # The names of the tagged configurations supported by this script.
11130 available_tags=
11131
11132 # ### BEGIN LIBTOOL CONFIG
11133
11134 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11135
11136 # Shell to use when invoking shell scripts.
11137 SHELL=$lt_SHELL
11138
11139 # Whether or not to build shared libraries.
11140 build_libtool_libs=$enable_shared
11141
11142 # Whether or not to build static libraries.
11143 build_old_libs=$enable_static
11144
11145 # Whether or not to add -lc for building shared libraries.
11146 build_libtool_need_lc=$archive_cmds_need_lc
11147
11148 # Whether or not to disallow shared libs when runtime libs are static
11149 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11150
11151 # Whether or not to optimize for fast installation.
11152 fast_install=$enable_fast_install
11153
11154 # The host system.
11155 host_alias=$host_alias
11156 host=$host
11157 host_os=$host_os
11158
11159 # The build system.
11160 build_alias=$build_alias
11161 build=$build
11162 build_os=$build_os
11163
11164 # An echo program that does not interpret backslashes.
11165 echo=$lt_echo
11166
11167 # The archiver.
11168 AR=$lt_AR
11169 AR_FLAGS=$lt_AR_FLAGS
11170
11171 # A C compiler.
11172 LTCC=$lt_LTCC
11173
11174 # LTCC compiler flags.
11175 LTCFLAGS=$lt_LTCFLAGS
11176
11177 # A language-specific compiler.
11178 CC=$lt_compiler
11179
11180 # Is the compiler the GNU C compiler?
11181 with_gcc=$GCC
11182
11183 # An ERE matcher.
11184 EGREP=$lt_EGREP
11185
11186 # The linker used to build libraries.
11187 LD=$lt_LD
11188
11189 # Whether we need hard or soft links.
11190 LN_S=$lt_LN_S
11191
11192 # A BSD-compatible nm program.
11193 NM=$lt_NM
11194
11195 # A symbol stripping program
11196 STRIP=$lt_STRIP
11197
11198 # Used to examine libraries when file_magic_cmd begins "file"
11199 MAGIC_CMD=$MAGIC_CMD
11200
11201 # Used on cygwin: DLL creation program.
11202 DLLTOOL="$DLLTOOL"
11203
11204 # Used on cygwin: object dumper.
11205 OBJDUMP="$OBJDUMP"
11206
11207 # Used on cygwin: assembler.
11208 AS="$AS"
11209
11210 # The name of the directory that contains temporary libtool files.
11211 objdir=$objdir
11212
11213 # How to create reloadable object files.
11214 reload_flag=$lt_reload_flag
11215 reload_cmds=$lt_reload_cmds
11216
11217 # How to pass a linker flag through the compiler.
11218 wl=$lt_lt_prog_compiler_wl
11219
11220 # Object file suffix (normally "o").
11221 objext="$ac_objext"
11222
11223 # Old archive suffix (normally "a").
11224 libext="$libext"
11225
11226 # Shared library suffix (normally ".so").
11227 shrext_cmds='$shrext_cmds'
11228
11229 # Executable file suffix (normally "").
11230 exeext="$exeext"
11231
11232 # Additional compiler flags for building library objects.
11233 pic_flag=$lt_lt_prog_compiler_pic
11234 pic_mode=$pic_mode
11235
11236 # What is the maximum length of a command?
11237 max_cmd_len=$lt_cv_sys_max_cmd_len
11238
11239 # Does compiler simultaneously support -c and -o options?
11240 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11241
11242 # Must we lock files when doing compilation?
11243 need_locks=$lt_need_locks
11244
11245 # Do we need the lib prefix for modules?
11246 need_lib_prefix=$need_lib_prefix
11247
11248 # Do we need a version for libraries?
11249 need_version=$need_version
11250
11251 # Whether dlopen is supported.
11252 dlopen_support=$enable_dlopen
11253
11254 # Whether dlopen of programs is supported.
11255 dlopen_self=$enable_dlopen_self
11256
11257 # Whether dlopen of statically linked programs is supported.
11258 dlopen_self_static=$enable_dlopen_self_static
11259
11260 # Compiler flag to prevent dynamic linking.
11261 link_static_flag=$lt_lt_prog_compiler_static
11262
11263 # Compiler flag to turn off builtin functions.
11264 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11265
11266 # Compiler flag to allow reflexive dlopens.
11267 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11268
11269 # Compiler flag to generate shared objects directly from archives.
11270 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11271
11272 # Compiler flag to generate thread-safe objects.
11273 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11274
11275 # Library versioning type.
11276 version_type=$version_type
11277
11278 # Format of library name prefix.
11279 libname_spec=$lt_libname_spec
11280
11281 # List of archive names.  First name is the real one, the rest are links.
11282 # The last name is the one that the linker finds with -lNAME.
11283 library_names_spec=$lt_library_names_spec
11284
11285 # The coded name of the library, if different from the real name.
11286 soname_spec=$lt_soname_spec
11287
11288 # Commands used to build and install an old-style archive.
11289 RANLIB=$lt_RANLIB
11290 old_archive_cmds=$lt_old_archive_cmds
11291 old_postinstall_cmds=$lt_old_postinstall_cmds
11292 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11293
11294 # Create an old-style archive from a shared archive.
11295 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11296
11297 # Create a temporary old-style archive to link instead of a shared archive.
11298 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11299
11300 # Commands used to build and install a shared archive.
11301 archive_cmds=$lt_archive_cmds
11302 archive_expsym_cmds=$lt_archive_expsym_cmds
11303 postinstall_cmds=$lt_postinstall_cmds
11304 postuninstall_cmds=$lt_postuninstall_cmds
11305
11306 # Commands used to build a loadable module (assumed same as above if empty)
11307 module_cmds=$lt_module_cmds
11308 module_expsym_cmds=$lt_module_expsym_cmds
11309
11310 # Commands to strip libraries.
11311 old_striplib=$lt_old_striplib
11312 striplib=$lt_striplib
11313
11314 # Dependencies to place before the objects being linked to create a
11315 # shared library.
11316 predep_objects=$lt_predep_objects
11317
11318 # Dependencies to place after the objects being linked to create a
11319 # shared library.
11320 postdep_objects=$lt_postdep_objects
11321
11322 # Dependencies to place before the objects being linked to create a
11323 # shared library.
11324 predeps=$lt_predeps
11325
11326 # Dependencies to place after the objects being linked to create a
11327 # shared library.
11328 postdeps=$lt_postdeps
11329
11330 # The library search path used internally by the compiler when linking
11331 # a shared library.
11332 compiler_lib_search_path=$lt_compiler_lib_search_path
11333
11334 # Method to check whether dependent libraries are shared objects.
11335 deplibs_check_method=$lt_deplibs_check_method
11336
11337 # Command to use when deplibs_check_method == file_magic.
11338 file_magic_cmd=$lt_file_magic_cmd
11339
11340 # Flag that allows shared libraries with undefined symbols to be built.
11341 allow_undefined_flag=$lt_allow_undefined_flag
11342
11343 # Flag that forces no undefined symbols.
11344 no_undefined_flag=$lt_no_undefined_flag
11345
11346 # Commands used to finish a libtool library installation in a directory.
11347 finish_cmds=$lt_finish_cmds
11348
11349 # Same as above, but a single script fragment to be evaled but not shown.
11350 finish_eval=$lt_finish_eval
11351
11352 # Take the output of nm and produce a listing of raw symbols and C names.
11353 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11354
11355 # Transform the output of nm in a proper C declaration
11356 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11357
11358 # Transform the output of nm in a C name address pair
11359 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11360
11361 # This is the shared library runtime path variable.
11362 runpath_var=$runpath_var
11363
11364 # This is the shared library path variable.
11365 shlibpath_var=$shlibpath_var
11366
11367 # Is shlibpath searched before the hard-coded library search path?
11368 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11369
11370 # How to hardcode a shared library path into an executable.
11371 hardcode_action=$hardcode_action
11372
11373 # Whether we should hardcode library paths into libraries.
11374 hardcode_into_libs=$hardcode_into_libs
11375
11376 # Flag to hardcode \$libdir into a binary during linking.
11377 # This must work even if \$libdir does not exist.
11378 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11379
11380 # If ld is used when linking, flag to hardcode \$libdir into
11381 # a binary during linking. This must work even if \$libdir does
11382 # not exist.
11383 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11384
11385 # Whether we need a single -rpath flag with a separated argument.
11386 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11387
11388 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11389 # resulting binary.
11390 hardcode_direct=$hardcode_direct
11391
11392 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11393 # resulting binary.
11394 hardcode_minus_L=$hardcode_minus_L
11395
11396 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11397 # the resulting binary.
11398 hardcode_shlibpath_var=$hardcode_shlibpath_var
11399
11400 # Set to yes if building a shared library automatically hardcodes DIR into the library
11401 # and all subsequent libraries and executables linked against it.
11402 hardcode_automatic=$hardcode_automatic
11403
11404 # Variables whose values should be saved in libtool wrapper scripts and
11405 # restored at relink time.
11406 variables_saved_for_relink="$variables_saved_for_relink"
11407
11408 # Whether libtool must link a program against all its dependency libraries.
11409 link_all_deplibs=$link_all_deplibs
11410
11411 # Compile-time system search path for libraries
11412 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11413
11414 # Run-time system search path for libraries
11415 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11416
11417 # Fix the shell variable \$srcfile for the compiler.
11418 fix_srcfile_path="$fix_srcfile_path"
11419
11420 # Set to yes if exported symbols are required.
11421 always_export_symbols=$always_export_symbols
11422
11423 # The commands to list exported symbols.
11424 export_symbols_cmds=$lt_export_symbols_cmds
11425
11426 # The commands to extract the exported symbol list from a shared archive.
11427 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11428
11429 # Symbols that should not be listed in the preloaded symbols.
11430 exclude_expsyms=$lt_exclude_expsyms
11431
11432 # Symbols that must always be exported.
11433 include_expsyms=$lt_include_expsyms
11434
11435 # ### END LIBTOOL CONFIG
11436
11437 __EOF__
11438
11439
11440   case $host_os in
11441   aix3*)
11442     cat <<\EOF >> "$cfgfile"
11443
11444 # AIX sometimes has problems with the GCC collect2 program.  For some
11445 # reason, if we set the COLLECT_NAMES environment variable, the problems
11446 # vanish in a puff of smoke.
11447 if test "X${COLLECT_NAMES+set}" != Xset; then
11448   COLLECT_NAMES=
11449   export COLLECT_NAMES
11450 fi
11451 EOF
11452     ;;
11453   esac
11454
11455   # We use sed instead of cat because bash on DJGPP gets confused if
11456   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11457   # text mode, it properly converts lines to CR/LF.  This bash problem
11458   # is reportedly fixed, but why not run on old versions too?
11459   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11460
11461   mv -f "$cfgfile" "$ofile" || \
11462     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11463   chmod +x "$ofile"
11464
11465 else
11466   # If there is no Makefile yet, we rely on a make rule to execute
11467   # `config.status --recheck' to rerun these tests and create the
11468   # libtool script then.
11469   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11470   if test -f "$ltmain_in"; then
11471     test -f Makefile && make "$ltmain"
11472   fi
11473 fi
11474
11475
11476 ac_ext=c
11477 ac_cpp='$CPP $CPPFLAGS'
11478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11480 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11481
11482 CC="$lt_save_CC"
11483
11484
11485 # Check whether --with-tags was given.
11486 if test "${with_tags+set}" = set; then
11487   withval=$with_tags; tagnames="$withval"
11488 fi
11489
11490
11491 if test -f "$ltmain" && test -n "$tagnames"; then
11492   if test ! -f "${ofile}"; then
11493     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11494 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11495   fi
11496
11497   if test -z "$LTCC"; then
11498     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11499     if test -z "$LTCC"; then
11500       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11501 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11502     else
11503       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11504 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11505     fi
11506   fi
11507   if test -z "$LTCFLAGS"; then
11508     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11509   fi
11510
11511   # Extract list of available tagged configurations in $ofile.
11512   # Note that this assumes the entire list is on one line.
11513   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11514
11515   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11516   for tagname in $tagnames; do
11517     IFS="$lt_save_ifs"
11518     # Check whether tagname contains only valid characters
11519     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11520     "") ;;
11521     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11522 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11523    { (exit 1); exit 1; }; }
11524         ;;
11525     esac
11526
11527     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11528     then
11529       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11530 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11531    { (exit 1); exit 1; }; }
11532     fi
11533
11534     # Update the list of available tags.
11535     if test -n "$tagname"; then
11536       echo appending configuration tag \"$tagname\" to $ofile
11537
11538       case $tagname in
11539       CXX)
11540         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11541             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11542             (test "X$CXX" != "Xg++"))) ; then
11543           ac_ext=cpp
11544 ac_cpp='$CXXCPP $CPPFLAGS'
11545 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11546 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11547 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11548
11549
11550
11551
11552 archive_cmds_need_lc_CXX=no
11553 allow_undefined_flag_CXX=
11554 always_export_symbols_CXX=no
11555 archive_expsym_cmds_CXX=
11556 export_dynamic_flag_spec_CXX=
11557 hardcode_direct_CXX=no
11558 hardcode_libdir_flag_spec_CXX=
11559 hardcode_libdir_flag_spec_ld_CXX=
11560 hardcode_libdir_separator_CXX=
11561 hardcode_minus_L_CXX=no
11562 hardcode_shlibpath_var_CXX=unsupported
11563 hardcode_automatic_CXX=no
11564 module_cmds_CXX=
11565 module_expsym_cmds_CXX=
11566 link_all_deplibs_CXX=unknown
11567 old_archive_cmds_CXX=$old_archive_cmds
11568 no_undefined_flag_CXX=
11569 whole_archive_flag_spec_CXX=
11570 enable_shared_with_static_runtimes_CXX=no
11571
11572 # Dependencies to place before and after the object being linked:
11573 predep_objects_CXX=
11574 postdep_objects_CXX=
11575 predeps_CXX=
11576 postdeps_CXX=
11577 compiler_lib_search_path_CXX=
11578
11579 # Source file extension for C++ test sources.
11580 ac_ext=cpp
11581
11582 # Object file extension for compiled C++ test sources.
11583 objext=o
11584 objext_CXX=$objext
11585
11586 # Code to be used in simple compile tests
11587 lt_simple_compile_test_code="int some_variable = 0;\n"
11588
11589 # Code to be used in simple link tests
11590 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
11591
11592 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11593
11594 # If no C compiler was specified, use CC.
11595 LTCC=${LTCC-"$CC"}
11596
11597 # If no C compiler flags were specified, use CFLAGS.
11598 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11599
11600 # Allow CC to be a program name with arguments.
11601 compiler=$CC
11602
11603
11604 # save warnings/boilerplate of simple test code
11605 ac_outfile=conftest.$ac_objext
11606 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11607 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11608 _lt_compiler_boilerplate=`cat conftest.err`
11609 $rm conftest*
11610
11611 ac_outfile=conftest.$ac_objext
11612 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11613 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11614 _lt_linker_boilerplate=`cat conftest.err`
11615 $rm conftest*
11616
11617
11618 # Allow CC to be a program name with arguments.
11619 lt_save_CC=$CC
11620 lt_save_LD=$LD
11621 lt_save_GCC=$GCC
11622 GCC=$GXX
11623 lt_save_with_gnu_ld=$with_gnu_ld
11624 lt_save_path_LD=$lt_cv_path_LD
11625 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11626   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11627 else
11628   $as_unset lt_cv_prog_gnu_ld
11629 fi
11630 if test -n "${lt_cv_path_LDCXX+set}"; then
11631   lt_cv_path_LD=$lt_cv_path_LDCXX
11632 else
11633   $as_unset lt_cv_path_LD
11634 fi
11635 test -z "${LDCXX+set}" || LD=$LDCXX
11636 CC=${CXX-"c++"}
11637 compiler=$CC
11638 compiler_CXX=$CC
11639 for cc_temp in $compiler""; do
11640   case $cc_temp in
11641     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11642     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11643     \-*) ;;
11644     *) break;;
11645   esac
11646 done
11647 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11648
11649
11650 # We don't want -fno-exception wen compiling C++ code, so set the
11651 # no_builtin_flag separately
11652 if test "$GXX" = yes; then
11653   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11654 else
11655   lt_prog_compiler_no_builtin_flag_CXX=
11656 fi
11657
11658 if test "$GXX" = yes; then
11659   # Set up default GNU C++ configuration
11660
11661
11662 # Check whether --with-gnu-ld was given.
11663 if test "${with_gnu_ld+set}" = set; then
11664   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11665 else
11666   with_gnu_ld=no
11667 fi
11668
11669 ac_prog=ld
11670 if test "$GCC" = yes; then
11671   # Check if gcc -print-prog-name=ld gives a path.
11672   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11673 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11674   case $host in
11675   *-*-mingw*)
11676     # gcc leaves a trailing carriage return which upsets mingw
11677     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11678   *)
11679     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11680   esac
11681   case $ac_prog in
11682     # Accept absolute paths.
11683     [\\/]* | ?:[\\/]*)
11684       re_direlt='/[^/][^/]*/\.\./'
11685       # Canonicalize the pathname of ld
11686       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11687       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11688         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11689       done
11690       test -z "$LD" && LD="$ac_prog"
11691       ;;
11692   "")
11693     # If it fails, then pretend we aren't using GCC.
11694     ac_prog=ld
11695     ;;
11696   *)
11697     # If it is relative, then search for the first ld in PATH.
11698     with_gnu_ld=unknown
11699     ;;
11700   esac
11701 elif test "$with_gnu_ld" = yes; then
11702   { echo "$as_me:$LINENO: checking for GNU ld" >&5
11703 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11704 else
11705   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11706 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11707 fi
11708 if test "${lt_cv_path_LD+set}" = set; then
11709   echo $ECHO_N "(cached) $ECHO_C" >&6
11710 else
11711   if test -z "$LD"; then
11712   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11713   for ac_dir in $PATH; do
11714     IFS="$lt_save_ifs"
11715     test -z "$ac_dir" && ac_dir=.
11716     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11717       lt_cv_path_LD="$ac_dir/$ac_prog"
11718       # Check to see if the program is GNU ld.  I'd rather use --version,
11719       # but apparently some variants of GNU ld only accept -v.
11720       # Break only if it was the GNU/non-GNU ld that we prefer.
11721       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11722       *GNU* | *'with BFD'*)
11723         test "$with_gnu_ld" != no && break
11724         ;;
11725       *)
11726         test "$with_gnu_ld" != yes && break
11727         ;;
11728       esac
11729     fi
11730   done
11731   IFS="$lt_save_ifs"
11732 else
11733   lt_cv_path_LD="$LD" # Let the user override the test with a path.
11734 fi
11735 fi
11736
11737 LD="$lt_cv_path_LD"
11738 if test -n "$LD"; then
11739   { echo "$as_me:$LINENO: result: $LD" >&5
11740 echo "${ECHO_T}$LD" >&6; }
11741 else
11742   { echo "$as_me:$LINENO: result: no" >&5
11743 echo "${ECHO_T}no" >&6; }
11744 fi
11745 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11746 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11747    { (exit 1); exit 1; }; }
11748 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11749 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11750 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11751   echo $ECHO_N "(cached) $ECHO_C" >&6
11752 else
11753   # I'd rather use --version here, but apparently some GNU lds only accept -v.
11754 case `$LD -v 2>&1 </dev/null` in
11755 *GNU* | *'with BFD'*)
11756   lt_cv_prog_gnu_ld=yes
11757   ;;
11758 *)
11759   lt_cv_prog_gnu_ld=no
11760   ;;
11761 esac
11762 fi
11763 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11764 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11765 with_gnu_ld=$lt_cv_prog_gnu_ld
11766
11767
11768
11769   # Check if GNU C++ uses GNU ld as the underlying linker, since the
11770   # archiving commands below assume that GNU ld is being used.
11771   if test "$with_gnu_ld" = yes; then
11772     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11773     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'
11774
11775     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11776     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11777
11778     # If archive_cmds runs LD, not CC, wlarc should be empty
11779     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11780     #     investigate it a little bit more. (MM)
11781     wlarc='${wl}'
11782
11783     # ancient GNU ld didn't support --whole-archive et. al.
11784     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11785         grep 'no-whole-archive' > /dev/null; then
11786       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11787     else
11788       whole_archive_flag_spec_CXX=
11789     fi
11790   else
11791     with_gnu_ld=no
11792     wlarc=
11793
11794     # A generic and very simple default shared library creation
11795     # command for GNU C++ for the case where it uses the native
11796     # linker, instead of GNU ld.  If possible, this setting should
11797     # overridden to take advantage of the native linker features on
11798     # the platform it is being used on.
11799     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11800   fi
11801
11802   # Commands to make compiler produce verbose output that lists
11803   # what "hidden" libraries, object files and flags are used when
11804   # linking a shared library.
11805   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11806
11807 else
11808   GXX=no
11809   with_gnu_ld=no
11810   wlarc=
11811 fi
11812
11813 # PORTME: fill in a description of your system's C++ link characteristics
11814 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11815 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11816 ld_shlibs_CXX=yes
11817 case $host_os in
11818   aix3*)
11819     # FIXME: insert proper C++ library support
11820     ld_shlibs_CXX=no
11821     ;;
11822   aix4* | aix5*)
11823     if test "$host_cpu" = ia64; then
11824       # On IA64, the linker does run time linking by default, so we don't
11825       # have to do anything special.
11826       aix_use_runtimelinking=no
11827       exp_sym_flag='-Bexport'
11828       no_entry_flag=""
11829     else
11830       aix_use_runtimelinking=no
11831
11832       # Test if we are trying to use run time linking or normal
11833       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11834       # need to do runtime linking.
11835       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11836         for ld_flag in $LDFLAGS; do
11837           case $ld_flag in
11838           *-brtl*)
11839             aix_use_runtimelinking=yes
11840             break
11841             ;;
11842           esac
11843         done
11844         ;;
11845       esac
11846
11847       exp_sym_flag='-bexport'
11848       no_entry_flag='-bnoentry'
11849     fi
11850
11851     # When large executables or shared objects are built, AIX ld can
11852     # have problems creating the table of contents.  If linking a library
11853     # or program results in "error TOC overflow" add -mminimal-toc to
11854     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11855     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11856
11857     archive_cmds_CXX=''
11858     hardcode_direct_CXX=yes
11859     hardcode_libdir_separator_CXX=':'
11860     link_all_deplibs_CXX=yes
11861
11862     if test "$GXX" = yes; then
11863       case $host_os in aix4.[012]|aix4.[012].*)
11864       # We only want to do this on AIX 4.2 and lower, the check
11865       # below for broken collect2 doesn't work under 4.3+
11866         collect2name=`${CC} -print-prog-name=collect2`
11867         if test -f "$collect2name" && \
11868            strings "$collect2name" | grep resolve_lib_name >/dev/null
11869         then
11870           # We have reworked collect2
11871           hardcode_direct_CXX=yes
11872         else
11873           # We have old collect2
11874           hardcode_direct_CXX=unsupported
11875           # It fails to find uninstalled libraries when the uninstalled
11876           # path is not listed in the libpath.  Setting hardcode_minus_L
11877           # to unsupported forces relinking
11878           hardcode_minus_L_CXX=yes
11879           hardcode_libdir_flag_spec_CXX='-L$libdir'
11880           hardcode_libdir_separator_CXX=
11881         fi
11882         ;;
11883       esac
11884       shared_flag='-shared'
11885       if test "$aix_use_runtimelinking" = yes; then
11886         shared_flag="$shared_flag "'${wl}-G'
11887       fi
11888     else
11889       # not using gcc
11890       if test "$host_cpu" = ia64; then
11891         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11892         # chokes on -Wl,-G. The following line is correct:
11893         shared_flag='-G'
11894       else
11895         if test "$aix_use_runtimelinking" = yes; then
11896           shared_flag='${wl}-G'
11897         else
11898           shared_flag='${wl}-bM:SRE'
11899         fi
11900       fi
11901     fi
11902
11903     # It seems that -bexpall does not export symbols beginning with
11904     # underscore (_), so it is better to generate a list of symbols to export.
11905     always_export_symbols_CXX=yes
11906     if test "$aix_use_runtimelinking" = yes; then
11907       # Warning - without using the other runtime loading flags (-brtl),
11908       # -berok will link without error, but may produce a broken library.
11909       allow_undefined_flag_CXX='-berok'
11910       # Determine the default libpath from the value encoded in an empty executable.
11911       cat >conftest.$ac_ext <<_ACEOF
11912 /* confdefs.h.  */
11913 _ACEOF
11914 cat confdefs.h >>conftest.$ac_ext
11915 cat >>conftest.$ac_ext <<_ACEOF
11916 /* end confdefs.h.  */
11917
11918 int
11919 main ()
11920 {
11921
11922   ;
11923   return 0;
11924 }
11925 _ACEOF
11926 rm -f conftest.$ac_objext conftest$ac_exeext
11927 if { (ac_try="$ac_link"
11928 case "(($ac_try" in
11929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11930   *) ac_try_echo=$ac_try;;
11931 esac
11932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11933   (eval "$ac_link") 2>conftest.er1
11934   ac_status=$?
11935   grep -v '^ *+' conftest.er1 >conftest.err
11936   rm -f conftest.er1
11937   cat conftest.err >&5
11938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11939   (exit $ac_status); } && {
11940          test -z "$ac_cxx_werror_flag" ||
11941          test ! -s conftest.err
11942        } && test -s conftest$ac_exeext &&
11943        $as_test_x conftest$ac_exeext; then
11944
11945 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11946 }'`
11947 # Check for a 64-bit object if we didn't find anything.
11948 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; }
11949 }'`; fi
11950 else
11951   echo "$as_me: failed program was:" >&5
11952 sed 's/^/| /' conftest.$ac_ext >&5
11953
11954
11955 fi
11956
11957 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11958       conftest$ac_exeext conftest.$ac_ext
11959 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11960
11961       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11962
11963       archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11964      else
11965       if test "$host_cpu" = ia64; then
11966         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11967         allow_undefined_flag_CXX="-z nodefs"
11968         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
11969       else
11970         # Determine the default libpath from the value encoded in an empty executable.
11971         cat >conftest.$ac_ext <<_ACEOF
11972 /* confdefs.h.  */
11973 _ACEOF
11974 cat confdefs.h >>conftest.$ac_ext
11975 cat >>conftest.$ac_ext <<_ACEOF
11976 /* end confdefs.h.  */
11977
11978 int
11979 main ()
11980 {
11981
11982   ;
11983   return 0;
11984 }
11985 _ACEOF
11986 rm -f conftest.$ac_objext conftest$ac_exeext
11987 if { (ac_try="$ac_link"
11988 case "(($ac_try" in
11989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11990   *) ac_try_echo=$ac_try;;
11991 esac
11992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11993   (eval "$ac_link") 2>conftest.er1
11994   ac_status=$?
11995   grep -v '^ *+' conftest.er1 >conftest.err
11996   rm -f conftest.er1
11997   cat conftest.err >&5
11998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11999   (exit $ac_status); } && {
12000          test -z "$ac_cxx_werror_flag" ||
12001          test ! -s conftest.err
12002        } && test -s conftest$ac_exeext &&
12003        $as_test_x conftest$ac_exeext; then
12004
12005 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12006 }'`
12007 # Check for a 64-bit object if we didn't find anything.
12008 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; }
12009 }'`; fi
12010 else
12011   echo "$as_me: failed program was:" >&5
12012 sed 's/^/| /' conftest.$ac_ext >&5
12013
12014
12015 fi
12016
12017 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12018       conftest$ac_exeext conftest.$ac_ext
12019 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12020
12021         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12022         # Warning - without using the other run time loading flags,
12023         # -berok will link without error, but may produce a broken library.
12024         no_undefined_flag_CXX=' ${wl}-bernotok'
12025         allow_undefined_flag_CXX=' ${wl}-berok'
12026         # Exported symbols can be pulled into shared objects from archives
12027         whole_archive_flag_spec_CXX='$convenience'
12028         archive_cmds_need_lc_CXX=yes
12029         # This is similar to how AIX traditionally builds its shared libraries.
12030         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
12031       fi
12032     fi
12033     ;;
12034
12035   beos*)
12036     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12037       allow_undefined_flag_CXX=unsupported
12038       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12039       # support --undefined.  This deserves some investigation.  FIXME
12040       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12041     else
12042       ld_shlibs_CXX=no
12043     fi
12044     ;;
12045
12046   chorus*)
12047     case $cc_basename in
12048       *)
12049         # FIXME: insert proper C++ library support
12050         ld_shlibs_CXX=no
12051         ;;
12052     esac
12053     ;;
12054
12055   cygwin* | mingw* | pw32*)
12056     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12057     # as there is no search path for DLLs.
12058     hardcode_libdir_flag_spec_CXX='-L$libdir'
12059     allow_undefined_flag_CXX=unsupported
12060     always_export_symbols_CXX=no
12061     enable_shared_with_static_runtimes_CXX=yes
12062
12063     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12064       archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12065       # If the export-symbols file already is a .def file (1st line
12066       # is EXPORTS), use it as is; otherwise, prepend...
12067       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12068         cp $export_symbols $output_objdir/$soname.def;
12069       else
12070         echo EXPORTS > $output_objdir/$soname.def;
12071         cat $export_symbols >> $output_objdir/$soname.def;
12072       fi~
12073       $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12074     else
12075       ld_shlibs_CXX=no
12076     fi
12077   ;;
12078       darwin* | rhapsody*)
12079         case $host_os in
12080         rhapsody* | darwin1.[012])
12081          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
12082          ;;
12083        *) # Darwin 1.3 on
12084          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12085            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12086          else
12087            case ${MACOSX_DEPLOYMENT_TARGET} in
12088              10.[012])
12089                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12090                ;;
12091              10.*)
12092                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
12093                ;;
12094            esac
12095          fi
12096          ;;
12097         esac
12098       archive_cmds_need_lc_CXX=no
12099       hardcode_direct_CXX=no
12100       hardcode_automatic_CXX=yes
12101       hardcode_shlibpath_var_CXX=unsupported
12102       whole_archive_flag_spec_CXX=''
12103       link_all_deplibs_CXX=yes
12104
12105     if test "$GXX" = yes ; then
12106       lt_int_apple_cc_single_mod=no
12107       output_verbose_link_cmd='echo'
12108       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
12109        lt_int_apple_cc_single_mod=yes
12110       fi
12111       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12112        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12113       else
12114           archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12115         fi
12116         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12117         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12118           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12119             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}'
12120           else
12121             archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12122           fi
12123             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}'
12124       else
12125       case $cc_basename in
12126         xlc*)
12127          output_verbose_link_cmd='echo'
12128           archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12129           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12130           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12131           archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12132           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}'
12133           ;;
12134        *)
12135          ld_shlibs_CXX=no
12136           ;;
12137       esac
12138       fi
12139         ;;
12140
12141   dgux*)
12142     case $cc_basename in
12143       ec++*)
12144         # FIXME: insert proper C++ library support
12145         ld_shlibs_CXX=no
12146         ;;
12147       ghcx*)
12148         # Green Hills C++ Compiler
12149         # FIXME: insert proper C++ library support
12150         ld_shlibs_CXX=no
12151         ;;
12152       *)
12153         # FIXME: insert proper C++ library support
12154         ld_shlibs_CXX=no
12155         ;;
12156     esac
12157     ;;
12158   freebsd[12]*)
12159     # C++ shared libraries reported to be fairly broken before switch to ELF
12160     ld_shlibs_CXX=no
12161     ;;
12162   freebsd-elf*)
12163     archive_cmds_need_lc_CXX=no
12164     ;;
12165   freebsd* | kfreebsd*-gnu | dragonfly*)
12166     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12167     # conventions
12168     ld_shlibs_CXX=yes
12169     ;;
12170   gnu*)
12171     ;;
12172   hpux9*)
12173     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12174     hardcode_libdir_separator_CXX=:
12175     export_dynamic_flag_spec_CXX='${wl}-E'
12176     hardcode_direct_CXX=yes
12177     hardcode_minus_L_CXX=yes # Not in the search PATH,
12178                                 # but as the default
12179                                 # location of the library.
12180
12181     case $cc_basename in
12182     CC*)
12183       # FIXME: insert proper C++ library support
12184       ld_shlibs_CXX=no
12185       ;;
12186     aCC*)
12187       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'
12188       # Commands to make compiler produce verbose output that lists
12189       # what "hidden" libraries, object files and flags are used when
12190       # linking a shared library.
12191       #
12192       # There doesn't appear to be a way to prevent this compiler from
12193       # explicitly linking system object files so we need to strip them
12194       # from the output so that they don't get included in the library
12195       # dependencies.
12196       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'
12197       ;;
12198     *)
12199       if test "$GXX" = yes; then
12200         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'
12201       else
12202         # FIXME: insert proper C++ library support
12203         ld_shlibs_CXX=no
12204       fi
12205       ;;
12206     esac
12207     ;;
12208   hpux10*|hpux11*)
12209     if test $with_gnu_ld = no; then
12210       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12211       hardcode_libdir_separator_CXX=:
12212
12213       case $host_cpu in
12214       hppa*64*|ia64*)
12215         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
12216         ;;
12217       *)
12218         export_dynamic_flag_spec_CXX='${wl}-E'
12219         ;;
12220       esac
12221     fi
12222     case $host_cpu in
12223     hppa*64*|ia64*)
12224       hardcode_direct_CXX=no
12225       hardcode_shlibpath_var_CXX=no
12226       ;;
12227     *)
12228       hardcode_direct_CXX=yes
12229       hardcode_minus_L_CXX=yes # Not in the search PATH,
12230                                               # but as the default
12231                                               # location of the library.
12232       ;;
12233     esac
12234
12235     case $cc_basename in
12236       CC*)
12237         # FIXME: insert proper C++ library support
12238         ld_shlibs_CXX=no
12239         ;;
12240       aCC*)
12241         case $host_cpu in
12242         hppa*64*)
12243           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12244           ;;
12245         ia64*)
12246           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12247           ;;
12248         *)
12249           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12250           ;;
12251         esac
12252         # Commands to make compiler produce verbose output that lists
12253         # what "hidden" libraries, object files and flags are used when
12254         # linking a shared library.
12255         #
12256         # There doesn't appear to be a way to prevent this compiler from
12257         # explicitly linking system object files so we need to strip them
12258         # from the output so that they don't get included in the library
12259         # dependencies.
12260         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'
12261         ;;
12262       *)
12263         if test "$GXX" = yes; then
12264           if test $with_gnu_ld = no; then
12265             case $host_cpu in
12266             hppa*64*)
12267               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12268               ;;
12269             ia64*)
12270               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12271               ;;
12272             *)
12273               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'
12274               ;;
12275             esac
12276           fi
12277         else
12278           # FIXME: insert proper C++ library support
12279           ld_shlibs_CXX=no
12280         fi
12281         ;;
12282     esac
12283     ;;
12284   interix3*)
12285     hardcode_direct_CXX=no
12286     hardcode_shlibpath_var_CXX=no
12287     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12288     export_dynamic_flag_spec_CXX='${wl}-E'
12289     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12290     # Instead, shared libraries are loaded at an image base (0x10000000 by
12291     # default) and relocated if they conflict, which is a slow very memory
12292     # consuming and fragmenting process.  To avoid this, we pick a random,
12293     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12294     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12295     archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12296     archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12297     ;;
12298   irix5* | irix6*)
12299     case $cc_basename in
12300       CC*)
12301         # SGI C++
12302         archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12303
12304         # Archives containing C++ object files must be created using
12305         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12306         # necessary to make sure instantiated templates are included
12307         # in the archive.
12308         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12309         ;;
12310       *)
12311         if test "$GXX" = yes; then
12312           if test "$with_gnu_ld" = no; then
12313             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12314           else
12315             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'
12316           fi
12317         fi
12318         link_all_deplibs_CXX=yes
12319         ;;
12320     esac
12321     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12322     hardcode_libdir_separator_CXX=:
12323     ;;
12324   linux*)
12325     case $cc_basename in
12326       KCC*)
12327         # Kuck and Associates, Inc. (KAI) C++ Compiler
12328
12329         # KCC will only create a shared library if the output file
12330         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12331         # to its proper name (with version) after linking.
12332         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'
12333         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'
12334         # Commands to make compiler produce verbose output that lists
12335         # what "hidden" libraries, object files and flags are used when
12336         # linking a shared library.
12337         #
12338         # There doesn't appear to be a way to prevent this compiler from
12339         # explicitly linking system object files so we need to strip them
12340         # from the output so that they don't get included in the library
12341         # dependencies.
12342         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'
12343
12344         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12345         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12346
12347         # Archives containing C++ object files must be created using
12348         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12349         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12350         ;;
12351       icpc*)
12352         # Intel C++
12353         with_gnu_ld=yes
12354         # version 8.0 and above of icpc choke on multiply defined symbols
12355         # if we add $predep_objects and $postdep_objects, however 7.1 and
12356         # earlier do not add the objects themselves.
12357         case `$CC -V 2>&1` in
12358         *"Version 7."*)
12359           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12360           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'
12361           ;;
12362         *)  # Version 8.0 or newer
12363           tmp_idyn=
12364           case $host_cpu in
12365             ia64*) tmp_idyn=' -i_dynamic';;
12366           esac
12367           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12368           archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12369           ;;
12370         esac
12371         archive_cmds_need_lc_CXX=no
12372         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12373         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12374         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12375         ;;
12376       pgCC*)
12377         # Portland Group C++ compiler
12378         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12379         archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12380
12381         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12382         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12383         whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
12384         ;;
12385       cxx*)
12386         # Compaq C++
12387         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12388         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'
12389
12390         runpath_var=LD_RUN_PATH
12391         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12392         hardcode_libdir_separator_CXX=:
12393
12394         # Commands to make compiler produce verbose output that lists
12395         # what "hidden" libraries, object files and flags are used when
12396         # linking a shared library.
12397         #
12398         # There doesn't appear to be a way to prevent this compiler from
12399         # explicitly linking system object files so we need to strip them
12400         # from the output so that they don't get included in the library
12401         # dependencies.
12402         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'
12403         ;;
12404     esac
12405     ;;
12406   lynxos*)
12407     # FIXME: insert proper C++ library support
12408     ld_shlibs_CXX=no
12409     ;;
12410   m88k*)
12411     # FIXME: insert proper C++ library support
12412     ld_shlibs_CXX=no
12413     ;;
12414   mvs*)
12415     case $cc_basename in
12416       cxx*)
12417         # FIXME: insert proper C++ library support
12418         ld_shlibs_CXX=no
12419         ;;
12420       *)
12421         # FIXME: insert proper C++ library support
12422         ld_shlibs_CXX=no
12423         ;;
12424     esac
12425     ;;
12426   netbsd*)
12427     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12428       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12429       wlarc=
12430       hardcode_libdir_flag_spec_CXX='-R$libdir'
12431       hardcode_direct_CXX=yes
12432       hardcode_shlibpath_var_CXX=no
12433     fi
12434     # Workaround some broken pre-1.5 toolchains
12435     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12436     ;;
12437   openbsd2*)
12438     # C++ shared libraries are fairly broken
12439     ld_shlibs_CXX=no
12440     ;;
12441   openbsd*)
12442     hardcode_direct_CXX=yes
12443     hardcode_shlibpath_var_CXX=no
12444     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12445     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12446     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12447       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12448       export_dynamic_flag_spec_CXX='${wl}-E'
12449       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12450     fi
12451     output_verbose_link_cmd='echo'
12452     ;;
12453   osf3*)
12454     case $cc_basename in
12455       KCC*)
12456         # Kuck and Associates, Inc. (KAI) C++ Compiler
12457
12458         # KCC will only create a shared library if the output file
12459         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12460         # to its proper name (with version) after linking.
12461         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'
12462
12463         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12464         hardcode_libdir_separator_CXX=:
12465
12466         # Archives containing C++ object files must be created using
12467         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12468         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12469
12470         ;;
12471       RCC*)
12472         # Rational C++ 2.4.1
12473         # FIXME: insert proper C++ library support
12474         ld_shlibs_CXX=no
12475         ;;
12476       cxx*)
12477         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12478         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12479
12480         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12481         hardcode_libdir_separator_CXX=:
12482
12483         # Commands to make compiler produce verbose output that lists
12484         # what "hidden" libraries, object files and flags are used when
12485         # linking a shared library.
12486         #
12487         # There doesn't appear to be a way to prevent this compiler from
12488         # explicitly linking system object files so we need to strip them
12489         # from the output so that they don't get included in the library
12490         # dependencies.
12491         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'
12492         ;;
12493       *)
12494         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12495           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12496           archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12497
12498           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12499           hardcode_libdir_separator_CXX=:
12500
12501           # Commands to make compiler produce verbose output that lists
12502           # what "hidden" libraries, object files and flags are used when
12503           # linking a shared library.
12504           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12505
12506         else
12507           # FIXME: insert proper C++ library support
12508           ld_shlibs_CXX=no
12509         fi
12510         ;;
12511     esac
12512     ;;
12513   osf4* | osf5*)
12514     case $cc_basename in
12515       KCC*)
12516         # Kuck and Associates, Inc. (KAI) C++ Compiler
12517
12518         # KCC will only create a shared library if the output file
12519         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12520         # to its proper name (with version) after linking.
12521         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'
12522
12523         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12524         hardcode_libdir_separator_CXX=:
12525
12526         # Archives containing C++ object files must be created using
12527         # the KAI C++ compiler.
12528         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12529         ;;
12530       RCC*)
12531         # Rational C++ 2.4.1
12532         # FIXME: insert proper C++ library support
12533         ld_shlibs_CXX=no
12534         ;;
12535       cxx*)
12536         allow_undefined_flag_CXX=' -expect_unresolved \*'
12537         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12538         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12539           echo "-hidden">> $lib.exp~
12540           $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
12541           $rm $lib.exp'
12542
12543         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12544         hardcode_libdir_separator_CXX=:
12545
12546         # Commands to make compiler produce verbose output that lists
12547         # what "hidden" libraries, object files and flags are used when
12548         # linking a shared library.
12549         #
12550         # There doesn't appear to be a way to prevent this compiler from
12551         # explicitly linking system object files so we need to strip them
12552         # from the output so that they don't get included in the library
12553         # dependencies.
12554         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'
12555         ;;
12556       *)
12557         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12558           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12559          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12560
12561           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12562           hardcode_libdir_separator_CXX=:
12563
12564           # Commands to make compiler produce verbose output that lists
12565           # what "hidden" libraries, object files and flags are used when
12566           # linking a shared library.
12567           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12568
12569         else
12570           # FIXME: insert proper C++ library support
12571           ld_shlibs_CXX=no
12572         fi
12573         ;;
12574     esac
12575     ;;
12576   psos*)
12577     # FIXME: insert proper C++ library support
12578     ld_shlibs_CXX=no
12579     ;;
12580   sunos4*)
12581     case $cc_basename in
12582       CC*)
12583         # Sun C++ 4.x
12584         # FIXME: insert proper C++ library support
12585         ld_shlibs_CXX=no
12586         ;;
12587       lcc*)
12588         # Lucid
12589         # FIXME: insert proper C++ library support
12590         ld_shlibs_CXX=no
12591         ;;
12592       *)
12593         # FIXME: insert proper C++ library support
12594         ld_shlibs_CXX=no
12595         ;;
12596     esac
12597     ;;
12598   solaris*)
12599     case $cc_basename in
12600       CC*)
12601         # Sun C++ 4.2, 5.x and Centerline C++
12602         archive_cmds_need_lc_CXX=yes
12603         no_undefined_flag_CXX=' -zdefs'
12604         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12605         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12606         $CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12607
12608         hardcode_libdir_flag_spec_CXX='-R$libdir'
12609         hardcode_shlibpath_var_CXX=no
12610         case $host_os in
12611           solaris2.[0-5] | solaris2.[0-5].*) ;;
12612           *)
12613             # The C++ compiler is used as linker so we must use $wl
12614             # flag to pass the commands to the underlying system
12615             # linker. We must also pass each convience library through
12616             # to the system linker between allextract/defaultextract.
12617             # The C++ compiler will combine linker options so we
12618             # cannot just pass the convience library names through
12619             # without $wl.
12620             # Supported since Solaris 2.6 (maybe 2.5.1?)
12621             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
12622             ;;
12623         esac
12624         link_all_deplibs_CXX=yes
12625
12626         output_verbose_link_cmd='echo'
12627
12628         # Archives containing C++ object files must be created using
12629         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12630         # necessary to make sure instantiated templates are included
12631         # in the archive.
12632         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12633         ;;
12634       gcx*)
12635         # Green Hills C++ Compiler
12636         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12637
12638         # The C++ compiler must be used to create the archive.
12639         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12640         ;;
12641       *)
12642         # GNU C++ compiler with Solaris linker
12643         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12644           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12645           if $CC --version | grep -v '^2\.7' > /dev/null; then
12646             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12647             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12648                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12649
12650             # Commands to make compiler produce verbose output that lists
12651             # what "hidden" libraries, object files and flags are used when
12652             # linking a shared library.
12653             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12654           else
12655             # g++ 2.7 appears to require `-G' NOT `-shared' on this
12656             # platform.
12657             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12658             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12659                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12660
12661             # Commands to make compiler produce verbose output that lists
12662             # what "hidden" libraries, object files and flags are used when
12663             # linking a shared library.
12664             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12665           fi
12666
12667           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12668         fi
12669         ;;
12670     esac
12671     ;;
12672   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12673     no_undefined_flag_CXX='${wl}-z,text'
12674     archive_cmds_need_lc_CXX=no
12675     hardcode_shlibpath_var_CXX=no
12676     runpath_var='LD_RUN_PATH'
12677
12678     case $cc_basename in
12679       CC*)
12680         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12681         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12682         ;;
12683       *)
12684         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12685         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12686         ;;
12687     esac
12688     ;;
12689   sysv5* | sco3.2v5* | sco5v6*)
12690     # Note: We can NOT use -z defs as we might desire, because we do not
12691     # link with -lc, and that would cause any symbols used from libc to
12692     # always be unresolved, which means just about no library would
12693     # ever link correctly.  If we're not using GNU ld we use -z text
12694     # though, which does catch some bad symbols but isn't as heavy-handed
12695     # as -z defs.
12696     # For security reasons, it is highly recommended that you always
12697     # use absolute paths for naming shared libraries, and exclude the
12698     # DT_RUNPATH tag from executables and libraries.  But doing so
12699     # requires that you compile everything twice, which is a pain.
12700     # So that behaviour is only enabled if SCOABSPATH is set to a
12701     # non-empty value in the environment.  Most likely only useful for
12702     # creating official distributions of packages.
12703     # This is a hack until libtool officially supports absolute path
12704     # names for shared libraries.
12705     no_undefined_flag_CXX='${wl}-z,text'
12706     allow_undefined_flag_CXX='${wl}-z,nodefs'
12707     archive_cmds_need_lc_CXX=no
12708     hardcode_shlibpath_var_CXX=no
12709     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12710     hardcode_libdir_separator_CXX=':'
12711     link_all_deplibs_CXX=yes
12712     export_dynamic_flag_spec_CXX='${wl}-Bexport'
12713     runpath_var='LD_RUN_PATH'
12714
12715     case $cc_basename in
12716       CC*)
12717         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12718         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12719         ;;
12720       *)
12721         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12722         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12723         ;;
12724     esac
12725     ;;
12726   tandem*)
12727     case $cc_basename in
12728       NCC*)
12729         # NonStop-UX NCC 3.20
12730         # FIXME: insert proper C++ library support
12731         ld_shlibs_CXX=no
12732         ;;
12733       *)
12734         # FIXME: insert proper C++ library support
12735         ld_shlibs_CXX=no
12736         ;;
12737     esac
12738     ;;
12739   vxworks*)
12740     # FIXME: insert proper C++ library support
12741     ld_shlibs_CXX=no
12742     ;;
12743   *)
12744     # FIXME: insert proper C++ library support
12745     ld_shlibs_CXX=no
12746     ;;
12747 esac
12748 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12749 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12750 test "$ld_shlibs_CXX" = no && can_build_shared=no
12751
12752 GCC_CXX="$GXX"
12753 LD_CXX="$LD"
12754
12755
12756 cat > conftest.$ac_ext <<EOF
12757 class Foo
12758 {
12759 public:
12760   Foo (void) { a = 0; }
12761 private:
12762   int a;
12763 };
12764 EOF
12765
12766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12767   (eval $ac_compile) 2>&5
12768   ac_status=$?
12769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12770   (exit $ac_status); }; then
12771   # Parse the compiler output and extract the necessary
12772   # objects, libraries and library flags.
12773
12774   # Sentinel used to keep track of whether or not we are before
12775   # the conftest object file.
12776   pre_test_object_deps_done=no
12777
12778   # The `*' in the case matches for architectures that use `case' in
12779   # $output_verbose_cmd can trigger glob expansion during the loop
12780   # eval without this substitution.
12781   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12782
12783   for p in `eval $output_verbose_link_cmd`; do
12784     case $p in
12785
12786     -L* | -R* | -l*)
12787        # Some compilers place space between "-{L,R}" and the path.
12788        # Remove the space.
12789        if test $p = "-L" \
12790           || test $p = "-R"; then
12791          prev=$p
12792          continue
12793        else
12794          prev=
12795        fi
12796
12797        if test "$pre_test_object_deps_done" = no; then
12798          case $p in
12799          -L* | -R*)
12800            # Internal compiler library paths should come after those
12801            # provided the user.  The postdeps already come after the
12802            # user supplied libs so there is no need to process them.
12803            if test -z "$compiler_lib_search_path_CXX"; then
12804              compiler_lib_search_path_CXX="${prev}${p}"
12805            else
12806              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12807            fi
12808            ;;
12809          # The "-l" case would never come before the object being
12810          # linked, so don't bother handling this case.
12811          esac
12812        else
12813          if test -z "$postdeps_CXX"; then
12814            postdeps_CXX="${prev}${p}"
12815          else
12816            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12817          fi
12818        fi
12819        ;;
12820
12821     *.$objext)
12822        # This assumes that the test object file only shows up
12823        # once in the compiler output.
12824        if test "$p" = "conftest.$objext"; then
12825          pre_test_object_deps_done=yes
12826          continue
12827        fi
12828
12829        if test "$pre_test_object_deps_done" = no; then
12830          if test -z "$predep_objects_CXX"; then
12831            predep_objects_CXX="$p"
12832          else
12833            predep_objects_CXX="$predep_objects_CXX $p"
12834          fi
12835        else
12836          if test -z "$postdep_objects_CXX"; then
12837            postdep_objects_CXX="$p"
12838          else
12839            postdep_objects_CXX="$postdep_objects_CXX $p"
12840          fi
12841        fi
12842        ;;
12843
12844     *) ;; # Ignore the rest.
12845
12846     esac
12847   done
12848
12849   # Clean up.
12850   rm -f a.out a.exe
12851 else
12852   echo "libtool.m4: error: problem compiling CXX test program"
12853 fi
12854
12855 $rm -f confest.$objext
12856
12857 # PORTME: override above test on systems where it is broken
12858 case $host_os in
12859 interix3*)
12860   # Interix 3.5 installs completely hosed .la files for C++, so rather than
12861   # hack all around it, let's just trust "g++" to DTRT.
12862   predep_objects_CXX=
12863   postdep_objects_CXX=
12864   postdeps_CXX=
12865   ;;
12866
12867 solaris*)
12868   case $cc_basename in
12869   CC*)
12870     # Adding this requires a known-good setup of shared libraries for
12871     # Sun compiler versions before 5.6, else PIC objects from an old
12872     # archive will be linked into the output, leading to subtle bugs.
12873     postdeps_CXX='-lCstd -lCrun'
12874     ;;
12875   esac
12876   ;;
12877 esac
12878
12879
12880 case " $postdeps_CXX " in
12881 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12882 esac
12883
12884 lt_prog_compiler_wl_CXX=
12885 lt_prog_compiler_pic_CXX=
12886 lt_prog_compiler_static_CXX=
12887
12888 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12889 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12890
12891   # C++ specific cases for pic, static, wl, etc.
12892   if test "$GXX" = yes; then
12893     lt_prog_compiler_wl_CXX='-Wl,'
12894     lt_prog_compiler_static_CXX='-static'
12895
12896     case $host_os in
12897     aix*)
12898       # All AIX code is PIC.
12899       if test "$host_cpu" = ia64; then
12900         # AIX 5 now supports IA64 processor
12901         lt_prog_compiler_static_CXX='-Bstatic'
12902       fi
12903       ;;
12904     amigaos*)
12905       # FIXME: we need at least 68020 code to build shared libraries, but
12906       # adding the `-m68020' flag to GCC prevents building anything better,
12907       # like `-m68040'.
12908       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12909       ;;
12910     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12911       # PIC is the default for these OSes.
12912       ;;
12913     mingw* | os2* | pw32*)
12914       # This hack is so that the source file can tell whether it is being
12915       # built for inclusion in a dll (and should export symbols for example).
12916       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12917       ;;
12918     darwin* | rhapsody*)
12919       # PIC is the default on this platform
12920       # Common symbols not allowed in MH_DYLIB files
12921       lt_prog_compiler_pic_CXX='-fno-common'
12922       ;;
12923     *djgpp*)
12924       # DJGPP does not support shared libraries at all
12925       lt_prog_compiler_pic_CXX=
12926       ;;
12927     interix3*)
12928       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12929       # Instead, we relocate shared libraries at runtime.
12930       ;;
12931     sysv4*MP*)
12932       if test -d /usr/nec; then
12933         lt_prog_compiler_pic_CXX=-Kconform_pic
12934       fi
12935       ;;
12936     hpux*)
12937       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12938       # not for PA HP-UX.
12939       case $host_cpu in
12940       hppa*64*|ia64*)
12941         ;;
12942       *)
12943         lt_prog_compiler_pic_CXX='-fPIC'
12944         ;;
12945       esac
12946       ;;
12947     *)
12948       lt_prog_compiler_pic_CXX='-fPIC'
12949       ;;
12950     esac
12951   else
12952     case $host_os in
12953       aix4* | aix5*)
12954         # All AIX code is PIC.
12955         if test "$host_cpu" = ia64; then
12956           # AIX 5 now supports IA64 processor
12957           lt_prog_compiler_static_CXX='-Bstatic'
12958         else
12959           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12960         fi
12961         ;;
12962       chorus*)
12963         case $cc_basename in
12964         cxch68*)
12965           # Green Hills C++ Compiler
12966           # _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"
12967           ;;
12968         esac
12969         ;;
12970        darwin*)
12971          # PIC is the default on this platform
12972          # Common symbols not allowed in MH_DYLIB files
12973          case $cc_basename in
12974            xlc*)
12975            lt_prog_compiler_pic_CXX='-qnocommon'
12976            lt_prog_compiler_wl_CXX='-Wl,'
12977            ;;
12978          esac
12979        ;;
12980       dgux*)
12981         case $cc_basename in
12982           ec++*)
12983             lt_prog_compiler_pic_CXX='-KPIC'
12984             ;;
12985           ghcx*)
12986             # Green Hills C++ Compiler
12987             lt_prog_compiler_pic_CXX='-pic'
12988             ;;
12989           *)
12990             ;;
12991         esac
12992         ;;
12993       freebsd* | kfreebsd*-gnu | dragonfly*)
12994         # FreeBSD uses GNU C++
12995         ;;
12996       hpux9* | hpux10* | hpux11*)
12997         case $cc_basename in
12998           CC*)
12999             lt_prog_compiler_wl_CXX='-Wl,'
13000             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13001             if test "$host_cpu" != ia64; then
13002               lt_prog_compiler_pic_CXX='+Z'
13003             fi
13004             ;;
13005           aCC*)
13006             lt_prog_compiler_wl_CXX='-Wl,'
13007             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13008             case $host_cpu in
13009             hppa*64*|ia64*)
13010               # +Z the default
13011               ;;
13012             *)
13013               lt_prog_compiler_pic_CXX='+Z'
13014               ;;
13015             esac
13016             ;;
13017           *)
13018             ;;
13019         esac
13020         ;;
13021       interix*)
13022         # This is c89, which is MS Visual C++ (no shared libs)
13023         # Anyone wants to do a port?
13024         ;;
13025       irix5* | irix6* | nonstopux*)
13026         case $cc_basename in
13027           CC*)
13028             lt_prog_compiler_wl_CXX='-Wl,'
13029             lt_prog_compiler_static_CXX='-non_shared'
13030             # CC pic flag -KPIC is the default.
13031             ;;
13032           *)
13033             ;;
13034         esac
13035         ;;
13036       linux*)
13037         case $cc_basename in
13038           KCC*)
13039             # KAI C++ Compiler
13040             lt_prog_compiler_wl_CXX='--backend -Wl,'
13041             lt_prog_compiler_pic_CXX='-fPIC'
13042             ;;
13043           icpc* | ecpc*)
13044             # Intel C++
13045             lt_prog_compiler_wl_CXX='-Wl,'
13046             lt_prog_compiler_pic_CXX='-KPIC'
13047             lt_prog_compiler_static_CXX='-static'
13048             ;;
13049           pgCC*)
13050             # Portland Group C++ compiler.
13051             lt_prog_compiler_wl_CXX='-Wl,'
13052             lt_prog_compiler_pic_CXX='-fpic'
13053             lt_prog_compiler_static_CXX='-Bstatic'
13054             ;;
13055           cxx*)
13056             # Compaq C++
13057             # Make sure the PIC flag is empty.  It appears that all Alpha
13058             # Linux and Compaq Tru64 Unix objects are PIC.
13059             lt_prog_compiler_pic_CXX=
13060             lt_prog_compiler_static_CXX='-non_shared'
13061             ;;
13062           *)
13063             ;;
13064         esac
13065         ;;
13066       lynxos*)
13067         ;;
13068       m88k*)
13069         ;;
13070       mvs*)
13071         case $cc_basename in
13072           cxx*)
13073             lt_prog_compiler_pic_CXX='-W c,exportall'
13074             ;;
13075           *)
13076             ;;
13077         esac
13078         ;;
13079       netbsd*)
13080         ;;
13081       osf3* | osf4* | osf5*)
13082         case $cc_basename in
13083           KCC*)
13084             lt_prog_compiler_wl_CXX='--backend -Wl,'
13085             ;;
13086           RCC*)
13087             # Rational C++ 2.4.1
13088             lt_prog_compiler_pic_CXX='-pic'
13089             ;;
13090           cxx*)
13091             # Digital/Compaq C++
13092             lt_prog_compiler_wl_CXX='-Wl,'
13093             # Make sure the PIC flag is empty.  It appears that all Alpha
13094             # Linux and Compaq Tru64 Unix objects are PIC.
13095             lt_prog_compiler_pic_CXX=
13096             lt_prog_compiler_static_CXX='-non_shared'
13097             ;;
13098           *)
13099             ;;
13100         esac
13101         ;;
13102       psos*)
13103         ;;
13104       solaris*)
13105         case $cc_basename in
13106           CC*)
13107             # Sun C++ 4.2, 5.x and Centerline C++
13108             lt_prog_compiler_pic_CXX='-KPIC'
13109             lt_prog_compiler_static_CXX='-Bstatic'
13110             lt_prog_compiler_wl_CXX='-Qoption ld '
13111             ;;
13112           gcx*)
13113             # Green Hills C++ Compiler
13114             lt_prog_compiler_pic_CXX='-PIC'
13115             ;;
13116           *)
13117             ;;
13118         esac
13119         ;;
13120       sunos4*)
13121         case $cc_basename in
13122           CC*)
13123             # Sun C++ 4.x
13124             lt_prog_compiler_pic_CXX='-pic'
13125             lt_prog_compiler_static_CXX='-Bstatic'
13126             ;;
13127           lcc*)
13128             # Lucid
13129             lt_prog_compiler_pic_CXX='-pic'
13130             ;;
13131           *)
13132             ;;
13133         esac
13134         ;;
13135       tandem*)
13136         case $cc_basename in
13137           NCC*)
13138             # NonStop-UX NCC 3.20
13139             lt_prog_compiler_pic_CXX='-KPIC'
13140             ;;
13141           *)
13142             ;;
13143         esac
13144         ;;
13145       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13146         case $cc_basename in
13147           CC*)
13148             lt_prog_compiler_wl_CXX='-Wl,'
13149             lt_prog_compiler_pic_CXX='-KPIC'
13150             lt_prog_compiler_static_CXX='-Bstatic'
13151             ;;
13152         esac
13153         ;;
13154       vxworks*)
13155         ;;
13156       *)
13157         lt_prog_compiler_can_build_shared_CXX=no
13158         ;;
13159     esac
13160   fi
13161
13162 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13163 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
13164
13165 #
13166 # Check to make sure the PIC flag actually works.
13167 #
13168 if test -n "$lt_prog_compiler_pic_CXX"; then
13169
13170 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13171 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
13172 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13173   echo $ECHO_N "(cached) $ECHO_C" >&6
13174 else
13175   lt_prog_compiler_pic_works_CXX=no
13176   ac_outfile=conftest.$ac_objext
13177    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13178    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13179    # Insert the option either (1) after the last *FLAGS variable, or
13180    # (2) before a word containing "conftest.", or (3) at the end.
13181    # Note that $ac_compile itself does not contain backslashes and begins
13182    # with a dollar sign (not a hyphen), so the echo should work correctly.
13183    # The option is referenced via a variable to avoid confusing sed.
13184    lt_compile=`echo "$ac_compile" | $SED \
13185    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13186    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13187    -e 's:$: $lt_compiler_flag:'`
13188    (eval echo "\"\$as_me:13188: $lt_compile\"" >&5)
13189    (eval "$lt_compile" 2>conftest.err)
13190    ac_status=$?
13191    cat conftest.err >&5
13192    echo "$as_me:13192: \$? = $ac_status" >&5
13193    if (exit $ac_status) && test -s "$ac_outfile"; then
13194      # The compiler can only warn and ignore the option if not recognized
13195      # So say no if there are warnings other than the usual output.
13196      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13197      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13198      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13199        lt_prog_compiler_pic_works_CXX=yes
13200      fi
13201    fi
13202    $rm conftest*
13203
13204 fi
13205 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
13206 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
13207
13208 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
13209     case $lt_prog_compiler_pic_CXX in
13210      "" | " "*) ;;
13211      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13212      esac
13213 else
13214     lt_prog_compiler_pic_CXX=
13215      lt_prog_compiler_can_build_shared_CXX=no
13216 fi
13217
13218 fi
13219 case $host_os in
13220   # For platforms which do not support PIC, -DPIC is meaningless:
13221   *djgpp*)
13222     lt_prog_compiler_pic_CXX=
13223     ;;
13224   *)
13225     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13226     ;;
13227 esac
13228
13229 #
13230 # Check to make sure the static flag actually works.
13231 #
13232 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13233 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13234 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13235 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
13236   echo $ECHO_N "(cached) $ECHO_C" >&6
13237 else
13238   lt_prog_compiler_static_works_CXX=no
13239    save_LDFLAGS="$LDFLAGS"
13240    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13241    printf "$lt_simple_link_test_code" > conftest.$ac_ext
13242    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13243      # The linker can only warn and ignore the option if not recognized
13244      # So say no if there are warnings
13245      if test -s conftest.err; then
13246        # Append any errors to the config.log.
13247        cat conftest.err 1>&5
13248        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13249        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13250        if diff conftest.exp conftest.er2 >/dev/null; then
13251          lt_prog_compiler_static_works_CXX=yes
13252        fi
13253      else
13254        lt_prog_compiler_static_works_CXX=yes
13255      fi
13256    fi
13257    $rm conftest*
13258    LDFLAGS="$save_LDFLAGS"
13259
13260 fi
13261 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
13262 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
13263
13264 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
13265     :
13266 else
13267     lt_prog_compiler_static_CXX=
13268 fi
13269
13270
13271 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13272 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13273 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13274   echo $ECHO_N "(cached) $ECHO_C" >&6
13275 else
13276   lt_cv_prog_compiler_c_o_CXX=no
13277    $rm -r conftest 2>/dev/null
13278    mkdir conftest
13279    cd conftest
13280    mkdir out
13281    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13282
13283    lt_compiler_flag="-o out/conftest2.$ac_objext"
13284    # Insert the option either (1) after the last *FLAGS variable, or
13285    # (2) before a word containing "conftest.", or (3) at the end.
13286    # Note that $ac_compile itself does not contain backslashes and begins
13287    # with a dollar sign (not a hyphen), so the echo should work correctly.
13288    lt_compile=`echo "$ac_compile" | $SED \
13289    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13290    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13291    -e 's:$: $lt_compiler_flag:'`
13292    (eval echo "\"\$as_me:13292: $lt_compile\"" >&5)
13293    (eval "$lt_compile" 2>out/conftest.err)
13294    ac_status=$?
13295    cat out/conftest.err >&5
13296    echo "$as_me:13296: \$? = $ac_status" >&5
13297    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13298    then
13299      # The compiler can only warn and ignore the option if not recognized
13300      # So say no if there are warnings
13301      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13302      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13303      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13304        lt_cv_prog_compiler_c_o_CXX=yes
13305      fi
13306    fi
13307    chmod u+w . 2>&5
13308    $rm conftest*
13309    # SGI C++ compiler will create directory out/ii_files/ for
13310    # template instantiation
13311    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13312    $rm out/* && rmdir out
13313    cd ..
13314    rmdir conftest
13315    $rm conftest*
13316
13317 fi
13318 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13319 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
13320
13321
13322 hard_links="nottested"
13323 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13324   # do not overwrite the value of need_locks provided by the user
13325   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13326 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13327   hard_links=yes
13328   $rm conftest*
13329   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13330   touch conftest.a
13331   ln conftest.a conftest.b 2>&5 || hard_links=no
13332   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13333   { echo "$as_me:$LINENO: result: $hard_links" >&5
13334 echo "${ECHO_T}$hard_links" >&6; }
13335   if test "$hard_links" = no; then
13336     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13337 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13338     need_locks=warn
13339   fi
13340 else
13341   need_locks=no
13342 fi
13343
13344 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13345 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13346
13347   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13348   case $host_os in
13349   aix4* | aix5*)
13350     # If we're using GNU nm, then we don't want the "-C" option.
13351     # -C means demangle to AIX nm, but means don't demangle with GNU nm
13352     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13353       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'
13354     else
13355       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'
13356     fi
13357     ;;
13358   pw32*)
13359     export_symbols_cmds_CXX="$ltdll_cmds"
13360   ;;
13361   cygwin* | mingw*)
13362     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13363   ;;
13364   *)
13365     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13366   ;;
13367   esac
13368
13369 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13370 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13371 test "$ld_shlibs_CXX" = no && can_build_shared=no
13372
13373 #
13374 # Do we need to explicitly link libc?
13375 #
13376 case "x$archive_cmds_need_lc_CXX" in
13377 x|xyes)
13378   # Assume -lc should be added
13379   archive_cmds_need_lc_CXX=yes
13380
13381   if test "$enable_shared" = yes && test "$GCC" = yes; then
13382     case $archive_cmds_CXX in
13383     *'~'*)
13384       # FIXME: we may have to deal with multi-command sequences.
13385       ;;
13386     '$CC '*)
13387       # Test whether the compiler implicitly links with -lc since on some
13388       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13389       # to ld, don't add -lc before -lgcc.
13390       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13391 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
13392       $rm conftest*
13393       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13394
13395       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13396   (eval $ac_compile) 2>&5
13397   ac_status=$?
13398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13399   (exit $ac_status); } 2>conftest.err; then
13400         soname=conftest
13401         lib=conftest
13402         libobjs=conftest.$ac_objext
13403         deplibs=
13404         wl=$lt_prog_compiler_wl_CXX
13405         pic_flag=$lt_prog_compiler_pic_CXX
13406         compiler_flags=-v
13407         linker_flags=-v
13408         verstring=
13409         output_objdir=.
13410         libname=conftest
13411         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13412         allow_undefined_flag_CXX=
13413         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13414   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13415   ac_status=$?
13416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13417   (exit $ac_status); }
13418         then
13419           archive_cmds_need_lc_CXX=no
13420         else
13421           archive_cmds_need_lc_CXX=yes
13422         fi
13423         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13424       else
13425         cat conftest.err 1>&5
13426       fi
13427       $rm conftest*
13428       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13429 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
13430       ;;
13431     esac
13432   fi
13433   ;;
13434 esac
13435
13436 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13437 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13438 library_names_spec=
13439 libname_spec='lib$name'
13440 soname_spec=
13441 shrext_cmds=".so"
13442 postinstall_cmds=
13443 postuninstall_cmds=
13444 finish_cmds=
13445 finish_eval=
13446 shlibpath_var=
13447 shlibpath_overrides_runpath=unknown
13448 version_type=none
13449 dynamic_linker="$host_os ld.so"
13450 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13451 if test "$GCC" = yes; then
13452   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13453   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13454     # if the path contains ";" then we assume it to be the separator
13455     # otherwise default to the standard path separator (i.e. ":") - it is
13456     # assumed that no part of a normal pathname contains ";" but that should
13457     # okay in the real world where ";" in dirpaths is itself problematic.
13458     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13459   else
13460     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13461   fi
13462 else
13463   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13464 fi
13465 need_lib_prefix=unknown
13466 hardcode_into_libs=no
13467
13468 # when you set need_version to no, make sure it does not cause -set_version
13469 # flags to be left without arguments
13470 need_version=unknown
13471
13472 case $host_os in
13473 aix3*)
13474   version_type=linux
13475   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13476   shlibpath_var=LIBPATH
13477
13478   # AIX 3 has no versioning support, so we append a major version to the name.
13479   soname_spec='${libname}${release}${shared_ext}$major'
13480   ;;
13481
13482 aix4* | aix5*)
13483   version_type=linux
13484   need_lib_prefix=no
13485   need_version=no
13486   hardcode_into_libs=yes
13487   if test "$host_cpu" = ia64; then
13488     # AIX 5 supports IA64
13489     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13490     shlibpath_var=LD_LIBRARY_PATH
13491   else
13492     # With GCC up to 2.95.x, collect2 would create an import file
13493     # for dependence libraries.  The import file would start with
13494     # the line `#! .'.  This would cause the generated library to
13495     # depend on `.', always an invalid library.  This was fixed in
13496     # development snapshots of GCC prior to 3.0.
13497     case $host_os in
13498       aix4 | aix4.[01] | aix4.[01].*)
13499       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13500            echo ' yes '
13501            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13502         :
13503       else
13504         can_build_shared=no
13505       fi
13506       ;;
13507     esac
13508     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13509     # soname into executable. Probably we can add versioning support to
13510     # collect2, so additional links can be useful in future.
13511     if test "$aix_use_runtimelinking" = yes; then
13512       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13513       # instead of lib<name>.a to let people know that these are not
13514       # typical AIX shared libraries.
13515       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13516     else
13517       # We preserve .a as extension for shared libraries through AIX4.2
13518       # and later when we are not doing run time linking.
13519       library_names_spec='${libname}${release}.a $libname.a'
13520       soname_spec='${libname}${release}${shared_ext}$major'
13521     fi
13522     shlibpath_var=LIBPATH
13523   fi
13524   ;;
13525
13526 amigaos*)
13527   library_names_spec='$libname.ixlibrary $libname.a'
13528   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13529   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'
13530   ;;
13531
13532 beos*)
13533   library_names_spec='${libname}${shared_ext}'
13534   dynamic_linker="$host_os ld.so"
13535   shlibpath_var=LIBRARY_PATH
13536   ;;
13537
13538 bsdi[45]*)
13539   version_type=linux
13540   need_version=no
13541   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13542   soname_spec='${libname}${release}${shared_ext}$major'
13543   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13544   shlibpath_var=LD_LIBRARY_PATH
13545   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13546   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13547   # the default ld.so.conf also contains /usr/contrib/lib and
13548   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13549   # libtool to hard-code these into programs
13550   ;;
13551
13552 cygwin* | mingw* | pw32*)
13553   version_type=windows
13554   shrext_cmds=".dll"
13555   need_version=no
13556   need_lib_prefix=no
13557
13558   case $GCC,$host_os in
13559   yes,cygwin* | yes,mingw* | yes,pw32*)
13560     library_names_spec='$libname.dll.a'
13561     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13562     postinstall_cmds='base_file=`basename \${file}`~
13563       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13564       dldir=$destdir/`dirname \$dlpath`~
13565       test -d \$dldir || mkdir -p \$dldir~
13566       $install_prog $dir/$dlname \$dldir/$dlname~
13567       chmod a+x \$dldir/$dlname'
13568     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13569       dlpath=$dir/\$dldll~
13570        $rm \$dlpath'
13571     shlibpath_overrides_runpath=yes
13572
13573     case $host_os in
13574     cygwin*)
13575       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13576       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13577       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13578       ;;
13579     mingw*)
13580       # MinGW DLLs use traditional 'lib' prefix
13581       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13582       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13583       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13584         # It is most probably a Windows format PATH printed by
13585         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13586         # path with ; separators, and with drive letters. We can handle the
13587         # drive letters (cygwin fileutils understands them), so leave them,
13588         # especially as we might pass files found there to a mingw objdump,
13589         # which wouldn't understand a cygwinified path. Ahh.
13590         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13591       else
13592         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13593       fi
13594       ;;
13595     pw32*)
13596       # pw32 DLLs use 'pw' prefix rather than 'lib'
13597       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13598       ;;
13599     esac
13600     ;;
13601
13602   *)
13603     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13604     ;;
13605   esac
13606   dynamic_linker='Win32 ld.exe'
13607   # FIXME: first we should search . and the directory the executable is in
13608   shlibpath_var=PATH
13609   ;;
13610
13611 darwin* | rhapsody*)
13612   dynamic_linker="$host_os dyld"
13613   version_type=darwin
13614   need_lib_prefix=no
13615   need_version=no
13616   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext ${libname}${release}${versuffix}$shared_ext'
13617   soname_spec='${libname}${release}${major}$shared_ext'
13618   shlibpath_overrides_runpath=yes
13619   shlibpath_var=DYLD_LIBRARY_PATH
13620   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13621   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13622   if test "$GCC" = yes; then
13623     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"`
13624   else
13625     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13626   fi
13627   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13628   ;;
13629
13630 dgux*)
13631   version_type=linux
13632   need_lib_prefix=no
13633   need_version=no
13634   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13635   soname_spec='${libname}${release}${shared_ext}$major'
13636   shlibpath_var=LD_LIBRARY_PATH
13637   ;;
13638
13639 freebsd1*)
13640   dynamic_linker=no
13641   ;;
13642
13643 kfreebsd*-gnu)
13644   version_type=linux
13645   need_lib_prefix=no
13646   need_version=no
13647   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13648   soname_spec='${libname}${release}${shared_ext}$major'
13649   shlibpath_var=LD_LIBRARY_PATH
13650   shlibpath_overrides_runpath=no
13651   hardcode_into_libs=yes
13652   dynamic_linker='GNU ld.so'
13653   ;;
13654
13655 freebsd* | dragonfly*)
13656   # DragonFly does not have aout.  When/if they implement a new
13657   # versioning mechanism, adjust this.
13658   if test -x /usr/bin/objformat; then
13659     objformat=`/usr/bin/objformat`
13660   else
13661     case $host_os in
13662     freebsd[123]*) objformat=aout ;;
13663     *) objformat=elf ;;
13664     esac
13665   fi
13666   version_type=freebsd-$objformat
13667   case $version_type in
13668     freebsd-elf*)
13669       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13670       need_version=no
13671       need_lib_prefix=no
13672       ;;
13673     freebsd-*)
13674       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13675       need_version=yes
13676       ;;
13677   esac
13678   shlibpath_var=LD_LIBRARY_PATH
13679   case $host_os in
13680   freebsd2*)
13681     shlibpath_overrides_runpath=yes
13682     ;;
13683   freebsd3.[01]* | freebsdelf3.[01]*)
13684     shlibpath_overrides_runpath=yes
13685     hardcode_into_libs=yes
13686     ;;
13687   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13688   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13689     shlibpath_overrides_runpath=no
13690     hardcode_into_libs=yes
13691     ;;
13692   freebsd*) # from 4.6 on
13693     shlibpath_overrides_runpath=yes
13694     hardcode_into_libs=yes
13695     ;;
13696   esac
13697   ;;
13698
13699 gnu*)
13700   version_type=linux
13701   need_lib_prefix=no
13702   need_version=no
13703   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13704   soname_spec='${libname}${release}${shared_ext}$major'
13705   shlibpath_var=LD_LIBRARY_PATH
13706   hardcode_into_libs=yes
13707   ;;
13708
13709 hpux9* | hpux10* | hpux11*)
13710   # Give a soname corresponding to the major version so that dld.sl refuses to
13711   # link against other versions.
13712   version_type=sunos
13713   need_lib_prefix=no
13714   need_version=no
13715   case $host_cpu in
13716   ia64*)
13717     shrext_cmds='.so'
13718     hardcode_into_libs=yes
13719     dynamic_linker="$host_os dld.so"
13720     shlibpath_var=LD_LIBRARY_PATH
13721     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13722     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13723     soname_spec='${libname}${release}${shared_ext}$major'
13724     if test "X$HPUX_IA64_MODE" = X32; then
13725       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13726     else
13727       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13728     fi
13729     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13730     ;;
13731    hppa*64*)
13732      shrext_cmds='.sl'
13733      hardcode_into_libs=yes
13734      dynamic_linker="$host_os dld.sl"
13735      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13736      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13737      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13738      soname_spec='${libname}${release}${shared_ext}$major'
13739      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13740      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13741      ;;
13742    *)
13743     shrext_cmds='.sl'
13744     dynamic_linker="$host_os dld.sl"
13745     shlibpath_var=SHLIB_PATH
13746     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13747     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13748     soname_spec='${libname}${release}${shared_ext}$major'
13749     ;;
13750   esac
13751   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13752   postinstall_cmds='chmod 555 $lib'
13753   ;;
13754
13755 interix3*)
13756   version_type=linux
13757   need_lib_prefix=no
13758   need_version=no
13759   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13760   soname_spec='${libname}${release}${shared_ext}$major'
13761   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13762   shlibpath_var=LD_LIBRARY_PATH
13763   shlibpath_overrides_runpath=no
13764   hardcode_into_libs=yes
13765   ;;
13766
13767 irix5* | irix6* | nonstopux*)
13768   case $host_os in
13769     nonstopux*) version_type=nonstopux ;;
13770     *)
13771         if test "$lt_cv_prog_gnu_ld" = yes; then
13772                 version_type=linux
13773         else
13774                 version_type=irix
13775         fi ;;
13776   esac
13777   need_lib_prefix=no
13778   need_version=no
13779   soname_spec='${libname}${release}${shared_ext}$major'
13780   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13781   case $host_os in
13782   irix5* | nonstopux*)
13783     libsuff= shlibsuff=
13784     ;;
13785   *)
13786     case $LD in # libtool.m4 will add one of these switches to LD
13787     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13788       libsuff= shlibsuff= libmagic=32-bit;;
13789     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13790       libsuff=32 shlibsuff=N32 libmagic=N32;;
13791     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13792       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13793     *) libsuff= shlibsuff= libmagic=never-match;;
13794     esac
13795     ;;
13796   esac
13797   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13798   shlibpath_overrides_runpath=no
13799   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13800   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13801   hardcode_into_libs=yes
13802   ;;
13803
13804 # No shared lib support for Linux oldld, aout, or coff.
13805 linux*oldld* | linux*aout* | linux*coff*)
13806   dynamic_linker=no
13807   ;;
13808
13809 # This must be Linux ELF.
13810 linux*)
13811   version_type=linux
13812   need_lib_prefix=no
13813   need_version=no
13814   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13815   soname_spec='${libname}${release}${shared_ext}$major'
13816   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13817   shlibpath_var=LD_LIBRARY_PATH
13818   shlibpath_overrides_runpath=no
13819   # This implies no fast_install, which is unacceptable.
13820   # Some rework will be needed to allow for fast_install
13821   # before this can be enabled.
13822   hardcode_into_libs=yes
13823
13824   # Append ld.so.conf contents to the search path
13825   if test -f /etc/ld.so.conf; then
13826     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13827     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13828   fi
13829
13830   # We used to test for /lib/ld.so.1 and disable shared libraries on
13831   # powerpc, because MkLinux only supported shared libraries with the
13832   # GNU dynamic linker.  Since this was broken with cross compilers,
13833   # most powerpc-linux boxes support dynamic linking these days and
13834   # people can always --disable-shared, the test was removed, and we
13835   # assume the GNU/Linux dynamic linker is in use.
13836   dynamic_linker='GNU/Linux ld.so'
13837   ;;
13838
13839 knetbsd*-gnu)
13840   version_type=linux
13841   need_lib_prefix=no
13842   need_version=no
13843   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13844   soname_spec='${libname}${release}${shared_ext}$major'
13845   shlibpath_var=LD_LIBRARY_PATH
13846   shlibpath_overrides_runpath=no
13847   hardcode_into_libs=yes
13848   dynamic_linker='GNU ld.so'
13849   ;;
13850
13851 netbsd*)
13852   version_type=sunos
13853   need_lib_prefix=no
13854   need_version=no
13855   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13856     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13857     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13858     dynamic_linker='NetBSD (a.out) ld.so'
13859   else
13860     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13861     soname_spec='${libname}${release}${shared_ext}$major'
13862     dynamic_linker='NetBSD ld.elf_so'
13863   fi
13864   shlibpath_var=LD_LIBRARY_PATH
13865   shlibpath_overrides_runpath=yes
13866   hardcode_into_libs=yes
13867   ;;
13868
13869 newsos6)
13870   version_type=linux
13871   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13872   shlibpath_var=LD_LIBRARY_PATH
13873   shlibpath_overrides_runpath=yes
13874   ;;
13875
13876 nto-qnx*)
13877   version_type=linux
13878   need_lib_prefix=no
13879   need_version=no
13880   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13881   soname_spec='${libname}${release}${shared_ext}$major'
13882   shlibpath_var=LD_LIBRARY_PATH
13883   shlibpath_overrides_runpath=yes
13884   ;;
13885
13886 openbsd*)
13887   version_type=sunos
13888   sys_lib_dlsearch_path_spec="/usr/lib"
13889   need_lib_prefix=no
13890   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13891   case $host_os in
13892     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13893     *)                         need_version=no  ;;
13894   esac
13895   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13896   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13897   shlibpath_var=LD_LIBRARY_PATH
13898   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13899     case $host_os in
13900       openbsd2.[89] | openbsd2.[89].*)
13901         shlibpath_overrides_runpath=no
13902         ;;
13903       *)
13904         shlibpath_overrides_runpath=yes
13905         ;;
13906       esac
13907   else
13908     shlibpath_overrides_runpath=yes
13909   fi
13910   ;;
13911
13912 os2*)
13913   libname_spec='$name'
13914   shrext_cmds=".dll"
13915   need_lib_prefix=no
13916   library_names_spec='$libname${shared_ext} $libname.a'
13917   dynamic_linker='OS/2 ld.exe'
13918   shlibpath_var=LIBPATH
13919   ;;
13920
13921 osf3* | osf4* | osf5*)
13922   version_type=osf
13923   need_lib_prefix=no
13924   need_version=no
13925   soname_spec='${libname}${release}${shared_ext}$major'
13926   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13927   shlibpath_var=LD_LIBRARY_PATH
13928   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13929   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13930   ;;
13931
13932 solaris*)
13933   version_type=linux
13934   need_lib_prefix=no
13935   need_version=no
13936   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13937   soname_spec='${libname}${release}${shared_ext}$major'
13938   shlibpath_var=LD_LIBRARY_PATH
13939   shlibpath_overrides_runpath=yes
13940   hardcode_into_libs=yes
13941   # ldd complains unless libraries are executable
13942   postinstall_cmds='chmod +x $lib'
13943   ;;
13944
13945 sunos4*)
13946   version_type=sunos
13947   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13948   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13949   shlibpath_var=LD_LIBRARY_PATH
13950   shlibpath_overrides_runpath=yes
13951   if test "$with_gnu_ld" = yes; then
13952     need_lib_prefix=no
13953   fi
13954   need_version=yes
13955   ;;
13956
13957 sysv4 | sysv4.3*)
13958   version_type=linux
13959   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13960   soname_spec='${libname}${release}${shared_ext}$major'
13961   shlibpath_var=LD_LIBRARY_PATH
13962   case $host_vendor in
13963     sni)
13964       shlibpath_overrides_runpath=no
13965       need_lib_prefix=no
13966       export_dynamic_flag_spec='${wl}-Blargedynsym'
13967       runpath_var=LD_RUN_PATH
13968       ;;
13969     siemens)
13970       need_lib_prefix=no
13971       ;;
13972     motorola)
13973       need_lib_prefix=no
13974       need_version=no
13975       shlibpath_overrides_runpath=no
13976       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13977       ;;
13978   esac
13979   ;;
13980
13981 sysv4*MP*)
13982   if test -d /usr/nec ;then
13983     version_type=linux
13984     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13985     soname_spec='$libname${shared_ext}.$major'
13986     shlibpath_var=LD_LIBRARY_PATH
13987   fi
13988   ;;
13989
13990 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13991   version_type=freebsd-elf
13992   need_lib_prefix=no
13993   need_version=no
13994   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13995   soname_spec='${libname}${release}${shared_ext}$major'
13996   shlibpath_var=LD_LIBRARY_PATH
13997   hardcode_into_libs=yes
13998   if test "$with_gnu_ld" = yes; then
13999     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14000     shlibpath_overrides_runpath=no
14001   else
14002     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14003     shlibpath_overrides_runpath=yes
14004     case $host_os in
14005       sco3.2v5*)
14006         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14007         ;;
14008     esac
14009   fi
14010   sys_lib_dlsearch_path_spec='/usr/lib'
14011   ;;
14012
14013 uts4*)
14014   version_type=linux
14015   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14016   soname_spec='${libname}${release}${shared_ext}$major'
14017   shlibpath_var=LD_LIBRARY_PATH
14018   ;;
14019
14020 *)
14021   dynamic_linker=no
14022   ;;
14023 esac
14024 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14025 echo "${ECHO_T}$dynamic_linker" >&6; }
14026 test "$dynamic_linker" = no && can_build_shared=no
14027
14028 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14029 if test "$GCC" = yes; then
14030   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14031 fi
14032
14033 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14034 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
14035 hardcode_action_CXX=
14036 if test -n "$hardcode_libdir_flag_spec_CXX" || \
14037    test -n "$runpath_var_CXX" || \
14038    test "X$hardcode_automatic_CXX" = "Xyes" ; then
14039
14040   # We can hardcode non-existant directories.
14041   if test "$hardcode_direct_CXX" != no &&
14042      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14043      # have to relink, otherwise we might link with an installed library
14044      # when we should be linking with a yet-to-be-installed one
14045      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14046      test "$hardcode_minus_L_CXX" != no; then
14047     # Linking always hardcodes the temporary library directory.
14048     hardcode_action_CXX=relink
14049   else
14050     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14051     hardcode_action_CXX=immediate
14052   fi
14053 else
14054   # We cannot hardcode anything, or else we can only hardcode existing
14055   # directories.
14056   hardcode_action_CXX=unsupported
14057 fi
14058 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14059 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
14060
14061 if test "$hardcode_action_CXX" = relink; then
14062   # Fast installation is not supported
14063   enable_fast_install=no
14064 elif test "$shlibpath_overrides_runpath" = yes ||
14065      test "$enable_shared" = no; then
14066   # Fast installation is not necessary
14067   enable_fast_install=needless
14068 fi
14069
14070
14071 # The else clause should only fire when bootstrapping the
14072 # libtool distribution, otherwise you forgot to ship ltmain.sh
14073 # with your package, and you will get complaints that there are
14074 # no rules to generate ltmain.sh.
14075 if test -f "$ltmain"; then
14076   # See if we are running on zsh, and set the options which allow our commands through
14077   # without removal of \ escapes.
14078   if test -n "${ZSH_VERSION+set}" ; then
14079     setopt NO_GLOB_SUBST
14080   fi
14081   # Now quote all the things that may contain metacharacters while being
14082   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14083   # variables and quote the copies for generation of the libtool script.
14084   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14085     SED SHELL STRIP \
14086     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14087     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14088     deplibs_check_method reload_flag reload_cmds need_locks \
14089     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14090     lt_cv_sys_global_symbol_to_c_name_address \
14091     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14092     old_postinstall_cmds old_postuninstall_cmds \
14093     compiler_CXX \
14094     CC_CXX \
14095     LD_CXX \
14096     lt_prog_compiler_wl_CXX \
14097     lt_prog_compiler_pic_CXX \
14098     lt_prog_compiler_static_CXX \
14099     lt_prog_compiler_no_builtin_flag_CXX \
14100     export_dynamic_flag_spec_CXX \
14101     thread_safe_flag_spec_CXX \
14102     whole_archive_flag_spec_CXX \
14103     enable_shared_with_static_runtimes_CXX \
14104     old_archive_cmds_CXX \
14105     old_archive_from_new_cmds_CXX \
14106     predep_objects_CXX \
14107     postdep_objects_CXX \
14108     predeps_CXX \
14109     postdeps_CXX \
14110     compiler_lib_search_path_CXX \
14111     archive_cmds_CXX \
14112     archive_expsym_cmds_CXX \
14113     postinstall_cmds_CXX \
14114     postuninstall_cmds_CXX \
14115     old_archive_from_expsyms_cmds_CXX \
14116     allow_undefined_flag_CXX \
14117     no_undefined_flag_CXX \
14118     export_symbols_cmds_CXX \
14119     hardcode_libdir_flag_spec_CXX \
14120     hardcode_libdir_flag_spec_ld_CXX \
14121     hardcode_libdir_separator_CXX \
14122     hardcode_automatic_CXX \
14123     module_cmds_CXX \
14124     module_expsym_cmds_CXX \
14125     lt_cv_prog_compiler_c_o_CXX \
14126     exclude_expsyms_CXX \
14127     include_expsyms_CXX; do
14128
14129     case $var in
14130     old_archive_cmds_CXX | \
14131     old_archive_from_new_cmds_CXX | \
14132     archive_cmds_CXX | \
14133     archive_expsym_cmds_CXX | \
14134     module_cmds_CXX | \
14135     module_expsym_cmds_CXX | \
14136     old_archive_from_expsyms_cmds_CXX | \
14137     export_symbols_cmds_CXX | \
14138     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14139     postinstall_cmds | postuninstall_cmds | \
14140     old_postinstall_cmds | old_postuninstall_cmds | \
14141     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14142       # Double-quote double-evaled strings.
14143       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14144       ;;
14145     *)
14146       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14147       ;;
14148     esac
14149   done
14150
14151   case $lt_echo in
14152   *'\$0 --fallback-echo"')
14153     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14154     ;;
14155   esac
14156
14157 cfgfile="$ofile"
14158
14159   cat <<__EOF__ >> "$cfgfile"
14160 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14161
14162 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14163
14164 # Shell to use when invoking shell scripts.
14165 SHELL=$lt_SHELL
14166
14167 # Whether or not to build shared libraries.
14168 build_libtool_libs=$enable_shared
14169
14170 # Whether or not to build static libraries.
14171 build_old_libs=$enable_static
14172
14173 # Whether or not to add -lc for building shared libraries.
14174 build_libtool_need_lc=$archive_cmds_need_lc_CXX
14175
14176 # Whether or not to disallow shared libs when runtime libs are static
14177 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14178
14179 # Whether or not to optimize for fast installation.
14180 fast_install=$enable_fast_install
14181
14182 # The host system.
14183 host_alias=$host_alias
14184 host=$host
14185 host_os=$host_os
14186
14187 # The build system.
14188 build_alias=$build_alias
14189 build=$build
14190 build_os=$build_os
14191
14192 # An echo program that does not interpret backslashes.
14193 echo=$lt_echo
14194
14195 # The archiver.
14196 AR=$lt_AR
14197 AR_FLAGS=$lt_AR_FLAGS
14198
14199 # A C compiler.
14200 LTCC=$lt_LTCC
14201
14202 # LTCC compiler flags.
14203 LTCFLAGS=$lt_LTCFLAGS
14204
14205 # A language-specific compiler.
14206 CC=$lt_compiler_CXX
14207
14208 # Is the compiler the GNU C compiler?
14209 with_gcc=$GCC_CXX
14210
14211 # An ERE matcher.
14212 EGREP=$lt_EGREP
14213
14214 # The linker used to build libraries.
14215 LD=$lt_LD_CXX
14216
14217 # Whether we need hard or soft links.
14218 LN_S=$lt_LN_S
14219
14220 # A BSD-compatible nm program.
14221 NM=$lt_NM
14222
14223 # A symbol stripping program
14224 STRIP=$lt_STRIP
14225
14226 # Used to examine libraries when file_magic_cmd begins "file"
14227 MAGIC_CMD=$MAGIC_CMD
14228
14229 # Used on cygwin: DLL creation program.
14230 DLLTOOL="$DLLTOOL"
14231
14232 # Used on cygwin: object dumper.
14233 OBJDUMP="$OBJDUMP"
14234
14235 # Used on cygwin: assembler.
14236 AS="$AS"
14237
14238 # The name of the directory that contains temporary libtool files.
14239 objdir=$objdir
14240
14241 # How to create reloadable object files.
14242 reload_flag=$lt_reload_flag
14243 reload_cmds=$lt_reload_cmds
14244
14245 # How to pass a linker flag through the compiler.
14246 wl=$lt_lt_prog_compiler_wl_CXX
14247
14248 # Object file suffix (normally "o").
14249 objext="$ac_objext"
14250
14251 # Old archive suffix (normally "a").
14252 libext="$libext"
14253
14254 # Shared library suffix (normally ".so").
14255 shrext_cmds='$shrext_cmds'
14256
14257 # Executable file suffix (normally "").
14258 exeext="$exeext"
14259
14260 # Additional compiler flags for building library objects.
14261 pic_flag=$lt_lt_prog_compiler_pic_CXX
14262 pic_mode=$pic_mode
14263
14264 # What is the maximum length of a command?
14265 max_cmd_len=$lt_cv_sys_max_cmd_len
14266
14267 # Does compiler simultaneously support -c and -o options?
14268 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14269
14270 # Must we lock files when doing compilation?
14271 need_locks=$lt_need_locks
14272
14273 # Do we need the lib prefix for modules?
14274 need_lib_prefix=$need_lib_prefix
14275
14276 # Do we need a version for libraries?
14277 need_version=$need_version
14278
14279 # Whether dlopen is supported.
14280 dlopen_support=$enable_dlopen
14281
14282 # Whether dlopen of programs is supported.
14283 dlopen_self=$enable_dlopen_self
14284
14285 # Whether dlopen of statically linked programs is supported.
14286 dlopen_self_static=$enable_dlopen_self_static
14287
14288 # Compiler flag to prevent dynamic linking.
14289 link_static_flag=$lt_lt_prog_compiler_static_CXX
14290
14291 # Compiler flag to turn off builtin functions.
14292 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14293
14294 # Compiler flag to allow reflexive dlopens.
14295 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14296
14297 # Compiler flag to generate shared objects directly from archives.
14298 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14299
14300 # Compiler flag to generate thread-safe objects.
14301 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14302
14303 # Library versioning type.
14304 version_type=$version_type
14305
14306 # Format of library name prefix.
14307 libname_spec=$lt_libname_spec
14308
14309 # List of archive names.  First name is the real one, the rest are links.
14310 # The last name is the one that the linker finds with -lNAME.
14311 library_names_spec=$lt_library_names_spec
14312
14313 # The coded name of the library, if different from the real name.
14314 soname_spec=$lt_soname_spec
14315
14316 # Commands used to build and install an old-style archive.
14317 RANLIB=$lt_RANLIB
14318 old_archive_cmds=$lt_old_archive_cmds_CXX
14319 old_postinstall_cmds=$lt_old_postinstall_cmds
14320 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14321
14322 # Create an old-style archive from a shared archive.
14323 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14324
14325 # Create a temporary old-style archive to link instead of a shared archive.
14326 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14327
14328 # Commands used to build and install a shared archive.
14329 archive_cmds=$lt_archive_cmds_CXX
14330 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14331 postinstall_cmds=$lt_postinstall_cmds
14332 postuninstall_cmds=$lt_postuninstall_cmds
14333
14334 # Commands used to build a loadable module (assumed same as above if empty)
14335 module_cmds=$lt_module_cmds_CXX
14336 module_expsym_cmds=$lt_module_expsym_cmds_CXX
14337
14338 # Commands to strip libraries.
14339 old_striplib=$lt_old_striplib
14340 striplib=$lt_striplib
14341
14342 # Dependencies to place before the objects being linked to create a
14343 # shared library.
14344 predep_objects=$lt_predep_objects_CXX
14345
14346 # Dependencies to place after the objects being linked to create a
14347 # shared library.
14348 postdep_objects=$lt_postdep_objects_CXX
14349
14350 # Dependencies to place before the objects being linked to create a
14351 # shared library.
14352 predeps=$lt_predeps_CXX
14353
14354 # Dependencies to place after the objects being linked to create a
14355 # shared library.
14356 postdeps=$lt_postdeps_CXX
14357
14358 # The library search path used internally by the compiler when linking
14359 # a shared library.
14360 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14361
14362 # Method to check whether dependent libraries are shared objects.
14363 deplibs_check_method=$lt_deplibs_check_method
14364
14365 # Command to use when deplibs_check_method == file_magic.
14366 file_magic_cmd=$lt_file_magic_cmd
14367
14368 # Flag that allows shared libraries with undefined symbols to be built.
14369 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14370
14371 # Flag that forces no undefined symbols.
14372 no_undefined_flag=$lt_no_undefined_flag_CXX
14373
14374 # Commands used to finish a libtool library installation in a directory.
14375 finish_cmds=$lt_finish_cmds
14376
14377 # Same as above, but a single script fragment to be evaled but not shown.
14378 finish_eval=$lt_finish_eval
14379
14380 # Take the output of nm and produce a listing of raw symbols and C names.
14381 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14382
14383 # Transform the output of nm in a proper C declaration
14384 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14385
14386 # Transform the output of nm in a C name address pair
14387 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14388
14389 # This is the shared library runtime path variable.
14390 runpath_var=$runpath_var
14391
14392 # This is the shared library path variable.
14393 shlibpath_var=$shlibpath_var
14394
14395 # Is shlibpath searched before the hard-coded library search path?
14396 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14397
14398 # How to hardcode a shared library path into an executable.
14399 hardcode_action=$hardcode_action_CXX
14400
14401 # Whether we should hardcode library paths into libraries.
14402 hardcode_into_libs=$hardcode_into_libs
14403
14404 # Flag to hardcode \$libdir into a binary during linking.
14405 # This must work even if \$libdir does not exist.
14406 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14407
14408 # If ld is used when linking, flag to hardcode \$libdir into
14409 # a binary during linking. This must work even if \$libdir does
14410 # not exist.
14411 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14412
14413 # Whether we need a single -rpath flag with a separated argument.
14414 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14415
14416 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14417 # resulting binary.
14418 hardcode_direct=$hardcode_direct_CXX
14419
14420 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14421 # resulting binary.
14422 hardcode_minus_L=$hardcode_minus_L_CXX
14423
14424 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14425 # the resulting binary.
14426 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14427
14428 # Set to yes if building a shared library automatically hardcodes DIR into the library
14429 # and all subsequent libraries and executables linked against it.
14430 hardcode_automatic=$hardcode_automatic_CXX
14431
14432 # Variables whose values should be saved in libtool wrapper scripts and
14433 # restored at relink time.
14434 variables_saved_for_relink="$variables_saved_for_relink"
14435
14436 # Whether libtool must link a program against all its dependency libraries.
14437 link_all_deplibs=$link_all_deplibs_CXX
14438
14439 # Compile-time system search path for libraries
14440 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14441
14442 # Run-time system search path for libraries
14443 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14444
14445 # Fix the shell variable \$srcfile for the compiler.
14446 fix_srcfile_path="$fix_srcfile_path_CXX"
14447
14448 # Set to yes if exported symbols are required.
14449 always_export_symbols=$always_export_symbols_CXX
14450
14451 # The commands to list exported symbols.
14452 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14453
14454 # The commands to extract the exported symbol list from a shared archive.
14455 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14456
14457 # Symbols that should not be listed in the preloaded symbols.
14458 exclude_expsyms=$lt_exclude_expsyms_CXX
14459
14460 # Symbols that must always be exported.
14461 include_expsyms=$lt_include_expsyms_CXX
14462
14463 # ### END LIBTOOL TAG CONFIG: $tagname
14464
14465 __EOF__
14466
14467
14468 else
14469   # If there is no Makefile yet, we rely on a make rule to execute
14470   # `config.status --recheck' to rerun these tests and create the
14471   # libtool script then.
14472   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14473   if test -f "$ltmain_in"; then
14474     test -f Makefile && make "$ltmain"
14475   fi
14476 fi
14477
14478
14479 ac_ext=c
14480 ac_cpp='$CPP $CPPFLAGS'
14481 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14482 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14483 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14484
14485 CC=$lt_save_CC
14486 LDCXX=$LD
14487 LD=$lt_save_LD
14488 GCC=$lt_save_GCC
14489 with_gnu_ldcxx=$with_gnu_ld
14490 with_gnu_ld=$lt_save_with_gnu_ld
14491 lt_cv_path_LDCXX=$lt_cv_path_LD
14492 lt_cv_path_LD=$lt_save_path_LD
14493 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14494 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14495
14496         else
14497           tagname=""
14498         fi
14499         ;;
14500
14501       F77)
14502         if test -n "$F77" && test "X$F77" != "Xno"; then
14503
14504 ac_ext=f
14505 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14506 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14507 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14508
14509
14510 archive_cmds_need_lc_F77=no
14511 allow_undefined_flag_F77=
14512 always_export_symbols_F77=no
14513 archive_expsym_cmds_F77=
14514 export_dynamic_flag_spec_F77=
14515 hardcode_direct_F77=no
14516 hardcode_libdir_flag_spec_F77=
14517 hardcode_libdir_flag_spec_ld_F77=
14518 hardcode_libdir_separator_F77=
14519 hardcode_minus_L_F77=no
14520 hardcode_automatic_F77=no
14521 module_cmds_F77=
14522 module_expsym_cmds_F77=
14523 link_all_deplibs_F77=unknown
14524 old_archive_cmds_F77=$old_archive_cmds
14525 no_undefined_flag_F77=
14526 whole_archive_flag_spec_F77=
14527 enable_shared_with_static_runtimes_F77=no
14528
14529 # Source file extension for f77 test sources.
14530 ac_ext=f
14531
14532 # Object file extension for compiled f77 test sources.
14533 objext=o
14534 objext_F77=$objext
14535
14536 # Code to be used in simple compile tests
14537 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
14538
14539 # Code to be used in simple link tests
14540 lt_simple_link_test_code="      program t\n      end\n"
14541
14542 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14543
14544 # If no C compiler was specified, use CC.
14545 LTCC=${LTCC-"$CC"}
14546
14547 # If no C compiler flags were specified, use CFLAGS.
14548 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14549
14550 # Allow CC to be a program name with arguments.
14551 compiler=$CC
14552
14553
14554 # save warnings/boilerplate of simple test code
14555 ac_outfile=conftest.$ac_objext
14556 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14557 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14558 _lt_compiler_boilerplate=`cat conftest.err`
14559 $rm conftest*
14560
14561 ac_outfile=conftest.$ac_objext
14562 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14563 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14564 _lt_linker_boilerplate=`cat conftest.err`
14565 $rm conftest*
14566
14567
14568 # Allow CC to be a program name with arguments.
14569 lt_save_CC="$CC"
14570 CC=${F77-"f77"}
14571 compiler=$CC
14572 compiler_F77=$CC
14573 for cc_temp in $compiler""; do
14574   case $cc_temp in
14575     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14576     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14577     \-*) ;;
14578     *) break;;
14579   esac
14580 done
14581 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14582
14583
14584 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14585 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14586 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14587 echo "${ECHO_T}$can_build_shared" >&6; }
14588
14589 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14590 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14591 test "$can_build_shared" = "no" && enable_shared=no
14592
14593 # On AIX, shared libraries and static libraries use the same namespace, and
14594 # are all built from PIC.
14595 case $host_os in
14596 aix3*)
14597   test "$enable_shared" = yes && enable_static=no
14598   if test -n "$RANLIB"; then
14599     archive_cmds="$archive_cmds~\$RANLIB \$lib"
14600     postinstall_cmds='$RANLIB $lib'
14601   fi
14602   ;;
14603 aix4* | aix5*)
14604   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14605     test "$enable_shared" = yes && enable_static=no
14606   fi
14607   ;;
14608 esac
14609 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14610 echo "${ECHO_T}$enable_shared" >&6; }
14611
14612 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14613 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14614 # Make sure either enable_shared or enable_static is yes.
14615 test "$enable_shared" = yes || enable_static=yes
14616 { echo "$as_me:$LINENO: result: $enable_static" >&5
14617 echo "${ECHO_T}$enable_static" >&6; }
14618
14619 GCC_F77="$G77"
14620 LD_F77="$LD"
14621
14622 lt_prog_compiler_wl_F77=
14623 lt_prog_compiler_pic_F77=
14624 lt_prog_compiler_static_F77=
14625
14626 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14627 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14628
14629   if test "$GCC" = yes; then
14630     lt_prog_compiler_wl_F77='-Wl,'
14631     lt_prog_compiler_static_F77='-static'
14632
14633     case $host_os in
14634       aix*)
14635       # All AIX code is PIC.
14636       if test "$host_cpu" = ia64; then
14637         # AIX 5 now supports IA64 processor
14638         lt_prog_compiler_static_F77='-Bstatic'
14639       fi
14640       ;;
14641
14642     amigaos*)
14643       # FIXME: we need at least 68020 code to build shared libraries, but
14644       # adding the `-m68020' flag to GCC prevents building anything better,
14645       # like `-m68040'.
14646       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14647       ;;
14648
14649     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14650       # PIC is the default for these OSes.
14651       ;;
14652
14653     mingw* | pw32* | os2*)
14654       # This hack is so that the source file can tell whether it is being
14655       # built for inclusion in a dll (and should export symbols for example).
14656       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14657       ;;
14658
14659     darwin* | rhapsody*)
14660       # PIC is the default on this platform
14661       # Common symbols not allowed in MH_DYLIB files
14662       lt_prog_compiler_pic_F77='-fno-common'
14663       ;;
14664
14665     interix3*)
14666       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14667       # Instead, we relocate shared libraries at runtime.
14668       ;;
14669
14670     msdosdjgpp*)
14671       # Just because we use GCC doesn't mean we suddenly get shared libraries
14672       # on systems that don't support them.
14673       lt_prog_compiler_can_build_shared_F77=no
14674       enable_shared=no
14675       ;;
14676
14677     sysv4*MP*)
14678       if test -d /usr/nec; then
14679         lt_prog_compiler_pic_F77=-Kconform_pic
14680       fi
14681       ;;
14682
14683     hpux*)
14684       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14685       # not for PA HP-UX.
14686       case $host_cpu in
14687       hppa*64*|ia64*)
14688         # +Z the default
14689         ;;
14690       *)
14691         lt_prog_compiler_pic_F77='-fPIC'
14692         ;;
14693       esac
14694       ;;
14695
14696     *)
14697       lt_prog_compiler_pic_F77='-fPIC'
14698       ;;
14699     esac
14700   else
14701     # PORTME Check for flag to pass linker flags through the system compiler.
14702     case $host_os in
14703     aix*)
14704       lt_prog_compiler_wl_F77='-Wl,'
14705       if test "$host_cpu" = ia64; then
14706         # AIX 5 now supports IA64 processor
14707         lt_prog_compiler_static_F77='-Bstatic'
14708       else
14709         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14710       fi
14711       ;;
14712       darwin*)
14713         # PIC is the default on this platform
14714         # Common symbols not allowed in MH_DYLIB files
14715        case $cc_basename in
14716          xlc*)
14717          lt_prog_compiler_pic_F77='-qnocommon'
14718          lt_prog_compiler_wl_F77='-Wl,'
14719          ;;
14720        esac
14721        ;;
14722
14723     mingw* | pw32* | os2*)
14724       # This hack is so that the source file can tell whether it is being
14725       # built for inclusion in a dll (and should export symbols for example).
14726       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14727       ;;
14728
14729     hpux9* | hpux10* | hpux11*)
14730       lt_prog_compiler_wl_F77='-Wl,'
14731       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14732       # not for PA HP-UX.
14733       case $host_cpu in
14734       hppa*64*|ia64*)
14735         # +Z the default
14736         ;;
14737       *)
14738         lt_prog_compiler_pic_F77='+Z'
14739         ;;
14740       esac
14741       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14742       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14743       ;;
14744
14745     irix5* | irix6* | nonstopux*)
14746       lt_prog_compiler_wl_F77='-Wl,'
14747       # PIC (with -KPIC) is the default.
14748       lt_prog_compiler_static_F77='-non_shared'
14749       ;;
14750
14751     newsos6)
14752       lt_prog_compiler_pic_F77='-KPIC'
14753       lt_prog_compiler_static_F77='-Bstatic'
14754       ;;
14755
14756     linux*)
14757       case $cc_basename in
14758       icc* | ecc*)
14759         lt_prog_compiler_wl_F77='-Wl,'
14760         lt_prog_compiler_pic_F77='-KPIC'
14761         lt_prog_compiler_static_F77='-static'
14762         ;;
14763       pgcc* | pgf77* | pgf90* | pgf95*)
14764         # Portland Group compilers (*not* the Pentium gcc compiler,
14765         # which looks to be a dead project)
14766         lt_prog_compiler_wl_F77='-Wl,'
14767         lt_prog_compiler_pic_F77='-fpic'
14768         lt_prog_compiler_static_F77='-Bstatic'
14769         ;;
14770       ccc*)
14771         lt_prog_compiler_wl_F77='-Wl,'
14772         # All Alpha code is PIC.
14773         lt_prog_compiler_static_F77='-non_shared'
14774         ;;
14775       esac
14776       ;;
14777
14778     osf3* | osf4* | osf5*)
14779       lt_prog_compiler_wl_F77='-Wl,'
14780       # All OSF/1 code is PIC.
14781       lt_prog_compiler_static_F77='-non_shared'
14782       ;;
14783
14784     solaris*)
14785       lt_prog_compiler_pic_F77='-KPIC'
14786       lt_prog_compiler_static_F77='-Bstatic'
14787       case $cc_basename in
14788       f77* | f90* | f95*)
14789         lt_prog_compiler_wl_F77='-Qoption ld ';;
14790       *)
14791         lt_prog_compiler_wl_F77='-Wl,';;
14792       esac
14793       ;;
14794
14795     sunos4*)
14796       lt_prog_compiler_wl_F77='-Qoption ld '
14797       lt_prog_compiler_pic_F77='-PIC'
14798       lt_prog_compiler_static_F77='-Bstatic'
14799       ;;
14800
14801     sysv4 | sysv4.2uw2* | sysv4.3*)
14802       lt_prog_compiler_wl_F77='-Wl,'
14803       lt_prog_compiler_pic_F77='-KPIC'
14804       lt_prog_compiler_static_F77='-Bstatic'
14805       ;;
14806
14807     sysv4*MP*)
14808       if test -d /usr/nec ;then
14809         lt_prog_compiler_pic_F77='-Kconform_pic'
14810         lt_prog_compiler_static_F77='-Bstatic'
14811       fi
14812       ;;
14813
14814     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14815       lt_prog_compiler_wl_F77='-Wl,'
14816       lt_prog_compiler_pic_F77='-KPIC'
14817       lt_prog_compiler_static_F77='-Bstatic'
14818       ;;
14819
14820     unicos*)
14821       lt_prog_compiler_wl_F77='-Wl,'
14822       lt_prog_compiler_can_build_shared_F77=no
14823       ;;
14824
14825     uts4*)
14826       lt_prog_compiler_pic_F77='-pic'
14827       lt_prog_compiler_static_F77='-Bstatic'
14828       ;;
14829
14830     *)
14831       lt_prog_compiler_can_build_shared_F77=no
14832       ;;
14833     esac
14834   fi
14835
14836 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14837 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14838
14839 #
14840 # Check to make sure the PIC flag actually works.
14841 #
14842 if test -n "$lt_prog_compiler_pic_F77"; then
14843
14844 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14845 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14846 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14847   echo $ECHO_N "(cached) $ECHO_C" >&6
14848 else
14849   lt_prog_compiler_pic_works_F77=no
14850   ac_outfile=conftest.$ac_objext
14851    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14852    lt_compiler_flag="$lt_prog_compiler_pic_F77"
14853    # Insert the option either (1) after the last *FLAGS variable, or
14854    # (2) before a word containing "conftest.", or (3) at the end.
14855    # Note that $ac_compile itself does not contain backslashes and begins
14856    # with a dollar sign (not a hyphen), so the echo should work correctly.
14857    # The option is referenced via a variable to avoid confusing sed.
14858    lt_compile=`echo "$ac_compile" | $SED \
14859    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14860    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14861    -e 's:$: $lt_compiler_flag:'`
14862    (eval echo "\"\$as_me:14862: $lt_compile\"" >&5)
14863    (eval "$lt_compile" 2>conftest.err)
14864    ac_status=$?
14865    cat conftest.err >&5
14866    echo "$as_me:14866: \$? = $ac_status" >&5
14867    if (exit $ac_status) && test -s "$ac_outfile"; then
14868      # The compiler can only warn and ignore the option if not recognized
14869      # So say no if there are warnings other than the usual output.
14870      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14871      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14872      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14873        lt_prog_compiler_pic_works_F77=yes
14874      fi
14875    fi
14876    $rm conftest*
14877
14878 fi
14879 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14880 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14881
14882 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14883     case $lt_prog_compiler_pic_F77 in
14884      "" | " "*) ;;
14885      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14886      esac
14887 else
14888     lt_prog_compiler_pic_F77=
14889      lt_prog_compiler_can_build_shared_F77=no
14890 fi
14891
14892 fi
14893 case $host_os in
14894   # For platforms which do not support PIC, -DPIC is meaningless:
14895   *djgpp*)
14896     lt_prog_compiler_pic_F77=
14897     ;;
14898   *)
14899     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14900     ;;
14901 esac
14902
14903 #
14904 # Check to make sure the static flag actually works.
14905 #
14906 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14907 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14908 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14909 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14910   echo $ECHO_N "(cached) $ECHO_C" >&6
14911 else
14912   lt_prog_compiler_static_works_F77=no
14913    save_LDFLAGS="$LDFLAGS"
14914    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14915    printf "$lt_simple_link_test_code" > conftest.$ac_ext
14916    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14917      # The linker can only warn and ignore the option if not recognized
14918      # So say no if there are warnings
14919      if test -s conftest.err; then
14920        # Append any errors to the config.log.
14921        cat conftest.err 1>&5
14922        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14923        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14924        if diff conftest.exp conftest.er2 >/dev/null; then
14925          lt_prog_compiler_static_works_F77=yes
14926        fi
14927      else
14928        lt_prog_compiler_static_works_F77=yes
14929      fi
14930    fi
14931    $rm conftest*
14932    LDFLAGS="$save_LDFLAGS"
14933
14934 fi
14935 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14936 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14937
14938 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14939     :
14940 else
14941     lt_prog_compiler_static_F77=
14942 fi
14943
14944
14945 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14946 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14947 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14948   echo $ECHO_N "(cached) $ECHO_C" >&6
14949 else
14950   lt_cv_prog_compiler_c_o_F77=no
14951    $rm -r conftest 2>/dev/null
14952    mkdir conftest
14953    cd conftest
14954    mkdir out
14955    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14956
14957    lt_compiler_flag="-o out/conftest2.$ac_objext"
14958    # Insert the option either (1) after the last *FLAGS variable, or
14959    # (2) before a word containing "conftest.", or (3) at the end.
14960    # Note that $ac_compile itself does not contain backslashes and begins
14961    # with a dollar sign (not a hyphen), so the echo should work correctly.
14962    lt_compile=`echo "$ac_compile" | $SED \
14963    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14964    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14965    -e 's:$: $lt_compiler_flag:'`
14966    (eval echo "\"\$as_me:14966: $lt_compile\"" >&5)
14967    (eval "$lt_compile" 2>out/conftest.err)
14968    ac_status=$?
14969    cat out/conftest.err >&5
14970    echo "$as_me:14970: \$? = $ac_status" >&5
14971    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14972    then
14973      # The compiler can only warn and ignore the option if not recognized
14974      # So say no if there are warnings
14975      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14976      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14977      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14978        lt_cv_prog_compiler_c_o_F77=yes
14979      fi
14980    fi
14981    chmod u+w . 2>&5
14982    $rm conftest*
14983    # SGI C++ compiler will create directory out/ii_files/ for
14984    # template instantiation
14985    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14986    $rm out/* && rmdir out
14987    cd ..
14988    rmdir conftest
14989    $rm conftest*
14990
14991 fi
14992 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14993 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14994
14995
14996 hard_links="nottested"
14997 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14998   # do not overwrite the value of need_locks provided by the user
14999   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15000 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15001   hard_links=yes
15002   $rm conftest*
15003   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15004   touch conftest.a
15005   ln conftest.a conftest.b 2>&5 || hard_links=no
15006   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15007   { echo "$as_me:$LINENO: result: $hard_links" >&5
15008 echo "${ECHO_T}$hard_links" >&6; }
15009   if test "$hard_links" = no; then
15010     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15011 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15012     need_locks=warn
15013   fi
15014 else
15015   need_locks=no
15016 fi
15017
15018 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15019 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15020
15021   runpath_var=
15022   allow_undefined_flag_F77=
15023   enable_shared_with_static_runtimes_F77=no
15024   archive_cmds_F77=
15025   archive_expsym_cmds_F77=
15026   old_archive_From_new_cmds_F77=
15027   old_archive_from_expsyms_cmds_F77=
15028   export_dynamic_flag_spec_F77=
15029   whole_archive_flag_spec_F77=
15030   thread_safe_flag_spec_F77=
15031   hardcode_libdir_flag_spec_F77=
15032   hardcode_libdir_flag_spec_ld_F77=
15033   hardcode_libdir_separator_F77=
15034   hardcode_direct_F77=no
15035   hardcode_minus_L_F77=no
15036   hardcode_shlibpath_var_F77=unsupported
15037   link_all_deplibs_F77=unknown
15038   hardcode_automatic_F77=no
15039   module_cmds_F77=
15040   module_expsym_cmds_F77=
15041   always_export_symbols_F77=no
15042   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15043   # include_expsyms should be a list of space-separated symbols to be *always*
15044   # included in the symbol list
15045   include_expsyms_F77=
15046   # exclude_expsyms can be an extended regexp of symbols to exclude
15047   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15048   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15049   # as well as any symbol that contains `d'.
15050   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15051   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15052   # platforms (ab)use it in PIC code, but their linkers get confused if
15053   # the symbol is explicitly referenced.  Since portable code cannot
15054   # rely on this symbol name, it's probably fine to never include it in
15055   # preloaded symbol tables.
15056   extract_expsyms_cmds=
15057   # Just being paranoid about ensuring that cc_basename is set.
15058   for cc_temp in $compiler""; do
15059   case $cc_temp in
15060     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15061     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15062     \-*) ;;
15063     *) break;;
15064   esac
15065 done
15066 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15067
15068   case $host_os in
15069   cygwin* | mingw* | pw32*)
15070     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15071     # When not using gcc, we currently assume that we are using
15072     # Microsoft Visual C++.
15073     if test "$GCC" != yes; then
15074       with_gnu_ld=no
15075     fi
15076     ;;
15077   interix*)
15078     # we just hope/assume this is gcc and not c89 (= MSVC++)
15079     with_gnu_ld=yes
15080     ;;
15081   openbsd*)
15082     with_gnu_ld=no
15083     ;;
15084   esac
15085
15086   ld_shlibs_F77=yes
15087   if test "$with_gnu_ld" = yes; then
15088     # If archive_cmds runs LD, not CC, wlarc should be empty
15089     wlarc='${wl}'
15090
15091     # Set some defaults for GNU ld with shared library support. These
15092     # are reset later if shared libraries are not supported. Putting them
15093     # here allows them to be overridden if necessary.
15094     runpath_var=LD_RUN_PATH
15095     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15096     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15097     # ancient GNU ld didn't support --whole-archive et. al.
15098     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15099         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15100       else
15101         whole_archive_flag_spec_F77=
15102     fi
15103     supports_anon_versioning=no
15104     case `$LD -v 2>/dev/null` in
15105       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15106       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15107       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15108       *\ 2.11.*) ;; # other 2.11 versions
15109       *) supports_anon_versioning=yes ;;
15110     esac
15111
15112     # See if GNU ld supports shared libraries.
15113     case $host_os in
15114     aix3* | aix4* | aix5*)
15115       # On AIX/PPC, the GNU linker is very broken
15116       if test "$host_cpu" != ia64; then
15117         ld_shlibs_F77=no
15118         cat <<EOF 1>&2
15119
15120 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15121 *** to be unable to reliably create shared libraries on AIX.
15122 *** Therefore, libtool is disabling shared libraries support.  If you
15123 *** really care for shared libraries, you may want to modify your PATH
15124 *** so that a non-GNU linker is found, and then restart.
15125
15126 EOF
15127       fi
15128       ;;
15129
15130     amigaos*)
15131       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)'
15132       hardcode_libdir_flag_spec_F77='-L$libdir'
15133       hardcode_minus_L_F77=yes
15134
15135       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15136       # that the semantics of dynamic libraries on AmigaOS, at least up
15137       # to version 4, is to share data among multiple programs linked
15138       # with the same dynamic library.  Since this doesn't match the
15139       # behavior of shared libraries on other platforms, we can't use
15140       # them.
15141       ld_shlibs_F77=no
15142       ;;
15143
15144     beos*)
15145       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15146         allow_undefined_flag_F77=unsupported
15147         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15148         # support --undefined.  This deserves some investigation.  FIXME
15149         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15150       else
15151         ld_shlibs_F77=no
15152       fi
15153       ;;
15154
15155     cygwin* | mingw* | pw32*)
15156       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15157       # as there is no search path for DLLs.
15158       hardcode_libdir_flag_spec_F77='-L$libdir'
15159       allow_undefined_flag_F77=unsupported
15160       always_export_symbols_F77=no
15161       enable_shared_with_static_runtimes_F77=yes
15162       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15163
15164       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15165         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15166         # If the export-symbols file already is a .def file (1st line
15167         # is EXPORTS), use it as is; otherwise, prepend...
15168         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15169           cp $export_symbols $output_objdir/$soname.def;
15170         else
15171           echo EXPORTS > $output_objdir/$soname.def;
15172           cat $export_symbols >> $output_objdir/$soname.def;
15173         fi~
15174         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15175       else
15176         ld_shlibs_F77=no
15177       fi
15178       ;;
15179
15180     interix3*)
15181       hardcode_direct_F77=no
15182       hardcode_shlibpath_var_F77=no
15183       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15184       export_dynamic_flag_spec_F77='${wl}-E'
15185       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15186       # Instead, shared libraries are loaded at an image base (0x10000000 by
15187       # default) and relocated if they conflict, which is a slow very memory
15188       # consuming and fragmenting process.  To avoid this, we pick a random,
15189       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15190       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15191       archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15192       archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15193       ;;
15194
15195     linux*)
15196       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15197         tmp_addflag=
15198         case $cc_basename,$host_cpu in
15199         pgcc*)                          # Portland Group C compiler
15200           whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
15201           tmp_addflag=' $pic_flag'
15202           ;;
15203         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
15204           whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
15205           tmp_addflag=' $pic_flag -Mnomain' ;;
15206         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
15207           tmp_addflag=' -i_dynamic' ;;
15208         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
15209           tmp_addflag=' -i_dynamic -nofor_main' ;;
15210         ifc* | ifort*)                  # Intel Fortran compiler
15211           tmp_addflag=' -nofor_main' ;;
15212         esac
15213         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15214
15215         if test $supports_anon_versioning = yes; then
15216           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15217   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15218   $echo "local: *; };" >> $output_objdir/$libname.ver~
15219           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15220         fi
15221       else
15222         ld_shlibs_F77=no
15223       fi
15224       ;;
15225
15226     netbsd*)
15227       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15228         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15229         wlarc=
15230       else
15231         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15232         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15233       fi
15234       ;;
15235
15236     solaris*)
15237       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15238         ld_shlibs_F77=no
15239         cat <<EOF 1>&2
15240
15241 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15242 *** create shared libraries on Solaris systems.  Therefore, libtool
15243 *** is disabling shared libraries support.  We urge you to upgrade GNU
15244 *** binutils to release 2.9.1 or newer.  Another option is to modify
15245 *** your PATH or compiler configuration so that the native linker is
15246 *** used, and then restart.
15247
15248 EOF
15249       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15250         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15251         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15252       else
15253         ld_shlibs_F77=no
15254       fi
15255       ;;
15256
15257     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15258       case `$LD -v 2>&1` in
15259         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15260         ld_shlibs_F77=no
15261         cat <<_LT_EOF 1>&2
15262
15263 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15264 *** reliably create shared libraries on SCO systems.  Therefore, libtool
15265 *** is disabling shared libraries support.  We urge you to upgrade GNU
15266 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15267 *** your PATH or compiler configuration so that the native linker is
15268 *** used, and then restart.
15269
15270 _LT_EOF
15271         ;;
15272         *)
15273           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15274             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15275             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15276             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15277           else
15278             ld_shlibs_F77=no
15279           fi
15280         ;;
15281       esac
15282       ;;
15283
15284     sunos4*)
15285       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15286       wlarc=
15287       hardcode_direct_F77=yes
15288       hardcode_shlibpath_var_F77=no
15289       ;;
15290
15291     *)
15292       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15293         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15294         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15295       else
15296         ld_shlibs_F77=no
15297       fi
15298       ;;
15299     esac
15300
15301     if test "$ld_shlibs_F77" = no; then
15302       runpath_var=
15303       hardcode_libdir_flag_spec_F77=
15304       export_dynamic_flag_spec_F77=
15305       whole_archive_flag_spec_F77=
15306     fi
15307   else
15308     # PORTME fill in a description of your system's linker (not GNU ld)
15309     case $host_os in
15310     aix3*)
15311       allow_undefined_flag_F77=unsupported
15312       always_export_symbols_F77=yes
15313       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'
15314       # Note: this linker hardcodes the directories in LIBPATH if there
15315       # are no directories specified by -L.
15316       hardcode_minus_L_F77=yes
15317       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15318         # Neither direct hardcoding nor static linking is supported with a
15319         # broken collect2.
15320         hardcode_direct_F77=unsupported
15321       fi
15322       ;;
15323
15324     aix4* | aix5*)
15325       if test "$host_cpu" = ia64; then
15326         # On IA64, the linker does run time linking by default, so we don't
15327         # have to do anything special.
15328         aix_use_runtimelinking=no
15329         exp_sym_flag='-Bexport'
15330         no_entry_flag=""
15331       else
15332         # If we're using GNU nm, then we don't want the "-C" option.
15333         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15334         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15335           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'
15336         else
15337           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'
15338         fi
15339         aix_use_runtimelinking=no
15340
15341         # Test if we are trying to use run time linking or normal
15342         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15343         # need to do runtime linking.
15344         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15345           for ld_flag in $LDFLAGS; do
15346           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15347             aix_use_runtimelinking=yes
15348             break
15349           fi
15350           done
15351           ;;
15352         esac
15353
15354         exp_sym_flag='-bexport'
15355         no_entry_flag='-bnoentry'
15356       fi
15357
15358       # When large executables or shared objects are built, AIX ld can
15359       # have problems creating the table of contents.  If linking a library
15360       # or program results in "error TOC overflow" add -mminimal-toc to
15361       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15362       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15363
15364       archive_cmds_F77=''
15365       hardcode_direct_F77=yes
15366       hardcode_libdir_separator_F77=':'
15367       link_all_deplibs_F77=yes
15368
15369       if test "$GCC" = yes; then
15370         case $host_os in aix4.[012]|aix4.[012].*)
15371         # We only want to do this on AIX 4.2 and lower, the check
15372         # below for broken collect2 doesn't work under 4.3+
15373           collect2name=`${CC} -print-prog-name=collect2`
15374           if test -f "$collect2name" && \
15375            strings "$collect2name" | grep resolve_lib_name >/dev/null
15376           then
15377           # We have reworked collect2
15378           hardcode_direct_F77=yes
15379           else
15380           # We have old collect2
15381           hardcode_direct_F77=unsupported
15382           # It fails to find uninstalled libraries when the uninstalled
15383           # path is not listed in the libpath.  Setting hardcode_minus_L
15384           # to unsupported forces relinking
15385           hardcode_minus_L_F77=yes
15386           hardcode_libdir_flag_spec_F77='-L$libdir'
15387           hardcode_libdir_separator_F77=
15388           fi
15389           ;;
15390         esac
15391         shared_flag='-shared'
15392         if test "$aix_use_runtimelinking" = yes; then
15393           shared_flag="$shared_flag "'${wl}-G'
15394         fi
15395       else
15396         # not using gcc
15397         if test "$host_cpu" = ia64; then
15398         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15399         # chokes on -Wl,-G. The following line is correct:
15400           shared_flag='-G'
15401         else
15402           if test "$aix_use_runtimelinking" = yes; then
15403             shared_flag='${wl}-G'
15404           else
15405             shared_flag='${wl}-bM:SRE'
15406           fi
15407         fi
15408       fi
15409
15410       # It seems that -bexpall does not export symbols beginning with
15411       # underscore (_), so it is better to generate a list of symbols to export.
15412       always_export_symbols_F77=yes
15413       if test "$aix_use_runtimelinking" = yes; then
15414         # Warning - without using the other runtime loading flags (-brtl),
15415         # -berok will link without error, but may produce a broken library.
15416         allow_undefined_flag_F77='-berok'
15417        # Determine the default libpath from the value encoded in an empty executable.
15418        cat >conftest.$ac_ext <<_ACEOF
15419       program main
15420
15421       end
15422 _ACEOF
15423 rm -f conftest.$ac_objext conftest$ac_exeext
15424 if { (ac_try="$ac_link"
15425 case "(($ac_try" in
15426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15427   *) ac_try_echo=$ac_try;;
15428 esac
15429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15430   (eval "$ac_link") 2>conftest.er1
15431   ac_status=$?
15432   grep -v '^ *+' conftest.er1 >conftest.err
15433   rm -f conftest.er1
15434   cat conftest.err >&5
15435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15436   (exit $ac_status); } && {
15437          test -z "$ac_f77_werror_flag" ||
15438          test ! -s conftest.err
15439        } && test -s conftest$ac_exeext &&
15440        $as_test_x conftest$ac_exeext; then
15441
15442 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15443 }'`
15444 # Check for a 64-bit object if we didn't find anything.
15445 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; }
15446 }'`; fi
15447 else
15448   echo "$as_me: failed program was:" >&5
15449 sed 's/^/| /' conftest.$ac_ext >&5
15450
15451
15452 fi
15453
15454 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15455       conftest$ac_exeext conftest.$ac_ext
15456 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15457
15458        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15459         archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15460        else
15461         if test "$host_cpu" = ia64; then
15462           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15463           allow_undefined_flag_F77="-z nodefs"
15464           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
15465         else
15466          # Determine the default libpath from the value encoded in an empty executable.
15467          cat >conftest.$ac_ext <<_ACEOF
15468       program main
15469
15470       end
15471 _ACEOF
15472 rm -f conftest.$ac_objext conftest$ac_exeext
15473 if { (ac_try="$ac_link"
15474 case "(($ac_try" in
15475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15476   *) ac_try_echo=$ac_try;;
15477 esac
15478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15479   (eval "$ac_link") 2>conftest.er1
15480   ac_status=$?
15481   grep -v '^ *+' conftest.er1 >conftest.err
15482   rm -f conftest.er1
15483   cat conftest.err >&5
15484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15485   (exit $ac_status); } && {
15486          test -z "$ac_f77_werror_flag" ||
15487          test ! -s conftest.err
15488        } && test -s conftest$ac_exeext &&
15489        $as_test_x conftest$ac_exeext; then
15490
15491 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15492 }'`
15493 # Check for a 64-bit object if we didn't find anything.
15494 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; }
15495 }'`; fi
15496 else
15497   echo "$as_me: failed program was:" >&5
15498 sed 's/^/| /' conftest.$ac_ext >&5
15499
15500
15501 fi
15502
15503 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15504       conftest$ac_exeext conftest.$ac_ext
15505 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15506
15507          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15508           # Warning - without using the other run time loading flags,
15509           # -berok will link without error, but may produce a broken library.
15510           no_undefined_flag_F77=' ${wl}-bernotok'
15511           allow_undefined_flag_F77=' ${wl}-berok'
15512           # Exported symbols can be pulled into shared objects from archives
15513           whole_archive_flag_spec_F77='$convenience'
15514           archive_cmds_need_lc_F77=yes
15515           # This is similar to how AIX traditionally builds its shared libraries.
15516           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15517         fi
15518       fi
15519       ;;
15520
15521     amigaos*)
15522       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)'
15523       hardcode_libdir_flag_spec_F77='-L$libdir'
15524       hardcode_minus_L_F77=yes
15525       # see comment about different semantics on the GNU ld section
15526       ld_shlibs_F77=no
15527       ;;
15528
15529     bsdi[45]*)
15530       export_dynamic_flag_spec_F77=-rdynamic
15531       ;;
15532
15533     cygwin* | mingw* | pw32*)
15534       # When not using gcc, we currently assume that we are using
15535       # Microsoft Visual C++.
15536       # hardcode_libdir_flag_spec is actually meaningless, as there is
15537       # no search path for DLLs.
15538       hardcode_libdir_flag_spec_F77=' '
15539       allow_undefined_flag_F77=unsupported
15540       # Tell ltmain to make .lib files, not .a files.
15541       libext=lib
15542       # Tell ltmain to make .dll files, not .so files.
15543       shrext_cmds=".dll"
15544       # FIXME: Setting linknames here is a bad hack.
15545       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15546       # The linker will automatically build a .lib file if we build a DLL.
15547       old_archive_From_new_cmds_F77='true'
15548       # FIXME: Should let the user specify the lib program.
15549       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15550       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15551       enable_shared_with_static_runtimes_F77=yes
15552       ;;
15553
15554     darwin* | rhapsody*)
15555       case $host_os in
15556         rhapsody* | darwin1.[012])
15557          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15558          ;;
15559        *) # Darwin 1.3 on
15560          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15561            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15562          else
15563            case ${MACOSX_DEPLOYMENT_TARGET} in
15564              10.[012])
15565                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15566                ;;
15567              10.*)
15568                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15569                ;;
15570            esac
15571          fi
15572          ;;
15573       esac
15574       archive_cmds_need_lc_F77=no
15575       hardcode_direct_F77=no
15576       hardcode_automatic_F77=yes
15577       hardcode_shlibpath_var_F77=unsupported
15578       whole_archive_flag_spec_F77=''
15579       link_all_deplibs_F77=yes
15580     if test "$GCC" = yes ; then
15581         output_verbose_link_cmd='echo'
15582         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15583       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15584       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15585       archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15586       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}'
15587     else
15588       case $cc_basename in
15589         xlc*)
15590          output_verbose_link_cmd='echo'
15591          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15592          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15593           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15594          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15595           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}'
15596           ;;
15597        *)
15598          ld_shlibs_F77=no
15599           ;;
15600       esac
15601     fi
15602       ;;
15603
15604     dgux*)
15605       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15606       hardcode_libdir_flag_spec_F77='-L$libdir'
15607       hardcode_shlibpath_var_F77=no
15608       ;;
15609
15610     freebsd1*)
15611       ld_shlibs_F77=no
15612       ;;
15613
15614     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15615     # support.  Future versions do this automatically, but an explicit c++rt0.o
15616     # does not break anything, and helps significantly (at the cost of a little
15617     # extra space).
15618     freebsd2.2*)
15619       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15620       hardcode_libdir_flag_spec_F77='-R$libdir'
15621       hardcode_direct_F77=yes
15622       hardcode_shlibpath_var_F77=no
15623       ;;
15624
15625     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15626     freebsd2*)
15627       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15628       hardcode_direct_F77=yes
15629       hardcode_minus_L_F77=yes
15630       hardcode_shlibpath_var_F77=no
15631       ;;
15632
15633     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15634     freebsd* | kfreebsd*-gnu | dragonfly*)
15635       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15636       hardcode_libdir_flag_spec_F77='-R$libdir'
15637       hardcode_direct_F77=yes
15638       hardcode_shlibpath_var_F77=no
15639       ;;
15640
15641     hpux9*)
15642       if test "$GCC" = yes; then
15643         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'
15644       else
15645         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'
15646       fi
15647       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15648       hardcode_libdir_separator_F77=:
15649       hardcode_direct_F77=yes
15650
15651       # hardcode_minus_L: Not really in the search PATH,
15652       # but as the default location of the library.
15653       hardcode_minus_L_F77=yes
15654       export_dynamic_flag_spec_F77='${wl}-E'
15655       ;;
15656
15657     hpux10*)
15658       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15659         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15660       else
15661         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15662       fi
15663       if test "$with_gnu_ld" = no; then
15664         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15665         hardcode_libdir_separator_F77=:
15666
15667         hardcode_direct_F77=yes
15668         export_dynamic_flag_spec_F77='${wl}-E'
15669
15670         # hardcode_minus_L: Not really in the search PATH,
15671         # but as the default location of the library.
15672         hardcode_minus_L_F77=yes
15673       fi
15674       ;;
15675
15676     hpux11*)
15677       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15678         case $host_cpu in
15679         hppa*64*)
15680           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15681           ;;
15682         ia64*)
15683           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15684           ;;
15685         *)
15686           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15687           ;;
15688         esac
15689       else
15690         case $host_cpu in
15691         hppa*64*)
15692           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15693           ;;
15694         ia64*)
15695           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15696           ;;
15697         *)
15698           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15699           ;;
15700         esac
15701       fi
15702       if test "$with_gnu_ld" = no; then
15703         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15704         hardcode_libdir_separator_F77=:
15705
15706         case $host_cpu in
15707         hppa*64*|ia64*)
15708           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15709           hardcode_direct_F77=no
15710           hardcode_shlibpath_var_F77=no
15711           ;;
15712         *)
15713           hardcode_direct_F77=yes
15714           export_dynamic_flag_spec_F77='${wl}-E'
15715
15716           # hardcode_minus_L: Not really in the search PATH,
15717           # but as the default location of the library.
15718           hardcode_minus_L_F77=yes
15719           ;;
15720         esac
15721       fi
15722       ;;
15723
15724     irix5* | irix6* | nonstopux*)
15725       if test "$GCC" = yes; then
15726         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'
15727       else
15728         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'
15729         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15730       fi
15731       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15732       hardcode_libdir_separator_F77=:
15733       link_all_deplibs_F77=yes
15734       ;;
15735
15736     netbsd*)
15737       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15738         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15739       else
15740         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15741       fi
15742       hardcode_libdir_flag_spec_F77='-R$libdir'
15743       hardcode_direct_F77=yes
15744       hardcode_shlibpath_var_F77=no
15745       ;;
15746
15747     newsos6)
15748       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15749       hardcode_direct_F77=yes
15750       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15751       hardcode_libdir_separator_F77=:
15752       hardcode_shlibpath_var_F77=no
15753       ;;
15754
15755     openbsd*)
15756       hardcode_direct_F77=yes
15757       hardcode_shlibpath_var_F77=no
15758       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15759         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15760         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15761         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15762         export_dynamic_flag_spec_F77='${wl}-E'
15763       else
15764        case $host_os in
15765          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15766            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15767            hardcode_libdir_flag_spec_F77='-R$libdir'
15768            ;;
15769          *)
15770            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15771            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15772            ;;
15773        esac
15774       fi
15775       ;;
15776
15777     os2*)
15778       hardcode_libdir_flag_spec_F77='-L$libdir'
15779       hardcode_minus_L_F77=yes
15780       allow_undefined_flag_F77=unsupported
15781       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'
15782       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15783       ;;
15784
15785     osf3*)
15786       if test "$GCC" = yes; then
15787         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15788         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'
15789       else
15790         allow_undefined_flag_F77=' -expect_unresolved \*'
15791         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'
15792       fi
15793       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15794       hardcode_libdir_separator_F77=:
15795       ;;
15796
15797     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15798       if test "$GCC" = yes; then
15799         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15800         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'
15801         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15802       else
15803         allow_undefined_flag_F77=' -expect_unresolved \*'
15804         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'
15805         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~
15806         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
15807
15808         # Both c and cxx compiler support -rpath directly
15809         hardcode_libdir_flag_spec_F77='-rpath $libdir'
15810       fi
15811       hardcode_libdir_separator_F77=:
15812       ;;
15813
15814     solaris*)
15815       no_undefined_flag_F77=' -z text'
15816       if test "$GCC" = yes; then
15817         wlarc='${wl}'
15818         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15819         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15820           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15821       else
15822         wlarc=''
15823         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15824         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15825         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15826       fi
15827       hardcode_libdir_flag_spec_F77='-R$libdir'
15828       hardcode_shlibpath_var_F77=no
15829       case $host_os in
15830       solaris2.[0-5] | solaris2.[0-5].*) ;;
15831       *)
15832         # The compiler driver will combine linker options so we
15833         # cannot just pass the convience library names through
15834         # without $wl, iff we do not link with $LD.
15835         # Luckily, gcc supports the same syntax we need for Sun Studio.
15836         # Supported since Solaris 2.6 (maybe 2.5.1?)
15837         case $wlarc in
15838         '')
15839           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15840         *)
15841           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
15842         esac ;;
15843       esac
15844       link_all_deplibs_F77=yes
15845       ;;
15846
15847     sunos4*)
15848       if test "x$host_vendor" = xsequent; then
15849         # Use $CC to link under sequent, because it throws in some extra .o
15850         # files that make .init and .fini sections work.
15851         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15852       else
15853         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15854       fi
15855       hardcode_libdir_flag_spec_F77='-L$libdir'
15856       hardcode_direct_F77=yes
15857       hardcode_minus_L_F77=yes
15858       hardcode_shlibpath_var_F77=no
15859       ;;
15860
15861     sysv4)
15862       case $host_vendor in
15863         sni)
15864           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15865           hardcode_direct_F77=yes # is this really true???
15866         ;;
15867         siemens)
15868           ## LD is ld it makes a PLAMLIB
15869           ## CC just makes a GrossModule.
15870           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15871           reload_cmds_F77='$CC -r -o $output$reload_objs'
15872           hardcode_direct_F77=no
15873         ;;
15874         motorola)
15875           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15876           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15877         ;;
15878       esac
15879       runpath_var='LD_RUN_PATH'
15880       hardcode_shlibpath_var_F77=no
15881       ;;
15882
15883     sysv4.3*)
15884       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15885       hardcode_shlibpath_var_F77=no
15886       export_dynamic_flag_spec_F77='-Bexport'
15887       ;;
15888
15889     sysv4*MP*)
15890       if test -d /usr/nec; then
15891         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15892         hardcode_shlibpath_var_F77=no
15893         runpath_var=LD_RUN_PATH
15894         hardcode_runpath_var=yes
15895         ld_shlibs_F77=yes
15896       fi
15897       ;;
15898
15899     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15900       no_undefined_flag_F77='${wl}-z,text'
15901       archive_cmds_need_lc_F77=no
15902       hardcode_shlibpath_var_F77=no
15903       runpath_var='LD_RUN_PATH'
15904
15905       if test "$GCC" = yes; then
15906         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15907         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15908       else
15909         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15910         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15911       fi
15912       ;;
15913
15914     sysv5* | sco3.2v5* | sco5v6*)
15915       # Note: We can NOT use -z defs as we might desire, because we do not
15916       # link with -lc, and that would cause any symbols used from libc to
15917       # always be unresolved, which means just about no library would
15918       # ever link correctly.  If we're not using GNU ld we use -z text
15919       # though, which does catch some bad symbols but isn't as heavy-handed
15920       # as -z defs.
15921       no_undefined_flag_F77='${wl}-z,text'
15922       allow_undefined_flag_F77='${wl}-z,nodefs'
15923       archive_cmds_need_lc_F77=no
15924       hardcode_shlibpath_var_F77=no
15925       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15926       hardcode_libdir_separator_F77=':'
15927       link_all_deplibs_F77=yes
15928       export_dynamic_flag_spec_F77='${wl}-Bexport'
15929       runpath_var='LD_RUN_PATH'
15930
15931       if test "$GCC" = yes; then
15932         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15933         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15934       else
15935         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15936         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15937       fi
15938       ;;
15939
15940     uts4*)
15941       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15942       hardcode_libdir_flag_spec_F77='-L$libdir'
15943       hardcode_shlibpath_var_F77=no
15944       ;;
15945
15946     *)
15947       ld_shlibs_F77=no
15948       ;;
15949     esac
15950   fi
15951
15952 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15953 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15954 test "$ld_shlibs_F77" = no && can_build_shared=no
15955
15956 #
15957 # Do we need to explicitly link libc?
15958 #
15959 case "x$archive_cmds_need_lc_F77" in
15960 x|xyes)
15961   # Assume -lc should be added
15962   archive_cmds_need_lc_F77=yes
15963
15964   if test "$enable_shared" = yes && test "$GCC" = yes; then
15965     case $archive_cmds_F77 in
15966     *'~'*)
15967       # FIXME: we may have to deal with multi-command sequences.
15968       ;;
15969     '$CC '*)
15970       # Test whether the compiler implicitly links with -lc since on some
15971       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15972       # to ld, don't add -lc before -lgcc.
15973       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15974 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15975       $rm conftest*
15976       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15977
15978       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15979   (eval $ac_compile) 2>&5
15980   ac_status=$?
15981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15982   (exit $ac_status); } 2>conftest.err; then
15983         soname=conftest
15984         lib=conftest
15985         libobjs=conftest.$ac_objext
15986         deplibs=
15987         wl=$lt_prog_compiler_wl_F77
15988         pic_flag=$lt_prog_compiler_pic_F77
15989         compiler_flags=-v
15990         linker_flags=-v
15991         verstring=
15992         output_objdir=.
15993         libname=conftest
15994         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15995         allow_undefined_flag_F77=
15996         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15997   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15998   ac_status=$?
15999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16000   (exit $ac_status); }
16001         then
16002           archive_cmds_need_lc_F77=no
16003         else
16004           archive_cmds_need_lc_F77=yes
16005         fi
16006         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16007       else
16008         cat conftest.err 1>&5
16009       fi
16010       $rm conftest*
16011       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16012 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
16013       ;;
16014     esac
16015   fi
16016   ;;
16017 esac
16018
16019 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16020 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16021 library_names_spec=
16022 libname_spec='lib$name'
16023 soname_spec=
16024 shrext_cmds=".so"
16025 postinstall_cmds=
16026 postuninstall_cmds=
16027 finish_cmds=
16028 finish_eval=
16029 shlibpath_var=
16030 shlibpath_overrides_runpath=unknown
16031 version_type=none
16032 dynamic_linker="$host_os ld.so"
16033 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16034 if test "$GCC" = yes; then
16035   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16036   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16037     # if the path contains ";" then we assume it to be the separator
16038     # otherwise default to the standard path separator (i.e. ":") - it is
16039     # assumed that no part of a normal pathname contains ";" but that should
16040     # okay in the real world where ";" in dirpaths is itself problematic.
16041     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16042   else
16043     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16044   fi
16045 else
16046   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16047 fi
16048 need_lib_prefix=unknown
16049 hardcode_into_libs=no
16050
16051 # when you set need_version to no, make sure it does not cause -set_version
16052 # flags to be left without arguments
16053 need_version=unknown
16054
16055 case $host_os in
16056 aix3*)
16057   version_type=linux
16058   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16059   shlibpath_var=LIBPATH
16060
16061   # AIX 3 has no versioning support, so we append a major version to the name.
16062   soname_spec='${libname}${release}${shared_ext}$major'
16063   ;;
16064
16065 aix4* | aix5*)
16066   version_type=linux
16067   need_lib_prefix=no
16068   need_version=no
16069   hardcode_into_libs=yes
16070   if test "$host_cpu" = ia64; then
16071     # AIX 5 supports IA64
16072     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16073     shlibpath_var=LD_LIBRARY_PATH
16074   else
16075     # With GCC up to 2.95.x, collect2 would create an import file
16076     # for dependence libraries.  The import file would start with
16077     # the line `#! .'.  This would cause the generated library to
16078     # depend on `.', always an invalid library.  This was fixed in
16079     # development snapshots of GCC prior to 3.0.
16080     case $host_os in
16081       aix4 | aix4.[01] | aix4.[01].*)
16082       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16083            echo ' yes '
16084            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16085         :
16086       else
16087         can_build_shared=no
16088       fi
16089       ;;
16090     esac
16091     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16092     # soname into executable. Probably we can add versioning support to
16093     # collect2, so additional links can be useful in future.
16094     if test "$aix_use_runtimelinking" = yes; then
16095       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16096       # instead of lib<name>.a to let people know that these are not
16097       # typical AIX shared libraries.
16098       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16099     else
16100       # We preserve .a as extension for shared libraries through AIX4.2
16101       # and later when we are not doing run time linking.
16102       library_names_spec='${libname}${release}.a $libname.a'
16103       soname_spec='${libname}${release}${shared_ext}$major'
16104     fi
16105     shlibpath_var=LIBPATH
16106   fi
16107   ;;
16108
16109 amigaos*)
16110   library_names_spec='$libname.ixlibrary $libname.a'
16111   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16112   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'
16113   ;;
16114
16115 beos*)
16116   library_names_spec='${libname}${shared_ext}'
16117   dynamic_linker="$host_os ld.so"
16118   shlibpath_var=LIBRARY_PATH
16119   ;;
16120
16121 bsdi[45]*)
16122   version_type=linux
16123   need_version=no
16124   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16125   soname_spec='${libname}${release}${shared_ext}$major'
16126   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16127   shlibpath_var=LD_LIBRARY_PATH
16128   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16129   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16130   # the default ld.so.conf also contains /usr/contrib/lib and
16131   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16132   # libtool to hard-code these into programs
16133   ;;
16134
16135 cygwin* | mingw* | pw32*)
16136   version_type=windows
16137   shrext_cmds=".dll"
16138   need_version=no
16139   need_lib_prefix=no
16140
16141   case $GCC,$host_os in
16142   yes,cygwin* | yes,mingw* | yes,pw32*)
16143     library_names_spec='$libname.dll.a'
16144     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16145     postinstall_cmds='base_file=`basename \${file}`~
16146       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16147       dldir=$destdir/`dirname \$dlpath`~
16148       test -d \$dldir || mkdir -p \$dldir~
16149       $install_prog $dir/$dlname \$dldir/$dlname~
16150       chmod a+x \$dldir/$dlname'
16151     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16152       dlpath=$dir/\$dldll~
16153        $rm \$dlpath'
16154     shlibpath_overrides_runpath=yes
16155
16156     case $host_os in
16157     cygwin*)
16158       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16159       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16160       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16161       ;;
16162     mingw*)
16163       # MinGW DLLs use traditional 'lib' prefix
16164       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16165       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16166       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16167         # It is most probably a Windows format PATH printed by
16168         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16169         # path with ; separators, and with drive letters. We can handle the
16170         # drive letters (cygwin fileutils understands them), so leave them,
16171         # especially as we might pass files found there to a mingw objdump,
16172         # which wouldn't understand a cygwinified path. Ahh.
16173         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16174       else
16175         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16176       fi
16177       ;;
16178     pw32*)
16179       # pw32 DLLs use 'pw' prefix rather than 'lib'
16180       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16181       ;;
16182     esac
16183     ;;
16184
16185   *)
16186     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16187     ;;
16188   esac
16189   dynamic_linker='Win32 ld.exe'
16190   # FIXME: first we should search . and the directory the executable is in
16191   shlibpath_var=PATH
16192   ;;
16193
16194 darwin* | rhapsody*)
16195   dynamic_linker="$host_os dyld"
16196   version_type=darwin
16197   need_lib_prefix=no
16198   need_version=no
16199   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext ${libname}${release}${versuffix}$shared_ext'
16200   soname_spec='${libname}${release}${major}$shared_ext'
16201   shlibpath_overrides_runpath=yes
16202   shlibpath_var=DYLD_LIBRARY_PATH
16203   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16204   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16205   if test "$GCC" = yes; then
16206     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"`
16207   else
16208     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16209   fi
16210   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16211   ;;
16212
16213 dgux*)
16214   version_type=linux
16215   need_lib_prefix=no
16216   need_version=no
16217   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16218   soname_spec='${libname}${release}${shared_ext}$major'
16219   shlibpath_var=LD_LIBRARY_PATH
16220   ;;
16221
16222 freebsd1*)
16223   dynamic_linker=no
16224   ;;
16225
16226 kfreebsd*-gnu)
16227   version_type=linux
16228   need_lib_prefix=no
16229   need_version=no
16230   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16231   soname_spec='${libname}${release}${shared_ext}$major'
16232   shlibpath_var=LD_LIBRARY_PATH
16233   shlibpath_overrides_runpath=no
16234   hardcode_into_libs=yes
16235   dynamic_linker='GNU ld.so'
16236   ;;
16237
16238 freebsd* | dragonfly*)
16239   # DragonFly does not have aout.  When/if they implement a new
16240   # versioning mechanism, adjust this.
16241   if test -x /usr/bin/objformat; then
16242     objformat=`/usr/bin/objformat`
16243   else
16244     case $host_os in
16245     freebsd[123]*) objformat=aout ;;
16246     *) objformat=elf ;;
16247     esac
16248   fi
16249   version_type=freebsd-$objformat
16250   case $version_type in
16251     freebsd-elf*)
16252       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16253       need_version=no
16254       need_lib_prefix=no
16255       ;;
16256     freebsd-*)
16257       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16258       need_version=yes
16259       ;;
16260   esac
16261   shlibpath_var=LD_LIBRARY_PATH
16262   case $host_os in
16263   freebsd2*)
16264     shlibpath_overrides_runpath=yes
16265     ;;
16266   freebsd3.[01]* | freebsdelf3.[01]*)
16267     shlibpath_overrides_runpath=yes
16268     hardcode_into_libs=yes
16269     ;;
16270   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16271   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16272     shlibpath_overrides_runpath=no
16273     hardcode_into_libs=yes
16274     ;;
16275   freebsd*) # from 4.6 on
16276     shlibpath_overrides_runpath=yes
16277     hardcode_into_libs=yes
16278     ;;
16279   esac
16280   ;;
16281
16282 gnu*)
16283   version_type=linux
16284   need_lib_prefix=no
16285   need_version=no
16286   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16287   soname_spec='${libname}${release}${shared_ext}$major'
16288   shlibpath_var=LD_LIBRARY_PATH
16289   hardcode_into_libs=yes
16290   ;;
16291
16292 hpux9* | hpux10* | hpux11*)
16293   # Give a soname corresponding to the major version so that dld.sl refuses to
16294   # link against other versions.
16295   version_type=sunos
16296   need_lib_prefix=no
16297   need_version=no
16298   case $host_cpu in
16299   ia64*)
16300     shrext_cmds='.so'
16301     hardcode_into_libs=yes
16302     dynamic_linker="$host_os dld.so"
16303     shlibpath_var=LD_LIBRARY_PATH
16304     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16305     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16306     soname_spec='${libname}${release}${shared_ext}$major'
16307     if test "X$HPUX_IA64_MODE" = X32; then
16308       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16309     else
16310       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16311     fi
16312     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16313     ;;
16314    hppa*64*)
16315      shrext_cmds='.sl'
16316      hardcode_into_libs=yes
16317      dynamic_linker="$host_os dld.sl"
16318      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16319      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16320      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16321      soname_spec='${libname}${release}${shared_ext}$major'
16322      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16323      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16324      ;;
16325    *)
16326     shrext_cmds='.sl'
16327     dynamic_linker="$host_os dld.sl"
16328     shlibpath_var=SHLIB_PATH
16329     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16330     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16331     soname_spec='${libname}${release}${shared_ext}$major'
16332     ;;
16333   esac
16334   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16335   postinstall_cmds='chmod 555 $lib'
16336   ;;
16337
16338 interix3*)
16339   version_type=linux
16340   need_lib_prefix=no
16341   need_version=no
16342   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16343   soname_spec='${libname}${release}${shared_ext}$major'
16344   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16345   shlibpath_var=LD_LIBRARY_PATH
16346   shlibpath_overrides_runpath=no
16347   hardcode_into_libs=yes
16348   ;;
16349
16350 irix5* | irix6* | nonstopux*)
16351   case $host_os in
16352     nonstopux*) version_type=nonstopux ;;
16353     *)
16354         if test "$lt_cv_prog_gnu_ld" = yes; then
16355                 version_type=linux
16356         else
16357                 version_type=irix
16358         fi ;;
16359   esac
16360   need_lib_prefix=no
16361   need_version=no
16362   soname_spec='${libname}${release}${shared_ext}$major'
16363   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16364   case $host_os in
16365   irix5* | nonstopux*)
16366     libsuff= shlibsuff=
16367     ;;
16368   *)
16369     case $LD in # libtool.m4 will add one of these switches to LD
16370     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16371       libsuff= shlibsuff= libmagic=32-bit;;
16372     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16373       libsuff=32 shlibsuff=N32 libmagic=N32;;
16374     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16375       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16376     *) libsuff= shlibsuff= libmagic=never-match;;
16377     esac
16378     ;;
16379   esac
16380   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16381   shlibpath_overrides_runpath=no
16382   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16383   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16384   hardcode_into_libs=yes
16385   ;;
16386
16387 # No shared lib support for Linux oldld, aout, or coff.
16388 linux*oldld* | linux*aout* | linux*coff*)
16389   dynamic_linker=no
16390   ;;
16391
16392 # This must be Linux ELF.
16393 linux*)
16394   version_type=linux
16395   need_lib_prefix=no
16396   need_version=no
16397   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16398   soname_spec='${libname}${release}${shared_ext}$major'
16399   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16400   shlibpath_var=LD_LIBRARY_PATH
16401   shlibpath_overrides_runpath=no
16402   # This implies no fast_install, which is unacceptable.
16403   # Some rework will be needed to allow for fast_install
16404   # before this can be enabled.
16405   hardcode_into_libs=yes
16406
16407   # Append ld.so.conf contents to the search path
16408   if test -f /etc/ld.so.conf; then
16409     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
16410     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16411   fi
16412
16413   # We used to test for /lib/ld.so.1 and disable shared libraries on
16414   # powerpc, because MkLinux only supported shared libraries with the
16415   # GNU dynamic linker.  Since this was broken with cross compilers,
16416   # most powerpc-linux boxes support dynamic linking these days and
16417   # people can always --disable-shared, the test was removed, and we
16418   # assume the GNU/Linux dynamic linker is in use.
16419   dynamic_linker='GNU/Linux ld.so'
16420   ;;
16421
16422 knetbsd*-gnu)
16423   version_type=linux
16424   need_lib_prefix=no
16425   need_version=no
16426   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16427   soname_spec='${libname}${release}${shared_ext}$major'
16428   shlibpath_var=LD_LIBRARY_PATH
16429   shlibpath_overrides_runpath=no
16430   hardcode_into_libs=yes
16431   dynamic_linker='GNU ld.so'
16432   ;;
16433
16434 netbsd*)
16435   version_type=sunos
16436   need_lib_prefix=no
16437   need_version=no
16438   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16439     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16440     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16441     dynamic_linker='NetBSD (a.out) ld.so'
16442   else
16443     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16444     soname_spec='${libname}${release}${shared_ext}$major'
16445     dynamic_linker='NetBSD ld.elf_so'
16446   fi
16447   shlibpath_var=LD_LIBRARY_PATH
16448   shlibpath_overrides_runpath=yes
16449   hardcode_into_libs=yes
16450   ;;
16451
16452 newsos6)
16453   version_type=linux
16454   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16455   shlibpath_var=LD_LIBRARY_PATH
16456   shlibpath_overrides_runpath=yes
16457   ;;
16458
16459 nto-qnx*)
16460   version_type=linux
16461   need_lib_prefix=no
16462   need_version=no
16463   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16464   soname_spec='${libname}${release}${shared_ext}$major'
16465   shlibpath_var=LD_LIBRARY_PATH
16466   shlibpath_overrides_runpath=yes
16467   ;;
16468
16469 openbsd*)
16470   version_type=sunos
16471   sys_lib_dlsearch_path_spec="/usr/lib"
16472   need_lib_prefix=no
16473   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16474   case $host_os in
16475     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16476     *)                         need_version=no  ;;
16477   esac
16478   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16479   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16480   shlibpath_var=LD_LIBRARY_PATH
16481   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16482     case $host_os in
16483       openbsd2.[89] | openbsd2.[89].*)
16484         shlibpath_overrides_runpath=no
16485         ;;
16486       *)
16487         shlibpath_overrides_runpath=yes
16488         ;;
16489       esac
16490   else
16491     shlibpath_overrides_runpath=yes
16492   fi
16493   ;;
16494
16495 os2*)
16496   libname_spec='$name'
16497   shrext_cmds=".dll"
16498   need_lib_prefix=no
16499   library_names_spec='$libname${shared_ext} $libname.a'
16500   dynamic_linker='OS/2 ld.exe'
16501   shlibpath_var=LIBPATH
16502   ;;
16503
16504 osf3* | osf4* | osf5*)
16505   version_type=osf
16506   need_lib_prefix=no
16507   need_version=no
16508   soname_spec='${libname}${release}${shared_ext}$major'
16509   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16510   shlibpath_var=LD_LIBRARY_PATH
16511   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16512   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16513   ;;
16514
16515 solaris*)
16516   version_type=linux
16517   need_lib_prefix=no
16518   need_version=no
16519   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16520   soname_spec='${libname}${release}${shared_ext}$major'
16521   shlibpath_var=LD_LIBRARY_PATH
16522   shlibpath_overrides_runpath=yes
16523   hardcode_into_libs=yes
16524   # ldd complains unless libraries are executable
16525   postinstall_cmds='chmod +x $lib'
16526   ;;
16527
16528 sunos4*)
16529   version_type=sunos
16530   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16531   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16532   shlibpath_var=LD_LIBRARY_PATH
16533   shlibpath_overrides_runpath=yes
16534   if test "$with_gnu_ld" = yes; then
16535     need_lib_prefix=no
16536   fi
16537   need_version=yes
16538   ;;
16539
16540 sysv4 | sysv4.3*)
16541   version_type=linux
16542   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16543   soname_spec='${libname}${release}${shared_ext}$major'
16544   shlibpath_var=LD_LIBRARY_PATH
16545   case $host_vendor in
16546     sni)
16547       shlibpath_overrides_runpath=no
16548       need_lib_prefix=no
16549       export_dynamic_flag_spec='${wl}-Blargedynsym'
16550       runpath_var=LD_RUN_PATH
16551       ;;
16552     siemens)
16553       need_lib_prefix=no
16554       ;;
16555     motorola)
16556       need_lib_prefix=no
16557       need_version=no
16558       shlibpath_overrides_runpath=no
16559       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16560       ;;
16561   esac
16562   ;;
16563
16564 sysv4*MP*)
16565   if test -d /usr/nec ;then
16566     version_type=linux
16567     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16568     soname_spec='$libname${shared_ext}.$major'
16569     shlibpath_var=LD_LIBRARY_PATH
16570   fi
16571   ;;
16572
16573 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16574   version_type=freebsd-elf
16575   need_lib_prefix=no
16576   need_version=no
16577   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16578   soname_spec='${libname}${release}${shared_ext}$major'
16579   shlibpath_var=LD_LIBRARY_PATH
16580   hardcode_into_libs=yes
16581   if test "$with_gnu_ld" = yes; then
16582     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16583     shlibpath_overrides_runpath=no
16584   else
16585     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16586     shlibpath_overrides_runpath=yes
16587     case $host_os in
16588       sco3.2v5*)
16589         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16590         ;;
16591     esac
16592   fi
16593   sys_lib_dlsearch_path_spec='/usr/lib'
16594   ;;
16595
16596 uts4*)
16597   version_type=linux
16598   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16599   soname_spec='${libname}${release}${shared_ext}$major'
16600   shlibpath_var=LD_LIBRARY_PATH
16601   ;;
16602
16603 *)
16604   dynamic_linker=no
16605   ;;
16606 esac
16607 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16608 echo "${ECHO_T}$dynamic_linker" >&6; }
16609 test "$dynamic_linker" = no && can_build_shared=no
16610
16611 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16612 if test "$GCC" = yes; then
16613   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16614 fi
16615
16616 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16617 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16618 hardcode_action_F77=
16619 if test -n "$hardcode_libdir_flag_spec_F77" || \
16620    test -n "$runpath_var_F77" || \
16621    test "X$hardcode_automatic_F77" = "Xyes" ; then
16622
16623   # We can hardcode non-existant directories.
16624   if test "$hardcode_direct_F77" != no &&
16625      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16626      # have to relink, otherwise we might link with an installed library
16627      # when we should be linking with a yet-to-be-installed one
16628      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16629      test "$hardcode_minus_L_F77" != no; then
16630     # Linking always hardcodes the temporary library directory.
16631     hardcode_action_F77=relink
16632   else
16633     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16634     hardcode_action_F77=immediate
16635   fi
16636 else
16637   # We cannot hardcode anything, or else we can only hardcode existing
16638   # directories.
16639   hardcode_action_F77=unsupported
16640 fi
16641 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16642 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16643
16644 if test "$hardcode_action_F77" = relink; then
16645   # Fast installation is not supported
16646   enable_fast_install=no
16647 elif test "$shlibpath_overrides_runpath" = yes ||
16648      test "$enable_shared" = no; then
16649   # Fast installation is not necessary
16650   enable_fast_install=needless
16651 fi
16652
16653
16654 # The else clause should only fire when bootstrapping the
16655 # libtool distribution, otherwise you forgot to ship ltmain.sh
16656 # with your package, and you will get complaints that there are
16657 # no rules to generate ltmain.sh.
16658 if test -f "$ltmain"; then
16659   # See if we are running on zsh, and set the options which allow our commands through
16660   # without removal of \ escapes.
16661   if test -n "${ZSH_VERSION+set}" ; then
16662     setopt NO_GLOB_SUBST
16663   fi
16664   # Now quote all the things that may contain metacharacters while being
16665   # careful not to overquote the AC_SUBSTed values.  We take copies of the
16666   # variables and quote the copies for generation of the libtool script.
16667   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16668     SED SHELL STRIP \
16669     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16670     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16671     deplibs_check_method reload_flag reload_cmds need_locks \
16672     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16673     lt_cv_sys_global_symbol_to_c_name_address \
16674     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16675     old_postinstall_cmds old_postuninstall_cmds \
16676     compiler_F77 \
16677     CC_F77 \
16678     LD_F77 \
16679     lt_prog_compiler_wl_F77 \
16680     lt_prog_compiler_pic_F77 \
16681     lt_prog_compiler_static_F77 \
16682     lt_prog_compiler_no_builtin_flag_F77 \
16683     export_dynamic_flag_spec_F77 \
16684     thread_safe_flag_spec_F77 \
16685     whole_archive_flag_spec_F77 \
16686     enable_shared_with_static_runtimes_F77 \
16687     old_archive_cmds_F77 \
16688     old_archive_from_new_cmds_F77 \
16689     predep_objects_F77 \
16690     postdep_objects_F77 \
16691     predeps_F77 \
16692     postdeps_F77 \
16693     compiler_lib_search_path_F77 \
16694     archive_cmds_F77 \
16695     archive_expsym_cmds_F77 \
16696     postinstall_cmds_F77 \
16697     postuninstall_cmds_F77 \
16698     old_archive_from_expsyms_cmds_F77 \
16699     allow_undefined_flag_F77 \
16700     no_undefined_flag_F77 \
16701     export_symbols_cmds_F77 \
16702     hardcode_libdir_flag_spec_F77 \
16703     hardcode_libdir_flag_spec_ld_F77 \
16704     hardcode_libdir_separator_F77 \
16705     hardcode_automatic_F77 \
16706     module_cmds_F77 \
16707     module_expsym_cmds_F77 \
16708     lt_cv_prog_compiler_c_o_F77 \
16709     exclude_expsyms_F77 \
16710     include_expsyms_F77; do
16711
16712     case $var in
16713     old_archive_cmds_F77 | \
16714     old_archive_from_new_cmds_F77 | \
16715     archive_cmds_F77 | \
16716     archive_expsym_cmds_F77 | \
16717     module_cmds_F77 | \
16718     module_expsym_cmds_F77 | \
16719     old_archive_from_expsyms_cmds_F77 | \
16720     export_symbols_cmds_F77 | \
16721     extract_expsyms_cmds | reload_cmds | finish_cmds | \
16722     postinstall_cmds | postuninstall_cmds | \
16723     old_postinstall_cmds | old_postuninstall_cmds | \
16724     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16725       # Double-quote double-evaled strings.
16726       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16727       ;;
16728     *)
16729       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16730       ;;
16731     esac
16732   done
16733
16734   case $lt_echo in
16735   *'\$0 --fallback-echo"')
16736     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16737     ;;
16738   esac
16739
16740 cfgfile="$ofile"
16741
16742   cat <<__EOF__ >> "$cfgfile"
16743 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16744
16745 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16746
16747 # Shell to use when invoking shell scripts.
16748 SHELL=$lt_SHELL
16749
16750 # Whether or not to build shared libraries.
16751 build_libtool_libs=$enable_shared
16752
16753 # Whether or not to build static libraries.
16754 build_old_libs=$enable_static
16755
16756 # Whether or not to add -lc for building shared libraries.
16757 build_libtool_need_lc=$archive_cmds_need_lc_F77
16758
16759 # Whether or not to disallow shared libs when runtime libs are static
16760 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16761
16762 # Whether or not to optimize for fast installation.
16763 fast_install=$enable_fast_install
16764
16765 # The host system.
16766 host_alias=$host_alias
16767 host=$host
16768 host_os=$host_os
16769
16770 # The build system.
16771 build_alias=$build_alias
16772 build=$build
16773 build_os=$build_os
16774
16775 # An echo program that does not interpret backslashes.
16776 echo=$lt_echo
16777
16778 # The archiver.
16779 AR=$lt_AR
16780 AR_FLAGS=$lt_AR_FLAGS
16781
16782 # A C compiler.
16783 LTCC=$lt_LTCC
16784
16785 # LTCC compiler flags.
16786 LTCFLAGS=$lt_LTCFLAGS
16787
16788 # A language-specific compiler.
16789 CC=$lt_compiler_F77
16790
16791 # Is the compiler the GNU C compiler?
16792 with_gcc=$GCC_F77
16793
16794 # An ERE matcher.
16795 EGREP=$lt_EGREP
16796
16797 # The linker used to build libraries.
16798 LD=$lt_LD_F77
16799
16800 # Whether we need hard or soft links.
16801 LN_S=$lt_LN_S
16802
16803 # A BSD-compatible nm program.
16804 NM=$lt_NM
16805
16806 # A symbol stripping program
16807 STRIP=$lt_STRIP
16808
16809 # Used to examine libraries when file_magic_cmd begins "file"
16810 MAGIC_CMD=$MAGIC_CMD
16811
16812 # Used on cygwin: DLL creation program.
16813 DLLTOOL="$DLLTOOL"
16814
16815 # Used on cygwin: object dumper.
16816 OBJDUMP="$OBJDUMP"
16817
16818 # Used on cygwin: assembler.
16819 AS="$AS"
16820
16821 # The name of the directory that contains temporary libtool files.
16822 objdir=$objdir
16823
16824 # How to create reloadable object files.
16825 reload_flag=$lt_reload_flag
16826 reload_cmds=$lt_reload_cmds
16827
16828 # How to pass a linker flag through the compiler.
16829 wl=$lt_lt_prog_compiler_wl_F77
16830
16831 # Object file suffix (normally "o").
16832 objext="$ac_objext"
16833
16834 # Old archive suffix (normally "a").
16835 libext="$libext"
16836
16837 # Shared library suffix (normally ".so").
16838 shrext_cmds='$shrext_cmds'
16839
16840 # Executable file suffix (normally "").
16841 exeext="$exeext"
16842
16843 # Additional compiler flags for building library objects.
16844 pic_flag=$lt_lt_prog_compiler_pic_F77
16845 pic_mode=$pic_mode
16846
16847 # What is the maximum length of a command?
16848 max_cmd_len=$lt_cv_sys_max_cmd_len
16849
16850 # Does compiler simultaneously support -c and -o options?
16851 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16852
16853 # Must we lock files when doing compilation?
16854 need_locks=$lt_need_locks
16855
16856 # Do we need the lib prefix for modules?
16857 need_lib_prefix=$need_lib_prefix
16858
16859 # Do we need a version for libraries?
16860 need_version=$need_version
16861
16862 # Whether dlopen is supported.
16863 dlopen_support=$enable_dlopen
16864
16865 # Whether dlopen of programs is supported.
16866 dlopen_self=$enable_dlopen_self
16867
16868 # Whether dlopen of statically linked programs is supported.
16869 dlopen_self_static=$enable_dlopen_self_static
16870
16871 # Compiler flag to prevent dynamic linking.
16872 link_static_flag=$lt_lt_prog_compiler_static_F77
16873
16874 # Compiler flag to turn off builtin functions.
16875 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16876
16877 # Compiler flag to allow reflexive dlopens.
16878 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16879
16880 # Compiler flag to generate shared objects directly from archives.
16881 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16882
16883 # Compiler flag to generate thread-safe objects.
16884 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16885
16886 # Library versioning type.
16887 version_type=$version_type
16888
16889 # Format of library name prefix.
16890 libname_spec=$lt_libname_spec
16891
16892 # List of archive names.  First name is the real one, the rest are links.
16893 # The last name is the one that the linker finds with -lNAME.
16894 library_names_spec=$lt_library_names_spec
16895
16896 # The coded name of the library, if different from the real name.
16897 soname_spec=$lt_soname_spec
16898
16899 # Commands used to build and install an old-style archive.
16900 RANLIB=$lt_RANLIB
16901 old_archive_cmds=$lt_old_archive_cmds_F77
16902 old_postinstall_cmds=$lt_old_postinstall_cmds
16903 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16904
16905 # Create an old-style archive from a shared archive.
16906 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16907
16908 # Create a temporary old-style archive to link instead of a shared archive.
16909 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16910
16911 # Commands used to build and install a shared archive.
16912 archive_cmds=$lt_archive_cmds_F77
16913 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16914 postinstall_cmds=$lt_postinstall_cmds
16915 postuninstall_cmds=$lt_postuninstall_cmds
16916
16917 # Commands used to build a loadable module (assumed same as above if empty)
16918 module_cmds=$lt_module_cmds_F77
16919 module_expsym_cmds=$lt_module_expsym_cmds_F77
16920
16921 # Commands to strip libraries.
16922 old_striplib=$lt_old_striplib
16923 striplib=$lt_striplib
16924
16925 # Dependencies to place before the objects being linked to create a
16926 # shared library.
16927 predep_objects=$lt_predep_objects_F77
16928
16929 # Dependencies to place after the objects being linked to create a
16930 # shared library.
16931 postdep_objects=$lt_postdep_objects_F77
16932
16933 # Dependencies to place before the objects being linked to create a
16934 # shared library.
16935 predeps=$lt_predeps_F77
16936
16937 # Dependencies to place after the objects being linked to create a
16938 # shared library.
16939 postdeps=$lt_postdeps_F77
16940
16941 # The library search path used internally by the compiler when linking
16942 # a shared library.
16943 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16944
16945 # Method to check whether dependent libraries are shared objects.
16946 deplibs_check_method=$lt_deplibs_check_method
16947
16948 # Command to use when deplibs_check_method == file_magic.
16949 file_magic_cmd=$lt_file_magic_cmd
16950
16951 # Flag that allows shared libraries with undefined symbols to be built.
16952 allow_undefined_flag=$lt_allow_undefined_flag_F77
16953
16954 # Flag that forces no undefined symbols.
16955 no_undefined_flag=$lt_no_undefined_flag_F77
16956
16957 # Commands used to finish a libtool library installation in a directory.
16958 finish_cmds=$lt_finish_cmds
16959
16960 # Same as above, but a single script fragment to be evaled but not shown.
16961 finish_eval=$lt_finish_eval
16962
16963 # Take the output of nm and produce a listing of raw symbols and C names.
16964 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16965
16966 # Transform the output of nm in a proper C declaration
16967 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16968
16969 # Transform the output of nm in a C name address pair
16970 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16971
16972 # This is the shared library runtime path variable.
16973 runpath_var=$runpath_var
16974
16975 # This is the shared library path variable.
16976 shlibpath_var=$shlibpath_var
16977
16978 # Is shlibpath searched before the hard-coded library search path?
16979 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16980
16981 # How to hardcode a shared library path into an executable.
16982 hardcode_action=$hardcode_action_F77
16983
16984 # Whether we should hardcode library paths into libraries.
16985 hardcode_into_libs=$hardcode_into_libs
16986
16987 # Flag to hardcode \$libdir into a binary during linking.
16988 # This must work even if \$libdir does not exist.
16989 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16990
16991 # If ld is used when linking, flag to hardcode \$libdir into
16992 # a binary during linking. This must work even if \$libdir does
16993 # not exist.
16994 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16995
16996 # Whether we need a single -rpath flag with a separated argument.
16997 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16998
16999 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17000 # resulting binary.
17001 hardcode_direct=$hardcode_direct_F77
17002
17003 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17004 # resulting binary.
17005 hardcode_minus_L=$hardcode_minus_L_F77
17006
17007 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17008 # the resulting binary.
17009 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17010
17011 # Set to yes if building a shared library automatically hardcodes DIR into the library
17012 # and all subsequent libraries and executables linked against it.
17013 hardcode_automatic=$hardcode_automatic_F77
17014
17015 # Variables whose values should be saved in libtool wrapper scripts and
17016 # restored at relink time.
17017 variables_saved_for_relink="$variables_saved_for_relink"
17018
17019 # Whether libtool must link a program against all its dependency libraries.
17020 link_all_deplibs=$link_all_deplibs_F77
17021
17022 # Compile-time system search path for libraries
17023 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17024
17025 # Run-time system search path for libraries
17026 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17027
17028 # Fix the shell variable \$srcfile for the compiler.
17029 fix_srcfile_path="$fix_srcfile_path_F77"
17030
17031 # Set to yes if exported symbols are required.
17032 always_export_symbols=$always_export_symbols_F77
17033
17034 # The commands to list exported symbols.
17035 export_symbols_cmds=$lt_export_symbols_cmds_F77
17036
17037 # The commands to extract the exported symbol list from a shared archive.
17038 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17039
17040 # Symbols that should not be listed in the preloaded symbols.
17041 exclude_expsyms=$lt_exclude_expsyms_F77
17042
17043 # Symbols that must always be exported.
17044 include_expsyms=$lt_include_expsyms_F77
17045
17046 # ### END LIBTOOL TAG CONFIG: $tagname
17047
17048 __EOF__
17049
17050
17051 else
17052   # If there is no Makefile yet, we rely on a make rule to execute
17053   # `config.status --recheck' to rerun these tests and create the
17054   # libtool script then.
17055   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17056   if test -f "$ltmain_in"; then
17057     test -f Makefile && make "$ltmain"
17058   fi
17059 fi
17060
17061
17062 ac_ext=c
17063 ac_cpp='$CPP $CPPFLAGS'
17064 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17065 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17066 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17067
17068 CC="$lt_save_CC"
17069
17070         else
17071           tagname=""
17072         fi
17073         ;;
17074
17075       GCJ)
17076         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17077
17078
17079 # Source file extension for Java test sources.
17080 ac_ext=java
17081
17082 # Object file extension for compiled Java test sources.
17083 objext=o
17084 objext_GCJ=$objext
17085
17086 # Code to be used in simple compile tests
17087 lt_simple_compile_test_code="class foo {}\n"
17088
17089 # Code to be used in simple link tests
17090 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
17091
17092 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17093
17094 # If no C compiler was specified, use CC.
17095 LTCC=${LTCC-"$CC"}
17096
17097 # If no C compiler flags were specified, use CFLAGS.
17098 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17099
17100 # Allow CC to be a program name with arguments.
17101 compiler=$CC
17102
17103
17104 # save warnings/boilerplate of simple test code
17105 ac_outfile=conftest.$ac_objext
17106 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17107 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17108 _lt_compiler_boilerplate=`cat conftest.err`
17109 $rm conftest*
17110
17111 ac_outfile=conftest.$ac_objext
17112 printf "$lt_simple_link_test_code" >conftest.$ac_ext
17113 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17114 _lt_linker_boilerplate=`cat conftest.err`
17115 $rm conftest*
17116
17117
17118 # Allow CC to be a program name with arguments.
17119 lt_save_CC="$CC"
17120 CC=${GCJ-"gcj"}
17121 compiler=$CC
17122 compiler_GCJ=$CC
17123 for cc_temp in $compiler""; do
17124   case $cc_temp in
17125     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17126     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17127     \-*) ;;
17128     *) break;;
17129   esac
17130 done
17131 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17132
17133
17134 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17135 archive_cmds_need_lc_GCJ=no
17136
17137 old_archive_cmds_GCJ=$old_archive_cmds
17138
17139
17140 lt_prog_compiler_no_builtin_flag_GCJ=
17141
17142 if test "$GCC" = yes; then
17143   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17144
17145
17146 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17147 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
17148 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17149   echo $ECHO_N "(cached) $ECHO_C" >&6
17150 else
17151   lt_cv_prog_compiler_rtti_exceptions=no
17152   ac_outfile=conftest.$ac_objext
17153    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17154    lt_compiler_flag="-fno-rtti -fno-exceptions"
17155    # Insert the option either (1) after the last *FLAGS variable, or
17156    # (2) before a word containing "conftest.", or (3) at the end.
17157    # Note that $ac_compile itself does not contain backslashes and begins
17158    # with a dollar sign (not a hyphen), so the echo should work correctly.
17159    # The option is referenced via a variable to avoid confusing sed.
17160    lt_compile=`echo "$ac_compile" | $SED \
17161    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17162    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17163    -e 's:$: $lt_compiler_flag:'`
17164    (eval echo "\"\$as_me:17164: $lt_compile\"" >&5)
17165    (eval "$lt_compile" 2>conftest.err)
17166    ac_status=$?
17167    cat conftest.err >&5
17168    echo "$as_me:17168: \$? = $ac_status" >&5
17169    if (exit $ac_status) && test -s "$ac_outfile"; then
17170      # The compiler can only warn and ignore the option if not recognized
17171      # So say no if there are warnings other than the usual output.
17172      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17173      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17174      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17175        lt_cv_prog_compiler_rtti_exceptions=yes
17176      fi
17177    fi
17178    $rm conftest*
17179
17180 fi
17181 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17182 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17183
17184 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17185     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17186 else
17187     :
17188 fi
17189
17190 fi
17191
17192 lt_prog_compiler_wl_GCJ=
17193 lt_prog_compiler_pic_GCJ=
17194 lt_prog_compiler_static_GCJ=
17195
17196 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17197 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
17198
17199   if test "$GCC" = yes; then
17200     lt_prog_compiler_wl_GCJ='-Wl,'
17201     lt_prog_compiler_static_GCJ='-static'
17202
17203     case $host_os in
17204       aix*)
17205       # All AIX code is PIC.
17206       if test "$host_cpu" = ia64; then
17207         # AIX 5 now supports IA64 processor
17208         lt_prog_compiler_static_GCJ='-Bstatic'
17209       fi
17210       ;;
17211
17212     amigaos*)
17213       # FIXME: we need at least 68020 code to build shared libraries, but
17214       # adding the `-m68020' flag to GCC prevents building anything better,
17215       # like `-m68040'.
17216       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17217       ;;
17218
17219     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17220       # PIC is the default for these OSes.
17221       ;;
17222
17223     mingw* | pw32* | os2*)
17224       # This hack is so that the source file can tell whether it is being
17225       # built for inclusion in a dll (and should export symbols for example).
17226       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17227       ;;
17228
17229     darwin* | rhapsody*)
17230       # PIC is the default on this platform
17231       # Common symbols not allowed in MH_DYLIB files
17232       lt_prog_compiler_pic_GCJ='-fno-common'
17233       ;;
17234
17235     interix3*)
17236       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17237       # Instead, we relocate shared libraries at runtime.
17238       ;;
17239
17240     msdosdjgpp*)
17241       # Just because we use GCC doesn't mean we suddenly get shared libraries
17242       # on systems that don't support them.
17243       lt_prog_compiler_can_build_shared_GCJ=no
17244       enable_shared=no
17245       ;;
17246
17247     sysv4*MP*)
17248       if test -d /usr/nec; then
17249         lt_prog_compiler_pic_GCJ=-Kconform_pic
17250       fi
17251       ;;
17252
17253     hpux*)
17254       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17255       # not for PA HP-UX.
17256       case $host_cpu in
17257       hppa*64*|ia64*)
17258         # +Z the default
17259         ;;
17260       *)
17261         lt_prog_compiler_pic_GCJ='-fPIC'
17262         ;;
17263       esac
17264       ;;
17265
17266     *)
17267       lt_prog_compiler_pic_GCJ='-fPIC'
17268       ;;
17269     esac
17270   else
17271     # PORTME Check for flag to pass linker flags through the system compiler.
17272     case $host_os in
17273     aix*)
17274       lt_prog_compiler_wl_GCJ='-Wl,'
17275       if test "$host_cpu" = ia64; then
17276         # AIX 5 now supports IA64 processor
17277         lt_prog_compiler_static_GCJ='-Bstatic'
17278       else
17279         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17280       fi
17281       ;;
17282       darwin*)
17283         # PIC is the default on this platform
17284         # Common symbols not allowed in MH_DYLIB files
17285        case $cc_basename in
17286          xlc*)
17287          lt_prog_compiler_pic_GCJ='-qnocommon'
17288          lt_prog_compiler_wl_GCJ='-Wl,'
17289          ;;
17290        esac
17291        ;;
17292
17293     mingw* | pw32* | os2*)
17294       # This hack is so that the source file can tell whether it is being
17295       # built for inclusion in a dll (and should export symbols for example).
17296       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17297       ;;
17298
17299     hpux9* | hpux10* | hpux11*)
17300       lt_prog_compiler_wl_GCJ='-Wl,'
17301       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17302       # not for PA HP-UX.
17303       case $host_cpu in
17304       hppa*64*|ia64*)
17305         # +Z the default
17306         ;;
17307       *)
17308         lt_prog_compiler_pic_GCJ='+Z'
17309         ;;
17310       esac
17311       # Is there a better lt_prog_compiler_static that works with the bundled CC?
17312       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17313       ;;
17314
17315     irix5* | irix6* | nonstopux*)
17316       lt_prog_compiler_wl_GCJ='-Wl,'
17317       # PIC (with -KPIC) is the default.
17318       lt_prog_compiler_static_GCJ='-non_shared'
17319       ;;
17320
17321     newsos6)
17322       lt_prog_compiler_pic_GCJ='-KPIC'
17323       lt_prog_compiler_static_GCJ='-Bstatic'
17324       ;;
17325
17326     linux*)
17327       case $cc_basename in
17328       icc* | ecc*)
17329         lt_prog_compiler_wl_GCJ='-Wl,'
17330         lt_prog_compiler_pic_GCJ='-KPIC'
17331         lt_prog_compiler_static_GCJ='-static'
17332         ;;
17333       pgcc* | pgf77* | pgf90* | pgf95*)
17334         # Portland Group compilers (*not* the Pentium gcc compiler,
17335         # which looks to be a dead project)
17336         lt_prog_compiler_wl_GCJ='-Wl,'
17337         lt_prog_compiler_pic_GCJ='-fpic'
17338         lt_prog_compiler_static_GCJ='-Bstatic'
17339         ;;
17340       ccc*)
17341         lt_prog_compiler_wl_GCJ='-Wl,'
17342         # All Alpha code is PIC.
17343         lt_prog_compiler_static_GCJ='-non_shared'
17344         ;;
17345       esac
17346       ;;
17347
17348     osf3* | osf4* | osf5*)
17349       lt_prog_compiler_wl_GCJ='-Wl,'
17350       # All OSF/1 code is PIC.
17351       lt_prog_compiler_static_GCJ='-non_shared'
17352       ;;
17353
17354     solaris*)
17355       lt_prog_compiler_pic_GCJ='-KPIC'
17356       lt_prog_compiler_static_GCJ='-Bstatic'
17357       case $cc_basename in
17358       f77* | f90* | f95*)
17359         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17360       *)
17361         lt_prog_compiler_wl_GCJ='-Wl,';;
17362       esac
17363       ;;
17364
17365     sunos4*)
17366       lt_prog_compiler_wl_GCJ='-Qoption ld '
17367       lt_prog_compiler_pic_GCJ='-PIC'
17368       lt_prog_compiler_static_GCJ='-Bstatic'
17369       ;;
17370
17371     sysv4 | sysv4.2uw2* | sysv4.3*)
17372       lt_prog_compiler_wl_GCJ='-Wl,'
17373       lt_prog_compiler_pic_GCJ='-KPIC'
17374       lt_prog_compiler_static_GCJ='-Bstatic'
17375       ;;
17376
17377     sysv4*MP*)
17378       if test -d /usr/nec ;then
17379         lt_prog_compiler_pic_GCJ='-Kconform_pic'
17380         lt_prog_compiler_static_GCJ='-Bstatic'
17381       fi
17382       ;;
17383
17384     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17385       lt_prog_compiler_wl_GCJ='-Wl,'
17386       lt_prog_compiler_pic_GCJ='-KPIC'
17387       lt_prog_compiler_static_GCJ='-Bstatic'
17388       ;;
17389
17390     unicos*)
17391       lt_prog_compiler_wl_GCJ='-Wl,'
17392       lt_prog_compiler_can_build_shared_GCJ=no
17393       ;;
17394
17395     uts4*)
17396       lt_prog_compiler_pic_GCJ='-pic'
17397       lt_prog_compiler_static_GCJ='-Bstatic'
17398       ;;
17399
17400     *)
17401       lt_prog_compiler_can_build_shared_GCJ=no
17402       ;;
17403     esac
17404   fi
17405
17406 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17407 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17408
17409 #
17410 # Check to make sure the PIC flag actually works.
17411 #
17412 if test -n "$lt_prog_compiler_pic_GCJ"; then
17413
17414 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17415 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17416 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17417   echo $ECHO_N "(cached) $ECHO_C" >&6
17418 else
17419   lt_prog_compiler_pic_works_GCJ=no
17420   ac_outfile=conftest.$ac_objext
17421    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17422    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17423    # Insert the option either (1) after the last *FLAGS variable, or
17424    # (2) before a word containing "conftest.", or (3) at the end.
17425    # Note that $ac_compile itself does not contain backslashes and begins
17426    # with a dollar sign (not a hyphen), so the echo should work correctly.
17427    # The option is referenced via a variable to avoid confusing sed.
17428    lt_compile=`echo "$ac_compile" | $SED \
17429    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17430    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17431    -e 's:$: $lt_compiler_flag:'`
17432    (eval echo "\"\$as_me:17432: $lt_compile\"" >&5)
17433    (eval "$lt_compile" 2>conftest.err)
17434    ac_status=$?
17435    cat conftest.err >&5
17436    echo "$as_me:17436: \$? = $ac_status" >&5
17437    if (exit $ac_status) && test -s "$ac_outfile"; then
17438      # The compiler can only warn and ignore the option if not recognized
17439      # So say no if there are warnings other than the usual output.
17440      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17441      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17442      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17443        lt_prog_compiler_pic_works_GCJ=yes
17444      fi
17445    fi
17446    $rm conftest*
17447
17448 fi
17449 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17450 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
17451
17452 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17453     case $lt_prog_compiler_pic_GCJ in
17454      "" | " "*) ;;
17455      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17456      esac
17457 else
17458     lt_prog_compiler_pic_GCJ=
17459      lt_prog_compiler_can_build_shared_GCJ=no
17460 fi
17461
17462 fi
17463 case $host_os in
17464   # For platforms which do not support PIC, -DPIC is meaningless:
17465   *djgpp*)
17466     lt_prog_compiler_pic_GCJ=
17467     ;;
17468   *)
17469     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17470     ;;
17471 esac
17472
17473 #
17474 # Check to make sure the static flag actually works.
17475 #
17476 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17477 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17478 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17479 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
17480   echo $ECHO_N "(cached) $ECHO_C" >&6
17481 else
17482   lt_prog_compiler_static_works_GCJ=no
17483    save_LDFLAGS="$LDFLAGS"
17484    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17485    printf "$lt_simple_link_test_code" > conftest.$ac_ext
17486    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17487      # The linker can only warn and ignore the option if not recognized
17488      # So say no if there are warnings
17489      if test -s conftest.err; then
17490        # Append any errors to the config.log.
17491        cat conftest.err 1>&5
17492        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17493        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17494        if diff conftest.exp conftest.er2 >/dev/null; then
17495          lt_prog_compiler_static_works_GCJ=yes
17496        fi
17497      else
17498        lt_prog_compiler_static_works_GCJ=yes
17499      fi
17500    fi
17501    $rm conftest*
17502    LDFLAGS="$save_LDFLAGS"
17503
17504 fi
17505 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17506 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
17507
17508 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
17509     :
17510 else
17511     lt_prog_compiler_static_GCJ=
17512 fi
17513
17514
17515 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17516 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17517 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17518   echo $ECHO_N "(cached) $ECHO_C" >&6
17519 else
17520   lt_cv_prog_compiler_c_o_GCJ=no
17521    $rm -r conftest 2>/dev/null
17522    mkdir conftest
17523    cd conftest
17524    mkdir out
17525    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17526
17527    lt_compiler_flag="-o out/conftest2.$ac_objext"
17528    # Insert the option either (1) after the last *FLAGS variable, or
17529    # (2) before a word containing "conftest.", or (3) at the end.
17530    # Note that $ac_compile itself does not contain backslashes and begins
17531    # with a dollar sign (not a hyphen), so the echo should work correctly.
17532    lt_compile=`echo "$ac_compile" | $SED \
17533    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17534    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17535    -e 's:$: $lt_compiler_flag:'`
17536    (eval echo "\"\$as_me:17536: $lt_compile\"" >&5)
17537    (eval "$lt_compile" 2>out/conftest.err)
17538    ac_status=$?
17539    cat out/conftest.err >&5
17540    echo "$as_me:17540: \$? = $ac_status" >&5
17541    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17542    then
17543      # The compiler can only warn and ignore the option if not recognized
17544      # So say no if there are warnings
17545      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17546      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17547      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17548        lt_cv_prog_compiler_c_o_GCJ=yes
17549      fi
17550    fi
17551    chmod u+w . 2>&5
17552    $rm conftest*
17553    # SGI C++ compiler will create directory out/ii_files/ for
17554    # template instantiation
17555    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17556    $rm out/* && rmdir out
17557    cd ..
17558    rmdir conftest
17559    $rm conftest*
17560
17561 fi
17562 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17563 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17564
17565
17566 hard_links="nottested"
17567 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17568   # do not overwrite the value of need_locks provided by the user
17569   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17570 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17571   hard_links=yes
17572   $rm conftest*
17573   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17574   touch conftest.a
17575   ln conftest.a conftest.b 2>&5 || hard_links=no
17576   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17577   { echo "$as_me:$LINENO: result: $hard_links" >&5
17578 echo "${ECHO_T}$hard_links" >&6; }
17579   if test "$hard_links" = no; then
17580     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17581 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17582     need_locks=warn
17583   fi
17584 else
17585   need_locks=no
17586 fi
17587
17588 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17589 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17590
17591   runpath_var=
17592   allow_undefined_flag_GCJ=
17593   enable_shared_with_static_runtimes_GCJ=no
17594   archive_cmds_GCJ=
17595   archive_expsym_cmds_GCJ=
17596   old_archive_From_new_cmds_GCJ=
17597   old_archive_from_expsyms_cmds_GCJ=
17598   export_dynamic_flag_spec_GCJ=
17599   whole_archive_flag_spec_GCJ=
17600   thread_safe_flag_spec_GCJ=
17601   hardcode_libdir_flag_spec_GCJ=
17602   hardcode_libdir_flag_spec_ld_GCJ=
17603   hardcode_libdir_separator_GCJ=
17604   hardcode_direct_GCJ=no
17605   hardcode_minus_L_GCJ=no
17606   hardcode_shlibpath_var_GCJ=unsupported
17607   link_all_deplibs_GCJ=unknown
17608   hardcode_automatic_GCJ=no
17609   module_cmds_GCJ=
17610   module_expsym_cmds_GCJ=
17611   always_export_symbols_GCJ=no
17612   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17613   # include_expsyms should be a list of space-separated symbols to be *always*
17614   # included in the symbol list
17615   include_expsyms_GCJ=
17616   # exclude_expsyms can be an extended regexp of symbols to exclude
17617   # it will be wrapped by ` (' and `)$', so one must not match beginning or
17618   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17619   # as well as any symbol that contains `d'.
17620   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17621   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17622   # platforms (ab)use it in PIC code, but their linkers get confused if
17623   # the symbol is explicitly referenced.  Since portable code cannot
17624   # rely on this symbol name, it's probably fine to never include it in
17625   # preloaded symbol tables.
17626   extract_expsyms_cmds=
17627   # Just being paranoid about ensuring that cc_basename is set.
17628   for cc_temp in $compiler""; do
17629   case $cc_temp in
17630     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17631     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17632     \-*) ;;
17633     *) break;;
17634   esac
17635 done
17636 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17637
17638   case $host_os in
17639   cygwin* | mingw* | pw32*)
17640     # FIXME: the MSVC++ port hasn't been tested in a loooong time
17641     # When not using gcc, we currently assume that we are using
17642     # Microsoft Visual C++.
17643     if test "$GCC" != yes; then
17644       with_gnu_ld=no
17645     fi
17646     ;;
17647   interix*)
17648     # we just hope/assume this is gcc and not c89 (= MSVC++)
17649     with_gnu_ld=yes
17650     ;;
17651   openbsd*)
17652     with_gnu_ld=no
17653     ;;
17654   esac
17655
17656   ld_shlibs_GCJ=yes
17657   if test "$with_gnu_ld" = yes; then
17658     # If archive_cmds runs LD, not CC, wlarc should be empty
17659     wlarc='${wl}'
17660
17661     # Set some defaults for GNU ld with shared library support. These
17662     # are reset later if shared libraries are not supported. Putting them
17663     # here allows them to be overridden if necessary.
17664     runpath_var=LD_RUN_PATH
17665     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17666     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17667     # ancient GNU ld didn't support --whole-archive et. al.
17668     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17669         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17670       else
17671         whole_archive_flag_spec_GCJ=
17672     fi
17673     supports_anon_versioning=no
17674     case `$LD -v 2>/dev/null` in
17675       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17676       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17677       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17678       *\ 2.11.*) ;; # other 2.11 versions
17679       *) supports_anon_versioning=yes ;;
17680     esac
17681
17682     # See if GNU ld supports shared libraries.
17683     case $host_os in
17684     aix3* | aix4* | aix5*)
17685       # On AIX/PPC, the GNU linker is very broken
17686       if test "$host_cpu" != ia64; then
17687         ld_shlibs_GCJ=no
17688         cat <<EOF 1>&2
17689
17690 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17691 *** to be unable to reliably create shared libraries on AIX.
17692 *** Therefore, libtool is disabling shared libraries support.  If you
17693 *** really care for shared libraries, you may want to modify your PATH
17694 *** so that a non-GNU linker is found, and then restart.
17695
17696 EOF
17697       fi
17698       ;;
17699
17700     amigaos*)
17701       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)'
17702       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17703       hardcode_minus_L_GCJ=yes
17704
17705       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17706       # that the semantics of dynamic libraries on AmigaOS, at least up
17707       # to version 4, is to share data among multiple programs linked
17708       # with the same dynamic library.  Since this doesn't match the
17709       # behavior of shared libraries on other platforms, we can't use
17710       # them.
17711       ld_shlibs_GCJ=no
17712       ;;
17713
17714     beos*)
17715       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17716         allow_undefined_flag_GCJ=unsupported
17717         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17718         # support --undefined.  This deserves some investigation.  FIXME
17719         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17720       else
17721         ld_shlibs_GCJ=no
17722       fi
17723       ;;
17724
17725     cygwin* | mingw* | pw32*)
17726       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17727       # as there is no search path for DLLs.
17728       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17729       allow_undefined_flag_GCJ=unsupported
17730       always_export_symbols_GCJ=no
17731       enable_shared_with_static_runtimes_GCJ=yes
17732       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17733
17734       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17735         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17736         # If the export-symbols file already is a .def file (1st line
17737         # is EXPORTS), use it as is; otherwise, prepend...
17738         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17739           cp $export_symbols $output_objdir/$soname.def;
17740         else
17741           echo EXPORTS > $output_objdir/$soname.def;
17742           cat $export_symbols >> $output_objdir/$soname.def;
17743         fi~
17744         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17745       else
17746         ld_shlibs_GCJ=no
17747       fi
17748       ;;
17749
17750     interix3*)
17751       hardcode_direct_GCJ=no
17752       hardcode_shlibpath_var_GCJ=no
17753       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17754       export_dynamic_flag_spec_GCJ='${wl}-E'
17755       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17756       # Instead, shared libraries are loaded at an image base (0x10000000 by
17757       # default) and relocated if they conflict, which is a slow very memory
17758       # consuming and fragmenting process.  To avoid this, we pick a random,
17759       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17760       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17761       archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17762       archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17763       ;;
17764
17765     linux*)
17766       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17767         tmp_addflag=
17768         case $cc_basename,$host_cpu in
17769         pgcc*)                          # Portland Group C compiler
17770           whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17771           tmp_addflag=' $pic_flag'
17772           ;;
17773         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
17774           whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17775           tmp_addflag=' $pic_flag -Mnomain' ;;
17776         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
17777           tmp_addflag=' -i_dynamic' ;;
17778         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
17779           tmp_addflag=' -i_dynamic -nofor_main' ;;
17780         ifc* | ifort*)                  # Intel Fortran compiler
17781           tmp_addflag=' -nofor_main' ;;
17782         esac
17783         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17784
17785         if test $supports_anon_versioning = yes; then
17786           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17787   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17788   $echo "local: *; };" >> $output_objdir/$libname.ver~
17789           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17790         fi
17791       else
17792         ld_shlibs_GCJ=no
17793       fi
17794       ;;
17795
17796     netbsd*)
17797       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17798         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17799         wlarc=
17800       else
17801         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17802         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17803       fi
17804       ;;
17805
17806     solaris*)
17807       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17808         ld_shlibs_GCJ=no
17809         cat <<EOF 1>&2
17810
17811 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17812 *** create shared libraries on Solaris systems.  Therefore, libtool
17813 *** is disabling shared libraries support.  We urge you to upgrade GNU
17814 *** binutils to release 2.9.1 or newer.  Another option is to modify
17815 *** your PATH or compiler configuration so that the native linker is
17816 *** used, and then restart.
17817
17818 EOF
17819       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17820         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17821         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17822       else
17823         ld_shlibs_GCJ=no
17824       fi
17825       ;;
17826
17827     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17828       case `$LD -v 2>&1` in
17829         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17830         ld_shlibs_GCJ=no
17831         cat <<_LT_EOF 1>&2
17832
17833 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17834 *** reliably create shared libraries on SCO systems.  Therefore, libtool
17835 *** is disabling shared libraries support.  We urge you to upgrade GNU
17836 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17837 *** your PATH or compiler configuration so that the native linker is
17838 *** used, and then restart.
17839
17840 _LT_EOF
17841         ;;
17842         *)
17843           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17844             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17845             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17846             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17847           else
17848             ld_shlibs_GCJ=no
17849           fi
17850         ;;
17851       esac
17852       ;;
17853
17854     sunos4*)
17855       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17856       wlarc=
17857       hardcode_direct_GCJ=yes
17858       hardcode_shlibpath_var_GCJ=no
17859       ;;
17860
17861     *)
17862       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17863         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17864         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17865       else
17866         ld_shlibs_GCJ=no
17867       fi
17868       ;;
17869     esac
17870
17871     if test "$ld_shlibs_GCJ" = no; then
17872       runpath_var=
17873       hardcode_libdir_flag_spec_GCJ=
17874       export_dynamic_flag_spec_GCJ=
17875       whole_archive_flag_spec_GCJ=
17876     fi
17877   else
17878     # PORTME fill in a description of your system's linker (not GNU ld)
17879     case $host_os in
17880     aix3*)
17881       allow_undefined_flag_GCJ=unsupported
17882       always_export_symbols_GCJ=yes
17883       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'
17884       # Note: this linker hardcodes the directories in LIBPATH if there
17885       # are no directories specified by -L.
17886       hardcode_minus_L_GCJ=yes
17887       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17888         # Neither direct hardcoding nor static linking is supported with a
17889         # broken collect2.
17890         hardcode_direct_GCJ=unsupported
17891       fi
17892       ;;
17893
17894     aix4* | aix5*)
17895       if test "$host_cpu" = ia64; then
17896         # On IA64, the linker does run time linking by default, so we don't
17897         # have to do anything special.
17898         aix_use_runtimelinking=no
17899         exp_sym_flag='-Bexport'
17900         no_entry_flag=""
17901       else
17902         # If we're using GNU nm, then we don't want the "-C" option.
17903         # -C means demangle to AIX nm, but means don't demangle with GNU nm
17904         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17905           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'
17906         else
17907           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'
17908         fi
17909         aix_use_runtimelinking=no
17910
17911         # Test if we are trying to use run time linking or normal
17912         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17913         # need to do runtime linking.
17914         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17915           for ld_flag in $LDFLAGS; do
17916           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17917             aix_use_runtimelinking=yes
17918             break
17919           fi
17920           done
17921           ;;
17922         esac
17923
17924         exp_sym_flag='-bexport'
17925         no_entry_flag='-bnoentry'
17926       fi
17927
17928       # When large executables or shared objects are built, AIX ld can
17929       # have problems creating the table of contents.  If linking a library
17930       # or program results in "error TOC overflow" add -mminimal-toc to
17931       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17932       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17933
17934       archive_cmds_GCJ=''
17935       hardcode_direct_GCJ=yes
17936       hardcode_libdir_separator_GCJ=':'
17937       link_all_deplibs_GCJ=yes
17938
17939       if test "$GCC" = yes; then
17940         case $host_os in aix4.[012]|aix4.[012].*)
17941         # We only want to do this on AIX 4.2 and lower, the check
17942         # below for broken collect2 doesn't work under 4.3+
17943           collect2name=`${CC} -print-prog-name=collect2`
17944           if test -f "$collect2name" && \
17945            strings "$collect2name" | grep resolve_lib_name >/dev/null
17946           then
17947           # We have reworked collect2
17948           hardcode_direct_GCJ=yes
17949           else
17950           # We have old collect2
17951           hardcode_direct_GCJ=unsupported
17952           # It fails to find uninstalled libraries when the uninstalled
17953           # path is not listed in the libpath.  Setting hardcode_minus_L
17954           # to unsupported forces relinking
17955           hardcode_minus_L_GCJ=yes
17956           hardcode_libdir_flag_spec_GCJ='-L$libdir'
17957           hardcode_libdir_separator_GCJ=
17958           fi
17959           ;;
17960         esac
17961         shared_flag='-shared'
17962         if test "$aix_use_runtimelinking" = yes; then
17963           shared_flag="$shared_flag "'${wl}-G'
17964         fi
17965       else
17966         # not using gcc
17967         if test "$host_cpu" = ia64; then
17968         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17969         # chokes on -Wl,-G. The following line is correct:
17970           shared_flag='-G'
17971         else
17972           if test "$aix_use_runtimelinking" = yes; then
17973             shared_flag='${wl}-G'
17974           else
17975             shared_flag='${wl}-bM:SRE'
17976           fi
17977         fi
17978       fi
17979
17980       # It seems that -bexpall does not export symbols beginning with
17981       # underscore (_), so it is better to generate a list of symbols to export.
17982       always_export_symbols_GCJ=yes
17983       if test "$aix_use_runtimelinking" = yes; then
17984         # Warning - without using the other runtime loading flags (-brtl),
17985         # -berok will link without error, but may produce a broken library.
17986         allow_undefined_flag_GCJ='-berok'
17987        # Determine the default libpath from the value encoded in an empty executable.
17988        cat >conftest.$ac_ext <<_ACEOF
17989 /* confdefs.h.  */
17990 _ACEOF
17991 cat confdefs.h >>conftest.$ac_ext
17992 cat >>conftest.$ac_ext <<_ACEOF
17993 /* end confdefs.h.  */
17994
17995 int
17996 main ()
17997 {
17998
17999   ;
18000   return 0;
18001 }
18002 _ACEOF
18003 rm -f conftest.$ac_objext conftest$ac_exeext
18004 if { (ac_try="$ac_link"
18005 case "(($ac_try" in
18006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18007   *) ac_try_echo=$ac_try;;
18008 esac
18009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18010   (eval "$ac_link") 2>conftest.er1
18011   ac_status=$?
18012   grep -v '^ *+' conftest.er1 >conftest.err
18013   rm -f conftest.er1
18014   cat conftest.err >&5
18015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18016   (exit $ac_status); } && {
18017          test -z "$ac_c_werror_flag" ||
18018          test ! -s conftest.err
18019        } && test -s conftest$ac_exeext &&
18020        $as_test_x conftest$ac_exeext; then
18021
18022 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18023 }'`
18024 # Check for a 64-bit object if we didn't find anything.
18025 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; }
18026 }'`; fi
18027 else
18028   echo "$as_me: failed program was:" >&5
18029 sed 's/^/| /' conftest.$ac_ext >&5
18030
18031
18032 fi
18033
18034 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18035       conftest$ac_exeext conftest.$ac_ext
18036 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18037
18038        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18039         archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
18040        else
18041         if test "$host_cpu" = ia64; then
18042           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18043           allow_undefined_flag_GCJ="-z nodefs"
18044           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
18045         else
18046          # Determine the default libpath from the value encoded in an empty executable.
18047          cat >conftest.$ac_ext <<_ACEOF
18048 /* confdefs.h.  */
18049 _ACEOF
18050 cat confdefs.h >>conftest.$ac_ext
18051 cat >>conftest.$ac_ext <<_ACEOF
18052 /* end confdefs.h.  */
18053
18054 int
18055 main ()
18056 {
18057
18058   ;
18059   return 0;
18060 }
18061 _ACEOF
18062 rm -f conftest.$ac_objext conftest$ac_exeext
18063 if { (ac_try="$ac_link"
18064 case "(($ac_try" in
18065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18066   *) ac_try_echo=$ac_try;;
18067 esac
18068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18069   (eval "$ac_link") 2>conftest.er1
18070   ac_status=$?
18071   grep -v '^ *+' conftest.er1 >conftest.err
18072   rm -f conftest.er1
18073   cat conftest.err >&5
18074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18075   (exit $ac_status); } && {
18076          test -z "$ac_c_werror_flag" ||
18077          test ! -s conftest.err
18078        } && test -s conftest$ac_exeext &&
18079        $as_test_x conftest$ac_exeext; then
18080
18081 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18082 }'`
18083 # Check for a 64-bit object if we didn't find anything.
18084 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; }
18085 }'`; fi
18086 else
18087   echo "$as_me: failed program was:" >&5
18088 sed 's/^/| /' conftest.$ac_ext >&5
18089
18090
18091 fi
18092
18093 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18094       conftest$ac_exeext conftest.$ac_ext
18095 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18096
18097          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18098           # Warning - without using the other run time loading flags,
18099           # -berok will link without error, but may produce a broken library.
18100           no_undefined_flag_GCJ=' ${wl}-bernotok'
18101           allow_undefined_flag_GCJ=' ${wl}-berok'
18102           # Exported symbols can be pulled into shared objects from archives
18103           whole_archive_flag_spec_GCJ='$convenience'
18104           archive_cmds_need_lc_GCJ=yes
18105           # This is similar to how AIX traditionally builds its shared libraries.
18106           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
18107         fi
18108       fi
18109       ;;
18110
18111     amigaos*)
18112       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)'
18113       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18114       hardcode_minus_L_GCJ=yes
18115       # see comment about different semantics on the GNU ld section
18116       ld_shlibs_GCJ=no
18117       ;;
18118
18119     bsdi[45]*)
18120       export_dynamic_flag_spec_GCJ=-rdynamic
18121       ;;
18122
18123     cygwin* | mingw* | pw32*)
18124       # When not using gcc, we currently assume that we are using
18125       # Microsoft Visual C++.
18126       # hardcode_libdir_flag_spec is actually meaningless, as there is
18127       # no search path for DLLs.
18128       hardcode_libdir_flag_spec_GCJ=' '
18129       allow_undefined_flag_GCJ=unsupported
18130       # Tell ltmain to make .lib files, not .a files.
18131       libext=lib
18132       # Tell ltmain to make .dll files, not .so files.
18133       shrext_cmds=".dll"
18134       # FIXME: Setting linknames here is a bad hack.
18135       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18136       # The linker will automatically build a .lib file if we build a DLL.
18137       old_archive_From_new_cmds_GCJ='true'
18138       # FIXME: Should let the user specify the lib program.
18139       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
18140       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18141       enable_shared_with_static_runtimes_GCJ=yes
18142       ;;
18143
18144     darwin* | rhapsody*)
18145       case $host_os in
18146         rhapsody* | darwin1.[012])
18147          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18148          ;;
18149        *) # Darwin 1.3 on
18150          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18151            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18152          else
18153            case ${MACOSX_DEPLOYMENT_TARGET} in
18154              10.[012])
18155                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18156                ;;
18157              10.*)
18158                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18159                ;;
18160            esac
18161          fi
18162          ;;
18163       esac
18164       archive_cmds_need_lc_GCJ=no
18165       hardcode_direct_GCJ=no
18166       hardcode_automatic_GCJ=yes
18167       hardcode_shlibpath_var_GCJ=unsupported
18168       whole_archive_flag_spec_GCJ=''
18169       link_all_deplibs_GCJ=yes
18170     if test "$GCC" = yes ; then
18171         output_verbose_link_cmd='echo'
18172         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18173       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18174       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18175       archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18176       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}'
18177     else
18178       case $cc_basename in
18179         xlc*)
18180          output_verbose_link_cmd='echo'
18181          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
18182          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18183           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18184          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18185           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}'
18186           ;;
18187        *)
18188          ld_shlibs_GCJ=no
18189           ;;
18190       esac
18191     fi
18192       ;;
18193
18194     dgux*)
18195       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18196       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18197       hardcode_shlibpath_var_GCJ=no
18198       ;;
18199
18200     freebsd1*)
18201       ld_shlibs_GCJ=no
18202       ;;
18203
18204     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18205     # support.  Future versions do this automatically, but an explicit c++rt0.o
18206     # does not break anything, and helps significantly (at the cost of a little
18207     # extra space).
18208     freebsd2.2*)
18209       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18210       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18211       hardcode_direct_GCJ=yes
18212       hardcode_shlibpath_var_GCJ=no
18213       ;;
18214
18215     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18216     freebsd2*)
18217       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18218       hardcode_direct_GCJ=yes
18219       hardcode_minus_L_GCJ=yes
18220       hardcode_shlibpath_var_GCJ=no
18221       ;;
18222
18223     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18224     freebsd* | kfreebsd*-gnu | dragonfly*)
18225       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18226       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18227       hardcode_direct_GCJ=yes
18228       hardcode_shlibpath_var_GCJ=no
18229       ;;
18230
18231     hpux9*)
18232       if test "$GCC" = yes; then
18233         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'
18234       else
18235         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'
18236       fi
18237       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18238       hardcode_libdir_separator_GCJ=:
18239       hardcode_direct_GCJ=yes
18240
18241       # hardcode_minus_L: Not really in the search PATH,
18242       # but as the default location of the library.
18243       hardcode_minus_L_GCJ=yes
18244       export_dynamic_flag_spec_GCJ='${wl}-E'
18245       ;;
18246
18247     hpux10*)
18248       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18249         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18250       else
18251         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18252       fi
18253       if test "$with_gnu_ld" = no; then
18254         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18255         hardcode_libdir_separator_GCJ=:
18256
18257         hardcode_direct_GCJ=yes
18258         export_dynamic_flag_spec_GCJ='${wl}-E'
18259
18260         # hardcode_minus_L: Not really in the search PATH,
18261         # but as the default location of the library.
18262         hardcode_minus_L_GCJ=yes
18263       fi
18264       ;;
18265
18266     hpux11*)
18267       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18268         case $host_cpu in
18269         hppa*64*)
18270           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18271           ;;
18272         ia64*)
18273           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18274           ;;
18275         *)
18276           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18277           ;;
18278         esac
18279       else
18280         case $host_cpu in
18281         hppa*64*)
18282           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18283           ;;
18284         ia64*)
18285           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18286           ;;
18287         *)
18288           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18289           ;;
18290         esac
18291       fi
18292       if test "$with_gnu_ld" = no; then
18293         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18294         hardcode_libdir_separator_GCJ=:
18295
18296         case $host_cpu in
18297         hppa*64*|ia64*)
18298           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18299           hardcode_direct_GCJ=no
18300           hardcode_shlibpath_var_GCJ=no
18301           ;;
18302         *)
18303           hardcode_direct_GCJ=yes
18304           export_dynamic_flag_spec_GCJ='${wl}-E'
18305
18306           # hardcode_minus_L: Not really in the search PATH,
18307           # but as the default location of the library.
18308           hardcode_minus_L_GCJ=yes
18309           ;;
18310         esac
18311       fi
18312       ;;
18313
18314     irix5* | irix6* | nonstopux*)
18315       if test "$GCC" = yes; then
18316         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'
18317       else
18318         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'
18319         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18320       fi
18321       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18322       hardcode_libdir_separator_GCJ=:
18323       link_all_deplibs_GCJ=yes
18324       ;;
18325
18326     netbsd*)
18327       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18328         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
18329       else
18330         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
18331       fi
18332       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18333       hardcode_direct_GCJ=yes
18334       hardcode_shlibpath_var_GCJ=no
18335       ;;
18336
18337     newsos6)
18338       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18339       hardcode_direct_GCJ=yes
18340       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18341       hardcode_libdir_separator_GCJ=:
18342       hardcode_shlibpath_var_GCJ=no
18343       ;;
18344
18345     openbsd*)
18346       hardcode_direct_GCJ=yes
18347       hardcode_shlibpath_var_GCJ=no
18348       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18349         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18350         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18351         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18352         export_dynamic_flag_spec_GCJ='${wl}-E'
18353       else
18354        case $host_os in
18355          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18356            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18357            hardcode_libdir_flag_spec_GCJ='-R$libdir'
18358            ;;
18359          *)
18360            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18361            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18362            ;;
18363        esac
18364       fi
18365       ;;
18366
18367     os2*)
18368       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18369       hardcode_minus_L_GCJ=yes
18370       allow_undefined_flag_GCJ=unsupported
18371       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'
18372       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18373       ;;
18374
18375     osf3*)
18376       if test "$GCC" = yes; then
18377         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18378         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'
18379       else
18380         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18381         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'
18382       fi
18383       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18384       hardcode_libdir_separator_GCJ=:
18385       ;;
18386
18387     osf4* | osf5*)      # as osf3* with the addition of -msym flag
18388       if test "$GCC" = yes; then
18389         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18390         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'
18391         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18392       else
18393         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18394         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'
18395         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~
18396         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
18397
18398         # Both c and cxx compiler support -rpath directly
18399         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18400       fi
18401       hardcode_libdir_separator_GCJ=:
18402       ;;
18403
18404     solaris*)
18405       no_undefined_flag_GCJ=' -z text'
18406       if test "$GCC" = yes; then
18407         wlarc='${wl}'
18408         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18409         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18410           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18411       else
18412         wlarc=''
18413         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18414         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18415         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18416       fi
18417       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18418       hardcode_shlibpath_var_GCJ=no
18419       case $host_os in
18420       solaris2.[0-5] | solaris2.[0-5].*) ;;
18421       *)
18422         # The compiler driver will combine linker options so we
18423         # cannot just pass the convience library names through
18424         # without $wl, iff we do not link with $LD.
18425         # Luckily, gcc supports the same syntax we need for Sun Studio.
18426         # Supported since Solaris 2.6 (maybe 2.5.1?)
18427         case $wlarc in
18428         '')
18429           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
18430         *)
18431           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
18432         esac ;;
18433       esac
18434       link_all_deplibs_GCJ=yes
18435       ;;
18436
18437     sunos4*)
18438       if test "x$host_vendor" = xsequent; then
18439         # Use $CC to link under sequent, because it throws in some extra .o
18440         # files that make .init and .fini sections work.
18441         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18442       else
18443         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18444       fi
18445       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18446       hardcode_direct_GCJ=yes
18447       hardcode_minus_L_GCJ=yes
18448       hardcode_shlibpath_var_GCJ=no
18449       ;;
18450
18451     sysv4)
18452       case $host_vendor in
18453         sni)
18454           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18455           hardcode_direct_GCJ=yes # is this really true???
18456         ;;
18457         siemens)
18458           ## LD is ld it makes a PLAMLIB
18459           ## CC just makes a GrossModule.
18460           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18461           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18462           hardcode_direct_GCJ=no
18463         ;;
18464         motorola)
18465           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18466           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18467         ;;
18468       esac
18469       runpath_var='LD_RUN_PATH'
18470       hardcode_shlibpath_var_GCJ=no
18471       ;;
18472
18473     sysv4.3*)
18474       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18475       hardcode_shlibpath_var_GCJ=no
18476       export_dynamic_flag_spec_GCJ='-Bexport'
18477       ;;
18478
18479     sysv4*MP*)
18480       if test -d /usr/nec; then
18481         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18482         hardcode_shlibpath_var_GCJ=no
18483         runpath_var=LD_RUN_PATH
18484         hardcode_runpath_var=yes
18485         ld_shlibs_GCJ=yes
18486       fi
18487       ;;
18488
18489     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
18490       no_undefined_flag_GCJ='${wl}-z,text'
18491       archive_cmds_need_lc_GCJ=no
18492       hardcode_shlibpath_var_GCJ=no
18493       runpath_var='LD_RUN_PATH'
18494
18495       if test "$GCC" = yes; then
18496         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18497         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18498       else
18499         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18500         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18501       fi
18502       ;;
18503
18504     sysv5* | sco3.2v5* | sco5v6*)
18505       # Note: We can NOT use -z defs as we might desire, because we do not
18506       # link with -lc, and that would cause any symbols used from libc to
18507       # always be unresolved, which means just about no library would
18508       # ever link correctly.  If we're not using GNU ld we use -z text
18509       # though, which does catch some bad symbols but isn't as heavy-handed
18510       # as -z defs.
18511       no_undefined_flag_GCJ='${wl}-z,text'
18512       allow_undefined_flag_GCJ='${wl}-z,nodefs'
18513       archive_cmds_need_lc_GCJ=no
18514       hardcode_shlibpath_var_GCJ=no
18515       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18516       hardcode_libdir_separator_GCJ=':'
18517       link_all_deplibs_GCJ=yes
18518       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18519       runpath_var='LD_RUN_PATH'
18520
18521       if test "$GCC" = yes; then
18522         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18523         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18524       else
18525         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18526         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18527       fi
18528       ;;
18529
18530     uts4*)
18531       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18532       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18533       hardcode_shlibpath_var_GCJ=no
18534       ;;
18535
18536     *)
18537       ld_shlibs_GCJ=no
18538       ;;
18539     esac
18540   fi
18541
18542 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18543 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18544 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18545
18546 #
18547 # Do we need to explicitly link libc?
18548 #
18549 case "x$archive_cmds_need_lc_GCJ" in
18550 x|xyes)
18551   # Assume -lc should be added
18552   archive_cmds_need_lc_GCJ=yes
18553
18554   if test "$enable_shared" = yes && test "$GCC" = yes; then
18555     case $archive_cmds_GCJ in
18556     *'~'*)
18557       # FIXME: we may have to deal with multi-command sequences.
18558       ;;
18559     '$CC '*)
18560       # Test whether the compiler implicitly links with -lc since on some
18561       # systems, -lgcc has to come before -lc. If gcc already passes -lc
18562       # to ld, don't add -lc before -lgcc.
18563       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18564 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18565       $rm conftest*
18566       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18567
18568       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18569   (eval $ac_compile) 2>&5
18570   ac_status=$?
18571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18572   (exit $ac_status); } 2>conftest.err; then
18573         soname=conftest
18574         lib=conftest
18575         libobjs=conftest.$ac_objext
18576         deplibs=
18577         wl=$lt_prog_compiler_wl_GCJ
18578         pic_flag=$lt_prog_compiler_pic_GCJ
18579         compiler_flags=-v
18580         linker_flags=-v
18581         verstring=
18582         output_objdir=.
18583         libname=conftest
18584         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18585         allow_undefined_flag_GCJ=
18586         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18587   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18588   ac_status=$?
18589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18590   (exit $ac_status); }
18591         then
18592           archive_cmds_need_lc_GCJ=no
18593         else
18594           archive_cmds_need_lc_GCJ=yes
18595         fi
18596         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18597       else
18598         cat conftest.err 1>&5
18599       fi
18600       $rm conftest*
18601       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18602 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18603       ;;
18604     esac
18605   fi
18606   ;;
18607 esac
18608
18609 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18610 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18611 library_names_spec=
18612 libname_spec='lib$name'
18613 soname_spec=
18614 shrext_cmds=".so"
18615 postinstall_cmds=
18616 postuninstall_cmds=
18617 finish_cmds=
18618 finish_eval=
18619 shlibpath_var=
18620 shlibpath_overrides_runpath=unknown
18621 version_type=none
18622 dynamic_linker="$host_os ld.so"
18623 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18624 if test "$GCC" = yes; then
18625   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18626   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18627     # if the path contains ";" then we assume it to be the separator
18628     # otherwise default to the standard path separator (i.e. ":") - it is
18629     # assumed that no part of a normal pathname contains ";" but that should
18630     # okay in the real world where ";" in dirpaths is itself problematic.
18631     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18632   else
18633     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18634   fi
18635 else
18636   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18637 fi
18638 need_lib_prefix=unknown
18639 hardcode_into_libs=no
18640
18641 # when you set need_version to no, make sure it does not cause -set_version
18642 # flags to be left without arguments
18643 need_version=unknown
18644
18645 case $host_os in
18646 aix3*)
18647   version_type=linux
18648   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18649   shlibpath_var=LIBPATH
18650
18651   # AIX 3 has no versioning support, so we append a major version to the name.
18652   soname_spec='${libname}${release}${shared_ext}$major'
18653   ;;
18654
18655 aix4* | aix5*)
18656   version_type=linux
18657   need_lib_prefix=no
18658   need_version=no
18659   hardcode_into_libs=yes
18660   if test "$host_cpu" = ia64; then
18661     # AIX 5 supports IA64
18662     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18663     shlibpath_var=LD_LIBRARY_PATH
18664   else
18665     # With GCC up to 2.95.x, collect2 would create an import file
18666     # for dependence libraries.  The import file would start with
18667     # the line `#! .'.  This would cause the generated library to
18668     # depend on `.', always an invalid library.  This was fixed in
18669     # development snapshots of GCC prior to 3.0.
18670     case $host_os in
18671       aix4 | aix4.[01] | aix4.[01].*)
18672       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18673            echo ' yes '
18674            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18675         :
18676       else
18677         can_build_shared=no
18678       fi
18679       ;;
18680     esac
18681     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18682     # soname into executable. Probably we can add versioning support to
18683     # collect2, so additional links can be useful in future.
18684     if test "$aix_use_runtimelinking" = yes; then
18685       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18686       # instead of lib<name>.a to let people know that these are not
18687       # typical AIX shared libraries.
18688       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18689     else
18690       # We preserve .a as extension for shared libraries through AIX4.2
18691       # and later when we are not doing run time linking.
18692       library_names_spec='${libname}${release}.a $libname.a'
18693       soname_spec='${libname}${release}${shared_ext}$major'
18694     fi
18695     shlibpath_var=LIBPATH
18696   fi
18697   ;;
18698
18699 amigaos*)
18700   library_names_spec='$libname.ixlibrary $libname.a'
18701   # Create ${libname}_ixlibrary.a entries in /sys/libs.
18702   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'
18703   ;;
18704
18705 beos*)
18706   library_names_spec='${libname}${shared_ext}'
18707   dynamic_linker="$host_os ld.so"
18708   shlibpath_var=LIBRARY_PATH
18709   ;;
18710
18711 bsdi[45]*)
18712   version_type=linux
18713   need_version=no
18714   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18715   soname_spec='${libname}${release}${shared_ext}$major'
18716   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18717   shlibpath_var=LD_LIBRARY_PATH
18718   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18719   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18720   # the default ld.so.conf also contains /usr/contrib/lib and
18721   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18722   # libtool to hard-code these into programs
18723   ;;
18724
18725 cygwin* | mingw* | pw32*)
18726   version_type=windows
18727   shrext_cmds=".dll"
18728   need_version=no
18729   need_lib_prefix=no
18730
18731   case $GCC,$host_os in
18732   yes,cygwin* | yes,mingw* | yes,pw32*)
18733     library_names_spec='$libname.dll.a'
18734     # DLL is installed to $(libdir)/../bin by postinstall_cmds
18735     postinstall_cmds='base_file=`basename \${file}`~
18736       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18737       dldir=$destdir/`dirname \$dlpath`~
18738       test -d \$dldir || mkdir -p \$dldir~
18739       $install_prog $dir/$dlname \$dldir/$dlname~
18740       chmod a+x \$dldir/$dlname'
18741     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18742       dlpath=$dir/\$dldll~
18743        $rm \$dlpath'
18744     shlibpath_overrides_runpath=yes
18745
18746     case $host_os in
18747     cygwin*)
18748       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18749       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18750       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18751       ;;
18752     mingw*)
18753       # MinGW DLLs use traditional 'lib' prefix
18754       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18755       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18756       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18757         # It is most probably a Windows format PATH printed by
18758         # mingw gcc, but we are running on Cygwin. Gcc prints its search
18759         # path with ; separators, and with drive letters. We can handle the
18760         # drive letters (cygwin fileutils understands them), so leave them,
18761         # especially as we might pass files found there to a mingw objdump,
18762         # which wouldn't understand a cygwinified path. Ahh.
18763         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18764       else
18765         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18766       fi
18767       ;;
18768     pw32*)
18769       # pw32 DLLs use 'pw' prefix rather than 'lib'
18770       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18771       ;;
18772     esac
18773     ;;
18774
18775   *)
18776     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18777     ;;
18778   esac
18779   dynamic_linker='Win32 ld.exe'
18780   # FIXME: first we should search . and the directory the executable is in
18781   shlibpath_var=PATH
18782   ;;
18783
18784 darwin* | rhapsody*)
18785   dynamic_linker="$host_os dyld"
18786   version_type=darwin
18787   need_lib_prefix=no
18788   need_version=no
18789   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext ${libname}${release}${versuffix}$shared_ext'
18790   soname_spec='${libname}${release}${major}$shared_ext'
18791   shlibpath_overrides_runpath=yes
18792   shlibpath_var=DYLD_LIBRARY_PATH
18793   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18794   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18795   if test "$GCC" = yes; then
18796     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"`
18797   else
18798     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18799   fi
18800   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18801   ;;
18802
18803 dgux*)
18804   version_type=linux
18805   need_lib_prefix=no
18806   need_version=no
18807   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18808   soname_spec='${libname}${release}${shared_ext}$major'
18809   shlibpath_var=LD_LIBRARY_PATH
18810   ;;
18811
18812 freebsd1*)
18813   dynamic_linker=no
18814   ;;
18815
18816 kfreebsd*-gnu)
18817   version_type=linux
18818   need_lib_prefix=no
18819   need_version=no
18820   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18821   soname_spec='${libname}${release}${shared_ext}$major'
18822   shlibpath_var=LD_LIBRARY_PATH
18823   shlibpath_overrides_runpath=no
18824   hardcode_into_libs=yes
18825   dynamic_linker='GNU ld.so'
18826   ;;
18827
18828 freebsd* | dragonfly*)
18829   # DragonFly does not have aout.  When/if they implement a new
18830   # versioning mechanism, adjust this.
18831   if test -x /usr/bin/objformat; then
18832     objformat=`/usr/bin/objformat`
18833   else
18834     case $host_os in
18835     freebsd[123]*) objformat=aout ;;
18836     *) objformat=elf ;;
18837     esac
18838   fi
18839   version_type=freebsd-$objformat
18840   case $version_type in
18841     freebsd-elf*)
18842       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18843       need_version=no
18844       need_lib_prefix=no
18845       ;;
18846     freebsd-*)
18847       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18848       need_version=yes
18849       ;;
18850   esac
18851   shlibpath_var=LD_LIBRARY_PATH
18852   case $host_os in
18853   freebsd2*)
18854     shlibpath_overrides_runpath=yes
18855     ;;
18856   freebsd3.[01]* | freebsdelf3.[01]*)
18857     shlibpath_overrides_runpath=yes
18858     hardcode_into_libs=yes
18859     ;;
18860   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18861   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18862     shlibpath_overrides_runpath=no
18863     hardcode_into_libs=yes
18864     ;;
18865   freebsd*) # from 4.6 on
18866     shlibpath_overrides_runpath=yes
18867     hardcode_into_libs=yes
18868     ;;
18869   esac
18870   ;;
18871
18872 gnu*)
18873   version_type=linux
18874   need_lib_prefix=no
18875   need_version=no
18876   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18877   soname_spec='${libname}${release}${shared_ext}$major'
18878   shlibpath_var=LD_LIBRARY_PATH
18879   hardcode_into_libs=yes
18880   ;;
18881
18882 hpux9* | hpux10* | hpux11*)
18883   # Give a soname corresponding to the major version so that dld.sl refuses to
18884   # link against other versions.
18885   version_type=sunos
18886   need_lib_prefix=no
18887   need_version=no
18888   case $host_cpu in
18889   ia64*)
18890     shrext_cmds='.so'
18891     hardcode_into_libs=yes
18892     dynamic_linker="$host_os dld.so"
18893     shlibpath_var=LD_LIBRARY_PATH
18894     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18895     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18896     soname_spec='${libname}${release}${shared_ext}$major'
18897     if test "X$HPUX_IA64_MODE" = X32; then
18898       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18899     else
18900       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18901     fi
18902     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18903     ;;
18904    hppa*64*)
18905      shrext_cmds='.sl'
18906      hardcode_into_libs=yes
18907      dynamic_linker="$host_os dld.sl"
18908      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18909      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18910      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18911      soname_spec='${libname}${release}${shared_ext}$major'
18912      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18913      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18914      ;;
18915    *)
18916     shrext_cmds='.sl'
18917     dynamic_linker="$host_os dld.sl"
18918     shlibpath_var=SHLIB_PATH
18919     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18920     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18921     soname_spec='${libname}${release}${shared_ext}$major'
18922     ;;
18923   esac
18924   # HP-UX runs *really* slowly unless shared libraries are mode 555.
18925   postinstall_cmds='chmod 555 $lib'
18926   ;;
18927
18928 interix3*)
18929   version_type=linux
18930   need_lib_prefix=no
18931   need_version=no
18932   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18933   soname_spec='${libname}${release}${shared_ext}$major'
18934   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18935   shlibpath_var=LD_LIBRARY_PATH
18936   shlibpath_overrides_runpath=no
18937   hardcode_into_libs=yes
18938   ;;
18939
18940 irix5* | irix6* | nonstopux*)
18941   case $host_os in
18942     nonstopux*) version_type=nonstopux ;;
18943     *)
18944         if test "$lt_cv_prog_gnu_ld" = yes; then
18945                 version_type=linux
18946         else
18947                 version_type=irix
18948         fi ;;
18949   esac
18950   need_lib_prefix=no
18951   need_version=no
18952   soname_spec='${libname}${release}${shared_ext}$major'
18953   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18954   case $host_os in
18955   irix5* | nonstopux*)
18956     libsuff= shlibsuff=
18957     ;;
18958   *)
18959     case $LD in # libtool.m4 will add one of these switches to LD
18960     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18961       libsuff= shlibsuff= libmagic=32-bit;;
18962     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18963       libsuff=32 shlibsuff=N32 libmagic=N32;;
18964     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18965       libsuff=64 shlibsuff=64 libmagic=64-bit;;
18966     *) libsuff= shlibsuff= libmagic=never-match;;
18967     esac
18968     ;;
18969   esac
18970   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18971   shlibpath_overrides_runpath=no
18972   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18973   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18974   hardcode_into_libs=yes
18975   ;;
18976
18977 # No shared lib support for Linux oldld, aout, or coff.
18978 linux*oldld* | linux*aout* | linux*coff*)
18979   dynamic_linker=no
18980   ;;
18981
18982 # This must be Linux ELF.
18983 linux*)
18984   version_type=linux
18985   need_lib_prefix=no
18986   need_version=no
18987   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18988   soname_spec='${libname}${release}${shared_ext}$major'
18989   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18990   shlibpath_var=LD_LIBRARY_PATH
18991   shlibpath_overrides_runpath=no
18992   # This implies no fast_install, which is unacceptable.
18993   # Some rework will be needed to allow for fast_install
18994   # before this can be enabled.
18995   hardcode_into_libs=yes
18996
18997   # Append ld.so.conf contents to the search path
18998   if test -f /etc/ld.so.conf; then
18999     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
19000     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19001   fi
19002
19003   # We used to test for /lib/ld.so.1 and disable shared libraries on
19004   # powerpc, because MkLinux only supported shared libraries with the
19005   # GNU dynamic linker.  Since this was broken with cross compilers,
19006   # most powerpc-linux boxes support dynamic linking these days and
19007   # people can always --disable-shared, the test was removed, and we
19008   # assume the GNU/Linux dynamic linker is in use.
19009   dynamic_linker='GNU/Linux ld.so'
19010   ;;
19011
19012 knetbsd*-gnu)
19013   version_type=linux
19014   need_lib_prefix=no
19015   need_version=no
19016   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19017   soname_spec='${libname}${release}${shared_ext}$major'
19018   shlibpath_var=LD_LIBRARY_PATH
19019   shlibpath_overrides_runpath=no
19020   hardcode_into_libs=yes
19021   dynamic_linker='GNU ld.so'
19022   ;;
19023
19024 netbsd*)
19025   version_type=sunos
19026   need_lib_prefix=no
19027   need_version=no
19028   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19029     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19030     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19031     dynamic_linker='NetBSD (a.out) ld.so'
19032   else
19033     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19034     soname_spec='${libname}${release}${shared_ext}$major'
19035     dynamic_linker='NetBSD ld.elf_so'
19036   fi
19037   shlibpath_var=LD_LIBRARY_PATH
19038   shlibpath_overrides_runpath=yes
19039   hardcode_into_libs=yes
19040   ;;
19041
19042 newsos6)
19043   version_type=linux
19044   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19045   shlibpath_var=LD_LIBRARY_PATH
19046   shlibpath_overrides_runpath=yes
19047   ;;
19048
19049 nto-qnx*)
19050   version_type=linux
19051   need_lib_prefix=no
19052   need_version=no
19053   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19054   soname_spec='${libname}${release}${shared_ext}$major'
19055   shlibpath_var=LD_LIBRARY_PATH
19056   shlibpath_overrides_runpath=yes
19057   ;;
19058
19059 openbsd*)
19060   version_type=sunos
19061   sys_lib_dlsearch_path_spec="/usr/lib"
19062   need_lib_prefix=no
19063   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19064   case $host_os in
19065     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19066     *)                         need_version=no  ;;
19067   esac
19068   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19069   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19070   shlibpath_var=LD_LIBRARY_PATH
19071   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19072     case $host_os in
19073       openbsd2.[89] | openbsd2.[89].*)
19074         shlibpath_overrides_runpath=no
19075         ;;
19076       *)
19077         shlibpath_overrides_runpath=yes
19078         ;;
19079       esac
19080   else
19081     shlibpath_overrides_runpath=yes
19082   fi
19083   ;;
19084
19085 os2*)
19086   libname_spec='$name'
19087   shrext_cmds=".dll"
19088   need_lib_prefix=no
19089   library_names_spec='$libname${shared_ext} $libname.a'
19090   dynamic_linker='OS/2 ld.exe'
19091   shlibpath_var=LIBPATH
19092   ;;
19093
19094 osf3* | osf4* | osf5*)
19095   version_type=osf
19096   need_lib_prefix=no
19097   need_version=no
19098   soname_spec='${libname}${release}${shared_ext}$major'
19099   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19100   shlibpath_var=LD_LIBRARY_PATH
19101   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19102   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19103   ;;
19104
19105 solaris*)
19106   version_type=linux
19107   need_lib_prefix=no
19108   need_version=no
19109   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19110   soname_spec='${libname}${release}${shared_ext}$major'
19111   shlibpath_var=LD_LIBRARY_PATH
19112   shlibpath_overrides_runpath=yes
19113   hardcode_into_libs=yes
19114   # ldd complains unless libraries are executable
19115   postinstall_cmds='chmod +x $lib'
19116   ;;
19117
19118 sunos4*)
19119   version_type=sunos
19120   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19121   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19122   shlibpath_var=LD_LIBRARY_PATH
19123   shlibpath_overrides_runpath=yes
19124   if test "$with_gnu_ld" = yes; then
19125     need_lib_prefix=no
19126   fi
19127   need_version=yes
19128   ;;
19129
19130 sysv4 | sysv4.3*)
19131   version_type=linux
19132   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19133   soname_spec='${libname}${release}${shared_ext}$major'
19134   shlibpath_var=LD_LIBRARY_PATH
19135   case $host_vendor in
19136     sni)
19137       shlibpath_overrides_runpath=no
19138       need_lib_prefix=no
19139       export_dynamic_flag_spec='${wl}-Blargedynsym'
19140       runpath_var=LD_RUN_PATH
19141       ;;
19142     siemens)
19143       need_lib_prefix=no
19144       ;;
19145     motorola)
19146       need_lib_prefix=no
19147       need_version=no
19148       shlibpath_overrides_runpath=no
19149       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19150       ;;
19151   esac
19152   ;;
19153
19154 sysv4*MP*)
19155   if test -d /usr/nec ;then
19156     version_type=linux
19157     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19158     soname_spec='$libname${shared_ext}.$major'
19159     shlibpath_var=LD_LIBRARY_PATH
19160   fi
19161   ;;
19162
19163 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19164   version_type=freebsd-elf
19165   need_lib_prefix=no
19166   need_version=no
19167   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19168   soname_spec='${libname}${release}${shared_ext}$major'
19169   shlibpath_var=LD_LIBRARY_PATH
19170   hardcode_into_libs=yes
19171   if test "$with_gnu_ld" = yes; then
19172     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19173     shlibpath_overrides_runpath=no
19174   else
19175     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19176     shlibpath_overrides_runpath=yes
19177     case $host_os in
19178       sco3.2v5*)
19179         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19180         ;;
19181     esac
19182   fi
19183   sys_lib_dlsearch_path_spec='/usr/lib'
19184   ;;
19185
19186 uts4*)
19187   version_type=linux
19188   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19189   soname_spec='${libname}${release}${shared_ext}$major'
19190   shlibpath_var=LD_LIBRARY_PATH
19191   ;;
19192
19193 *)
19194   dynamic_linker=no
19195   ;;
19196 esac
19197 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19198 echo "${ECHO_T}$dynamic_linker" >&6; }
19199 test "$dynamic_linker" = no && can_build_shared=no
19200
19201 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19202 if test "$GCC" = yes; then
19203   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19204 fi
19205
19206 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19207 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
19208 hardcode_action_GCJ=
19209 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19210    test -n "$runpath_var_GCJ" || \
19211    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19212
19213   # We can hardcode non-existant directories.
19214   if test "$hardcode_direct_GCJ" != no &&
19215      # If the only mechanism to avoid hardcoding is shlibpath_var, we
19216      # have to relink, otherwise we might link with an installed library
19217      # when we should be linking with a yet-to-be-installed one
19218      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19219      test "$hardcode_minus_L_GCJ" != no; then
19220     # Linking always hardcodes the temporary library directory.
19221     hardcode_action_GCJ=relink
19222   else
19223     # We can link without hardcoding, and we can hardcode nonexisting dirs.
19224     hardcode_action_GCJ=immediate
19225   fi
19226 else
19227   # We cannot hardcode anything, or else we can only hardcode existing
19228   # directories.
19229   hardcode_action_GCJ=unsupported
19230 fi
19231 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19232 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
19233
19234 if test "$hardcode_action_GCJ" = relink; then
19235   # Fast installation is not supported
19236   enable_fast_install=no
19237 elif test "$shlibpath_overrides_runpath" = yes ||
19238      test "$enable_shared" = no; then
19239   # Fast installation is not necessary
19240   enable_fast_install=needless
19241 fi
19242
19243
19244 # The else clause should only fire when bootstrapping the
19245 # libtool distribution, otherwise you forgot to ship ltmain.sh
19246 # with your package, and you will get complaints that there are
19247 # no rules to generate ltmain.sh.
19248 if test -f "$ltmain"; then
19249   # See if we are running on zsh, and set the options which allow our commands through
19250   # without removal of \ escapes.
19251   if test -n "${ZSH_VERSION+set}" ; then
19252     setopt NO_GLOB_SUBST
19253   fi
19254   # Now quote all the things that may contain metacharacters while being
19255   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19256   # variables and quote the copies for generation of the libtool script.
19257   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19258     SED SHELL STRIP \
19259     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19260     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19261     deplibs_check_method reload_flag reload_cmds need_locks \
19262     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19263     lt_cv_sys_global_symbol_to_c_name_address \
19264     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19265     old_postinstall_cmds old_postuninstall_cmds \
19266     compiler_GCJ \
19267     CC_GCJ \
19268     LD_GCJ \
19269     lt_prog_compiler_wl_GCJ \
19270     lt_prog_compiler_pic_GCJ \
19271     lt_prog_compiler_static_GCJ \
19272     lt_prog_compiler_no_builtin_flag_GCJ \
19273     export_dynamic_flag_spec_GCJ \
19274     thread_safe_flag_spec_GCJ \
19275     whole_archive_flag_spec_GCJ \
19276     enable_shared_with_static_runtimes_GCJ \
19277     old_archive_cmds_GCJ \
19278     old_archive_from_new_cmds_GCJ \
19279     predep_objects_GCJ \
19280     postdep_objects_GCJ \
19281     predeps_GCJ \
19282     postdeps_GCJ \
19283     compiler_lib_search_path_GCJ \
19284     archive_cmds_GCJ \
19285     archive_expsym_cmds_GCJ \
19286     postinstall_cmds_GCJ \
19287     postuninstall_cmds_GCJ \
19288     old_archive_from_expsyms_cmds_GCJ \
19289     allow_undefined_flag_GCJ \
19290     no_undefined_flag_GCJ \
19291     export_symbols_cmds_GCJ \
19292     hardcode_libdir_flag_spec_GCJ \
19293     hardcode_libdir_flag_spec_ld_GCJ \
19294     hardcode_libdir_separator_GCJ \
19295     hardcode_automatic_GCJ \
19296     module_cmds_GCJ \
19297     module_expsym_cmds_GCJ \
19298     lt_cv_prog_compiler_c_o_GCJ \
19299     exclude_expsyms_GCJ \
19300     include_expsyms_GCJ; do
19301
19302     case $var in
19303     old_archive_cmds_GCJ | \
19304     old_archive_from_new_cmds_GCJ | \
19305     archive_cmds_GCJ | \
19306     archive_expsym_cmds_GCJ | \
19307     module_cmds_GCJ | \
19308     module_expsym_cmds_GCJ | \
19309     old_archive_from_expsyms_cmds_GCJ | \
19310     export_symbols_cmds_GCJ | \
19311     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19312     postinstall_cmds | postuninstall_cmds | \
19313     old_postinstall_cmds | old_postuninstall_cmds | \
19314     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19315       # Double-quote double-evaled strings.
19316       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19317       ;;
19318     *)
19319       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19320       ;;
19321     esac
19322   done
19323
19324   case $lt_echo in
19325   *'\$0 --fallback-echo"')
19326     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19327     ;;
19328   esac
19329
19330 cfgfile="$ofile"
19331
19332   cat <<__EOF__ >> "$cfgfile"
19333 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19334
19335 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19336
19337 # Shell to use when invoking shell scripts.
19338 SHELL=$lt_SHELL
19339
19340 # Whether or not to build shared libraries.
19341 build_libtool_libs=$enable_shared
19342
19343 # Whether or not to build static libraries.
19344 build_old_libs=$enable_static
19345
19346 # Whether or not to add -lc for building shared libraries.
19347 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19348
19349 # Whether or not to disallow shared libs when runtime libs are static
19350 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19351
19352 # Whether or not to optimize for fast installation.
19353 fast_install=$enable_fast_install
19354
19355 # The host system.
19356 host_alias=$host_alias
19357 host=$host
19358 host_os=$host_os
19359
19360 # The build system.
19361 build_alias=$build_alias
19362 build=$build
19363 build_os=$build_os
19364
19365 # An echo program that does not interpret backslashes.
19366 echo=$lt_echo
19367
19368 # The archiver.
19369 AR=$lt_AR
19370 AR_FLAGS=$lt_AR_FLAGS
19371
19372 # A C compiler.
19373 LTCC=$lt_LTCC
19374
19375 # LTCC compiler flags.
19376 LTCFLAGS=$lt_LTCFLAGS
19377
19378 # A language-specific compiler.
19379 CC=$lt_compiler_GCJ
19380
19381 # Is the compiler the GNU C compiler?
19382 with_gcc=$GCC_GCJ
19383
19384 # An ERE matcher.
19385 EGREP=$lt_EGREP
19386
19387 # The linker used to build libraries.
19388 LD=$lt_LD_GCJ
19389
19390 # Whether we need hard or soft links.
19391 LN_S=$lt_LN_S
19392
19393 # A BSD-compatible nm program.
19394 NM=$lt_NM
19395
19396 # A symbol stripping program
19397 STRIP=$lt_STRIP
19398
19399 # Used to examine libraries when file_magic_cmd begins "file"
19400 MAGIC_CMD=$MAGIC_CMD
19401
19402 # Used on cygwin: DLL creation program.
19403 DLLTOOL="$DLLTOOL"
19404
19405 # Used on cygwin: object dumper.
19406 OBJDUMP="$OBJDUMP"
19407
19408 # Used on cygwin: assembler.
19409 AS="$AS"
19410
19411 # The name of the directory that contains temporary libtool files.
19412 objdir=$objdir
19413
19414 # How to create reloadable object files.
19415 reload_flag=$lt_reload_flag
19416 reload_cmds=$lt_reload_cmds
19417
19418 # How to pass a linker flag through the compiler.
19419 wl=$lt_lt_prog_compiler_wl_GCJ
19420
19421 # Object file suffix (normally "o").
19422 objext="$ac_objext"
19423
19424 # Old archive suffix (normally "a").
19425 libext="$libext"
19426
19427 # Shared library suffix (normally ".so").
19428 shrext_cmds='$shrext_cmds'
19429
19430 # Executable file suffix (normally "").
19431 exeext="$exeext"
19432
19433 # Additional compiler flags for building library objects.
19434 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19435 pic_mode=$pic_mode
19436
19437 # What is the maximum length of a command?
19438 max_cmd_len=$lt_cv_sys_max_cmd_len
19439
19440 # Does compiler simultaneously support -c and -o options?
19441 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19442
19443 # Must we lock files when doing compilation?
19444 need_locks=$lt_need_locks
19445
19446 # Do we need the lib prefix for modules?
19447 need_lib_prefix=$need_lib_prefix
19448
19449 # Do we need a version for libraries?
19450 need_version=$need_version
19451
19452 # Whether dlopen is supported.
19453 dlopen_support=$enable_dlopen
19454
19455 # Whether dlopen of programs is supported.
19456 dlopen_self=$enable_dlopen_self
19457
19458 # Whether dlopen of statically linked programs is supported.
19459 dlopen_self_static=$enable_dlopen_self_static
19460
19461 # Compiler flag to prevent dynamic linking.
19462 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19463
19464 # Compiler flag to turn off builtin functions.
19465 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19466
19467 # Compiler flag to allow reflexive dlopens.
19468 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19469
19470 # Compiler flag to generate shared objects directly from archives.
19471 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19472
19473 # Compiler flag to generate thread-safe objects.
19474 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19475
19476 # Library versioning type.
19477 version_type=$version_type
19478
19479 # Format of library name prefix.
19480 libname_spec=$lt_libname_spec
19481
19482 # List of archive names.  First name is the real one, the rest are links.
19483 # The last name is the one that the linker finds with -lNAME.
19484 library_names_spec=$lt_library_names_spec
19485
19486 # The coded name of the library, if different from the real name.
19487 soname_spec=$lt_soname_spec
19488
19489 # Commands used to build and install an old-style archive.
19490 RANLIB=$lt_RANLIB
19491 old_archive_cmds=$lt_old_archive_cmds_GCJ
19492 old_postinstall_cmds=$lt_old_postinstall_cmds
19493 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19494
19495 # Create an old-style archive from a shared archive.
19496 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19497
19498 # Create a temporary old-style archive to link instead of a shared archive.
19499 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19500
19501 # Commands used to build and install a shared archive.
19502 archive_cmds=$lt_archive_cmds_GCJ
19503 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19504 postinstall_cmds=$lt_postinstall_cmds
19505 postuninstall_cmds=$lt_postuninstall_cmds
19506
19507 # Commands used to build a loadable module (assumed same as above if empty)
19508 module_cmds=$lt_module_cmds_GCJ
19509 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19510
19511 # Commands to strip libraries.
19512 old_striplib=$lt_old_striplib
19513 striplib=$lt_striplib
19514
19515 # Dependencies to place before the objects being linked to create a
19516 # shared library.
19517 predep_objects=$lt_predep_objects_GCJ
19518
19519 # Dependencies to place after the objects being linked to create a
19520 # shared library.
19521 postdep_objects=$lt_postdep_objects_GCJ
19522
19523 # Dependencies to place before the objects being linked to create a
19524 # shared library.
19525 predeps=$lt_predeps_GCJ
19526
19527 # Dependencies to place after the objects being linked to create a
19528 # shared library.
19529 postdeps=$lt_postdeps_GCJ
19530
19531 # The library search path used internally by the compiler when linking
19532 # a shared library.
19533 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19534
19535 # Method to check whether dependent libraries are shared objects.
19536 deplibs_check_method=$lt_deplibs_check_method
19537
19538 # Command to use when deplibs_check_method == file_magic.
19539 file_magic_cmd=$lt_file_magic_cmd
19540
19541 # Flag that allows shared libraries with undefined symbols to be built.
19542 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19543
19544 # Flag that forces no undefined symbols.
19545 no_undefined_flag=$lt_no_undefined_flag_GCJ
19546
19547 # Commands used to finish a libtool library installation in a directory.
19548 finish_cmds=$lt_finish_cmds
19549
19550 # Same as above, but a single script fragment to be evaled but not shown.
19551 finish_eval=$lt_finish_eval
19552
19553 # Take the output of nm and produce a listing of raw symbols and C names.
19554 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19555
19556 # Transform the output of nm in a proper C declaration
19557 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19558
19559 # Transform the output of nm in a C name address pair
19560 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19561
19562 # This is the shared library runtime path variable.
19563 runpath_var=$runpath_var
19564
19565 # This is the shared library path variable.
19566 shlibpath_var=$shlibpath_var
19567
19568 # Is shlibpath searched before the hard-coded library search path?
19569 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19570
19571 # How to hardcode a shared library path into an executable.
19572 hardcode_action=$hardcode_action_GCJ
19573
19574 # Whether we should hardcode library paths into libraries.
19575 hardcode_into_libs=$hardcode_into_libs
19576
19577 # Flag to hardcode \$libdir into a binary during linking.
19578 # This must work even if \$libdir does not exist.
19579 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19580
19581 # If ld is used when linking, flag to hardcode \$libdir into
19582 # a binary during linking. This must work even if \$libdir does
19583 # not exist.
19584 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19585
19586 # Whether we need a single -rpath flag with a separated argument.
19587 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19588
19589 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19590 # resulting binary.
19591 hardcode_direct=$hardcode_direct_GCJ
19592
19593 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19594 # resulting binary.
19595 hardcode_minus_L=$hardcode_minus_L_GCJ
19596
19597 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19598 # the resulting binary.
19599 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19600
19601 # Set to yes if building a shared library automatically hardcodes DIR into the library
19602 # and all subsequent libraries and executables linked against it.
19603 hardcode_automatic=$hardcode_automatic_GCJ
19604
19605 # Variables whose values should be saved in libtool wrapper scripts and
19606 # restored at relink time.
19607 variables_saved_for_relink="$variables_saved_for_relink"
19608
19609 # Whether libtool must link a program against all its dependency libraries.
19610 link_all_deplibs=$link_all_deplibs_GCJ
19611
19612 # Compile-time system search path for libraries
19613 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19614
19615 # Run-time system search path for libraries
19616 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19617
19618 # Fix the shell variable \$srcfile for the compiler.
19619 fix_srcfile_path="$fix_srcfile_path_GCJ"
19620
19621 # Set to yes if exported symbols are required.
19622 always_export_symbols=$always_export_symbols_GCJ
19623
19624 # The commands to list exported symbols.
19625 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19626
19627 # The commands to extract the exported symbol list from a shared archive.
19628 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19629
19630 # Symbols that should not be listed in the preloaded symbols.
19631 exclude_expsyms=$lt_exclude_expsyms_GCJ
19632
19633 # Symbols that must always be exported.
19634 include_expsyms=$lt_include_expsyms_GCJ
19635
19636 # ### END LIBTOOL TAG CONFIG: $tagname
19637
19638 __EOF__
19639
19640
19641 else
19642   # If there is no Makefile yet, we rely on a make rule to execute
19643   # `config.status --recheck' to rerun these tests and create the
19644   # libtool script then.
19645   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19646   if test -f "$ltmain_in"; then
19647     test -f Makefile && make "$ltmain"
19648   fi
19649 fi
19650
19651
19652 ac_ext=c
19653 ac_cpp='$CPP $CPPFLAGS'
19654 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19655 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19656 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19657
19658 CC="$lt_save_CC"
19659
19660         else
19661           tagname=""
19662         fi
19663         ;;
19664
19665       RC)
19666
19667
19668 # Source file extension for RC test sources.
19669 ac_ext=rc
19670
19671 # Object file extension for compiled RC test sources.
19672 objext=o
19673 objext_RC=$objext
19674
19675 # Code to be used in simple compile tests
19676 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19677
19678 # Code to be used in simple link tests
19679 lt_simple_link_test_code="$lt_simple_compile_test_code"
19680
19681 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19682
19683 # If no C compiler was specified, use CC.
19684 LTCC=${LTCC-"$CC"}
19685
19686 # If no C compiler flags were specified, use CFLAGS.
19687 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19688
19689 # Allow CC to be a program name with arguments.
19690 compiler=$CC
19691
19692
19693 # save warnings/boilerplate of simple test code
19694 ac_outfile=conftest.$ac_objext
19695 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19696 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19697 _lt_compiler_boilerplate=`cat conftest.err`
19698 $rm conftest*
19699
19700 ac_outfile=conftest.$ac_objext
19701 printf "$lt_simple_link_test_code" >conftest.$ac_ext
19702 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19703 _lt_linker_boilerplate=`cat conftest.err`
19704 $rm conftest*
19705
19706
19707 # Allow CC to be a program name with arguments.
19708 lt_save_CC="$CC"
19709 CC=${RC-"windres"}
19710 compiler=$CC
19711 compiler_RC=$CC
19712 for cc_temp in $compiler""; do
19713   case $cc_temp in
19714     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19715     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19716     \-*) ;;
19717     *) break;;
19718   esac
19719 done
19720 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19721
19722 lt_cv_prog_compiler_c_o_RC=yes
19723
19724 # The else clause should only fire when bootstrapping the
19725 # libtool distribution, otherwise you forgot to ship ltmain.sh
19726 # with your package, and you will get complaints that there are
19727 # no rules to generate ltmain.sh.
19728 if test -f "$ltmain"; then
19729   # See if we are running on zsh, and set the options which allow our commands through
19730   # without removal of \ escapes.
19731   if test -n "${ZSH_VERSION+set}" ; then
19732     setopt NO_GLOB_SUBST
19733   fi
19734   # Now quote all the things that may contain metacharacters while being
19735   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19736   # variables and quote the copies for generation of the libtool script.
19737   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19738     SED SHELL STRIP \
19739     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19740     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19741     deplibs_check_method reload_flag reload_cmds need_locks \
19742     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19743     lt_cv_sys_global_symbol_to_c_name_address \
19744     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19745     old_postinstall_cmds old_postuninstall_cmds \
19746     compiler_RC \
19747     CC_RC \
19748     LD_RC \
19749     lt_prog_compiler_wl_RC \
19750     lt_prog_compiler_pic_RC \
19751     lt_prog_compiler_static_RC \
19752     lt_prog_compiler_no_builtin_flag_RC \
19753     export_dynamic_flag_spec_RC \
19754     thread_safe_flag_spec_RC \
19755     whole_archive_flag_spec_RC \
19756     enable_shared_with_static_runtimes_RC \
19757     old_archive_cmds_RC \
19758     old_archive_from_new_cmds_RC \
19759     predep_objects_RC \
19760     postdep_objects_RC \
19761     predeps_RC \
19762     postdeps_RC \
19763     compiler_lib_search_path_RC \
19764     archive_cmds_RC \
19765     archive_expsym_cmds_RC \
19766     postinstall_cmds_RC \
19767     postuninstall_cmds_RC \
19768     old_archive_from_expsyms_cmds_RC \
19769     allow_undefined_flag_RC \
19770     no_undefined_flag_RC \
19771     export_symbols_cmds_RC \
19772     hardcode_libdir_flag_spec_RC \
19773     hardcode_libdir_flag_spec_ld_RC \
19774     hardcode_libdir_separator_RC \
19775     hardcode_automatic_RC \
19776     module_cmds_RC \
19777     module_expsym_cmds_RC \
19778     lt_cv_prog_compiler_c_o_RC \
19779     exclude_expsyms_RC \
19780     include_expsyms_RC; do
19781
19782     case $var in
19783     old_archive_cmds_RC | \
19784     old_archive_from_new_cmds_RC | \
19785     archive_cmds_RC | \
19786     archive_expsym_cmds_RC | \
19787     module_cmds_RC | \
19788     module_expsym_cmds_RC | \
19789     old_archive_from_expsyms_cmds_RC | \
19790     export_symbols_cmds_RC | \
19791     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19792     postinstall_cmds | postuninstall_cmds | \
19793     old_postinstall_cmds | old_postuninstall_cmds | \
19794     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19795       # Double-quote double-evaled strings.
19796       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19797       ;;
19798     *)
19799       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19800       ;;
19801     esac
19802   done
19803
19804   case $lt_echo in
19805   *'\$0 --fallback-echo"')
19806     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19807     ;;
19808   esac
19809
19810 cfgfile="$ofile"
19811
19812   cat <<__EOF__ >> "$cfgfile"
19813 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19814
19815 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19816
19817 # Shell to use when invoking shell scripts.
19818 SHELL=$lt_SHELL
19819
19820 # Whether or not to build shared libraries.
19821 build_libtool_libs=$enable_shared
19822
19823 # Whether or not to build static libraries.
19824 build_old_libs=$enable_static
19825
19826 # Whether or not to add -lc for building shared libraries.
19827 build_libtool_need_lc=$archive_cmds_need_lc_RC
19828
19829 # Whether or not to disallow shared libs when runtime libs are static
19830 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19831
19832 # Whether or not to optimize for fast installation.
19833 fast_install=$enable_fast_install
19834
19835 # The host system.
19836 host_alias=$host_alias
19837 host=$host
19838 host_os=$host_os
19839
19840 # The build system.
19841 build_alias=$build_alias
19842 build=$build
19843 build_os=$build_os
19844
19845 # An echo program that does not interpret backslashes.
19846 echo=$lt_echo
19847
19848 # The archiver.
19849 AR=$lt_AR
19850 AR_FLAGS=$lt_AR_FLAGS
19851
19852 # A C compiler.
19853 LTCC=$lt_LTCC
19854
19855 # LTCC compiler flags.
19856 LTCFLAGS=$lt_LTCFLAGS
19857
19858 # A language-specific compiler.
19859 CC=$lt_compiler_RC
19860
19861 # Is the compiler the GNU C compiler?
19862 with_gcc=$GCC_RC
19863
19864 # An ERE matcher.
19865 EGREP=$lt_EGREP
19866
19867 # The linker used to build libraries.
19868 LD=$lt_LD_RC
19869
19870 # Whether we need hard or soft links.
19871 LN_S=$lt_LN_S
19872
19873 # A BSD-compatible nm program.
19874 NM=$lt_NM
19875
19876 # A symbol stripping program
19877 STRIP=$lt_STRIP
19878
19879 # Used to examine libraries when file_magic_cmd begins "file"
19880 MAGIC_CMD=$MAGIC_CMD
19881
19882 # Used on cygwin: DLL creation program.
19883 DLLTOOL="$DLLTOOL"
19884
19885 # Used on cygwin: object dumper.
19886 OBJDUMP="$OBJDUMP"
19887
19888 # Used on cygwin: assembler.
19889 AS="$AS"
19890
19891 # The name of the directory that contains temporary libtool files.
19892 objdir=$objdir
19893
19894 # How to create reloadable object files.
19895 reload_flag=$lt_reload_flag
19896 reload_cmds=$lt_reload_cmds
19897
19898 # How to pass a linker flag through the compiler.
19899 wl=$lt_lt_prog_compiler_wl_RC
19900
19901 # Object file suffix (normally "o").
19902 objext="$ac_objext"
19903
19904 # Old archive suffix (normally "a").
19905 libext="$libext"
19906
19907 # Shared library suffix (normally ".so").
19908 shrext_cmds='$shrext_cmds'
19909
19910 # Executable file suffix (normally "").
19911 exeext="$exeext"
19912
19913 # Additional compiler flags for building library objects.
19914 pic_flag=$lt_lt_prog_compiler_pic_RC
19915 pic_mode=$pic_mode
19916
19917 # What is the maximum length of a command?
19918 max_cmd_len=$lt_cv_sys_max_cmd_len
19919
19920 # Does compiler simultaneously support -c and -o options?
19921 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19922
19923 # Must we lock files when doing compilation?
19924 need_locks=$lt_need_locks
19925
19926 # Do we need the lib prefix for modules?
19927 need_lib_prefix=$need_lib_prefix
19928
19929 # Do we need a version for libraries?
19930 need_version=$need_version
19931
19932 # Whether dlopen is supported.
19933 dlopen_support=$enable_dlopen
19934
19935 # Whether dlopen of programs is supported.
19936 dlopen_self=$enable_dlopen_self
19937
19938 # Whether dlopen of statically linked programs is supported.
19939 dlopen_self_static=$enable_dlopen_self_static
19940
19941 # Compiler flag to prevent dynamic linking.
19942 link_static_flag=$lt_lt_prog_compiler_static_RC
19943
19944 # Compiler flag to turn off builtin functions.
19945 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19946
19947 # Compiler flag to allow reflexive dlopens.
19948 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19949
19950 # Compiler flag to generate shared objects directly from archives.
19951 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19952
19953 # Compiler flag to generate thread-safe objects.
19954 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19955
19956 # Library versioning type.
19957 version_type=$version_type
19958
19959 # Format of library name prefix.
19960 libname_spec=$lt_libname_spec
19961
19962 # List of archive names.  First name is the real one, the rest are links.
19963 # The last name is the one that the linker finds with -lNAME.
19964 library_names_spec=$lt_library_names_spec
19965
19966 # The coded name of the library, if different from the real name.
19967 soname_spec=$lt_soname_spec
19968
19969 # Commands used to build and install an old-style archive.
19970 RANLIB=$lt_RANLIB
19971 old_archive_cmds=$lt_old_archive_cmds_RC
19972 old_postinstall_cmds=$lt_old_postinstall_cmds
19973 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19974
19975 # Create an old-style archive from a shared archive.
19976 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19977
19978 # Create a temporary old-style archive to link instead of a shared archive.
19979 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19980
19981 # Commands used to build and install a shared archive.
19982 archive_cmds=$lt_archive_cmds_RC
19983 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19984 postinstall_cmds=$lt_postinstall_cmds
19985 postuninstall_cmds=$lt_postuninstall_cmds
19986
19987 # Commands used to build a loadable module (assumed same as above if empty)
19988 module_cmds=$lt_module_cmds_RC
19989 module_expsym_cmds=$lt_module_expsym_cmds_RC
19990
19991 # Commands to strip libraries.
19992 old_striplib=$lt_old_striplib
19993 striplib=$lt_striplib
19994
19995 # Dependencies to place before the objects being linked to create a
19996 # shared library.
19997 predep_objects=$lt_predep_objects_RC
19998
19999 # Dependencies to place after the objects being linked to create a
20000 # shared library.
20001 postdep_objects=$lt_postdep_objects_RC
20002
20003 # Dependencies to place before the objects being linked to create a
20004 # shared library.
20005 predeps=$lt_predeps_RC
20006
20007 # Dependencies to place after the objects being linked to create a
20008 # shared library.
20009 postdeps=$lt_postdeps_RC
20010
20011 # The library search path used internally by the compiler when linking
20012 # a shared library.
20013 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20014
20015 # Method to check whether dependent libraries are shared objects.
20016 deplibs_check_method=$lt_deplibs_check_method
20017
20018 # Command to use when deplibs_check_method == file_magic.
20019 file_magic_cmd=$lt_file_magic_cmd
20020
20021 # Flag that allows shared libraries with undefined symbols to be built.
20022 allow_undefined_flag=$lt_allow_undefined_flag_RC
20023
20024 # Flag that forces no undefined symbols.
20025 no_undefined_flag=$lt_no_undefined_flag_RC
20026
20027 # Commands used to finish a libtool library installation in a directory.
20028 finish_cmds=$lt_finish_cmds
20029
20030 # Same as above, but a single script fragment to be evaled but not shown.
20031 finish_eval=$lt_finish_eval
20032
20033 # Take the output of nm and produce a listing of raw symbols and C names.
20034 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20035
20036 # Transform the output of nm in a proper C declaration
20037 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20038
20039 # Transform the output of nm in a C name address pair
20040 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20041
20042 # This is the shared library runtime path variable.
20043 runpath_var=$runpath_var
20044
20045 # This is the shared library path variable.
20046 shlibpath_var=$shlibpath_var
20047
20048 # Is shlibpath searched before the hard-coded library search path?
20049 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20050
20051 # How to hardcode a shared library path into an executable.
20052 hardcode_action=$hardcode_action_RC
20053
20054 # Whether we should hardcode library paths into libraries.
20055 hardcode_into_libs=$hardcode_into_libs
20056
20057 # Flag to hardcode \$libdir into a binary during linking.
20058 # This must work even if \$libdir does not exist.
20059 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20060
20061 # If ld is used when linking, flag to hardcode \$libdir into
20062 # a binary during linking. This must work even if \$libdir does
20063 # not exist.
20064 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20065
20066 # Whether we need a single -rpath flag with a separated argument.
20067 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20068
20069 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20070 # resulting binary.
20071 hardcode_direct=$hardcode_direct_RC
20072
20073 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20074 # resulting binary.
20075 hardcode_minus_L=$hardcode_minus_L_RC
20076
20077 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20078 # the resulting binary.
20079 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20080
20081 # Set to yes if building a shared library automatically hardcodes DIR into the library
20082 # and all subsequent libraries and executables linked against it.
20083 hardcode_automatic=$hardcode_automatic_RC
20084
20085 # Variables whose values should be saved in libtool wrapper scripts and
20086 # restored at relink time.
20087 variables_saved_for_relink="$variables_saved_for_relink"
20088
20089 # Whether libtool must link a program against all its dependency libraries.
20090 link_all_deplibs=$link_all_deplibs_RC
20091
20092 # Compile-time system search path for libraries
20093 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20094
20095 # Run-time system search path for libraries
20096 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20097
20098 # Fix the shell variable \$srcfile for the compiler.
20099 fix_srcfile_path="$fix_srcfile_path_RC"
20100
20101 # Set to yes if exported symbols are required.
20102 always_export_symbols=$always_export_symbols_RC
20103
20104 # The commands to list exported symbols.
20105 export_symbols_cmds=$lt_export_symbols_cmds_RC
20106
20107 # The commands to extract the exported symbol list from a shared archive.
20108 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20109
20110 # Symbols that should not be listed in the preloaded symbols.
20111 exclude_expsyms=$lt_exclude_expsyms_RC
20112
20113 # Symbols that must always be exported.
20114 include_expsyms=$lt_include_expsyms_RC
20115
20116 # ### END LIBTOOL TAG CONFIG: $tagname
20117
20118 __EOF__
20119
20120
20121 else
20122   # If there is no Makefile yet, we rely on a make rule to execute
20123   # `config.status --recheck' to rerun these tests and create the
20124   # libtool script then.
20125   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20126   if test -f "$ltmain_in"; then
20127     test -f Makefile && make "$ltmain"
20128   fi
20129 fi
20130
20131
20132 ac_ext=c
20133 ac_cpp='$CPP $CPPFLAGS'
20134 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20135 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20136 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20137
20138 CC="$lt_save_CC"
20139
20140         ;;
20141
20142       *)
20143         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20144 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20145    { (exit 1); exit 1; }; }
20146         ;;
20147       esac
20148
20149       # Append the new tag name to the list of available tags.
20150       if test -n "$tagname" ; then
20151       available_tags="$available_tags $tagname"
20152     fi
20153     fi
20154   done
20155   IFS="$lt_save_ifs"
20156
20157   # Now substitute the updated list of available tags.
20158   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20159     mv "${ofile}T" "$ofile"
20160     chmod +x "$ofile"
20161   else
20162     rm -f "${ofile}T"
20163     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20164 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20165    { (exit 1); exit 1; }; }
20166   fi
20167 fi
20168
20169
20170
20171 # This can be used to rebuild libtool when needed
20172 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20173
20174 # Always use our own libtool.
20175 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20176
20177 # Prevent multiple expansion
20178
20179
20180
20181
20182
20183
20184
20185
20186
20187
20188
20189
20190
20191
20192
20193
20194
20195
20196
20197
20198
20199  if test "$enable_shared" = "yes"; then
20200   ENABLE_SHARED_TRUE=
20201   ENABLE_SHARED_FALSE='#'
20202 else
20203   ENABLE_SHARED_TRUE='#'
20204   ENABLE_SHARED_FALSE=
20205 fi
20206
20207
20208 { echo "$as_me:$LINENO: checking for ld --version-script" >&5
20209 echo $ECHO_N "checking for ld --version-script... $ECHO_C" >&6; }
20210 if test "${rk_cv_version_script+set}" = set; then
20211   echo $ECHO_N "(cached) $ECHO_C" >&6
20212 else
20213
20214   rk_cv_version_script=no
20215
20216   cat > conftest.map <<EOF
20217 HEIM_GSS_V1 {
20218         global: gss*;
20219 };
20220 HEIM_GSS_V1_1 {
20221         global: gss_init_creds;
20222 } HEIM_GSS_V1;
20223 EOF
20224 cat > conftest.c <<EOF
20225 int gss_init_creds(int foo) { return 0; }
20226 EOF
20227
20228   if { ac_try='${CC-cc} $CFLAGS $LDFLAGS -shared
20229                                -o conftest.so conftest.c
20230                                -Wl,--version-script,conftest.map'
20231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20232   (eval $ac_try) 2>&5
20233   ac_status=$?
20234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20235   (exit $ac_status); }; };
20236   then
20237     rk_cv_version_script=yes
20238   fi
20239 rm -f conftest*
20240
20241 fi
20242 { echo "$as_me:$LINENO: result: $rk_cv_version_script" >&5
20243 echo "${ECHO_T}$rk_cv_version_script" >&6; }
20244
20245 if test $rk_cv_version_script = yes ; then
20246   doversioning=yes
20247   LDFLAGS_VERSION_SCRIPT="-Wl,--version-script,"
20248 else
20249   doversioning=no
20250   LDFLAGS_VERSION_SCRIPT=
20251 fi
20252
20253
20254  if test $doversioning = yes; then
20255   versionscript_TRUE=
20256   versionscript_FALSE='#'
20257 else
20258   versionscript_TRUE='#'
20259   versionscript_FALSE=
20260 fi
20261
20262
20263
20264
20265
20266
20267
20268 # Check whether --with-openldap was given.
20269 if test "${with_openldap+set}" = set; then
20270   withval=$with_openldap;
20271 fi
20272
20273
20274 # Check whether --with-openldap-lib was given.
20275 if test "${with_openldap_lib+set}" = set; then
20276   withval=$with_openldap_lib; if test "$withval" = "yes" -o "$withval" = "no"; then
20277   { { echo "$as_me:$LINENO: error: No argument for --with-openldap-lib" >&5
20278 echo "$as_me: error: No argument for --with-openldap-lib" >&2;}
20279    { (exit 1); exit 1; }; }
20280 elif test "X$with_openldap" = "X"; then
20281   with_openldap=yes
20282 fi
20283 fi
20284
20285
20286 # Check whether --with-openldap-include was given.
20287 if test "${with_openldap_include+set}" = set; then
20288   withval=$with_openldap_include; if test "$withval" = "yes" -o "$withval" = "no"; then
20289   { { echo "$as_me:$LINENO: error: No argument for --with-openldap-include" >&5
20290 echo "$as_me: error: No argument for --with-openldap-include" >&2;}
20291    { (exit 1); exit 1; }; }
20292 elif test "X$with_openldap" = "X"; then
20293   with_openldap=yes
20294 fi
20295 fi
20296
20297
20298 # Check whether --with-openldap-config was given.
20299 if test "${with_openldap_config+set}" = set; then
20300   withval=$with_openldap_config;
20301 fi
20302
20303
20304
20305
20306 { echo "$as_me:$LINENO: checking for openldap" >&5
20307 echo $ECHO_N "checking for openldap... $ECHO_C" >&6; }
20308
20309 case "$with_openldap" in
20310 yes|"") d='' ;;
20311 no)     d= ;;
20312 *)      d="$with_openldap" ;;
20313 esac
20314
20315 header_dirs=
20316 lib_dirs=
20317 for i in $d; do
20318         if test "$with_openldap_include" = ""; then
20319                 if test -d "$i/include/openldap"; then
20320                         header_dirs="$header_dirs $i/include/openldap"
20321                 fi
20322                 if test -d "$i/include"; then
20323                         header_dirs="$header_dirs $i/include"
20324                 fi
20325         fi
20326         if test "$with_openldap_lib" = ""; then
20327                 if test -d "$i/lib$abilibdirext"; then
20328                         lib_dirs="$lib_dirs $i/lib$abilibdirext"
20329                 fi
20330         fi
20331 done
20332
20333 if test "$with_openldap_include"; then
20334         header_dirs="$with_openldap_include $header_dirs"
20335 fi
20336 if test "$with_openldap_lib"; then
20337         lib_dirs="$with_openldap_lib $lib_dirs"
20338 fi
20339
20340 if test "$with_openldap_config" = ""; then
20341         with_openldap_config=''
20342 fi
20343
20344 openldap_cflags=
20345 openldap_libs=
20346
20347 case "$with_openldap_config" in
20348 yes|no|""|"")
20349         if test -f $with_openldap/bin/ ; then
20350                 with_openldap_config=$with_openldap/bin/
20351         fi
20352         ;;
20353 esac
20354
20355 case "$with_openldap_config" in
20356 yes|no|"")
20357         ;;
20358 *)
20359         openldap_cflags="`$with_openldap_config --cflags 2>&1`"
20360         openldap_libs="`$with_openldap_config --libs 2>&1`"
20361         ;;
20362 esac
20363
20364 found=no
20365 if test "$with_openldap" != no; then
20366         save_CFLAGS="$CFLAGS"
20367         save_LIBS="$LIBS"
20368         if test "$openldap_cflags" -a "$openldap_libs"; then
20369                 CFLAGS="$openldap_cflags $save_CFLAGS"
20370                 LIBS="$openldap_libs $save_LIBS"
20371                 cat >conftest.$ac_ext <<_ACEOF
20372 /* confdefs.h.  */
20373 _ACEOF
20374 cat confdefs.h >>conftest.$ac_ext
20375 cat >>conftest.$ac_ext <<_ACEOF
20376 /* end confdefs.h.  */
20377 #include <lber.h>
20378 #include <ldap.h>
20379 int
20380 main ()
20381 {
20382
20383   ;
20384   return 0;
20385 }
20386 _ACEOF
20387 rm -f conftest.$ac_objext conftest$ac_exeext
20388 if { (ac_try="$ac_link"
20389 case "(($ac_try" in
20390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20391   *) ac_try_echo=$ac_try;;
20392 esac
20393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20394   (eval "$ac_link") 2>conftest.er1
20395   ac_status=$?
20396   grep -v '^ *+' conftest.er1 >conftest.err
20397   rm -f conftest.er1
20398   cat conftest.err >&5
20399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20400   (exit $ac_status); } && {
20401          test -z "$ac_c_werror_flag" ||
20402          test ! -s conftest.err
20403        } && test -s conftest$ac_exeext &&
20404        $as_test_x conftest$ac_exeext; then
20405
20406                         INCLUDE_openldap="$openldap_cflags"
20407                         LIB_openldap="$openldap_libs"
20408                         { echo "$as_me:$LINENO: result: from $with_openldap_config" >&5
20409 echo "${ECHO_T}from $with_openldap_config" >&6; }
20410                         found=yes
20411 else
20412   echo "$as_me: failed program was:" >&5
20413 sed 's/^/| /' conftest.$ac_ext >&5
20414
20415
20416 fi
20417
20418 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20419       conftest$ac_exeext conftest.$ac_ext
20420         fi
20421         if test "$found" = no; then
20422                 ires= lres=
20423                 for i in $header_dirs; do
20424                         CFLAGS="-I$i $save_CFLAGS"
20425                         cat >conftest.$ac_ext <<_ACEOF
20426 /* confdefs.h.  */
20427 _ACEOF
20428 cat confdefs.h >>conftest.$ac_ext
20429 cat >>conftest.$ac_ext <<_ACEOF
20430 /* end confdefs.h.  */
20431 #include <lber.h>
20432 #include <ldap.h>
20433 int
20434 main ()
20435 {
20436
20437   ;
20438   return 0;
20439 }
20440 _ACEOF
20441 rm -f conftest.$ac_objext
20442 if { (ac_try="$ac_compile"
20443 case "(($ac_try" in
20444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20445   *) ac_try_echo=$ac_try;;
20446 esac
20447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20448   (eval "$ac_compile") 2>conftest.er1
20449   ac_status=$?
20450   grep -v '^ *+' conftest.er1 >conftest.err
20451   rm -f conftest.er1
20452   cat conftest.err >&5
20453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20454   (exit $ac_status); } && {
20455          test -z "$ac_c_werror_flag" ||
20456          test ! -s conftest.err
20457        } && test -s conftest.$ac_objext; then
20458   ires=$i;break
20459 else
20460   echo "$as_me: failed program was:" >&5
20461 sed 's/^/| /' conftest.$ac_ext >&5
20462
20463
20464 fi
20465
20466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20467                 done
20468                 for i in $lib_dirs; do
20469                         LIBS="-L$i -lldap -llber  $save_LIBS"
20470                         cat >conftest.$ac_ext <<_ACEOF
20471 /* confdefs.h.  */
20472 _ACEOF
20473 cat confdefs.h >>conftest.$ac_ext
20474 cat >>conftest.$ac_ext <<_ACEOF
20475 /* end confdefs.h.  */
20476 #include <lber.h>
20477 #include <ldap.h>
20478 int
20479 main ()
20480 {
20481
20482   ;
20483   return 0;
20484 }
20485 _ACEOF
20486 rm -f conftest.$ac_objext conftest$ac_exeext
20487 if { (ac_try="$ac_link"
20488 case "(($ac_try" in
20489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20490   *) ac_try_echo=$ac_try;;
20491 esac
20492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20493   (eval "$ac_link") 2>conftest.er1
20494   ac_status=$?
20495   grep -v '^ *+' conftest.er1 >conftest.err
20496   rm -f conftest.er1
20497   cat conftest.err >&5
20498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20499   (exit $ac_status); } && {
20500          test -z "$ac_c_werror_flag" ||
20501          test ! -s conftest.err
20502        } && test -s conftest$ac_exeext &&
20503        $as_test_x conftest$ac_exeext; then
20504   lres=$i;break
20505 else
20506   echo "$as_me: failed program was:" >&5
20507 sed 's/^/| /' conftest.$ac_ext >&5
20508
20509
20510 fi
20511
20512 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20513       conftest$ac_exeext conftest.$ac_ext
20514                 done
20515                 if test "$ires" -a "$lres" -a "$with_openldap" != "no"; then
20516                         INCLUDE_openldap="-I$ires"
20517                         LIB_openldap="-L$lres -lldap -llber "
20518                         found=yes
20519                         { echo "$as_me:$LINENO: result: headers $ires, libraries $lres" >&5
20520 echo "${ECHO_T}headers $ires, libraries $lres" >&6; }
20521                 fi
20522         fi
20523         CFLAGS="$save_CFLAGS"
20524         LIBS="$save_LIBS"
20525 fi
20526
20527 if test "$found" = yes; then
20528
20529 cat >>confdefs.h <<_ACEOF
20530 #define OPENLDAP 1
20531 _ACEOF
20532
20533         with_openldap=yes
20534 else
20535         with_openldap=no
20536         INCLUDE_openldap=
20537         LIB_openldap=
20538         { echo "$as_me:$LINENO: result: no" >&5
20539 echo "${ECHO_T}no" >&6; }
20540 fi
20541
20542
20543
20544
20545
20546 # Check whether --enable-hdb-openldap-module was given.
20547 if test "${enable_hdb_openldap_module+set}" = set; then
20548   enableval=$enable_hdb_openldap_module;
20549 fi
20550
20551 if test "$enable_hdb_openldap_module" = yes -a "$with_openldap" = yes; then
20552
20553 cat >>confdefs.h <<\_ACEOF
20554 #define OPENLDAP_MODULE 1
20555 _ACEOF
20556
20557 fi
20558  if test "$enable_hdb_openldap_module" = yes -a "$with_openldap" = yes; then
20559   OPENLDAP_MODULE_TRUE=
20560   OPENLDAP_MODULE_FALSE='#'
20561 else
20562   OPENLDAP_MODULE_TRUE='#'
20563   OPENLDAP_MODULE_FALSE=
20564 fi
20565
20566
20567 # Check whether --enable-pk-init was given.
20568 if test "${enable_pk_init+set}" = set; then
20569   enableval=$enable_pk_init;
20570 fi
20571
20572 if test "$enable_pk_init" != no ;then
20573
20574 cat >>confdefs.h <<\_ACEOF
20575 #define PKINIT 1
20576 _ACEOF
20577
20578 fi
20579  if test "$enable_pk_init" != no; then
20580   PKINIT_TRUE=
20581   PKINIT_FALSE='#'
20582 else
20583   PKINIT_TRUE='#'
20584   PKINIT_FALSE=
20585 fi
20586
20587
20588
20589
20590 # Check whether --with-hdbdir was given.
20591 if test "${with_hdbdir+set}" = set; then
20592   withval=$with_hdbdir;
20593 else
20594   with_hdbdir=/var/heimdal
20595 fi
20596
20597 DIR_hdbdir="$with_hdbdir"
20598
20599
20600
20601 with_krb4=no
20602
20603
20604  if false; then
20605   KRB4_TRUE=
20606   KRB4_FALSE='#'
20607 else
20608   KRB4_TRUE='#'
20609   KRB4_FALSE=
20610 fi
20611
20612
20613  if true; then
20614   KRB5_TRUE=
20615   KRB5_FALSE='#'
20616 else
20617   KRB5_TRUE='#'
20618   KRB5_FALSE=
20619 fi
20620
20621  if true; then
20622   do_roken_rename_TRUE=
20623   do_roken_rename_FALSE='#'
20624 else
20625   do_roken_rename_TRUE='#'
20626   do_roken_rename_FALSE=
20627 fi
20628
20629
20630
20631 cat >>confdefs.h <<\_ACEOF
20632 #define KRB5 1
20633 _ACEOF
20634
20635
20636 crypto_lib=unknown
20637
20638
20639 # Check whether --with-openssl was given.
20640 if test "${with_openssl+set}" = set; then
20641   withval=$with_openssl;
20642 fi
20643
20644
20645
20646 # Check whether --with-openssl-lib was given.
20647 if test "${with_openssl_lib+set}" = set; then
20648   withval=$with_openssl_lib; if test "$withval" = "yes" -o "$withval" = "no"; then
20649   { { echo "$as_me:$LINENO: error: No argument for --with-openssl-lib" >&5
20650 echo "$as_me: error: No argument for --with-openssl-lib" >&2;}
20651    { (exit 1); exit 1; }; }
20652 elif test "X$with_openssl" = "X"; then
20653   with_openssl=yes
20654 fi
20655 fi
20656
20657
20658
20659 # Check whether --with-openssl-include was given.
20660 if test "${with_openssl_include+set}" = set; then
20661   withval=$with_openssl_include; if test "$withval" = "yes" -o "$withval" = "no"; then
20662   { { echo "$as_me:$LINENO: error: No argument for --with-openssl-include" >&5
20663 echo "$as_me: error: No argument for --with-openssl-include" >&2;}
20664    { (exit 1); exit 1; }; }
20665 elif test "X$with_openssl" = "X"; then
20666   with_openssl=yes
20667 fi
20668 fi
20669
20670
20671 case "$with_openssl" in
20672 yes)    ;;
20673 no)     ;;
20674 "")     ;;
20675 *)      if test "$with_openssl_include" = ""; then
20676                 with_openssl_include="$with_openssl/include"
20677         fi
20678         if test "$with_openssl_lib" = ""; then
20679                 with_openssl_lib="$with_openssl/lib$abilibdirext"
20680         fi
20681         ;;
20682 esac
20683
20684
20685 DIR_hcrypto=
20686
20687 { echo "$as_me:$LINENO: checking for crypto library" >&5
20688 echo $ECHO_N "checking for crypto library... $ECHO_C" >&6; }
20689
20690 openssl=no
20691
20692 if test "$crypto_lib" = "unknown" -a "$with_krb4" != "no"; then
20693         save_CPPFLAGS="$CPPFLAGS"
20694         save_LIBS="$LIBS"
20695
20696         cdirs= clibs=
20697         for i in $LIB_krb4; do
20698                 case "$i" in
20699                 -L*) cdirs="$cdirs $i";;
20700                 -l*) clibs="$clibs $i";;
20701                 esac
20702         done
20703
20704         ires=
20705         for i in $INCLUDE_krb4; do
20706                 CFLAGS="-DHAVE_OPENSSL $i $save_CFLAGS"
20707                 for j in $cdirs; do
20708                         for k in $clibs; do
20709                                 LIBS="$j $k $save_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                 #undef KRB5 /* makes md4.h et al unhappy */
20718                 #ifdef HAVE_OPENSSL
20719                 #ifdef HAVE_SYS_TYPES_H
20720                 #include <sys/types.h>
20721                 #endif
20722                 #include <openssl/evp.h>
20723                 #include <openssl/md4.h>
20724                 #include <openssl/md5.h>
20725                 #include <openssl/sha.h>
20726                 #include <openssl/des.h>
20727                 #include <openssl/rc4.h>
20728                 #include <openssl/aes.h>
20729                 #include <openssl/engine.h>
20730                 #include <openssl/ui.h>
20731                 #include <openssl/rand.h>
20732                 #include <openssl/hmac.h>
20733                 #include <openssl/pkcs12.h>
20734                 #else
20735                 #include <hcrypto/evp.h>
20736                 #include <hcrypto/md4.h>
20737                 #include <hcrypto/md5.h>
20738                 #include <hcrypto/sha.h>
20739                 #include <hcrypto/des.h>
20740                 #include <hcrypto/rc4.h>
20741                 #include <hcrypto/aes.h>
20742                 #include <hcrypto/engine.h>
20743                 #include <hcrypto/hmac.h>
20744                 #include <hcrypto/pkcs12.h>
20745                 #endif
20746
20747 int
20748 main ()
20749 {
20750
20751                 void *schedule = 0;
20752                 MD4_CTX md4;
20753                 MD5_CTX md5;
20754                 SHA_CTX sha1;
20755                 SHA256_CTX sha256;
20756
20757                 MD4_Init(&md4);
20758                 MD5_Init(&md5);
20759                 SHA1_Init(&sha1);
20760                 SHA256_Init(&sha256);
20761                 EVP_CIPHER_iv_length(((EVP_CIPHER*)0));
20762                 #ifdef HAVE_OPENSSL
20763                 RAND_status();
20764                 UI_UTIL_read_pw_string(0,0,0,0);
20765                 #endif
20766
20767                 OpenSSL_add_all_algorithms();
20768                 AES_encrypt(0,0,0);
20769                 DES_cbc_encrypt(0, 0, 0, schedule, 0, 0);
20770                 RC4(0, 0, 0, 0);
20771   ;
20772   return 0;
20773 }
20774 _ACEOF
20775 rm -f conftest.$ac_objext conftest$ac_exeext
20776 if { (ac_try="$ac_link"
20777 case "(($ac_try" in
20778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20779   *) ac_try_echo=$ac_try;;
20780 esac
20781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20782   (eval "$ac_link") 2>conftest.er1
20783   ac_status=$?
20784   grep -v '^ *+' conftest.er1 >conftest.err
20785   rm -f conftest.er1
20786   cat conftest.err >&5
20787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20788   (exit $ac_status); } && {
20789          test -z "$ac_c_werror_flag" ||
20790          test ! -s conftest.err
20791        } && test -s conftest$ac_exeext &&
20792        $as_test_x conftest$ac_exeext; then
20793   openssl=yes ires="$i" lres="$j $k"; break 3
20794 else
20795   echo "$as_me: failed program was:" >&5
20796 sed 's/^/| /' conftest.$ac_ext >&5
20797
20798
20799 fi
20800
20801 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20802       conftest$ac_exeext conftest.$ac_ext
20803                         done
20804                 done
20805                 CFLAGS="$i $save_CFLAGS"
20806                 for j in $cdirs; do
20807                         for k in $clibs; do
20808                                 LIBS="$j $k $save_LIBS"
20809                                 cat >conftest.$ac_ext <<_ACEOF
20810 /* confdefs.h.  */
20811 _ACEOF
20812 cat confdefs.h >>conftest.$ac_ext
20813 cat >>conftest.$ac_ext <<_ACEOF
20814 /* end confdefs.h.  */
20815
20816                 #undef KRB5 /* makes md4.h et al unhappy */
20817                 #ifdef HAVE_OPENSSL
20818                 #ifdef HAVE_SYS_TYPES_H
20819                 #include <sys/types.h>
20820                 #endif
20821                 #include <openssl/evp.h>
20822                 #include <openssl/md4.h>
20823                 #include <openssl/md5.h>
20824                 #include <openssl/sha.h>
20825                 #include <openssl/des.h>
20826                 #include <openssl/rc4.h>
20827                 #include <openssl/aes.h>
20828                 #include <openssl/engine.h>
20829                 #include <openssl/ui.h>
20830                 #include <openssl/rand.h>
20831                 #include <openssl/hmac.h>
20832                 #include <openssl/pkcs12.h>
20833                 #else
20834                 #include <hcrypto/evp.h>
20835                 #include <hcrypto/md4.h>
20836                 #include <hcrypto/md5.h>
20837                 #include <hcrypto/sha.h>
20838                 #include <hcrypto/des.h>
20839                 #include <hcrypto/rc4.h>
20840                 #include <hcrypto/aes.h>
20841                 #include <hcrypto/engine.h>
20842                 #include <hcrypto/hmac.h>
20843                 #include <hcrypto/pkcs12.h>
20844                 #endif
20845
20846 int
20847 main ()
20848 {
20849
20850                 void *schedule = 0;
20851                 MD4_CTX md4;
20852                 MD5_CTX md5;
20853                 SHA_CTX sha1;
20854                 SHA256_CTX sha256;
20855
20856                 MD4_Init(&md4);
20857                 MD5_Init(&md5);
20858                 SHA1_Init(&sha1);
20859                 SHA256_Init(&sha256);
20860                 EVP_CIPHER_iv_length(((EVP_CIPHER*)0));
20861                 #ifdef HAVE_OPENSSL
20862                 RAND_status();
20863                 UI_UTIL_read_pw_string(0,0,0,0);
20864                 #endif
20865
20866                 OpenSSL_add_all_algorithms();
20867                 AES_encrypt(0,0,0);
20868                 DES_cbc_encrypt(0, 0, 0, schedule, 0, 0);
20869                 RC4(0, 0, 0, 0);
20870   ;
20871   return 0;
20872 }
20873 _ACEOF
20874 rm -f conftest.$ac_objext conftest$ac_exeext
20875 if { (ac_try="$ac_link"
20876 case "(($ac_try" in
20877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20878   *) ac_try_echo=$ac_try;;
20879 esac
20880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20881   (eval "$ac_link") 2>conftest.er1
20882   ac_status=$?
20883   grep -v '^ *+' conftest.er1 >conftest.err
20884   rm -f conftest.er1
20885   cat conftest.err >&5
20886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20887   (exit $ac_status); } && {
20888          test -z "$ac_c_werror_flag" ||
20889          test ! -s conftest.err
20890        } && test -s conftest$ac_exeext &&
20891        $as_test_x conftest$ac_exeext; then
20892   openssl=no ires="$i" lres="$j $k"; break 3
20893 else
20894   echo "$as_me: failed program was:" >&5
20895 sed 's/^/| /' conftest.$ac_ext >&5
20896
20897
20898 fi
20899
20900 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20901       conftest$ac_exeext conftest.$ac_ext
20902                         done
20903                 done
20904         done
20905
20906         CFLAGS="$save_CFLAGS"
20907         LIBS="$save_LIBS"
20908         if test "$ires" -a "$lres"; then
20909                 INCLUDE_hcrypto="$ires"
20910                 LIB_hcrypto="$lres"
20911                 crypto_lib=krb4
20912                 { echo "$as_me:$LINENO: result: same as krb4" >&5
20913 echo "${ECHO_T}same as krb4" >&6; }
20914                 LIB_hcrypto_a='$(LIB_hcrypto)'
20915                 LIB_hcrypto_so='$(LIB_hcrypto)'
20916                 LIB_hcrypto_appl='$(LIB_hcrypto)'
20917         fi
20918 fi
20919
20920 if test "$crypto_lib" = "unknown" -a "$with_openssl" != "no"; then
20921         save_CFLAGS="$CFLAGS"
20922         save_LIBS="$LIBS"
20923         INCLUDE_hcrypto=
20924         LIB_hcrypto=
20925         if test "$with_openssl_include" != ""; then
20926                 INCLUDE_hcrypto="-I${with_openssl_include}"
20927         fi
20928         if test "$with_openssl_lib" != ""; then
20929                 LIB_hcrypto="-L${with_openssl_lib}"
20930         fi
20931         CFLAGS="-DHAVE_OPENSSL ${INCLUDE_hcrypto} ${CFLAGS}"
20932         saved_LIB_hcrypto="$LIB_hcrypto"
20933         for lres in "" "-ldl" "-lnsl -lsocket" "-lnsl -lsocket -ldl"; do
20934                 LIB_hcrypto="${saved_LIB_hcrypto} -lcrypto $lres"
20935                 LIB_hcrypto_a="$LIB_hcrypto"
20936                 LIB_hcrypto_so="$LIB_hcrypto"
20937                 LIB_hcrypto_appl="$LIB_hcrypto"
20938                 LIBS="${LIBS} ${LIB_hcrypto}"
20939                 cat >conftest.$ac_ext <<_ACEOF
20940 /* confdefs.h.  */
20941 _ACEOF
20942 cat confdefs.h >>conftest.$ac_ext
20943 cat >>conftest.$ac_ext <<_ACEOF
20944 /* end confdefs.h.  */
20945
20946                 #undef KRB5 /* makes md4.h et al unhappy */
20947                 #ifdef HAVE_OPENSSL
20948                 #ifdef HAVE_SYS_TYPES_H
20949                 #include <sys/types.h>
20950                 #endif
20951                 #include <openssl/evp.h>
20952                 #include <openssl/md4.h>
20953                 #include <openssl/md5.h>
20954                 #include <openssl/sha.h>
20955                 #include <openssl/des.h>
20956                 #include <openssl/rc4.h>
20957                 #include <openssl/aes.h>
20958                 #include <openssl/engine.h>
20959                 #include <openssl/ui.h>
20960                 #include <openssl/rand.h>
20961                 #include <openssl/hmac.h>
20962                 #include <openssl/pkcs12.h>
20963                 #else
20964                 #include <hcrypto/evp.h>
20965                 #include <hcrypto/md4.h>
20966                 #include <hcrypto/md5.h>
20967                 #include <hcrypto/sha.h>
20968                 #include <hcrypto/des.h>
20969                 #include <hcrypto/rc4.h>
20970                 #include <hcrypto/aes.h>
20971                 #include <hcrypto/engine.h>
20972                 #include <hcrypto/hmac.h>
20973                 #include <hcrypto/pkcs12.h>
20974                 #endif
20975
20976 int
20977 main ()
20978 {
20979
20980                 void *schedule = 0;
20981                 MD4_CTX md4;
20982                 MD5_CTX md5;
20983                 SHA_CTX sha1;
20984                 SHA256_CTX sha256;
20985
20986                 MD4_Init(&md4);
20987                 MD5_Init(&md5);
20988                 SHA1_Init(&sha1);
20989                 SHA256_Init(&sha256);
20990                 EVP_CIPHER_iv_length(((EVP_CIPHER*)0));
20991                 #ifdef HAVE_OPENSSL
20992                 RAND_status();
20993                 UI_UTIL_read_pw_string(0,0,0,0);
20994                 #endif
20995
20996                 OpenSSL_add_all_algorithms();
20997                 AES_encrypt(0,0,0);
20998                 DES_cbc_encrypt(0, 0, 0, schedule, 0, 0);
20999                 RC4(0, 0, 0, 0);
21000   ;
21001   return 0;
21002 }
21003 _ACEOF
21004 rm -f conftest.$ac_objext conftest$ac_exeext
21005 if { (ac_try="$ac_link"
21006 case "(($ac_try" in
21007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21008   *) ac_try_echo=$ac_try;;
21009 esac
21010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21011   (eval "$ac_link") 2>conftest.er1
21012   ac_status=$?
21013   grep -v '^ *+' conftest.er1 >conftest.err
21014   rm -f conftest.er1
21015   cat conftest.err >&5
21016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21017   (exit $ac_status); } && {
21018          test -z "$ac_c_werror_flag" ||
21019          test ! -s conftest.err
21020        } && test -s conftest$ac_exeext &&
21021        $as_test_x conftest$ac_exeext; then
21022
21023                         crypto_lib=libcrypto openssl=yes
21024                         { echo "$as_me:$LINENO: result: libcrypto" >&5
21025 echo "${ECHO_T}libcrypto" >&6; }
21026
21027 else
21028   echo "$as_me: failed program was:" >&5
21029 sed 's/^/| /' conftest.$ac_ext >&5
21030
21031
21032 fi
21033
21034 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21035       conftest$ac_exeext conftest.$ac_ext
21036                 if test "$crypto_lib" = libcrypto ; then
21037                         break;
21038                 fi
21039         done
21040         CFLAGS="$save_CFLAGS"
21041         LIBS="$save_LIBS"
21042 fi
21043
21044 if test "$crypto_lib" = "unknown"; then
21045
21046   DIR_hcrypto='hcrypto'
21047   LIB_hcrypto='$(top_builddir)/lib/hcrypto/libhcrypto.la'
21048   LIB_hcrypto_a='$(top_builddir)/lib/hcrypto/.libs/libhcrypto.a'
21049   LIB_hcrypto_so='$(top_builddir)/lib/hcrypto/.libs/libhcrypto.so'
21050   LIB_hcrypto_appl="-lhcrypto"
21051
21052   { echo "$as_me:$LINENO: result: included libhcrypto" >&5
21053 echo "${ECHO_T}included libhcrypto" >&6; }
21054
21055 fi
21056
21057 if test "$with_krb4" != no -a "$crypto_lib" != krb4; then
21058         { { echo "$as_me:$LINENO: error: the crypto library used by krb4 lacks features
21059 required by Kerberos 5; to continue, you need to install a newer
21060 Kerberos 4 or configure --without-krb4" >&5
21061 echo "$as_me: error: the crypto library used by krb4 lacks features
21062 required by Kerberos 5; to continue, you need to install a newer
21063 Kerberos 4 or configure --without-krb4" >&2;}
21064    { (exit 1); exit 1; }; }
21065 fi
21066
21067 if test "$openssl" = "yes"; then
21068
21069 cat >>confdefs.h <<\_ACEOF
21070 #define HAVE_OPENSSL 1
21071 _ACEOF
21072
21073 fi
21074  if test "$openssl" = yes; then
21075   HAVE_OPENSSL_TRUE=
21076   HAVE_OPENSSL_FALSE='#'
21077 else
21078   HAVE_OPENSSL_TRUE='#'
21079   HAVE_OPENSSL_FALSE=
21080 fi
21081
21082
21083
21084
21085
21086
21087
21088
21089
21090
21091 { echo "$as_me:$LINENO: checking if compiling threadsafe libraries" >&5
21092 echo $ECHO_N "checking if compiling threadsafe libraries... $ECHO_C" >&6; }
21093
21094 # Check whether --enable-pthread-support was given.
21095 if test "${enable_pthread_support+set}" = set; then
21096   enableval=$enable_pthread_support;
21097 else
21098   enable_pthread_support=maybe
21099 fi
21100
21101
21102 case "$host" in
21103 *-*-solaris2*)
21104         native_pthread_support=yes
21105         if test "$GCC" = yes; then
21106                 PTHREADS_CFLAGS=-pthreads
21107                 PTHREADS_LIBS=-pthreads
21108         else
21109                 PTHREADS_CFLAGS=-mt
21110                 PTHREADS_LIBS=-mt
21111         fi
21112         ;;
21113 *-*-netbsd*)
21114         native_pthread_support="if running netbsd 1.6T or newer"
21115                 PTHREADS_LIBS=""
21116         ;;
21117 *-*-freebsd5*)
21118         native_pthread_support=yes
21119         ;;
21120 *-*-linux* | *-*-linux-gnu)
21121         case `uname -r` in
21122         2.*)
21123                 native_pthread_support=yes
21124                 PTHREADS_CFLAGS=-pthread
21125                 PTHREADS_LIBS=-pthread
21126                 ;;
21127         esac
21128         ;;
21129 *-*-aix*)
21130                         native_pthread_support=no
21131         ;;
21132 mips-sgi-irix6.[5-9])  # maybe works for earlier versions too
21133         native_pthread_support=yes
21134         PTHREADS_LIBS="-lpthread"
21135         ;;
21136 *-*-darwin*)
21137         native_pthread_support=yes
21138         ;;
21139 *)
21140         native_pthread_support=no
21141         ;;
21142 esac
21143
21144 if test "$enable_pthread_support" = maybe ; then
21145         enable_pthread_support="$native_pthread_support"
21146 fi
21147
21148 if test "$enable_pthread_support" != no; then
21149
21150 cat >>confdefs.h <<\_ACEOF
21151 #define ENABLE_PTHREAD_SUPPORT 1
21152 _ACEOF
21153
21154             LIBS="$PTHREADS_LIBS $LIBS"
21155 else
21156   PTHREADS_CFLAGS=""
21157   PTHREADS_LIBS=""
21158 fi
21159
21160
21161
21162
21163 { echo "$as_me:$LINENO: result: $enable_pthread_support" >&5
21164 echo "${ECHO_T}$enable_pthread_support" >&6; }
21165
21166
21167 # Check whether --enable-dce was given.
21168 if test "${enable_dce+set}" = set; then
21169   enableval=$enable_dce;
21170 fi
21171
21172 if test "$enable_dce" = yes; then
21173
21174 cat >>confdefs.h <<\_ACEOF
21175 #define DCE 1
21176 _ACEOF
21177
21178 fi
21179  if test "$enable_dce" = yes; then
21180   DCE_TRUE=
21181   DCE_FALSE='#'
21182 else
21183   DCE_TRUE='#'
21184   DCE_FALSE=
21185 fi
21186
21187
21188 ## XXX quite horrible:
21189 if test -f /etc/ibmcxx.cfg; then
21190         dpagaix_ldadd=`sed -n '/^xlc_r4/,/^$/p' /etc/ibmcxx.cfg | sed -n -e '/libraries/{;s/^[^=]*=\(.*\)/\1/;s/,/ /gp;}'`
21191         dpagaix_cflags=`sed -n '/^xlc_r4/,/^$/p' /etc/ibmcxx.cfg | sed -n -e '/options/{;s/^[^=]*=\(.*\)/\1/;s/-q^,*//;s/,/ /gp;}'`
21192         dpagaix_ldflags=
21193 else
21194         dpagaix_cflags="-D_THREAD_SAFE -D_AIX_PTHREADS_D7 -D_AIX32_THREADS=1 -D_AES_SOURCE -D_AIX41 -I/usr/include/dce"
21195         dpagaix_ldadd="-L/usr/lib/threads -ldcelibc_r -ldcepthreads -lpthreads_compat lpthreads -lc_r"
21196         dpagaix_ldflags="-Wl,-bI:dfspag.exp"
21197 fi
21198
21199
21200
21201
21202 # Check whether --enable-afs-support was given.
21203 if test "${enable_afs_support+set}" = set; then
21204   enableval=$enable_afs_support;
21205 fi
21206
21207 if test "$enable_afs_support" = no; then
21208
21209 cat >>confdefs.h <<\_ACEOF
21210 #define NO_AFS 1
21211 _ACEOF
21212
21213 fi
21214
21215
21216 # Check whether --enable-berkeley-db was given.
21217 if test "${enable_berkeley_db+set}" = set; then
21218   enableval=$enable_berkeley_db;
21219
21220 fi
21221
21222
21223 # Check whether --enable-ndbm-db was given.
21224 if test "${enable_ndbm_db+set}" = set; then
21225   enableval=$enable_ndbm_db;
21226
21227 fi
21228
21229
21230 have_ndbm=no
21231 db_type=unknown
21232
21233 if test "$enable_berkeley_db" != no; then
21234
21235
21236
21237
21238
21239 for ac_header in                                \
21240         db4/db.h                                \
21241         db3/db.h                                \
21242         db.h                                    \
21243         db_185.h                                \
21244
21245 do
21246 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21247 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21248   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21249 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21250 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21251   echo $ECHO_N "(cached) $ECHO_C" >&6
21252 fi
21253 ac_res=`eval echo '${'$as_ac_Header'}'`
21254                { echo "$as_me:$LINENO: result: $ac_res" >&5
21255 echo "${ECHO_T}$ac_res" >&6; }
21256 else
21257   # Is the header compilable?
21258 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21259 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21260 cat >conftest.$ac_ext <<_ACEOF
21261 /* confdefs.h.  */
21262 _ACEOF
21263 cat confdefs.h >>conftest.$ac_ext
21264 cat >>conftest.$ac_ext <<_ACEOF
21265 /* end confdefs.h.  */
21266 $ac_includes_default
21267 #include <$ac_header>
21268 _ACEOF
21269 rm -f conftest.$ac_objext
21270 if { (ac_try="$ac_compile"
21271 case "(($ac_try" in
21272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21273   *) ac_try_echo=$ac_try;;
21274 esac
21275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21276   (eval "$ac_compile") 2>conftest.er1
21277   ac_status=$?
21278   grep -v '^ *+' conftest.er1 >conftest.err
21279   rm -f conftest.er1
21280   cat conftest.err >&5
21281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21282   (exit $ac_status); } && {
21283          test -z "$ac_c_werror_flag" ||
21284          test ! -s conftest.err
21285        } && test -s conftest.$ac_objext; then
21286   ac_header_compiler=yes
21287 else
21288   echo "$as_me: failed program was:" >&5
21289 sed 's/^/| /' conftest.$ac_ext >&5
21290
21291         ac_header_compiler=no
21292 fi
21293
21294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21295 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21296 echo "${ECHO_T}$ac_header_compiler" >&6; }
21297
21298 # Is the header present?
21299 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21300 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21301 cat >conftest.$ac_ext <<_ACEOF
21302 /* confdefs.h.  */
21303 _ACEOF
21304 cat confdefs.h >>conftest.$ac_ext
21305 cat >>conftest.$ac_ext <<_ACEOF
21306 /* end confdefs.h.  */
21307 #include <$ac_header>
21308 _ACEOF
21309 if { (ac_try="$ac_cpp conftest.$ac_ext"
21310 case "(($ac_try" in
21311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21312   *) ac_try_echo=$ac_try;;
21313 esac
21314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21315   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21316   ac_status=$?
21317   grep -v '^ *+' conftest.er1 >conftest.err
21318   rm -f conftest.er1
21319   cat conftest.err >&5
21320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21321   (exit $ac_status); } >/dev/null && {
21322          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21323          test ! -s conftest.err
21324        }; then
21325   ac_header_preproc=yes
21326 else
21327   echo "$as_me: failed program was:" >&5
21328 sed 's/^/| /' conftest.$ac_ext >&5
21329
21330   ac_header_preproc=no
21331 fi
21332
21333 rm -f conftest.err conftest.$ac_ext
21334 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21335 echo "${ECHO_T}$ac_header_preproc" >&6; }
21336
21337 # So?  What about this header?
21338 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21339   yes:no: )
21340     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21341 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21342     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21343 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21344     ac_header_preproc=yes
21345     ;;
21346   no:yes:* )
21347     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21348 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21349     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21350 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21351     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21352 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21353     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21354 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21355     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21356 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21357     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21358 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21359     ( cat <<\_ASBOX
21360 ## ----------------------------------- ##
21361 ## Report this to heimdal-bugs@h5l.org ##
21362 ## ----------------------------------- ##
21363 _ASBOX
21364      ) | sed "s/^/$as_me: WARNING:     /" >&2
21365     ;;
21366 esac
21367 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21368 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21369 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21370   echo $ECHO_N "(cached) $ECHO_C" >&6
21371 else
21372   eval "$as_ac_Header=\$ac_header_preproc"
21373 fi
21374 ac_res=`eval echo '${'$as_ac_Header'}'`
21375                { echo "$as_me:$LINENO: result: $ac_res" >&5
21376 echo "${ECHO_T}$ac_res" >&6; }
21377
21378 fi
21379 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21380   cat >>confdefs.h <<_ACEOF
21381 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21382 _ACEOF
21383
21384 fi
21385
21386 done
21387
21388
21389
21390
21391
21392
21393 { echo "$as_me:$LINENO: checking for db_create" >&5
21394 echo $ECHO_N "checking for db_create... $ECHO_C" >&6; }
21395 if test "${ac_cv_funclib_db_create+set}" = set; then
21396   echo $ECHO_N "(cached) $ECHO_C" >&6
21397 else
21398
21399 if eval "test \"\$ac_cv_func_db_create\" != yes" ; then
21400         ac_save_LIBS="$LIBS"
21401         for ac_lib in "" db4 db3 db; do
21402                 case "$ac_lib" in
21403                 "") ;;
21404                 yes) ac_lib="" ;;
21405                 no) continue ;;
21406                 -l*) ;;
21407                 *) ac_lib="-l$ac_lib" ;;
21408                 esac
21409                 LIBS=" $ac_lib  $ac_save_LIBS"
21410                 cat >conftest.$ac_ext <<_ACEOF
21411 /* confdefs.h.  */
21412 _ACEOF
21413 cat confdefs.h >>conftest.$ac_ext
21414 cat >>conftest.$ac_ext <<_ACEOF
21415 /* end confdefs.h.  */
21416
21417   #include <stdio.h>
21418   #ifdef HAVE_DB4_DB_H
21419   #include <db4/db.h>
21420   #elif defined(HAVE_DB3_DB_H)
21421   #include <db3/db.h>
21422   #else
21423   #include <db.h>
21424   #endif
21425
21426 int
21427 main ()
21428 {
21429 db_create(NULL, NULL, 0)
21430   ;
21431   return 0;
21432 }
21433 _ACEOF
21434 rm -f conftest.$ac_objext conftest$ac_exeext
21435 if { (ac_try="$ac_link"
21436 case "(($ac_try" in
21437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21438   *) ac_try_echo=$ac_try;;
21439 esac
21440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21441   (eval "$ac_link") 2>conftest.er1
21442   ac_status=$?
21443   grep -v '^ *+' conftest.er1 >conftest.err
21444   rm -f conftest.er1
21445   cat conftest.err >&5
21446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21447   (exit $ac_status); } && {
21448          test -z "$ac_c_werror_flag" ||
21449          test ! -s conftest.err
21450        } && test -s conftest$ac_exeext &&
21451        $as_test_x conftest$ac_exeext; then
21452   eval "if test -n \"$ac_lib\";then ac_cv_funclib_db_create=$ac_lib; else ac_cv_funclib_db_create=yes; fi";break
21453 else
21454   echo "$as_me: failed program was:" >&5
21455 sed 's/^/| /' conftest.$ac_ext >&5
21456
21457
21458 fi
21459
21460 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21461       conftest$ac_exeext conftest.$ac_ext
21462         done
21463         eval "ac_cv_funclib_db_create=\${ac_cv_funclib_db_create-no}"
21464         LIBS="$ac_save_LIBS"
21465 fi
21466
21467 fi
21468
21469
21470 eval "ac_res=\$ac_cv_funclib_db_create"
21471
21472 if false; then
21473
21474 for ac_func in db_create
21475 do
21476 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21477 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21478 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21479 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21480   echo $ECHO_N "(cached) $ECHO_C" >&6
21481 else
21482   cat >conftest.$ac_ext <<_ACEOF
21483 /* confdefs.h.  */
21484 _ACEOF
21485 cat confdefs.h >>conftest.$ac_ext
21486 cat >>conftest.$ac_ext <<_ACEOF
21487 /* end confdefs.h.  */
21488 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21489    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21490 #define $ac_func innocuous_$ac_func
21491
21492 /* System header to define __stub macros and hopefully few prototypes,
21493     which can conflict with char $ac_func (); below.
21494     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21495     <limits.h> exists even on freestanding compilers.  */
21496
21497 #ifdef __STDC__
21498 # include <limits.h>
21499 #else
21500 # include <assert.h>
21501 #endif
21502
21503 #undef $ac_func
21504
21505 /* Override any GCC internal prototype to avoid an error.
21506    Use char because int might match the return type of a GCC
21507    builtin and then its argument prototype would still apply.  */
21508 #ifdef __cplusplus
21509 extern "C"
21510 #endif
21511 char $ac_func ();
21512 /* The GNU C library defines this for functions which it implements
21513     to always fail with ENOSYS.  Some functions are actually named
21514     something starting with __ and the normal name is an alias.  */
21515 #if defined __stub_$ac_func || defined __stub___$ac_func
21516 choke me
21517 #endif
21518
21519 int
21520 main ()
21521 {
21522 return $ac_func ();
21523   ;
21524   return 0;
21525 }
21526 _ACEOF
21527 rm -f conftest.$ac_objext conftest$ac_exeext
21528 if { (ac_try="$ac_link"
21529 case "(($ac_try" in
21530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21531   *) ac_try_echo=$ac_try;;
21532 esac
21533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21534   (eval "$ac_link") 2>conftest.er1
21535   ac_status=$?
21536   grep -v '^ *+' conftest.er1 >conftest.err
21537   rm -f conftest.er1
21538   cat conftest.err >&5
21539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21540   (exit $ac_status); } && {
21541          test -z "$ac_c_werror_flag" ||
21542          test ! -s conftest.err
21543        } && test -s conftest$ac_exeext &&
21544        $as_test_x conftest$ac_exeext; then
21545   eval "$as_ac_var=yes"
21546 else
21547   echo "$as_me: failed program was:" >&5
21548 sed 's/^/| /' conftest.$ac_ext >&5
21549
21550         eval "$as_ac_var=no"
21551 fi
21552
21553 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21554       conftest$ac_exeext conftest.$ac_ext
21555 fi
21556 ac_res=`eval echo '${'$as_ac_var'}'`
21557                { echo "$as_me:$LINENO: result: $ac_res" >&5
21558 echo "${ECHO_T}$ac_res" >&6; }
21559 if test `eval echo '${'$as_ac_var'}'` = yes; then
21560   cat >>confdefs.h <<_ACEOF
21561 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21562 _ACEOF
21563
21564 fi
21565 done
21566
21567 fi
21568 # db_create
21569 eval "ac_tr_func=HAVE_`echo db_create | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
21570 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
21571 eval "LIB_db_create=$ac_res"
21572
21573 case "$ac_res" in
21574         yes)
21575         eval "ac_cv_func_db_create=yes"
21576         eval "LIB_db_create="
21577         cat >>confdefs.h <<_ACEOF
21578 #define $ac_tr_func 1
21579 _ACEOF
21580
21581         { echo "$as_me:$LINENO: result: yes" >&5
21582 echo "${ECHO_T}yes" >&6; }
21583         ;;
21584         no)
21585         eval "ac_cv_func_db_create=no"
21586         eval "LIB_db_create="
21587         { echo "$as_me:$LINENO: result: no" >&5
21588 echo "${ECHO_T}no" >&6; }
21589         ;;
21590         *)
21591         eval "ac_cv_func_db_create=yes"
21592         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
21593         cat >>confdefs.h <<_ACEOF
21594 #define $ac_tr_func 1
21595 _ACEOF
21596
21597         cat >>confdefs.h <<_ACEOF
21598 #define $ac_tr_lib 1
21599 _ACEOF
21600
21601         { echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
21602 echo "${ECHO_T}yes, in $ac_res" >&6; }
21603         ;;
21604 esac
21605
21606
21607
21608   if test "$ac_cv_func_db_create" = "yes"; then
21609     db_type=db3
21610     if test "$ac_cv_funclib_db_create" != "yes"; then
21611       DBLIB="$ac_cv_funclib_db_create"
21612     else
21613       DBLIB=""
21614     fi
21615
21616 cat >>confdefs.h <<\_ACEOF
21617 #define HAVE_DB3 1
21618 _ACEOF
21619
21620   else
21621
21622
21623
21624
21625
21626 { echo "$as_me:$LINENO: checking for dbopen" >&5
21627 echo $ECHO_N "checking for dbopen... $ECHO_C" >&6; }
21628 if test "${ac_cv_funclib_dbopen+set}" = set; then
21629   echo $ECHO_N "(cached) $ECHO_C" >&6
21630 else
21631
21632 if eval "test \"\$ac_cv_func_dbopen\" != yes" ; then
21633         ac_save_LIBS="$LIBS"
21634         for ac_lib in "" db2 db; do
21635                 case "$ac_lib" in
21636                 "") ;;
21637                 yes) ac_lib="" ;;
21638                 no) continue ;;
21639                 -l*) ;;
21640                 *) ac_lib="-l$ac_lib" ;;
21641                 esac
21642                 LIBS=" $ac_lib  $ac_save_LIBS"
21643                 cat >conftest.$ac_ext <<_ACEOF
21644 /* confdefs.h.  */
21645 _ACEOF
21646 cat confdefs.h >>conftest.$ac_ext
21647 cat >>conftest.$ac_ext <<_ACEOF
21648 /* end confdefs.h.  */
21649
21650     #include <stdio.h>
21651     #if defined(HAVE_DB2_DB_H)
21652     #include <db2/db.h>
21653     #elif defined(HAVE_DB_185_H)
21654     #include <db_185.h>
21655     #elif defined(HAVE_DB_H)
21656     #include <db.h>
21657     #else
21658     #error no db.h
21659     #endif
21660
21661 int
21662 main ()
21663 {
21664 dbopen(NULL, 0, 0, 0, NULL)
21665   ;
21666   return 0;
21667 }
21668 _ACEOF
21669 rm -f conftest.$ac_objext conftest$ac_exeext
21670 if { (ac_try="$ac_link"
21671 case "(($ac_try" in
21672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21673   *) ac_try_echo=$ac_try;;
21674 esac
21675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21676   (eval "$ac_link") 2>conftest.er1
21677   ac_status=$?
21678   grep -v '^ *+' conftest.er1 >conftest.err
21679   rm -f conftest.er1
21680   cat conftest.err >&5
21681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21682   (exit $ac_status); } && {
21683          test -z "$ac_c_werror_flag" ||
21684          test ! -s conftest.err
21685        } && test -s conftest$ac_exeext &&
21686        $as_test_x conftest$ac_exeext; then
21687   eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbopen=$ac_lib; else ac_cv_funclib_dbopen=yes; fi";break
21688 else
21689   echo "$as_me: failed program was:" >&5
21690 sed 's/^/| /' conftest.$ac_ext >&5
21691
21692
21693 fi
21694
21695 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21696       conftest$ac_exeext conftest.$ac_ext
21697         done
21698         eval "ac_cv_funclib_dbopen=\${ac_cv_funclib_dbopen-no}"
21699         LIBS="$ac_save_LIBS"
21700 fi
21701
21702 fi
21703
21704
21705 eval "ac_res=\$ac_cv_funclib_dbopen"
21706
21707 if false; then
21708
21709 for ac_func in dbopen
21710 do
21711 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21712 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21713 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21714 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21715   echo $ECHO_N "(cached) $ECHO_C" >&6
21716 else
21717   cat >conftest.$ac_ext <<_ACEOF
21718 /* confdefs.h.  */
21719 _ACEOF
21720 cat confdefs.h >>conftest.$ac_ext
21721 cat >>conftest.$ac_ext <<_ACEOF
21722 /* end confdefs.h.  */
21723 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21724    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21725 #define $ac_func innocuous_$ac_func
21726
21727 /* System header to define __stub macros and hopefully few prototypes,
21728     which can conflict with char $ac_func (); below.
21729     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21730     <limits.h> exists even on freestanding compilers.  */
21731
21732 #ifdef __STDC__
21733 # include <limits.h>
21734 #else
21735 # include <assert.h>
21736 #endif
21737
21738 #undef $ac_func
21739
21740 /* Override any GCC internal prototype to avoid an error.
21741    Use char because int might match the return type of a GCC
21742    builtin and then its argument prototype would still apply.  */
21743 #ifdef __cplusplus
21744 extern "C"
21745 #endif
21746 char $ac_func ();
21747 /* The GNU C library defines this for functions which it implements
21748     to always fail with ENOSYS.  Some functions are actually named
21749     something starting with __ and the normal name is an alias.  */
21750 #if defined __stub_$ac_func || defined __stub___$ac_func
21751 choke me
21752 #endif
21753
21754 int
21755 main ()
21756 {
21757 return $ac_func ();
21758   ;
21759   return 0;
21760 }
21761 _ACEOF
21762 rm -f conftest.$ac_objext conftest$ac_exeext
21763 if { (ac_try="$ac_link"
21764 case "(($ac_try" in
21765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21766   *) ac_try_echo=$ac_try;;
21767 esac
21768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21769   (eval "$ac_link") 2>conftest.er1
21770   ac_status=$?
21771   grep -v '^ *+' conftest.er1 >conftest.err
21772   rm -f conftest.er1
21773   cat conftest.err >&5
21774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21775   (exit $ac_status); } && {
21776          test -z "$ac_c_werror_flag" ||
21777          test ! -s conftest.err
21778        } && test -s conftest$ac_exeext &&
21779        $as_test_x conftest$ac_exeext; then
21780   eval "$as_ac_var=yes"
21781 else
21782   echo "$as_me: failed program was:" >&5
21783 sed 's/^/| /' conftest.$ac_ext >&5
21784
21785         eval "$as_ac_var=no"
21786 fi
21787
21788 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21789       conftest$ac_exeext conftest.$ac_ext
21790 fi
21791 ac_res=`eval echo '${'$as_ac_var'}'`
21792                { echo "$as_me:$LINENO: result: $ac_res" >&5
21793 echo "${ECHO_T}$ac_res" >&6; }
21794 if test `eval echo '${'$as_ac_var'}'` = yes; then
21795   cat >>confdefs.h <<_ACEOF
21796 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21797 _ACEOF
21798
21799 fi
21800 done
21801
21802 fi
21803 # dbopen
21804 eval "ac_tr_func=HAVE_`echo dbopen | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
21805 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
21806 eval "LIB_dbopen=$ac_res"
21807
21808 case "$ac_res" in
21809         yes)
21810         eval "ac_cv_func_dbopen=yes"
21811         eval "LIB_dbopen="
21812         cat >>confdefs.h <<_ACEOF
21813 #define $ac_tr_func 1
21814 _ACEOF
21815
21816         { echo "$as_me:$LINENO: result: yes" >&5
21817 echo "${ECHO_T}yes" >&6; }
21818         ;;
21819         no)
21820         eval "ac_cv_func_dbopen=no"
21821         eval "LIB_dbopen="
21822         { echo "$as_me:$LINENO: result: no" >&5
21823 echo "${ECHO_T}no" >&6; }
21824         ;;
21825         *)
21826         eval "ac_cv_func_dbopen=yes"
21827         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
21828         cat >>confdefs.h <<_ACEOF
21829 #define $ac_tr_func 1
21830 _ACEOF
21831
21832         cat >>confdefs.h <<_ACEOF
21833 #define $ac_tr_lib 1
21834 _ACEOF
21835
21836         { echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
21837 echo "${ECHO_T}yes, in $ac_res" >&6; }
21838         ;;
21839 esac
21840
21841
21842
21843     if test "$ac_cv_func_dbopen" = "yes"; then
21844       db_type=db1
21845       if test "$ac_cv_funclib_dbopen" != "yes"; then
21846         DBLIB="$ac_cv_funclib_dbopen"
21847       else
21848         DBLIB=""
21849       fi
21850
21851 cat >>confdefs.h <<\_ACEOF
21852 #define HAVE_DB1 1
21853 _ACEOF
21854
21855     fi
21856   fi
21857
21858
21859   if test "$ac_cv_func_dbm_firstkey" != yes; then
21860
21861
21862 { echo "$as_me:$LINENO: checking for dbm_firstkey" >&5
21863 echo $ECHO_N "checking for dbm_firstkey... $ECHO_C" >&6; }
21864 if test "${ac_cv_funclib_dbm_firstkey+set}" = set; then
21865   echo $ECHO_N "(cached) $ECHO_C" >&6
21866 else
21867
21868 if eval "test \"\$ac_cv_func_dbm_firstkey\" != yes" ; then
21869         ac_save_LIBS="$LIBS"
21870         for ac_lib in $ac_cv_funclib_dbopen $ac_cv_funclib_db_create; do
21871                 case "$ac_lib" in
21872                 "") ;;
21873                 yes) ac_lib="" ;;
21874                 no) continue ;;
21875                 -l*) ;;
21876                 *) ac_lib="-l$ac_lib" ;;
21877                 esac
21878                 LIBS=" $ac_lib  $ac_save_LIBS"
21879                 cat >conftest.$ac_ext <<_ACEOF
21880 /* confdefs.h.  */
21881 _ACEOF
21882 cat confdefs.h >>conftest.$ac_ext
21883 cat >>conftest.$ac_ext <<_ACEOF
21884 /* end confdefs.h.  */
21885
21886     #include <stdio.h>
21887     #define DB_DBM_HSEARCH 1
21888     #include <db.h>
21889     DBM *dbm;
21890
21891 int
21892 main ()
21893 {
21894 dbm_firstkey(NULL)
21895   ;
21896   return 0;
21897 }
21898 _ACEOF
21899 rm -f conftest.$ac_objext conftest$ac_exeext
21900 if { (ac_try="$ac_link"
21901 case "(($ac_try" in
21902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21903   *) ac_try_echo=$ac_try;;
21904 esac
21905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21906   (eval "$ac_link") 2>conftest.er1
21907   ac_status=$?
21908   grep -v '^ *+' conftest.er1 >conftest.err
21909   rm -f conftest.er1
21910   cat conftest.err >&5
21911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21912   (exit $ac_status); } && {
21913          test -z "$ac_c_werror_flag" ||
21914          test ! -s conftest.err
21915        } && test -s conftest$ac_exeext &&
21916        $as_test_x conftest$ac_exeext; then
21917   eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbm_firstkey=$ac_lib; else ac_cv_funclib_dbm_firstkey=yes; fi";break
21918 else
21919   echo "$as_me: failed program was:" >&5
21920 sed 's/^/| /' conftest.$ac_ext >&5
21921
21922
21923 fi
21924
21925 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21926       conftest$ac_exeext conftest.$ac_ext
21927         done
21928         eval "ac_cv_funclib_dbm_firstkey=\${ac_cv_funclib_dbm_firstkey-no}"
21929         LIBS="$ac_save_LIBS"
21930 fi
21931
21932 fi
21933
21934
21935 eval "ac_res=\$ac_cv_funclib_dbm_firstkey"
21936
21937 if false; then
21938
21939 for ac_func in dbm_firstkey
21940 do
21941 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21942 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21943 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21944 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21945   echo $ECHO_N "(cached) $ECHO_C" >&6
21946 else
21947   cat >conftest.$ac_ext <<_ACEOF
21948 /* confdefs.h.  */
21949 _ACEOF
21950 cat confdefs.h >>conftest.$ac_ext
21951 cat >>conftest.$ac_ext <<_ACEOF
21952 /* end confdefs.h.  */
21953 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21954    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21955 #define $ac_func innocuous_$ac_func
21956
21957 /* System header to define __stub macros and hopefully few prototypes,
21958     which can conflict with char $ac_func (); below.
21959     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21960     <limits.h> exists even on freestanding compilers.  */
21961
21962 #ifdef __STDC__
21963 # include <limits.h>
21964 #else
21965 # include <assert.h>
21966 #endif
21967
21968 #undef $ac_func
21969
21970 /* Override any GCC internal prototype to avoid an error.
21971    Use char because int might match the return type of a GCC
21972    builtin and then its argument prototype would still apply.  */
21973 #ifdef __cplusplus
21974 extern "C"
21975 #endif
21976 char $ac_func ();
21977 /* The GNU C library defines this for functions which it implements
21978     to always fail with ENOSYS.  Some functions are actually named
21979     something starting with __ and the normal name is an alias.  */
21980 #if defined __stub_$ac_func || defined __stub___$ac_func
21981 choke me
21982 #endif
21983
21984 int
21985 main ()
21986 {
21987 return $ac_func ();
21988   ;
21989   return 0;
21990 }
21991 _ACEOF
21992 rm -f conftest.$ac_objext conftest$ac_exeext
21993 if { (ac_try="$ac_link"
21994 case "(($ac_try" in
21995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21996   *) ac_try_echo=$ac_try;;
21997 esac
21998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21999   (eval "$ac_link") 2>conftest.er1
22000   ac_status=$?
22001   grep -v '^ *+' conftest.er1 >conftest.err
22002   rm -f conftest.er1
22003   cat conftest.err >&5
22004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22005   (exit $ac_status); } && {
22006          test -z "$ac_c_werror_flag" ||
22007          test ! -s conftest.err
22008        } && test -s conftest$ac_exeext &&
22009        $as_test_x conftest$ac_exeext; then
22010   eval "$as_ac_var=yes"
22011 else
22012   echo "$as_me: failed program was:" >&5
22013 sed 's/^/| /' conftest.$ac_ext >&5
22014
22015         eval "$as_ac_var=no"
22016 fi
22017
22018 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22019       conftest$ac_exeext conftest.$ac_ext
22020 fi
22021 ac_res=`eval echo '${'$as_ac_var'}'`
22022                { echo "$as_me:$LINENO: result: $ac_res" >&5
22023 echo "${ECHO_T}$ac_res" >&6; }
22024 if test `eval echo '${'$as_ac_var'}'` = yes; then
22025   cat >>confdefs.h <<_ACEOF
22026 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22027 _ACEOF
22028
22029 fi
22030 done
22031
22032 fi
22033 # dbm_firstkey
22034 eval "ac_tr_func=HAVE_`echo dbm_firstkey | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
22035 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
22036 eval "LIB_dbm_firstkey=$ac_res"
22037
22038 case "$ac_res" in
22039         yes)
22040         eval "ac_cv_func_dbm_firstkey=yes"
22041         eval "LIB_dbm_firstkey="
22042         cat >>confdefs.h <<_ACEOF
22043 #define $ac_tr_func 1
22044 _ACEOF
22045
22046         { echo "$as_me:$LINENO: result: yes" >&5
22047 echo "${ECHO_T}yes" >&6; }
22048         ;;
22049         no)
22050         eval "ac_cv_func_dbm_firstkey=no"
22051         eval "LIB_dbm_firstkey="
22052         { echo "$as_me:$LINENO: result: no" >&5
22053 echo "${ECHO_T}no" >&6; }
22054         ;;
22055         *)
22056         eval "ac_cv_func_dbm_firstkey=yes"
22057         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
22058         cat >>confdefs.h <<_ACEOF
22059 #define $ac_tr_func 1
22060 _ACEOF
22061
22062         cat >>confdefs.h <<_ACEOF
22063 #define $ac_tr_lib 1
22064 _ACEOF
22065
22066         { echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
22067 echo "${ECHO_T}yes, in $ac_res" >&6; }
22068         ;;
22069 esac
22070
22071
22072
22073     if test "$ac_cv_func_dbm_firstkey" = "yes"; then
22074       if test "$ac_cv_funclib_dbm_firstkey" != "yes"; then
22075         LIB_NDBM="$ac_cv_funclib_dbm_firstkey"
22076       else
22077         LIB_NDBM=""
22078       fi
22079
22080 cat >>confdefs.h <<\_ACEOF
22081 #define HAVE_DB_NDBM 1
22082 _ACEOF
22083
22084
22085 cat >>confdefs.h <<\_ACEOF
22086 #define HAVE_NEW_DB 1
22087 _ACEOF
22088
22089     else
22090       $as_unset ac_cv_func_dbm_firstkey
22091       $as_unset ac_cv_funclib_dbm_firstkey
22092     fi
22093   fi
22094
22095 fi # berkeley db
22096
22097 if test "$enable_ndbm_db" != "no"; then
22098
22099   if test "$db_type" = "unknown" -o "$ac_cv_func_dbm_firstkey" = ""; then
22100
22101
22102
22103 for ac_header in                                \
22104         dbm.h                                   \
22105         ndbm.h                                  \
22106
22107 do
22108 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22109 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22110   { echo "$as_me:$LINENO: checking for $ac_header" >&5
22111 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22112 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22113   echo $ECHO_N "(cached) $ECHO_C" >&6
22114 fi
22115 ac_res=`eval echo '${'$as_ac_Header'}'`
22116                { echo "$as_me:$LINENO: result: $ac_res" >&5
22117 echo "${ECHO_T}$ac_res" >&6; }
22118 else
22119   # Is the header compilable?
22120 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22121 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22122 cat >conftest.$ac_ext <<_ACEOF
22123 /* confdefs.h.  */
22124 _ACEOF
22125 cat confdefs.h >>conftest.$ac_ext
22126 cat >>conftest.$ac_ext <<_ACEOF
22127 /* end confdefs.h.  */
22128 $ac_includes_default
22129 #include <$ac_header>
22130 _ACEOF
22131 rm -f conftest.$ac_objext
22132 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
22139   ac_status=$?
22140   grep -v '^ *+' conftest.er1 >conftest.err
22141   rm -f conftest.er1
22142   cat conftest.err >&5
22143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22144   (exit $ac_status); } && {
22145          test -z "$ac_c_werror_flag" ||
22146          test ! -s conftest.err
22147        } && test -s conftest.$ac_objext; then
22148   ac_header_compiler=yes
22149 else
22150   echo "$as_me: failed program was:" >&5
22151 sed 's/^/| /' conftest.$ac_ext >&5
22152
22153         ac_header_compiler=no
22154 fi
22155
22156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22157 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22158 echo "${ECHO_T}$ac_header_compiler" >&6; }
22159
22160 # Is the header present?
22161 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22162 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22163 cat >conftest.$ac_ext <<_ACEOF
22164 /* confdefs.h.  */
22165 _ACEOF
22166 cat confdefs.h >>conftest.$ac_ext
22167 cat >>conftest.$ac_ext <<_ACEOF
22168 /* end confdefs.h.  */
22169 #include <$ac_header>
22170 _ACEOF
22171 if { (ac_try="$ac_cpp conftest.$ac_ext"
22172 case "(($ac_try" in
22173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22174   *) ac_try_echo=$ac_try;;
22175 esac
22176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22177   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22178   ac_status=$?
22179   grep -v '^ *+' conftest.er1 >conftest.err
22180   rm -f conftest.er1
22181   cat conftest.err >&5
22182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22183   (exit $ac_status); } >/dev/null && {
22184          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22185          test ! -s conftest.err
22186        }; then
22187   ac_header_preproc=yes
22188 else
22189   echo "$as_me: failed program was:" >&5
22190 sed 's/^/| /' conftest.$ac_ext >&5
22191
22192   ac_header_preproc=no
22193 fi
22194
22195 rm -f conftest.err conftest.$ac_ext
22196 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22197 echo "${ECHO_T}$ac_header_preproc" >&6; }
22198
22199 # So?  What about this header?
22200 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22201   yes:no: )
22202     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22203 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22204     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22205 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22206     ac_header_preproc=yes
22207     ;;
22208   no:yes:* )
22209     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22210 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22211     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22212 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22213     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22214 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22215     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22216 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22217     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22218 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22219     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22220 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22221     ( cat <<\_ASBOX
22222 ## ----------------------------------- ##
22223 ## Report this to heimdal-bugs@h5l.org ##
22224 ## ----------------------------------- ##
22225 _ASBOX
22226      ) | sed "s/^/$as_me: WARNING:     /" >&2
22227     ;;
22228 esac
22229 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22230 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22231 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22232   echo $ECHO_N "(cached) $ECHO_C" >&6
22233 else
22234   eval "$as_ac_Header=\$ac_header_preproc"
22235 fi
22236 ac_res=`eval echo '${'$as_ac_Header'}'`
22237                { echo "$as_me:$LINENO: result: $ac_res" >&5
22238 echo "${ECHO_T}$ac_res" >&6; }
22239
22240 fi
22241 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22242   cat >>confdefs.h <<_ACEOF
22243 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22244 _ACEOF
22245
22246 fi
22247
22248 done
22249
22250
22251
22252
22253
22254 { echo "$as_me:$LINENO: checking for dbm_firstkey" >&5
22255 echo $ECHO_N "checking for dbm_firstkey... $ECHO_C" >&6; }
22256 if test "${ac_cv_funclib_dbm_firstkey+set}" = set; then
22257   echo $ECHO_N "(cached) $ECHO_C" >&6
22258 else
22259
22260 if eval "test \"\$ac_cv_func_dbm_firstkey\" != yes" ; then
22261         ac_save_LIBS="$LIBS"
22262         for ac_lib in "" ndbm; do
22263                 case "$ac_lib" in
22264                 "") ;;
22265                 yes) ac_lib="" ;;
22266                 no) continue ;;
22267                 -l*) ;;
22268                 *) ac_lib="-l$ac_lib" ;;
22269                 esac
22270                 LIBS=" $ac_lib  $ac_save_LIBS"
22271                 cat >conftest.$ac_ext <<_ACEOF
22272 /* confdefs.h.  */
22273 _ACEOF
22274 cat confdefs.h >>conftest.$ac_ext
22275 cat >>conftest.$ac_ext <<_ACEOF
22276 /* end confdefs.h.  */
22277
22278     #include <stdio.h>
22279     #if defined(HAVE_NDBM_H)
22280     #include <ndbm.h>
22281     #elif defined(HAVE_DBM_H)
22282     #include <dbm.h>
22283     #endif
22284     DBM *dbm;
22285
22286 int
22287 main ()
22288 {
22289 dbm_firstkey(NULL)
22290   ;
22291   return 0;
22292 }
22293 _ACEOF
22294 rm -f conftest.$ac_objext conftest$ac_exeext
22295 if { (ac_try="$ac_link"
22296 case "(($ac_try" in
22297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22298   *) ac_try_echo=$ac_try;;
22299 esac
22300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22301   (eval "$ac_link") 2>conftest.er1
22302   ac_status=$?
22303   grep -v '^ *+' conftest.er1 >conftest.err
22304   rm -f conftest.er1
22305   cat conftest.err >&5
22306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22307   (exit $ac_status); } && {
22308          test -z "$ac_c_werror_flag" ||
22309          test ! -s conftest.err
22310        } && test -s conftest$ac_exeext &&
22311        $as_test_x conftest$ac_exeext; then
22312   eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbm_firstkey=$ac_lib; else ac_cv_funclib_dbm_firstkey=yes; fi";break
22313 else
22314   echo "$as_me: failed program was:" >&5
22315 sed 's/^/| /' conftest.$ac_ext >&5
22316
22317
22318 fi
22319
22320 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22321       conftest$ac_exeext conftest.$ac_ext
22322         done
22323         eval "ac_cv_funclib_dbm_firstkey=\${ac_cv_funclib_dbm_firstkey-no}"
22324         LIBS="$ac_save_LIBS"
22325 fi
22326
22327 fi
22328
22329
22330 eval "ac_res=\$ac_cv_funclib_dbm_firstkey"
22331
22332 if false; then
22333
22334 for ac_func in dbm_firstkey
22335 do
22336 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22337 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22338 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22339 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22340   echo $ECHO_N "(cached) $ECHO_C" >&6
22341 else
22342   cat >conftest.$ac_ext <<_ACEOF
22343 /* confdefs.h.  */
22344 _ACEOF
22345 cat confdefs.h >>conftest.$ac_ext
22346 cat >>conftest.$ac_ext <<_ACEOF
22347 /* end confdefs.h.  */
22348 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22349    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22350 #define $ac_func innocuous_$ac_func
22351
22352 /* System header to define __stub macros and hopefully few prototypes,
22353     which can conflict with char $ac_func (); below.
22354     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22355     <limits.h> exists even on freestanding compilers.  */
22356
22357 #ifdef __STDC__
22358 # include <limits.h>
22359 #else
22360 # include <assert.h>
22361 #endif
22362
22363 #undef $ac_func
22364
22365 /* Override any GCC internal prototype to avoid an error.
22366    Use char because int might match the return type of a GCC
22367    builtin and then its argument prototype would still apply.  */
22368 #ifdef __cplusplus
22369 extern "C"
22370 #endif
22371 char $ac_func ();
22372 /* The GNU C library defines this for functions which it implements
22373     to always fail with ENOSYS.  Some functions are actually named
22374     something starting with __ and the normal name is an alias.  */
22375 #if defined __stub_$ac_func || defined __stub___$ac_func
22376 choke me
22377 #endif
22378
22379 int
22380 main ()
22381 {
22382 return $ac_func ();
22383   ;
22384   return 0;
22385 }
22386 _ACEOF
22387 rm -f conftest.$ac_objext conftest$ac_exeext
22388 if { (ac_try="$ac_link"
22389 case "(($ac_try" in
22390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22391   *) ac_try_echo=$ac_try;;
22392 esac
22393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22394   (eval "$ac_link") 2>conftest.er1
22395   ac_status=$?
22396   grep -v '^ *+' conftest.er1 >conftest.err
22397   rm -f conftest.er1
22398   cat conftest.err >&5
22399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22400   (exit $ac_status); } && {
22401          test -z "$ac_c_werror_flag" ||
22402          test ! -s conftest.err
22403        } && test -s conftest$ac_exeext &&
22404        $as_test_x conftest$ac_exeext; then
22405   eval "$as_ac_var=yes"
22406 else
22407   echo "$as_me: failed program was:" >&5
22408 sed 's/^/| /' conftest.$ac_ext >&5
22409
22410         eval "$as_ac_var=no"
22411 fi
22412
22413 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22414       conftest$ac_exeext conftest.$ac_ext
22415 fi
22416 ac_res=`eval echo '${'$as_ac_var'}'`
22417                { echo "$as_me:$LINENO: result: $ac_res" >&5
22418 echo "${ECHO_T}$ac_res" >&6; }
22419 if test `eval echo '${'$as_ac_var'}'` = yes; then
22420   cat >>confdefs.h <<_ACEOF
22421 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22422 _ACEOF
22423
22424 fi
22425 done
22426
22427 fi
22428 # dbm_firstkey
22429 eval "ac_tr_func=HAVE_`echo dbm_firstkey | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
22430 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
22431 eval "LIB_dbm_firstkey=$ac_res"
22432
22433 case "$ac_res" in
22434         yes)
22435         eval "ac_cv_func_dbm_firstkey=yes"
22436         eval "LIB_dbm_firstkey="
22437         cat >>confdefs.h <<_ACEOF
22438 #define $ac_tr_func 1
22439 _ACEOF
22440
22441         { echo "$as_me:$LINENO: result: yes" >&5
22442 echo "${ECHO_T}yes" >&6; }
22443         ;;
22444         no)
22445         eval "ac_cv_func_dbm_firstkey=no"
22446         eval "LIB_dbm_firstkey="
22447         { echo "$as_me:$LINENO: result: no" >&5
22448 echo "${ECHO_T}no" >&6; }
22449         ;;
22450         *)
22451         eval "ac_cv_func_dbm_firstkey=yes"
22452         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
22453         cat >>confdefs.h <<_ACEOF
22454 #define $ac_tr_func 1
22455 _ACEOF
22456
22457         cat >>confdefs.h <<_ACEOF
22458 #define $ac_tr_lib 1
22459 _ACEOF
22460
22461         { echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
22462 echo "${ECHO_T}yes, in $ac_res" >&6; }
22463         ;;
22464 esac
22465
22466
22467
22468     if test "$ac_cv_func_dbm_firstkey" = "yes"; then
22469       if test "$ac_cv_funclib_dbm_firstkey" != "yes"; then
22470         LIB_NDBM="$ac_cv_funclib_dbm_firstkey"
22471       else
22472         LIB_NDBM=""
22473       fi
22474
22475 cat >>confdefs.h <<\_ACEOF
22476 #define HAVE_NDBM 1
22477 _ACEOF
22478       have_ndbm=yes
22479       if test "$db_type" = "unknown"; then
22480         db_type=ndbm
22481         DBLIB="$LIB_NDBM"
22482       fi
22483     else
22484
22485       $as_unset ac_cv_func_dbm_firstkey
22486       $as_unset ac_cv_funclib_dbm_firstkey
22487
22488
22489 for ac_header in                                \
22490           gdbm/ndbm.h                           \
22491
22492 do
22493 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22494 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22495   { echo "$as_me:$LINENO: checking for $ac_header" >&5
22496 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22497 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22498   echo $ECHO_N "(cached) $ECHO_C" >&6
22499 fi
22500 ac_res=`eval echo '${'$as_ac_Header'}'`
22501                { echo "$as_me:$LINENO: result: $ac_res" >&5
22502 echo "${ECHO_T}$ac_res" >&6; }
22503 else
22504   # Is the header compilable?
22505 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22506 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22507 cat >conftest.$ac_ext <<_ACEOF
22508 /* confdefs.h.  */
22509 _ACEOF
22510 cat confdefs.h >>conftest.$ac_ext
22511 cat >>conftest.$ac_ext <<_ACEOF
22512 /* end confdefs.h.  */
22513 $ac_includes_default
22514 #include <$ac_header>
22515 _ACEOF
22516 rm -f conftest.$ac_objext
22517 if { (ac_try="$ac_compile"
22518 case "(($ac_try" in
22519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22520   *) ac_try_echo=$ac_try;;
22521 esac
22522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22523   (eval "$ac_compile") 2>conftest.er1
22524   ac_status=$?
22525   grep -v '^ *+' conftest.er1 >conftest.err
22526   rm -f conftest.er1
22527   cat conftest.err >&5
22528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22529   (exit $ac_status); } && {
22530          test -z "$ac_c_werror_flag" ||
22531          test ! -s conftest.err
22532        } && test -s conftest.$ac_objext; then
22533   ac_header_compiler=yes
22534 else
22535   echo "$as_me: failed program was:" >&5
22536 sed 's/^/| /' conftest.$ac_ext >&5
22537
22538         ac_header_compiler=no
22539 fi
22540
22541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22542 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22543 echo "${ECHO_T}$ac_header_compiler" >&6; }
22544
22545 # Is the header present?
22546 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22547 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22548 cat >conftest.$ac_ext <<_ACEOF
22549 /* confdefs.h.  */
22550 _ACEOF
22551 cat confdefs.h >>conftest.$ac_ext
22552 cat >>conftest.$ac_ext <<_ACEOF
22553 /* end confdefs.h.  */
22554 #include <$ac_header>
22555 _ACEOF
22556 if { (ac_try="$ac_cpp conftest.$ac_ext"
22557 case "(($ac_try" in
22558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22559   *) ac_try_echo=$ac_try;;
22560 esac
22561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22562   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22563   ac_status=$?
22564   grep -v '^ *+' conftest.er1 >conftest.err
22565   rm -f conftest.er1
22566   cat conftest.err >&5
22567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22568   (exit $ac_status); } >/dev/null && {
22569          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22570          test ! -s conftest.err
22571        }; then
22572   ac_header_preproc=yes
22573 else
22574   echo "$as_me: failed program was:" >&5
22575 sed 's/^/| /' conftest.$ac_ext >&5
22576
22577   ac_header_preproc=no
22578 fi
22579
22580 rm -f conftest.err conftest.$ac_ext
22581 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22582 echo "${ECHO_T}$ac_header_preproc" >&6; }
22583
22584 # So?  What about this header?
22585 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22586   yes:no: )
22587     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22588 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22589     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22590 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22591     ac_header_preproc=yes
22592     ;;
22593   no:yes:* )
22594     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22595 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22596     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22597 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22598     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22599 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22600     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22601 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22602     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22603 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22604     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22605 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22606     ( cat <<\_ASBOX
22607 ## ----------------------------------- ##
22608 ## Report this to heimdal-bugs@h5l.org ##
22609 ## ----------------------------------- ##
22610 _ASBOX
22611      ) | sed "s/^/$as_me: WARNING:     /" >&2
22612     ;;
22613 esac
22614 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22615 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22616 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22617   echo $ECHO_N "(cached) $ECHO_C" >&6
22618 else
22619   eval "$as_ac_Header=\$ac_header_preproc"
22620 fi
22621 ac_res=`eval echo '${'$as_ac_Header'}'`
22622                { echo "$as_me:$LINENO: result: $ac_res" >&5
22623 echo "${ECHO_T}$ac_res" >&6; }
22624
22625 fi
22626 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22627   cat >>confdefs.h <<_ACEOF
22628 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22629 _ACEOF
22630
22631 fi
22632
22633 done
22634
22635
22636
22637
22638
22639 { echo "$as_me:$LINENO: checking for dbm_firstkey" >&5
22640 echo $ECHO_N "checking for dbm_firstkey... $ECHO_C" >&6; }
22641 if test "${ac_cv_funclib_dbm_firstkey+set}" = set; then
22642   echo $ECHO_N "(cached) $ECHO_C" >&6
22643 else
22644
22645 if eval "test \"\$ac_cv_func_dbm_firstkey\" != yes" ; then
22646         ac_save_LIBS="$LIBS"
22647         for ac_lib in "" gdbm; do
22648                 case "$ac_lib" in
22649                 "") ;;
22650                 yes) ac_lib="" ;;
22651                 no) continue ;;
22652                 -l*) ;;
22653                 *) ac_lib="-l$ac_lib" ;;
22654                 esac
22655                 LIBS=" $ac_lib  $ac_save_LIBS"
22656                 cat >conftest.$ac_ext <<_ACEOF
22657 /* confdefs.h.  */
22658 _ACEOF
22659 cat confdefs.h >>conftest.$ac_ext
22660 cat >>conftest.$ac_ext <<_ACEOF
22661 /* end confdefs.h.  */
22662
22663       #include <stdio.h>
22664       #include <gdbm/ndbm.h>
22665       DBM *dbm;
22666
22667 int
22668 main ()
22669 {
22670 dbm_firstkey(NULL)
22671   ;
22672   return 0;
22673 }
22674 _ACEOF
22675 rm -f conftest.$ac_objext conftest$ac_exeext
22676 if { (ac_try="$ac_link"
22677 case "(($ac_try" in
22678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22679   *) ac_try_echo=$ac_try;;
22680 esac
22681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22682   (eval "$ac_link") 2>conftest.er1
22683   ac_status=$?
22684   grep -v '^ *+' conftest.er1 >conftest.err
22685   rm -f conftest.er1
22686   cat conftest.err >&5
22687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22688   (exit $ac_status); } && {
22689          test -z "$ac_c_werror_flag" ||
22690          test ! -s conftest.err
22691        } && test -s conftest$ac_exeext &&
22692        $as_test_x conftest$ac_exeext; then
22693   eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbm_firstkey=$ac_lib; else ac_cv_funclib_dbm_firstkey=yes; fi";break
22694 else
22695   echo "$as_me: failed program was:" >&5
22696 sed 's/^/| /' conftest.$ac_ext >&5
22697
22698
22699 fi
22700
22701 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22702       conftest$ac_exeext conftest.$ac_ext
22703         done
22704         eval "ac_cv_funclib_dbm_firstkey=\${ac_cv_funclib_dbm_firstkey-no}"
22705         LIBS="$ac_save_LIBS"
22706 fi
22707
22708 fi
22709
22710
22711 eval "ac_res=\$ac_cv_funclib_dbm_firstkey"
22712
22713 if false; then
22714
22715 for ac_func in dbm_firstkey
22716 do
22717 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22718 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22719 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22720 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22721   echo $ECHO_N "(cached) $ECHO_C" >&6
22722 else
22723   cat >conftest.$ac_ext <<_ACEOF
22724 /* confdefs.h.  */
22725 _ACEOF
22726 cat confdefs.h >>conftest.$ac_ext
22727 cat >>conftest.$ac_ext <<_ACEOF
22728 /* end confdefs.h.  */
22729 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22730    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22731 #define $ac_func innocuous_$ac_func
22732
22733 /* System header to define __stub macros and hopefully few prototypes,
22734     which can conflict with char $ac_func (); below.
22735     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22736     <limits.h> exists even on freestanding compilers.  */
22737
22738 #ifdef __STDC__
22739 # include <limits.h>
22740 #else
22741 # include <assert.h>
22742 #endif
22743
22744 #undef $ac_func
22745
22746 /* Override any GCC internal prototype to avoid an error.
22747    Use char because int might match the return type of a GCC
22748    builtin and then its argument prototype would still apply.  */
22749 #ifdef __cplusplus
22750 extern "C"
22751 #endif
22752 char $ac_func ();
22753 /* The GNU C library defines this for functions which it implements
22754     to always fail with ENOSYS.  Some functions are actually named
22755     something starting with __ and the normal name is an alias.  */
22756 #if defined __stub_$ac_func || defined __stub___$ac_func
22757 choke me
22758 #endif
22759
22760 int
22761 main ()
22762 {
22763 return $ac_func ();
22764   ;
22765   return 0;
22766 }
22767 _ACEOF
22768 rm -f conftest.$ac_objext conftest$ac_exeext
22769 if { (ac_try="$ac_link"
22770 case "(($ac_try" in
22771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22772   *) ac_try_echo=$ac_try;;
22773 esac
22774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22775   (eval "$ac_link") 2>conftest.er1
22776   ac_status=$?
22777   grep -v '^ *+' conftest.er1 >conftest.err
22778   rm -f conftest.er1
22779   cat conftest.err >&5
22780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22781   (exit $ac_status); } && {
22782          test -z "$ac_c_werror_flag" ||
22783          test ! -s conftest.err
22784        } && test -s conftest$ac_exeext &&
22785        $as_test_x conftest$ac_exeext; then
22786   eval "$as_ac_var=yes"
22787 else
22788   echo "$as_me: failed program was:" >&5
22789 sed 's/^/| /' conftest.$ac_ext >&5
22790
22791         eval "$as_ac_var=no"
22792 fi
22793
22794 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22795       conftest$ac_exeext conftest.$ac_ext
22796 fi
22797 ac_res=`eval echo '${'$as_ac_var'}'`
22798                { echo "$as_me:$LINENO: result: $ac_res" >&5
22799 echo "${ECHO_T}$ac_res" >&6; }
22800 if test `eval echo '${'$as_ac_var'}'` = yes; then
22801   cat >>confdefs.h <<_ACEOF
22802 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22803 _ACEOF
22804
22805 fi
22806 done
22807
22808 fi
22809 # dbm_firstkey
22810 eval "ac_tr_func=HAVE_`echo dbm_firstkey | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
22811 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
22812 eval "LIB_dbm_firstkey=$ac_res"
22813
22814 case "$ac_res" in
22815         yes)
22816         eval "ac_cv_func_dbm_firstkey=yes"
22817         eval "LIB_dbm_firstkey="
22818         cat >>confdefs.h <<_ACEOF
22819 #define $ac_tr_func 1
22820 _ACEOF
22821
22822         { echo "$as_me:$LINENO: result: yes" >&5
22823 echo "${ECHO_T}yes" >&6; }
22824         ;;
22825         no)
22826         eval "ac_cv_func_dbm_firstkey=no"
22827         eval "LIB_dbm_firstkey="
22828         { echo "$as_me:$LINENO: result: no" >&5
22829 echo "${ECHO_T}no" >&6; }
22830         ;;
22831         *)
22832         eval "ac_cv_func_dbm_firstkey=yes"
22833         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
22834         cat >>confdefs.h <<_ACEOF
22835 #define $ac_tr_func 1
22836 _ACEOF
22837
22838         cat >>confdefs.h <<_ACEOF
22839 #define $ac_tr_lib 1
22840 _ACEOF
22841
22842         { echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
22843 echo "${ECHO_T}yes, in $ac_res" >&6; }
22844         ;;
22845 esac
22846
22847
22848
22849       if test "$ac_cv_func_dbm_firstkey" = "yes"; then
22850         if test "$ac_cv_funclib_dbm_firstkey" != "yes"; then
22851         LIB_NDBM="$ac_cv_funclib_dbm_firstkey"
22852         else
22853         LIB_NDBM=""
22854         fi
22855
22856 cat >>confdefs.h <<\_ACEOF
22857 #define HAVE_NDBM 1
22858 _ACEOF
22859         have_ndbm=yes
22860         if test "$db_type" = "unknown"; then
22861         db_type=ndbm
22862         DBLIB="$LIB_NDBM"
22863         fi
22864       fi
22865     fi
22866   fi #enable_ndbm_db
22867 fi # unknown
22868
22869 if test "$have_ndbm" = "yes"; then
22870   { echo "$as_me:$LINENO: checking if ndbm is implemented with db" >&5
22871 echo $ECHO_N "checking if ndbm is implemented with db... $ECHO_C" >&6; }
22872   if test "$cross_compiling" = yes; then
22873   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22874 See \`config.log' for more details." >&5
22875 echo "$as_me: error: cannot run test program while cross compiling
22876 See \`config.log' for more details." >&2;}
22877    { (exit 1); exit 1; }; }
22878 else
22879   cat >conftest.$ac_ext <<_ACEOF
22880 /* confdefs.h.  */
22881 _ACEOF
22882 cat confdefs.h >>conftest.$ac_ext
22883 cat >>conftest.$ac_ext <<_ACEOF
22884 /* end confdefs.h.  */
22885
22886 #include <unistd.h>
22887 #include <fcntl.h>
22888 #if defined(HAVE_GDBM_NDBM_H)
22889 #include <gdbm/ndbm.h>
22890 #elif defined(HAVE_NDBM_H)
22891 #include <ndbm.h>
22892 #elif defined(HAVE_DBM_H)
22893 #include <dbm.h>
22894 #endif
22895 int main(int argc, char **argv)
22896 {
22897   DBM *d;
22898
22899   d = dbm_open("conftest", O_RDWR | O_CREAT, 0666);
22900   if (d == NULL)
22901     return 1;
22902   dbm_close(d);
22903   return 0;
22904 }
22905 _ACEOF
22906 rm -f conftest$ac_exeext
22907 if { (ac_try="$ac_link"
22908 case "(($ac_try" in
22909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22910   *) ac_try_echo=$ac_try;;
22911 esac
22912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22913   (eval "$ac_link") 2>&5
22914   ac_status=$?
22915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22916   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22917   { (case "(($ac_try" in
22918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22919   *) ac_try_echo=$ac_try;;
22920 esac
22921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22922   (eval "$ac_try") 2>&5
22923   ac_status=$?
22924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22925   (exit $ac_status); }; }; then
22926
22927     if test -f conftest.db; then
22928       { echo "$as_me:$LINENO: result: yes" >&5
22929 echo "${ECHO_T}yes" >&6; }
22930
22931 cat >>confdefs.h <<\_ACEOF
22932 #define HAVE_NEW_DB 1
22933 _ACEOF
22934
22935     else
22936       { echo "$as_me:$LINENO: result: no" >&5
22937 echo "${ECHO_T}no" >&6; }
22938     fi
22939 else
22940   echo "$as_me: program exited with status $ac_status" >&5
22941 echo "$as_me: failed program was:" >&5
22942 sed 's/^/| /' conftest.$ac_ext >&5
22943
22944 ( exit $ac_status )
22945 { echo "$as_me:$LINENO: result: no" >&5
22946 echo "${ECHO_T}no" >&6; }
22947 fi
22948 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22949 fi
22950
22951
22952 fi
22953
22954  if test "$db_type" = db1; then
22955   HAVE_DB1_TRUE=
22956   HAVE_DB1_FALSE='#'
22957 else
22958   HAVE_DB1_TRUE='#'
22959   HAVE_DB1_FALSE=
22960 fi
22961  if test "$db_type" = db3; then
22962   HAVE_DB3_TRUE=
22963   HAVE_DB3_FALSE='#'
22964 else
22965   HAVE_DB3_TRUE='#'
22966   HAVE_DB3_FALSE=
22967 fi
22968  if test "$db_type" = ndbm; then
22969   HAVE_NDBM_TRUE=
22970   HAVE_NDBM_FALSE='#'
22971 else
22972   HAVE_NDBM_TRUE='#'
22973   HAVE_NDBM_FALSE=
22974 fi
22975
22976 ## it's probably not correct to include LDFLAGS here, but we might
22977 ## need it, for now just add any possible -L
22978 z=""
22979 for i in $LDFLAGS; do
22980         case "$i" in
22981         -L*) z="$z $i";;
22982         esac
22983 done
22984 DBLIB="$z $DBLIB"
22985
22986
22987
22988
22989
22990 { echo "$as_me:$LINENO: checking for inline" >&5
22991 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
22992 if test "${ac_cv_c_inline+set}" = set; then
22993   echo $ECHO_N "(cached) $ECHO_C" >&6
22994 else
22995   ac_cv_c_inline=no
22996 for ac_kw in inline __inline__ __inline; do
22997   cat >conftest.$ac_ext <<_ACEOF
22998 /* confdefs.h.  */
22999 _ACEOF
23000 cat confdefs.h >>conftest.$ac_ext
23001 cat >>conftest.$ac_ext <<_ACEOF
23002 /* end confdefs.h.  */
23003 #ifndef __cplusplus
23004 typedef int foo_t;
23005 static $ac_kw foo_t static_foo () {return 0; }
23006 $ac_kw foo_t foo () {return 0; }
23007 #endif
23008
23009 _ACEOF
23010 rm -f conftest.$ac_objext
23011 if { (ac_try="$ac_compile"
23012 case "(($ac_try" in
23013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23014   *) ac_try_echo=$ac_try;;
23015 esac
23016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23017   (eval "$ac_compile") 2>conftest.er1
23018   ac_status=$?
23019   grep -v '^ *+' conftest.er1 >conftest.err
23020   rm -f conftest.er1
23021   cat conftest.err >&5
23022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23023   (exit $ac_status); } && {
23024          test -z "$ac_c_werror_flag" ||
23025          test ! -s conftest.err
23026        } && test -s conftest.$ac_objext; then
23027   ac_cv_c_inline=$ac_kw
23028 else
23029   echo "$as_me: failed program was:" >&5
23030 sed 's/^/| /' conftest.$ac_ext >&5
23031
23032
23033 fi
23034
23035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23036   test "$ac_cv_c_inline" != no && break
23037 done
23038
23039 fi
23040 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
23041 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
23042
23043
23044 case $ac_cv_c_inline in
23045   inline | yes) ;;
23046   *)
23047     case $ac_cv_c_inline in
23048       no) ac_val=;;
23049       *) ac_val=$ac_cv_c_inline;;
23050     esac
23051     cat >>confdefs.h <<_ACEOF
23052 #ifndef __cplusplus
23053 #define inline $ac_val
23054 #endif
23055 _ACEOF
23056     ;;
23057 esac
23058
23059 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
23060 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
23061 if test "${ac_cv_c_const+set}" = set; then
23062   echo $ECHO_N "(cached) $ECHO_C" >&6
23063 else
23064   cat >conftest.$ac_ext <<_ACEOF
23065 /* confdefs.h.  */
23066 _ACEOF
23067 cat confdefs.h >>conftest.$ac_ext
23068 cat >>conftest.$ac_ext <<_ACEOF
23069 /* end confdefs.h.  */
23070
23071 int
23072 main ()
23073 {
23074 /* FIXME: Include the comments suggested by Paul. */
23075 #ifndef __cplusplus
23076   /* Ultrix mips cc rejects this.  */
23077   typedef int charset[2];
23078   const charset cs;
23079   /* SunOS 4.1.1 cc rejects this.  */
23080   char const *const *pcpcc;
23081   char **ppc;
23082   /* NEC SVR4.0.2 mips cc rejects this.  */
23083   struct point {int x, y;};
23084   static struct point const zero = {0,0};
23085   /* AIX XL C 1.02.0.0 rejects this.
23086      It does not let you subtract one const X* pointer from another in
23087      an arm of an if-expression whose if-part is not a constant
23088      expression */
23089   const char *g = "string";
23090   pcpcc = &g + (g ? g-g : 0);
23091   /* HPUX 7.0 cc rejects these. */
23092   ++pcpcc;
23093   ppc = (char**) pcpcc;
23094   pcpcc = (char const *const *) ppc;
23095   { /* SCO 3.2v4 cc rejects this.  */
23096     char *t;
23097     char const *s = 0 ? (char *) 0 : (char const *) 0;
23098
23099     *t++ = 0;
23100     if (s) return 0;
23101   }
23102   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
23103     int x[] = {25, 17};
23104     const int *foo = &x[0];
23105     ++foo;
23106   }
23107   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23108     typedef const int *iptr;
23109     iptr p = 0;
23110     ++p;
23111   }
23112   { /* AIX XL C 1.02.0.0 rejects this saying
23113        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23114     struct s { int j; const int *ap[3]; };
23115     struct s *b; b->j = 5;
23116   }
23117   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23118     const int foo = 10;
23119     if (!foo) return 0;
23120   }
23121   return !cs[0] && !zero.x;
23122 #endif
23123
23124   ;
23125   return 0;
23126 }
23127 _ACEOF
23128 rm -f conftest.$ac_objext
23129 if { (ac_try="$ac_compile"
23130 case "(($ac_try" in
23131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23132   *) ac_try_echo=$ac_try;;
23133 esac
23134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23135   (eval "$ac_compile") 2>conftest.er1
23136   ac_status=$?
23137   grep -v '^ *+' conftest.er1 >conftest.err
23138   rm -f conftest.er1
23139   cat conftest.err >&5
23140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23141   (exit $ac_status); } && {
23142          test -z "$ac_c_werror_flag" ||
23143          test ! -s conftest.err
23144        } && test -s conftest.$ac_objext; then
23145   ac_cv_c_const=yes
23146 else
23147   echo "$as_me: failed program was:" >&5
23148 sed 's/^/| /' conftest.$ac_ext >&5
23149
23150         ac_cv_c_const=no
23151 fi
23152
23153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23154 fi
23155 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
23156 echo "${ECHO_T}$ac_cv_c_const" >&6; }
23157 if test $ac_cv_c_const = no; then
23158
23159 cat >>confdefs.h <<\_ACEOF
23160 #define const
23161 _ACEOF
23162
23163 fi
23164
23165 { echo "$as_me:$LINENO: checking for size_t" >&5
23166 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
23167 if test "${ac_cv_type_size_t+set}" = set; then
23168   echo $ECHO_N "(cached) $ECHO_C" >&6
23169 else
23170   cat >conftest.$ac_ext <<_ACEOF
23171 /* confdefs.h.  */
23172 _ACEOF
23173 cat confdefs.h >>conftest.$ac_ext
23174 cat >>conftest.$ac_ext <<_ACEOF
23175 /* end confdefs.h.  */
23176 $ac_includes_default
23177 typedef size_t ac__type_new_;
23178 int
23179 main ()
23180 {
23181 if ((ac__type_new_ *) 0)
23182   return 0;
23183 if (sizeof (ac__type_new_))
23184   return 0;
23185   ;
23186   return 0;
23187 }
23188 _ACEOF
23189 rm -f conftest.$ac_objext
23190 if { (ac_try="$ac_compile"
23191 case "(($ac_try" in
23192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23193   *) ac_try_echo=$ac_try;;
23194 esac
23195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23196   (eval "$ac_compile") 2>conftest.er1
23197   ac_status=$?
23198   grep -v '^ *+' conftest.er1 >conftest.err
23199   rm -f conftest.er1
23200   cat conftest.err >&5
23201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23202   (exit $ac_status); } && {
23203          test -z "$ac_c_werror_flag" ||
23204          test ! -s conftest.err
23205        } && test -s conftest.$ac_objext; then
23206   ac_cv_type_size_t=yes
23207 else
23208   echo "$as_me: failed program was:" >&5
23209 sed 's/^/| /' conftest.$ac_ext >&5
23210
23211         ac_cv_type_size_t=no
23212 fi
23213
23214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23215 fi
23216 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
23217 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23218 if test $ac_cv_type_size_t = yes; then
23219   :
23220 else
23221
23222 cat >>confdefs.h <<_ACEOF
23223 #define size_t unsigned int
23224 _ACEOF
23225
23226 fi
23227
23228 { echo "$as_me:$LINENO: checking for pid_t" >&5
23229 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
23230 if test "${ac_cv_type_pid_t+set}" = set; then
23231   echo $ECHO_N "(cached) $ECHO_C" >&6
23232 else
23233   cat >conftest.$ac_ext <<_ACEOF
23234 /* confdefs.h.  */
23235 _ACEOF
23236 cat confdefs.h >>conftest.$ac_ext
23237 cat >>conftest.$ac_ext <<_ACEOF
23238 /* end confdefs.h.  */
23239 $ac_includes_default
23240 typedef pid_t ac__type_new_;
23241 int
23242 main ()
23243 {
23244 if ((ac__type_new_ *) 0)
23245   return 0;
23246 if (sizeof (ac__type_new_))
23247   return 0;
23248   ;
23249   return 0;
23250 }
23251 _ACEOF
23252 rm -f conftest.$ac_objext
23253 if { (ac_try="$ac_compile"
23254 case "(($ac_try" in
23255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23256   *) ac_try_echo=$ac_try;;
23257 esac
23258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23259   (eval "$ac_compile") 2>conftest.er1
23260   ac_status=$?
23261   grep -v '^ *+' conftest.er1 >conftest.err
23262   rm -f conftest.er1
23263   cat conftest.err >&5
23264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23265   (exit $ac_status); } && {
23266          test -z "$ac_c_werror_flag" ||
23267          test ! -s conftest.err
23268        } && test -s conftest.$ac_objext; then
23269   ac_cv_type_pid_t=yes
23270 else
23271   echo "$as_me: failed program was:" >&5
23272 sed 's/^/| /' conftest.$ac_ext >&5
23273
23274         ac_cv_type_pid_t=no
23275 fi
23276
23277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23278 fi
23279 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
23280 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
23281 if test $ac_cv_type_pid_t = yes; then
23282   :
23283 else
23284
23285 cat >>confdefs.h <<_ACEOF
23286 #define pid_t int
23287 _ACEOF
23288
23289 fi
23290
23291 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
23292 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
23293 if test "${ac_cv_type_uid_t+set}" = set; then
23294   echo $ECHO_N "(cached) $ECHO_C" >&6
23295 else
23296   cat >conftest.$ac_ext <<_ACEOF
23297 /* confdefs.h.  */
23298 _ACEOF
23299 cat confdefs.h >>conftest.$ac_ext
23300 cat >>conftest.$ac_ext <<_ACEOF
23301 /* end confdefs.h.  */
23302 #include <sys/types.h>
23303
23304 _ACEOF
23305 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23306   $EGREP "uid_t" >/dev/null 2>&1; then
23307   ac_cv_type_uid_t=yes
23308 else
23309   ac_cv_type_uid_t=no
23310 fi
23311 rm -f conftest*
23312
23313 fi
23314 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
23315 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
23316 if test $ac_cv_type_uid_t = no; then
23317
23318 cat >>confdefs.h <<\_ACEOF
23319 #define uid_t int
23320 _ACEOF
23321
23322
23323 cat >>confdefs.h <<\_ACEOF
23324 #define gid_t int
23325 _ACEOF
23326
23327 fi
23328
23329
23330 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
23331 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
23332 if test "${ac_cv_type_signal+set}" = set; then
23333   echo $ECHO_N "(cached) $ECHO_C" >&6
23334 else
23335   cat >conftest.$ac_ext <<_ACEOF
23336 /* confdefs.h.  */
23337 _ACEOF
23338 cat confdefs.h >>conftest.$ac_ext
23339 cat >>conftest.$ac_ext <<_ACEOF
23340 /* end confdefs.h.  */
23341 #include <sys/types.h>
23342 #include <signal.h>
23343
23344 int
23345 main ()
23346 {
23347 return *(signal (0, 0)) (0) == 1;
23348   ;
23349   return 0;
23350 }
23351 _ACEOF
23352 rm -f conftest.$ac_objext
23353 if { (ac_try="$ac_compile"
23354 case "(($ac_try" in
23355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23356   *) ac_try_echo=$ac_try;;
23357 esac
23358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23359   (eval "$ac_compile") 2>conftest.er1
23360   ac_status=$?
23361   grep -v '^ *+' conftest.er1 >conftest.err
23362   rm -f conftest.er1
23363   cat conftest.err >&5
23364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23365   (exit $ac_status); } && {
23366          test -z "$ac_c_werror_flag" ||
23367          test ! -s conftest.err
23368        } && test -s conftest.$ac_objext; then
23369   ac_cv_type_signal=int
23370 else
23371   echo "$as_me: failed program was:" >&5
23372 sed 's/^/| /' conftest.$ac_ext >&5
23373
23374         ac_cv_type_signal=void
23375 fi
23376
23377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23378 fi
23379 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
23380 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
23381
23382 cat >>confdefs.h <<_ACEOF
23383 #define RETSIGTYPE $ac_cv_type_signal
23384 _ACEOF
23385
23386
23387 if test "$ac_cv_type_signal" = "void" ; then
23388
23389 cat >>confdefs.h <<\_ACEOF
23390 #define VOID_RETSIGTYPE 1
23391 _ACEOF
23392
23393 fi
23394
23395
23396
23397
23398 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
23399 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
23400 if test "${ac_cv_header_time+set}" = set; then
23401   echo $ECHO_N "(cached) $ECHO_C" >&6
23402 else
23403   cat >conftest.$ac_ext <<_ACEOF
23404 /* confdefs.h.  */
23405 _ACEOF
23406 cat confdefs.h >>conftest.$ac_ext
23407 cat >>conftest.$ac_ext <<_ACEOF
23408 /* end confdefs.h.  */
23409 #include <sys/types.h>
23410 #include <sys/time.h>
23411 #include <time.h>
23412
23413 int
23414 main ()
23415 {
23416 if ((struct tm *) 0)
23417 return 0;
23418   ;
23419   return 0;
23420 }
23421 _ACEOF
23422 rm -f conftest.$ac_objext
23423 if { (ac_try="$ac_compile"
23424 case "(($ac_try" in
23425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23426   *) ac_try_echo=$ac_try;;
23427 esac
23428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23429   (eval "$ac_compile") 2>conftest.er1
23430   ac_status=$?
23431   grep -v '^ *+' conftest.er1 >conftest.err
23432   rm -f conftest.er1
23433   cat conftest.err >&5
23434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23435   (exit $ac_status); } && {
23436          test -z "$ac_c_werror_flag" ||
23437          test ! -s conftest.err
23438        } && test -s conftest.$ac_objext; then
23439   ac_cv_header_time=yes
23440 else
23441   echo "$as_me: failed program was:" >&5
23442 sed 's/^/| /' conftest.$ac_ext >&5
23443
23444         ac_cv_header_time=no
23445 fi
23446
23447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23448 fi
23449 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
23450 echo "${ECHO_T}$ac_cv_header_time" >&6; }
23451 if test $ac_cv_header_time = yes; then
23452
23453 cat >>confdefs.h <<\_ACEOF
23454 #define TIME_WITH_SYS_TIME 1
23455 _ACEOF
23456
23457 fi
23458
23459
23460
23461 for ac_header in standards.h
23462 do
23463 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23464 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23465   { echo "$as_me:$LINENO: checking for $ac_header" >&5
23466 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23467 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23468   echo $ECHO_N "(cached) $ECHO_C" >&6
23469 fi
23470 ac_res=`eval echo '${'$as_ac_Header'}'`
23471                { echo "$as_me:$LINENO: result: $ac_res" >&5
23472 echo "${ECHO_T}$ac_res" >&6; }
23473 else
23474   # Is the header compilable?
23475 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23476 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23477 cat >conftest.$ac_ext <<_ACEOF
23478 /* confdefs.h.  */
23479 _ACEOF
23480 cat confdefs.h >>conftest.$ac_ext
23481 cat >>conftest.$ac_ext <<_ACEOF
23482 /* end confdefs.h.  */
23483 $ac_includes_default
23484 #include <$ac_header>
23485 _ACEOF
23486 rm -f conftest.$ac_objext
23487 if { (ac_try="$ac_compile"
23488 case "(($ac_try" in
23489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23490   *) ac_try_echo=$ac_try;;
23491 esac
23492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23493   (eval "$ac_compile") 2>conftest.er1
23494   ac_status=$?
23495   grep -v '^ *+' conftest.er1 >conftest.err
23496   rm -f conftest.er1
23497   cat conftest.err >&5
23498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23499   (exit $ac_status); } && {
23500          test -z "$ac_c_werror_flag" ||
23501          test ! -s conftest.err
23502        } && test -s conftest.$ac_objext; then
23503   ac_header_compiler=yes
23504 else
23505   echo "$as_me: failed program was:" >&5
23506 sed 's/^/| /' conftest.$ac_ext >&5
23507
23508         ac_header_compiler=no
23509 fi
23510
23511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23512 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23513 echo "${ECHO_T}$ac_header_compiler" >&6; }
23514
23515 # Is the header present?
23516 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23517 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23518 cat >conftest.$ac_ext <<_ACEOF
23519 /* confdefs.h.  */
23520 _ACEOF
23521 cat confdefs.h >>conftest.$ac_ext
23522 cat >>conftest.$ac_ext <<_ACEOF
23523 /* end confdefs.h.  */
23524 #include <$ac_header>
23525 _ACEOF
23526 if { (ac_try="$ac_cpp conftest.$ac_ext"
23527 case "(($ac_try" in
23528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23529   *) ac_try_echo=$ac_try;;
23530 esac
23531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23532   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23533   ac_status=$?
23534   grep -v '^ *+' conftest.er1 >conftest.err
23535   rm -f conftest.er1
23536   cat conftest.err >&5
23537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23538   (exit $ac_status); } >/dev/null && {
23539          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23540          test ! -s conftest.err
23541        }; then
23542   ac_header_preproc=yes
23543 else
23544   echo "$as_me: failed program was:" >&5
23545 sed 's/^/| /' conftest.$ac_ext >&5
23546
23547   ac_header_preproc=no
23548 fi
23549
23550 rm -f conftest.err conftest.$ac_ext
23551 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23552 echo "${ECHO_T}$ac_header_preproc" >&6; }
23553
23554 # So?  What about this header?
23555 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23556   yes:no: )
23557     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23558 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23559     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23560 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23561     ac_header_preproc=yes
23562     ;;
23563   no:yes:* )
23564     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23565 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23566     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23567 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23568     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23569 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23570     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23571 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23572     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23573 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23574     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23575 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23576     ( cat <<\_ASBOX
23577 ## ----------------------------------- ##
23578 ## Report this to heimdal-bugs@h5l.org ##
23579 ## ----------------------------------- ##
23580 _ASBOX
23581      ) | sed "s/^/$as_me: WARNING:     /" >&2
23582     ;;
23583 esac
23584 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23585 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23586 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23587   echo $ECHO_N "(cached) $ECHO_C" >&6
23588 else
23589   eval "$as_ac_Header=\$ac_header_preproc"
23590 fi
23591 ac_res=`eval echo '${'$as_ac_Header'}'`
23592                { echo "$as_me:$LINENO: result: $ac_res" >&5
23593 echo "${ECHO_T}$ac_res" >&6; }
23594
23595 fi
23596 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23597   cat >>confdefs.h <<_ACEOF
23598 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23599 _ACEOF
23600
23601 fi
23602
23603 done
23604
23605 for i in netinet/ip.h netinet/tcp.h; do
23606
23607 cv=`echo "$i" | sed 'y%./+-%__p_%'`
23608
23609 { echo "$as_me:$LINENO: checking for $i" >&5
23610 echo $ECHO_N "checking for $i... $ECHO_C" >&6; }
23611 if { as_var=ac_cv_header_$cv; eval "test \"\${$as_var+set}\" = set"; }; then
23612   echo $ECHO_N "(cached) $ECHO_C" >&6
23613 else
23614   cat >conftest.$ac_ext <<_ACEOF
23615 /* confdefs.h.  */
23616 _ACEOF
23617 cat confdefs.h >>conftest.$ac_ext
23618 cat >>conftest.$ac_ext <<_ACEOF
23619 /* end confdefs.h.  */
23620
23621 #ifdef HAVE_STANDARDS_H
23622 #include <standards.h>
23623 #endif
23624 #include <$i>
23625
23626 _ACEOF
23627 if { (ac_try="$ac_cpp conftest.$ac_ext"
23628 case "(($ac_try" in
23629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23630   *) ac_try_echo=$ac_try;;
23631 esac
23632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23633   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23634   ac_status=$?
23635   grep -v '^ *+' conftest.er1 >conftest.err
23636   rm -f conftest.er1
23637   cat conftest.err >&5
23638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23639   (exit $ac_status); } >/dev/null && {
23640          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23641          test ! -s conftest.err
23642        }; then
23643   eval "ac_cv_header_$cv=yes"
23644 else
23645   echo "$as_me: failed program was:" >&5
23646 sed 's/^/| /' conftest.$ac_ext >&5
23647
23648   eval "ac_cv_header_$cv=no"
23649 fi
23650
23651 rm -f conftest.err conftest.$ac_ext
23652 fi
23653 ac_res=`eval echo '${'ac_cv_header_$cv'}'`
23654                { echo "$as_me:$LINENO: result: $ac_res" >&5
23655 echo "${ECHO_T}$ac_res" >&6; }
23656 ac_res=`eval echo \\$ac_cv_header_$cv`
23657 if test "$ac_res" = yes; then
23658         ac_tr_hdr=HAVE_`echo $i | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
23659         cat >>confdefs.h <<_ACEOF
23660 #define $ac_tr_hdr 1
23661 _ACEOF
23662
23663 fi
23664 done
23665 if false;then
23666
23667
23668 for ac_header in netinet/ip.h netinet/tcp.h
23669 do
23670 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23671 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23672   { echo "$as_me:$LINENO: checking for $ac_header" >&5
23673 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23674 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23675   echo $ECHO_N "(cached) $ECHO_C" >&6
23676 fi
23677 ac_res=`eval echo '${'$as_ac_Header'}'`
23678                { echo "$as_me:$LINENO: result: $ac_res" >&5
23679 echo "${ECHO_T}$ac_res" >&6; }
23680 else
23681   # Is the header compilable?
23682 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23683 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23684 cat >conftest.$ac_ext <<_ACEOF
23685 /* confdefs.h.  */
23686 _ACEOF
23687 cat confdefs.h >>conftest.$ac_ext
23688 cat >>conftest.$ac_ext <<_ACEOF
23689 /* end confdefs.h.  */
23690 $ac_includes_default
23691 #include <$ac_header>
23692 _ACEOF
23693 rm -f conftest.$ac_objext
23694 if { (ac_try="$ac_compile"
23695 case "(($ac_try" in
23696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23697   *) ac_try_echo=$ac_try;;
23698 esac
23699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23700   (eval "$ac_compile") 2>conftest.er1
23701   ac_status=$?
23702   grep -v '^ *+' conftest.er1 >conftest.err
23703   rm -f conftest.er1
23704   cat conftest.err >&5
23705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23706   (exit $ac_status); } && {
23707          test -z "$ac_c_werror_flag" ||
23708          test ! -s conftest.err
23709        } && test -s conftest.$ac_objext; then
23710   ac_header_compiler=yes
23711 else
23712   echo "$as_me: failed program was:" >&5
23713 sed 's/^/| /' conftest.$ac_ext >&5
23714
23715         ac_header_compiler=no
23716 fi
23717
23718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23719 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23720 echo "${ECHO_T}$ac_header_compiler" >&6; }
23721
23722 # Is the header present?
23723 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23724 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23725 cat >conftest.$ac_ext <<_ACEOF
23726 /* confdefs.h.  */
23727 _ACEOF
23728 cat confdefs.h >>conftest.$ac_ext
23729 cat >>conftest.$ac_ext <<_ACEOF
23730 /* end confdefs.h.  */
23731 #include <$ac_header>
23732 _ACEOF
23733 if { (ac_try="$ac_cpp conftest.$ac_ext"
23734 case "(($ac_try" in
23735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23736   *) ac_try_echo=$ac_try;;
23737 esac
23738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23739   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23740   ac_status=$?
23741   grep -v '^ *+' conftest.er1 >conftest.err
23742   rm -f conftest.er1
23743   cat conftest.err >&5
23744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23745   (exit $ac_status); } >/dev/null && {
23746          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23747          test ! -s conftest.err
23748        }; then
23749   ac_header_preproc=yes
23750 else
23751   echo "$as_me: failed program was:" >&5
23752 sed 's/^/| /' conftest.$ac_ext >&5
23753
23754   ac_header_preproc=no
23755 fi
23756
23757 rm -f conftest.err conftest.$ac_ext
23758 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23759 echo "${ECHO_T}$ac_header_preproc" >&6; }
23760
23761 # So?  What about this header?
23762 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23763   yes:no: )
23764     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23765 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23766     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23767 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23768     ac_header_preproc=yes
23769     ;;
23770   no:yes:* )
23771     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23772 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23773     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23774 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23775     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23776 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23777     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23778 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23779     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23780 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23781     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23782 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23783     ( cat <<\_ASBOX
23784 ## ----------------------------------- ##
23785 ## Report this to heimdal-bugs@h5l.org ##
23786 ## ----------------------------------- ##
23787 _ASBOX
23788      ) | sed "s/^/$as_me: WARNING:     /" >&2
23789     ;;
23790 esac
23791 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23792 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23793 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23794   echo $ECHO_N "(cached) $ECHO_C" >&6
23795 else
23796   eval "$as_ac_Header=\$ac_header_preproc"
23797 fi
23798 ac_res=`eval echo '${'$as_ac_Header'}'`
23799                { echo "$as_me:$LINENO: result: $ac_res" >&5
23800 echo "${ECHO_T}$ac_res" >&6; }
23801
23802 fi
23803 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23804   cat >>confdefs.h <<_ACEOF
23805 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23806 _ACEOF
23807
23808 fi
23809
23810 done
23811
23812 fi
23813
23814
23815
23816
23817 for ac_func in getlogin setlogin
23818 do
23819 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23820 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23821 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23822 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23823   echo $ECHO_N "(cached) $ECHO_C" >&6
23824 else
23825   cat >conftest.$ac_ext <<_ACEOF
23826 /* confdefs.h.  */
23827 _ACEOF
23828 cat confdefs.h >>conftest.$ac_ext
23829 cat >>conftest.$ac_ext <<_ACEOF
23830 /* end confdefs.h.  */
23831 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23832    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23833 #define $ac_func innocuous_$ac_func
23834
23835 /* System header to define __stub macros and hopefully few prototypes,
23836     which can conflict with char $ac_func (); below.
23837     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23838     <limits.h> exists even on freestanding compilers.  */
23839
23840 #ifdef __STDC__
23841 # include <limits.h>
23842 #else
23843 # include <assert.h>
23844 #endif
23845
23846 #undef $ac_func
23847
23848 /* Override any GCC internal prototype to avoid an error.
23849    Use char because int might match the return type of a GCC
23850    builtin and then its argument prototype would still apply.  */
23851 #ifdef __cplusplus
23852 extern "C"
23853 #endif
23854 char $ac_func ();
23855 /* The GNU C library defines this for functions which it implements
23856     to always fail with ENOSYS.  Some functions are actually named
23857     something starting with __ and the normal name is an alias.  */
23858 #if defined __stub_$ac_func || defined __stub___$ac_func
23859 choke me
23860 #endif
23861
23862 int
23863 main ()
23864 {
23865 return $ac_func ();
23866   ;
23867   return 0;
23868 }
23869 _ACEOF
23870 rm -f conftest.$ac_objext conftest$ac_exeext
23871 if { (ac_try="$ac_link"
23872 case "(($ac_try" in
23873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23874   *) ac_try_echo=$ac_try;;
23875 esac
23876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23877   (eval "$ac_link") 2>conftest.er1
23878   ac_status=$?
23879   grep -v '^ *+' conftest.er1 >conftest.err
23880   rm -f conftest.er1
23881   cat conftest.err >&5
23882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23883   (exit $ac_status); } && {
23884          test -z "$ac_c_werror_flag" ||
23885          test ! -s conftest.err
23886        } && test -s conftest$ac_exeext &&
23887        $as_test_x conftest$ac_exeext; then
23888   eval "$as_ac_var=yes"
23889 else
23890   echo "$as_me: failed program was:" >&5
23891 sed 's/^/| /' conftest.$ac_ext >&5
23892
23893         eval "$as_ac_var=no"
23894 fi
23895
23896 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23897       conftest$ac_exeext conftest.$ac_ext
23898 fi
23899 ac_res=`eval echo '${'$as_ac_var'}'`
23900                { echo "$as_me:$LINENO: result: $ac_res" >&5
23901 echo "${ECHO_T}$ac_res" >&6; }
23902 if test `eval echo '${'$as_ac_var'}'` = yes; then
23903   cat >>confdefs.h <<_ACEOF
23904 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23905 _ACEOF
23906
23907 fi
23908 done
23909
23910 if test "$ac_cv_func_getlogin" = yes; then
23911 { echo "$as_me:$LINENO: checking if getlogin is posix" >&5
23912 echo $ECHO_N "checking if getlogin is posix... $ECHO_C" >&6; }
23913 if test "${ac_cv_func_getlogin_posix+set}" = set; then
23914   echo $ECHO_N "(cached) $ECHO_C" >&6
23915 else
23916
23917 if test "$ac_cv_func_getlogin" = yes -a "$ac_cv_func_setlogin" = yes; then
23918         ac_cv_func_getlogin_posix=no
23919 else
23920         ac_cv_func_getlogin_posix=yes
23921 fi
23922
23923 fi
23924 { echo "$as_me:$LINENO: result: $ac_cv_func_getlogin_posix" >&5
23925 echo "${ECHO_T}$ac_cv_func_getlogin_posix" >&6; }
23926 if test "$ac_cv_func_getlogin_posix" = yes; then
23927
23928 cat >>confdefs.h <<\_ACEOF
23929 #define POSIX_GETLOGIN 1
23930 _ACEOF
23931
23932 fi
23933 fi
23934
23935
23936
23937 for ac_header in stdlib.h unistd.h
23938 do
23939 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23940 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23941   { echo "$as_me:$LINENO: checking for $ac_header" >&5
23942 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23943 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23944   echo $ECHO_N "(cached) $ECHO_C" >&6
23945 fi
23946 ac_res=`eval echo '${'$as_ac_Header'}'`
23947                { echo "$as_me:$LINENO: result: $ac_res" >&5
23948 echo "${ECHO_T}$ac_res" >&6; }
23949 else
23950   # Is the header compilable?
23951 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23952 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23953 cat >conftest.$ac_ext <<_ACEOF
23954 /* confdefs.h.  */
23955 _ACEOF
23956 cat confdefs.h >>conftest.$ac_ext
23957 cat >>conftest.$ac_ext <<_ACEOF
23958 /* end confdefs.h.  */
23959 $ac_includes_default
23960 #include <$ac_header>
23961 _ACEOF
23962 rm -f conftest.$ac_objext
23963 if { (ac_try="$ac_compile"
23964 case "(($ac_try" in
23965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23966   *) ac_try_echo=$ac_try;;
23967 esac
23968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23969   (eval "$ac_compile") 2>conftest.er1
23970   ac_status=$?
23971   grep -v '^ *+' conftest.er1 >conftest.err
23972   rm -f conftest.er1
23973   cat conftest.err >&5
23974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23975   (exit $ac_status); } && {
23976          test -z "$ac_c_werror_flag" ||
23977          test ! -s conftest.err
23978        } && test -s conftest.$ac_objext; then
23979   ac_header_compiler=yes
23980 else
23981   echo "$as_me: failed program was:" >&5
23982 sed 's/^/| /' conftest.$ac_ext >&5
23983
23984         ac_header_compiler=no
23985 fi
23986
23987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23988 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23989 echo "${ECHO_T}$ac_header_compiler" >&6; }
23990
23991 # Is the header present?
23992 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23993 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23994 cat >conftest.$ac_ext <<_ACEOF
23995 /* confdefs.h.  */
23996 _ACEOF
23997 cat confdefs.h >>conftest.$ac_ext
23998 cat >>conftest.$ac_ext <<_ACEOF
23999 /* end confdefs.h.  */
24000 #include <$ac_header>
24001 _ACEOF
24002 if { (ac_try="$ac_cpp conftest.$ac_ext"
24003 case "(($ac_try" in
24004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24005   *) ac_try_echo=$ac_try;;
24006 esac
24007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24008   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24009   ac_status=$?
24010   grep -v '^ *+' conftest.er1 >conftest.err
24011   rm -f conftest.er1
24012   cat conftest.err >&5
24013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24014   (exit $ac_status); } >/dev/null && {
24015          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24016          test ! -s conftest.err
24017        }; then
24018   ac_header_preproc=yes
24019 else
24020   echo "$as_me: failed program was:" >&5
24021 sed 's/^/| /' conftest.$ac_ext >&5
24022
24023   ac_header_preproc=no
24024 fi
24025
24026 rm -f conftest.err conftest.$ac_ext
24027 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24028 echo "${ECHO_T}$ac_header_preproc" >&6; }
24029
24030 # So?  What about this header?
24031 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24032   yes:no: )
24033     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24034 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24035     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24036 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24037     ac_header_preproc=yes
24038     ;;
24039   no:yes:* )
24040     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24041 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24042     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24043 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24044     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24045 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24046     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24047 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24048     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24049 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24050     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24051 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24052     ( cat <<\_ASBOX
24053 ## ----------------------------------- ##
24054 ## Report this to heimdal-bugs@h5l.org ##
24055 ## ----------------------------------- ##
24056 _ASBOX
24057      ) | sed "s/^/$as_me: WARNING:     /" >&2
24058     ;;
24059 esac
24060 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24061 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24062 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24063   echo $ECHO_N "(cached) $ECHO_C" >&6
24064 else
24065   eval "$as_ac_Header=\$ac_header_preproc"
24066 fi
24067 ac_res=`eval echo '${'$as_ac_Header'}'`
24068                { echo "$as_me:$LINENO: result: $ac_res" >&5
24069 echo "${ECHO_T}$ac_res" >&6; }
24070
24071 fi
24072 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24073   cat >>confdefs.h <<_ACEOF
24074 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24075 _ACEOF
24076
24077 fi
24078
24079 done
24080
24081
24082 for ac_func in getpagesize
24083 do
24084 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24085 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24086 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24087 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24088   echo $ECHO_N "(cached) $ECHO_C" >&6
24089 else
24090   cat >conftest.$ac_ext <<_ACEOF
24091 /* confdefs.h.  */
24092 _ACEOF
24093 cat confdefs.h >>conftest.$ac_ext
24094 cat >>conftest.$ac_ext <<_ACEOF
24095 /* end confdefs.h.  */
24096 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24097    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24098 #define $ac_func innocuous_$ac_func
24099
24100 /* System header to define __stub macros and hopefully few prototypes,
24101     which can conflict with char $ac_func (); below.
24102     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24103     <limits.h> exists even on freestanding compilers.  */
24104
24105 #ifdef __STDC__
24106 # include <limits.h>
24107 #else
24108 # include <assert.h>
24109 #endif
24110
24111 #undef $ac_func
24112
24113 /* Override any GCC internal prototype to avoid an error.
24114    Use char because int might match the return type of a GCC
24115    builtin and then its argument prototype would still apply.  */
24116 #ifdef __cplusplus
24117 extern "C"
24118 #endif
24119 char $ac_func ();
24120 /* The GNU C library defines this for functions which it implements
24121     to always fail with ENOSYS.  Some functions are actually named
24122     something starting with __ and the normal name is an alias.  */
24123 #if defined __stub_$ac_func || defined __stub___$ac_func
24124 choke me
24125 #endif
24126
24127 int
24128 main ()
24129 {
24130 return $ac_func ();
24131   ;
24132   return 0;
24133 }
24134 _ACEOF
24135 rm -f conftest.$ac_objext conftest$ac_exeext
24136 if { (ac_try="$ac_link"
24137 case "(($ac_try" in
24138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24139   *) ac_try_echo=$ac_try;;
24140 esac
24141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24142   (eval "$ac_link") 2>conftest.er1
24143   ac_status=$?
24144   grep -v '^ *+' conftest.er1 >conftest.err
24145   rm -f conftest.er1
24146   cat conftest.err >&5
24147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24148   (exit $ac_status); } && {
24149          test -z "$ac_c_werror_flag" ||
24150          test ! -s conftest.err
24151        } && test -s conftest$ac_exeext &&
24152        $as_test_x conftest$ac_exeext; then
24153   eval "$as_ac_var=yes"
24154 else
24155   echo "$as_me: failed program was:" >&5
24156 sed 's/^/| /' conftest.$ac_ext >&5
24157
24158         eval "$as_ac_var=no"
24159 fi
24160
24161 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24162       conftest$ac_exeext conftest.$ac_ext
24163 fi
24164 ac_res=`eval echo '${'$as_ac_var'}'`
24165                { echo "$as_me:$LINENO: result: $ac_res" >&5
24166 echo "${ECHO_T}$ac_res" >&6; }
24167 if test `eval echo '${'$as_ac_var'}'` = yes; then
24168   cat >>confdefs.h <<_ACEOF
24169 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24170 _ACEOF
24171
24172 fi
24173 done
24174
24175 { echo "$as_me:$LINENO: checking for working mmap" >&5
24176 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
24177 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
24178   echo $ECHO_N "(cached) $ECHO_C" >&6
24179 else
24180   if test "$cross_compiling" = yes; then
24181   ac_cv_func_mmap_fixed_mapped=no
24182 else
24183   cat >conftest.$ac_ext <<_ACEOF
24184 /* confdefs.h.  */
24185 _ACEOF
24186 cat confdefs.h >>conftest.$ac_ext
24187 cat >>conftest.$ac_ext <<_ACEOF
24188 /* end confdefs.h.  */
24189 $ac_includes_default
24190 /* malloc might have been renamed as rpl_malloc. */
24191 #undef malloc
24192
24193 /* Thanks to Mike Haertel and Jim Avera for this test.
24194    Here is a matrix of mmap possibilities:
24195         mmap private not fixed
24196         mmap private fixed at somewhere currently unmapped
24197         mmap private fixed at somewhere already mapped
24198         mmap shared not fixed
24199         mmap shared fixed at somewhere currently unmapped
24200         mmap shared fixed at somewhere already mapped
24201    For private mappings, we should verify that changes cannot be read()
24202    back from the file, nor mmap's back from the file at a different
24203    address.  (There have been systems where private was not correctly
24204    implemented like the infamous i386 svr4.0, and systems where the
24205    VM page cache was not coherent with the file system buffer cache
24206    like early versions of FreeBSD and possibly contemporary NetBSD.)
24207    For shared mappings, we should conversely verify that changes get
24208    propagated back to all the places they're supposed to be.
24209
24210    Grep wants private fixed already mapped.
24211    The main things grep needs to know about mmap are:
24212    * does it exist and is it safe to write into the mmap'd area
24213    * how to use it (BSD variants)  */
24214
24215 #include <fcntl.h>
24216 #include <sys/mman.h>
24217
24218 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
24219 char *malloc ();
24220 #endif
24221
24222 /* This mess was copied from the GNU getpagesize.h.  */
24223 #ifndef HAVE_GETPAGESIZE
24224 /* Assume that all systems that can run configure have sys/param.h.  */
24225 # ifndef HAVE_SYS_PARAM_H
24226 #  define HAVE_SYS_PARAM_H 1
24227 # endif
24228
24229 # ifdef _SC_PAGESIZE
24230 #  define getpagesize() sysconf(_SC_PAGESIZE)
24231 # else /* no _SC_PAGESIZE */
24232 #  ifdef HAVE_SYS_PARAM_H
24233 #   include <sys/param.h>
24234 #   ifdef EXEC_PAGESIZE
24235 #    define getpagesize() EXEC_PAGESIZE
24236 #   else /* no EXEC_PAGESIZE */
24237 #    ifdef NBPG
24238 #     define getpagesize() NBPG * CLSIZE
24239 #     ifndef CLSIZE
24240 #      define CLSIZE 1
24241 #     endif /* no CLSIZE */
24242 #    else /* no NBPG */
24243 #     ifdef NBPC
24244 #      define getpagesize() NBPC
24245 #     else /* no NBPC */
24246 #      ifdef PAGESIZE
24247 #       define getpagesize() PAGESIZE
24248 #      endif /* PAGESIZE */
24249 #     endif /* no NBPC */
24250 #    endif /* no NBPG */
24251 #   endif /* no EXEC_PAGESIZE */
24252 #  else /* no HAVE_SYS_PARAM_H */
24253 #   define getpagesize() 8192   /* punt totally */
24254 #  endif /* no HAVE_SYS_PARAM_H */
24255 # endif /* no _SC_PAGESIZE */
24256
24257 #endif /* no HAVE_GETPAGESIZE */
24258
24259 int
24260 main ()
24261 {
24262   char *data, *data2, *data3;
24263   int i, pagesize;
24264   int fd;
24265
24266   pagesize = getpagesize ();
24267
24268   /* First, make a file with some known garbage in it. */
24269   data = (char *) malloc (pagesize);
24270   if (!data)
24271     return 1;
24272   for (i = 0; i < pagesize; ++i)
24273     *(data + i) = rand ();
24274   umask (0);
24275   fd = creat ("conftest.mmap", 0600);
24276   if (fd < 0)
24277     return 1;
24278   if (write (fd, data, pagesize) != pagesize)
24279     return 1;
24280   close (fd);
24281
24282   /* Next, try to mmap the file at a fixed address which already has
24283      something else allocated at it.  If we can, also make sure that
24284      we see the same garbage.  */
24285   fd = open ("conftest.mmap", O_RDWR);
24286   if (fd < 0)
24287     return 1;
24288   data2 = (char *) malloc (2 * pagesize);
24289   if (!data2)
24290     return 1;
24291   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
24292   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
24293                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
24294     return 1;
24295   for (i = 0; i < pagesize; ++i)
24296     if (*(data + i) != *(data2 + i))
24297       return 1;
24298
24299   /* Finally, make sure that changes to the mapped area do not
24300      percolate back to the file as seen by read().  (This is a bug on
24301      some variants of i386 svr4.0.)  */
24302   for (i = 0; i < pagesize; ++i)
24303     *(data2 + i) = *(data2 + i) + 1;
24304   data3 = (char *) malloc (pagesize);
24305   if (!data3)
24306     return 1;
24307   if (read (fd, data3, pagesize) != pagesize)
24308     return 1;
24309   for (i = 0; i < pagesize; ++i)
24310     if (*(data + i) != *(data3 + i))
24311       return 1;
24312   close (fd);
24313   return 0;
24314 }
24315 _ACEOF
24316 rm -f conftest$ac_exeext
24317 if { (ac_try="$ac_link"
24318 case "(($ac_try" in
24319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24320   *) ac_try_echo=$ac_try;;
24321 esac
24322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24323   (eval "$ac_link") 2>&5
24324   ac_status=$?
24325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24326   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24327   { (case "(($ac_try" in
24328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24329   *) ac_try_echo=$ac_try;;
24330 esac
24331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24332   (eval "$ac_try") 2>&5
24333   ac_status=$?
24334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24335   (exit $ac_status); }; }; then
24336   ac_cv_func_mmap_fixed_mapped=yes
24337 else
24338   echo "$as_me: program exited with status $ac_status" >&5
24339 echo "$as_me: failed program was:" >&5
24340 sed 's/^/| /' conftest.$ac_ext >&5
24341
24342 ( exit $ac_status )
24343 ac_cv_func_mmap_fixed_mapped=no
24344 fi
24345 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24346 fi
24347
24348
24349 fi
24350 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
24351 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
24352 if test $ac_cv_func_mmap_fixed_mapped = yes; then
24353
24354 cat >>confdefs.h <<\_ACEOF
24355 #define HAVE_MMAP 1
24356 _ACEOF
24357
24358 fi
24359 rm -f conftest.mmap
24360
24361
24362 { echo "$as_me:$LINENO: checking if realloc if broken" >&5
24363 echo $ECHO_N "checking if realloc if broken... $ECHO_C" >&6; }
24364 if test "${ac_cv_func_realloc_broken+set}" = set; then
24365   echo $ECHO_N "(cached) $ECHO_C" >&6
24366 else
24367
24368 ac_cv_func_realloc_broken=no
24369 if test "$cross_compiling" = yes; then
24370   :
24371 else
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
24379 #include <stddef.h>
24380 #include <stdlib.h>
24381
24382 int main(int argc, char **argv)
24383 {
24384         return realloc(NULL, 17) == NULL;
24385 }
24386
24387 _ACEOF
24388 rm -f conftest$ac_exeext
24389 if { (ac_try="$ac_link"
24390 case "(($ac_try" in
24391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24392   *) ac_try_echo=$ac_try;;
24393 esac
24394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24395   (eval "$ac_link") 2>&5
24396   ac_status=$?
24397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24398   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24399   { (case "(($ac_try" in
24400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24401   *) ac_try_echo=$ac_try;;
24402 esac
24403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24404   (eval "$ac_try") 2>&5
24405   ac_status=$?
24406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24407   (exit $ac_status); }; }; then
24408   :
24409 else
24410   echo "$as_me: program exited with status $ac_status" >&5
24411 echo "$as_me: failed program was:" >&5
24412 sed 's/^/| /' conftest.$ac_ext >&5
24413
24414 ( exit $ac_status )
24415 ac_cv_func_realloc_broken=yes
24416 fi
24417 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24418 fi
24419
24420
24421
24422 fi
24423 { echo "$as_me:$LINENO: result: $ac_cv_func_realloc_broken" >&5
24424 echo "${ECHO_T}$ac_cv_func_realloc_broken" >&6; }
24425 if test "$ac_cv_func_realloc_broken" = yes ; then
24426
24427 cat >>confdefs.h <<\_ACEOF
24428 #define BROKEN_REALLOC 1
24429 _ACEOF
24430
24431 fi
24432
24433
24434
24435
24436
24437
24438
24439 DIR_roken=roken
24440 LIB_roken='$(top_builddir)/lib/roken/libroken.la'
24441 INCLUDES_roken='-I$(top_builddir)/lib/roken -I$(top_srcdir)/lib/roken'
24442
24443
24444
24445
24446
24447
24448
24449
24450
24451
24452
24453
24454
24455
24456
24457 # Check whether --enable-developer was given.
24458 if test "${enable_developer+set}" = set; then
24459   enableval=$enable_developer;
24460 fi
24461
24462 if test "X$enable_developer" = Xyes; then
24463     dwflags="-Werror"
24464 fi
24465
24466 WFLAGS_NOUNUSED=""
24467 WFLAGS_NOIMPLICITINT=""
24468 if test -z "$WFLAGS" -a "$GCC" = "yes"; then
24469   # -Wno-implicit-int for broken X11 headers
24470   # leave these out for now:
24471   #   -Wcast-align doesn't work well on alpha osf/1
24472   #   -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast
24473   #   -Wmissing-declarations -Wnested-externs
24474   WFLAGS="-Wall -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast -Wmissing-declarations -Wnested-externs $dwflags"
24475   WFLAGS_NOUNUSED="-Wno-unused"
24476   WFLAGS_NOIMPLICITINT="-Wno-implicit-int"
24477 fi
24478
24479
24480
24481
24482
24483
24484
24485
24486 cv=`echo "ssize_t" | sed 'y%./+- %__p__%'`
24487 { echo "$as_me:$LINENO: checking for ssize_t" >&5
24488 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
24489 if { as_var=ac_cv_type_$cv; eval "test \"\${$as_var+set}\" = set"; }; then
24490   echo $ECHO_N "(cached) $ECHO_C" >&6
24491 else
24492   cat >conftest.$ac_ext <<_ACEOF
24493 /* confdefs.h.  */
24494 _ACEOF
24495 cat confdefs.h >>conftest.$ac_ext
24496 cat >>conftest.$ac_ext <<_ACEOF
24497 /* end confdefs.h.  */
24498
24499 #include <sys/types.h>
24500 #if STDC_HEADERS
24501 #include <stdlib.h>
24502 #include <stddef.h>
24503 #endif
24504 #include <unistd.h>
24505 int
24506 main ()
24507 {
24508 ssize_t foo;
24509   ;
24510   return 0;
24511 }
24512 _ACEOF
24513 rm -f conftest.$ac_objext
24514 if { (ac_try="$ac_compile"
24515 case "(($ac_try" in
24516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24517   *) ac_try_echo=$ac_try;;
24518 esac
24519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24520   (eval "$ac_compile") 2>conftest.er1
24521   ac_status=$?
24522   grep -v '^ *+' conftest.er1 >conftest.err
24523   rm -f conftest.er1
24524   cat conftest.err >&5
24525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24526   (exit $ac_status); } && {
24527          test -z "$ac_c_werror_flag" ||
24528          test ! -s conftest.err
24529        } && test -s conftest.$ac_objext; then
24530   eval "ac_cv_type_$cv=yes"
24531 else
24532   echo "$as_me: failed program was:" >&5
24533 sed 's/^/| /' conftest.$ac_ext >&5
24534
24535         eval "ac_cv_type_$cv=no"
24536 fi
24537
24538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24539 fi
24540 ac_foo=`eval echo \\$ac_cv_type_$cv`
24541 { echo "$as_me:$LINENO: result: $ac_foo" >&5
24542 echo "${ECHO_T}$ac_foo" >&6; }
24543 if test "$ac_foo" = yes; then
24544   ac_tr_hdr=HAVE_`echo ssize_t | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
24545 if false; then
24546         { echo "$as_me:$LINENO: checking for ssize_t" >&5
24547 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
24548 if test "${ac_cv_type_ssize_t+set}" = set; then
24549   echo $ECHO_N "(cached) $ECHO_C" >&6
24550 else
24551   cat >conftest.$ac_ext <<_ACEOF
24552 /* confdefs.h.  */
24553 _ACEOF
24554 cat confdefs.h >>conftest.$ac_ext
24555 cat >>conftest.$ac_ext <<_ACEOF
24556 /* end confdefs.h.  */
24557 $ac_includes_default
24558 typedef ssize_t ac__type_new_;
24559 int
24560 main ()
24561 {
24562 if ((ac__type_new_ *) 0)
24563   return 0;
24564 if (sizeof (ac__type_new_))
24565   return 0;
24566   ;
24567   return 0;
24568 }
24569 _ACEOF
24570 rm -f conftest.$ac_objext
24571 if { (ac_try="$ac_compile"
24572 case "(($ac_try" in
24573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24574   *) ac_try_echo=$ac_try;;
24575 esac
24576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24577   (eval "$ac_compile") 2>conftest.er1
24578   ac_status=$?
24579   grep -v '^ *+' conftest.er1 >conftest.err
24580   rm -f conftest.er1
24581   cat conftest.err >&5
24582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24583   (exit $ac_status); } && {
24584          test -z "$ac_c_werror_flag" ||
24585          test ! -s conftest.err
24586        } && test -s conftest.$ac_objext; then
24587   ac_cv_type_ssize_t=yes
24588 else
24589   echo "$as_me: failed program was:" >&5
24590 sed 's/^/| /' conftest.$ac_ext >&5
24591
24592         ac_cv_type_ssize_t=no
24593 fi
24594
24595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24596 fi
24597 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
24598 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
24599 if test $ac_cv_type_ssize_t = yes; then
24600
24601 cat >>confdefs.h <<_ACEOF
24602 #define HAVE_SSIZE_T 1
24603 _ACEOF
24604
24605
24606 fi
24607
24608 fi
24609
24610 cat >>confdefs.h <<_ACEOF
24611 #define $ac_tr_hdr 1
24612 _ACEOF
24613
24614 fi
24615
24616
24617
24618
24619
24620 cv=`echo "long long" | sed 'y%./+- %__p__%'`
24621 { echo "$as_me:$LINENO: checking for long long" >&5
24622 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
24623 if { as_var=ac_cv_type_$cv; eval "test \"\${$as_var+set}\" = set"; }; then
24624   echo $ECHO_N "(cached) $ECHO_C" >&6
24625 else
24626   cat >conftest.$ac_ext <<_ACEOF
24627 /* confdefs.h.  */
24628 _ACEOF
24629 cat confdefs.h >>conftest.$ac_ext
24630 cat >>conftest.$ac_ext <<_ACEOF
24631 /* end confdefs.h.  */
24632
24633 #include <sys/types.h>
24634 #if STDC_HEADERS
24635 #include <stdlib.h>
24636 #include <stddef.h>
24637 #endif
24638
24639 int
24640 main ()
24641 {
24642 long long foo;
24643   ;
24644   return 0;
24645 }
24646 _ACEOF
24647 rm -f conftest.$ac_objext
24648 if { (ac_try="$ac_compile"
24649 case "(($ac_try" in
24650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24651   *) ac_try_echo=$ac_try;;
24652 esac
24653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24654   (eval "$ac_compile") 2>conftest.er1
24655   ac_status=$?
24656   grep -v '^ *+' conftest.er1 >conftest.err
24657   rm -f conftest.er1
24658   cat conftest.err >&5
24659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24660   (exit $ac_status); } && {
24661          test -z "$ac_c_werror_flag" ||
24662          test ! -s conftest.err
24663        } && test -s conftest.$ac_objext; then
24664   eval "ac_cv_type_$cv=yes"
24665 else
24666   echo "$as_me: failed program was:" >&5
24667 sed 's/^/| /' conftest.$ac_ext >&5
24668
24669         eval "ac_cv_type_$cv=no"
24670 fi
24671
24672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24673 fi
24674 ac_foo=`eval echo \\$ac_cv_type_$cv`
24675 { echo "$as_me:$LINENO: result: $ac_foo" >&5
24676 echo "${ECHO_T}$ac_foo" >&6; }
24677 if test "$ac_foo" = yes; then
24678   ac_tr_hdr=HAVE_`echo long long | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
24679 if false; then
24680         { echo "$as_me:$LINENO: checking for long long" >&5
24681 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
24682 if test "${ac_cv_type_long_long+set}" = set; then
24683   echo $ECHO_N "(cached) $ECHO_C" >&6
24684 else
24685   cat >conftest.$ac_ext <<_ACEOF
24686 /* confdefs.h.  */
24687 _ACEOF
24688 cat confdefs.h >>conftest.$ac_ext
24689 cat >>conftest.$ac_ext <<_ACEOF
24690 /* end confdefs.h.  */
24691 $ac_includes_default
24692 typedef long long ac__type_new_;
24693 int
24694 main ()
24695 {
24696 if ((ac__type_new_ *) 0)
24697   return 0;
24698 if (sizeof (ac__type_new_))
24699   return 0;
24700   ;
24701   return 0;
24702 }
24703 _ACEOF
24704 rm -f conftest.$ac_objext
24705 if { (ac_try="$ac_compile"
24706 case "(($ac_try" in
24707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24708   *) ac_try_echo=$ac_try;;
24709 esac
24710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24711   (eval "$ac_compile") 2>conftest.er1
24712   ac_status=$?
24713   grep -v '^ *+' conftest.er1 >conftest.err
24714   rm -f conftest.er1
24715   cat conftest.err >&5
24716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24717   (exit $ac_status); } && {
24718          test -z "$ac_c_werror_flag" ||
24719          test ! -s conftest.err
24720        } && test -s conftest.$ac_objext; then
24721   ac_cv_type_long_long=yes
24722 else
24723   echo "$as_me: failed program was:" >&5
24724 sed 's/^/| /' conftest.$ac_ext >&5
24725
24726         ac_cv_type_long_long=no
24727 fi
24728
24729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24730 fi
24731 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
24732 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
24733 if test $ac_cv_type_long_long = yes; then
24734
24735 cat >>confdefs.h <<_ACEOF
24736 #define HAVE_LONG_LONG 1
24737 _ACEOF
24738
24739
24740 fi
24741
24742 fi
24743
24744 cat >>confdefs.h <<_ACEOF
24745 #define $ac_tr_hdr 1
24746 _ACEOF
24747
24748 fi
24749
24750
24751
24752
24753
24754
24755
24756
24757
24758
24759
24760
24761
24762
24763
24764
24765
24766
24767
24768
24769
24770
24771
24772
24773
24774
24775
24776
24777
24778
24779
24780
24781
24782
24783
24784
24785
24786
24787
24788
24789
24790
24791
24792
24793
24794
24795 for ac_header in \
24796         arpa/inet.h                             \
24797         config.h                                \
24798         crypt.h                                 \
24799         dirent.h                                \
24800         errno.h                                 \
24801         err.h                                   \
24802         fcntl.h                                 \
24803         fnmatch.h                               \
24804         grp.h                                   \
24805         ifaddrs.h                               \
24806         netinet/in.h                            \
24807         netinet/in6.h                           \
24808         netinet/in_systm.h                      \
24809         netinet6/in6.h                          \
24810         paths.h                                 \
24811         poll.h                                  \
24812         pwd.h                                   \
24813         rpcsvc/ypclnt.h                         \
24814         shadow.h                                \
24815         stdint.h                                \
24816         sys/bswap.h                             \
24817         sys/ioctl.h                             \
24818         sys/mman.h                              \
24819         sys/param.h                             \
24820         sys/resource.h                          \
24821         sys/sockio.h                            \
24822         sys/stat.h                              \
24823         sys/time.h                              \
24824         sys/tty.h                               \
24825         sys/types.h                             \
24826         sys/uio.h                               \
24827         sys/utsname.h                           \
24828         sys/wait.h                              \
24829         syslog.h                                \
24830         termios.h                               \
24831         unistd.h                                \
24832         userconf.h                              \
24833         usersec.h                               \
24834         util.h                                  \
24835
24836 do
24837 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24838 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24839   { echo "$as_me:$LINENO: checking for $ac_header" >&5
24840 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24841 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24842   echo $ECHO_N "(cached) $ECHO_C" >&6
24843 fi
24844 ac_res=`eval echo '${'$as_ac_Header'}'`
24845                { echo "$as_me:$LINENO: result: $ac_res" >&5
24846 echo "${ECHO_T}$ac_res" >&6; }
24847 else
24848   # Is the header compilable?
24849 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24850 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24851 cat >conftest.$ac_ext <<_ACEOF
24852 /* confdefs.h.  */
24853 _ACEOF
24854 cat confdefs.h >>conftest.$ac_ext
24855 cat >>conftest.$ac_ext <<_ACEOF
24856 /* end confdefs.h.  */
24857 $ac_includes_default
24858 #include <$ac_header>
24859 _ACEOF
24860 rm -f conftest.$ac_objext
24861 if { (ac_try="$ac_compile"
24862 case "(($ac_try" in
24863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24864   *) ac_try_echo=$ac_try;;
24865 esac
24866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24867   (eval "$ac_compile") 2>conftest.er1
24868   ac_status=$?
24869   grep -v '^ *+' conftest.er1 >conftest.err
24870   rm -f conftest.er1
24871   cat conftest.err >&5
24872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24873   (exit $ac_status); } && {
24874          test -z "$ac_c_werror_flag" ||
24875          test ! -s conftest.err
24876        } && test -s conftest.$ac_objext; then
24877   ac_header_compiler=yes
24878 else
24879   echo "$as_me: failed program was:" >&5
24880 sed 's/^/| /' conftest.$ac_ext >&5
24881
24882         ac_header_compiler=no
24883 fi
24884
24885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24886 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24887 echo "${ECHO_T}$ac_header_compiler" >&6; }
24888
24889 # Is the header present?
24890 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24891 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24892 cat >conftest.$ac_ext <<_ACEOF
24893 /* confdefs.h.  */
24894 _ACEOF
24895 cat confdefs.h >>conftest.$ac_ext
24896 cat >>conftest.$ac_ext <<_ACEOF
24897 /* end confdefs.h.  */
24898 #include <$ac_header>
24899 _ACEOF
24900 if { (ac_try="$ac_cpp conftest.$ac_ext"
24901 case "(($ac_try" in
24902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24903   *) ac_try_echo=$ac_try;;
24904 esac
24905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24906   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24907   ac_status=$?
24908   grep -v '^ *+' conftest.er1 >conftest.err
24909   rm -f conftest.er1
24910   cat conftest.err >&5
24911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24912   (exit $ac_status); } >/dev/null && {
24913          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24914          test ! -s conftest.err
24915        }; then
24916   ac_header_preproc=yes
24917 else
24918   echo "$as_me: failed program was:" >&5
24919 sed 's/^/| /' conftest.$ac_ext >&5
24920
24921   ac_header_preproc=no
24922 fi
24923
24924 rm -f conftest.err conftest.$ac_ext
24925 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24926 echo "${ECHO_T}$ac_header_preproc" >&6; }
24927
24928 # So?  What about this header?
24929 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24930   yes:no: )
24931     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24932 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24933     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24934 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24935     ac_header_preproc=yes
24936     ;;
24937   no:yes:* )
24938     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24939 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24940     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24941 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24942     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24943 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24944     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24945 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24946     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24947 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24948     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24949 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24950     ( cat <<\_ASBOX
24951 ## ----------------------------------- ##
24952 ## Report this to heimdal-bugs@h5l.org ##
24953 ## ----------------------------------- ##
24954 _ASBOX
24955      ) | sed "s/^/$as_me: WARNING:     /" >&2
24956     ;;
24957 esac
24958 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24959 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24960 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24961   echo $ECHO_N "(cached) $ECHO_C" >&6
24962 else
24963   eval "$as_ac_Header=\$ac_header_preproc"
24964 fi
24965 ac_res=`eval echo '${'$as_ac_Header'}'`
24966                { echo "$as_me:$LINENO: result: $ac_res" >&5
24967 echo "${ECHO_T}$ac_res" >&6; }
24968
24969 fi
24970 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24971   cat >>confdefs.h <<_ACEOF
24972 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24973 _ACEOF
24974
24975 fi
24976
24977 done
24978
24979
24980
24981
24982 cv=`echo "uintptr_t" | sed 'y%./+- %__p__%'`
24983 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
24984 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
24985 if { as_var=ac_cv_type_$cv; eval "test \"\${$as_var+set}\" = set"; }; then
24986   echo $ECHO_N "(cached) $ECHO_C" >&6
24987 else
24988   cat >conftest.$ac_ext <<_ACEOF
24989 /* confdefs.h.  */
24990 _ACEOF
24991 cat confdefs.h >>conftest.$ac_ext
24992 cat >>conftest.$ac_ext <<_ACEOF
24993 /* end confdefs.h.  */
24994
24995 #include <sys/types.h>
24996 #if STDC_HEADERS
24997 #include <stdlib.h>
24998 #include <stddef.h>
24999 #endif
25000 #ifdef HAVE_STDINT_H
25001 #include <stdint.h>
25002 #endif
25003 int
25004 main ()
25005 {
25006 uintptr_t foo;
25007   ;
25008   return 0;
25009 }
25010 _ACEOF
25011 rm -f conftest.$ac_objext
25012 if { (ac_try="$ac_compile"
25013 case "(($ac_try" in
25014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25015   *) ac_try_echo=$ac_try;;
25016 esac
25017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25018   (eval "$ac_compile") 2>conftest.er1
25019   ac_status=$?
25020   grep -v '^ *+' conftest.er1 >conftest.err
25021   rm -f conftest.er1
25022   cat conftest.err >&5
25023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25024   (exit $ac_status); } && {
25025          test -z "$ac_c_werror_flag" ||
25026          test ! -s conftest.err
25027        } && test -s conftest.$ac_objext; then
25028   eval "ac_cv_type_$cv=yes"
25029 else
25030   echo "$as_me: failed program was:" >&5
25031 sed 's/^/| /' conftest.$ac_ext >&5
25032
25033         eval "ac_cv_type_$cv=no"
25034 fi
25035
25036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25037 fi
25038 ac_foo=`eval echo \\$ac_cv_type_$cv`
25039 { echo "$as_me:$LINENO: result: $ac_foo" >&5
25040 echo "${ECHO_T}$ac_foo" >&6; }
25041 if test "$ac_foo" = yes; then
25042   ac_tr_hdr=HAVE_`echo uintptr_t | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
25043 if false; then
25044         { echo "$as_me:$LINENO: checking for uintptr_t" >&5
25045 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
25046 if test "${ac_cv_type_uintptr_t+set}" = set; then
25047   echo $ECHO_N "(cached) $ECHO_C" >&6
25048 else
25049   cat >conftest.$ac_ext <<_ACEOF
25050 /* confdefs.h.  */
25051 _ACEOF
25052 cat confdefs.h >>conftest.$ac_ext
25053 cat >>conftest.$ac_ext <<_ACEOF
25054 /* end confdefs.h.  */
25055 $ac_includes_default
25056 typedef uintptr_t ac__type_new_;
25057 int
25058 main ()
25059 {
25060 if ((ac__type_new_ *) 0)
25061   return 0;
25062 if (sizeof (ac__type_new_))
25063   return 0;
25064   ;
25065   return 0;
25066 }
25067 _ACEOF
25068 rm -f conftest.$ac_objext
25069 if { (ac_try="$ac_compile"
25070 case "(($ac_try" in
25071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25072   *) ac_try_echo=$ac_try;;
25073 esac
25074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25075   (eval "$ac_compile") 2>conftest.er1
25076   ac_status=$?
25077   grep -v '^ *+' conftest.er1 >conftest.err
25078   rm -f conftest.er1
25079   cat conftest.err >&5
25080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25081   (exit $ac_status); } && {
25082          test -z "$ac_c_werror_flag" ||
25083          test ! -s conftest.err
25084        } && test -s conftest.$ac_objext; then
25085   ac_cv_type_uintptr_t=yes
25086 else
25087   echo "$as_me: failed program was:" >&5
25088 sed 's/^/| /' conftest.$ac_ext >&5
25089
25090         ac_cv_type_uintptr_t=no
25091 fi
25092
25093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25094 fi
25095 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
25096 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
25097 if test $ac_cv_type_uintptr_t = yes; then
25098
25099 cat >>confdefs.h <<_ACEOF
25100 #define HAVE_UINTPTR_T 1
25101 _ACEOF
25102
25103
25104 fi
25105
25106 fi
25107
25108 cat >>confdefs.h <<_ACEOF
25109 #define $ac_tr_hdr 1
25110 _ACEOF
25111
25112 fi
25113
25114
25115
25116 for ac_header in vis.h
25117 do
25118 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25119 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25120 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25121 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25122   echo $ECHO_N "(cached) $ECHO_C" >&6
25123 else
25124   cat >conftest.$ac_ext <<_ACEOF
25125 /* confdefs.h.  */
25126 _ACEOF
25127 cat confdefs.h >>conftest.$ac_ext
25128 cat >>conftest.$ac_ext <<_ACEOF
25129 /* end confdefs.h.  */
25130
25131 #include <vis.h>
25132 #ifndef VIS_SP
25133 #error invis
25134 #endif
25135
25136 #include <$ac_header>
25137 _ACEOF
25138 rm -f conftest.$ac_objext
25139 if { (ac_try="$ac_compile"
25140 case "(($ac_try" in
25141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25142   *) ac_try_echo=$ac_try;;
25143 esac
25144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25145   (eval "$ac_compile") 2>conftest.er1
25146   ac_status=$?
25147   grep -v '^ *+' conftest.er1 >conftest.err
25148   rm -f conftest.er1
25149   cat conftest.err >&5
25150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25151   (exit $ac_status); } && {
25152          test -z "$ac_c_werror_flag" ||
25153          test ! -s conftest.err
25154        } && test -s conftest.$ac_objext; then
25155   eval "$as_ac_Header=yes"
25156 else
25157   echo "$as_me: failed program was:" >&5
25158 sed 's/^/| /' conftest.$ac_ext >&5
25159
25160         eval "$as_ac_Header=no"
25161 fi
25162
25163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25164 fi
25165 ac_res=`eval echo '${'$as_ac_Header'}'`
25166                { echo "$as_me:$LINENO: result: $ac_res" >&5
25167 echo "${ECHO_T}$ac_res" >&6; }
25168 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25169   cat >>confdefs.h <<_ACEOF
25170 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25171 _ACEOF
25172
25173 fi
25174
25175 done
25176
25177
25178
25179 for ac_header in netdb.h
25180 do
25181 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25182 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25183 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25184 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25185   echo $ECHO_N "(cached) $ECHO_C" >&6
25186 else
25187   cat >conftest.$ac_ext <<_ACEOF
25188 /* confdefs.h.  */
25189 _ACEOF
25190 cat confdefs.h >>conftest.$ac_ext
25191 cat >>conftest.$ac_ext <<_ACEOF
25192 /* end confdefs.h.  */
25193 $ac_includes_default
25194 #ifdef HAVE_SYS_TYPES_H
25195 #include <sys/types.h>
25196 #endif
25197
25198
25199 #include <$ac_header>
25200 _ACEOF
25201 rm -f conftest.$ac_objext
25202 if { (ac_try="$ac_compile"
25203 case "(($ac_try" in
25204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25205   *) ac_try_echo=$ac_try;;
25206 esac
25207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25208   (eval "$ac_compile") 2>conftest.er1
25209   ac_status=$?
25210   grep -v '^ *+' conftest.er1 >conftest.err
25211   rm -f conftest.er1
25212   cat conftest.err >&5
25213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25214   (exit $ac_status); } && {
25215          test -z "$ac_c_werror_flag" ||
25216          test ! -s conftest.err
25217        } && test -s conftest.$ac_objext; then
25218   eval "$as_ac_Header=yes"
25219 else
25220   echo "$as_me: failed program was:" >&5
25221 sed 's/^/| /' conftest.$ac_ext >&5
25222
25223         eval "$as_ac_Header=no"
25224 fi
25225
25226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25227 fi
25228 ac_res=`eval echo '${'$as_ac_Header'}'`
25229                { echo "$as_me:$LINENO: result: $ac_res" >&5
25230 echo "${ECHO_T}$ac_res" >&6; }
25231 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25232   cat >>confdefs.h <<_ACEOF
25233 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25234 _ACEOF
25235
25236 fi
25237
25238 done
25239
25240
25241
25242 for ac_header in sys/socket.h
25243 do
25244 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25245 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25246 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25247 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25248   echo $ECHO_N "(cached) $ECHO_C" >&6
25249 else
25250   cat >conftest.$ac_ext <<_ACEOF
25251 /* confdefs.h.  */
25252 _ACEOF
25253 cat confdefs.h >>conftest.$ac_ext
25254 cat >>conftest.$ac_ext <<_ACEOF
25255 /* end confdefs.h.  */
25256 $ac_includes_default
25257 #ifdef HAVE_SYS_TYPES_H
25258 #include <sys/types.h>
25259 #endif
25260
25261
25262 #include <$ac_header>
25263 _ACEOF
25264 rm -f conftest.$ac_objext
25265 if { (ac_try="$ac_compile"
25266 case "(($ac_try" in
25267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25268   *) ac_try_echo=$ac_try;;
25269 esac
25270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25271   (eval "$ac_compile") 2>conftest.er1
25272   ac_status=$?
25273   grep -v '^ *+' conftest.er1 >conftest.err
25274   rm -f conftest.er1
25275   cat conftest.err >&5
25276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25277   (exit $ac_status); } && {
25278          test -z "$ac_c_werror_flag" ||
25279          test ! -s conftest.err
25280        } && test -s conftest.$ac_objext; then
25281   eval "$as_ac_Header=yes"
25282 else
25283   echo "$as_me: failed program was:" >&5
25284 sed 's/^/| /' conftest.$ac_ext >&5
25285
25286         eval "$as_ac_Header=no"
25287 fi
25288
25289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25290 fi
25291 ac_res=`eval echo '${'$as_ac_Header'}'`
25292                { echo "$as_me:$LINENO: result: $ac_res" >&5
25293 echo "${ECHO_T}$ac_res" >&6; }
25294 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25295   cat >>confdefs.h <<_ACEOF
25296 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25297 _ACEOF
25298
25299 fi
25300
25301 done
25302
25303
25304
25305 for ac_header in net/if.h
25306 do
25307 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25308 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25309 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25310 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25311   echo $ECHO_N "(cached) $ECHO_C" >&6
25312 else
25313   cat >conftest.$ac_ext <<_ACEOF
25314 /* confdefs.h.  */
25315 _ACEOF
25316 cat confdefs.h >>conftest.$ac_ext
25317 cat >>conftest.$ac_ext <<_ACEOF
25318 /* end confdefs.h.  */
25319 $ac_includes_default
25320 #ifdef HAVE_SYS_TYPES_H
25321 #include <sys/types.h>
25322 #endif
25323 #if HAVE_SYS_SOCKET_H
25324 #include <sys/socket.h>
25325 #endif
25326
25327 #include <$ac_header>
25328 _ACEOF
25329 rm -f conftest.$ac_objext
25330 if { (ac_try="$ac_compile"
25331 case "(($ac_try" in
25332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25333   *) ac_try_echo=$ac_try;;
25334 esac
25335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25336   (eval "$ac_compile") 2>conftest.er1
25337   ac_status=$?
25338   grep -v '^ *+' conftest.er1 >conftest.err
25339   rm -f conftest.er1
25340   cat conftest.err >&5
25341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25342   (exit $ac_status); } && {
25343          test -z "$ac_c_werror_flag" ||
25344          test ! -s conftest.err
25345        } && test -s conftest.$ac_objext; then
25346   eval "$as_ac_Header=yes"
25347 else
25348   echo "$as_me: failed program was:" >&5
25349 sed 's/^/| /' conftest.$ac_ext >&5
25350
25351         eval "$as_ac_Header=no"
25352 fi
25353
25354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25355 fi
25356 ac_res=`eval echo '${'$as_ac_Header'}'`
25357                { echo "$as_me:$LINENO: result: $ac_res" >&5
25358 echo "${ECHO_T}$ac_res" >&6; }
25359 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25360   cat >>confdefs.h <<_ACEOF
25361 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25362 _ACEOF
25363
25364 fi
25365
25366 done
25367
25368
25369
25370 for ac_header in netinet6/in6_var.h
25371 do
25372 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25373 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25374 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25375 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25376   echo $ECHO_N "(cached) $ECHO_C" >&6
25377 else
25378   cat >conftest.$ac_ext <<_ACEOF
25379 /* confdefs.h.  */
25380 _ACEOF
25381 cat confdefs.h >>conftest.$ac_ext
25382 cat >>conftest.$ac_ext <<_ACEOF
25383 /* end confdefs.h.  */
25384 $ac_includes_default
25385 #ifdef HAVE_SYS_TYPES_H
25386 #include <sys/types.h>
25387 #endif
25388 #if HAVE_SYS_SOCKET_H
25389 #include <sys/socket.h>
25390 #endif
25391 #ifdef HAVE_NETINET6_IN6_H
25392 #include <netinet6/in6.h>
25393 #endif
25394
25395
25396 #include <$ac_header>
25397 _ACEOF
25398 rm -f conftest.$ac_objext
25399 if { (ac_try="$ac_compile"
25400 case "(($ac_try" in
25401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25402   *) ac_try_echo=$ac_try;;
25403 esac
25404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25405   (eval "$ac_compile") 2>conftest.er1
25406   ac_status=$?
25407   grep -v '^ *+' conftest.er1 >conftest.err
25408   rm -f conftest.er1
25409   cat conftest.err >&5
25410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25411   (exit $ac_status); } && {
25412          test -z "$ac_c_werror_flag" ||
25413          test ! -s conftest.err
25414        } && test -s conftest.$ac_objext; then
25415   eval "$as_ac_Header=yes"
25416 else
25417   echo "$as_me: failed program was:" >&5
25418 sed 's/^/| /' conftest.$ac_ext >&5
25419
25420         eval "$as_ac_Header=no"
25421 fi
25422
25423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25424 fi
25425 ac_res=`eval echo '${'$as_ac_Header'}'`
25426                { echo "$as_me:$LINENO: result: $ac_res" >&5
25427 echo "${ECHO_T}$ac_res" >&6; }
25428 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25429   cat >>confdefs.h <<_ACEOF
25430 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25431 _ACEOF
25432
25433 fi
25434
25435 done
25436
25437
25438
25439 for ac_header in sys/sysctl.h
25440 do
25441 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25442 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25443 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25444 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25445   echo $ECHO_N "(cached) $ECHO_C" >&6
25446 else
25447   cat >conftest.$ac_ext <<_ACEOF
25448 /* confdefs.h.  */
25449 _ACEOF
25450 cat confdefs.h >>conftest.$ac_ext
25451 cat >>conftest.$ac_ext <<_ACEOF
25452 /* end confdefs.h.  */
25453 $ac_includes_default
25454 #ifdef HAVE_SYS_PARAM_H
25455 #include <sys/param.h>
25456 #endif
25457
25458
25459 #include <$ac_header>
25460 _ACEOF
25461 rm -f conftest.$ac_objext
25462 if { (ac_try="$ac_compile"
25463 case "(($ac_try" in
25464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25465   *) ac_try_echo=$ac_try;;
25466 esac
25467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25468   (eval "$ac_compile") 2>conftest.er1
25469   ac_status=$?
25470   grep -v '^ *+' conftest.er1 >conftest.err
25471   rm -f conftest.er1
25472   cat conftest.err >&5
25473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25474   (exit $ac_status); } && {
25475          test -z "$ac_c_werror_flag" ||
25476          test ! -s conftest.err
25477        } && test -s conftest.$ac_objext; then
25478   eval "$as_ac_Header=yes"
25479 else
25480   echo "$as_me: failed program was:" >&5
25481 sed 's/^/| /' conftest.$ac_ext >&5
25482
25483         eval "$as_ac_Header=no"
25484 fi
25485
25486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25487 fi
25488 ac_res=`eval echo '${'$as_ac_Header'}'`
25489                { echo "$as_me:$LINENO: result: $ac_res" >&5
25490 echo "${ECHO_T}$ac_res" >&6; }
25491 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25492   cat >>confdefs.h <<_ACEOF
25493 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25494 _ACEOF
25495
25496 fi
25497
25498 done
25499
25500
25501
25502 for ac_header in sys/proc.h
25503 do
25504 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25505 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25506 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25507 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25508   echo $ECHO_N "(cached) $ECHO_C" >&6
25509 else
25510   cat >conftest.$ac_ext <<_ACEOF
25511 /* confdefs.h.  */
25512 _ACEOF
25513 cat confdefs.h >>conftest.$ac_ext
25514 cat >>conftest.$ac_ext <<_ACEOF
25515 /* end confdefs.h.  */
25516 $ac_includes_default
25517 #ifdef HAVE_SYS_PARAM_H
25518 #include <sys/param.h>
25519 #endif
25520
25521
25522 #include <$ac_header>
25523 _ACEOF
25524 rm -f conftest.$ac_objext
25525 if { (ac_try="$ac_compile"
25526 case "(($ac_try" in
25527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25528   *) ac_try_echo=$ac_try;;
25529 esac
25530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25531   (eval "$ac_compile") 2>conftest.er1
25532   ac_status=$?
25533   grep -v '^ *+' conftest.er1 >conftest.err
25534   rm -f conftest.er1
25535   cat conftest.err >&5
25536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25537   (exit $ac_status); } && {
25538          test -z "$ac_c_werror_flag" ||
25539          test ! -s conftest.err
25540        } && test -s conftest.$ac_objext; then
25541   eval "$as_ac_Header=yes"
25542 else
25543   echo "$as_me: failed program was:" >&5
25544 sed 's/^/| /' conftest.$ac_ext >&5
25545
25546         eval "$as_ac_Header=no"
25547 fi
25548
25549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25550 fi
25551 ac_res=`eval echo '${'$as_ac_Header'}'`
25552                { echo "$as_me:$LINENO: result: $ac_res" >&5
25553 echo "${ECHO_T}$ac_res" >&6; }
25554 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25555   cat >>confdefs.h <<_ACEOF
25556 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25557 _ACEOF
25558
25559 fi
25560
25561 done
25562
25563
25564
25565
25566  if test "$ac_cv_header_err_h" = yes; then
25567   have_err_h_TRUE=
25568   have_err_h_FALSE='#'
25569 else
25570   have_err_h_TRUE='#'
25571   have_err_h_FALSE=
25572 fi
25573
25574  if test "$ac_cv_header_ifaddrs_h" = yes; then
25575   have_ifaddrs_h_TRUE=
25576   have_ifaddrs_h_FALSE='#'
25577 else
25578   have_ifaddrs_h_TRUE='#'
25579   have_ifaddrs_h_FALSE=
25580 fi
25581
25582  if test "$ac_cv_header_vis_h" = yes; then
25583   have_vis_h_TRUE=
25584   have_vis_h_FALSE='#'
25585 else
25586   have_vis_h_TRUE='#'
25587   have_vis_h_FALSE=
25588 fi
25589
25590
25591
25592
25593
25594
25595
25596 { echo "$as_me:$LINENO: checking for socket" >&5
25597 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
25598 if test "${ac_cv_funclib_socket+set}" = set; then
25599   echo $ECHO_N "(cached) $ECHO_C" >&6
25600 else
25601
25602 if eval "test \"\$ac_cv_func_socket\" != yes" ; then
25603         ac_save_LIBS="$LIBS"
25604         for ac_lib in "" socket; do
25605                 case "$ac_lib" in
25606                 "") ;;
25607                 yes) ac_lib="" ;;
25608                 no) continue ;;
25609                 -l*) ;;
25610                 *) ac_lib="-l$ac_lib" ;;
25611                 esac
25612                 LIBS=" $ac_lib  $ac_save_LIBS"
25613                 cat >conftest.$ac_ext <<_ACEOF
25614 /* confdefs.h.  */
25615 _ACEOF
25616 cat confdefs.h >>conftest.$ac_ext
25617 cat >>conftest.$ac_ext <<_ACEOF
25618 /* end confdefs.h.  */
25619
25620 int
25621 main ()
25622 {
25623 socket()
25624   ;
25625   return 0;
25626 }
25627 _ACEOF
25628 rm -f conftest.$ac_objext conftest$ac_exeext
25629 if { (ac_try="$ac_link"
25630 case "(($ac_try" in
25631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25632   *) ac_try_echo=$ac_try;;
25633 esac
25634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25635   (eval "$ac_link") 2>conftest.er1
25636   ac_status=$?
25637   grep -v '^ *+' conftest.er1 >conftest.err
25638   rm -f conftest.er1
25639   cat conftest.err >&5
25640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25641   (exit $ac_status); } && {
25642          test -z "$ac_c_werror_flag" ||
25643          test ! -s conftest.err
25644        } && test -s conftest$ac_exeext &&
25645        $as_test_x conftest$ac_exeext; then
25646   eval "if test -n \"$ac_lib\";then ac_cv_funclib_socket=$ac_lib; else ac_cv_funclib_socket=yes; fi";break
25647 else
25648   echo "$as_me: failed program was:" >&5
25649 sed 's/^/| /' conftest.$ac_ext >&5
25650
25651
25652 fi
25653
25654 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25655       conftest$ac_exeext conftest.$ac_ext
25656         done
25657         eval "ac_cv_funclib_socket=\${ac_cv_funclib_socket-no}"
25658         LIBS="$ac_save_LIBS"
25659 fi
25660
25661 fi
25662
25663
25664 eval "ac_res=\$ac_cv_funclib_socket"
25665
25666 if false; then
25667
25668 for ac_func in socket
25669 do
25670 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25671 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25672 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25673 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25674   echo $ECHO_N "(cached) $ECHO_C" >&6
25675 else
25676   cat >conftest.$ac_ext <<_ACEOF
25677 /* confdefs.h.  */
25678 _ACEOF
25679 cat confdefs.h >>conftest.$ac_ext
25680 cat >>conftest.$ac_ext <<_ACEOF
25681 /* end confdefs.h.  */
25682 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25683    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25684 #define $ac_func innocuous_$ac_func
25685
25686 /* System header to define __stub macros and hopefully few prototypes,
25687     which can conflict with char $ac_func (); below.
25688     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25689     <limits.h> exists even on freestanding compilers.  */
25690
25691 #ifdef __STDC__
25692 # include <limits.h>
25693 #else
25694 # include <assert.h>
25695 #endif
25696
25697 #undef $ac_func
25698
25699 /* Override any GCC internal prototype to avoid an error.
25700    Use char because int might match the return type of a GCC
25701    builtin and then its argument prototype would still apply.  */
25702 #ifdef __cplusplus
25703 extern "C"
25704 #endif
25705 char $ac_func ();
25706 /* The GNU C library defines this for functions which it implements
25707     to always fail with ENOSYS.  Some functions are actually named
25708     something starting with __ and the normal name is an alias.  */
25709 #if defined __stub_$ac_func || defined __stub___$ac_func
25710 choke me
25711 #endif
25712
25713 int
25714 main ()
25715 {
25716 return $ac_func ();
25717   ;
25718   return 0;
25719 }
25720 _ACEOF
25721 rm -f conftest.$ac_objext conftest$ac_exeext
25722 if { (ac_try="$ac_link"
25723 case "(($ac_try" in
25724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25725   *) ac_try_echo=$ac_try;;
25726 esac
25727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25728   (eval "$ac_link") 2>conftest.er1
25729   ac_status=$?
25730   grep -v '^ *+' conftest.er1 >conftest.err
25731   rm -f conftest.er1
25732   cat conftest.err >&5
25733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25734   (exit $ac_status); } && {
25735          test -z "$ac_c_werror_flag" ||
25736          test ! -s conftest.err
25737        } && test -s conftest$ac_exeext &&
25738        $as_test_x conftest$ac_exeext; then
25739   eval "$as_ac_var=yes"
25740 else
25741   echo "$as_me: failed program was:" >&5
25742 sed 's/^/| /' conftest.$ac_ext >&5
25743
25744         eval "$as_ac_var=no"
25745 fi
25746
25747 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25748       conftest$ac_exeext conftest.$ac_ext
25749 fi
25750 ac_res=`eval echo '${'$as_ac_var'}'`
25751                { echo "$as_me:$LINENO: result: $ac_res" >&5
25752 echo "${ECHO_T}$ac_res" >&6; }
25753 if test `eval echo '${'$as_ac_var'}'` = yes; then
25754   cat >>confdefs.h <<_ACEOF
25755 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25756 _ACEOF
25757
25758 fi
25759 done
25760
25761 fi
25762 # socket
25763 eval "ac_tr_func=HAVE_`echo socket | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
25764 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
25765 eval "LIB_socket=$ac_res"
25766
25767 case "$ac_res" in
25768         yes)
25769         eval "ac_cv_func_socket=yes"
25770         eval "LIB_socket="
25771         cat >>confdefs.h <<_ACEOF
25772 #define $ac_tr_func 1
25773 _ACEOF
25774
25775         { echo "$as_me:$LINENO: result: yes" >&5
25776 echo "${ECHO_T}yes" >&6; }
25777         ;;
25778         no)
25779         eval "ac_cv_func_socket=no"
25780         eval "LIB_socket="
25781         { echo "$as_me:$LINENO: result: no" >&5
25782 echo "${ECHO_T}no" >&6; }
25783         ;;
25784         *)
25785         eval "ac_cv_func_socket=yes"
25786         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
25787         cat >>confdefs.h <<_ACEOF
25788 #define $ac_tr_func 1
25789 _ACEOF
25790
25791         cat >>confdefs.h <<_ACEOF
25792 #define $ac_tr_lib 1
25793 _ACEOF
25794
25795         { echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
25796 echo "${ECHO_T}yes, in $ac_res" >&6; }
25797         ;;
25798 esac
25799
25800
25801 if test -n "$LIB_socket"; then
25802         LIBS="$LIB_socket $LIBS"
25803 fi
25804
25805
25806
25807
25808
25809 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
25810 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
25811 if test "${ac_cv_funclib_gethostbyname+set}" = set; then
25812   echo $ECHO_N "(cached) $ECHO_C" >&6
25813 else
25814
25815 if eval "test \"\$ac_cv_func_gethostbyname\" != yes" ; then
25816         ac_save_LIBS="$LIBS"
25817         for ac_lib in "" nsl; do
25818                 case "$ac_lib" in
25819                 "") ;;
25820                 yes) ac_lib="" ;;
25821                 no) continue ;;
25822                 -l*) ;;
25823                 *) ac_lib="-l$ac_lib" ;;
25824                 esac
25825                 LIBS=" $ac_lib  $ac_save_LIBS"
25826                 cat >conftest.$ac_ext <<_ACEOF
25827 /* confdefs.h.  */
25828 _ACEOF
25829 cat confdefs.h >>conftest.$ac_ext
25830 cat >>conftest.$ac_ext <<_ACEOF
25831 /* end confdefs.h.  */
25832
25833 int
25834 main ()
25835 {
25836 gethostbyname()
25837   ;
25838   return 0;
25839 }
25840 _ACEOF
25841 rm -f conftest.$ac_objext conftest$ac_exeext
25842 if { (ac_try="$ac_link"
25843 case "(($ac_try" in
25844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25845   *) ac_try_echo=$ac_try;;
25846 esac
25847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25848   (eval "$ac_link") 2>conftest.er1
25849   ac_status=$?
25850   grep -v '^ *+' conftest.er1 >conftest.err
25851   rm -f conftest.er1
25852   cat conftest.err >&5
25853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25854   (exit $ac_status); } && {
25855          test -z "$ac_c_werror_flag" ||
25856          test ! -s conftest.err
25857        } && test -s conftest$ac_exeext &&
25858        $as_test_x conftest$ac_exeext; then
25859   eval "if test -n \"$ac_lib\";then ac_cv_funclib_gethostbyname=$ac_lib; else ac_cv_funclib_gethostbyname=yes; fi";break
25860 else
25861   echo "$as_me: failed program was:" >&5
25862 sed 's/^/| /' conftest.$ac_ext >&5
25863
25864
25865 fi
25866
25867 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25868       conftest$ac_exeext conftest.$ac_ext
25869         done
25870         eval "ac_cv_funclib_gethostbyname=\${ac_cv_funclib_gethostbyname-no}"
25871         LIBS="$ac_save_LIBS"
25872 fi
25873
25874 fi
25875
25876
25877 eval "ac_res=\$ac_cv_funclib_gethostbyname"
25878
25879 if false; then
25880
25881 for ac_func in gethostbyname
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 fi
25975 # gethostbyname
25976 eval "ac_tr_func=HAVE_`echo gethostbyname | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
25977 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
25978 eval "LIB_gethostbyname=$ac_res"
25979
25980 case "$ac_res" in
25981         yes)
25982         eval "ac_cv_func_gethostbyname=yes"
25983         eval "LIB_gethostbyname="
25984         cat >>confdefs.h <<_ACEOF
25985 #define $ac_tr_func 1
25986 _ACEOF
25987
25988         { echo "$as_me:$LINENO: result: yes" >&5
25989 echo "${ECHO_T}yes" >&6; }
25990         ;;
25991         no)
25992         eval "ac_cv_func_gethostbyname=no"
25993         eval "LIB_gethostbyname="
25994         { echo "$as_me:$LINENO: result: no" >&5
25995 echo "${ECHO_T}no" >&6; }
25996         ;;
25997         *)
25998         eval "ac_cv_func_gethostbyname=yes"
25999         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
26000         cat >>confdefs.h <<_ACEOF
26001 #define $ac_tr_func 1
26002 _ACEOF
26003
26004         cat >>confdefs.h <<_ACEOF
26005 #define $ac_tr_lib 1
26006 _ACEOF
26007
26008         { echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
26009 echo "${ECHO_T}yes, in $ac_res" >&6; }
26010         ;;
26011 esac
26012
26013
26014 if test -n "$LIB_gethostbyname"; then
26015         LIBS="$LIB_gethostbyname $LIBS"
26016 fi
26017
26018
26019
26020
26021
26022 { echo "$as_me:$LINENO: checking for syslog" >&5
26023 echo $ECHO_N "checking for syslog... $ECHO_C" >&6; }
26024 if test "${ac_cv_funclib_syslog+set}" = set; then
26025   echo $ECHO_N "(cached) $ECHO_C" >&6
26026 else
26027
26028 if eval "test \"\$ac_cv_func_syslog\" != yes" ; then
26029         ac_save_LIBS="$LIBS"
26030         for ac_lib in "" syslog; do
26031                 case "$ac_lib" in
26032                 "") ;;
26033                 yes) ac_lib="" ;;
26034                 no) continue ;;
26035                 -l*) ;;
26036                 *) ac_lib="-l$ac_lib" ;;
26037                 esac
26038                 LIBS=" $ac_lib  $ac_save_LIBS"
26039                 cat >conftest.$ac_ext <<_ACEOF
26040 /* confdefs.h.  */
26041 _ACEOF
26042 cat confdefs.h >>conftest.$ac_ext
26043 cat >>conftest.$ac_ext <<_ACEOF
26044 /* end confdefs.h.  */
26045
26046 int
26047 main ()
26048 {
26049 syslog()
26050   ;
26051   return 0;
26052 }
26053 _ACEOF
26054 rm -f conftest.$ac_objext conftest$ac_exeext
26055 if { (ac_try="$ac_link"
26056 case "(($ac_try" in
26057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26058   *) ac_try_echo=$ac_try;;
26059 esac
26060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26061   (eval "$ac_link") 2>conftest.er1
26062   ac_status=$?
26063   grep -v '^ *+' conftest.er1 >conftest.err
26064   rm -f conftest.er1
26065   cat conftest.err >&5
26066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26067   (exit $ac_status); } && {
26068          test -z "$ac_c_werror_flag" ||
26069          test ! -s conftest.err
26070        } && test -s conftest$ac_exeext &&
26071        $as_test_x conftest$ac_exeext; then
26072   eval "if test -n \"$ac_lib\";then ac_cv_funclib_syslog=$ac_lib; else ac_cv_funclib_syslog=yes; fi";break
26073 else
26074   echo "$as_me: failed program was:" >&5
26075 sed 's/^/| /' conftest.$ac_ext >&5
26076
26077
26078 fi
26079
26080 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26081       conftest$ac_exeext conftest.$ac_ext
26082         done
26083         eval "ac_cv_funclib_syslog=\${ac_cv_funclib_syslog-no}"
26084         LIBS="$ac_save_LIBS"
26085 fi
26086
26087 fi
26088
26089
26090 eval "ac_res=\$ac_cv_funclib_syslog"
26091
26092 if false; then
26093
26094 for ac_func in syslog
26095 do
26096 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26097 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26098 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26099 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26100   echo $ECHO_N "(cached) $ECHO_C" >&6
26101 else
26102   cat >conftest.$ac_ext <<_ACEOF
26103 /* confdefs.h.  */
26104 _ACEOF
26105 cat confdefs.h >>conftest.$ac_ext
26106 cat >>conftest.$ac_ext <<_ACEOF
26107 /* end confdefs.h.  */
26108 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26109    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26110 #define $ac_func innocuous_$ac_func
26111
26112 /* System header to define __stub macros and hopefully few prototypes,
26113     which can conflict with char $ac_func (); below.
26114     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26115     <limits.h> exists even on freestanding compilers.  */
26116
26117 #ifdef __STDC__
26118 # include <limits.h>
26119 #else
26120 # include <assert.h>
26121 #endif
26122
26123 #undef $ac_func
26124
26125 /* Override any GCC internal prototype to avoid an error.
26126    Use char because int might match the return type of a GCC
26127    builtin and then its argument prototype would still apply.  */
26128 #ifdef __cplusplus
26129 extern "C"
26130 #endif
26131 char $ac_func ();
26132 /* The GNU C library defines this for functions which it implements
26133     to always fail with ENOSYS.  Some functions are actually named
26134     something starting with __ and the normal name is an alias.  */
26135 #if defined __stub_$ac_func || defined __stub___$ac_func
26136 choke me
26137 #endif
26138
26139 int
26140 main ()
26141 {
26142 return $ac_func ();
26143   ;
26144   return 0;
26145 }
26146 _ACEOF
26147 rm -f conftest.$ac_objext conftest$ac_exeext
26148 if { (ac_try="$ac_link"
26149 case "(($ac_try" in
26150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26151   *) ac_try_echo=$ac_try;;
26152 esac
26153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26154   (eval "$ac_link") 2>conftest.er1
26155   ac_status=$?
26156   grep -v '^ *+' conftest.er1 >conftest.err
26157   rm -f conftest.er1
26158   cat conftest.err >&5
26159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26160   (exit $ac_status); } && {
26161          test -z "$ac_c_werror_flag" ||
26162          test ! -s conftest.err
26163        } && test -s conftest$ac_exeext &&
26164        $as_test_x conftest$ac_exeext; then
26165   eval "$as_ac_var=yes"
26166 else
26167   echo "$as_me: failed program was:" >&5
26168 sed 's/^/| /' conftest.$ac_ext >&5
26169
26170         eval "$as_ac_var=no"
26171 fi
26172
26173 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26174       conftest$ac_exeext conftest.$ac_ext
26175 fi
26176 ac_res=`eval echo '${'$as_ac_var'}'`
26177                { echo "$as_me:$LINENO: result: $ac_res" >&5
26178 echo "${ECHO_T}$ac_res" >&6; }
26179 if test `eval echo '${'$as_ac_var'}'` = yes; then
26180   cat >>confdefs.h <<_ACEOF
26181 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26182 _ACEOF
26183
26184 fi
26185 done
26186
26187 fi
26188 # syslog
26189 eval "ac_tr_func=HAVE_`echo syslog | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
26190 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
26191 eval "LIB_syslog=$ac_res"
26192
26193 case "$ac_res" in
26194         yes)
26195         eval "ac_cv_func_syslog=yes"
26196         eval "LIB_syslog="
26197         cat >>confdefs.h <<_ACEOF
26198 #define $ac_tr_func 1
26199 _ACEOF
26200
26201         { echo "$as_me:$LINENO: result: yes" >&5
26202 echo "${ECHO_T}yes" >&6; }
26203         ;;
26204         no)
26205         eval "ac_cv_func_syslog=no"
26206         eval "LIB_syslog="
26207         { echo "$as_me:$LINENO: result: no" >&5
26208 echo "${ECHO_T}no" >&6; }
26209         ;;
26210         *)
26211         eval "ac_cv_func_syslog=yes"
26212         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
26213         cat >>confdefs.h <<_ACEOF
26214 #define $ac_tr_func 1
26215 _ACEOF
26216
26217         cat >>confdefs.h <<_ACEOF
26218 #define $ac_tr_lib 1
26219 _ACEOF
26220
26221         { echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
26222 echo "${ECHO_T}yes, in $ac_res" >&6; }
26223         ;;
26224 esac
26225
26226
26227 if test -n "$LIB_syslog"; then
26228         LIBS="$LIB_syslog $LIBS"
26229 fi
26230
26231
26232
26233
26234 # Check whether --with-ipv6 was given.
26235 if test "${with_ipv6+set}" = set; then
26236   withval=$with_ipv6;
26237 if test "$withval" = "no"; then
26238         ac_cv_lib_ipv6=no
26239 fi
26240 fi
26241
26242 save_CFLAGS="${CFLAGS}"
26243 { echo "$as_me:$LINENO: checking for IPv6 stack type" >&5
26244 echo $ECHO_N "checking for IPv6 stack type... $ECHO_C" >&6; }
26245 if test "${v6type+set}" = set; then
26246   echo $ECHO_N "(cached) $ECHO_C" >&6
26247 else
26248   v6type=unknown
26249 v6lib=none
26250
26251 for i in v6d toshiba kame inria zeta linux; do
26252         case $i in
26253         v6d)
26254                 cat >conftest.$ac_ext <<_ACEOF
26255 /* confdefs.h.  */
26256 _ACEOF
26257 cat confdefs.h >>conftest.$ac_ext
26258 cat >>conftest.$ac_ext <<_ACEOF
26259 /* end confdefs.h.  */
26260
26261 #include </usr/local/v6/include/sys/types.h>
26262 #ifdef __V6D__
26263 yes
26264 #endif
26265 _ACEOF
26266 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26267   $EGREP "yes" >/dev/null 2>&1; then
26268   v6type=$i; v6lib=v6;
26269                         v6libdir=/usr/local/v6/lib;
26270                         CFLAGS="-I/usr/local/v6/include $CFLAGS"
26271 fi
26272 rm -f conftest*
26273
26274                 ;;
26275         toshiba)
26276                 cat >conftest.$ac_ext <<_ACEOF
26277 /* confdefs.h.  */
26278 _ACEOF
26279 cat confdefs.h >>conftest.$ac_ext
26280 cat >>conftest.$ac_ext <<_ACEOF
26281 /* end confdefs.h.  */
26282
26283 #include <sys/param.h>
26284 #ifdef _TOSHIBA_INET6
26285 yes
26286 #endif
26287 _ACEOF
26288 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26289   $EGREP "yes" >/dev/null 2>&1; then
26290   v6type=$i; v6lib=inet6;
26291                         v6libdir=/usr/local/v6/lib;
26292                         CFLAGS="-DINET6 $CFLAGS"
26293 fi
26294 rm -f conftest*
26295
26296                 ;;
26297         kame)
26298                 cat >conftest.$ac_ext <<_ACEOF
26299 /* confdefs.h.  */
26300 _ACEOF
26301 cat confdefs.h >>conftest.$ac_ext
26302 cat >>conftest.$ac_ext <<_ACEOF
26303 /* end confdefs.h.  */
26304
26305 #include <netinet/in.h>
26306 #ifdef __KAME__
26307 yes
26308 #endif
26309 _ACEOF
26310 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26311   $EGREP "yes" >/dev/null 2>&1; then
26312   v6type=$i; v6lib=inet6;
26313                         v6libdir=/usr/local/v6/lib;
26314                         CFLAGS="-DINET6 $CFLAGS"
26315 fi
26316 rm -f conftest*
26317
26318                 ;;
26319         inria)
26320                 cat >conftest.$ac_ext <<_ACEOF
26321 /* confdefs.h.  */
26322 _ACEOF
26323 cat confdefs.h >>conftest.$ac_ext
26324 cat >>conftest.$ac_ext <<_ACEOF
26325 /* end confdefs.h.  */
26326
26327 #include <netinet/in.h>
26328 #ifdef IPV6_INRIA_VERSION
26329 yes
26330 #endif
26331 _ACEOF
26332 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26333   $EGREP "yes" >/dev/null 2>&1; then
26334   v6type=$i; CFLAGS="-DINET6 $CFLAGS"
26335 fi
26336 rm -f conftest*
26337
26338                 ;;
26339         zeta)
26340                 cat >conftest.$ac_ext <<_ACEOF
26341 /* confdefs.h.  */
26342 _ACEOF
26343 cat confdefs.h >>conftest.$ac_ext
26344 cat >>conftest.$ac_ext <<_ACEOF
26345 /* end confdefs.h.  */
26346
26347 #include <sys/param.h>
26348 #ifdef _ZETA_MINAMI_INET6
26349 yes
26350 #endif
26351 _ACEOF
26352 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26353   $EGREP "yes" >/dev/null 2>&1; then
26354   v6type=$i; v6lib=inet6;
26355                         v6libdir=/usr/local/v6/lib;
26356                         CFLAGS="-DINET6 $CFLAGS"
26357 fi
26358 rm -f conftest*
26359
26360                 ;;
26361         linux)
26362                 if test -d /usr/inet6; then
26363                         v6type=$i
26364                         v6lib=inet6
26365                         v6libdir=/usr/inet6
26366                         CFLAGS="-DINET6 $CFLAGS"
26367                 fi
26368                 ;;
26369         esac
26370         if test "$v6type" != "unknown"; then
26371                 break
26372         fi
26373 done
26374
26375 if test "$v6lib" != "none"; then
26376         for dir in $v6libdir /usr/local/v6/lib /usr/local/lib; do
26377                 if test -d $dir -a -f $dir/lib$v6lib.a; then
26378                         LIBS="-L$dir -l$v6lib $LIBS"
26379                         break
26380                 fi
26381         done
26382 fi
26383
26384 fi
26385 { echo "$as_me:$LINENO: result: $v6type" >&5
26386 echo "${ECHO_T}$v6type" >&6; }
26387
26388 { echo "$as_me:$LINENO: checking for IPv6" >&5
26389 echo $ECHO_N "checking for IPv6... $ECHO_C" >&6; }
26390 if test "${ac_cv_lib_ipv6+set}" = set; then
26391   echo $ECHO_N "(cached) $ECHO_C" >&6
26392 else
26393
26394 cat >conftest.$ac_ext <<_ACEOF
26395 /* confdefs.h.  */
26396 _ACEOF
26397 cat confdefs.h >>conftest.$ac_ext
26398 cat >>conftest.$ac_ext <<_ACEOF
26399 /* end confdefs.h.  */
26400
26401 #ifdef HAVE_SYS_TYPES_H
26402 #include <sys/types.h>
26403 #endif
26404 #ifdef HAVE_SYS_SOCKET_H
26405 #include <sys/socket.h>
26406 #endif
26407 #ifdef HAVE_NETINET_IN_H
26408 #include <netinet/in.h>
26409 #endif
26410 #ifdef HAVE_NETINET_IN6_H
26411 #include <netinet/in6.h>
26412 #endif
26413
26414 int
26415 main ()
26416 {
26417
26418  struct sockaddr_in6 sin6;
26419  int s;
26420
26421  s = socket(AF_INET6, SOCK_DGRAM, 0);
26422
26423  sin6.sin6_family = AF_INET6;
26424  sin6.sin6_port = htons(17);
26425  sin6.sin6_addr = in6addr_any;
26426  bind(s, (struct sockaddr *)&sin6, sizeof(sin6));
26427
26428   ;
26429   return 0;
26430 }
26431 _ACEOF
26432 rm -f conftest.$ac_objext conftest$ac_exeext
26433 if { (ac_try="$ac_link"
26434 case "(($ac_try" in
26435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26436   *) ac_try_echo=$ac_try;;
26437 esac
26438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26439   (eval "$ac_link") 2>conftest.er1
26440   ac_status=$?
26441   grep -v '^ *+' conftest.er1 >conftest.err
26442   rm -f conftest.er1
26443   cat conftest.err >&5
26444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26445   (exit $ac_status); } && {
26446          test -z "$ac_c_werror_flag" ||
26447          test ! -s conftest.err
26448        } && test -s conftest$ac_exeext &&
26449        $as_test_x conftest$ac_exeext; then
26450   ac_cv_lib_ipv6=yes
26451 else
26452   echo "$as_me: failed program was:" >&5
26453 sed 's/^/| /' conftest.$ac_ext >&5
26454
26455         ac_cv_lib_ipv6=no
26456 fi
26457
26458 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26459       conftest$ac_exeext conftest.$ac_ext
26460 fi
26461 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipv6" >&5
26462 echo "${ECHO_T}$ac_cv_lib_ipv6" >&6; }
26463 if test "$ac_cv_lib_ipv6" = yes; then
26464
26465 cat >>confdefs.h <<\_ACEOF
26466 #define HAVE_IPV6 1
26467 _ACEOF
26468
26469 else
26470   CFLAGS="${save_CFLAGS}"
26471 fi
26472
26473 ## test for AIX missing in6addr_loopback
26474 if test "$ac_cv_lib_ipv6" = yes; then
26475         { echo "$as_me:$LINENO: checking for in6addr_loopback" >&5
26476 echo $ECHO_N "checking for in6addr_loopback... $ECHO_C" >&6; }
26477 if test "${ac_cv_var_in6addr_loopback+set}" = set; then
26478   echo $ECHO_N "(cached) $ECHO_C" >&6
26479 else
26480
26481         cat >conftest.$ac_ext <<_ACEOF
26482 /* confdefs.h.  */
26483 _ACEOF
26484 cat confdefs.h >>conftest.$ac_ext
26485 cat >>conftest.$ac_ext <<_ACEOF
26486 /* end confdefs.h.  */
26487
26488 #ifdef HAVE_SYS_TYPES_H
26489 #include <sys/types.h>
26490 #endif
26491 #ifdef HAVE_SYS_SOCKET_H
26492 #include <sys/socket.h>
26493 #endif
26494 #ifdef HAVE_NETINET_IN_H
26495 #include <netinet/in.h>
26496 #endif
26497 #ifdef HAVE_NETINET_IN6_H
26498 #include <netinet/in6.h>
26499 #endif
26500 int
26501 main ()
26502 {
26503
26504 struct sockaddr_in6 sin6;
26505 sin6.sin6_addr = in6addr_loopback;
26506
26507   ;
26508   return 0;
26509 }
26510 _ACEOF
26511 rm -f conftest.$ac_objext conftest$ac_exeext
26512 if { (ac_try="$ac_link"
26513 case "(($ac_try" in
26514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26515   *) ac_try_echo=$ac_try;;
26516 esac
26517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26518   (eval "$ac_link") 2>conftest.er1
26519   ac_status=$?
26520   grep -v '^ *+' conftest.er1 >conftest.err
26521   rm -f conftest.er1
26522   cat conftest.err >&5
26523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26524   (exit $ac_status); } && {
26525          test -z "$ac_c_werror_flag" ||
26526          test ! -s conftest.err
26527        } && test -s conftest$ac_exeext &&
26528        $as_test_x conftest$ac_exeext; then
26529   ac_cv_var_in6addr_loopback=yes
26530 else
26531   echo "$as_me: failed program was:" >&5
26532 sed 's/^/| /' conftest.$ac_ext >&5
26533
26534         ac_cv_var_in6addr_loopback=no
26535 fi
26536
26537 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26538       conftest$ac_exeext conftest.$ac_ext
26539 fi
26540 { echo "$as_me:$LINENO: result: $ac_cv_var_in6addr_loopback" >&5
26541 echo "${ECHO_T}$ac_cv_var_in6addr_loopback" >&6; }
26542         if test "$ac_cv_var_in6addr_loopback" = yes; then
26543
26544 cat >>confdefs.h <<\_ACEOF
26545 #define HAVE_IN6ADDR_LOOPBACK 1
26546 _ACEOF
26547
26548         fi
26549 fi
26550
26551
26552
26553
26554
26555
26556 { echo "$as_me:$LINENO: checking for gethostbyname2" >&5
26557 echo $ECHO_N "checking for gethostbyname2... $ECHO_C" >&6; }
26558 if test "${ac_cv_funclib_gethostbyname2+set}" = set; then
26559   echo $ECHO_N "(cached) $ECHO_C" >&6
26560 else
26561
26562 if eval "test \"\$ac_cv_func_gethostbyname2\" != yes" ; then
26563         ac_save_LIBS="$LIBS"
26564         for ac_lib in "" inet6 ip6; do
26565                 case "$ac_lib" in
26566                 "") ;;
26567                 yes) ac_lib="" ;;
26568                 no) continue ;;
26569                 -l*) ;;
26570                 *) ac_lib="-l$ac_lib" ;;
26571                 esac
26572                 LIBS=" $ac_lib  $ac_save_LIBS"
26573                 cat >conftest.$ac_ext <<_ACEOF
26574 /* confdefs.h.  */
26575 _ACEOF
26576 cat confdefs.h >>conftest.$ac_ext
26577 cat >>conftest.$ac_ext <<_ACEOF
26578 /* end confdefs.h.  */
26579
26580 int
26581 main ()
26582 {
26583 gethostbyname2()
26584   ;
26585   return 0;
26586 }
26587 _ACEOF
26588 rm -f conftest.$ac_objext conftest$ac_exeext
26589 if { (ac_try="$ac_link"
26590 case "(($ac_try" in
26591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26592   *) ac_try_echo=$ac_try;;
26593 esac
26594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26595   (eval "$ac_link") 2>conftest.er1
26596   ac_status=$?
26597   grep -v '^ *+' conftest.er1 >conftest.err
26598   rm -f conftest.er1
26599   cat conftest.err >&5
26600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26601   (exit $ac_status); } && {
26602          test -z "$ac_c_werror_flag" ||
26603          test ! -s conftest.err
26604        } && test -s conftest$ac_exeext &&
26605        $as_test_x conftest$ac_exeext; then
26606   eval "if test -n \"$ac_lib\";then ac_cv_funclib_gethostbyname2=$ac_lib; else ac_cv_funclib_gethostbyname2=yes; fi";break
26607 else
26608   echo "$as_me: failed program was:" >&5
26609 sed 's/^/| /' conftest.$ac_ext >&5
26610
26611
26612 fi
26613
26614 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26615       conftest$ac_exeext conftest.$ac_ext
26616         done
26617         eval "ac_cv_funclib_gethostbyname2=\${ac_cv_funclib_gethostbyname2-no}"
26618         LIBS="$ac_save_LIBS"
26619 fi
26620
26621 fi
26622
26623
26624 eval "ac_res=\$ac_cv_funclib_gethostbyname2"
26625
26626 if false; then
26627
26628 for ac_func in gethostbyname2
26629 do
26630 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26631 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26632 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26633 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26634   echo $ECHO_N "(cached) $ECHO_C" >&6
26635 else
26636   cat >conftest.$ac_ext <<_ACEOF
26637 /* confdefs.h.  */
26638 _ACEOF
26639 cat confdefs.h >>conftest.$ac_ext
26640 cat >>conftest.$ac_ext <<_ACEOF
26641 /* end confdefs.h.  */
26642 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26643    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26644 #define $ac_func innocuous_$ac_func
26645
26646 /* System header to define __stub macros and hopefully few prototypes,
26647     which can conflict with char $ac_func (); below.
26648     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26649     <limits.h> exists even on freestanding compilers.  */
26650
26651 #ifdef __STDC__
26652 # include <limits.h>
26653 #else
26654 # include <assert.h>
26655 #endif
26656
26657 #undef $ac_func
26658
26659 /* Override any GCC internal prototype to avoid an error.
26660    Use char because int might match the return type of a GCC
26661    builtin and then its argument prototype would still apply.  */
26662 #ifdef __cplusplus
26663 extern "C"
26664 #endif
26665 char $ac_func ();
26666 /* The GNU C library defines this for functions which it implements
26667     to always fail with ENOSYS.  Some functions are actually named
26668     something starting with __ and the normal name is an alias.  */
26669 #if defined __stub_$ac_func || defined __stub___$ac_func
26670 choke me
26671 #endif
26672
26673 int
26674 main ()
26675 {
26676 return $ac_func ();
26677   ;
26678   return 0;
26679 }
26680 _ACEOF
26681 rm -f conftest.$ac_objext conftest$ac_exeext
26682 if { (ac_try="$ac_link"
26683 case "(($ac_try" in
26684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26685   *) ac_try_echo=$ac_try;;
26686 esac
26687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26688   (eval "$ac_link") 2>conftest.er1
26689   ac_status=$?
26690   grep -v '^ *+' conftest.er1 >conftest.err
26691   rm -f conftest.er1
26692   cat conftest.err >&5
26693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26694   (exit $ac_status); } && {
26695          test -z "$ac_c_werror_flag" ||
26696          test ! -s conftest.err
26697        } && test -s conftest$ac_exeext &&
26698        $as_test_x conftest$ac_exeext; then
26699   eval "$as_ac_var=yes"
26700 else
26701   echo "$as_me: failed program was:" >&5
26702 sed 's/^/| /' conftest.$ac_ext >&5
26703
26704         eval "$as_ac_var=no"
26705 fi
26706
26707 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26708       conftest$ac_exeext conftest.$ac_ext
26709 fi
26710 ac_res=`eval echo '${'$as_ac_var'}'`
26711                { echo "$as_me:$LINENO: result: $ac_res" >&5
26712 echo "${ECHO_T}$ac_res" >&6; }
26713 if test `eval echo '${'$as_ac_var'}'` = yes; then
26714   cat >>confdefs.h <<_ACEOF
26715 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26716 _ACEOF
26717
26718 fi
26719 done
26720
26721 fi
26722 # gethostbyname2
26723 eval "ac_tr_func=HAVE_`echo gethostbyname2 | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
26724 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
26725 eval "LIB_gethostbyname2=$ac_res"
26726
26727 case "$ac_res" in
26728         yes)
26729         eval "ac_cv_func_gethostbyname2=yes"
26730         eval "LIB_gethostbyname2="
26731         cat >>confdefs.h <<_ACEOF
26732 #define $ac_tr_func 1
26733 _ACEOF
26734
26735         { echo "$as_me:$LINENO: result: yes" >&5
26736 echo "${ECHO_T}yes" >&6; }
26737         ;;
26738         no)
26739         eval "ac_cv_func_gethostbyname2=no"
26740         eval "LIB_gethostbyname2="
26741         { echo "$as_me:$LINENO: result: no" >&5
26742 echo "${ECHO_T}no" >&6; }
26743         ;;
26744         *)
26745         eval "ac_cv_func_gethostbyname2=yes"
26746         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
26747         cat >>confdefs.h <<_ACEOF
26748 #define $ac_tr_func 1
26749 _ACEOF
26750
26751         cat >>confdefs.h <<_ACEOF
26752 #define $ac_tr_lib 1
26753 _ACEOF
26754
26755         { echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
26756 echo "${ECHO_T}yes, in $ac_res" >&6; }
26757         ;;
26758 esac
26759
26760
26761 if test -n "$LIB_gethostbyname2"; then
26762         LIBS="$LIB_gethostbyname2 $LIBS"
26763 fi
26764
26765
26766
26767
26768
26769 for ac_header in arpa/nameser.h
26770 do
26771 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26772 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26773   { echo "$as_me:$LINENO: checking for $ac_header" >&5
26774 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26775 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26776   echo $ECHO_N "(cached) $ECHO_C" >&6
26777 fi
26778 ac_res=`eval echo '${'$as_ac_Header'}'`
26779                { echo "$as_me:$LINENO: result: $ac_res" >&5
26780 echo "${ECHO_T}$ac_res" >&6; }
26781 else
26782   # Is the header compilable?
26783 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26784 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26785 cat >conftest.$ac_ext <<_ACEOF
26786 /* confdefs.h.  */
26787 _ACEOF
26788 cat confdefs.h >>conftest.$ac_ext
26789 cat >>conftest.$ac_ext <<_ACEOF
26790 /* end confdefs.h.  */
26791 $ac_includes_default
26792 #include <$ac_header>
26793 _ACEOF
26794 rm -f conftest.$ac_objext
26795 if { (ac_try="$ac_compile"
26796 case "(($ac_try" in
26797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26798   *) ac_try_echo=$ac_try;;
26799 esac
26800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26801   (eval "$ac_compile") 2>conftest.er1
26802   ac_status=$?
26803   grep -v '^ *+' conftest.er1 >conftest.err
26804   rm -f conftest.er1
26805   cat conftest.err >&5
26806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26807   (exit $ac_status); } && {
26808          test -z "$ac_c_werror_flag" ||
26809          test ! -s conftest.err
26810        } && test -s conftest.$ac_objext; then
26811   ac_header_compiler=yes
26812 else
26813   echo "$as_me: failed program was:" >&5
26814 sed 's/^/| /' conftest.$ac_ext >&5
26815
26816         ac_header_compiler=no
26817 fi
26818
26819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26820 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26821 echo "${ECHO_T}$ac_header_compiler" >&6; }
26822
26823 # Is the header present?
26824 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26825 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26826 cat >conftest.$ac_ext <<_ACEOF
26827 /* confdefs.h.  */
26828 _ACEOF
26829 cat confdefs.h >>conftest.$ac_ext
26830 cat >>conftest.$ac_ext <<_ACEOF
26831 /* end confdefs.h.  */
26832 #include <$ac_header>
26833 _ACEOF
26834 if { (ac_try="$ac_cpp conftest.$ac_ext"
26835 case "(($ac_try" in
26836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26837   *) ac_try_echo=$ac_try;;
26838 esac
26839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26840   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26841   ac_status=$?
26842   grep -v '^ *+' conftest.er1 >conftest.err
26843   rm -f conftest.er1
26844   cat conftest.err >&5
26845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26846   (exit $ac_status); } >/dev/null && {
26847          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26848          test ! -s conftest.err
26849        }; then
26850   ac_header_preproc=yes
26851 else
26852   echo "$as_me: failed program was:" >&5
26853 sed 's/^/| /' conftest.$ac_ext >&5
26854
26855   ac_header_preproc=no
26856 fi
26857
26858 rm -f conftest.err conftest.$ac_ext
26859 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26860 echo "${ECHO_T}$ac_header_preproc" >&6; }
26861
26862 # So?  What about this header?
26863 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26864   yes:no: )
26865     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26866 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26867     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26868 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26869     ac_header_preproc=yes
26870     ;;
26871   no:yes:* )
26872     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26873 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26874     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26875 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26876     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26877 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26878     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26879 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26880     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26881 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26882     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26883 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26884     ( cat <<\_ASBOX
26885 ## ----------------------------------- ##
26886 ## Report this to heimdal-bugs@h5l.org ##
26887 ## ----------------------------------- ##
26888 _ASBOX
26889      ) | sed "s/^/$as_me: WARNING:     /" >&2
26890     ;;
26891 esac
26892 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26893 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26894 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26895   echo $ECHO_N "(cached) $ECHO_C" >&6
26896 else
26897   eval "$as_ac_Header=\$ac_header_preproc"
26898 fi
26899 ac_res=`eval echo '${'$as_ac_Header'}'`
26900                { echo "$as_me:$LINENO: result: $ac_res" >&5
26901 echo "${ECHO_T}$ac_res" >&6; }
26902
26903 fi
26904 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26905   cat >>confdefs.h <<_ACEOF
26906 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26907 _ACEOF
26908
26909 fi
26910
26911 done
26912
26913
26914
26915 for ac_header in resolv.h
26916 do
26917 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26918 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26919 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26920 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26921   echo $ECHO_N "(cached) $ECHO_C" >&6
26922 else
26923   cat >conftest.$ac_ext <<_ACEOF
26924 /* confdefs.h.  */
26925 _ACEOF
26926 cat confdefs.h >>conftest.$ac_ext
26927 cat >>conftest.$ac_ext <<_ACEOF
26928 /* end confdefs.h.  */
26929 $ac_includes_default
26930 #ifdef HAVE_SYS_TYPES_H
26931 #include <sys/types.h>
26932 #endif
26933 #ifdef HAVE_NETINET_IN_H
26934 #include <netinet/in.h>
26935 #endif
26936 #ifdef HAVE_ARPA_NAMESER_H
26937 #include <arpa/nameser.h>
26938 #endif
26939
26940
26941 #include <$ac_header>
26942 _ACEOF
26943 rm -f conftest.$ac_objext
26944 if { (ac_try="$ac_compile"
26945 case "(($ac_try" in
26946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26947   *) ac_try_echo=$ac_try;;
26948 esac
26949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26950   (eval "$ac_compile") 2>conftest.er1
26951   ac_status=$?
26952   grep -v '^ *+' conftest.er1 >conftest.err
26953   rm -f conftest.er1
26954   cat conftest.err >&5
26955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26956   (exit $ac_status); } && {
26957          test -z "$ac_c_werror_flag" ||
26958          test ! -s conftest.err
26959        } && test -s conftest.$ac_objext; then
26960   eval "$as_ac_Header=yes"
26961 else
26962   echo "$as_me: failed program was:" >&5
26963 sed 's/^/| /' conftest.$ac_ext >&5
26964
26965         eval "$as_ac_Header=no"
26966 fi
26967
26968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26969 fi
26970 ac_res=`eval echo '${'$as_ac_Header'}'`
26971                { echo "$as_me:$LINENO: result: $ac_res" >&5
26972 echo "${ECHO_T}$ac_res" >&6; }
26973 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26974   cat >>confdefs.h <<_ACEOF
26975 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26976 _ACEOF
26977
26978 fi
26979
26980 done
26981
26982
26983
26984
26985
26986
26987 { echo "$as_me:$LINENO: checking for res_search" >&5
26988 echo $ECHO_N "checking for res_search... $ECHO_C" >&6; }
26989 if test "${ac_cv_funclib_res_search+set}" = set; then
26990   echo $ECHO_N "(cached) $ECHO_C" >&6
26991 else
26992
26993 if eval "test \"\$ac_cv_func_res_search\" != yes" ; then
26994         ac_save_LIBS="$LIBS"
26995         for ac_lib in "" resolv; do
26996                 case "$ac_lib" in
26997                 "") ;;
26998                 yes) ac_lib="" ;;
26999                 no) continue ;;
27000                 -l*) ;;
27001                 *) ac_lib="-l$ac_lib" ;;
27002                 esac
27003                 LIBS=" $ac_lib  $ac_save_LIBS"
27004                 cat >conftest.$ac_ext <<_ACEOF
27005 /* confdefs.h.  */
27006 _ACEOF
27007 cat confdefs.h >>conftest.$ac_ext
27008 cat >>conftest.$ac_ext <<_ACEOF
27009 /* end confdefs.h.  */
27010
27011 #include <stdio.h>
27012 #ifdef HAVE_SYS_TYPES_H
27013 #include <sys/types.h>
27014 #endif
27015 #ifdef HAVE_NETINET_IN_H
27016 #include <netinet/in.h>
27017 #endif
27018 #ifdef HAVE_ARPA_NAMESER_H
27019 #include <arpa/nameser.h>
27020 #endif
27021 #ifdef HAVE_RESOLV_H
27022 #include <resolv.h>
27023 #endif
27024
27025 int
27026 main ()
27027 {
27028 res_search(0,0,0,0,0)
27029   ;
27030   return 0;
27031 }
27032 _ACEOF
27033 rm -f conftest.$ac_objext conftest$ac_exeext
27034 if { (ac_try="$ac_link"
27035 case "(($ac_try" in
27036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27037   *) ac_try_echo=$ac_try;;
27038 esac
27039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27040   (eval "$ac_link") 2>conftest.er1
27041   ac_status=$?
27042   grep -v '^ *+' conftest.er1 >conftest.err
27043   rm -f conftest.er1
27044   cat conftest.err >&5
27045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27046   (exit $ac_status); } && {
27047          test -z "$ac_c_werror_flag" ||
27048          test ! -s conftest.err
27049        } && test -s conftest$ac_exeext &&
27050        $as_test_x conftest$ac_exeext; then
27051   eval "if test -n \"$ac_lib\";then ac_cv_funclib_res_search=$ac_lib; else ac_cv_funclib_res_search=yes; fi";break
27052 else
27053   echo "$as_me: failed program was:" >&5
27054 sed 's/^/| /' conftest.$ac_ext >&5
27055
27056
27057 fi
27058
27059 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27060       conftest$ac_exeext conftest.$ac_ext
27061         done
27062         eval "ac_cv_funclib_res_search=\${ac_cv_funclib_res_search-no}"
27063         LIBS="$ac_save_LIBS"
27064 fi
27065
27066 fi
27067
27068
27069 eval "ac_res=\$ac_cv_funclib_res_search"
27070
27071 if false; then
27072
27073 for ac_func in res_search
27074 do
27075 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27076 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27077 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27078 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27079   echo $ECHO_N "(cached) $ECHO_C" >&6
27080 else
27081   cat >conftest.$ac_ext <<_ACEOF
27082 /* confdefs.h.  */
27083 _ACEOF
27084 cat confdefs.h >>conftest.$ac_ext
27085 cat >>conftest.$ac_ext <<_ACEOF
27086 /* end confdefs.h.  */
27087 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27088    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27089 #define $ac_func innocuous_$ac_func
27090
27091 /* System header to define __stub macros and hopefully few prototypes,
27092     which can conflict with char $ac_func (); below.
27093     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27094     <limits.h> exists even on freestanding compilers.  */
27095
27096 #ifdef __STDC__
27097 # include <limits.h>
27098 #else
27099 # include <assert.h>
27100 #endif
27101
27102 #undef $ac_func
27103
27104 /* Override any GCC internal prototype to avoid an error.
27105    Use char because int might match the return type of a GCC
27106    builtin and then its argument prototype would still apply.  */
27107 #ifdef __cplusplus
27108 extern "C"
27109 #endif
27110 char $ac_func ();
27111 /* The GNU C library defines this for functions which it implements
27112     to always fail with ENOSYS.  Some functions are actually named
27113     something starting with __ and the normal name is an alias.  */
27114 #if defined __stub_$ac_func || defined __stub___$ac_func
27115 choke me
27116 #endif
27117
27118 int
27119 main ()
27120 {
27121 return $ac_func ();
27122   ;
27123   return 0;
27124 }
27125 _ACEOF
27126 rm -f conftest.$ac_objext conftest$ac_exeext
27127 if { (ac_try="$ac_link"
27128 case "(($ac_try" in
27129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27130   *) ac_try_echo=$ac_try;;
27131 esac
27132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27133   (eval "$ac_link") 2>conftest.er1
27134   ac_status=$?
27135   grep -v '^ *+' conftest.er1 >conftest.err
27136   rm -f conftest.er1
27137   cat conftest.err >&5
27138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27139   (exit $ac_status); } && {
27140          test -z "$ac_c_werror_flag" ||
27141          test ! -s conftest.err
27142        } && test -s conftest$ac_exeext &&
27143        $as_test_x conftest$ac_exeext; then
27144   eval "$as_ac_var=yes"
27145 else
27146   echo "$as_me: failed program was:" >&5
27147 sed 's/^/| /' conftest.$ac_ext >&5
27148
27149         eval "$as_ac_var=no"
27150 fi
27151
27152 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27153       conftest$ac_exeext conftest.$ac_ext
27154 fi
27155 ac_res=`eval echo '${'$as_ac_var'}'`
27156                { echo "$as_me:$LINENO: result: $ac_res" >&5
27157 echo "${ECHO_T}$ac_res" >&6; }
27158 if test `eval echo '${'$as_ac_var'}'` = yes; then
27159   cat >>confdefs.h <<_ACEOF
27160 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27161 _ACEOF
27162
27163 fi
27164 done
27165
27166 fi
27167 # res_search
27168 eval "ac_tr_func=HAVE_`echo res_search | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
27169 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
27170 eval "LIB_res_search=$ac_res"
27171
27172 case "$ac_res" in
27173         yes)
27174         eval "ac_cv_func_res_search=yes"
27175         eval "LIB_res_search="
27176         cat >>confdefs.h <<_ACEOF
27177 #define $ac_tr_func 1
27178 _ACEOF
27179
27180         { echo "$as_me:$LINENO: result: yes" >&5
27181 echo "${ECHO_T}yes" >&6; }
27182         ;;
27183         no)
27184         eval "ac_cv_func_res_search=no"
27185         eval "LIB_res_search="
27186         { echo "$as_me:$LINENO: result: no" >&5
27187 echo "${ECHO_T}no" >&6; }
27188         ;;
27189         *)
27190         eval "ac_cv_func_res_search=yes"
27191         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
27192         cat >>confdefs.h <<_ACEOF
27193 #define $ac_tr_func 1
27194 _ACEOF
27195
27196         cat >>confdefs.h <<_ACEOF
27197 #define $ac_tr_lib 1
27198 _ACEOF
27199
27200         { echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
27201 echo "${ECHO_T}yes, in $ac_res" >&6; }
27202         ;;
27203 esac
27204
27205
27206 if test -n "$LIB_res_search"; then
27207         LIBS="$LIB_res_search $LIBS"
27208 fi
27209
27210
27211
27212
27213
27214
27215 { echo "$as_me:$LINENO: checking for res_nsearch" >&5
27216 echo $ECHO_N "checking for res_nsearch... $ECHO_C" >&6; }
27217 if test "${ac_cv_funclib_res_nsearch+set}" = set; then
27218   echo $ECHO_N "(cached) $ECHO_C" >&6
27219 else
27220
27221 if eval "test \"\$ac_cv_func_res_nsearch\" != yes" ; then
27222         ac_save_LIBS="$LIBS"
27223         for ac_lib in "" resolv; do
27224                 case "$ac_lib" in
27225                 "") ;;
27226                 yes) ac_lib="" ;;
27227                 no) continue ;;
27228                 -l*) ;;
27229                 *) ac_lib="-l$ac_lib" ;;
27230                 esac
27231                 LIBS=" $ac_lib  $ac_save_LIBS"
27232                 cat >conftest.$ac_ext <<_ACEOF
27233 /* confdefs.h.  */
27234 _ACEOF
27235 cat confdefs.h >>conftest.$ac_ext
27236 cat >>conftest.$ac_ext <<_ACEOF
27237 /* end confdefs.h.  */
27238
27239 #include <stdio.h>
27240 #ifdef HAVE_SYS_TYPES_H
27241 #include <sys/types.h>
27242 #endif
27243 #ifdef HAVE_NETINET_IN_H
27244 #include <netinet/in.h>
27245 #endif
27246 #ifdef HAVE_ARPA_NAMESER_H
27247 #include <arpa/nameser.h>
27248 #endif
27249 #ifdef HAVE_RESOLV_H
27250 #include <resolv.h>
27251 #endif
27252
27253 int
27254 main ()
27255 {
27256 res_nsearch(0,0,0,0,0,0)
27257   ;
27258   return 0;
27259 }
27260 _ACEOF
27261 rm -f conftest.$ac_objext conftest$ac_exeext
27262 if { (ac_try="$ac_link"
27263 case "(($ac_try" in
27264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27265   *) ac_try_echo=$ac_try;;
27266 esac
27267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27268   (eval "$ac_link") 2>conftest.er1
27269   ac_status=$?
27270   grep -v '^ *+' conftest.er1 >conftest.err
27271   rm -f conftest.er1
27272   cat conftest.err >&5
27273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27274   (exit $ac_status); } && {
27275          test -z "$ac_c_werror_flag" ||
27276          test ! -s conftest.err
27277        } && test -s conftest$ac_exeext &&
27278        $as_test_x conftest$ac_exeext; then
27279   eval "if test -n \"$ac_lib\";then ac_cv_funclib_res_nsearch=$ac_lib; else ac_cv_funclib_res_nsearch=yes; fi";break
27280 else
27281   echo "$as_me: failed program was:" >&5
27282 sed 's/^/| /' conftest.$ac_ext >&5
27283
27284
27285 fi
27286
27287 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27288       conftest$ac_exeext conftest.$ac_ext
27289         done
27290         eval "ac_cv_funclib_res_nsearch=\${ac_cv_funclib_res_nsearch-no}"
27291         LIBS="$ac_save_LIBS"
27292 fi
27293
27294 fi
27295
27296
27297 eval "ac_res=\$ac_cv_funclib_res_nsearch"
27298
27299 if false; then
27300
27301 for ac_func in res_nsearch
27302 do
27303 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27304 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27305 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27306 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27307   echo $ECHO_N "(cached) $ECHO_C" >&6
27308 else
27309   cat >conftest.$ac_ext <<_ACEOF
27310 /* confdefs.h.  */
27311 _ACEOF
27312 cat confdefs.h >>conftest.$ac_ext
27313 cat >>conftest.$ac_ext <<_ACEOF
27314 /* end confdefs.h.  */
27315 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27316    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27317 #define $ac_func innocuous_$ac_func
27318
27319 /* System header to define __stub macros and hopefully few prototypes,
27320     which can conflict with char $ac_func (); below.
27321     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27322     <limits.h> exists even on freestanding compilers.  */
27323
27324 #ifdef __STDC__
27325 # include <limits.h>
27326 #else
27327 # include <assert.h>
27328 #endif
27329
27330 #undef $ac_func
27331
27332 /* Override any GCC internal prototype to avoid an error.
27333    Use char because int might match the return type of a GCC
27334    builtin and then its argument prototype would still apply.  */
27335 #ifdef __cplusplus
27336 extern "C"
27337 #endif
27338 char $ac_func ();
27339 /* The GNU C library defines this for functions which it implements
27340     to always fail with ENOSYS.  Some functions are actually named
27341     something starting with __ and the normal name is an alias.  */
27342 #if defined __stub_$ac_func || defined __stub___$ac_func
27343 choke me
27344 #endif
27345
27346 int
27347 main ()
27348 {
27349 return $ac_func ();
27350   ;
27351   return 0;
27352 }
27353 _ACEOF
27354 rm -f conftest.$ac_objext conftest$ac_exeext
27355 if { (ac_try="$ac_link"
27356 case "(($ac_try" in
27357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27358   *) ac_try_echo=$ac_try;;
27359 esac
27360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27361   (eval "$ac_link") 2>conftest.er1
27362   ac_status=$?
27363   grep -v '^ *+' conftest.er1 >conftest.err
27364   rm -f conftest.er1
27365   cat conftest.err >&5
27366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27367   (exit $ac_status); } && {
27368          test -z "$ac_c_werror_flag" ||
27369          test ! -s conftest.err
27370        } && test -s conftest$ac_exeext &&
27371        $as_test_x conftest$ac_exeext; then
27372   eval "$as_ac_var=yes"
27373 else
27374   echo "$as_me: failed program was:" >&5
27375 sed 's/^/| /' conftest.$ac_ext >&5
27376
27377         eval "$as_ac_var=no"
27378 fi
27379
27380 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27381       conftest$ac_exeext conftest.$ac_ext
27382 fi
27383 ac_res=`eval echo '${'$as_ac_var'}'`
27384                { echo "$as_me:$LINENO: result: $ac_res" >&5
27385 echo "${ECHO_T}$ac_res" >&6; }
27386 if test `eval echo '${'$as_ac_var'}'` = yes; then
27387   cat >>confdefs.h <<_ACEOF
27388 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27389 _ACEOF
27390
27391 fi
27392 done
27393
27394 fi
27395 # res_nsearch
27396 eval "ac_tr_func=HAVE_`echo res_nsearch | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
27397 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
27398 eval "LIB_res_nsearch=$ac_res"
27399
27400 case "$ac_res" in
27401         yes)
27402         eval "ac_cv_func_res_nsearch=yes"
27403         eval "LIB_res_nsearch="
27404         cat >>confdefs.h <<_ACEOF
27405 #define $ac_tr_func 1
27406 _ACEOF
27407
27408         { echo "$as_me:$LINENO: result: yes" >&5
27409 echo "${ECHO_T}yes" >&6; }
27410         ;;
27411         no)
27412         eval "ac_cv_func_res_nsearch=no"
27413         eval "LIB_res_nsearch="
27414         { echo "$as_me:$LINENO: result: no" >&5
27415 echo "${ECHO_T}no" >&6; }
27416         ;;
27417         *)
27418         eval "ac_cv_func_res_nsearch=yes"
27419         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
27420         cat >>confdefs.h <<_ACEOF
27421 #define $ac_tr_func 1
27422 _ACEOF
27423
27424         cat >>confdefs.h <<_ACEOF
27425 #define $ac_tr_lib 1
27426 _ACEOF
27427
27428         { echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
27429 echo "${ECHO_T}yes, in $ac_res" >&6; }
27430         ;;
27431 esac
27432
27433
27434 if test -n "$LIB_res_nsearch"; then
27435         LIBS="$LIB_res_nsearch $LIBS"
27436 fi
27437
27438
27439
27440
27441
27442
27443 { echo "$as_me:$LINENO: checking for res_ndestroy" >&5
27444 echo $ECHO_N "checking for res_ndestroy... $ECHO_C" >&6; }
27445 if test "${ac_cv_funclib_res_ndestroy+set}" = set; then
27446   echo $ECHO_N "(cached) $ECHO_C" >&6
27447 else
27448
27449 if eval "test \"\$ac_cv_func_res_ndestroy\" != yes" ; then
27450         ac_save_LIBS="$LIBS"
27451         for ac_lib in "" resolv; do
27452                 case "$ac_lib" in
27453                 "") ;;
27454                 yes) ac_lib="" ;;
27455                 no) continue ;;
27456                 -l*) ;;
27457                 *) ac_lib="-l$ac_lib" ;;
27458                 esac
27459                 LIBS=" $ac_lib  $ac_save_LIBS"
27460                 cat >conftest.$ac_ext <<_ACEOF
27461 /* confdefs.h.  */
27462 _ACEOF
27463 cat confdefs.h >>conftest.$ac_ext
27464 cat >>conftest.$ac_ext <<_ACEOF
27465 /* end confdefs.h.  */
27466
27467 #include <stdio.h>
27468 #ifdef HAVE_SYS_TYPES_H
27469 #include <sys/types.h>
27470 #endif
27471 #ifdef HAVE_NETINET_IN_H
27472 #include <netinet/in.h>
27473 #endif
27474 #ifdef HAVE_ARPA_NAMESER_H
27475 #include <arpa/nameser.h>
27476 #endif
27477 #ifdef HAVE_RESOLV_H
27478 #include <resolv.h>
27479 #endif
27480
27481 int
27482 main ()
27483 {
27484 res_ndestroy(0)
27485   ;
27486   return 0;
27487 }
27488 _ACEOF
27489 rm -f conftest.$ac_objext conftest$ac_exeext
27490 if { (ac_try="$ac_link"
27491 case "(($ac_try" in
27492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27493   *) ac_try_echo=$ac_try;;
27494 esac
27495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27496   (eval "$ac_link") 2>conftest.er1
27497   ac_status=$?
27498   grep -v '^ *+' conftest.er1 >conftest.err
27499   rm -f conftest.er1
27500   cat conftest.err >&5
27501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27502   (exit $ac_status); } && {
27503          test -z "$ac_c_werror_flag" ||
27504          test ! -s conftest.err
27505        } && test -s conftest$ac_exeext &&
27506        $as_test_x conftest$ac_exeext; then
27507   eval "if test -n \"$ac_lib\";then ac_cv_funclib_res_ndestroy=$ac_lib; else ac_cv_funclib_res_ndestroy=yes; fi";break
27508 else
27509   echo "$as_me: failed program was:" >&5
27510 sed 's/^/| /' conftest.$ac_ext >&5
27511
27512
27513 fi
27514
27515 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27516       conftest$ac_exeext conftest.$ac_ext
27517         done
27518         eval "ac_cv_funclib_res_ndestroy=\${ac_cv_funclib_res_ndestroy-no}"
27519         LIBS="$ac_save_LIBS"
27520 fi
27521
27522 fi
27523
27524
27525 eval "ac_res=\$ac_cv_funclib_res_ndestroy"
27526
27527 if false; then
27528
27529 for ac_func in res_ndestroy
27530 do
27531 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27532 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27533 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27534 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27535   echo $ECHO_N "(cached) $ECHO_C" >&6
27536 else
27537   cat >conftest.$ac_ext <<_ACEOF
27538 /* confdefs.h.  */
27539 _ACEOF
27540 cat confdefs.h >>conftest.$ac_ext
27541 cat >>conftest.$ac_ext <<_ACEOF
27542 /* end confdefs.h.  */
27543 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27544    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27545 #define $ac_func innocuous_$ac_func
27546
27547 /* System header to define __stub macros and hopefully few prototypes,
27548     which can conflict with char $ac_func (); below.
27549     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27550     <limits.h> exists even on freestanding compilers.  */
27551
27552 #ifdef __STDC__
27553 # include <limits.h>
27554 #else
27555 # include <assert.h>
27556 #endif
27557
27558 #undef $ac_func
27559
27560 /* Override any GCC internal prototype to avoid an error.
27561    Use char because int might match the return type of a GCC
27562    builtin and then its argument prototype would still apply.  */
27563 #ifdef __cplusplus
27564 extern "C"
27565 #endif
27566 char $ac_func ();
27567 /* The GNU C library defines this for functions which it implements
27568     to always fail with ENOSYS.  Some functions are actually named
27569     something starting with __ and the normal name is an alias.  */
27570 #if defined __stub_$ac_func || defined __stub___$ac_func
27571 choke me
27572 #endif
27573
27574 int
27575 main ()
27576 {
27577 return $ac_func ();
27578   ;
27579   return 0;
27580 }
27581 _ACEOF
27582 rm -f conftest.$ac_objext conftest$ac_exeext
27583 if { (ac_try="$ac_link"
27584 case "(($ac_try" in
27585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27586   *) ac_try_echo=$ac_try;;
27587 esac
27588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27589   (eval "$ac_link") 2>conftest.er1
27590   ac_status=$?
27591   grep -v '^ *+' conftest.er1 >conftest.err
27592   rm -f conftest.er1
27593   cat conftest.err >&5
27594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27595   (exit $ac_status); } && {
27596          test -z "$ac_c_werror_flag" ||
27597          test ! -s conftest.err
27598        } && test -s conftest$ac_exeext &&
27599        $as_test_x conftest$ac_exeext; then
27600   eval "$as_ac_var=yes"
27601 else
27602   echo "$as_me: failed program was:" >&5
27603 sed 's/^/| /' conftest.$ac_ext >&5
27604
27605         eval "$as_ac_var=no"
27606 fi
27607
27608 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27609       conftest$ac_exeext conftest.$ac_ext
27610 fi
27611 ac_res=`eval echo '${'$as_ac_var'}'`
27612                { echo "$as_me:$LINENO: result: $ac_res" >&5
27613 echo "${ECHO_T}$ac_res" >&6; }
27614 if test `eval echo '${'$as_ac_var'}'` = yes; then
27615   cat >>confdefs.h <<_ACEOF
27616 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27617 _ACEOF
27618
27619 fi
27620 done
27621
27622 fi
27623 # res_ndestroy
27624 eval "ac_tr_func=HAVE_`echo res_ndestroy | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
27625 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
27626 eval "LIB_res_ndestroy=$ac_res"
27627
27628 case "$ac_res" in
27629         yes)
27630         eval "ac_cv_func_res_ndestroy=yes"
27631         eval "LIB_res_ndestroy="
27632         cat >>confdefs.h <<_ACEOF
27633 #define $ac_tr_func 1
27634 _ACEOF
27635
27636         { echo "$as_me:$LINENO: result: yes" >&5
27637 echo "${ECHO_T}yes" >&6; }
27638         ;;
27639         no)
27640         eval "ac_cv_func_res_ndestroy=no"
27641         eval "LIB_res_ndestroy="
27642         { echo "$as_me:$LINENO: result: no" >&5
27643 echo "${ECHO_T}no" >&6; }
27644         ;;
27645         *)
27646         eval "ac_cv_func_res_ndestroy=yes"
27647         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
27648         cat >>confdefs.h <<_ACEOF
27649 #define $ac_tr_func 1
27650 _ACEOF
27651
27652         cat >>confdefs.h <<_ACEOF
27653 #define $ac_tr_lib 1
27654 _ACEOF
27655
27656         { echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
27657 echo "${ECHO_T}yes, in $ac_res" >&6; }
27658         ;;
27659 esac
27660
27661
27662 if test -n "$LIB_res_ndestroy"; then
27663         LIBS="$LIB_res_ndestroy $LIBS"
27664 fi
27665
27666
27667
27668
27669
27670
27671 { echo "$as_me:$LINENO: checking for dn_expand" >&5
27672 echo $ECHO_N "checking for dn_expand... $ECHO_C" >&6; }
27673 if test "${ac_cv_funclib_dn_expand+set}" = set; then
27674   echo $ECHO_N "(cached) $ECHO_C" >&6
27675 else
27676
27677 if eval "test \"\$ac_cv_func_dn_expand\" != yes" ; then
27678         ac_save_LIBS="$LIBS"
27679         for ac_lib in "" resolv; do
27680                 case "$ac_lib" in
27681                 "") ;;
27682                 yes) ac_lib="" ;;
27683                 no) continue ;;
27684                 -l*) ;;
27685                 *) ac_lib="-l$ac_lib" ;;
27686                 esac
27687                 LIBS=" $ac_lib  $ac_save_LIBS"
27688                 cat >conftest.$ac_ext <<_ACEOF
27689 /* confdefs.h.  */
27690 _ACEOF
27691 cat confdefs.h >>conftest.$ac_ext
27692 cat >>conftest.$ac_ext <<_ACEOF
27693 /* end confdefs.h.  */
27694
27695 #include <stdio.h>
27696 #ifdef HAVE_SYS_TYPES_H
27697 #include <sys/types.h>
27698 #endif
27699 #ifdef HAVE_NETINET_IN_H
27700 #include <netinet/in.h>
27701 #endif
27702 #ifdef HAVE_ARPA_NAMESER_H
27703 #include <arpa/nameser.h>
27704 #endif
27705 #ifdef HAVE_RESOLV_H
27706 #include <resolv.h>
27707 #endif
27708
27709 int
27710 main ()
27711 {
27712 dn_expand(0,0,0,0,0)
27713   ;
27714   return 0;
27715 }
27716 _ACEOF
27717 rm -f conftest.$ac_objext conftest$ac_exeext
27718 if { (ac_try="$ac_link"
27719 case "(($ac_try" in
27720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27721   *) ac_try_echo=$ac_try;;
27722 esac
27723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27724   (eval "$ac_link") 2>conftest.er1
27725   ac_status=$?
27726   grep -v '^ *+' conftest.er1 >conftest.err
27727   rm -f conftest.er1
27728   cat conftest.err >&5
27729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27730   (exit $ac_status); } && {
27731          test -z "$ac_c_werror_flag" ||
27732          test ! -s conftest.err
27733        } && test -s conftest$ac_exeext &&
27734        $as_test_x conftest$ac_exeext; then
27735   eval "if test -n \"$ac_lib\";then ac_cv_funclib_dn_expand=$ac_lib; else ac_cv_funclib_dn_expand=yes; fi";break
27736 else
27737   echo "$as_me: failed program was:" >&5
27738 sed 's/^/| /' conftest.$ac_ext >&5
27739
27740
27741 fi
27742
27743 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27744       conftest$ac_exeext conftest.$ac_ext
27745         done
27746         eval "ac_cv_funclib_dn_expand=\${ac_cv_funclib_dn_expand-no}"
27747         LIBS="$ac_save_LIBS"
27748 fi
27749
27750 fi
27751
27752
27753 eval "ac_res=\$ac_cv_funclib_dn_expand"
27754
27755 if false; then
27756
27757 for ac_func in dn_expand
27758 do
27759 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27760 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27761 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27762 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27763   echo $ECHO_N "(cached) $ECHO_C" >&6
27764 else
27765   cat >conftest.$ac_ext <<_ACEOF
27766 /* confdefs.h.  */
27767 _ACEOF
27768 cat confdefs.h >>conftest.$ac_ext
27769 cat >>conftest.$ac_ext <<_ACEOF
27770 /* end confdefs.h.  */
27771 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27772    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27773 #define $ac_func innocuous_$ac_func
27774
27775 /* System header to define __stub macros and hopefully few prototypes,
27776     which can conflict with char $ac_func (); below.
27777     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27778     <limits.h> exists even on freestanding compilers.  */
27779
27780 #ifdef __STDC__
27781 # include <limits.h>
27782 #else
27783 # include <assert.h>
27784 #endif
27785
27786 #undef $ac_func
27787
27788 /* Override any GCC internal prototype to avoid an error.
27789    Use char because int might match the return type of a GCC
27790    builtin and then its argument prototype would still apply.  */
27791 #ifdef __cplusplus
27792 extern "C"
27793 #endif
27794 char $ac_func ();
27795 /* The GNU C library defines this for functions which it implements
27796     to always fail with ENOSYS.  Some functions are actually named
27797     something starting with __ and the normal name is an alias.  */
27798 #if defined __stub_$ac_func || defined __stub___$ac_func
27799 choke me
27800 #endif
27801
27802 int
27803 main ()
27804 {
27805 return $ac_func ();
27806   ;
27807   return 0;
27808 }
27809 _ACEOF
27810 rm -f conftest.$ac_objext conftest$ac_exeext
27811 if { (ac_try="$ac_link"
27812 case "(($ac_try" in
27813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27814   *) ac_try_echo=$ac_try;;
27815 esac
27816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27817   (eval "$ac_link") 2>conftest.er1
27818   ac_status=$?
27819   grep -v '^ *+' conftest.er1 >conftest.err
27820   rm -f conftest.er1
27821   cat conftest.err >&5
27822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27823   (exit $ac_status); } && {
27824          test -z "$ac_c_werror_flag" ||
27825          test ! -s conftest.err
27826        } && test -s conftest$ac_exeext &&
27827        $as_test_x conftest$ac_exeext; then
27828   eval "$as_ac_var=yes"
27829 else
27830   echo "$as_me: failed program was:" >&5
27831 sed 's/^/| /' conftest.$ac_ext >&5
27832
27833         eval "$as_ac_var=no"
27834 fi
27835
27836 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27837       conftest$ac_exeext conftest.$ac_ext
27838 fi
27839 ac_res=`eval echo '${'$as_ac_var'}'`
27840                { echo "$as_me:$LINENO: result: $ac_res" >&5
27841 echo "${ECHO_T}$ac_res" >&6; }
27842 if test `eval echo '${'$as_ac_var'}'` = yes; then
27843   cat >>confdefs.h <<_ACEOF
27844 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27845 _ACEOF
27846
27847 fi
27848 done
27849
27850 fi
27851 # dn_expand
27852 eval "ac_tr_func=HAVE_`echo dn_expand | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
27853 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
27854 eval "LIB_dn_expand=$ac_res"
27855
27856 case "$ac_res" in
27857         yes)
27858         eval "ac_cv_func_dn_expand=yes"
27859         eval "LIB_dn_expand="
27860         cat >>confdefs.h <<_ACEOF
27861 #define $ac_tr_func 1
27862 _ACEOF
27863
27864         { echo "$as_me:$LINENO: result: yes" >&5
27865 echo "${ECHO_T}yes" >&6; }
27866         ;;
27867         no)
27868         eval "ac_cv_func_dn_expand=no"
27869         eval "LIB_dn_expand="
27870         { echo "$as_me:$LINENO: result: no" >&5
27871 echo "${ECHO_T}no" >&6; }
27872         ;;
27873         *)
27874         eval "ac_cv_func_dn_expand=yes"
27875         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
27876         cat >>confdefs.h <<_ACEOF
27877 #define $ac_tr_func 1
27878 _ACEOF
27879
27880         cat >>confdefs.h <<_ACEOF
27881 #define $ac_tr_lib 1
27882 _ACEOF
27883
27884         { echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
27885 echo "${ECHO_T}yes, in $ac_res" >&6; }
27886         ;;
27887 esac
27888
27889
27890 if test -n "$LIB_dn_expand"; then
27891         LIBS="$LIB_dn_expand $LIBS"
27892 fi
27893
27894
27895
27896 { echo "$as_me:$LINENO: checking for _res" >&5
27897 echo $ECHO_N "checking for _res... $ECHO_C" >&6; }
27898 if test "${ac_cv_var__res+set}" = set; then
27899   echo $ECHO_N "(cached) $ECHO_C" >&6
27900 else
27901
27902
27903         cat >conftest.$ac_ext <<_ACEOF
27904 /* confdefs.h.  */
27905 _ACEOF
27906 cat confdefs.h >>conftest.$ac_ext
27907 cat >>conftest.$ac_ext <<_ACEOF
27908 /* end confdefs.h.  */
27909 #include <stdio.h>
27910 #ifdef HAVE_SYS_TYPES_H
27911 #include <sys/types.h>
27912 #endif
27913 #ifdef HAVE_NETINET_IN_H
27914 #include <netinet/in.h>
27915 #endif
27916 #ifdef HAVE_ARPA_NAMESER_H
27917 #include <arpa/nameser.h>
27918 #endif
27919 #ifdef HAVE_RESOLV_H
27920 #include <resolv.h>
27921 #endif
27922         void * foo(void) { return &_res; }
27923 int
27924 main ()
27925 {
27926 foo()
27927   ;
27928   return 0;
27929 }
27930 _ACEOF
27931 rm -f conftest.$ac_objext conftest$ac_exeext
27932 if { (ac_try="$ac_link"
27933 case "(($ac_try" in
27934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27935   *) ac_try_echo=$ac_try;;
27936 esac
27937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27938   (eval "$ac_link") 2>conftest.er1
27939   ac_status=$?
27940   grep -v '^ *+' conftest.er1 >conftest.err
27941   rm -f conftest.er1
27942   cat conftest.err >&5
27943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27944   (exit $ac_status); } && {
27945          test -z "$ac_c_werror_flag" ||
27946          test ! -s conftest.err
27947        } && test -s conftest$ac_exeext &&
27948        $as_test_x conftest$ac_exeext; then
27949   ac_cv_var__res=yes
27950 else
27951   echo "$as_me: failed program was:" >&5
27952 sed 's/^/| /' conftest.$ac_ext >&5
27953
27954         ac_cv_var__res=no
27955 fi
27956
27957 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27958       conftest$ac_exeext conftest.$ac_ext
27959 if test "$ac_cv_var__res" != yes ; then
27960 cat >conftest.$ac_ext <<_ACEOF
27961 /* confdefs.h.  */
27962 _ACEOF
27963 cat confdefs.h >>conftest.$ac_ext
27964 cat >>conftest.$ac_ext <<_ACEOF
27965 /* end confdefs.h.  */
27966 extern int _res;
27967 int foo(void) { return _res; }
27968 int
27969 main ()
27970 {
27971 foo()
27972   ;
27973   return 0;
27974 }
27975 _ACEOF
27976 rm -f conftest.$ac_objext conftest$ac_exeext
27977 if { (ac_try="$ac_link"
27978 case "(($ac_try" in
27979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27980   *) ac_try_echo=$ac_try;;
27981 esac
27982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27983   (eval "$ac_link") 2>conftest.er1
27984   ac_status=$?
27985   grep -v '^ *+' conftest.er1 >conftest.err
27986   rm -f conftest.er1
27987   cat conftest.err >&5
27988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27989   (exit $ac_status); } && {
27990          test -z "$ac_c_werror_flag" ||
27991          test ! -s conftest.err
27992        } && test -s conftest$ac_exeext &&
27993        $as_test_x conftest$ac_exeext; then
27994   ac_cv_var__res=yes
27995 else
27996   echo "$as_me: failed program was:" >&5
27997 sed 's/^/| /' conftest.$ac_ext >&5
27998
27999         ac_cv_var__res=no
28000 fi
28001
28002 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28003       conftest$ac_exeext conftest.$ac_ext
28004 fi
28005
28006 fi
28007
28008 ac_foo=`eval echo \\$ac_cv_var__res`
28009 { echo "$as_me:$LINENO: result: $ac_foo" >&5
28010 echo "${ECHO_T}$ac_foo" >&6; }
28011 if test "$ac_foo" = yes; then
28012
28013 cat >>confdefs.h <<_ACEOF
28014 #define HAVE__RES 1
28015 _ACEOF
28016
28017         { echo "$as_me:$LINENO: checking whether _res is declared" >&5
28018 echo $ECHO_N "checking whether _res is declared... $ECHO_C" >&6; }
28019 if test "${ac_cv_have_decl__res+set}" = set; then
28020   echo $ECHO_N "(cached) $ECHO_C" >&6
28021 else
28022   cat >conftest.$ac_ext <<_ACEOF
28023 /* confdefs.h.  */
28024 _ACEOF
28025 cat confdefs.h >>conftest.$ac_ext
28026 cat >>conftest.$ac_ext <<_ACEOF
28027 /* end confdefs.h.  */
28028 #include <stdio.h>
28029 #ifdef HAVE_SYS_TYPES_H
28030 #include <sys/types.h>
28031 #endif
28032 #ifdef HAVE_NETINET_IN_H
28033 #include <netinet/in.h>
28034 #endif
28035 #ifdef HAVE_ARPA_NAMESER_H
28036 #include <arpa/nameser.h>
28037 #endif
28038 #ifdef HAVE_RESOLV_H
28039 #include <resolv.h>
28040 #endif
28041
28042 int
28043 main ()
28044 {
28045 #ifndef _res
28046   (void) _res;
28047 #endif
28048
28049   ;
28050   return 0;
28051 }
28052 _ACEOF
28053 rm -f conftest.$ac_objext
28054 if { (ac_try="$ac_compile"
28055 case "(($ac_try" in
28056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28057   *) ac_try_echo=$ac_try;;
28058 esac
28059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28060   (eval "$ac_compile") 2>conftest.er1
28061   ac_status=$?
28062   grep -v '^ *+' conftest.er1 >conftest.err
28063   rm -f conftest.er1
28064   cat conftest.err >&5
28065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28066   (exit $ac_status); } && {
28067          test -z "$ac_c_werror_flag" ||
28068          test ! -s conftest.err
28069        } && test -s conftest.$ac_objext; then
28070   ac_cv_have_decl__res=yes
28071 else
28072   echo "$as_me: failed program was:" >&5
28073 sed 's/^/| /' conftest.$ac_ext >&5
28074
28075         ac_cv_have_decl__res=no
28076 fi
28077
28078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28079 fi
28080 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__res" >&5
28081 echo "${ECHO_T}$ac_cv_have_decl__res" >&6; }
28082 if test $ac_cv_have_decl__res = yes; then
28083
28084 cat >>confdefs.h <<_ACEOF
28085 #define HAVE_DECL__RES 1
28086 _ACEOF
28087
28088
28089 else
28090   cat >>confdefs.h <<_ACEOF
28091 #define HAVE_DECL__RES 0
28092 _ACEOF
28093
28094
28095 fi
28096
28097
28098 fi
28099
28100
28101
28102
28103
28104 { echo "$as_me:$LINENO: checking for working snprintf" >&5
28105 echo $ECHO_N "checking for working snprintf... $ECHO_C" >&6; }
28106 if test "${ac_cv_func_snprintf_working+set}" = set; then
28107   echo $ECHO_N "(cached) $ECHO_C" >&6
28108 else
28109   ac_cv_func_snprintf_working=yes
28110 if test "$cross_compiling" = yes; then
28111   :
28112 else
28113   cat >conftest.$ac_ext <<_ACEOF
28114 /* confdefs.h.  */
28115 _ACEOF
28116 cat confdefs.h >>conftest.$ac_ext
28117 cat >>conftest.$ac_ext <<_ACEOF
28118 /* end confdefs.h.  */
28119
28120 #include <stdio.h>
28121 #include <string.h>
28122 int main(int argc, char **argv)
28123 {
28124         char foo[3];
28125         snprintf(foo, 2, "12");
28126         return strcmp(foo, "1") || snprintf(NULL, 0, "%d", 12) != 2;
28127 }
28128 _ACEOF
28129 rm -f conftest$ac_exeext
28130 if { (ac_try="$ac_link"
28131 case "(($ac_try" in
28132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28133   *) ac_try_echo=$ac_try;;
28134 esac
28135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28136   (eval "$ac_link") 2>&5
28137   ac_status=$?
28138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28139   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28140   { (case "(($ac_try" in
28141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28142   *) ac_try_echo=$ac_try;;
28143 esac
28144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28145   (eval "$ac_try") 2>&5
28146   ac_status=$?
28147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28148   (exit $ac_status); }; }; then
28149   :
28150 else
28151   echo "$as_me: program exited with status $ac_status" >&5
28152 echo "$as_me: failed program was:" >&5
28153 sed 's/^/| /' conftest.$ac_ext >&5
28154
28155 ( exit $ac_status )
28156 ac_cv_func_snprintf_working=no
28157 fi
28158 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28159 fi
28160
28161
28162 fi
28163 { echo "$as_me:$LINENO: result: $ac_cv_func_snprintf_working" >&5
28164 echo "${ECHO_T}$ac_cv_func_snprintf_working" >&6; }
28165
28166 if test "$ac_cv_func_snprintf_working" = yes; then
28167
28168 cat >>confdefs.h <<_ACEOF
28169 #define HAVE_SNPRINTF 1
28170 _ACEOF
28171
28172 fi
28173 if test "$ac_cv_func_snprintf_working" = yes; then
28174
28175 if test "$ac_cv_func_snprintf+set" != set -o "$ac_cv_func_snprintf" = yes; then
28176 { echo "$as_me:$LINENO: checking if snprintf needs a prototype" >&5
28177 echo $ECHO_N "checking if snprintf needs a prototype... $ECHO_C" >&6; }
28178 if test "${ac_cv_func_snprintf_noproto+set}" = set; then
28179   echo $ECHO_N "(cached) $ECHO_C" >&6
28180 else
28181   cat >conftest.$ac_ext <<_ACEOF
28182 /* confdefs.h.  */
28183 _ACEOF
28184 cat confdefs.h >>conftest.$ac_ext
28185 cat >>conftest.$ac_ext <<_ACEOF
28186 /* end confdefs.h.  */
28187 #include <stdio.h>
28188 struct foo { int foo; } xx;
28189 extern int snprintf (struct foo*);
28190 int
28191 main ()
28192 {
28193 snprintf(&xx)
28194   ;
28195   return 0;
28196 }
28197 _ACEOF
28198 rm -f conftest.$ac_objext
28199 if { (ac_try="$ac_compile"
28200 case "(($ac_try" in
28201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28202   *) ac_try_echo=$ac_try;;
28203 esac
28204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28205   (eval "$ac_compile") 2>conftest.er1
28206   ac_status=$?
28207   grep -v '^ *+' conftest.er1 >conftest.err
28208   rm -f conftest.er1
28209   cat conftest.err >&5
28210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28211   (exit $ac_status); } && {
28212          test -z "$ac_c_werror_flag" ||
28213          test ! -s conftest.err
28214        } && test -s conftest.$ac_objext; then
28215   eval "ac_cv_func_snprintf_noproto=yes"
28216 else
28217   echo "$as_me: failed program was:" >&5
28218 sed 's/^/| /' conftest.$ac_ext >&5
28219
28220         eval "ac_cv_func_snprintf_noproto=no"
28221 fi
28222
28223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28224 fi
28225 { echo "$as_me:$LINENO: result: $ac_cv_func_snprintf_noproto" >&5
28226 echo "${ECHO_T}$ac_cv_func_snprintf_noproto" >&6; }
28227 if test "$ac_cv_func_snprintf_noproto" = yes; then
28228
28229 cat >>confdefs.h <<\_ACEOF
28230 #define NEED_SNPRINTF_PROTO 1
28231 _ACEOF
28232
28233 fi
28234 fi
28235
28236 fi
28237
28238
28239 { echo "$as_me:$LINENO: checking for working vsnprintf" >&5
28240 echo $ECHO_N "checking for working vsnprintf... $ECHO_C" >&6; }
28241 if test "${ac_cv_func_vsnprintf_working+set}" = set; then
28242   echo $ECHO_N "(cached) $ECHO_C" >&6
28243 else
28244   ac_cv_func_vsnprintf_working=yes
28245 if test "$cross_compiling" = yes; then
28246   :
28247 else
28248   cat >conftest.$ac_ext <<_ACEOF
28249 /* confdefs.h.  */
28250 _ACEOF
28251 cat confdefs.h >>conftest.$ac_ext
28252 cat >>conftest.$ac_ext <<_ACEOF
28253 /* end confdefs.h.  */
28254
28255 #include <stdio.h>
28256 #include <string.h>
28257 #include <stdarg.h>
28258
28259 int foo(int num, ...)
28260 {
28261         char bar[3];
28262         va_list arg;
28263         va_start(arg, num);
28264         vsnprintf(bar, 2, "%s", arg);
28265         va_end(arg);
28266         return strcmp(bar, "1");
28267 }
28268
28269 int bar(int num, int len, ...)
28270 {
28271         int r;
28272         va_list arg;
28273         va_start(arg, len);
28274         r = vsnprintf(NULL, 0, "%s", arg);
28275         va_end(arg);
28276         return r != len;
28277 }
28278
28279 int main(int argc, char **argv)
28280 {
28281         return foo(0, "12") || bar(0, 2, "12");
28282 }
28283 _ACEOF
28284 rm -f conftest$ac_exeext
28285 if { (ac_try="$ac_link"
28286 case "(($ac_try" in
28287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28288   *) ac_try_echo=$ac_try;;
28289 esac
28290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28291   (eval "$ac_link") 2>&5
28292   ac_status=$?
28293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28294   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28295   { (case "(($ac_try" in
28296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28297   *) ac_try_echo=$ac_try;;
28298 esac
28299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28300   (eval "$ac_try") 2>&5
28301   ac_status=$?
28302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28303   (exit $ac_status); }; }; then
28304   :
28305 else
28306   echo "$as_me: program exited with status $ac_status" >&5
28307 echo "$as_me: failed program was:" >&5
28308 sed 's/^/| /' conftest.$ac_ext >&5
28309
28310 ( exit $ac_status )
28311 ac_cv_func_vsnprintf_working=no
28312 fi
28313 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28314 fi
28315
28316
28317 fi
28318 { echo "$as_me:$LINENO: result: $ac_cv_func_vsnprintf_working" >&5
28319 echo "${ECHO_T}$ac_cv_func_vsnprintf_working" >&6; }
28320
28321 if test "$ac_cv_func_vsnprintf_working" = yes; then
28322
28323 cat >>confdefs.h <<_ACEOF
28324 #define HAVE_VSNPRINTF 1
28325 _ACEOF
28326
28327 fi
28328 if test "$ac_cv_func_vsnprintf_working" = yes; then
28329
28330 if test "$ac_cv_func_vsnprintf+set" != set -o "$ac_cv_func_vsnprintf" = yes; then
28331 { echo "$as_me:$LINENO: checking if vsnprintf needs a prototype" >&5
28332 echo $ECHO_N "checking if vsnprintf needs a prototype... $ECHO_C" >&6; }
28333 if test "${ac_cv_func_vsnprintf_noproto+set}" = set; then
28334   echo $ECHO_N "(cached) $ECHO_C" >&6
28335 else
28336   cat >conftest.$ac_ext <<_ACEOF
28337 /* confdefs.h.  */
28338 _ACEOF
28339 cat confdefs.h >>conftest.$ac_ext
28340 cat >>conftest.$ac_ext <<_ACEOF
28341 /* end confdefs.h.  */
28342 #include <stdio.h>
28343 struct foo { int foo; } xx;
28344 extern int vsnprintf (struct foo*);
28345 int
28346 main ()
28347 {
28348 vsnprintf(&xx)
28349   ;
28350   return 0;
28351 }
28352 _ACEOF
28353 rm -f conftest.$ac_objext
28354 if { (ac_try="$ac_compile"
28355 case "(($ac_try" in
28356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28357   *) ac_try_echo=$ac_try;;
28358 esac
28359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28360   (eval "$ac_compile") 2>conftest.er1
28361   ac_status=$?
28362   grep -v '^ *+' conftest.er1 >conftest.err
28363   rm -f conftest.er1
28364   cat conftest.err >&5
28365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28366   (exit $ac_status); } && {
28367          test -z "$ac_c_werror_flag" ||
28368          test ! -s conftest.err
28369        } && test -s conftest.$ac_objext; then
28370   eval "ac_cv_func_vsnprintf_noproto=yes"
28371 else
28372   echo "$as_me: failed program was:" >&5
28373 sed 's/^/| /' conftest.$ac_ext >&5
28374
28375         eval "ac_cv_func_vsnprintf_noproto=no"
28376 fi
28377
28378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28379 fi
28380 { echo "$as_me:$LINENO: result: $ac_cv_func_vsnprintf_noproto" >&5
28381 echo "${ECHO_T}$ac_cv_func_vsnprintf_noproto" >&6; }
28382 if test "$ac_cv_func_vsnprintf_noproto" = yes; then
28383
28384 cat >>confdefs.h <<\_ACEOF
28385 #define NEED_VSNPRINTF_PROTO 1
28386 _ACEOF
28387
28388 fi
28389 fi
28390
28391 fi
28392
28393
28394
28395 { echo "$as_me:$LINENO: checking for working glob" >&5
28396 echo $ECHO_N "checking for working glob... $ECHO_C" >&6; }
28397 if test "${ac_cv_func_glob_working+set}" = set; then
28398   echo $ECHO_N "(cached) $ECHO_C" >&6
28399 else
28400   ac_cv_func_glob_working=yes
28401 cat >conftest.$ac_ext <<_ACEOF
28402 /* confdefs.h.  */
28403 _ACEOF
28404 cat confdefs.h >>conftest.$ac_ext
28405 cat >>conftest.$ac_ext <<_ACEOF
28406 /* end confdefs.h.  */
28407
28408 #include <stdio.h>
28409 #include <glob.h>
28410 int
28411 main ()
28412 {
28413
28414 glob(NULL, GLOB_BRACE|GLOB_NOCHECK|GLOB_QUOTE|GLOB_TILDE|
28415 #ifdef GLOB_MAXPATH
28416 GLOB_MAXPATH
28417 #else
28418 GLOB_LIMIT
28419 #endif
28420 ,
28421 NULL, NULL);
28422
28423   ;
28424   return 0;
28425 }
28426 _ACEOF
28427 rm -f conftest.$ac_objext conftest$ac_exeext
28428 if { (ac_try="$ac_link"
28429 case "(($ac_try" in
28430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28431   *) ac_try_echo=$ac_try;;
28432 esac
28433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28434   (eval "$ac_link") 2>conftest.er1
28435   ac_status=$?
28436   grep -v '^ *+' conftest.er1 >conftest.err
28437   rm -f conftest.er1
28438   cat conftest.err >&5
28439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28440   (exit $ac_status); } && {
28441          test -z "$ac_c_werror_flag" ||
28442          test ! -s conftest.err
28443        } && test -s conftest$ac_exeext &&
28444        $as_test_x conftest$ac_exeext; then
28445   :
28446 else
28447   echo "$as_me: failed program was:" >&5
28448 sed 's/^/| /' conftest.$ac_ext >&5
28449
28450         ac_cv_func_glob_working=no
28451 fi
28452
28453 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28454       conftest$ac_exeext conftest.$ac_ext
28455 fi
28456 { echo "$as_me:$LINENO: result: $ac_cv_func_glob_working" >&5
28457 echo "${ECHO_T}$ac_cv_func_glob_working" >&6; }
28458
28459 if test "$ac_cv_func_glob_working" = yes; then
28460
28461 cat >>confdefs.h <<\_ACEOF
28462 #define HAVE_GLOB 1
28463 _ACEOF
28464
28465 fi
28466 if test "$ac_cv_func_glob_working" = yes; then
28467
28468 if test "$ac_cv_func_glob+set" != set -o "$ac_cv_func_glob" = yes; then
28469 { echo "$as_me:$LINENO: checking if glob needs a prototype" >&5
28470 echo $ECHO_N "checking if glob needs a prototype... $ECHO_C" >&6; }
28471 if test "${ac_cv_func_glob_noproto+set}" = set; then
28472   echo $ECHO_N "(cached) $ECHO_C" >&6
28473 else
28474   cat >conftest.$ac_ext <<_ACEOF
28475 /* confdefs.h.  */
28476 _ACEOF
28477 cat confdefs.h >>conftest.$ac_ext
28478 cat >>conftest.$ac_ext <<_ACEOF
28479 /* end confdefs.h.  */
28480 #include <stdio.h>
28481 #include <glob.h>
28482 struct foo { int foo; } xx;
28483 extern int glob (struct foo*);
28484 int
28485 main ()
28486 {
28487 glob(&xx)
28488   ;
28489   return 0;
28490 }
28491 _ACEOF
28492 rm -f conftest.$ac_objext
28493 if { (ac_try="$ac_compile"
28494 case "(($ac_try" in
28495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28496   *) ac_try_echo=$ac_try;;
28497 esac
28498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28499   (eval "$ac_compile") 2>conftest.er1
28500   ac_status=$?
28501   grep -v '^ *+' conftest.er1 >conftest.err
28502   rm -f conftest.er1
28503   cat conftest.err >&5
28504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28505   (exit $ac_status); } && {
28506          test -z "$ac_c_werror_flag" ||
28507          test ! -s conftest.err
28508        } && test -s conftest.$ac_objext; then
28509   eval "ac_cv_func_glob_noproto=yes"
28510 else
28511   echo "$as_me: failed program was:" >&5
28512 sed 's/^/| /' conftest.$ac_ext >&5
28513
28514         eval "ac_cv_func_glob_noproto=no"
28515 fi
28516
28517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28518 fi
28519 { echo "$as_me:$LINENO: result: $ac_cv_func_glob_noproto" >&5
28520 echo "${ECHO_T}$ac_cv_func_glob_noproto" >&6; }
28521 if test "$ac_cv_func_glob_noproto" = yes; then
28522
28523 cat >>confdefs.h <<\_ACEOF
28524 #define NEED_GLOB_PROTO 1
28525 _ACEOF
28526
28527 fi
28528 fi
28529
28530 fi
28531
28532 if test "$ac_cv_func_glob_working" != yes; then
28533         case " $LIBOBJS " in
28534   *" glob.$ac_objext "* ) ;;
28535   *) LIBOBJS="$LIBOBJS glob.$ac_objext"
28536  ;;
28537 esac
28538
28539 fi
28540  if test "$ac_cv_func_glob_working" = yes; then
28541   have_glob_h_TRUE=
28542   have_glob_h_FALSE='#'
28543 else
28544   have_glob_h_TRUE='#'
28545   have_glob_h_FALSE=
28546 fi
28547
28548
28549
28550
28551
28552
28553
28554
28555
28556
28557
28558
28559
28560
28561
28562
28563
28564
28565
28566
28567
28568
28569
28570
28571
28572
28573
28574
28575
28576
28577 for ac_func in                          \
28578         asnprintf                               \
28579         asprintf                                \
28580         atexit                                  \
28581         cgetent                                 \
28582         getconfattr                             \
28583         getprogname                             \
28584         getrlimit                               \
28585         getspnam                                \
28586         initstate                               \
28587         issetugid                               \
28588         on_exit                                 \
28589         poll                                    \
28590         random                                  \
28591         setprogname                             \
28592         setstate                                \
28593         strsvis                                 \
28594         strunvis                                \
28595         strvis                                  \
28596         strvisx                                 \
28597         svis                                    \
28598         sysconf                                 \
28599         sysctl                                  \
28600         uname                                   \
28601         unvis                                   \
28602         vasnprintf                              \
28603         vasprintf                               \
28604         vis                                     \
28605
28606 do
28607 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28608 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28609 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28610 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28611   echo $ECHO_N "(cached) $ECHO_C" >&6
28612 else
28613   cat >conftest.$ac_ext <<_ACEOF
28614 /* confdefs.h.  */
28615 _ACEOF
28616 cat confdefs.h >>conftest.$ac_ext
28617 cat >>conftest.$ac_ext <<_ACEOF
28618 /* end confdefs.h.  */
28619 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28620    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28621 #define $ac_func innocuous_$ac_func
28622
28623 /* System header to define __stub macros and hopefully few prototypes,
28624     which can conflict with char $ac_func (); below.
28625     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28626     <limits.h> exists even on freestanding compilers.  */
28627
28628 #ifdef __STDC__
28629 # include <limits.h>
28630 #else
28631 # include <assert.h>
28632 #endif
28633
28634 #undef $ac_func
28635
28636 /* Override any GCC internal prototype to avoid an error.
28637    Use char because int might match the return type of a GCC
28638    builtin and then its argument prototype would still apply.  */
28639 #ifdef __cplusplus
28640 extern "C"
28641 #endif
28642 char $ac_func ();
28643 /* The GNU C library defines this for functions which it implements
28644     to always fail with ENOSYS.  Some functions are actually named
28645     something starting with __ and the normal name is an alias.  */
28646 #if defined __stub_$ac_func || defined __stub___$ac_func
28647 choke me
28648 #endif
28649
28650 int
28651 main ()
28652 {
28653 return $ac_func ();
28654   ;
28655   return 0;
28656 }
28657 _ACEOF
28658 rm -f conftest.$ac_objext conftest$ac_exeext
28659 if { (ac_try="$ac_link"
28660 case "(($ac_try" in
28661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28662   *) ac_try_echo=$ac_try;;
28663 esac
28664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28665   (eval "$ac_link") 2>conftest.er1
28666   ac_status=$?
28667   grep -v '^ *+' conftest.er1 >conftest.err
28668   rm -f conftest.er1
28669   cat conftest.err >&5
28670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28671   (exit $ac_status); } && {
28672          test -z "$ac_c_werror_flag" ||
28673          test ! -s conftest.err
28674        } && test -s conftest$ac_exeext &&
28675        $as_test_x conftest$ac_exeext; then
28676   eval "$as_ac_var=yes"
28677 else
28678   echo "$as_me: failed program was:" >&5
28679 sed 's/^/| /' conftest.$ac_ext >&5
28680
28681         eval "$as_ac_var=no"
28682 fi
28683
28684 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28685       conftest$ac_exeext conftest.$ac_ext
28686 fi
28687 ac_res=`eval echo '${'$as_ac_var'}'`
28688                { echo "$as_me:$LINENO: result: $ac_res" >&5
28689 echo "${ECHO_T}$ac_res" >&6; }
28690 if test `eval echo '${'$as_ac_var'}'` = yes; then
28691   cat >>confdefs.h <<_ACEOF
28692 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28693 _ACEOF
28694
28695 fi
28696 done
28697
28698
28699 if test "$ac_cv_func_cgetent" = no; then
28700         case " $LIBOBJS " in
28701   *" getcap.$ac_objext "* ) ;;
28702   *) LIBOBJS="$LIBOBJS getcap.$ac_objext"
28703  ;;
28704 esac
28705
28706 fi
28707  if test "$ac_cv_func_cgetent" = yes; then
28708   have_cgetent_TRUE=
28709   have_cgetent_FALSE='#'
28710 else
28711   have_cgetent_TRUE='#'
28712   have_cgetent_FALSE=
28713 fi
28714
28715
28716
28717
28718
28719
28720
28721
28722
28723 { echo "$as_me:$LINENO: checking for getsockopt" >&5
28724 echo $ECHO_N "checking for getsockopt... $ECHO_C" >&6; }
28725 if test "${ac_cv_funclib_getsockopt+set}" = set; then
28726   echo $ECHO_N "(cached) $ECHO_C" >&6
28727 else
28728
28729 if eval "test \"\$ac_cv_func_getsockopt\" != yes" ; then
28730         ac_save_LIBS="$LIBS"
28731         for ac_lib in "" ; do
28732                 case "$ac_lib" in
28733                 "") ;;
28734                 yes) ac_lib="" ;;
28735                 no) continue ;;
28736                 -l*) ;;
28737                 *) ac_lib="-l$ac_lib" ;;
28738                 esac
28739                 LIBS=" $ac_lib  $ac_save_LIBS"
28740                 cat >conftest.$ac_ext <<_ACEOF
28741 /* confdefs.h.  */
28742 _ACEOF
28743 cat confdefs.h >>conftest.$ac_ext
28744 cat >>conftest.$ac_ext <<_ACEOF
28745 /* end confdefs.h.  */
28746 #ifdef HAVE_SYS_TYPES_H
28747 #include <sys/types.h>
28748 #endif
28749 #ifdef HAVE_SYS_SOCKET_H
28750 #include <sys/socket.h>
28751 #endif
28752 int
28753 main ()
28754 {
28755 getsockopt(0,0,0,0,0)
28756   ;
28757   return 0;
28758 }
28759 _ACEOF
28760 rm -f conftest.$ac_objext conftest$ac_exeext
28761 if { (ac_try="$ac_link"
28762 case "(($ac_try" in
28763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28764   *) ac_try_echo=$ac_try;;
28765 esac
28766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28767   (eval "$ac_link") 2>conftest.er1
28768   ac_status=$?
28769   grep -v '^ *+' conftest.er1 >conftest.err
28770   rm -f conftest.er1
28771   cat conftest.err >&5
28772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28773   (exit $ac_status); } && {
28774          test -z "$ac_c_werror_flag" ||
28775          test ! -s conftest.err
28776        } && test -s conftest$ac_exeext &&
28777        $as_test_x conftest$ac_exeext; then
28778   eval "if test -n \"$ac_lib\";then ac_cv_funclib_getsockopt=$ac_lib; else ac_cv_funclib_getsockopt=yes; fi";break
28779 else
28780   echo "$as_me: failed program was:" >&5
28781 sed 's/^/| /' conftest.$ac_ext >&5
28782
28783
28784 fi
28785
28786 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28787       conftest$ac_exeext conftest.$ac_ext
28788         done
28789         eval "ac_cv_funclib_getsockopt=\${ac_cv_funclib_getsockopt-no}"
28790         LIBS="$ac_save_LIBS"
28791 fi
28792
28793 fi
28794
28795
28796 eval "ac_res=\$ac_cv_funclib_getsockopt"
28797
28798 if false; then
28799
28800 for ac_func in getsockopt
28801 do
28802 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28803 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28804 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28805 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28806   echo $ECHO_N "(cached) $ECHO_C" >&6
28807 else
28808   cat >conftest.$ac_ext <<_ACEOF
28809 /* confdefs.h.  */
28810 _ACEOF
28811 cat confdefs.h >>conftest.$ac_ext
28812 cat >>conftest.$ac_ext <<_ACEOF
28813 /* end confdefs.h.  */
28814 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28815    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28816 #define $ac_func innocuous_$ac_func
28817
28818 /* System header to define __stub macros and hopefully few prototypes,
28819     which can conflict with char $ac_func (); below.
28820     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28821     <limits.h> exists even on freestanding compilers.  */
28822
28823 #ifdef __STDC__
28824 # include <limits.h>
28825 #else
28826 # include <assert.h>
28827 #endif
28828
28829 #undef $ac_func
28830
28831 /* Override any GCC internal prototype to avoid an error.
28832    Use char because int might match the return type of a GCC
28833    builtin and then its argument prototype would still apply.  */
28834 #ifdef __cplusplus
28835 extern "C"
28836 #endif
28837 char $ac_func ();
28838 /* The GNU C library defines this for functions which it implements
28839     to always fail with ENOSYS.  Some functions are actually named
28840     something starting with __ and the normal name is an alias.  */
28841 #if defined __stub_$ac_func || defined __stub___$ac_func
28842 choke me
28843 #endif
28844
28845 int
28846 main ()
28847 {
28848 return $ac_func ();
28849   ;
28850   return 0;
28851 }
28852 _ACEOF
28853 rm -f conftest.$ac_objext conftest$ac_exeext
28854 if { (ac_try="$ac_link"
28855 case "(($ac_try" in
28856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28857   *) ac_try_echo=$ac_try;;
28858 esac
28859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28860   (eval "$ac_link") 2>conftest.er1
28861   ac_status=$?
28862   grep -v '^ *+' conftest.er1 >conftest.err
28863   rm -f conftest.er1
28864   cat conftest.err >&5
28865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28866   (exit $ac_status); } && {
28867          test -z "$ac_c_werror_flag" ||
28868          test ! -s conftest.err
28869        } && test -s conftest$ac_exeext &&
28870        $as_test_x conftest$ac_exeext; then
28871   eval "$as_ac_var=yes"
28872 else
28873   echo "$as_me: failed program was:" >&5
28874 sed 's/^/| /' conftest.$ac_ext >&5
28875
28876         eval "$as_ac_var=no"
28877 fi
28878
28879 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28880       conftest$ac_exeext conftest.$ac_ext
28881 fi
28882 ac_res=`eval echo '${'$as_ac_var'}'`
28883                { echo "$as_me:$LINENO: result: $ac_res" >&5
28884 echo "${ECHO_T}$ac_res" >&6; }
28885 if test `eval echo '${'$as_ac_var'}'` = yes; then
28886   cat >>confdefs.h <<_ACEOF
28887 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28888 _ACEOF
28889
28890 fi
28891 done
28892
28893 fi
28894 # getsockopt
28895 eval "ac_tr_func=HAVE_`echo getsockopt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
28896 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
28897 eval "LIB_getsockopt=$ac_res"
28898
28899 case "$ac_res" in
28900         yes)
28901         eval "ac_cv_func_getsockopt=yes"
28902         eval "LIB_getsockopt="
28903         cat >>confdefs.h <<_ACEOF
28904 #define $ac_tr_func 1
28905 _ACEOF
28906
28907         { echo "$as_me:$LINENO: result: yes" >&5
28908 echo "${ECHO_T}yes" >&6; }
28909         ;;
28910         no)
28911         eval "ac_cv_func_getsockopt=no"
28912         eval "LIB_getsockopt="
28913         { echo "$as_me:$LINENO: result: no" >&5
28914 echo "${ECHO_T}no" >&6; }
28915         ;;
28916         *)
28917         eval "ac_cv_func_getsockopt=yes"
28918         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
28919         cat >>confdefs.h <<_ACEOF
28920 #define $ac_tr_func 1
28921 _ACEOF
28922
28923         cat >>confdefs.h <<_ACEOF
28924 #define $ac_tr_lib 1
28925 _ACEOF
28926
28927         { echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
28928 echo "${ECHO_T}yes, in $ac_res" >&6; }
28929         ;;
28930 esac
28931
28932
28933
28934
28935
28936 { echo "$as_me:$LINENO: checking for setsockopt" >&5
28937 echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6; }
28938 if test "${ac_cv_funclib_setsockopt+set}" = set; then
28939   echo $ECHO_N "(cached) $ECHO_C" >&6
28940 else
28941
28942 if eval "test \"\$ac_cv_func_setsockopt\" != yes" ; then
28943         ac_save_LIBS="$LIBS"
28944         for ac_lib in "" ; do
28945                 case "$ac_lib" in
28946                 "") ;;
28947                 yes) ac_lib="" ;;
28948                 no) continue ;;
28949                 -l*) ;;
28950                 *) ac_lib="-l$ac_lib" ;;
28951                 esac
28952                 LIBS=" $ac_lib  $ac_save_LIBS"
28953                 cat >conftest.$ac_ext <<_ACEOF
28954 /* confdefs.h.  */
28955 _ACEOF
28956 cat confdefs.h >>conftest.$ac_ext
28957 cat >>conftest.$ac_ext <<_ACEOF
28958 /* end confdefs.h.  */
28959 #ifdef HAVE_SYS_TYPES_H
28960 #include <sys/types.h>
28961 #endif
28962 #ifdef HAVE_SYS_SOCKET_H
28963 #include <sys/socket.h>
28964 #endif
28965 int
28966 main ()
28967 {
28968 setsockopt(0,0,0,0,0)
28969   ;
28970   return 0;
28971 }
28972 _ACEOF
28973 rm -f conftest.$ac_objext conftest$ac_exeext
28974 if { (ac_try="$ac_link"
28975 case "(($ac_try" in
28976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28977   *) ac_try_echo=$ac_try;;
28978 esac
28979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28980   (eval "$ac_link") 2>conftest.er1
28981   ac_status=$?
28982   grep -v '^ *+' conftest.er1 >conftest.err
28983   rm -f conftest.er1
28984   cat conftest.err >&5
28985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28986   (exit $ac_status); } && {
28987          test -z "$ac_c_werror_flag" ||
28988          test ! -s conftest.err
28989        } && test -s conftest$ac_exeext &&
28990        $as_test_x conftest$ac_exeext; then
28991   eval "if test -n \"$ac_lib\";then ac_cv_funclib_setsockopt=$ac_lib; else ac_cv_funclib_setsockopt=yes; fi";break
28992 else
28993   echo "$as_me: failed program was:" >&5
28994 sed 's/^/| /' conftest.$ac_ext >&5
28995
28996
28997 fi
28998
28999 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29000       conftest$ac_exeext conftest.$ac_ext
29001         done
29002         eval "ac_cv_funclib_setsockopt=\${ac_cv_funclib_setsockopt-no}"
29003         LIBS="$ac_save_LIBS"
29004 fi
29005
29006 fi
29007
29008
29009 eval "ac_res=\$ac_cv_funclib_setsockopt"
29010
29011 if false; then
29012
29013 for ac_func in setsockopt
29014 do
29015 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29016 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29017 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29018 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29019   echo $ECHO_N "(cached) $ECHO_C" >&6
29020 else
29021   cat >conftest.$ac_ext <<_ACEOF
29022 /* confdefs.h.  */
29023 _ACEOF
29024 cat confdefs.h >>conftest.$ac_ext
29025 cat >>conftest.$ac_ext <<_ACEOF
29026 /* end confdefs.h.  */
29027 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29028    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29029 #define $ac_func innocuous_$ac_func
29030
29031 /* System header to define __stub macros and hopefully few prototypes,
29032     which can conflict with char $ac_func (); below.
29033     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29034     <limits.h> exists even on freestanding compilers.  */
29035
29036 #ifdef __STDC__
29037 # include <limits.h>
29038 #else
29039 # include <assert.h>
29040 #endif
29041
29042 #undef $ac_func
29043
29044 /* Override any GCC internal prototype to avoid an error.
29045    Use char because int might match the return type of a GCC
29046    builtin and then its argument prototype would still apply.  */
29047 #ifdef __cplusplus
29048 extern "C"
29049 #endif
29050 char $ac_func ();
29051 /* The GNU C library defines this for functions which it implements
29052     to always fail with ENOSYS.  Some functions are actually named
29053     something starting with __ and the normal name is an alias.  */
29054 #if defined __stub_$ac_func || defined __stub___$ac_func
29055 choke me
29056 #endif
29057
29058 int
29059 main ()
29060 {
29061 return $ac_func ();
29062   ;
29063   return 0;
29064 }
29065 _ACEOF
29066 rm -f conftest.$ac_objext conftest$ac_exeext
29067 if { (ac_try="$ac_link"
29068 case "(($ac_try" in
29069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29070   *) ac_try_echo=$ac_try;;
29071 esac
29072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29073   (eval "$ac_link") 2>conftest.er1
29074   ac_status=$?
29075   grep -v '^ *+' conftest.er1 >conftest.err
29076   rm -f conftest.er1
29077   cat conftest.err >&5
29078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29079   (exit $ac_status); } && {
29080          test -z "$ac_c_werror_flag" ||
29081          test ! -s conftest.err
29082        } && test -s conftest$ac_exeext &&
29083        $as_test_x conftest$ac_exeext; then
29084   eval "$as_ac_var=yes"
29085 else
29086   echo "$as_me: failed program was:" >&5
29087 sed 's/^/| /' conftest.$ac_ext >&5
29088
29089         eval "$as_ac_var=no"
29090 fi
29091
29092 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29093       conftest$ac_exeext conftest.$ac_ext
29094 fi
29095 ac_res=`eval echo '${'$as_ac_var'}'`
29096                { echo "$as_me:$LINENO: result: $ac_res" >&5
29097 echo "${ECHO_T}$ac_res" >&6; }
29098 if test `eval echo '${'$as_ac_var'}'` = yes; then
29099   cat >>confdefs.h <<_ACEOF
29100 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29101 _ACEOF
29102
29103 fi
29104 done
29105
29106 fi
29107 # setsockopt
29108 eval "ac_tr_func=HAVE_`echo setsockopt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
29109 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
29110 eval "LIB_setsockopt=$ac_res"
29111
29112 case "$ac_res" in
29113         yes)
29114         eval "ac_cv_func_setsockopt=yes"
29115         eval "LIB_setsockopt="
29116         cat >>confdefs.h <<_ACEOF
29117 #define $ac_tr_func 1
29118 _ACEOF
29119
29120         { echo "$as_me:$LINENO: result: yes" >&5
29121 echo "${ECHO_T}yes" >&6; }
29122         ;;
29123         no)
29124         eval "ac_cv_func_setsockopt=no"
29125         eval "LIB_setsockopt="
29126         { echo "$as_me:$LINENO: result: no" >&5
29127 echo "${ECHO_T}no" >&6; }
29128         ;;
29129         *)
29130         eval "ac_cv_func_setsockopt=yes"
29131         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
29132         cat >>confdefs.h <<_ACEOF
29133 #define $ac_tr_func 1
29134 _ACEOF
29135
29136         cat >>confdefs.h <<_ACEOF
29137 #define $ac_tr_lib 1
29138 _ACEOF
29139
29140         { echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
29141 echo "${ECHO_T}yes, in $ac_res" >&6; }
29142         ;;
29143 esac
29144
29145
29146
29147
29148
29149
29150
29151 { echo "$as_me:$LINENO: checking for hstrerror" >&5
29152 echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6; }
29153 if test "${ac_cv_funclib_hstrerror+set}" = set; then
29154   echo $ECHO_N "(cached) $ECHO_C" >&6
29155 else
29156
29157 if eval "test \"\$ac_cv_func_hstrerror\" != yes" ; then
29158         ac_save_LIBS="$LIBS"
29159         for ac_lib in "" resolv; do
29160                 case "$ac_lib" in
29161                 "") ;;
29162                 yes) ac_lib="" ;;
29163                 no) continue ;;
29164                 -l*) ;;
29165                 *) ac_lib="-l$ac_lib" ;;
29166                 esac
29167                 LIBS=" $ac_lib  $ac_save_LIBS"
29168                 cat >conftest.$ac_ext <<_ACEOF
29169 /* confdefs.h.  */
29170 _ACEOF
29171 cat confdefs.h >>conftest.$ac_ext
29172 cat >>conftest.$ac_ext <<_ACEOF
29173 /* end confdefs.h.  */
29174 #ifdef HAVE_NETDB_H
29175 #include <netdb.h>
29176 #endif
29177 int
29178 main ()
29179 {
29180 hstrerror(17)
29181   ;
29182   return 0;
29183 }
29184 _ACEOF
29185 rm -f conftest.$ac_objext conftest$ac_exeext
29186 if { (ac_try="$ac_link"
29187 case "(($ac_try" in
29188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29189   *) ac_try_echo=$ac_try;;
29190 esac
29191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29192   (eval "$ac_link") 2>conftest.er1
29193   ac_status=$?
29194   grep -v '^ *+' conftest.er1 >conftest.err
29195   rm -f conftest.er1
29196   cat conftest.err >&5
29197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29198   (exit $ac_status); } && {
29199          test -z "$ac_c_werror_flag" ||
29200          test ! -s conftest.err
29201        } && test -s conftest$ac_exeext &&
29202        $as_test_x conftest$ac_exeext; then
29203   eval "if test -n \"$ac_lib\";then ac_cv_funclib_hstrerror=$ac_lib; else ac_cv_funclib_hstrerror=yes; fi";break
29204 else
29205   echo "$as_me: failed program was:" >&5
29206 sed 's/^/| /' conftest.$ac_ext >&5
29207
29208
29209 fi
29210
29211 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29212       conftest$ac_exeext conftest.$ac_ext
29213         done
29214         eval "ac_cv_funclib_hstrerror=\${ac_cv_funclib_hstrerror-no}"
29215         LIBS="$ac_save_LIBS"
29216 fi
29217
29218 fi
29219
29220
29221 eval "ac_res=\$ac_cv_funclib_hstrerror"
29222
29223 if false; then
29224
29225 for ac_func in hstrerror
29226 do
29227 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29228 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29229 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29230 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29231   echo $ECHO_N "(cached) $ECHO_C" >&6
29232 else
29233   cat >conftest.$ac_ext <<_ACEOF
29234 /* confdefs.h.  */
29235 _ACEOF
29236 cat confdefs.h >>conftest.$ac_ext
29237 cat >>conftest.$ac_ext <<_ACEOF
29238 /* end confdefs.h.  */
29239 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29240    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29241 #define $ac_func innocuous_$ac_func
29242
29243 /* System header to define __stub macros and hopefully few prototypes,
29244     which can conflict with char $ac_func (); below.
29245     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29246     <limits.h> exists even on freestanding compilers.  */
29247
29248 #ifdef __STDC__
29249 # include <limits.h>
29250 #else
29251 # include <assert.h>
29252 #endif
29253
29254 #undef $ac_func
29255
29256 /* Override any GCC internal prototype to avoid an error.
29257    Use char because int might match the return type of a GCC
29258    builtin and then its argument prototype would still apply.  */
29259 #ifdef __cplusplus
29260 extern "C"
29261 #endif
29262 char $ac_func ();
29263 /* The GNU C library defines this for functions which it implements
29264     to always fail with ENOSYS.  Some functions are actually named
29265     something starting with __ and the normal name is an alias.  */
29266 #if defined __stub_$ac_func || defined __stub___$ac_func
29267 choke me
29268 #endif
29269
29270 int
29271 main ()
29272 {
29273 return $ac_func ();
29274   ;
29275   return 0;
29276 }
29277 _ACEOF
29278 rm -f conftest.$ac_objext conftest$ac_exeext
29279 if { (ac_try="$ac_link"
29280 case "(($ac_try" in
29281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29282   *) ac_try_echo=$ac_try;;
29283 esac
29284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29285   (eval "$ac_link") 2>conftest.er1
29286   ac_status=$?
29287   grep -v '^ *+' conftest.er1 >conftest.err
29288   rm -f conftest.er1
29289   cat conftest.err >&5
29290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29291   (exit $ac_status); } && {
29292          test -z "$ac_c_werror_flag" ||
29293          test ! -s conftest.err
29294        } && test -s conftest$ac_exeext &&
29295        $as_test_x conftest$ac_exeext; then
29296   eval "$as_ac_var=yes"
29297 else
29298   echo "$as_me: failed program was:" >&5
29299 sed 's/^/| /' conftest.$ac_ext >&5
29300
29301         eval "$as_ac_var=no"
29302 fi
29303
29304 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29305       conftest$ac_exeext conftest.$ac_ext
29306 fi
29307 ac_res=`eval echo '${'$as_ac_var'}'`
29308                { echo "$as_me:$LINENO: result: $ac_res" >&5
29309 echo "${ECHO_T}$ac_res" >&6; }
29310 if test `eval echo '${'$as_ac_var'}'` = yes; then
29311   cat >>confdefs.h <<_ACEOF
29312 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29313 _ACEOF
29314
29315 fi
29316 done
29317
29318 fi
29319 # hstrerror
29320 eval "ac_tr_func=HAVE_`echo hstrerror | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
29321 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
29322 eval "LIB_hstrerror=$ac_res"
29323
29324 case "$ac_res" in
29325         yes)
29326         eval "ac_cv_func_hstrerror=yes"
29327         eval "LIB_hstrerror="
29328         cat >>confdefs.h <<_ACEOF
29329 #define $ac_tr_func 1
29330 _ACEOF
29331
29332         { echo "$as_me:$LINENO: result: yes" >&5
29333 echo "${ECHO_T}yes" >&6; }
29334         ;;
29335         no)
29336         eval "ac_cv_func_hstrerror=no"
29337         eval "LIB_hstrerror="
29338         { echo "$as_me:$LINENO: result: no" >&5
29339 echo "${ECHO_T}no" >&6; }
29340         ;;
29341         *)
29342         eval "ac_cv_func_hstrerror=yes"
29343         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
29344         cat >>confdefs.h <<_ACEOF
29345 #define $ac_tr_func 1
29346 _ACEOF
29347
29348         cat >>confdefs.h <<_ACEOF
29349 #define $ac_tr_lib 1
29350 _ACEOF
29351
29352         { echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
29353 echo "${ECHO_T}yes, in $ac_res" >&6; }
29354         ;;
29355 esac
29356
29357
29358 if test -n "$LIB_hstrerror"; then
29359         LIBS="$LIB_hstrerror $LIBS"
29360 fi
29361
29362 if eval "test \"$ac_cv_func_hstrerror\" != yes"; then
29363         case " $LIBOBJS " in
29364   *" hstrerror.$ac_objext "* ) ;;
29365   *) LIBOBJS="$LIBOBJS hstrerror.$ac_objext"
29366  ;;
29367 esac
29368
29369 fi
29370
29371
29372 if test "$ac_cv_func_hstrerror+set" != set -o "$ac_cv_func_hstrerror" = yes; then
29373 { echo "$as_me:$LINENO: checking if hstrerror needs a prototype" >&5
29374 echo $ECHO_N "checking if hstrerror needs a prototype... $ECHO_C" >&6; }
29375 if test "${ac_cv_func_hstrerror_noproto+set}" = set; then
29376   echo $ECHO_N "(cached) $ECHO_C" >&6
29377 else
29378   cat >conftest.$ac_ext <<_ACEOF
29379 /* confdefs.h.  */
29380 _ACEOF
29381 cat confdefs.h >>conftest.$ac_ext
29382 cat >>conftest.$ac_ext <<_ACEOF
29383 /* end confdefs.h.  */
29384
29385 #ifdef HAVE_NETDB_H
29386 #include <netdb.h>
29387 #endif
29388 struct foo { int foo; } xx;
29389 extern int hstrerror (struct foo*);
29390 int
29391 main ()
29392 {
29393 hstrerror(&xx)
29394   ;
29395   return 0;
29396 }
29397 _ACEOF
29398 rm -f conftest.$ac_objext
29399 if { (ac_try="$ac_compile"
29400 case "(($ac_try" in
29401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29402   *) ac_try_echo=$ac_try;;
29403 esac
29404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29405   (eval "$ac_compile") 2>conftest.er1
29406   ac_status=$?
29407   grep -v '^ *+' conftest.er1 >conftest.err
29408   rm -f conftest.er1
29409   cat conftest.err >&5
29410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29411   (exit $ac_status); } && {
29412          test -z "$ac_c_werror_flag" ||
29413          test ! -s conftest.err
29414        } && test -s conftest.$ac_objext; then
29415   eval "ac_cv_func_hstrerror_noproto=yes"
29416 else
29417   echo "$as_me: failed program was:" >&5
29418 sed 's/^/| /' conftest.$ac_ext >&5
29419
29420         eval "ac_cv_func_hstrerror_noproto=no"
29421 fi
29422
29423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29424 fi
29425 { echo "$as_me:$LINENO: result: $ac_cv_func_hstrerror_noproto" >&5
29426 echo "${ECHO_T}$ac_cv_func_hstrerror_noproto" >&6; }
29427 if test "$ac_cv_func_hstrerror_noproto" = yes; then
29428
29429 cat >>confdefs.h <<\_ACEOF
29430 #define NEED_HSTRERROR_PROTO 1
29431 _ACEOF
29432
29433 fi
29434 fi
29435
29436
29437
29438 if test "$ac_cv_func_asprintf+set" != set -o "$ac_cv_func_asprintf" = yes; then
29439 { echo "$as_me:$LINENO: checking if asprintf needs a prototype" >&5
29440 echo $ECHO_N "checking if asprintf needs a prototype... $ECHO_C" >&6; }
29441 if test "${ac_cv_func_asprintf_noproto+set}" = set; then
29442   echo $ECHO_N "(cached) $ECHO_C" >&6
29443 else
29444   cat >conftest.$ac_ext <<_ACEOF
29445 /* confdefs.h.  */
29446 _ACEOF
29447 cat confdefs.h >>conftest.$ac_ext
29448 cat >>conftest.$ac_ext <<_ACEOF
29449 /* end confdefs.h.  */
29450
29451         #include <stdio.h>
29452         #include <string.h>
29453 struct foo { int foo; } xx;
29454 extern int asprintf (struct foo*);
29455 int
29456 main ()
29457 {
29458 asprintf(&xx)
29459   ;
29460   return 0;
29461 }
29462 _ACEOF
29463 rm -f conftest.$ac_objext
29464 if { (ac_try="$ac_compile"
29465 case "(($ac_try" in
29466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29467   *) ac_try_echo=$ac_try;;
29468 esac
29469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29470   (eval "$ac_compile") 2>conftest.er1
29471   ac_status=$?
29472   grep -v '^ *+' conftest.er1 >conftest.err
29473   rm -f conftest.er1
29474   cat conftest.err >&5
29475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29476   (exit $ac_status); } && {
29477          test -z "$ac_c_werror_flag" ||
29478          test ! -s conftest.err
29479        } && test -s conftest.$ac_objext; then
29480   eval "ac_cv_func_asprintf_noproto=yes"
29481 else
29482   echo "$as_me: failed program was:" >&5
29483 sed 's/^/| /' conftest.$ac_ext >&5
29484
29485         eval "ac_cv_func_asprintf_noproto=no"
29486 fi
29487
29488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29489 fi
29490 { echo "$as_me:$LINENO: result: $ac_cv_func_asprintf_noproto" >&5
29491 echo "${ECHO_T}$ac_cv_func_asprintf_noproto" >&6; }
29492 if test "$ac_cv_func_asprintf_noproto" = yes; then
29493
29494 cat >>confdefs.h <<\_ACEOF
29495 #define NEED_ASPRINTF_PROTO 1
29496 _ACEOF
29497
29498 fi
29499 fi
29500
29501 if test "$ac_cv_func_vasprintf+set" != set -o "$ac_cv_func_vasprintf" = yes; then
29502 { echo "$as_me:$LINENO: checking if vasprintf needs a prototype" >&5
29503 echo $ECHO_N "checking if vasprintf needs a prototype... $ECHO_C" >&6; }
29504 if test "${ac_cv_func_vasprintf_noproto+set}" = set; then
29505   echo $ECHO_N "(cached) $ECHO_C" >&6
29506 else
29507   cat >conftest.$ac_ext <<_ACEOF
29508 /* confdefs.h.  */
29509 _ACEOF
29510 cat confdefs.h >>conftest.$ac_ext
29511 cat >>conftest.$ac_ext <<_ACEOF
29512 /* end confdefs.h.  */
29513
29514         #include <stdio.h>
29515         #include <string.h>
29516 struct foo { int foo; } xx;
29517 extern int vasprintf (struct foo*);
29518 int
29519 main ()
29520 {
29521 vasprintf(&xx)
29522   ;
29523   return 0;
29524 }
29525 _ACEOF
29526 rm -f conftest.$ac_objext
29527 if { (ac_try="$ac_compile"
29528 case "(($ac_try" in
29529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29530   *) ac_try_echo=$ac_try;;
29531 esac
29532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29533   (eval "$ac_compile") 2>conftest.er1
29534   ac_status=$?
29535   grep -v '^ *+' conftest.er1 >conftest.err
29536   rm -f conftest.er1
29537   cat conftest.err >&5
29538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29539   (exit $ac_status); } && {
29540          test -z "$ac_c_werror_flag" ||
29541          test ! -s conftest.err
29542        } && test -s conftest.$ac_objext; then
29543   eval "ac_cv_func_vasprintf_noproto=yes"
29544 else
29545   echo "$as_me: failed program was:" >&5
29546 sed 's/^/| /' conftest.$ac_ext >&5
29547
29548         eval "ac_cv_func_vasprintf_noproto=no"
29549 fi
29550
29551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29552 fi
29553 { echo "$as_me:$LINENO: result: $ac_cv_func_vasprintf_noproto" >&5
29554 echo "${ECHO_T}$ac_cv_func_vasprintf_noproto" >&6; }
29555 if test "$ac_cv_func_vasprintf_noproto" = yes; then
29556
29557 cat >>confdefs.h <<\_ACEOF
29558 #define NEED_VASPRINTF_PROTO 1
29559 _ACEOF
29560
29561 fi
29562 fi
29563
29564 if test "$ac_cv_func_asnprintf+set" != set -o "$ac_cv_func_asnprintf" = yes; then
29565 { echo "$as_me:$LINENO: checking if asnprintf needs a prototype" >&5
29566 echo $ECHO_N "checking if asnprintf needs a prototype... $ECHO_C" >&6; }
29567 if test "${ac_cv_func_asnprintf_noproto+set}" = set; then
29568   echo $ECHO_N "(cached) $ECHO_C" >&6
29569 else
29570   cat >conftest.$ac_ext <<_ACEOF
29571 /* confdefs.h.  */
29572 _ACEOF
29573 cat confdefs.h >>conftest.$ac_ext
29574 cat >>conftest.$ac_ext <<_ACEOF
29575 /* end confdefs.h.  */
29576
29577         #include <stdio.h>
29578         #include <string.h>
29579 struct foo { int foo; } xx;
29580 extern int asnprintf (struct foo*);
29581 int
29582 main ()
29583 {
29584 asnprintf(&xx)
29585   ;
29586   return 0;
29587 }
29588 _ACEOF
29589 rm -f conftest.$ac_objext
29590 if { (ac_try="$ac_compile"
29591 case "(($ac_try" in
29592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29593   *) ac_try_echo=$ac_try;;
29594 esac
29595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29596   (eval "$ac_compile") 2>conftest.er1
29597   ac_status=$?
29598   grep -v '^ *+' conftest.er1 >conftest.err
29599   rm -f conftest.er1
29600   cat conftest.err >&5
29601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29602   (exit $ac_status); } && {
29603          test -z "$ac_c_werror_flag" ||
29604          test ! -s conftest.err
29605        } && test -s conftest.$ac_objext; then
29606   eval "ac_cv_func_asnprintf_noproto=yes"
29607 else
29608   echo "$as_me: failed program was:" >&5
29609 sed 's/^/| /' conftest.$ac_ext >&5
29610
29611         eval "ac_cv_func_asnprintf_noproto=no"
29612 fi
29613
29614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29615 fi
29616 { echo "$as_me:$LINENO: result: $ac_cv_func_asnprintf_noproto" >&5
29617 echo "${ECHO_T}$ac_cv_func_asnprintf_noproto" >&6; }
29618 if test "$ac_cv_func_asnprintf_noproto" = yes; then
29619
29620 cat >>confdefs.h <<\_ACEOF
29621 #define NEED_ASNPRINTF_PROTO 1
29622 _ACEOF
29623
29624 fi
29625 fi
29626
29627 if test "$ac_cv_func_vasnprintf+set" != set -o "$ac_cv_func_vasnprintf" = yes; then
29628 { echo "$as_me:$LINENO: checking if vasnprintf needs a prototype" >&5
29629 echo $ECHO_N "checking if vasnprintf needs a prototype... $ECHO_C" >&6; }
29630 if test "${ac_cv_func_vasnprintf_noproto+set}" = set; then
29631   echo $ECHO_N "(cached) $ECHO_C" >&6
29632 else
29633   cat >conftest.$ac_ext <<_ACEOF
29634 /* confdefs.h.  */
29635 _ACEOF
29636 cat confdefs.h >>conftest.$ac_ext
29637 cat >>conftest.$ac_ext <<_ACEOF
29638 /* end confdefs.h.  */
29639
29640         #include <stdio.h>
29641         #include <string.h>
29642 struct foo { int foo; } xx;
29643 extern int vasnprintf (struct foo*);
29644 int
29645 main ()
29646 {
29647 vasnprintf(&xx)
29648   ;
29649   return 0;
29650 }
29651 _ACEOF
29652 rm -f conftest.$ac_objext
29653 if { (ac_try="$ac_compile"
29654 case "(($ac_try" in
29655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29656   *) ac_try_echo=$ac_try;;
29657 esac
29658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29659   (eval "$ac_compile") 2>conftest.er1
29660   ac_status=$?
29661   grep -v '^ *+' conftest.er1 >conftest.err
29662   rm -f conftest.er1
29663   cat conftest.err >&5
29664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29665   (exit $ac_status); } && {
29666          test -z "$ac_c_werror_flag" ||
29667          test ! -s conftest.err
29668        } && test -s conftest.$ac_objext; then
29669   eval "ac_cv_func_vasnprintf_noproto=yes"
29670 else
29671   echo "$as_me: failed program was:" >&5
29672 sed 's/^/| /' conftest.$ac_ext >&5
29673
29674         eval "ac_cv_func_vasnprintf_noproto=no"
29675 fi
29676
29677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29678 fi
29679 { echo "$as_me:$LINENO: result: $ac_cv_func_vasnprintf_noproto" >&5
29680 echo "${ECHO_T}$ac_cv_func_vasnprintf_noproto" >&6; }
29681 if test "$ac_cv_func_vasnprintf_noproto" = yes; then
29682
29683 cat >>confdefs.h <<\_ACEOF
29684 #define NEED_VASNPRINTF_PROTO 1
29685 _ACEOF
29686
29687 fi
29688 fi
29689
29690
29691
29692
29693
29694 { echo "$as_me:$LINENO: checking for bswap16" >&5
29695 echo $ECHO_N "checking for bswap16... $ECHO_C" >&6; }
29696 if test "${ac_cv_funclib_bswap16+set}" = set; then
29697   echo $ECHO_N "(cached) $ECHO_C" >&6
29698 else
29699
29700 if eval "test \"\$ac_cv_func_bswap16\" != yes" ; then
29701         ac_save_LIBS="$LIBS"
29702         for ac_lib in "" ; do
29703                 case "$ac_lib" in
29704                 "") ;;
29705                 yes) ac_lib="" ;;
29706                 no) continue ;;
29707                 -l*) ;;
29708                 *) ac_lib="-l$ac_lib" ;;
29709                 esac
29710                 LIBS=" $ac_lib  $ac_save_LIBS"
29711                 cat >conftest.$ac_ext <<_ACEOF
29712 /* confdefs.h.  */
29713 _ACEOF
29714 cat confdefs.h >>conftest.$ac_ext
29715 cat >>conftest.$ac_ext <<_ACEOF
29716 /* end confdefs.h.  */
29717 #ifdef HAVE_SYS_BSWAP_H
29718 #include <sys/bswap.h>
29719 #endif
29720 int
29721 main ()
29722 {
29723 bswap16(0)
29724   ;
29725   return 0;
29726 }
29727 _ACEOF
29728 rm -f conftest.$ac_objext conftest$ac_exeext
29729 if { (ac_try="$ac_link"
29730 case "(($ac_try" in
29731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29732   *) ac_try_echo=$ac_try;;
29733 esac
29734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29735   (eval "$ac_link") 2>conftest.er1
29736   ac_status=$?
29737   grep -v '^ *+' conftest.er1 >conftest.err
29738   rm -f conftest.er1
29739   cat conftest.err >&5
29740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29741   (exit $ac_status); } && {
29742          test -z "$ac_c_werror_flag" ||
29743          test ! -s conftest.err
29744        } && test -s conftest$ac_exeext &&
29745        $as_test_x conftest$ac_exeext; then
29746   eval "if test -n \"$ac_lib\";then ac_cv_funclib_bswap16=$ac_lib; else ac_cv_funclib_bswap16=yes; fi";break
29747 else
29748   echo "$as_me: failed program was:" >&5
29749 sed 's/^/| /' conftest.$ac_ext >&5
29750
29751
29752 fi
29753
29754 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29755       conftest$ac_exeext conftest.$ac_ext
29756         done
29757         eval "ac_cv_funclib_bswap16=\${ac_cv_funclib_bswap16-no}"
29758         LIBS="$ac_save_LIBS"
29759 fi
29760
29761 fi
29762
29763
29764 eval "ac_res=\$ac_cv_funclib_bswap16"
29765
29766 if false; then
29767
29768 for ac_func in bswap16
29769 do
29770 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29771 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29772 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29773 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29774   echo $ECHO_N "(cached) $ECHO_C" >&6
29775 else
29776   cat >conftest.$ac_ext <<_ACEOF
29777 /* confdefs.h.  */
29778 _ACEOF
29779 cat confdefs.h >>conftest.$ac_ext
29780 cat >>conftest.$ac_ext <<_ACEOF
29781 /* end confdefs.h.  */
29782 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29783    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29784 #define $ac_func innocuous_$ac_func
29785
29786 /* System header to define __stub macros and hopefully few prototypes,
29787     which can conflict with char $ac_func (); below.
29788     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29789     <limits.h> exists even on freestanding compilers.  */
29790
29791 #ifdef __STDC__
29792 # include <limits.h>
29793 #else
29794 # include <assert.h>
29795 #endif
29796
29797 #undef $ac_func
29798
29799 /* Override any GCC internal prototype to avoid an error.
29800    Use char because int might match the return type of a GCC
29801    builtin and then its argument prototype would still apply.  */
29802 #ifdef __cplusplus
29803 extern "C"
29804 #endif
29805 char $ac_func ();
29806 /* The GNU C library defines this for functions which it implements
29807     to always fail with ENOSYS.  Some functions are actually named
29808     something starting with __ and the normal name is an alias.  */
29809 #if defined __stub_$ac_func || defined __stub___$ac_func
29810 choke me
29811 #endif
29812
29813 int
29814 main ()
29815 {
29816 return $ac_func ();
29817   ;
29818   return 0;
29819 }
29820 _ACEOF
29821 rm -f conftest.$ac_objext conftest$ac_exeext
29822 if { (ac_try="$ac_link"
29823 case "(($ac_try" in
29824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29825   *) ac_try_echo=$ac_try;;
29826 esac
29827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29828   (eval "$ac_link") 2>conftest.er1
29829   ac_status=$?
29830   grep -v '^ *+' conftest.er1 >conftest.err
29831   rm -f conftest.er1
29832   cat conftest.err >&5
29833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29834   (exit $ac_status); } && {
29835          test -z "$ac_c_werror_flag" ||
29836          test ! -s conftest.err
29837        } && test -s conftest$ac_exeext &&
29838        $as_test_x conftest$ac_exeext; then
29839   eval "$as_ac_var=yes"
29840 else
29841   echo "$as_me: failed program was:" >&5
29842 sed 's/^/| /' conftest.$ac_ext >&5
29843
29844         eval "$as_ac_var=no"
29845 fi
29846
29847 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29848       conftest$ac_exeext conftest.$ac_ext
29849 fi
29850 ac_res=`eval echo '${'$as_ac_var'}'`
29851                { echo "$as_me:$LINENO: result: $ac_res" >&5
29852 echo "${ECHO_T}$ac_res" >&6; }
29853 if test `eval echo '${'$as_ac_var'}'` = yes; then
29854   cat >>confdefs.h <<_ACEOF
29855 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29856 _ACEOF
29857
29858 fi
29859 done
29860
29861 fi
29862 # bswap16
29863 eval "ac_tr_func=HAVE_`echo bswap16 | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
29864 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
29865 eval "LIB_bswap16=$ac_res"
29866
29867 case "$ac_res" in
29868         yes)
29869         eval "ac_cv_func_bswap16=yes"
29870         eval "LIB_bswap16="
29871         cat >>confdefs.h <<_ACEOF
29872 #define $ac_tr_func 1
29873 _ACEOF
29874
29875         { echo "$as_me:$LINENO: result: yes" >&5
29876 echo "${ECHO_T}yes" >&6; }
29877         ;;
29878         no)
29879         eval "ac_cv_func_bswap16=no"
29880         eval "LIB_bswap16="
29881         { echo "$as_me:$LINENO: result: no" >&5
29882 echo "${ECHO_T}no" >&6; }
29883         ;;
29884         *)
29885         eval "ac_cv_func_bswap16=yes"
29886         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
29887         cat >>confdefs.h <<_ACEOF
29888 #define $ac_tr_func 1
29889 _ACEOF
29890
29891         cat >>confdefs.h <<_ACEOF
29892 #define $ac_tr_lib 1
29893 _ACEOF
29894
29895         { echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
29896 echo "${ECHO_T}yes, in $ac_res" >&6; }
29897         ;;
29898 esac
29899
29900
29901
29902
29903
29904
29905 { echo "$as_me:$LINENO: checking for bswap32" >&5
29906 echo $ECHO_N "checking for bswap32... $ECHO_C" >&6; }
29907 if test "${ac_cv_funclib_bswap32+set}" = set; then
29908   echo $ECHO_N "(cached) $ECHO_C" >&6
29909 else
29910
29911 if eval "test \"\$ac_cv_func_bswap32\" != yes" ; then
29912         ac_save_LIBS="$LIBS"
29913         for ac_lib in "" ; do
29914                 case "$ac_lib" in
29915                 "") ;;
29916                 yes) ac_lib="" ;;
29917                 no) continue ;;
29918                 -l*) ;;
29919                 *) ac_lib="-l$ac_lib" ;;
29920                 esac
29921                 LIBS=" $ac_lib  $ac_save_LIBS"
29922                 cat >conftest.$ac_ext <<_ACEOF
29923 /* confdefs.h.  */
29924 _ACEOF
29925 cat confdefs.h >>conftest.$ac_ext
29926 cat >>conftest.$ac_ext <<_ACEOF
29927 /* end confdefs.h.  */
29928 #ifdef HAVE_SYS_BSWAP_H
29929 #include <sys/bswap.h>
29930 #endif
29931 int
29932 main ()
29933 {
29934 bswap32(0)
29935   ;
29936   return 0;
29937 }
29938 _ACEOF
29939 rm -f conftest.$ac_objext conftest$ac_exeext
29940 if { (ac_try="$ac_link"
29941 case "(($ac_try" in
29942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29943   *) ac_try_echo=$ac_try;;
29944 esac
29945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29946   (eval "$ac_link") 2>conftest.er1
29947   ac_status=$?
29948   grep -v '^ *+' conftest.er1 >conftest.err
29949   rm -f conftest.er1
29950   cat conftest.err >&5
29951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29952   (exit $ac_status); } && {
29953          test -z "$ac_c_werror_flag" ||
29954          test ! -s conftest.err
29955        } && test -s conftest$ac_exeext &&
29956        $as_test_x conftest$ac_exeext; then
29957   eval "if test -n \"$ac_lib\";then ac_cv_funclib_bswap32=$ac_lib; else ac_cv_funclib_bswap32=yes; fi";break
29958 else
29959   echo "$as_me: failed program was:" >&5
29960 sed 's/^/| /' conftest.$ac_ext >&5
29961
29962
29963 fi
29964
29965 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29966       conftest$ac_exeext conftest.$ac_ext
29967         done
29968         eval "ac_cv_funclib_bswap32=\${ac_cv_funclib_bswap32-no}"
29969         LIBS="$ac_save_LIBS"
29970 fi
29971
29972 fi
29973
29974
29975 eval "ac_res=\$ac_cv_funclib_bswap32"
29976
29977 if false; then
29978
29979 for ac_func in bswap32
29980 do
29981 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29982 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29983 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29984 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29985   echo $ECHO_N "(cached) $ECHO_C" >&6
29986 else
29987   cat >conftest.$ac_ext <<_ACEOF
29988 /* confdefs.h.  */
29989 _ACEOF
29990 cat confdefs.h >>conftest.$ac_ext
29991 cat >>conftest.$ac_ext <<_ACEOF
29992 /* end confdefs.h.  */
29993 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29994    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29995 #define $ac_func innocuous_$ac_func
29996
29997 /* System header to define __stub macros and hopefully few prototypes,
29998     which can conflict with char $ac_func (); below.
29999     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30000     <limits.h> exists even on freestanding compilers.  */
30001
30002 #ifdef __STDC__
30003 # include <limits.h>
30004 #else
30005 # include <assert.h>
30006 #endif
30007
30008 #undef $ac_func
30009
30010 /* Override any GCC internal prototype to avoid an error.
30011    Use char because int might match the return type of a GCC
30012    builtin and then its argument prototype would still apply.  */
30013 #ifdef __cplusplus
30014 extern "C"
30015 #endif
30016 char $ac_func ();
30017 /* The GNU C library defines this for functions which it implements
30018     to always fail with ENOSYS.  Some functions are actually named
30019     something starting with __ and the normal name is an alias.  */
30020 #if defined __stub_$ac_func || defined __stub___$ac_func
30021 choke me
30022 #endif
30023
30024 int
30025 main ()
30026 {
30027 return $ac_func ();
30028   ;
30029   return 0;
30030 }
30031 _ACEOF
30032 rm -f conftest.$ac_objext conftest$ac_exeext
30033 if { (ac_try="$ac_link"
30034 case "(($ac_try" in
30035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30036   *) ac_try_echo=$ac_try;;
30037 esac
30038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30039   (eval "$ac_link") 2>conftest.er1
30040   ac_status=$?
30041   grep -v '^ *+' conftest.er1 >conftest.err
30042   rm -f conftest.er1
30043   cat conftest.err >&5
30044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30045   (exit $ac_status); } && {
30046          test -z "$ac_c_werror_flag" ||
30047          test ! -s conftest.err
30048        } && test -s conftest$ac_exeext &&
30049        $as_test_x conftest$ac_exeext; then
30050   eval "$as_ac_var=yes"
30051 else
30052   echo "$as_me: failed program was:" >&5
30053 sed 's/^/| /' conftest.$ac_ext >&5
30054
30055         eval "$as_ac_var=no"
30056 fi
30057
30058 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30059       conftest$ac_exeext conftest.$ac_ext
30060 fi
30061 ac_res=`eval echo '${'$as_ac_var'}'`
30062                { echo "$as_me:$LINENO: result: $ac_res" >&5
30063 echo "${ECHO_T}$ac_res" >&6; }
30064 if test `eval echo '${'$as_ac_var'}'` = yes; then
30065   cat >>confdefs.h <<_ACEOF
30066 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30067 _ACEOF
30068
30069 fi
30070 done
30071
30072 fi
30073 # bswap32
30074 eval "ac_tr_func=HAVE_`echo bswap32 | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
30075 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
30076 eval "LIB_bswap32=$ac_res"
30077
30078 case "$ac_res" in
30079         yes)
30080         eval "ac_cv_func_bswap32=yes"
30081         eval "LIB_bswap32="
30082         cat >>confdefs.h <<_ACEOF
30083 #define $ac_tr_func 1
30084 _ACEOF
30085
30086         { echo "$as_me:$LINENO: result: yes" >&5
30087 echo "${ECHO_T}yes" >&6; }
30088         ;;
30089         no)
30090         eval "ac_cv_func_bswap32=no"
30091         eval "LIB_bswap32="
30092         { echo "$as_me:$LINENO: result: no" >&5
30093 echo "${ECHO_T}no" >&6; }
30094         ;;
30095         *)
30096         eval "ac_cv_func_bswap32=yes"
30097         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
30098         cat >>confdefs.h <<_ACEOF
30099 #define $ac_tr_func 1
30100 _ACEOF
30101
30102         cat >>confdefs.h <<_ACEOF
30103 #define $ac_tr_lib 1
30104 _ACEOF
30105
30106         { echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
30107 echo "${ECHO_T}yes, in $ac_res" >&6; }
30108         ;;
30109 esac
30110
30111
30112
30113
30114
30115
30116 { echo "$as_me:$LINENO: checking for pidfile" >&5
30117 echo $ECHO_N "checking for pidfile... $ECHO_C" >&6; }
30118 if test "${ac_cv_funclib_pidfile+set}" = set; then
30119   echo $ECHO_N "(cached) $ECHO_C" >&6
30120 else
30121
30122 if eval "test \"\$ac_cv_func_pidfile\" != yes" ; then
30123         ac_save_LIBS="$LIBS"
30124         for ac_lib in "" util; do
30125                 case "$ac_lib" in
30126                 "") ;;
30127                 yes) ac_lib="" ;;
30128                 no) continue ;;
30129                 -l*) ;;
30130                 *) ac_lib="-l$ac_lib" ;;
30131                 esac
30132                 LIBS=" $ac_lib  $ac_save_LIBS"
30133                 cat >conftest.$ac_ext <<_ACEOF
30134 /* confdefs.h.  */
30135 _ACEOF
30136 cat confdefs.h >>conftest.$ac_ext
30137 cat >>conftest.$ac_ext <<_ACEOF
30138 /* end confdefs.h.  */
30139 #ifdef HAVE_UTIL_H
30140 #include <util.h>
30141 #endif
30142 int
30143 main ()
30144 {
30145 pidfile(0)
30146   ;
30147   return 0;
30148 }
30149 _ACEOF
30150 rm -f conftest.$ac_objext conftest$ac_exeext
30151 if { (ac_try="$ac_link"
30152 case "(($ac_try" in
30153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30154   *) ac_try_echo=$ac_try;;
30155 esac
30156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30157   (eval "$ac_link") 2>conftest.er1
30158   ac_status=$?
30159   grep -v '^ *+' conftest.er1 >conftest.err
30160   rm -f conftest.er1
30161   cat conftest.err >&5
30162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30163   (exit $ac_status); } && {
30164          test -z "$ac_c_werror_flag" ||
30165          test ! -s conftest.err
30166        } && test -s conftest$ac_exeext &&
30167        $as_test_x conftest$ac_exeext; then
30168   eval "if test -n \"$ac_lib\";then ac_cv_funclib_pidfile=$ac_lib; else ac_cv_funclib_pidfile=yes; fi";break
30169 else
30170   echo "$as_me: failed program was:" >&5
30171 sed 's/^/| /' conftest.$ac_ext >&5
30172
30173
30174 fi
30175
30176 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30177       conftest$ac_exeext conftest.$ac_ext
30178         done
30179         eval "ac_cv_funclib_pidfile=\${ac_cv_funclib_pidfile-no}"
30180         LIBS="$ac_save_LIBS"
30181 fi
30182
30183 fi
30184
30185
30186 eval "ac_res=\$ac_cv_funclib_pidfile"
30187
30188 if false; then
30189
30190 for ac_func in pidfile
30191 do
30192 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30193 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30194 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30195 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30196   echo $ECHO_N "(cached) $ECHO_C" >&6
30197 else
30198   cat >conftest.$ac_ext <<_ACEOF
30199 /* confdefs.h.  */
30200 _ACEOF
30201 cat confdefs.h >>conftest.$ac_ext
30202 cat >>conftest.$ac_ext <<_ACEOF
30203 /* end confdefs.h.  */
30204 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30205    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30206 #define $ac_func innocuous_$ac_func
30207
30208 /* System header to define __stub macros and hopefully few prototypes,
30209     which can conflict with char $ac_func (); below.
30210     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30211     <limits.h> exists even on freestanding compilers.  */
30212
30213 #ifdef __STDC__
30214 # include <limits.h>
30215 #else
30216 # include <assert.h>
30217 #endif
30218
30219 #undef $ac_func
30220
30221 /* Override any GCC internal prototype to avoid an error.
30222    Use char because int might match the return type of a GCC
30223    builtin and then its argument prototype would still apply.  */
30224 #ifdef __cplusplus
30225 extern "C"
30226 #endif
30227 char $ac_func ();
30228 /* The GNU C library defines this for functions which it implements
30229     to always fail with ENOSYS.  Some functions are actually named
30230     something starting with __ and the normal name is an alias.  */
30231 #if defined __stub_$ac_func || defined __stub___$ac_func
30232 choke me
30233 #endif
30234
30235 int
30236 main ()
30237 {
30238 return $ac_func ();
30239   ;
30240   return 0;
30241 }
30242 _ACEOF
30243 rm -f conftest.$ac_objext conftest$ac_exeext
30244 if { (ac_try="$ac_link"
30245 case "(($ac_try" in
30246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30247   *) ac_try_echo=$ac_try;;
30248 esac
30249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30250   (eval "$ac_link") 2>conftest.er1
30251   ac_status=$?
30252   grep -v '^ *+' conftest.er1 >conftest.err
30253   rm -f conftest.er1
30254   cat conftest.err >&5
30255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30256   (exit $ac_status); } && {
30257          test -z "$ac_c_werror_flag" ||
30258          test ! -s conftest.err
30259        } && test -s conftest$ac_exeext &&
30260        $as_test_x conftest$ac_exeext; then
30261   eval "$as_ac_var=yes"
30262 else
30263   echo "$as_me: failed program was:" >&5
30264 sed 's/^/| /' conftest.$ac_ext >&5
30265
30266         eval "$as_ac_var=no"
30267 fi
30268
30269 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30270       conftest$ac_exeext conftest.$ac_ext
30271 fi
30272 ac_res=`eval echo '${'$as_ac_var'}'`
30273                { echo "$as_me:$LINENO: result: $ac_res" >&5
30274 echo "${ECHO_T}$ac_res" >&6; }
30275 if test `eval echo '${'$as_ac_var'}'` = yes; then
30276   cat >>confdefs.h <<_ACEOF
30277 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30278 _ACEOF
30279
30280 fi
30281 done
30282
30283 fi
30284 # pidfile
30285 eval "ac_tr_func=HAVE_`echo pidfile | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
30286 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
30287 eval "LIB_pidfile=$ac_res"
30288
30289 case "$ac_res" in
30290         yes)
30291         eval "ac_cv_func_pidfile=yes"
30292         eval "LIB_pidfile="
30293         cat >>confdefs.h <<_ACEOF
30294 #define $ac_tr_func 1
30295 _ACEOF
30296
30297         { echo "$as_me:$LINENO: result: yes" >&5
30298 echo "${ECHO_T}yes" >&6; }
30299         ;;
30300         no)
30301         eval "ac_cv_func_pidfile=no"
30302         eval "LIB_pidfile="
30303         { echo "$as_me:$LINENO: result: no" >&5
30304 echo "${ECHO_T}no" >&6; }
30305         ;;
30306         *)
30307         eval "ac_cv_func_pidfile=yes"
30308         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
30309         cat >>confdefs.h <<_ACEOF
30310 #define $ac_tr_func 1
30311 _ACEOF
30312
30313         cat >>confdefs.h <<_ACEOF
30314 #define $ac_tr_lib 1
30315 _ACEOF
30316
30317         { echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
30318 echo "${ECHO_T}yes, in $ac_res" >&6; }
30319         ;;
30320 esac
30321
30322
30323
30324
30325
30326
30327
30328 { echo "$as_me:$LINENO: checking for getaddrinfo" >&5
30329 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; }
30330 if test "${ac_cv_funclib_getaddrinfo+set}" = set; then
30331   echo $ECHO_N "(cached) $ECHO_C" >&6
30332 else
30333
30334 if eval "test \"\$ac_cv_func_getaddrinfo\" != yes" ; then
30335         ac_save_LIBS="$LIBS"
30336         for ac_lib in "" ; do
30337                 case "$ac_lib" in
30338                 "") ;;
30339                 yes) ac_lib="" ;;
30340                 no) continue ;;
30341                 -l*) ;;
30342                 *) ac_lib="-l$ac_lib" ;;
30343                 esac
30344                 LIBS=" $ac_lib  $ac_save_LIBS"
30345                 cat >conftest.$ac_ext <<_ACEOF
30346 /* confdefs.h.  */
30347 _ACEOF
30348 cat confdefs.h >>conftest.$ac_ext
30349 cat >>conftest.$ac_ext <<_ACEOF
30350 /* end confdefs.h.  */
30351 #ifdef HAVE_NETDB_H
30352 #include <netdb.h>
30353 #endif
30354 int
30355 main ()
30356 {
30357 getaddrinfo(0,0,0,0)
30358   ;
30359   return 0;
30360 }
30361 _ACEOF
30362 rm -f conftest.$ac_objext conftest$ac_exeext
30363 if { (ac_try="$ac_link"
30364 case "(($ac_try" in
30365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30366   *) ac_try_echo=$ac_try;;
30367 esac
30368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30369   (eval "$ac_link") 2>conftest.er1
30370   ac_status=$?
30371   grep -v '^ *+' conftest.er1 >conftest.err
30372   rm -f conftest.er1
30373   cat conftest.err >&5
30374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30375   (exit $ac_status); } && {
30376          test -z "$ac_c_werror_flag" ||
30377          test ! -s conftest.err
30378        } && test -s conftest$ac_exeext &&
30379        $as_test_x conftest$ac_exeext; then
30380   eval "if test -n \"$ac_lib\";then ac_cv_funclib_getaddrinfo=$ac_lib; else ac_cv_funclib_getaddrinfo=yes; fi";break
30381 else
30382   echo "$as_me: failed program was:" >&5
30383 sed 's/^/| /' conftest.$ac_ext >&5
30384
30385
30386 fi
30387
30388 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30389       conftest$ac_exeext conftest.$ac_ext
30390         done
30391         eval "ac_cv_funclib_getaddrinfo=\${ac_cv_funclib_getaddrinfo-no}"
30392         LIBS="$ac_save_LIBS"
30393 fi
30394
30395 fi
30396
30397
30398 eval "ac_res=\$ac_cv_funclib_getaddrinfo"
30399
30400 if false; then
30401
30402 for ac_func in getaddrinfo
30403 do
30404 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30405 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30406 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30407 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30408   echo $ECHO_N "(cached) $ECHO_C" >&6
30409 else
30410   cat >conftest.$ac_ext <<_ACEOF
30411 /* confdefs.h.  */
30412 _ACEOF
30413 cat confdefs.h >>conftest.$ac_ext
30414 cat >>conftest.$ac_ext <<_ACEOF
30415 /* end confdefs.h.  */
30416 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30417    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30418 #define $ac_func innocuous_$ac_func
30419
30420 /* System header to define __stub macros and hopefully few prototypes,
30421     which can conflict with char $ac_func (); below.
30422     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30423     <limits.h> exists even on freestanding compilers.  */
30424
30425 #ifdef __STDC__
30426 # include <limits.h>
30427 #else
30428 # include <assert.h>
30429 #endif
30430
30431 #undef $ac_func
30432
30433 /* Override any GCC internal prototype to avoid an error.
30434    Use char because int might match the return type of a GCC
30435    builtin and then its argument prototype would still apply.  */
30436 #ifdef __cplusplus
30437 extern "C"
30438 #endif
30439 char $ac_func ();
30440 /* The GNU C library defines this for functions which it implements
30441     to always fail with ENOSYS.  Some functions are actually named
30442     something starting with __ and the normal name is an alias.  */
30443 #if defined __stub_$ac_func || defined __stub___$ac_func
30444 choke me
30445 #endif
30446
30447 int
30448 main ()
30449 {
30450 return $ac_func ();
30451   ;
30452   return 0;
30453 }
30454 _ACEOF
30455 rm -f conftest.$ac_objext conftest$ac_exeext
30456 if { (ac_try="$ac_link"
30457 case "(($ac_try" in
30458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30459   *) ac_try_echo=$ac_try;;
30460 esac
30461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30462   (eval "$ac_link") 2>conftest.er1
30463   ac_status=$?
30464   grep -v '^ *+' conftest.er1 >conftest.err
30465   rm -f conftest.er1
30466   cat conftest.err >&5
30467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30468   (exit $ac_status); } && {
30469          test -z "$ac_c_werror_flag" ||
30470          test ! -s conftest.err
30471        } && test -s conftest$ac_exeext &&
30472        $as_test_x conftest$ac_exeext; then
30473   eval "$as_ac_var=yes"
30474 else
30475   echo "$as_me: failed program was:" >&5
30476 sed 's/^/| /' conftest.$ac_ext >&5
30477
30478         eval "$as_ac_var=no"
30479 fi
30480
30481 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30482       conftest$ac_exeext conftest.$ac_ext
30483 fi
30484 ac_res=`eval echo '${'$as_ac_var'}'`
30485                { echo "$as_me:$LINENO: result: $ac_res" >&5
30486 echo "${ECHO_T}$ac_res" >&6; }
30487 if test `eval echo '${'$as_ac_var'}'` = yes; then
30488   cat >>confdefs.h <<_ACEOF
30489 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30490 _ACEOF
30491
30492 fi
30493 done
30494
30495 fi
30496 # getaddrinfo
30497 eval "ac_tr_func=HAVE_`echo getaddrinfo | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
30498 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
30499 eval "LIB_getaddrinfo=$ac_res"
30500
30501 case "$ac_res" in
30502         yes)
30503         eval "ac_cv_func_getaddrinfo=yes"
30504         eval "LIB_getaddrinfo="
30505         cat >>confdefs.h <<_ACEOF
30506 #define $ac_tr_func 1
30507 _ACEOF
30508
30509         { echo "$as_me:$LINENO: result: yes" >&5
30510 echo "${ECHO_T}yes" >&6; }
30511         ;;
30512         no)
30513         eval "ac_cv_func_getaddrinfo=no"
30514         eval "LIB_getaddrinfo="
30515         { echo "$as_me:$LINENO: result: no" >&5
30516 echo "${ECHO_T}no" >&6; }
30517         ;;
30518         *)
30519         eval "ac_cv_func_getaddrinfo=yes"
30520         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
30521         cat >>confdefs.h <<_ACEOF
30522 #define $ac_tr_func 1
30523 _ACEOF
30524
30525         cat >>confdefs.h <<_ACEOF
30526 #define $ac_tr_lib 1
30527 _ACEOF
30528
30529         { echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
30530 echo "${ECHO_T}yes, in $ac_res" >&6; }
30531         ;;
30532 esac
30533
30534
30535 if test -n "$LIB_getaddrinfo"; then
30536         LIBS="$LIB_getaddrinfo $LIBS"
30537 fi
30538
30539 if eval "test \"$ac_cv_func_getaddrinfo\" != yes"; then
30540         case " $LIBOBJS " in
30541   *" getaddrinfo.$ac_objext "* ) ;;
30542   *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
30543  ;;
30544 esac
30545
30546 fi
30547
30548
30549
30550
30551
30552
30553 { echo "$as_me:$LINENO: checking for getnameinfo" >&5
30554 echo $ECHO_N "checking for getnameinfo... $ECHO_C" >&6; }
30555 if test "${ac_cv_funclib_getnameinfo+set}" = set; then
30556   echo $ECHO_N "(cached) $ECHO_C" >&6
30557 else
30558
30559 if eval "test \"\$ac_cv_func_getnameinfo\" != yes" ; then
30560         ac_save_LIBS="$LIBS"
30561         for ac_lib in "" ; do
30562                 case "$ac_lib" in
30563                 "") ;;
30564                 yes) ac_lib="" ;;
30565                 no) continue ;;
30566                 -l*) ;;
30567                 *) ac_lib="-l$ac_lib" ;;
30568                 esac
30569                 LIBS=" $ac_lib  $ac_save_LIBS"
30570                 cat >conftest.$ac_ext <<_ACEOF
30571 /* confdefs.h.  */
30572 _ACEOF
30573 cat confdefs.h >>conftest.$ac_ext
30574 cat >>conftest.$ac_ext <<_ACEOF
30575 /* end confdefs.h.  */
30576 #ifdef HAVE_NETDB_H
30577 #include <netdb.h>
30578 #endif
30579 int
30580 main ()
30581 {
30582 getnameinfo(0,0,0,0,0,0,0)
30583   ;
30584   return 0;
30585 }
30586 _ACEOF
30587 rm -f conftest.$ac_objext conftest$ac_exeext
30588 if { (ac_try="$ac_link"
30589 case "(($ac_try" in
30590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30591   *) ac_try_echo=$ac_try;;
30592 esac
30593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30594   (eval "$ac_link") 2>conftest.er1
30595   ac_status=$?
30596   grep -v '^ *+' conftest.er1 >conftest.err
30597   rm -f conftest.er1
30598   cat conftest.err >&5
30599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30600   (exit $ac_status); } && {
30601          test -z "$ac_c_werror_flag" ||
30602          test ! -s conftest.err
30603        } && test -s conftest$ac_exeext &&
30604        $as_test_x conftest$ac_exeext; then
30605   eval "if test -n \"$ac_lib\";then ac_cv_funclib_getnameinfo=$ac_lib; else ac_cv_funclib_getnameinfo=yes; fi";break
30606 else
30607   echo "$as_me: failed program was:" >&5
30608 sed 's/^/| /' conftest.$ac_ext >&5
30609
30610
30611 fi
30612
30613 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30614       conftest$ac_exeext conftest.$ac_ext
30615         done
30616         eval "ac_cv_funclib_getnameinfo=\${ac_cv_funclib_getnameinfo-no}"
30617         LIBS="$ac_save_LIBS"
30618 fi
30619
30620 fi
30621
30622
30623 eval "ac_res=\$ac_cv_funclib_getnameinfo"
30624
30625 if false; then
30626
30627 for ac_func in getnameinfo
30628 do
30629 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30630 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30631 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30632 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30633   echo $ECHO_N "(cached) $ECHO_C" >&6
30634 else
30635   cat >conftest.$ac_ext <<_ACEOF
30636 /* confdefs.h.  */
30637 _ACEOF
30638 cat confdefs.h >>conftest.$ac_ext
30639 cat >>conftest.$ac_ext <<_ACEOF
30640 /* end confdefs.h.  */
30641 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30642    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30643 #define $ac_func innocuous_$ac_func
30644
30645 /* System header to define __stub macros and hopefully few prototypes,
30646     which can conflict with char $ac_func (); below.
30647     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30648     <limits.h> exists even on freestanding compilers.  */
30649
30650 #ifdef __STDC__
30651 # include <limits.h>
30652 #else
30653 # include <assert.h>
30654 #endif
30655
30656 #undef $ac_func
30657
30658 /* Override any GCC internal prototype to avoid an error.
30659    Use char because int might match the return type of a GCC
30660    builtin and then its argument prototype would still apply.  */
30661 #ifdef __cplusplus
30662 extern "C"
30663 #endif
30664 char $ac_func ();
30665 /* The GNU C library defines this for functions which it implements
30666     to always fail with ENOSYS.  Some functions are actually named
30667     something starting with __ and the normal name is an alias.  */
30668 #if defined __stub_$ac_func || defined __stub___$ac_func
30669 choke me
30670 #endif
30671
30672 int
30673 main ()
30674 {
30675 return $ac_func ();
30676   ;
30677   return 0;
30678 }
30679 _ACEOF
30680 rm -f conftest.$ac_objext conftest$ac_exeext
30681 if { (ac_try="$ac_link"
30682 case "(($ac_try" in
30683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30684   *) ac_try_echo=$ac_try;;
30685 esac
30686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30687   (eval "$ac_link") 2>conftest.er1
30688   ac_status=$?
30689   grep -v '^ *+' conftest.er1 >conftest.err
30690   rm -f conftest.er1
30691   cat conftest.err >&5
30692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30693   (exit $ac_status); } && {
30694          test -z "$ac_c_werror_flag" ||
30695          test ! -s conftest.err
30696        } && test -s conftest$ac_exeext &&
30697        $as_test_x conftest$ac_exeext; then
30698   eval "$as_ac_var=yes"
30699 else
30700   echo "$as_me: failed program was:" >&5
30701 sed 's/^/| /' conftest.$ac_ext >&5
30702
30703         eval "$as_ac_var=no"
30704 fi
30705
30706 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30707       conftest$ac_exeext conftest.$ac_ext
30708 fi
30709 ac_res=`eval echo '${'$as_ac_var'}'`
30710                { echo "$as_me:$LINENO: result: $ac_res" >&5
30711 echo "${ECHO_T}$ac_res" >&6; }
30712 if test `eval echo '${'$as_ac_var'}'` = yes; then
30713   cat >>confdefs.h <<_ACEOF
30714 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30715 _ACEOF
30716
30717 fi
30718 done
30719
30720 fi
30721 # getnameinfo
30722 eval "ac_tr_func=HAVE_`echo getnameinfo | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
30723 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
30724 eval "LIB_getnameinfo=$ac_res"
30725
30726 case "$ac_res" in
30727         yes)
30728         eval "ac_cv_func_getnameinfo=yes"
30729         eval "LIB_getnameinfo="
30730         cat >>confdefs.h <<_ACEOF
30731 #define $ac_tr_func 1
30732 _ACEOF
30733
30734         { echo "$as_me:$LINENO: result: yes" >&5
30735 echo "${ECHO_T}yes" >&6; }
30736         ;;
30737         no)
30738         eval "ac_cv_func_getnameinfo=no"
30739         eval "LIB_getnameinfo="
30740         { echo "$as_me:$LINENO: result: no" >&5
30741 echo "${ECHO_T}no" >&6; }
30742         ;;
30743         *)
30744         eval "ac_cv_func_getnameinfo=yes"
30745         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
30746         cat >>confdefs.h <<_ACEOF
30747 #define $ac_tr_func 1
30748 _ACEOF
30749
30750         cat >>confdefs.h <<_ACEOF
30751 #define $ac_tr_lib 1
30752 _ACEOF
30753
30754         { echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
30755 echo "${ECHO_T}yes, in $ac_res" >&6; }
30756         ;;
30757 esac
30758
30759
30760 if test -n "$LIB_getnameinfo"; then
30761         LIBS="$LIB_getnameinfo $LIBS"
30762 fi
30763
30764 if eval "test \"$ac_cv_func_getnameinfo\" != yes"; then
30765         case " $LIBOBJS " in
30766   *" getnameinfo.$ac_objext "* ) ;;
30767   *) LIBOBJS="$LIBOBJS getnameinfo.$ac_objext"
30768  ;;
30769 esac
30770
30771 fi
30772
30773
30774
30775
30776
30777
30778 { echo "$as_me:$LINENO: checking for freeaddrinfo" >&5
30779 echo $ECHO_N "checking for freeaddrinfo... $ECHO_C" >&6; }
30780 if test "${ac_cv_funclib_freeaddrinfo+set}" = set; then
30781   echo $ECHO_N "(cached) $ECHO_C" >&6
30782 else
30783
30784 if eval "test \"\$ac_cv_func_freeaddrinfo\" != yes" ; then
30785         ac_save_LIBS="$LIBS"
30786         for ac_lib in "" ; do
30787                 case "$ac_lib" in
30788                 "") ;;
30789                 yes) ac_lib="" ;;
30790                 no) continue ;;
30791                 -l*) ;;
30792                 *) ac_lib="-l$ac_lib" ;;
30793                 esac
30794                 LIBS=" $ac_lib  $ac_save_LIBS"
30795                 cat >conftest.$ac_ext <<_ACEOF
30796 /* confdefs.h.  */
30797 _ACEOF
30798 cat confdefs.h >>conftest.$ac_ext
30799 cat >>conftest.$ac_ext <<_ACEOF
30800 /* end confdefs.h.  */
30801 #ifdef HAVE_NETDB_H
30802 #include <netdb.h>
30803 #endif
30804 int
30805 main ()
30806 {
30807 freeaddrinfo(0)
30808   ;
30809   return 0;
30810 }
30811 _ACEOF
30812 rm -f conftest.$ac_objext conftest$ac_exeext
30813 if { (ac_try="$ac_link"
30814 case "(($ac_try" in
30815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30816   *) ac_try_echo=$ac_try;;
30817 esac
30818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30819   (eval "$ac_link") 2>conftest.er1
30820   ac_status=$?
30821   grep -v '^ *+' conftest.er1 >conftest.err
30822   rm -f conftest.er1
30823   cat conftest.err >&5
30824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30825   (exit $ac_status); } && {
30826          test -z "$ac_c_werror_flag" ||
30827          test ! -s conftest.err
30828        } && test -s conftest$ac_exeext &&
30829        $as_test_x conftest$ac_exeext; then
30830   eval "if test -n \"$ac_lib\";then ac_cv_funclib_freeaddrinfo=$ac_lib; else ac_cv_funclib_freeaddrinfo=yes; fi";break
30831 else
30832   echo "$as_me: failed program was:" >&5
30833 sed 's/^/| /' conftest.$ac_ext >&5
30834
30835
30836 fi
30837
30838 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30839       conftest$ac_exeext conftest.$ac_ext
30840         done
30841         eval "ac_cv_funclib_freeaddrinfo=\${ac_cv_funclib_freeaddrinfo-no}"
30842         LIBS="$ac_save_LIBS"
30843 fi
30844
30845 fi
30846
30847
30848 eval "ac_res=\$ac_cv_funclib_freeaddrinfo"
30849
30850 if false; then
30851
30852 for ac_func in freeaddrinfo
30853 do
30854 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30855 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30856 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30857 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30858   echo $ECHO_N "(cached) $ECHO_C" >&6
30859 else
30860   cat >conftest.$ac_ext <<_ACEOF
30861 /* confdefs.h.  */
30862 _ACEOF
30863 cat confdefs.h >>conftest.$ac_ext
30864 cat >>conftest.$ac_ext <<_ACEOF
30865 /* end confdefs.h.  */
30866 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30867    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30868 #define $ac_func innocuous_$ac_func
30869
30870 /* System header to define __stub macros and hopefully few prototypes,
30871     which can conflict with char $ac_func (); below.
30872     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30873     <limits.h> exists even on freestanding compilers.  */
30874
30875 #ifdef __STDC__
30876 # include <limits.h>
30877 #else
30878 # include <assert.h>
30879 #endif
30880
30881 #undef $ac_func
30882
30883 /* Override any GCC internal prototype to avoid an error.
30884    Use char because int might match the return type of a GCC
30885    builtin and then its argument prototype would still apply.  */
30886 #ifdef __cplusplus
30887 extern "C"
30888 #endif
30889 char $ac_func ();
30890 /* The GNU C library defines this for functions which it implements
30891     to always fail with ENOSYS.  Some functions are actually named
30892     something starting with __ and the normal name is an alias.  */
30893 #if defined __stub_$ac_func || defined __stub___$ac_func
30894 choke me
30895 #endif
30896
30897 int
30898 main ()
30899 {
30900 return $ac_func ();
30901   ;
30902   return 0;
30903 }
30904 _ACEOF
30905 rm -f conftest.$ac_objext conftest$ac_exeext
30906 if { (ac_try="$ac_link"
30907 case "(($ac_try" in
30908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30909   *) ac_try_echo=$ac_try;;
30910 esac
30911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30912   (eval "$ac_link") 2>conftest.er1
30913   ac_status=$?
30914   grep -v '^ *+' conftest.er1 >conftest.err
30915   rm -f conftest.er1
30916   cat conftest.err >&5
30917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30918   (exit $ac_status); } && {
30919          test -z "$ac_c_werror_flag" ||
30920          test ! -s conftest.err
30921        } && test -s conftest$ac_exeext &&
30922        $as_test_x conftest$ac_exeext; then
30923   eval "$as_ac_var=yes"
30924 else
30925   echo "$as_me: failed program was:" >&5
30926 sed 's/^/| /' conftest.$ac_ext >&5
30927
30928         eval "$as_ac_var=no"
30929 fi
30930
30931 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30932       conftest$ac_exeext conftest.$ac_ext
30933 fi
30934 ac_res=`eval echo '${'$as_ac_var'}'`
30935                { echo "$as_me:$LINENO: result: $ac_res" >&5
30936 echo "${ECHO_T}$ac_res" >&6; }
30937 if test `eval echo '${'$as_ac_var'}'` = yes; then
30938   cat >>confdefs.h <<_ACEOF
30939 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30940 _ACEOF
30941
30942 fi
30943 done
30944
30945 fi
30946 # freeaddrinfo
30947 eval "ac_tr_func=HAVE_`echo freeaddrinfo | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
30948 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
30949 eval "LIB_freeaddrinfo=$ac_res"
30950
30951 case "$ac_res" in
30952         yes)
30953         eval "ac_cv_func_freeaddrinfo=yes"
30954         eval "LIB_freeaddrinfo="
30955         cat >>confdefs.h <<_ACEOF
30956 #define $ac_tr_func 1
30957 _ACEOF
30958
30959         { echo "$as_me:$LINENO: result: yes" >&5
30960 echo "${ECHO_T}yes" >&6; }
30961         ;;
30962         no)
30963         eval "ac_cv_func_freeaddrinfo=no"
30964         eval "LIB_freeaddrinfo="
30965         { echo "$as_me:$LINENO: result: no" >&5
30966 echo "${ECHO_T}no" >&6; }
30967         ;;
30968         *)
30969         eval "ac_cv_func_freeaddrinfo=yes"
30970         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
30971         cat >>confdefs.h <<_ACEOF
30972 #define $ac_tr_func 1
30973 _ACEOF
30974
30975         cat >>confdefs.h <<_ACEOF
30976 #define $ac_tr_lib 1
30977 _ACEOF
30978
30979         { echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
30980 echo "${ECHO_T}yes, in $ac_res" >&6; }
30981         ;;
30982 esac
30983
30984
30985 if test -n "$LIB_freeaddrinfo"; then
30986         LIBS="$LIB_freeaddrinfo $LIBS"
30987 fi
30988
30989 if eval "test \"$ac_cv_func_freeaddrinfo\" != yes"; then
30990         case " $LIBOBJS " in
30991   *" freeaddrinfo.$ac_objext "* ) ;;
30992   *) LIBOBJS="$LIBOBJS freeaddrinfo.$ac_objext"
30993  ;;
30994 esac
30995
30996 fi
30997
30998
30999
31000
31001
31002
31003 { echo "$as_me:$LINENO: checking for gai_strerror" >&5
31004 echo $ECHO_N "checking for gai_strerror... $ECHO_C" >&6; }
31005 if test "${ac_cv_funclib_gai_strerror+set}" = set; then
31006   echo $ECHO_N "(cached) $ECHO_C" >&6
31007 else
31008
31009 if eval "test \"\$ac_cv_func_gai_strerror\" != yes" ; then
31010         ac_save_LIBS="$LIBS"
31011         for ac_lib in "" ; do
31012                 case "$ac_lib" in
31013                 "") ;;
31014                 yes) ac_lib="" ;;
31015                 no) continue ;;
31016                 -l*) ;;
31017                 *) ac_lib="-l$ac_lib" ;;
31018                 esac
31019                 LIBS=" $ac_lib  $ac_save_LIBS"
31020                 cat >conftest.$ac_ext <<_ACEOF
31021 /* confdefs.h.  */
31022 _ACEOF
31023 cat confdefs.h >>conftest.$ac_ext
31024 cat >>conftest.$ac_ext <<_ACEOF
31025 /* end confdefs.h.  */
31026 #ifdef HAVE_NETDB_H
31027 #include <netdb.h>
31028 #endif
31029 int
31030 main ()
31031 {
31032 gai_strerror(0)
31033   ;
31034   return 0;
31035 }
31036 _ACEOF
31037 rm -f conftest.$ac_objext conftest$ac_exeext
31038 if { (ac_try="$ac_link"
31039 case "(($ac_try" in
31040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31041   *) ac_try_echo=$ac_try;;
31042 esac
31043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31044   (eval "$ac_link") 2>conftest.er1
31045   ac_status=$?
31046   grep -v '^ *+' conftest.er1 >conftest.err
31047   rm -f conftest.er1
31048   cat conftest.err >&5
31049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31050   (exit $ac_status); } && {
31051          test -z "$ac_c_werror_flag" ||
31052          test ! -s conftest.err
31053        } && test -s conftest$ac_exeext &&
31054        $as_test_x conftest$ac_exeext; then
31055   eval "if test -n \"$ac_lib\";then ac_cv_funclib_gai_strerror=$ac_lib; else ac_cv_funclib_gai_strerror=yes; fi";break
31056 else
31057   echo "$as_me: failed program was:" >&5
31058 sed 's/^/| /' conftest.$ac_ext >&5
31059
31060
31061 fi
31062
31063 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31064       conftest$ac_exeext conftest.$ac_ext
31065         done
31066         eval "ac_cv_funclib_gai_strerror=\${ac_cv_funclib_gai_strerror-no}"
31067         LIBS="$ac_save_LIBS"
31068 fi
31069
31070 fi
31071
31072
31073 eval "ac_res=\$ac_cv_funclib_gai_strerror"
31074
31075 if false; then
31076
31077 for ac_func in gai_strerror
31078 do
31079 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31080 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31081 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31082 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31083   echo $ECHO_N "(cached) $ECHO_C" >&6
31084 else
31085   cat >conftest.$ac_ext <<_ACEOF
31086 /* confdefs.h.  */
31087 _ACEOF
31088 cat confdefs.h >>conftest.$ac_ext
31089 cat >>conftest.$ac_ext <<_ACEOF
31090 /* end confdefs.h.  */
31091 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31092    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31093 #define $ac_func innocuous_$ac_func
31094
31095 /* System header to define __stub macros and hopefully few prototypes,
31096     which can conflict with char $ac_func (); below.
31097     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31098     <limits.h> exists even on freestanding compilers.  */
31099
31100 #ifdef __STDC__
31101 # include <limits.h>
31102 #else
31103 # include <assert.h>
31104 #endif
31105
31106 #undef $ac_func
31107
31108 /* Override any GCC internal prototype to avoid an error.
31109    Use char because int might match the return type of a GCC
31110    builtin and then its argument prototype would still apply.  */
31111 #ifdef __cplusplus
31112 extern "C"
31113 #endif
31114 char $ac_func ();
31115 /* The GNU C library defines this for functions which it implements
31116     to always fail with ENOSYS.  Some functions are actually named
31117     something starting with __ and the normal name is an alias.  */
31118 #if defined __stub_$ac_func || defined __stub___$ac_func
31119 choke me
31120 #endif
31121
31122 int
31123 main ()
31124 {
31125 return $ac_func ();
31126   ;
31127   return 0;
31128 }
31129 _ACEOF
31130 rm -f conftest.$ac_objext conftest$ac_exeext
31131 if { (ac_try="$ac_link"
31132 case "(($ac_try" in
31133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31134   *) ac_try_echo=$ac_try;;
31135 esac
31136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31137   (eval "$ac_link") 2>conftest.er1
31138   ac_status=$?
31139   grep -v '^ *+' conftest.er1 >conftest.err
31140   rm -f conftest.er1
31141   cat conftest.err >&5
31142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31143   (exit $ac_status); } && {
31144          test -z "$ac_c_werror_flag" ||
31145          test ! -s conftest.err
31146        } && test -s conftest$ac_exeext &&
31147        $as_test_x conftest$ac_exeext; then
31148   eval "$as_ac_var=yes"
31149 else
31150   echo "$as_me: failed program was:" >&5
31151 sed 's/^/| /' conftest.$ac_ext >&5
31152
31153         eval "$as_ac_var=no"
31154 fi
31155
31156 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31157       conftest$ac_exeext conftest.$ac_ext
31158 fi
31159 ac_res=`eval echo '${'$as_ac_var'}'`
31160                { echo "$as_me:$LINENO: result: $ac_res" >&5
31161 echo "${ECHO_T}$ac_res" >&6; }
31162 if test `eval echo '${'$as_ac_var'}'` = yes; then
31163   cat >>confdefs.h <<_ACEOF
31164 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31165 _ACEOF
31166
31167 fi
31168 done
31169
31170 fi
31171 # gai_strerror
31172 eval "ac_tr_func=HAVE_`echo gai_strerror | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
31173 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
31174 eval "LIB_gai_strerror=$ac_res"
31175
31176 case "$ac_res" in
31177         yes)
31178         eval "ac_cv_func_gai_strerror=yes"
31179         eval "LIB_gai_strerror="
31180         cat >>confdefs.h <<_ACEOF
31181 #define $ac_tr_func 1
31182 _ACEOF
31183
31184         { echo "$as_me:$LINENO: result: yes" >&5
31185 echo "${ECHO_T}yes" >&6; }
31186         ;;
31187         no)
31188         eval "ac_cv_func_gai_strerror=no"
31189         eval "LIB_gai_strerror="
31190         { echo "$as_me:$LINENO: result: no" >&5
31191 echo "${ECHO_T}no" >&6; }
31192         ;;
31193         *)
31194         eval "ac_cv_func_gai_strerror=yes"
31195         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
31196         cat >>confdefs.h <<_ACEOF
31197 #define $ac_tr_func 1
31198 _ACEOF
31199
31200         cat >>confdefs.h <<_ACEOF
31201 #define $ac_tr_lib 1
31202 _ACEOF
31203
31204         { echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
31205 echo "${ECHO_T}yes, in $ac_res" >&6; }
31206         ;;
31207 esac
31208
31209
31210 if test -n "$LIB_gai_strerror"; then
31211         LIBS="$LIB_gai_strerror $LIBS"
31212 fi
31213
31214 if eval "test \"$ac_cv_func_gai_strerror\" != yes"; then
31215         case " $LIBOBJS " in
31216   *" gai_strerror.$ac_objext "* ) ;;
31217   *) LIBOBJS="$LIBOBJS gai_strerror.$ac_objext"
31218  ;;
31219 esac
31220
31221 fi
31222
31223
31224 { echo "$as_me:$LINENO: checking for chown" >&5
31225 echo $ECHO_N "checking for chown... $ECHO_C" >&6; }
31226 if test "${ac_cv_func_chown+set}" = set; then
31227   echo $ECHO_N "(cached) $ECHO_C" >&6
31228 else
31229   cat >conftest.$ac_ext <<_ACEOF
31230 /* confdefs.h.  */
31231 _ACEOF
31232 cat confdefs.h >>conftest.$ac_ext
31233 cat >>conftest.$ac_ext <<_ACEOF
31234 /* end confdefs.h.  */
31235 /* Define chown to an innocuous variant, in case <limits.h> declares chown.
31236    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31237 #define chown innocuous_chown
31238
31239 /* System header to define __stub macros and hopefully few prototypes,
31240     which can conflict with char chown (); below.
31241     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31242     <limits.h> exists even on freestanding compilers.  */
31243
31244 #ifdef __STDC__
31245 # include <limits.h>
31246 #else
31247 # include <assert.h>
31248 #endif
31249
31250 #undef chown
31251
31252 /* Override any GCC internal prototype to avoid an error.
31253    Use char because int might match the return type of a GCC
31254    builtin and then its argument prototype would still apply.  */
31255 #ifdef __cplusplus
31256 extern "C"
31257 #endif
31258 char chown ();
31259 /* The GNU C library defines this for functions which it implements
31260     to always fail with ENOSYS.  Some functions are actually named
31261     something starting with __ and the normal name is an alias.  */
31262 #if defined __stub_chown || defined __stub___chown
31263 choke me
31264 #endif
31265
31266 int
31267 main ()
31268 {
31269 return chown ();
31270   ;
31271   return 0;
31272 }
31273 _ACEOF
31274 rm -f conftest.$ac_objext conftest$ac_exeext
31275 if { (ac_try="$ac_link"
31276 case "(($ac_try" in
31277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31278   *) ac_try_echo=$ac_try;;
31279 esac
31280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31281   (eval "$ac_link") 2>conftest.er1
31282   ac_status=$?
31283   grep -v '^ *+' conftest.er1 >conftest.err
31284   rm -f conftest.er1
31285   cat conftest.err >&5
31286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31287   (exit $ac_status); } && {
31288          test -z "$ac_c_werror_flag" ||
31289          test ! -s conftest.err
31290        } && test -s conftest$ac_exeext &&
31291        $as_test_x conftest$ac_exeext; then
31292   ac_cv_func_chown=yes
31293 else
31294   echo "$as_me: failed program was:" >&5
31295 sed 's/^/| /' conftest.$ac_ext >&5
31296
31297         ac_cv_func_chown=no
31298 fi
31299
31300 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31301       conftest$ac_exeext conftest.$ac_ext
31302 fi
31303 { echo "$as_me:$LINENO: result: $ac_cv_func_chown" >&5
31304 echo "${ECHO_T}$ac_cv_func_chown" >&6; }
31305 if test $ac_cv_func_chown = yes; then
31306
31307 cat >>confdefs.h <<_ACEOF
31308 #define HAVE_CHOWN 1
31309 _ACEOF
31310
31311 else
31312   case " $LIBOBJS " in
31313   *" chown.$ac_objext "* ) ;;
31314   *) LIBOBJS="$LIBOBJS chown.$ac_objext"
31315  ;;
31316 esac
31317
31318 fi
31319 { echo "$as_me:$LINENO: checking for copyhostent" >&5
31320 echo $ECHO_N "checking for copyhostent... $ECHO_C" >&6; }
31321 if test "${ac_cv_func_copyhostent+set}" = set; then
31322   echo $ECHO_N "(cached) $ECHO_C" >&6
31323 else
31324   cat >conftest.$ac_ext <<_ACEOF
31325 /* confdefs.h.  */
31326 _ACEOF
31327 cat confdefs.h >>conftest.$ac_ext
31328 cat >>conftest.$ac_ext <<_ACEOF
31329 /* end confdefs.h.  */
31330 /* Define copyhostent to an innocuous variant, in case <limits.h> declares copyhostent.
31331    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31332 #define copyhostent innocuous_copyhostent
31333
31334 /* System header to define __stub macros and hopefully few prototypes,
31335     which can conflict with char copyhostent (); below.
31336     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31337     <limits.h> exists even on freestanding compilers.  */
31338
31339 #ifdef __STDC__
31340 # include <limits.h>
31341 #else
31342 # include <assert.h>
31343 #endif
31344
31345 #undef copyhostent
31346
31347 /* Override any GCC internal prototype to avoid an error.
31348    Use char because int might match the return type of a GCC
31349    builtin and then its argument prototype would still apply.  */
31350 #ifdef __cplusplus
31351 extern "C"
31352 #endif
31353 char copyhostent ();
31354 /* The GNU C library defines this for functions which it implements
31355     to always fail with ENOSYS.  Some functions are actually named
31356     something starting with __ and the normal name is an alias.  */
31357 #if defined __stub_copyhostent || defined __stub___copyhostent
31358 choke me
31359 #endif
31360
31361 int
31362 main ()
31363 {
31364 return copyhostent ();
31365   ;
31366   return 0;
31367 }
31368 _ACEOF
31369 rm -f conftest.$ac_objext conftest$ac_exeext
31370 if { (ac_try="$ac_link"
31371 case "(($ac_try" in
31372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31373   *) ac_try_echo=$ac_try;;
31374 esac
31375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31376   (eval "$ac_link") 2>conftest.er1
31377   ac_status=$?
31378   grep -v '^ *+' conftest.er1 >conftest.err
31379   rm -f conftest.er1
31380   cat conftest.err >&5
31381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31382   (exit $ac_status); } && {
31383          test -z "$ac_c_werror_flag" ||
31384          test ! -s conftest.err
31385        } && test -s conftest$ac_exeext &&
31386        $as_test_x conftest$ac_exeext; then
31387   ac_cv_func_copyhostent=yes
31388 else
31389   echo "$as_me: failed program was:" >&5
31390 sed 's/^/| /' conftest.$ac_ext >&5
31391
31392         ac_cv_func_copyhostent=no
31393 fi
31394
31395 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31396       conftest$ac_exeext conftest.$ac_ext
31397 fi
31398 { echo "$as_me:$LINENO: result: $ac_cv_func_copyhostent" >&5
31399 echo "${ECHO_T}$ac_cv_func_copyhostent" >&6; }
31400 if test $ac_cv_func_copyhostent = yes; then
31401
31402 cat >>confdefs.h <<_ACEOF
31403 #define HAVE_COPYHOSTENT 1
31404 _ACEOF
31405
31406 else
31407   case " $LIBOBJS " in
31408   *" copyhostent.$ac_objext "* ) ;;
31409   *) LIBOBJS="$LIBOBJS copyhostent.$ac_objext"
31410  ;;
31411 esac
31412
31413 fi
31414 { echo "$as_me:$LINENO: checking for closefrom" >&5
31415 echo $ECHO_N "checking for closefrom... $ECHO_C" >&6; }
31416 if test "${ac_cv_func_closefrom+set}" = set; then
31417   echo $ECHO_N "(cached) $ECHO_C" >&6
31418 else
31419   cat >conftest.$ac_ext <<_ACEOF
31420 /* confdefs.h.  */
31421 _ACEOF
31422 cat confdefs.h >>conftest.$ac_ext
31423 cat >>conftest.$ac_ext <<_ACEOF
31424 /* end confdefs.h.  */
31425 /* Define closefrom to an innocuous variant, in case <limits.h> declares closefrom.
31426    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31427 #define closefrom innocuous_closefrom
31428
31429 /* System header to define __stub macros and hopefully few prototypes,
31430     which can conflict with char closefrom (); below.
31431     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31432     <limits.h> exists even on freestanding compilers.  */
31433
31434 #ifdef __STDC__
31435 # include <limits.h>
31436 #else
31437 # include <assert.h>
31438 #endif
31439
31440 #undef closefrom
31441
31442 /* Override any GCC internal prototype to avoid an error.
31443    Use char because int might match the return type of a GCC
31444    builtin and then its argument prototype would still apply.  */
31445 #ifdef __cplusplus
31446 extern "C"
31447 #endif
31448 char closefrom ();
31449 /* The GNU C library defines this for functions which it implements
31450     to always fail with ENOSYS.  Some functions are actually named
31451     something starting with __ and the normal name is an alias.  */
31452 #if defined __stub_closefrom || defined __stub___closefrom
31453 choke me
31454 #endif
31455
31456 int
31457 main ()
31458 {
31459 return closefrom ();
31460   ;
31461   return 0;
31462 }
31463 _ACEOF
31464 rm -f conftest.$ac_objext conftest$ac_exeext
31465 if { (ac_try="$ac_link"
31466 case "(($ac_try" in
31467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31468   *) ac_try_echo=$ac_try;;
31469 esac
31470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31471   (eval "$ac_link") 2>conftest.er1
31472   ac_status=$?
31473   grep -v '^ *+' conftest.er1 >conftest.err
31474   rm -f conftest.er1
31475   cat conftest.err >&5
31476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31477   (exit $ac_status); } && {
31478          test -z "$ac_c_werror_flag" ||
31479          test ! -s conftest.err
31480        } && test -s conftest$ac_exeext &&
31481        $as_test_x conftest$ac_exeext; then
31482   ac_cv_func_closefrom=yes
31483 else
31484   echo "$as_me: failed program was:" >&5
31485 sed 's/^/| /' conftest.$ac_ext >&5
31486
31487         ac_cv_func_closefrom=no
31488 fi
31489
31490 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31491       conftest$ac_exeext conftest.$ac_ext
31492 fi
31493 { echo "$as_me:$LINENO: result: $ac_cv_func_closefrom" >&5
31494 echo "${ECHO_T}$ac_cv_func_closefrom" >&6; }
31495 if test $ac_cv_func_closefrom = yes; then
31496
31497 cat >>confdefs.h <<_ACEOF
31498 #define HAVE_CLOSEFROM 1
31499 _ACEOF
31500
31501 else
31502   case " $LIBOBJS " in
31503   *" closefrom.$ac_objext "* ) ;;
31504   *) LIBOBJS="$LIBOBJS closefrom.$ac_objext"
31505  ;;
31506 esac
31507
31508 fi
31509 { echo "$as_me:$LINENO: checking for daemon" >&5
31510 echo $ECHO_N "checking for daemon... $ECHO_C" >&6; }
31511 if test "${ac_cv_func_daemon+set}" = set; then
31512   echo $ECHO_N "(cached) $ECHO_C" >&6
31513 else
31514   cat >conftest.$ac_ext <<_ACEOF
31515 /* confdefs.h.  */
31516 _ACEOF
31517 cat confdefs.h >>conftest.$ac_ext
31518 cat >>conftest.$ac_ext <<_ACEOF
31519 /* end confdefs.h.  */
31520 /* Define daemon to an innocuous variant, in case <limits.h> declares daemon.
31521    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31522 #define daemon innocuous_daemon
31523
31524 /* System header to define __stub macros and hopefully few prototypes,
31525     which can conflict with char daemon (); below.
31526     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31527     <limits.h> exists even on freestanding compilers.  */
31528
31529 #ifdef __STDC__
31530 # include <limits.h>
31531 #else
31532 # include <assert.h>
31533 #endif
31534
31535 #undef daemon
31536
31537 /* Override any GCC internal prototype to avoid an error.
31538    Use char because int might match the return type of a GCC
31539    builtin and then its argument prototype would still apply.  */
31540 #ifdef __cplusplus
31541 extern "C"
31542 #endif
31543 char daemon ();
31544 /* The GNU C library defines this for functions which it implements
31545     to always fail with ENOSYS.  Some functions are actually named
31546     something starting with __ and the normal name is an alias.  */
31547 #if defined __stub_daemon || defined __stub___daemon
31548 choke me
31549 #endif
31550
31551 int
31552 main ()
31553 {
31554 return daemon ();
31555   ;
31556   return 0;
31557 }
31558 _ACEOF
31559 rm -f conftest.$ac_objext conftest$ac_exeext
31560 if { (ac_try="$ac_link"
31561 case "(($ac_try" in
31562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31563   *) ac_try_echo=$ac_try;;
31564 esac
31565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31566   (eval "$ac_link") 2>conftest.er1
31567   ac_status=$?
31568   grep -v '^ *+' conftest.er1 >conftest.err
31569   rm -f conftest.er1
31570   cat conftest.err >&5
31571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31572   (exit $ac_status); } && {
31573          test -z "$ac_c_werror_flag" ||
31574          test ! -s conftest.err
31575        } && test -s conftest$ac_exeext &&
31576        $as_test_x conftest$ac_exeext; then
31577   ac_cv_func_daemon=yes
31578 else
31579   echo "$as_me: failed program was:" >&5
31580 sed 's/^/| /' conftest.$ac_ext >&5
31581
31582         ac_cv_func_daemon=no
31583 fi
31584
31585 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31586       conftest$ac_exeext conftest.$ac_ext
31587 fi
31588 { echo "$as_me:$LINENO: result: $ac_cv_func_daemon" >&5
31589 echo "${ECHO_T}$ac_cv_func_daemon" >&6; }
31590 if test $ac_cv_func_daemon = yes; then
31591
31592 cat >>confdefs.h <<_ACEOF
31593 #define HAVE_DAEMON 1
31594 _ACEOF
31595
31596 else
31597   case " $LIBOBJS " in
31598   *" daemon.$ac_objext "* ) ;;
31599   *) LIBOBJS="$LIBOBJS daemon.$ac_objext"
31600  ;;
31601 esac
31602
31603 fi
31604 { echo "$as_me:$LINENO: checking for ecalloc" >&5
31605 echo $ECHO_N "checking for ecalloc... $ECHO_C" >&6; }
31606 if test "${ac_cv_func_ecalloc+set}" = set; then
31607   echo $ECHO_N "(cached) $ECHO_C" >&6
31608 else
31609   cat >conftest.$ac_ext <<_ACEOF
31610 /* confdefs.h.  */
31611 _ACEOF
31612 cat confdefs.h >>conftest.$ac_ext
31613 cat >>conftest.$ac_ext <<_ACEOF
31614 /* end confdefs.h.  */
31615 /* Define ecalloc to an innocuous variant, in case <limits.h> declares ecalloc.
31616    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31617 #define ecalloc innocuous_ecalloc
31618
31619 /* System header to define __stub macros and hopefully few prototypes,
31620     which can conflict with char ecalloc (); below.
31621     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31622     <limits.h> exists even on freestanding compilers.  */
31623
31624 #ifdef __STDC__
31625 # include <limits.h>
31626 #else
31627 # include <assert.h>
31628 #endif
31629
31630 #undef ecalloc
31631
31632 /* Override any GCC internal prototype to avoid an error.
31633    Use char because int might match the return type of a GCC
31634    builtin and then its argument prototype would still apply.  */
31635 #ifdef __cplusplus
31636 extern "C"
31637 #endif
31638 char ecalloc ();
31639 /* The GNU C library defines this for functions which it implements
31640     to always fail with ENOSYS.  Some functions are actually named
31641     something starting with __ and the normal name is an alias.  */
31642 #if defined __stub_ecalloc || defined __stub___ecalloc
31643 choke me
31644 #endif
31645
31646 int
31647 main ()
31648 {
31649 return ecalloc ();
31650   ;
31651   return 0;
31652 }
31653 _ACEOF
31654 rm -f conftest.$ac_objext conftest$ac_exeext
31655 if { (ac_try="$ac_link"
31656 case "(($ac_try" in
31657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31658   *) ac_try_echo=$ac_try;;
31659 esac
31660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31661   (eval "$ac_link") 2>conftest.er1
31662   ac_status=$?
31663   grep -v '^ *+' conftest.er1 >conftest.err
31664   rm -f conftest.er1
31665   cat conftest.err >&5
31666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31667   (exit $ac_status); } && {
31668          test -z "$ac_c_werror_flag" ||
31669          test ! -s conftest.err
31670        } && test -s conftest$ac_exeext &&
31671        $as_test_x conftest$ac_exeext; then
31672   ac_cv_func_ecalloc=yes
31673 else
31674   echo "$as_me: failed program was:" >&5
31675 sed 's/^/| /' conftest.$ac_ext >&5
31676
31677         ac_cv_func_ecalloc=no
31678 fi
31679
31680 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31681       conftest$ac_exeext conftest.$ac_ext
31682 fi
31683 { echo "$as_me:$LINENO: result: $ac_cv_func_ecalloc" >&5
31684 echo "${ECHO_T}$ac_cv_func_ecalloc" >&6; }
31685 if test $ac_cv_func_ecalloc = yes; then
31686
31687 cat >>confdefs.h <<_ACEOF
31688 #define HAVE_ECALLOC 1
31689 _ACEOF
31690
31691 else
31692   case " $LIBOBJS " in
31693   *" ecalloc.$ac_objext "* ) ;;
31694   *) LIBOBJS="$LIBOBJS ecalloc.$ac_objext"
31695  ;;
31696 esac
31697
31698 fi
31699 { echo "$as_me:$LINENO: checking for emalloc" >&5
31700 echo $ECHO_N "checking for emalloc... $ECHO_C" >&6; }
31701 if test "${ac_cv_func_emalloc+set}" = set; then
31702   echo $ECHO_N "(cached) $ECHO_C" >&6
31703 else
31704   cat >conftest.$ac_ext <<_ACEOF
31705 /* confdefs.h.  */
31706 _ACEOF
31707 cat confdefs.h >>conftest.$ac_ext
31708 cat >>conftest.$ac_ext <<_ACEOF
31709 /* end confdefs.h.  */
31710 /* Define emalloc to an innocuous variant, in case <limits.h> declares emalloc.
31711    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31712 #define emalloc innocuous_emalloc
31713
31714 /* System header to define __stub macros and hopefully few prototypes,
31715     which can conflict with char emalloc (); below.
31716     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31717     <limits.h> exists even on freestanding compilers.  */
31718
31719 #ifdef __STDC__
31720 # include <limits.h>
31721 #else
31722 # include <assert.h>
31723 #endif
31724
31725 #undef emalloc
31726
31727 /* Override any GCC internal prototype to avoid an error.
31728    Use char because int might match the return type of a GCC
31729    builtin and then its argument prototype would still apply.  */
31730 #ifdef __cplusplus
31731 extern "C"
31732 #endif
31733 char emalloc ();
31734 /* The GNU C library defines this for functions which it implements
31735     to always fail with ENOSYS.  Some functions are actually named
31736     something starting with __ and the normal name is an alias.  */
31737 #if defined __stub_emalloc || defined __stub___emalloc
31738 choke me
31739 #endif
31740
31741 int
31742 main ()
31743 {
31744 return emalloc ();
31745   ;
31746   return 0;
31747 }
31748 _ACEOF
31749 rm -f conftest.$ac_objext conftest$ac_exeext
31750 if { (ac_try="$ac_link"
31751 case "(($ac_try" in
31752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31753   *) ac_try_echo=$ac_try;;
31754 esac
31755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31756   (eval "$ac_link") 2>conftest.er1
31757   ac_status=$?
31758   grep -v '^ *+' conftest.er1 >conftest.err
31759   rm -f conftest.er1
31760   cat conftest.err >&5
31761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31762   (exit $ac_status); } && {
31763          test -z "$ac_c_werror_flag" ||
31764          test ! -s conftest.err
31765        } && test -s conftest$ac_exeext &&
31766        $as_test_x conftest$ac_exeext; then
31767   ac_cv_func_emalloc=yes
31768 else
31769   echo "$as_me: failed program was:" >&5
31770 sed 's/^/| /' conftest.$ac_ext >&5
31771
31772         ac_cv_func_emalloc=no
31773 fi
31774
31775 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31776       conftest$ac_exeext conftest.$ac_ext
31777 fi
31778 { echo "$as_me:$LINENO: result: $ac_cv_func_emalloc" >&5
31779 echo "${ECHO_T}$ac_cv_func_emalloc" >&6; }
31780 if test $ac_cv_func_emalloc = yes; then
31781
31782 cat >>confdefs.h <<_ACEOF
31783 #define HAVE_EMALLOC 1
31784 _ACEOF
31785
31786 else
31787   case " $LIBOBJS " in
31788   *" emalloc.$ac_objext "* ) ;;
31789   *) LIBOBJS="$LIBOBJS emalloc.$ac_objext"
31790  ;;
31791 esac
31792
31793 fi
31794 { echo "$as_me:$LINENO: checking for erealloc" >&5
31795 echo $ECHO_N "checking for erealloc... $ECHO_C" >&6; }
31796 if test "${ac_cv_func_erealloc+set}" = set; then
31797   echo $ECHO_N "(cached) $ECHO_C" >&6
31798 else
31799   cat >conftest.$ac_ext <<_ACEOF
31800 /* confdefs.h.  */
31801 _ACEOF
31802 cat confdefs.h >>conftest.$ac_ext
31803 cat >>conftest.$ac_ext <<_ACEOF
31804 /* end confdefs.h.  */
31805 /* Define erealloc to an innocuous variant, in case <limits.h> declares erealloc.
31806    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31807 #define erealloc innocuous_erealloc
31808
31809 /* System header to define __stub macros and hopefully few prototypes,
31810     which can conflict with char erealloc (); below.
31811     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31812     <limits.h> exists even on freestanding compilers.  */
31813
31814 #ifdef __STDC__
31815 # include <limits.h>
31816 #else
31817 # include <assert.h>
31818 #endif
31819
31820 #undef erealloc
31821
31822 /* Override any GCC internal prototype to avoid an error.
31823    Use char because int might match the return type of a GCC
31824    builtin and then its argument prototype would still apply.  */
31825 #ifdef __cplusplus
31826 extern "C"
31827 #endif
31828 char erealloc ();
31829 /* The GNU C library defines this for functions which it implements
31830     to always fail with ENOSYS.  Some functions are actually named
31831     something starting with __ and the normal name is an alias.  */
31832 #if defined __stub_erealloc || defined __stub___erealloc
31833 choke me
31834 #endif
31835
31836 int
31837 main ()
31838 {
31839 return erealloc ();
31840   ;
31841   return 0;
31842 }
31843 _ACEOF
31844 rm -f conftest.$ac_objext conftest$ac_exeext
31845 if { (ac_try="$ac_link"
31846 case "(($ac_try" in
31847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31848   *) ac_try_echo=$ac_try;;
31849 esac
31850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31851   (eval "$ac_link") 2>conftest.er1
31852   ac_status=$?
31853   grep -v '^ *+' conftest.er1 >conftest.err
31854   rm -f conftest.er1
31855   cat conftest.err >&5
31856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31857   (exit $ac_status); } && {
31858          test -z "$ac_c_werror_flag" ||
31859          test ! -s conftest.err
31860        } && test -s conftest$ac_exeext &&
31861        $as_test_x conftest$ac_exeext; then
31862   ac_cv_func_erealloc=yes
31863 else
31864   echo "$as_me: failed program was:" >&5
31865 sed 's/^/| /' conftest.$ac_ext >&5
31866
31867         ac_cv_func_erealloc=no
31868 fi
31869
31870 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31871       conftest$ac_exeext conftest.$ac_ext
31872 fi
31873 { echo "$as_me:$LINENO: result: $ac_cv_func_erealloc" >&5
31874 echo "${ECHO_T}$ac_cv_func_erealloc" >&6; }
31875 if test $ac_cv_func_erealloc = yes; then
31876
31877 cat >>confdefs.h <<_ACEOF
31878 #define HAVE_EREALLOC 1
31879 _ACEOF
31880
31881 else
31882   case " $LIBOBJS " in
31883   *" erealloc.$ac_objext "* ) ;;
31884   *) LIBOBJS="$LIBOBJS erealloc.$ac_objext"
31885  ;;
31886 esac
31887
31888 fi
31889 { echo "$as_me:$LINENO: checking for estrdup" >&5
31890 echo $ECHO_N "checking for estrdup... $ECHO_C" >&6; }
31891 if test "${ac_cv_func_estrdup+set}" = set; then
31892   echo $ECHO_N "(cached) $ECHO_C" >&6
31893 else
31894   cat >conftest.$ac_ext <<_ACEOF
31895 /* confdefs.h.  */
31896 _ACEOF
31897 cat confdefs.h >>conftest.$ac_ext
31898 cat >>conftest.$ac_ext <<_ACEOF
31899 /* end confdefs.h.  */
31900 /* Define estrdup to an innocuous variant, in case <limits.h> declares estrdup.
31901    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31902 #define estrdup innocuous_estrdup
31903
31904 /* System header to define __stub macros and hopefully few prototypes,
31905     which can conflict with char estrdup (); below.
31906     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31907     <limits.h> exists even on freestanding compilers.  */
31908
31909 #ifdef __STDC__
31910 # include <limits.h>
31911 #else
31912 # include <assert.h>
31913 #endif
31914
31915 #undef estrdup
31916
31917 /* Override any GCC internal prototype to avoid an error.
31918    Use char because int might match the return type of a GCC
31919    builtin and then its argument prototype would still apply.  */
31920 #ifdef __cplusplus
31921 extern "C"
31922 #endif
31923 char estrdup ();
31924 /* The GNU C library defines this for functions which it implements
31925     to always fail with ENOSYS.  Some functions are actually named
31926     something starting with __ and the normal name is an alias.  */
31927 #if defined __stub_estrdup || defined __stub___estrdup
31928 choke me
31929 #endif
31930
31931 int
31932 main ()
31933 {
31934 return estrdup ();
31935   ;
31936   return 0;
31937 }
31938 _ACEOF
31939 rm -f conftest.$ac_objext conftest$ac_exeext
31940 if { (ac_try="$ac_link"
31941 case "(($ac_try" in
31942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31943   *) ac_try_echo=$ac_try;;
31944 esac
31945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31946   (eval "$ac_link") 2>conftest.er1
31947   ac_status=$?
31948   grep -v '^ *+' conftest.er1 >conftest.err
31949   rm -f conftest.er1
31950   cat conftest.err >&5
31951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31952   (exit $ac_status); } && {
31953          test -z "$ac_c_werror_flag" ||
31954          test ! -s conftest.err
31955        } && test -s conftest$ac_exeext &&
31956        $as_test_x conftest$ac_exeext; then
31957   ac_cv_func_estrdup=yes
31958 else
31959   echo "$as_me: failed program was:" >&5
31960 sed 's/^/| /' conftest.$ac_ext >&5
31961
31962         ac_cv_func_estrdup=no
31963 fi
31964
31965 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31966       conftest$ac_exeext conftest.$ac_ext
31967 fi
31968 { echo "$as_me:$LINENO: result: $ac_cv_func_estrdup" >&5
31969 echo "${ECHO_T}$ac_cv_func_estrdup" >&6; }
31970 if test $ac_cv_func_estrdup = yes; then
31971
31972 cat >>confdefs.h <<_ACEOF
31973 #define HAVE_ESTRDUP 1
31974 _ACEOF
31975
31976 else
31977   case " $LIBOBJS " in
31978   *" estrdup.$ac_objext "* ) ;;
31979   *) LIBOBJS="$LIBOBJS estrdup.$ac_objext"
31980  ;;
31981 esac
31982
31983 fi
31984 { echo "$as_me:$LINENO: checking for err" >&5
31985 echo $ECHO_N "checking for err... $ECHO_C" >&6; }
31986 if test "${ac_cv_func_err+set}" = set; then
31987   echo $ECHO_N "(cached) $ECHO_C" >&6
31988 else
31989   cat >conftest.$ac_ext <<_ACEOF
31990 /* confdefs.h.  */
31991 _ACEOF
31992 cat confdefs.h >>conftest.$ac_ext
31993 cat >>conftest.$ac_ext <<_ACEOF
31994 /* end confdefs.h.  */
31995 /* Define err to an innocuous variant, in case <limits.h> declares err.
31996    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31997 #define err innocuous_err
31998
31999 /* System header to define __stub macros and hopefully few prototypes,
32000     which can conflict with char err (); below.
32001     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32002     <limits.h> exists even on freestanding compilers.  */
32003
32004 #ifdef __STDC__
32005 # include <limits.h>
32006 #else
32007 # include <assert.h>
32008 #endif
32009
32010 #undef err
32011
32012 /* Override any GCC internal prototype to avoid an error.
32013    Use char because int might match the return type of a GCC
32014    builtin and then its argument prototype would still apply.  */
32015 #ifdef __cplusplus
32016 extern "C"
32017 #endif
32018 char err ();
32019 /* The GNU C library defines this for functions which it implements
32020     to always fail with ENOSYS.  Some functions are actually named
32021     something starting with __ and the normal name is an alias.  */
32022 #if defined __stub_err || defined __stub___err
32023 choke me
32024 #endif
32025
32026 int
32027 main ()
32028 {
32029 return err ();
32030   ;
32031   return 0;
32032 }
32033 _ACEOF
32034 rm -f conftest.$ac_objext conftest$ac_exeext
32035 if { (ac_try="$ac_link"
32036 case "(($ac_try" in
32037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32038   *) ac_try_echo=$ac_try;;
32039 esac
32040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32041   (eval "$ac_link") 2>conftest.er1
32042   ac_status=$?
32043   grep -v '^ *+' conftest.er1 >conftest.err
32044   rm -f conftest.er1
32045   cat conftest.err >&5
32046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32047   (exit $ac_status); } && {
32048          test -z "$ac_c_werror_flag" ||
32049          test ! -s conftest.err
32050        } && test -s conftest$ac_exeext &&
32051        $as_test_x conftest$ac_exeext; then
32052   ac_cv_func_err=yes
32053 else
32054   echo "$as_me: failed program was:" >&5
32055 sed 's/^/| /' conftest.$ac_ext >&5
32056
32057         ac_cv_func_err=no
32058 fi
32059
32060 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32061       conftest$ac_exeext conftest.$ac_ext
32062 fi
32063 { echo "$as_me:$LINENO: result: $ac_cv_func_err" >&5
32064 echo "${ECHO_T}$ac_cv_func_err" >&6; }
32065 if test $ac_cv_func_err = yes; then
32066
32067 cat >>confdefs.h <<_ACEOF
32068 #define HAVE_ERR 1
32069 _ACEOF
32070
32071 else
32072   case " $LIBOBJS " in
32073   *" err.$ac_objext "* ) ;;
32074   *) LIBOBJS="$LIBOBJS err.$ac_objext"
32075  ;;
32076 esac
32077
32078 fi
32079 { echo "$as_me:$LINENO: checking for errx" >&5
32080 echo $ECHO_N "checking for errx... $ECHO_C" >&6; }
32081 if test "${ac_cv_func_errx+set}" = set; then
32082   echo $ECHO_N "(cached) $ECHO_C" >&6
32083 else
32084   cat >conftest.$ac_ext <<_ACEOF
32085 /* confdefs.h.  */
32086 _ACEOF
32087 cat confdefs.h >>conftest.$ac_ext
32088 cat >>conftest.$ac_ext <<_ACEOF
32089 /* end confdefs.h.  */
32090 /* Define errx to an innocuous variant, in case <limits.h> declares errx.
32091    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32092 #define errx innocuous_errx
32093
32094 /* System header to define __stub macros and hopefully few prototypes,
32095     which can conflict with char errx (); below.
32096     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32097     <limits.h> exists even on freestanding compilers.  */
32098
32099 #ifdef __STDC__
32100 # include <limits.h>
32101 #else
32102 # include <assert.h>
32103 #endif
32104
32105 #undef errx
32106
32107 /* Override any GCC internal prototype to avoid an error.
32108    Use char because int might match the return type of a GCC
32109    builtin and then its argument prototype would still apply.  */
32110 #ifdef __cplusplus
32111 extern "C"
32112 #endif
32113 char errx ();
32114 /* The GNU C library defines this for functions which it implements
32115     to always fail with ENOSYS.  Some functions are actually named
32116     something starting with __ and the normal name is an alias.  */
32117 #if defined __stub_errx || defined __stub___errx
32118 choke me
32119 #endif
32120
32121 int
32122 main ()
32123 {
32124 return errx ();
32125   ;
32126   return 0;
32127 }
32128 _ACEOF
32129 rm -f conftest.$ac_objext conftest$ac_exeext
32130 if { (ac_try="$ac_link"
32131 case "(($ac_try" in
32132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32133   *) ac_try_echo=$ac_try;;
32134 esac
32135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32136   (eval "$ac_link") 2>conftest.er1
32137   ac_status=$?
32138   grep -v '^ *+' conftest.er1 >conftest.err
32139   rm -f conftest.er1
32140   cat conftest.err >&5
32141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32142   (exit $ac_status); } && {
32143          test -z "$ac_c_werror_flag" ||
32144          test ! -s conftest.err
32145        } && test -s conftest$ac_exeext &&
32146        $as_test_x conftest$ac_exeext; then
32147   ac_cv_func_errx=yes
32148 else
32149   echo "$as_me: failed program was:" >&5
32150 sed 's/^/| /' conftest.$ac_ext >&5
32151
32152         ac_cv_func_errx=no
32153 fi
32154
32155 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32156       conftest$ac_exeext conftest.$ac_ext
32157 fi
32158 { echo "$as_me:$LINENO: result: $ac_cv_func_errx" >&5
32159 echo "${ECHO_T}$ac_cv_func_errx" >&6; }
32160 if test $ac_cv_func_errx = yes; then
32161
32162 cat >>confdefs.h <<_ACEOF
32163 #define HAVE_ERRX 1
32164 _ACEOF
32165
32166 else
32167   case " $LIBOBJS " in
32168   *" errx.$ac_objext "* ) ;;
32169   *) LIBOBJS="$LIBOBJS errx.$ac_objext"
32170  ;;
32171 esac
32172
32173 fi
32174 { echo "$as_me:$LINENO: checking for fchown" >&5
32175 echo $ECHO_N "checking for fchown... $ECHO_C" >&6; }
32176 if test "${ac_cv_func_fchown+set}" = set; then
32177   echo $ECHO_N "(cached) $ECHO_C" >&6
32178 else
32179   cat >conftest.$ac_ext <<_ACEOF
32180 /* confdefs.h.  */
32181 _ACEOF
32182 cat confdefs.h >>conftest.$ac_ext
32183 cat >>conftest.$ac_ext <<_ACEOF
32184 /* end confdefs.h.  */
32185 /* Define fchown to an innocuous variant, in case <limits.h> declares fchown.
32186    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32187 #define fchown innocuous_fchown
32188
32189 /* System header to define __stub macros and hopefully few prototypes,
32190     which can conflict with char fchown (); below.
32191     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32192     <limits.h> exists even on freestanding compilers.  */
32193
32194 #ifdef __STDC__
32195 # include <limits.h>
32196 #else
32197 # include <assert.h>
32198 #endif
32199
32200 #undef fchown
32201
32202 /* Override any GCC internal prototype to avoid an error.
32203    Use char because int might match the return type of a GCC
32204    builtin and then its argument prototype would still apply.  */
32205 #ifdef __cplusplus
32206 extern "C"
32207 #endif
32208 char fchown ();
32209 /* The GNU C library defines this for functions which it implements
32210     to always fail with ENOSYS.  Some functions are actually named
32211     something starting with __ and the normal name is an alias.  */
32212 #if defined __stub_fchown || defined __stub___fchown
32213 choke me
32214 #endif
32215
32216 int
32217 main ()
32218 {
32219 return fchown ();
32220   ;
32221   return 0;
32222 }
32223 _ACEOF
32224 rm -f conftest.$ac_objext conftest$ac_exeext
32225 if { (ac_try="$ac_link"
32226 case "(($ac_try" in
32227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32228   *) ac_try_echo=$ac_try;;
32229 esac
32230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32231   (eval "$ac_link") 2>conftest.er1
32232   ac_status=$?
32233   grep -v '^ *+' conftest.er1 >conftest.err
32234   rm -f conftest.er1
32235   cat conftest.err >&5
32236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32237   (exit $ac_status); } && {
32238          test -z "$ac_c_werror_flag" ||
32239          test ! -s conftest.err
32240        } && test -s conftest$ac_exeext &&
32241        $as_test_x conftest$ac_exeext; then
32242   ac_cv_func_fchown=yes
32243 else
32244   echo "$as_me: failed program was:" >&5
32245 sed 's/^/| /' conftest.$ac_ext >&5
32246
32247         ac_cv_func_fchown=no
32248 fi
32249
32250 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32251       conftest$ac_exeext conftest.$ac_ext
32252 fi
32253 { echo "$as_me:$LINENO: result: $ac_cv_func_fchown" >&5
32254 echo "${ECHO_T}$ac_cv_func_fchown" >&6; }
32255 if test $ac_cv_func_fchown = yes; then
32256
32257 cat >>confdefs.h <<_ACEOF
32258 #define HAVE_FCHOWN 1
32259 _ACEOF
32260
32261 else
32262   case " $LIBOBJS " in
32263   *" fchown.$ac_objext "* ) ;;
32264   *) LIBOBJS="$LIBOBJS fchown.$ac_objext"
32265  ;;
32266 esac
32267
32268 fi
32269 { echo "$as_me:$LINENO: checking for flock" >&5
32270 echo $ECHO_N "checking for flock... $ECHO_C" >&6; }
32271 if test "${ac_cv_func_flock+set}" = set; then
32272   echo $ECHO_N "(cached) $ECHO_C" >&6
32273 else
32274   cat >conftest.$ac_ext <<_ACEOF
32275 /* confdefs.h.  */
32276 _ACEOF
32277 cat confdefs.h >>conftest.$ac_ext
32278 cat >>conftest.$ac_ext <<_ACEOF
32279 /* end confdefs.h.  */
32280 /* Define flock to an innocuous variant, in case <limits.h> declares flock.
32281    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32282 #define flock innocuous_flock
32283
32284 /* System header to define __stub macros and hopefully few prototypes,
32285     which can conflict with char flock (); below.
32286     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32287     <limits.h> exists even on freestanding compilers.  */
32288
32289 #ifdef __STDC__
32290 # include <limits.h>
32291 #else
32292 # include <assert.h>
32293 #endif
32294
32295 #undef flock
32296
32297 /* Override any GCC internal prototype to avoid an error.
32298    Use char because int might match the return type of a GCC
32299    builtin and then its argument prototype would still apply.  */
32300 #ifdef __cplusplus
32301 extern "C"
32302 #endif
32303 char flock ();
32304 /* The GNU C library defines this for functions which it implements
32305     to always fail with ENOSYS.  Some functions are actually named
32306     something starting with __ and the normal name is an alias.  */
32307 #if defined __stub_flock || defined __stub___flock
32308 choke me
32309 #endif
32310
32311 int
32312 main ()
32313 {
32314 return flock ();
32315   ;
32316   return 0;
32317 }
32318 _ACEOF
32319 rm -f conftest.$ac_objext conftest$ac_exeext
32320 if { (ac_try="$ac_link"
32321 case "(($ac_try" in
32322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32323   *) ac_try_echo=$ac_try;;
32324 esac
32325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32326   (eval "$ac_link") 2>conftest.er1
32327   ac_status=$?
32328   grep -v '^ *+' conftest.er1 >conftest.err
32329   rm -f conftest.er1
32330   cat conftest.err >&5
32331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32332   (exit $ac_status); } && {
32333          test -z "$ac_c_werror_flag" ||
32334          test ! -s conftest.err
32335        } && test -s conftest$ac_exeext &&
32336        $as_test_x conftest$ac_exeext; then
32337   ac_cv_func_flock=yes
32338 else
32339   echo "$as_me: failed program was:" >&5
32340 sed 's/^/| /' conftest.$ac_ext >&5
32341
32342         ac_cv_func_flock=no
32343 fi
32344
32345 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32346       conftest$ac_exeext conftest.$ac_ext
32347 fi
32348 { echo "$as_me:$LINENO: result: $ac_cv_func_flock" >&5
32349 echo "${ECHO_T}$ac_cv_func_flock" >&6; }
32350 if test $ac_cv_func_flock = yes; then
32351
32352 cat >>confdefs.h <<_ACEOF
32353 #define HAVE_FLOCK 1
32354 _ACEOF
32355
32356 else
32357   case " $LIBOBJS " in
32358   *" flock.$ac_objext "* ) ;;
32359   *) LIBOBJS="$LIBOBJS flock.$ac_objext"
32360  ;;
32361 esac
32362
32363 fi
32364 { echo "$as_me:$LINENO: checking for fnmatch" >&5
32365 echo $ECHO_N "checking for fnmatch... $ECHO_C" >&6; }
32366 if test "${ac_cv_func_fnmatch+set}" = set; then
32367   echo $ECHO_N "(cached) $ECHO_C" >&6
32368 else
32369   cat >conftest.$ac_ext <<_ACEOF
32370 /* confdefs.h.  */
32371 _ACEOF
32372 cat confdefs.h >>conftest.$ac_ext
32373 cat >>conftest.$ac_ext <<_ACEOF
32374 /* end confdefs.h.  */
32375 /* Define fnmatch to an innocuous variant, in case <limits.h> declares fnmatch.
32376    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32377 #define fnmatch innocuous_fnmatch
32378
32379 /* System header to define __stub macros and hopefully few prototypes,
32380     which can conflict with char fnmatch (); below.
32381     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32382     <limits.h> exists even on freestanding compilers.  */
32383
32384 #ifdef __STDC__
32385 # include <limits.h>
32386 #else
32387 # include <assert.h>
32388 #endif
32389
32390 #undef fnmatch
32391
32392 /* Override any GCC internal prototype to avoid an error.
32393    Use char because int might match the return type of a GCC
32394    builtin and then its argument prototype would still apply.  */
32395 #ifdef __cplusplus
32396 extern "C"
32397 #endif
32398 char fnmatch ();
32399 /* The GNU C library defines this for functions which it implements
32400     to always fail with ENOSYS.  Some functions are actually named
32401     something starting with __ and the normal name is an alias.  */
32402 #if defined __stub_fnmatch || defined __stub___fnmatch
32403 choke me
32404 #endif
32405
32406 int
32407 main ()
32408 {
32409 return fnmatch ();
32410   ;
32411   return 0;
32412 }
32413 _ACEOF
32414 rm -f conftest.$ac_objext conftest$ac_exeext
32415 if { (ac_try="$ac_link"
32416 case "(($ac_try" in
32417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32418   *) ac_try_echo=$ac_try;;
32419 esac
32420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32421   (eval "$ac_link") 2>conftest.er1
32422   ac_status=$?
32423   grep -v '^ *+' conftest.er1 >conftest.err
32424   rm -f conftest.er1
32425   cat conftest.err >&5
32426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32427   (exit $ac_status); } && {
32428          test -z "$ac_c_werror_flag" ||
32429          test ! -s conftest.err
32430        } && test -s conftest$ac_exeext &&
32431        $as_test_x conftest$ac_exeext; then
32432   ac_cv_func_fnmatch=yes
32433 else
32434   echo "$as_me: failed program was:" >&5
32435 sed 's/^/| /' conftest.$ac_ext >&5
32436
32437         ac_cv_func_fnmatch=no
32438 fi
32439
32440 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32441       conftest$ac_exeext conftest.$ac_ext
32442 fi
32443 { echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch" >&5
32444 echo "${ECHO_T}$ac_cv_func_fnmatch" >&6; }
32445 if test $ac_cv_func_fnmatch = yes; then
32446
32447 cat >>confdefs.h <<_ACEOF
32448 #define HAVE_FNMATCH 1
32449 _ACEOF
32450
32451 else
32452   case " $LIBOBJS " in
32453   *" fnmatch.$ac_objext "* ) ;;
32454   *) LIBOBJS="$LIBOBJS fnmatch.$ac_objext"
32455  ;;
32456 esac
32457
32458 fi
32459 { echo "$as_me:$LINENO: checking for freehostent" >&5
32460 echo $ECHO_N "checking for freehostent... $ECHO_C" >&6; }
32461 if test "${ac_cv_func_freehostent+set}" = set; then
32462   echo $ECHO_N "(cached) $ECHO_C" >&6
32463 else
32464   cat >conftest.$ac_ext <<_ACEOF
32465 /* confdefs.h.  */
32466 _ACEOF
32467 cat confdefs.h >>conftest.$ac_ext
32468 cat >>conftest.$ac_ext <<_ACEOF
32469 /* end confdefs.h.  */
32470 /* Define freehostent to an innocuous variant, in case <limits.h> declares freehostent.
32471    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32472 #define freehostent innocuous_freehostent
32473
32474 /* System header to define __stub macros and hopefully few prototypes,
32475     which can conflict with char freehostent (); below.
32476     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32477     <limits.h> exists even on freestanding compilers.  */
32478
32479 #ifdef __STDC__
32480 # include <limits.h>
32481 #else
32482 # include <assert.h>
32483 #endif
32484
32485 #undef freehostent
32486
32487 /* Override any GCC internal prototype to avoid an error.
32488    Use char because int might match the return type of a GCC
32489    builtin and then its argument prototype would still apply.  */
32490 #ifdef __cplusplus
32491 extern "C"
32492 #endif
32493 char freehostent ();
32494 /* The GNU C library defines this for functions which it implements
32495     to always fail with ENOSYS.  Some functions are actually named
32496     something starting with __ and the normal name is an alias.  */
32497 #if defined __stub_freehostent || defined __stub___freehostent
32498 choke me
32499 #endif
32500
32501 int
32502 main ()
32503 {
32504 return freehostent ();
32505   ;
32506   return 0;
32507 }
32508 _ACEOF
32509 rm -f conftest.$ac_objext conftest$ac_exeext
32510 if { (ac_try="$ac_link"
32511 case "(($ac_try" in
32512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32513   *) ac_try_echo=$ac_try;;
32514 esac
32515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32516   (eval "$ac_link") 2>conftest.er1
32517   ac_status=$?
32518   grep -v '^ *+' conftest.er1 >conftest.err
32519   rm -f conftest.er1
32520   cat conftest.err >&5
32521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32522   (exit $ac_status); } && {
32523          test -z "$ac_c_werror_flag" ||
32524          test ! -s conftest.err
32525        } && test -s conftest$ac_exeext &&
32526        $as_test_x conftest$ac_exeext; then
32527   ac_cv_func_freehostent=yes
32528 else
32529   echo "$as_me: failed program was:" >&5
32530 sed 's/^/| /' conftest.$ac_ext >&5
32531
32532         ac_cv_func_freehostent=no
32533 fi
32534
32535 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32536       conftest$ac_exeext conftest.$ac_ext
32537 fi
32538 { echo "$as_me:$LINENO: result: $ac_cv_func_freehostent" >&5
32539 echo "${ECHO_T}$ac_cv_func_freehostent" >&6; }
32540 if test $ac_cv_func_freehostent = yes; then
32541
32542 cat >>confdefs.h <<_ACEOF
32543 #define HAVE_FREEHOSTENT 1
32544 _ACEOF
32545
32546 else
32547   case " $LIBOBJS " in
32548   *" freehostent.$ac_objext "* ) ;;
32549   *) LIBOBJS="$LIBOBJS freehostent.$ac_objext"
32550  ;;
32551 esac
32552
32553 fi
32554 { echo "$as_me:$LINENO: checking for getcwd" >&5
32555 echo $ECHO_N "checking for getcwd... $ECHO_C" >&6; }
32556 if test "${ac_cv_func_getcwd+set}" = set; then
32557   echo $ECHO_N "(cached) $ECHO_C" >&6
32558 else
32559   cat >conftest.$ac_ext <<_ACEOF
32560 /* confdefs.h.  */
32561 _ACEOF
32562 cat confdefs.h >>conftest.$ac_ext
32563 cat >>conftest.$ac_ext <<_ACEOF
32564 /* end confdefs.h.  */
32565 /* Define getcwd to an innocuous variant, in case <limits.h> declares getcwd.
32566    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32567 #define getcwd innocuous_getcwd
32568
32569 /* System header to define __stub macros and hopefully few prototypes,
32570     which can conflict with char getcwd (); below.
32571     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32572     <limits.h> exists even on freestanding compilers.  */
32573
32574 #ifdef __STDC__
32575 # include <limits.h>
32576 #else
32577 # include <assert.h>
32578 #endif
32579
32580 #undef getcwd
32581
32582 /* Override any GCC internal prototype to avoid an error.
32583    Use char because int might match the return type of a GCC
32584    builtin and then its argument prototype would still apply.  */
32585 #ifdef __cplusplus
32586 extern "C"
32587 #endif
32588 char getcwd ();
32589 /* The GNU C library defines this for functions which it implements
32590     to always fail with ENOSYS.  Some functions are actually named
32591     something starting with __ and the normal name is an alias.  */
32592 #if defined __stub_getcwd || defined __stub___getcwd
32593 choke me
32594 #endif
32595
32596 int
32597 main ()
32598 {
32599 return getcwd ();
32600   ;
32601   return 0;
32602 }
32603 _ACEOF
32604 rm -f conftest.$ac_objext conftest$ac_exeext
32605 if { (ac_try="$ac_link"
32606 case "(($ac_try" in
32607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32608   *) ac_try_echo=$ac_try;;
32609 esac
32610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32611   (eval "$ac_link") 2>conftest.er1
32612   ac_status=$?
32613   grep -v '^ *+' conftest.er1 >conftest.err
32614   rm -f conftest.er1
32615   cat conftest.err >&5
32616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32617   (exit $ac_status); } && {
32618          test -z "$ac_c_werror_flag" ||
32619          test ! -s conftest.err
32620        } && test -s conftest$ac_exeext &&
32621        $as_test_x conftest$ac_exeext; then
32622   ac_cv_func_getcwd=yes
32623 else
32624   echo "$as_me: failed program was:" >&5
32625 sed 's/^/| /' conftest.$ac_ext >&5
32626
32627         ac_cv_func_getcwd=no
32628 fi
32629
32630 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32631       conftest$ac_exeext conftest.$ac_ext
32632 fi
32633 { echo "$as_me:$LINENO: result: $ac_cv_func_getcwd" >&5
32634 echo "${ECHO_T}$ac_cv_func_getcwd" >&6; }
32635 if test $ac_cv_func_getcwd = yes; then
32636
32637 cat >>confdefs.h <<_ACEOF
32638 #define HAVE_GETCWD 1
32639 _ACEOF
32640
32641 else
32642   case " $LIBOBJS " in
32643   *" getcwd.$ac_objext "* ) ;;
32644   *) LIBOBJS="$LIBOBJS getcwd.$ac_objext"
32645  ;;
32646 esac
32647
32648 fi
32649 { echo "$as_me:$LINENO: checking for getdtablesize" >&5
32650 echo $ECHO_N "checking for getdtablesize... $ECHO_C" >&6; }
32651 if test "${ac_cv_func_getdtablesize+set}" = set; then
32652   echo $ECHO_N "(cached) $ECHO_C" >&6
32653 else
32654   cat >conftest.$ac_ext <<_ACEOF
32655 /* confdefs.h.  */
32656 _ACEOF
32657 cat confdefs.h >>conftest.$ac_ext
32658 cat >>conftest.$ac_ext <<_ACEOF
32659 /* end confdefs.h.  */
32660 /* Define getdtablesize to an innocuous variant, in case <limits.h> declares getdtablesize.
32661    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32662 #define getdtablesize innocuous_getdtablesize
32663
32664 /* System header to define __stub macros and hopefully few prototypes,
32665     which can conflict with char getdtablesize (); below.
32666     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32667     <limits.h> exists even on freestanding compilers.  */
32668
32669 #ifdef __STDC__
32670 # include <limits.h>
32671 #else
32672 # include <assert.h>
32673 #endif
32674
32675 #undef getdtablesize
32676
32677 /* Override any GCC internal prototype to avoid an error.
32678    Use char because int might match the return type of a GCC
32679    builtin and then its argument prototype would still apply.  */
32680 #ifdef __cplusplus
32681 extern "C"
32682 #endif
32683 char getdtablesize ();
32684 /* The GNU C library defines this for functions which it implements
32685     to always fail with ENOSYS.  Some functions are actually named
32686     something starting with __ and the normal name is an alias.  */
32687 #if defined __stub_getdtablesize || defined __stub___getdtablesize
32688 choke me
32689 #endif
32690
32691 int
32692 main ()
32693 {
32694 return getdtablesize ();
32695   ;
32696   return 0;
32697 }
32698 _ACEOF
32699 rm -f conftest.$ac_objext conftest$ac_exeext
32700 if { (ac_try="$ac_link"
32701 case "(($ac_try" in
32702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32703   *) ac_try_echo=$ac_try;;
32704 esac
32705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32706   (eval "$ac_link") 2>conftest.er1
32707   ac_status=$?
32708   grep -v '^ *+' conftest.er1 >conftest.err
32709   rm -f conftest.er1
32710   cat conftest.err >&5
32711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32712   (exit $ac_status); } && {
32713          test -z "$ac_c_werror_flag" ||
32714          test ! -s conftest.err
32715        } && test -s conftest$ac_exeext &&
32716        $as_test_x conftest$ac_exeext; then
32717   ac_cv_func_getdtablesize=yes
32718 else
32719   echo "$as_me: failed program was:" >&5
32720 sed 's/^/| /' conftest.$ac_ext >&5
32721
32722         ac_cv_func_getdtablesize=no
32723 fi
32724
32725 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32726       conftest$ac_exeext conftest.$ac_ext
32727 fi
32728 { echo "$as_me:$LINENO: result: $ac_cv_func_getdtablesize" >&5
32729 echo "${ECHO_T}$ac_cv_func_getdtablesize" >&6; }
32730 if test $ac_cv_func_getdtablesize = yes; then
32731
32732 cat >>confdefs.h <<_ACEOF
32733 #define HAVE_GETDTABLESIZE 1
32734 _ACEOF
32735
32736 else
32737   case " $LIBOBJS " in
32738   *" getdtablesize.$ac_objext "* ) ;;
32739   *) LIBOBJS="$LIBOBJS getdtablesize.$ac_objext"
32740  ;;
32741 esac
32742
32743 fi
32744 { echo "$as_me:$LINENO: checking for getegid" >&5
32745 echo $ECHO_N "checking for getegid... $ECHO_C" >&6; }
32746 if test "${ac_cv_func_getegid+set}" = set; then
32747   echo $ECHO_N "(cached) $ECHO_C" >&6
32748 else
32749   cat >conftest.$ac_ext <<_ACEOF
32750 /* confdefs.h.  */
32751 _ACEOF
32752 cat confdefs.h >>conftest.$ac_ext
32753 cat >>conftest.$ac_ext <<_ACEOF
32754 /* end confdefs.h.  */
32755 /* Define getegid to an innocuous variant, in case <limits.h> declares getegid.
32756    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32757 #define getegid innocuous_getegid
32758
32759 /* System header to define __stub macros and hopefully few prototypes,
32760     which can conflict with char getegid (); below.
32761     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32762     <limits.h> exists even on freestanding compilers.  */
32763
32764 #ifdef __STDC__
32765 # include <limits.h>
32766 #else
32767 # include <assert.h>
32768 #endif
32769
32770 #undef getegid
32771
32772 /* Override any GCC internal prototype to avoid an error.
32773    Use char because int might match the return type of a GCC
32774    builtin and then its argument prototype would still apply.  */
32775 #ifdef __cplusplus
32776 extern "C"
32777 #endif
32778 char getegid ();
32779 /* The GNU C library defines this for functions which it implements
32780     to always fail with ENOSYS.  Some functions are actually named
32781     something starting with __ and the normal name is an alias.  */
32782 #if defined __stub_getegid || defined __stub___getegid
32783 choke me
32784 #endif
32785
32786 int
32787 main ()
32788 {
32789 return getegid ();
32790   ;
32791   return 0;
32792 }
32793 _ACEOF
32794 rm -f conftest.$ac_objext conftest$ac_exeext
32795 if { (ac_try="$ac_link"
32796 case "(($ac_try" in
32797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32798   *) ac_try_echo=$ac_try;;
32799 esac
32800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32801   (eval "$ac_link") 2>conftest.er1
32802   ac_status=$?
32803   grep -v '^ *+' conftest.er1 >conftest.err
32804   rm -f conftest.er1
32805   cat conftest.err >&5
32806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32807   (exit $ac_status); } && {
32808          test -z "$ac_c_werror_flag" ||
32809          test ! -s conftest.err
32810        } && test -s conftest$ac_exeext &&
32811        $as_test_x conftest$ac_exeext; then
32812   ac_cv_func_getegid=yes
32813 else
32814   echo "$as_me: failed program was:" >&5
32815 sed 's/^/| /' conftest.$ac_ext >&5
32816
32817         ac_cv_func_getegid=no
32818 fi
32819
32820 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32821       conftest$ac_exeext conftest.$ac_ext
32822 fi
32823 { echo "$as_me:$LINENO: result: $ac_cv_func_getegid" >&5
32824 echo "${ECHO_T}$ac_cv_func_getegid" >&6; }
32825 if test $ac_cv_func_getegid = yes; then
32826
32827 cat >>confdefs.h <<_ACEOF
32828 #define HAVE_GETEGID 1
32829 _ACEOF
32830
32831 else
32832   case " $LIBOBJS " in
32833   *" getegid.$ac_objext "* ) ;;
32834   *) LIBOBJS="$LIBOBJS getegid.$ac_objext"
32835  ;;
32836 esac
32837
32838 fi
32839 { echo "$as_me:$LINENO: checking for geteuid" >&5
32840 echo $ECHO_N "checking for geteuid... $ECHO_C" >&6; }
32841 if test "${ac_cv_func_geteuid+set}" = set; then
32842   echo $ECHO_N "(cached) $ECHO_C" >&6
32843 else
32844   cat >conftest.$ac_ext <<_ACEOF
32845 /* confdefs.h.  */
32846 _ACEOF
32847 cat confdefs.h >>conftest.$ac_ext
32848 cat >>conftest.$ac_ext <<_ACEOF
32849 /* end confdefs.h.  */
32850 /* Define geteuid to an innocuous variant, in case <limits.h> declares geteuid.
32851    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32852 #define geteuid innocuous_geteuid
32853
32854 /* System header to define __stub macros and hopefully few prototypes,
32855     which can conflict with char geteuid (); below.
32856     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32857     <limits.h> exists even on freestanding compilers.  */
32858
32859 #ifdef __STDC__
32860 # include <limits.h>
32861 #else
32862 # include <assert.h>
32863 #endif
32864
32865 #undef geteuid
32866
32867 /* Override any GCC internal prototype to avoid an error.
32868    Use char because int might match the return type of a GCC
32869    builtin and then its argument prototype would still apply.  */
32870 #ifdef __cplusplus
32871 extern "C"
32872 #endif
32873 char geteuid ();
32874 /* The GNU C library defines this for functions which it implements
32875     to always fail with ENOSYS.  Some functions are actually named
32876     something starting with __ and the normal name is an alias.  */
32877 #if defined __stub_geteuid || defined __stub___geteuid
32878 choke me
32879 #endif
32880
32881 int
32882 main ()
32883 {
32884 return geteuid ();
32885   ;
32886   return 0;
32887 }
32888 _ACEOF
32889 rm -f conftest.$ac_objext conftest$ac_exeext
32890 if { (ac_try="$ac_link"
32891 case "(($ac_try" in
32892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32893   *) ac_try_echo=$ac_try;;
32894 esac
32895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32896   (eval "$ac_link") 2>conftest.er1
32897   ac_status=$?
32898   grep -v '^ *+' conftest.er1 >conftest.err
32899   rm -f conftest.er1
32900   cat conftest.err >&5
32901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32902   (exit $ac_status); } && {
32903          test -z "$ac_c_werror_flag" ||
32904          test ! -s conftest.err
32905        } && test -s conftest$ac_exeext &&
32906        $as_test_x conftest$ac_exeext; then
32907   ac_cv_func_geteuid=yes
32908 else
32909   echo "$as_me: failed program was:" >&5
32910 sed 's/^/| /' conftest.$ac_ext >&5
32911
32912         ac_cv_func_geteuid=no
32913 fi
32914
32915 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32916       conftest$ac_exeext conftest.$ac_ext
32917 fi
32918 { echo "$as_me:$LINENO: result: $ac_cv_func_geteuid" >&5
32919 echo "${ECHO_T}$ac_cv_func_geteuid" >&6; }
32920 if test $ac_cv_func_geteuid = yes; then
32921
32922 cat >>confdefs.h <<_ACEOF
32923 #define HAVE_GETEUID 1
32924 _ACEOF
32925
32926 else
32927   case " $LIBOBJS " in
32928   *" geteuid.$ac_objext "* ) ;;
32929   *) LIBOBJS="$LIBOBJS geteuid.$ac_objext"
32930  ;;
32931 esac
32932
32933 fi
32934 { echo "$as_me:$LINENO: checking for getgid" >&5
32935 echo $ECHO_N "checking for getgid... $ECHO_C" >&6; }
32936 if test "${ac_cv_func_getgid+set}" = set; then
32937   echo $ECHO_N "(cached) $ECHO_C" >&6
32938 else
32939   cat >conftest.$ac_ext <<_ACEOF
32940 /* confdefs.h.  */
32941 _ACEOF
32942 cat confdefs.h >>conftest.$ac_ext
32943 cat >>conftest.$ac_ext <<_ACEOF
32944 /* end confdefs.h.  */
32945 /* Define getgid to an innocuous variant, in case <limits.h> declares getgid.
32946    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32947 #define getgid innocuous_getgid
32948
32949 /* System header to define __stub macros and hopefully few prototypes,
32950     which can conflict with char getgid (); below.
32951     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32952     <limits.h> exists even on freestanding compilers.  */
32953
32954 #ifdef __STDC__
32955 # include <limits.h>
32956 #else
32957 # include <assert.h>
32958 #endif
32959
32960 #undef getgid
32961
32962 /* Override any GCC internal prototype to avoid an error.
32963    Use char because int might match the return type of a GCC
32964    builtin and then its argument prototype would still apply.  */
32965 #ifdef __cplusplus
32966 extern "C"
32967 #endif
32968 char getgid ();
32969 /* The GNU C library defines this for functions which it implements
32970     to always fail with ENOSYS.  Some functions are actually named
32971     something starting with __ and the normal name is an alias.  */
32972 #if defined __stub_getgid || defined __stub___getgid
32973 choke me
32974 #endif
32975
32976 int
32977 main ()
32978 {
32979 return getgid ();
32980   ;
32981   return 0;
32982 }
32983 _ACEOF
32984 rm -f conftest.$ac_objext conftest$ac_exeext
32985 if { (ac_try="$ac_link"
32986 case "(($ac_try" in
32987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32988   *) ac_try_echo=$ac_try;;
32989 esac
32990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32991   (eval "$ac_link") 2>conftest.er1
32992   ac_status=$?
32993   grep -v '^ *+' conftest.er1 >conftest.err
32994   rm -f conftest.er1
32995   cat conftest.err >&5
32996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32997   (exit $ac_status); } && {
32998          test -z "$ac_c_werror_flag" ||
32999          test ! -s conftest.err
33000        } && test -s conftest$ac_exeext &&
33001        $as_test_x conftest$ac_exeext; then
33002   ac_cv_func_getgid=yes
33003 else
33004   echo "$as_me: failed program was:" >&5
33005 sed 's/^/| /' conftest.$ac_ext >&5
33006
33007         ac_cv_func_getgid=no
33008 fi
33009
33010 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33011       conftest$ac_exeext conftest.$ac_ext
33012 fi
33013 { echo "$as_me:$LINENO: result: $ac_cv_func_getgid" >&5
33014 echo "${ECHO_T}$ac_cv_func_getgid" >&6; }
33015 if test $ac_cv_func_getgid = yes; then
33016
33017 cat >>confdefs.h <<_ACEOF
33018 #define HAVE_GETGID 1
33019 _ACEOF
33020
33021 else
33022   case " $LIBOBJS " in
33023   *" getgid.$ac_objext "* ) ;;
33024   *) LIBOBJS="$LIBOBJS getgid.$ac_objext"
33025  ;;
33026 esac
33027
33028 fi
33029 { echo "$as_me:$LINENO: checking for gethostname" >&5
33030 echo $ECHO_N "checking for gethostname... $ECHO_C" >&6; }
33031 if test "${ac_cv_func_gethostname+set}" = set; then
33032   echo $ECHO_N "(cached) $ECHO_C" >&6
33033 else
33034   cat >conftest.$ac_ext <<_ACEOF
33035 /* confdefs.h.  */
33036 _ACEOF
33037 cat confdefs.h >>conftest.$ac_ext
33038 cat >>conftest.$ac_ext <<_ACEOF
33039 /* end confdefs.h.  */
33040 /* Define gethostname to an innocuous variant, in case <limits.h> declares gethostname.
33041    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33042 #define gethostname innocuous_gethostname
33043
33044 /* System header to define __stub macros and hopefully few prototypes,
33045     which can conflict with char gethostname (); below.
33046     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33047     <limits.h> exists even on freestanding compilers.  */
33048
33049 #ifdef __STDC__
33050 # include <limits.h>
33051 #else
33052 # include <assert.h>
33053 #endif
33054
33055 #undef gethostname
33056
33057 /* Override any GCC internal prototype to avoid an error.
33058    Use char because int might match the return type of a GCC
33059    builtin and then its argument prototype would still apply.  */
33060 #ifdef __cplusplus
33061 extern "C"
33062 #endif
33063 char gethostname ();
33064 /* The GNU C library defines this for functions which it implements
33065     to always fail with ENOSYS.  Some functions are actually named
33066     something starting with __ and the normal name is an alias.  */
33067 #if defined __stub_gethostname || defined __stub___gethostname
33068 choke me
33069 #endif
33070
33071 int
33072 main ()
33073 {
33074 return gethostname ();
33075   ;
33076   return 0;
33077 }
33078 _ACEOF
33079 rm -f conftest.$ac_objext conftest$ac_exeext
33080 if { (ac_try="$ac_link"
33081 case "(($ac_try" in
33082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33083   *) ac_try_echo=$ac_try;;
33084 esac
33085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33086   (eval "$ac_link") 2>conftest.er1
33087   ac_status=$?
33088   grep -v '^ *+' conftest.er1 >conftest.err
33089   rm -f conftest.er1
33090   cat conftest.err >&5
33091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33092   (exit $ac_status); } && {
33093          test -z "$ac_c_werror_flag" ||
33094          test ! -s conftest.err
33095        } && test -s conftest$ac_exeext &&
33096        $as_test_x conftest$ac_exeext; then
33097   ac_cv_func_gethostname=yes
33098 else
33099   echo "$as_me: failed program was:" >&5
33100 sed 's/^/| /' conftest.$ac_ext >&5
33101
33102         ac_cv_func_gethostname=no
33103 fi
33104
33105 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33106       conftest$ac_exeext conftest.$ac_ext
33107 fi
33108 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostname" >&5
33109 echo "${ECHO_T}$ac_cv_func_gethostname" >&6; }
33110 if test $ac_cv_func_gethostname = yes; then
33111
33112 cat >>confdefs.h <<_ACEOF
33113 #define HAVE_GETHOSTNAME 1
33114 _ACEOF
33115
33116 else
33117   case " $LIBOBJS " in
33118   *" gethostname.$ac_objext "* ) ;;
33119   *) LIBOBJS="$LIBOBJS gethostname.$ac_objext"
33120  ;;
33121 esac
33122
33123 fi
33124 { echo "$as_me:$LINENO: checking for getifaddrs" >&5
33125 echo $ECHO_N "checking for getifaddrs... $ECHO_C" >&6; }
33126 if test "${ac_cv_func_getifaddrs+set}" = set; then
33127   echo $ECHO_N "(cached) $ECHO_C" >&6
33128 else
33129   cat >conftest.$ac_ext <<_ACEOF
33130 /* confdefs.h.  */
33131 _ACEOF
33132 cat confdefs.h >>conftest.$ac_ext
33133 cat >>conftest.$ac_ext <<_ACEOF
33134 /* end confdefs.h.  */
33135 /* Define getifaddrs to an innocuous variant, in case <limits.h> declares getifaddrs.
33136    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33137 #define getifaddrs innocuous_getifaddrs
33138
33139 /* System header to define __stub macros and hopefully few prototypes,
33140     which can conflict with char getifaddrs (); below.
33141     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33142     <limits.h> exists even on freestanding compilers.  */
33143
33144 #ifdef __STDC__
33145 # include <limits.h>
33146 #else
33147 # include <assert.h>
33148 #endif
33149
33150 #undef getifaddrs
33151
33152 /* Override any GCC internal prototype to avoid an error.
33153    Use char because int might match the return type of a GCC
33154    builtin and then its argument prototype would still apply.  */
33155 #ifdef __cplusplus
33156 extern "C"
33157 #endif
33158 char getifaddrs ();
33159 /* The GNU C library defines this for functions which it implements
33160     to always fail with ENOSYS.  Some functions are actually named
33161     something starting with __ and the normal name is an alias.  */
33162 #if defined __stub_getifaddrs || defined __stub___getifaddrs
33163 choke me
33164 #endif
33165
33166 int
33167 main ()
33168 {
33169 return getifaddrs ();
33170   ;
33171   return 0;
33172 }
33173 _ACEOF
33174 rm -f conftest.$ac_objext conftest$ac_exeext
33175 if { (ac_try="$ac_link"
33176 case "(($ac_try" in
33177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33178   *) ac_try_echo=$ac_try;;
33179 esac
33180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33181   (eval "$ac_link") 2>conftest.er1
33182   ac_status=$?
33183   grep -v '^ *+' conftest.er1 >conftest.err
33184   rm -f conftest.er1
33185   cat conftest.err >&5
33186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33187   (exit $ac_status); } && {
33188          test -z "$ac_c_werror_flag" ||
33189          test ! -s conftest.err
33190        } && test -s conftest$ac_exeext &&
33191        $as_test_x conftest$ac_exeext; then
33192   ac_cv_func_getifaddrs=yes
33193 else
33194   echo "$as_me: failed program was:" >&5
33195 sed 's/^/| /' conftest.$ac_ext >&5
33196
33197         ac_cv_func_getifaddrs=no
33198 fi
33199
33200 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33201       conftest$ac_exeext conftest.$ac_ext
33202 fi
33203 { echo "$as_me:$LINENO: result: $ac_cv_func_getifaddrs" >&5
33204 echo "${ECHO_T}$ac_cv_func_getifaddrs" >&6; }
33205 if test $ac_cv_func_getifaddrs = yes; then
33206
33207 cat >>confdefs.h <<_ACEOF
33208 #define HAVE_GETIFADDRS 1
33209 _ACEOF
33210
33211 else
33212   case " $LIBOBJS " in
33213   *" getifaddrs.$ac_objext "* ) ;;
33214   *) LIBOBJS="$LIBOBJS getifaddrs.$ac_objext"
33215  ;;
33216 esac
33217
33218 fi
33219 { echo "$as_me:$LINENO: checking for getipnodebyaddr" >&5
33220 echo $ECHO_N "checking for getipnodebyaddr... $ECHO_C" >&6; }
33221 if test "${ac_cv_func_getipnodebyaddr+set}" = set; then
33222   echo $ECHO_N "(cached) $ECHO_C" >&6
33223 else
33224   cat >conftest.$ac_ext <<_ACEOF
33225 /* confdefs.h.  */
33226 _ACEOF
33227 cat confdefs.h >>conftest.$ac_ext
33228 cat >>conftest.$ac_ext <<_ACEOF
33229 /* end confdefs.h.  */
33230 /* Define getipnodebyaddr to an innocuous variant, in case <limits.h> declares getipnodebyaddr.
33231    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33232 #define getipnodebyaddr innocuous_getipnodebyaddr
33233
33234 /* System header to define __stub macros and hopefully few prototypes,
33235     which can conflict with char getipnodebyaddr (); below.
33236     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33237     <limits.h> exists even on freestanding compilers.  */
33238
33239 #ifdef __STDC__
33240 # include <limits.h>
33241 #else
33242 # include <assert.h>
33243 #endif
33244
33245 #undef getipnodebyaddr
33246
33247 /* Override any GCC internal prototype to avoid an error.
33248    Use char because int might match the return type of a GCC
33249    builtin and then its argument prototype would still apply.  */
33250 #ifdef __cplusplus
33251 extern "C"
33252 #endif
33253 char getipnodebyaddr ();
33254 /* The GNU C library defines this for functions which it implements
33255     to always fail with ENOSYS.  Some functions are actually named
33256     something starting with __ and the normal name is an alias.  */
33257 #if defined __stub_getipnodebyaddr || defined __stub___getipnodebyaddr
33258 choke me
33259 #endif
33260
33261 int
33262 main ()
33263 {
33264 return getipnodebyaddr ();
33265   ;
33266   return 0;
33267 }
33268 _ACEOF
33269 rm -f conftest.$ac_objext conftest$ac_exeext
33270 if { (ac_try="$ac_link"
33271 case "(($ac_try" in
33272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33273   *) ac_try_echo=$ac_try;;
33274 esac
33275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33276   (eval "$ac_link") 2>conftest.er1
33277   ac_status=$?
33278   grep -v '^ *+' conftest.er1 >conftest.err
33279   rm -f conftest.er1
33280   cat conftest.err >&5
33281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33282   (exit $ac_status); } && {
33283          test -z "$ac_c_werror_flag" ||
33284          test ! -s conftest.err
33285        } && test -s conftest$ac_exeext &&
33286        $as_test_x conftest$ac_exeext; then
33287   ac_cv_func_getipnodebyaddr=yes
33288 else
33289   echo "$as_me: failed program was:" >&5
33290 sed 's/^/| /' conftest.$ac_ext >&5
33291
33292         ac_cv_func_getipnodebyaddr=no
33293 fi
33294
33295 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33296       conftest$ac_exeext conftest.$ac_ext
33297 fi
33298 { echo "$as_me:$LINENO: result: $ac_cv_func_getipnodebyaddr" >&5
33299 echo "${ECHO_T}$ac_cv_func_getipnodebyaddr" >&6; }
33300 if test $ac_cv_func_getipnodebyaddr = yes; then
33301
33302 cat >>confdefs.h <<_ACEOF
33303 #define HAVE_GETIPNODEBYADDR 1
33304 _ACEOF
33305
33306 else
33307   case " $LIBOBJS " in
33308   *" getipnodebyaddr.$ac_objext "* ) ;;
33309   *) LIBOBJS="$LIBOBJS getipnodebyaddr.$ac_objext"
33310  ;;
33311 esac
33312
33313 fi
33314 { echo "$as_me:$LINENO: checking for getipnodebyname" >&5
33315 echo $ECHO_N "checking for getipnodebyname... $ECHO_C" >&6; }
33316 if test "${ac_cv_func_getipnodebyname+set}" = set; then
33317   echo $ECHO_N "(cached) $ECHO_C" >&6
33318 else
33319   cat >conftest.$ac_ext <<_ACEOF
33320 /* confdefs.h.  */
33321 _ACEOF
33322 cat confdefs.h >>conftest.$ac_ext
33323 cat >>conftest.$ac_ext <<_ACEOF
33324 /* end confdefs.h.  */
33325 /* Define getipnodebyname to an innocuous variant, in case <limits.h> declares getipnodebyname.
33326    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33327 #define getipnodebyname innocuous_getipnodebyname
33328
33329 /* System header to define __stub macros and hopefully few prototypes,
33330     which can conflict with char getipnodebyname (); below.
33331     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33332     <limits.h> exists even on freestanding compilers.  */
33333
33334 #ifdef __STDC__
33335 # include <limits.h>
33336 #else
33337 # include <assert.h>
33338 #endif
33339
33340 #undef getipnodebyname
33341
33342 /* Override any GCC internal prototype to avoid an error.
33343    Use char because int might match the return type of a GCC
33344    builtin and then its argument prototype would still apply.  */
33345 #ifdef __cplusplus
33346 extern "C"
33347 #endif
33348 char getipnodebyname ();
33349 /* The GNU C library defines this for functions which it implements
33350     to always fail with ENOSYS.  Some functions are actually named
33351     something starting with __ and the normal name is an alias.  */
33352 #if defined __stub_getipnodebyname || defined __stub___getipnodebyname
33353 choke me
33354 #endif
33355
33356 int
33357 main ()
33358 {
33359 return getipnodebyname ();
33360   ;
33361   return 0;
33362 }
33363 _ACEOF
33364 rm -f conftest.$ac_objext conftest$ac_exeext
33365 if { (ac_try="$ac_link"
33366 case "(($ac_try" in
33367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33368   *) ac_try_echo=$ac_try;;
33369 esac
33370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33371   (eval "$ac_link") 2>conftest.er1
33372   ac_status=$?
33373   grep -v '^ *+' conftest.er1 >conftest.err
33374   rm -f conftest.er1
33375   cat conftest.err >&5
33376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33377   (exit $ac_status); } && {
33378          test -z "$ac_c_werror_flag" ||
33379          test ! -s conftest.err
33380        } && test -s conftest$ac_exeext &&
33381        $as_test_x conftest$ac_exeext; then
33382   ac_cv_func_getipnodebyname=yes
33383 else
33384   echo "$as_me: failed program was:" >&5
33385 sed 's/^/| /' conftest.$ac_ext >&5
33386
33387         ac_cv_func_getipnodebyname=no
33388 fi
33389
33390 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33391       conftest$ac_exeext conftest.$ac_ext
33392 fi
33393 { echo "$as_me:$LINENO: result: $ac_cv_func_getipnodebyname" >&5
33394 echo "${ECHO_T}$ac_cv_func_getipnodebyname" >&6; }
33395 if test $ac_cv_func_getipnodebyname = yes; then
33396
33397 cat >>confdefs.h <<_ACEOF
33398 #define HAVE_GETIPNODEBYNAME 1
33399 _ACEOF
33400
33401 else
33402   case " $LIBOBJS " in
33403   *" getipnodebyname.$ac_objext "* ) ;;
33404   *) LIBOBJS="$LIBOBJS getipnodebyname.$ac_objext"
33405  ;;
33406 esac
33407
33408 fi
33409 { echo "$as_me:$LINENO: checking for getopt" >&5
33410 echo $ECHO_N "checking for getopt... $ECHO_C" >&6; }
33411 if test "${ac_cv_func_getopt+set}" = set; then
33412   echo $ECHO_N "(cached) $ECHO_C" >&6
33413 else
33414   cat >conftest.$ac_ext <<_ACEOF
33415 /* confdefs.h.  */
33416 _ACEOF
33417 cat confdefs.h >>conftest.$ac_ext
33418 cat >>conftest.$ac_ext <<_ACEOF
33419 /* end confdefs.h.  */
33420 /* Define getopt to an innocuous variant, in case <limits.h> declares getopt.
33421    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33422 #define getopt innocuous_getopt
33423
33424 /* System header to define __stub macros and hopefully few prototypes,
33425     which can conflict with char getopt (); below.
33426     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33427     <limits.h> exists even on freestanding compilers.  */
33428
33429 #ifdef __STDC__
33430 # include <limits.h>
33431 #else
33432 # include <assert.h>
33433 #endif
33434
33435 #undef getopt
33436
33437 /* Override any GCC internal prototype to avoid an error.
33438    Use char because int might match the return type of a GCC
33439    builtin and then its argument prototype would still apply.  */
33440 #ifdef __cplusplus
33441 extern "C"
33442 #endif
33443 char getopt ();
33444 /* The GNU C library defines this for functions which it implements
33445     to always fail with ENOSYS.  Some functions are actually named
33446     something starting with __ and the normal name is an alias.  */
33447 #if defined __stub_getopt || defined __stub___getopt
33448 choke me
33449 #endif
33450
33451 int
33452 main ()
33453 {
33454 return getopt ();
33455   ;
33456   return 0;
33457 }
33458 _ACEOF
33459 rm -f conftest.$ac_objext conftest$ac_exeext
33460 if { (ac_try="$ac_link"
33461 case "(($ac_try" in
33462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33463   *) ac_try_echo=$ac_try;;
33464 esac
33465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33466   (eval "$ac_link") 2>conftest.er1
33467   ac_status=$?
33468   grep -v '^ *+' conftest.er1 >conftest.err
33469   rm -f conftest.er1
33470   cat conftest.err >&5
33471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33472   (exit $ac_status); } && {
33473          test -z "$ac_c_werror_flag" ||
33474          test ! -s conftest.err
33475        } && test -s conftest$ac_exeext &&
33476        $as_test_x conftest$ac_exeext; then
33477   ac_cv_func_getopt=yes
33478 else
33479   echo "$as_me: failed program was:" >&5
33480 sed 's/^/| /' conftest.$ac_ext >&5
33481
33482         ac_cv_func_getopt=no
33483 fi
33484
33485 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33486       conftest$ac_exeext conftest.$ac_ext
33487 fi
33488 { echo "$as_me:$LINENO: result: $ac_cv_func_getopt" >&5
33489 echo "${ECHO_T}$ac_cv_func_getopt" >&6; }
33490 if test $ac_cv_func_getopt = yes; then
33491
33492 cat >>confdefs.h <<_ACEOF
33493 #define HAVE_GETOPT 1
33494 _ACEOF
33495
33496 else
33497   case " $LIBOBJS " in
33498   *" getopt.$ac_objext "* ) ;;
33499   *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
33500  ;;
33501 esac
33502
33503 fi
33504 { echo "$as_me:$LINENO: checking for gettimeofday" >&5
33505 echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6; }
33506 if test "${ac_cv_func_gettimeofday+set}" = set; then
33507   echo $ECHO_N "(cached) $ECHO_C" >&6
33508 else
33509   cat >conftest.$ac_ext <<_ACEOF
33510 /* confdefs.h.  */
33511 _ACEOF
33512 cat confdefs.h >>conftest.$ac_ext
33513 cat >>conftest.$ac_ext <<_ACEOF
33514 /* end confdefs.h.  */
33515 /* Define gettimeofday to an innocuous variant, in case <limits.h> declares gettimeofday.
33516    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33517 #define gettimeofday innocuous_gettimeofday
33518
33519 /* System header to define __stub macros and hopefully few prototypes,
33520     which can conflict with char gettimeofday (); below.
33521     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33522     <limits.h> exists even on freestanding compilers.  */
33523
33524 #ifdef __STDC__
33525 # include <limits.h>
33526 #else
33527 # include <assert.h>
33528 #endif
33529
33530 #undef gettimeofday
33531
33532 /* Override any GCC internal prototype to avoid an error.
33533    Use char because int might match the return type of a GCC
33534    builtin and then its argument prototype would still apply.  */
33535 #ifdef __cplusplus
33536 extern "C"
33537 #endif
33538 char gettimeofday ();
33539 /* The GNU C library defines this for functions which it implements
33540     to always fail with ENOSYS.  Some functions are actually named
33541     something starting with __ and the normal name is an alias.  */
33542 #if defined __stub_gettimeofday || defined __stub___gettimeofday
33543 choke me
33544 #endif
33545
33546 int
33547 main ()
33548 {
33549 return gettimeofday ();
33550   ;
33551   return 0;
33552 }
33553 _ACEOF
33554 rm -f conftest.$ac_objext conftest$ac_exeext
33555 if { (ac_try="$ac_link"
33556 case "(($ac_try" in
33557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33558   *) ac_try_echo=$ac_try;;
33559 esac
33560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33561   (eval "$ac_link") 2>conftest.er1
33562   ac_status=$?
33563   grep -v '^ *+' conftest.er1 >conftest.err
33564   rm -f conftest.er1
33565   cat conftest.err >&5
33566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33567   (exit $ac_status); } && {
33568          test -z "$ac_c_werror_flag" ||
33569          test ! -s conftest.err
33570        } && test -s conftest$ac_exeext &&
33571        $as_test_x conftest$ac_exeext; then
33572   ac_cv_func_gettimeofday=yes
33573 else
33574   echo "$as_me: failed program was:" >&5
33575 sed 's/^/| /' conftest.$ac_ext >&5
33576
33577         ac_cv_func_gettimeofday=no
33578 fi
33579
33580 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33581       conftest$ac_exeext conftest.$ac_ext
33582 fi
33583 { echo "$as_me:$LINENO: result: $ac_cv_func_gettimeofday" >&5
33584 echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6; }
33585 if test $ac_cv_func_gettimeofday = yes; then
33586
33587 cat >>confdefs.h <<_ACEOF
33588 #define HAVE_GETTIMEOFDAY 1
33589 _ACEOF
33590
33591 else
33592   case " $LIBOBJS " in
33593   *" gettimeofday.$ac_objext "* ) ;;
33594   *) LIBOBJS="$LIBOBJS gettimeofday.$ac_objext"
33595  ;;
33596 esac
33597
33598 fi
33599 { echo "$as_me:$LINENO: checking for getuid" >&5
33600 echo $ECHO_N "checking for getuid... $ECHO_C" >&6; }
33601 if test "${ac_cv_func_getuid+set}" = set; then
33602   echo $ECHO_N "(cached) $ECHO_C" >&6
33603 else
33604   cat >conftest.$ac_ext <<_ACEOF
33605 /* confdefs.h.  */
33606 _ACEOF
33607 cat confdefs.h >>conftest.$ac_ext
33608 cat >>conftest.$ac_ext <<_ACEOF
33609 /* end confdefs.h.  */
33610 /* Define getuid to an innocuous variant, in case <limits.h> declares getuid.
33611    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33612 #define getuid innocuous_getuid
33613
33614 /* System header to define __stub macros and hopefully few prototypes,
33615     which can conflict with char getuid (); below.
33616     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33617     <limits.h> exists even on freestanding compilers.  */
33618
33619 #ifdef __STDC__
33620 # include <limits.h>
33621 #else
33622 # include <assert.h>
33623 #endif
33624
33625 #undef getuid
33626
33627 /* Override any GCC internal prototype to avoid an error.
33628    Use char because int might match the return type of a GCC
33629    builtin and then its argument prototype would still apply.  */
33630 #ifdef __cplusplus
33631 extern "C"
33632 #endif
33633 char getuid ();
33634 /* The GNU C library defines this for functions which it implements
33635     to always fail with ENOSYS.  Some functions are actually named
33636     something starting with __ and the normal name is an alias.  */
33637 #if defined __stub_getuid || defined __stub___getuid
33638 choke me
33639 #endif
33640
33641 int
33642 main ()
33643 {
33644 return getuid ();
33645   ;
33646   return 0;
33647 }
33648 _ACEOF
33649 rm -f conftest.$ac_objext conftest$ac_exeext
33650 if { (ac_try="$ac_link"
33651 case "(($ac_try" in
33652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33653   *) ac_try_echo=$ac_try;;
33654 esac
33655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33656   (eval "$ac_link") 2>conftest.er1
33657   ac_status=$?
33658   grep -v '^ *+' conftest.er1 >conftest.err
33659   rm -f conftest.er1
33660   cat conftest.err >&5
33661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33662   (exit $ac_status); } && {
33663          test -z "$ac_c_werror_flag" ||
33664          test ! -s conftest.err
33665        } && test -s conftest$ac_exeext &&
33666        $as_test_x conftest$ac_exeext; then
33667   ac_cv_func_getuid=yes
33668 else
33669   echo "$as_me: failed program was:" >&5
33670 sed 's/^/| /' conftest.$ac_ext >&5
33671
33672         ac_cv_func_getuid=no
33673 fi
33674
33675 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33676       conftest$ac_exeext conftest.$ac_ext
33677 fi
33678 { echo "$as_me:$LINENO: result: $ac_cv_func_getuid" >&5
33679 echo "${ECHO_T}$ac_cv_func_getuid" >&6; }
33680 if test $ac_cv_func_getuid = yes; then
33681
33682 cat >>confdefs.h <<_ACEOF
33683 #define HAVE_GETUID 1
33684 _ACEOF
33685
33686 else
33687   case " $LIBOBJS " in
33688   *" getuid.$ac_objext "* ) ;;
33689   *) LIBOBJS="$LIBOBJS getuid.$ac_objext"
33690  ;;
33691 esac
33692
33693 fi
33694 { echo "$as_me:$LINENO: checking for getusershell" >&5
33695 echo $ECHO_N "checking for getusershell... $ECHO_C" >&6; }
33696 if test "${ac_cv_func_getusershell+set}" = set; then
33697   echo $ECHO_N "(cached) $ECHO_C" >&6
33698 else
33699   cat >conftest.$ac_ext <<_ACEOF
33700 /* confdefs.h.  */
33701 _ACEOF
33702 cat confdefs.h >>conftest.$ac_ext
33703 cat >>conftest.$ac_ext <<_ACEOF
33704 /* end confdefs.h.  */
33705 /* Define getusershell to an innocuous variant, in case <limits.h> declares getusershell.
33706    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33707 #define getusershell innocuous_getusershell
33708
33709 /* System header to define __stub macros and hopefully few prototypes,
33710     which can conflict with char getusershell (); below.
33711     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33712     <limits.h> exists even on freestanding compilers.  */
33713
33714 #ifdef __STDC__
33715 # include <limits.h>
33716 #else
33717 # include <assert.h>
33718 #endif
33719
33720 #undef getusershell
33721
33722 /* Override any GCC internal prototype to avoid an error.
33723    Use char because int might match the return type of a GCC
33724    builtin and then its argument prototype would still apply.  */
33725 #ifdef __cplusplus
33726 extern "C"
33727 #endif
33728 char getusershell ();
33729 /* The GNU C library defines this for functions which it implements
33730     to always fail with ENOSYS.  Some functions are actually named
33731     something starting with __ and the normal name is an alias.  */
33732 #if defined __stub_getusershell || defined __stub___getusershell
33733 choke me
33734 #endif
33735
33736 int
33737 main ()
33738 {
33739 return getusershell ();
33740   ;
33741   return 0;
33742 }
33743 _ACEOF
33744 rm -f conftest.$ac_objext conftest$ac_exeext
33745 if { (ac_try="$ac_link"
33746 case "(($ac_try" in
33747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33748   *) ac_try_echo=$ac_try;;
33749 esac
33750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33751   (eval "$ac_link") 2>conftest.er1
33752   ac_status=$?
33753   grep -v '^ *+' conftest.er1 >conftest.err
33754   rm -f conftest.er1
33755   cat conftest.err >&5
33756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33757   (exit $ac_status); } && {
33758          test -z "$ac_c_werror_flag" ||
33759          test ! -s conftest.err
33760        } && test -s conftest$ac_exeext &&
33761        $as_test_x conftest$ac_exeext; then
33762   ac_cv_func_getusershell=yes
33763 else
33764   echo "$as_me: failed program was:" >&5
33765 sed 's/^/| /' conftest.$ac_ext >&5
33766
33767         ac_cv_func_getusershell=no
33768 fi
33769
33770 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33771       conftest$ac_exeext conftest.$ac_ext
33772 fi
33773 { echo "$as_me:$LINENO: result: $ac_cv_func_getusershell" >&5
33774 echo "${ECHO_T}$ac_cv_func_getusershell" >&6; }
33775 if test $ac_cv_func_getusershell = yes; then
33776
33777 cat >>confdefs.h <<_ACEOF
33778 #define HAVE_GETUSERSHELL 1
33779 _ACEOF
33780
33781 else
33782   case " $LIBOBJS " in
33783   *" getusershell.$ac_objext "* ) ;;
33784   *) LIBOBJS="$LIBOBJS getusershell.$ac_objext"
33785  ;;
33786 esac
33787
33788 fi
33789 { echo "$as_me:$LINENO: checking for initgroups" >&5
33790 echo $ECHO_N "checking for initgroups... $ECHO_C" >&6; }
33791 if test "${ac_cv_func_initgroups+set}" = set; then
33792   echo $ECHO_N "(cached) $ECHO_C" >&6
33793 else
33794   cat >conftest.$ac_ext <<_ACEOF
33795 /* confdefs.h.  */
33796 _ACEOF
33797 cat confdefs.h >>conftest.$ac_ext
33798 cat >>conftest.$ac_ext <<_ACEOF
33799 /* end confdefs.h.  */
33800 /* Define initgroups to an innocuous variant, in case <limits.h> declares initgroups.
33801    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33802 #define initgroups innocuous_initgroups
33803
33804 /* System header to define __stub macros and hopefully few prototypes,
33805     which can conflict with char initgroups (); below.
33806     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33807     <limits.h> exists even on freestanding compilers.  */
33808
33809 #ifdef __STDC__
33810 # include <limits.h>
33811 #else
33812 # include <assert.h>
33813 #endif
33814
33815 #undef initgroups
33816
33817 /* Override any GCC internal prototype to avoid an error.
33818    Use char because int might match the return type of a GCC
33819    builtin and then its argument prototype would still apply.  */
33820 #ifdef __cplusplus
33821 extern "C"
33822 #endif
33823 char initgroups ();
33824 /* The GNU C library defines this for functions which it implements
33825     to always fail with ENOSYS.  Some functions are actually named
33826     something starting with __ and the normal name is an alias.  */
33827 #if defined __stub_initgroups || defined __stub___initgroups
33828 choke me
33829 #endif
33830
33831 int
33832 main ()
33833 {
33834 return initgroups ();
33835   ;
33836   return 0;
33837 }
33838 _ACEOF
33839 rm -f conftest.$ac_objext conftest$ac_exeext
33840 if { (ac_try="$ac_link"
33841 case "(($ac_try" in
33842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33843   *) ac_try_echo=$ac_try;;
33844 esac
33845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33846   (eval "$ac_link") 2>conftest.er1
33847   ac_status=$?
33848   grep -v '^ *+' conftest.er1 >conftest.err
33849   rm -f conftest.er1
33850   cat conftest.err >&5
33851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33852   (exit $ac_status); } && {
33853          test -z "$ac_c_werror_flag" ||
33854          test ! -s conftest.err
33855        } && test -s conftest$ac_exeext &&
33856        $as_test_x conftest$ac_exeext; then
33857   ac_cv_func_initgroups=yes
33858 else
33859   echo "$as_me: failed program was:" >&5
33860 sed 's/^/| /' conftest.$ac_ext >&5
33861
33862         ac_cv_func_initgroups=no
33863 fi
33864
33865 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33866       conftest$ac_exeext conftest.$ac_ext
33867 fi
33868 { echo "$as_me:$LINENO: result: $ac_cv_func_initgroups" >&5
33869 echo "${ECHO_T}$ac_cv_func_initgroups" >&6; }
33870 if test $ac_cv_func_initgroups = yes; then
33871
33872 cat >>confdefs.h <<_ACEOF
33873 #define HAVE_INITGROUPS 1
33874 _ACEOF
33875
33876 else
33877   case " $LIBOBJS " in
33878   *" initgroups.$ac_objext "* ) ;;
33879   *) LIBOBJS="$LIBOBJS initgroups.$ac_objext"
33880  ;;
33881 esac
33882
33883 fi
33884 { echo "$as_me:$LINENO: checking for innetgr" >&5
33885 echo $ECHO_N "checking for innetgr... $ECHO_C" >&6; }
33886 if test "${ac_cv_func_innetgr+set}" = set; then
33887   echo $ECHO_N "(cached) $ECHO_C" >&6
33888 else
33889   cat >conftest.$ac_ext <<_ACEOF
33890 /* confdefs.h.  */
33891 _ACEOF
33892 cat confdefs.h >>conftest.$ac_ext
33893 cat >>conftest.$ac_ext <<_ACEOF
33894 /* end confdefs.h.  */
33895 /* Define innetgr to an innocuous variant, in case <limits.h> declares innetgr.
33896    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33897 #define innetgr innocuous_innetgr
33898
33899 /* System header to define __stub macros and hopefully few prototypes,
33900     which can conflict with char innetgr (); below.
33901     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33902     <limits.h> exists even on freestanding compilers.  */
33903
33904 #ifdef __STDC__
33905 # include <limits.h>
33906 #else
33907 # include <assert.h>
33908 #endif
33909
33910 #undef innetgr
33911
33912 /* Override any GCC internal prototype to avoid an error.
33913    Use char because int might match the return type of a GCC
33914    builtin and then its argument prototype would still apply.  */
33915 #ifdef __cplusplus
33916 extern "C"
33917 #endif
33918 char innetgr ();
33919 /* The GNU C library defines this for functions which it implements
33920     to always fail with ENOSYS.  Some functions are actually named
33921     something starting with __ and the normal name is an alias.  */
33922 #if defined __stub_innetgr || defined __stub___innetgr
33923 choke me
33924 #endif
33925
33926 int
33927 main ()
33928 {
33929 return innetgr ();
33930   ;
33931   return 0;
33932 }
33933 _ACEOF
33934 rm -f conftest.$ac_objext conftest$ac_exeext
33935 if { (ac_try="$ac_link"
33936 case "(($ac_try" in
33937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33938   *) ac_try_echo=$ac_try;;
33939 esac
33940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33941   (eval "$ac_link") 2>conftest.er1
33942   ac_status=$?
33943   grep -v '^ *+' conftest.er1 >conftest.err
33944   rm -f conftest.er1
33945   cat conftest.err >&5
33946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33947   (exit $ac_status); } && {
33948          test -z "$ac_c_werror_flag" ||
33949          test ! -s conftest.err
33950        } && test -s conftest$ac_exeext &&
33951        $as_test_x conftest$ac_exeext; then
33952   ac_cv_func_innetgr=yes
33953 else
33954   echo "$as_me: failed program was:" >&5
33955 sed 's/^/| /' conftest.$ac_ext >&5
33956
33957         ac_cv_func_innetgr=no
33958 fi
33959
33960 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33961       conftest$ac_exeext conftest.$ac_ext
33962 fi
33963 { echo "$as_me:$LINENO: result: $ac_cv_func_innetgr" >&5
33964 echo "${ECHO_T}$ac_cv_func_innetgr" >&6; }
33965 if test $ac_cv_func_innetgr = yes; then
33966
33967 cat >>confdefs.h <<_ACEOF
33968 #define HAVE_INNETGR 1
33969 _ACEOF
33970
33971 else
33972   case " $LIBOBJS " in
33973   *" innetgr.$ac_objext "* ) ;;
33974   *) LIBOBJS="$LIBOBJS innetgr.$ac_objext"
33975  ;;
33976 esac
33977
33978 fi
33979 { echo "$as_me:$LINENO: checking for iruserok" >&5
33980 echo $ECHO_N "checking for iruserok... $ECHO_C" >&6; }
33981 if test "${ac_cv_func_iruserok+set}" = set; then
33982   echo $ECHO_N "(cached) $ECHO_C" >&6
33983 else
33984   cat >conftest.$ac_ext <<_ACEOF
33985 /* confdefs.h.  */
33986 _ACEOF
33987 cat confdefs.h >>conftest.$ac_ext
33988 cat >>conftest.$ac_ext <<_ACEOF
33989 /* end confdefs.h.  */
33990 /* Define iruserok to an innocuous variant, in case <limits.h> declares iruserok.
33991    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33992 #define iruserok innocuous_iruserok
33993
33994 /* System header to define __stub macros and hopefully few prototypes,
33995     which can conflict with char iruserok (); below.
33996     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33997     <limits.h> exists even on freestanding compilers.  */
33998
33999 #ifdef __STDC__
34000 # include <limits.h>
34001 #else
34002 # include <assert.h>
34003 #endif
34004
34005 #undef iruserok
34006
34007 /* Override any GCC internal prototype to avoid an error.
34008    Use char because int might match the return type of a GCC
34009    builtin and then its argument prototype would still apply.  */
34010 #ifdef __cplusplus
34011 extern "C"
34012 #endif
34013 char iruserok ();
34014 /* The GNU C library defines this for functions which it implements
34015     to always fail with ENOSYS.  Some functions are actually named
34016     something starting with __ and the normal name is an alias.  */
34017 #if defined __stub_iruserok || defined __stub___iruserok
34018 choke me
34019 #endif
34020
34021 int
34022 main ()
34023 {
34024 return iruserok ();
34025   ;
34026   return 0;
34027 }
34028 _ACEOF
34029 rm -f conftest.$ac_objext conftest$ac_exeext
34030 if { (ac_try="$ac_link"
34031 case "(($ac_try" in
34032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34033   *) ac_try_echo=$ac_try;;
34034 esac
34035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34036   (eval "$ac_link") 2>conftest.er1
34037   ac_status=$?
34038   grep -v '^ *+' conftest.er1 >conftest.err
34039   rm -f conftest.er1
34040   cat conftest.err >&5
34041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34042   (exit $ac_status); } && {
34043          test -z "$ac_c_werror_flag" ||
34044          test ! -s conftest.err
34045        } && test -s conftest$ac_exeext &&
34046        $as_test_x conftest$ac_exeext; then
34047   ac_cv_func_iruserok=yes
34048 else
34049   echo "$as_me: failed program was:" >&5
34050 sed 's/^/| /' conftest.$ac_ext >&5
34051
34052         ac_cv_func_iruserok=no
34053 fi
34054
34055 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34056       conftest$ac_exeext conftest.$ac_ext
34057 fi
34058 { echo "$as_me:$LINENO: result: $ac_cv_func_iruserok" >&5
34059 echo "${ECHO_T}$ac_cv_func_iruserok" >&6; }
34060 if test $ac_cv_func_iruserok = yes; then
34061
34062 cat >>confdefs.h <<_ACEOF
34063 #define HAVE_IRUSEROK 1
34064 _ACEOF
34065
34066 else
34067   case " $LIBOBJS " in
34068   *" iruserok.$ac_objext "* ) ;;
34069   *) LIBOBJS="$LIBOBJS iruserok.$ac_objext"
34070  ;;
34071 esac
34072
34073 fi
34074 { echo "$as_me:$LINENO: checking for localtime_r" >&5
34075 echo $ECHO_N "checking for localtime_r... $ECHO_C" >&6; }
34076 if test "${ac_cv_func_localtime_r+set}" = set; then
34077   echo $ECHO_N "(cached) $ECHO_C" >&6
34078 else
34079   cat >conftest.$ac_ext <<_ACEOF
34080 /* confdefs.h.  */
34081 _ACEOF
34082 cat confdefs.h >>conftest.$ac_ext
34083 cat >>conftest.$ac_ext <<_ACEOF
34084 /* end confdefs.h.  */
34085 /* Define localtime_r to an innocuous variant, in case <limits.h> declares localtime_r.
34086    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34087 #define localtime_r innocuous_localtime_r
34088
34089 /* System header to define __stub macros and hopefully few prototypes,
34090     which can conflict with char localtime_r (); below.
34091     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34092     <limits.h> exists even on freestanding compilers.  */
34093
34094 #ifdef __STDC__
34095 # include <limits.h>
34096 #else
34097 # include <assert.h>
34098 #endif
34099
34100 #undef localtime_r
34101
34102 /* Override any GCC internal prototype to avoid an error.
34103    Use char because int might match the return type of a GCC
34104    builtin and then its argument prototype would still apply.  */
34105 #ifdef __cplusplus
34106 extern "C"
34107 #endif
34108 char localtime_r ();
34109 /* The GNU C library defines this for functions which it implements
34110     to always fail with ENOSYS.  Some functions are actually named
34111     something starting with __ and the normal name is an alias.  */
34112 #if defined __stub_localtime_r || defined __stub___localtime_r
34113 choke me
34114 #endif
34115
34116 int
34117 main ()
34118 {
34119 return localtime_r ();
34120   ;
34121   return 0;
34122 }
34123 _ACEOF
34124 rm -f conftest.$ac_objext conftest$ac_exeext
34125 if { (ac_try="$ac_link"
34126 case "(($ac_try" in
34127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34128   *) ac_try_echo=$ac_try;;
34129 esac
34130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34131   (eval "$ac_link") 2>conftest.er1
34132   ac_status=$?
34133   grep -v '^ *+' conftest.er1 >conftest.err
34134   rm -f conftest.er1
34135   cat conftest.err >&5
34136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34137   (exit $ac_status); } && {
34138          test -z "$ac_c_werror_flag" ||
34139          test ! -s conftest.err
34140        } && test -s conftest$ac_exeext &&
34141        $as_test_x conftest$ac_exeext; then
34142   ac_cv_func_localtime_r=yes
34143 else
34144   echo "$as_me: failed program was:" >&5
34145 sed 's/^/| /' conftest.$ac_ext >&5
34146
34147         ac_cv_func_localtime_r=no
34148 fi
34149
34150 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34151       conftest$ac_exeext conftest.$ac_ext
34152 fi
34153 { echo "$as_me:$LINENO: result: $ac_cv_func_localtime_r" >&5
34154 echo "${ECHO_T}$ac_cv_func_localtime_r" >&6; }
34155 if test $ac_cv_func_localtime_r = yes; then
34156
34157 cat >>confdefs.h <<_ACEOF
34158 #define HAVE_LOCALTIME_R 1
34159 _ACEOF
34160
34161 else
34162   case " $LIBOBJS " in
34163   *" localtime_r.$ac_objext "* ) ;;
34164   *) LIBOBJS="$LIBOBJS localtime_r.$ac_objext"
34165  ;;
34166 esac
34167
34168 fi
34169 { echo "$as_me:$LINENO: checking for lstat" >&5
34170 echo $ECHO_N "checking for lstat... $ECHO_C" >&6; }
34171 if test "${ac_cv_func_lstat+set}" = set; then
34172   echo $ECHO_N "(cached) $ECHO_C" >&6
34173 else
34174   cat >conftest.$ac_ext <<_ACEOF
34175 /* confdefs.h.  */
34176 _ACEOF
34177 cat confdefs.h >>conftest.$ac_ext
34178 cat >>conftest.$ac_ext <<_ACEOF
34179 /* end confdefs.h.  */
34180 /* Define lstat to an innocuous variant, in case <limits.h> declares lstat.
34181    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34182 #define lstat innocuous_lstat
34183
34184 /* System header to define __stub macros and hopefully few prototypes,
34185     which can conflict with char lstat (); below.
34186     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34187     <limits.h> exists even on freestanding compilers.  */
34188
34189 #ifdef __STDC__
34190 # include <limits.h>
34191 #else
34192 # include <assert.h>
34193 #endif
34194
34195 #undef lstat
34196
34197 /* Override any GCC internal prototype to avoid an error.
34198    Use char because int might match the return type of a GCC
34199    builtin and then its argument prototype would still apply.  */
34200 #ifdef __cplusplus
34201 extern "C"
34202 #endif
34203 char lstat ();
34204 /* The GNU C library defines this for functions which it implements
34205     to always fail with ENOSYS.  Some functions are actually named
34206     something starting with __ and the normal name is an alias.  */
34207 #if defined __stub_lstat || defined __stub___lstat
34208 choke me
34209 #endif
34210
34211 int
34212 main ()
34213 {
34214 return lstat ();
34215   ;
34216   return 0;
34217 }
34218 _ACEOF
34219 rm -f conftest.$ac_objext conftest$ac_exeext
34220 if { (ac_try="$ac_link"
34221 case "(($ac_try" in
34222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34223   *) ac_try_echo=$ac_try;;
34224 esac
34225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34226   (eval "$ac_link") 2>conftest.er1
34227   ac_status=$?
34228   grep -v '^ *+' conftest.er1 >conftest.err
34229   rm -f conftest.er1
34230   cat conftest.err >&5
34231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34232   (exit $ac_status); } && {
34233          test -z "$ac_c_werror_flag" ||
34234          test ! -s conftest.err
34235        } && test -s conftest$ac_exeext &&
34236        $as_test_x conftest$ac_exeext; then
34237   ac_cv_func_lstat=yes
34238 else
34239   echo "$as_me: failed program was:" >&5
34240 sed 's/^/| /' conftest.$ac_ext >&5
34241
34242         ac_cv_func_lstat=no
34243 fi
34244
34245 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34246       conftest$ac_exeext conftest.$ac_ext
34247 fi
34248 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat" >&5
34249 echo "${ECHO_T}$ac_cv_func_lstat" >&6; }
34250 if test $ac_cv_func_lstat = yes; then
34251
34252 cat >>confdefs.h <<_ACEOF
34253 #define HAVE_LSTAT 1
34254 _ACEOF
34255
34256 else
34257   case " $LIBOBJS " in
34258   *" lstat.$ac_objext "* ) ;;
34259   *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
34260  ;;
34261 esac
34262
34263 fi
34264 { echo "$as_me:$LINENO: checking for memmove" >&5
34265 echo $ECHO_N "checking for memmove... $ECHO_C" >&6; }
34266 if test "${ac_cv_func_memmove+set}" = set; then
34267   echo $ECHO_N "(cached) $ECHO_C" >&6
34268 else
34269   cat >conftest.$ac_ext <<_ACEOF
34270 /* confdefs.h.  */
34271 _ACEOF
34272 cat confdefs.h >>conftest.$ac_ext
34273 cat >>conftest.$ac_ext <<_ACEOF
34274 /* end confdefs.h.  */
34275 /* Define memmove to an innocuous variant, in case <limits.h> declares memmove.
34276    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34277 #define memmove innocuous_memmove
34278
34279 /* System header to define __stub macros and hopefully few prototypes,
34280     which can conflict with char memmove (); below.
34281     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34282     <limits.h> exists even on freestanding compilers.  */
34283
34284 #ifdef __STDC__
34285 # include <limits.h>
34286 #else
34287 # include <assert.h>
34288 #endif
34289
34290 #undef memmove
34291
34292 /* Override any GCC internal prototype to avoid an error.
34293    Use char because int might match the return type of a GCC
34294    builtin and then its argument prototype would still apply.  */
34295 #ifdef __cplusplus
34296 extern "C"
34297 #endif
34298 char memmove ();
34299 /* The GNU C library defines this for functions which it implements
34300     to always fail with ENOSYS.  Some functions are actually named
34301     something starting with __ and the normal name is an alias.  */
34302 #if defined __stub_memmove || defined __stub___memmove
34303 choke me
34304 #endif
34305
34306 int
34307 main ()
34308 {
34309 return memmove ();
34310   ;
34311   return 0;
34312 }
34313 _ACEOF
34314 rm -f conftest.$ac_objext conftest$ac_exeext
34315 if { (ac_try="$ac_link"
34316 case "(($ac_try" in
34317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34318   *) ac_try_echo=$ac_try;;
34319 esac
34320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34321   (eval "$ac_link") 2>conftest.er1
34322   ac_status=$?
34323   grep -v '^ *+' conftest.er1 >conftest.err
34324   rm -f conftest.er1
34325   cat conftest.err >&5
34326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34327   (exit $ac_status); } && {
34328          test -z "$ac_c_werror_flag" ||
34329          test ! -s conftest.err
34330        } && test -s conftest$ac_exeext &&
34331        $as_test_x conftest$ac_exeext; then
34332   ac_cv_func_memmove=yes
34333 else
34334   echo "$as_me: failed program was:" >&5
34335 sed 's/^/| /' conftest.$ac_ext >&5
34336
34337         ac_cv_func_memmove=no
34338 fi
34339
34340 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34341       conftest$ac_exeext conftest.$ac_ext
34342 fi
34343 { echo "$as_me:$LINENO: result: $ac_cv_func_memmove" >&5
34344 echo "${ECHO_T}$ac_cv_func_memmove" >&6; }
34345 if test $ac_cv_func_memmove = yes; then
34346
34347 cat >>confdefs.h <<_ACEOF
34348 #define HAVE_MEMMOVE 1
34349 _ACEOF
34350
34351 else
34352   case " $LIBOBJS " in
34353   *" memmove.$ac_objext "* ) ;;
34354   *) LIBOBJS="$LIBOBJS memmove.$ac_objext"
34355  ;;
34356 esac
34357
34358 fi
34359 { echo "$as_me:$LINENO: checking for mkstemp" >&5
34360 echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6; }
34361 if test "${ac_cv_func_mkstemp+set}" = set; then
34362   echo $ECHO_N "(cached) $ECHO_C" >&6
34363 else
34364   cat >conftest.$ac_ext <<_ACEOF
34365 /* confdefs.h.  */
34366 _ACEOF
34367 cat confdefs.h >>conftest.$ac_ext
34368 cat >>conftest.$ac_ext <<_ACEOF
34369 /* end confdefs.h.  */
34370 /* Define mkstemp to an innocuous variant, in case <limits.h> declares mkstemp.
34371    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34372 #define mkstemp innocuous_mkstemp
34373
34374 /* System header to define __stub macros and hopefully few prototypes,
34375     which can conflict with char mkstemp (); below.
34376     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34377     <limits.h> exists even on freestanding compilers.  */
34378
34379 #ifdef __STDC__
34380 # include <limits.h>
34381 #else
34382 # include <assert.h>
34383 #endif
34384
34385 #undef mkstemp
34386
34387 /* Override any GCC internal prototype to avoid an error.
34388    Use char because int might match the return type of a GCC
34389    builtin and then its argument prototype would still apply.  */
34390 #ifdef __cplusplus
34391 extern "C"
34392 #endif
34393 char mkstemp ();
34394 /* The GNU C library defines this for functions which it implements
34395     to always fail with ENOSYS.  Some functions are actually named
34396     something starting with __ and the normal name is an alias.  */
34397 #if defined __stub_mkstemp || defined __stub___mkstemp
34398 choke me
34399 #endif
34400
34401 int
34402 main ()
34403 {
34404 return mkstemp ();
34405   ;
34406   return 0;
34407 }
34408 _ACEOF
34409 rm -f conftest.$ac_objext conftest$ac_exeext
34410 if { (ac_try="$ac_link"
34411 case "(($ac_try" in
34412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34413   *) ac_try_echo=$ac_try;;
34414 esac
34415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34416   (eval "$ac_link") 2>conftest.er1
34417   ac_status=$?
34418   grep -v '^ *+' conftest.er1 >conftest.err
34419   rm -f conftest.er1
34420   cat conftest.err >&5
34421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34422   (exit $ac_status); } && {
34423          test -z "$ac_c_werror_flag" ||
34424          test ! -s conftest.err
34425        } && test -s conftest$ac_exeext &&
34426        $as_test_x conftest$ac_exeext; then
34427   ac_cv_func_mkstemp=yes
34428 else
34429   echo "$as_me: failed program was:" >&5
34430 sed 's/^/| /' conftest.$ac_ext >&5
34431
34432         ac_cv_func_mkstemp=no
34433 fi
34434
34435 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34436       conftest$ac_exeext conftest.$ac_ext
34437 fi
34438 { echo "$as_me:$LINENO: result: $ac_cv_func_mkstemp" >&5
34439 echo "${ECHO_T}$ac_cv_func_mkstemp" >&6; }
34440 if test $ac_cv_func_mkstemp = yes; then
34441
34442 cat >>confdefs.h <<_ACEOF
34443 #define HAVE_MKSTEMP 1
34444 _ACEOF
34445
34446 else
34447   case " $LIBOBJS " in
34448   *" mkstemp.$ac_objext "* ) ;;
34449   *) LIBOBJS="$LIBOBJS mkstemp.$ac_objext"
34450  ;;
34451 esac
34452
34453 fi
34454 { echo "$as_me:$LINENO: checking for putenv" >&5
34455 echo $ECHO_N "checking for putenv... $ECHO_C" >&6; }
34456 if test "${ac_cv_func_putenv+set}" = set; then
34457   echo $ECHO_N "(cached) $ECHO_C" >&6
34458 else
34459   cat >conftest.$ac_ext <<_ACEOF
34460 /* confdefs.h.  */
34461 _ACEOF
34462 cat confdefs.h >>conftest.$ac_ext
34463 cat >>conftest.$ac_ext <<_ACEOF
34464 /* end confdefs.h.  */
34465 /* Define putenv to an innocuous variant, in case <limits.h> declares putenv.
34466    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34467 #define putenv innocuous_putenv
34468
34469 /* System header to define __stub macros and hopefully few prototypes,
34470     which can conflict with char putenv (); below.
34471     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34472     <limits.h> exists even on freestanding compilers.  */
34473
34474 #ifdef __STDC__
34475 # include <limits.h>
34476 #else
34477 # include <assert.h>
34478 #endif
34479
34480 #undef putenv
34481
34482 /* Override any GCC internal prototype to avoid an error.
34483    Use char because int might match the return type of a GCC
34484    builtin and then its argument prototype would still apply.  */
34485 #ifdef __cplusplus
34486 extern "C"
34487 #endif
34488 char putenv ();
34489 /* The GNU C library defines this for functions which it implements
34490     to always fail with ENOSYS.  Some functions are actually named
34491     something starting with __ and the normal name is an alias.  */
34492 #if defined __stub_putenv || defined __stub___putenv
34493 choke me
34494 #endif
34495
34496 int
34497 main ()
34498 {
34499 return putenv ();
34500   ;
34501   return 0;
34502 }
34503 _ACEOF
34504 rm -f conftest.$ac_objext conftest$ac_exeext
34505 if { (ac_try="$ac_link"
34506 case "(($ac_try" in
34507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34508   *) ac_try_echo=$ac_try;;
34509 esac
34510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34511   (eval "$ac_link") 2>conftest.er1
34512   ac_status=$?
34513   grep -v '^ *+' conftest.er1 >conftest.err
34514   rm -f conftest.er1
34515   cat conftest.err >&5
34516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34517   (exit $ac_status); } && {
34518          test -z "$ac_c_werror_flag" ||
34519          test ! -s conftest.err
34520        } && test -s conftest$ac_exeext &&
34521        $as_test_x conftest$ac_exeext; then
34522   ac_cv_func_putenv=yes
34523 else
34524   echo "$as_me: failed program was:" >&5
34525 sed 's/^/| /' conftest.$ac_ext >&5
34526
34527         ac_cv_func_putenv=no
34528 fi
34529
34530 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34531       conftest$ac_exeext conftest.$ac_ext
34532 fi
34533 { echo "$as_me:$LINENO: result: $ac_cv_func_putenv" >&5
34534 echo "${ECHO_T}$ac_cv_func_putenv" >&6; }
34535 if test $ac_cv_func_putenv = yes; then
34536
34537 cat >>confdefs.h <<_ACEOF
34538 #define HAVE_PUTENV 1
34539 _ACEOF
34540
34541 else
34542   case " $LIBOBJS " in
34543   *" putenv.$ac_objext "* ) ;;
34544   *) LIBOBJS="$LIBOBJS putenv.$ac_objext"
34545  ;;
34546 esac
34547
34548 fi
34549 { echo "$as_me:$LINENO: checking for rcmd" >&5
34550 echo $ECHO_N "checking for rcmd... $ECHO_C" >&6; }
34551 if test "${ac_cv_func_rcmd+set}" = set; then
34552   echo $ECHO_N "(cached) $ECHO_C" >&6
34553 else
34554   cat >conftest.$ac_ext <<_ACEOF
34555 /* confdefs.h.  */
34556 _ACEOF
34557 cat confdefs.h >>conftest.$ac_ext
34558 cat >>conftest.$ac_ext <<_ACEOF
34559 /* end confdefs.h.  */
34560 /* Define rcmd to an innocuous variant, in case <limits.h> declares rcmd.
34561    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34562 #define rcmd innocuous_rcmd
34563
34564 /* System header to define __stub macros and hopefully few prototypes,
34565     which can conflict with char rcmd (); below.
34566     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34567     <limits.h> exists even on freestanding compilers.  */
34568
34569 #ifdef __STDC__
34570 # include <limits.h>
34571 #else
34572 # include <assert.h>
34573 #endif
34574
34575 #undef rcmd
34576
34577 /* Override any GCC internal prototype to avoid an error.
34578    Use char because int might match the return type of a GCC
34579    builtin and then its argument prototype would still apply.  */
34580 #ifdef __cplusplus
34581 extern "C"
34582 #endif
34583 char rcmd ();
34584 /* The GNU C library defines this for functions which it implements
34585     to always fail with ENOSYS.  Some functions are actually named
34586     something starting with __ and the normal name is an alias.  */
34587 #if defined __stub_rcmd || defined __stub___rcmd
34588 choke me
34589 #endif
34590
34591 int
34592 main ()
34593 {
34594 return rcmd ();
34595   ;
34596   return 0;
34597 }
34598 _ACEOF
34599 rm -f conftest.$ac_objext conftest$ac_exeext
34600 if { (ac_try="$ac_link"
34601 case "(($ac_try" in
34602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34603   *) ac_try_echo=$ac_try;;
34604 esac
34605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34606   (eval "$ac_link") 2>conftest.er1
34607   ac_status=$?
34608   grep -v '^ *+' conftest.er1 >conftest.err
34609   rm -f conftest.er1
34610   cat conftest.err >&5
34611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34612   (exit $ac_status); } && {
34613          test -z "$ac_c_werror_flag" ||
34614          test ! -s conftest.err
34615        } && test -s conftest$ac_exeext &&
34616        $as_test_x conftest$ac_exeext; then
34617   ac_cv_func_rcmd=yes
34618 else
34619   echo "$as_me: failed program was:" >&5
34620 sed 's/^/| /' conftest.$ac_ext >&5
34621
34622         ac_cv_func_rcmd=no
34623 fi
34624
34625 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34626       conftest$ac_exeext conftest.$ac_ext
34627 fi
34628 { echo "$as_me:$LINENO: result: $ac_cv_func_rcmd" >&5
34629 echo "${ECHO_T}$ac_cv_func_rcmd" >&6; }
34630 if test $ac_cv_func_rcmd = yes; then
34631
34632 cat >>confdefs.h <<_ACEOF
34633 #define HAVE_RCMD 1
34634 _ACEOF
34635
34636 else
34637   case " $LIBOBJS " in
34638   *" rcmd.$ac_objext "* ) ;;
34639   *) LIBOBJS="$LIBOBJS rcmd.$ac_objext"
34640  ;;
34641 esac
34642
34643 fi
34644 { echo "$as_me:$LINENO: checking for readv" >&5
34645 echo $ECHO_N "checking for readv... $ECHO_C" >&6; }
34646 if test "${ac_cv_func_readv+set}" = set; then
34647   echo $ECHO_N "(cached) $ECHO_C" >&6
34648 else
34649   cat >conftest.$ac_ext <<_ACEOF
34650 /* confdefs.h.  */
34651 _ACEOF
34652 cat confdefs.h >>conftest.$ac_ext
34653 cat >>conftest.$ac_ext <<_ACEOF
34654 /* end confdefs.h.  */
34655 /* Define readv to an innocuous variant, in case <limits.h> declares readv.
34656    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34657 #define readv innocuous_readv
34658
34659 /* System header to define __stub macros and hopefully few prototypes,
34660     which can conflict with char readv (); below.
34661     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34662     <limits.h> exists even on freestanding compilers.  */
34663
34664 #ifdef __STDC__
34665 # include <limits.h>
34666 #else
34667 # include <assert.h>
34668 #endif
34669
34670 #undef readv
34671
34672 /* Override any GCC internal prototype to avoid an error.
34673    Use char because int might match the return type of a GCC
34674    builtin and then its argument prototype would still apply.  */
34675 #ifdef __cplusplus
34676 extern "C"
34677 #endif
34678 char readv ();
34679 /* The GNU C library defines this for functions which it implements
34680     to always fail with ENOSYS.  Some functions are actually named
34681     something starting with __ and the normal name is an alias.  */
34682 #if defined __stub_readv || defined __stub___readv
34683 choke me
34684 #endif
34685
34686 int
34687 main ()
34688 {
34689 return readv ();
34690   ;
34691   return 0;
34692 }
34693 _ACEOF
34694 rm -f conftest.$ac_objext conftest$ac_exeext
34695 if { (ac_try="$ac_link"
34696 case "(($ac_try" in
34697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34698   *) ac_try_echo=$ac_try;;
34699 esac
34700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34701   (eval "$ac_link") 2>conftest.er1
34702   ac_status=$?
34703   grep -v '^ *+' conftest.er1 >conftest.err
34704   rm -f conftest.er1
34705   cat conftest.err >&5
34706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34707   (exit $ac_status); } && {
34708          test -z "$ac_c_werror_flag" ||
34709          test ! -s conftest.err
34710        } && test -s conftest$ac_exeext &&
34711        $as_test_x conftest$ac_exeext; then
34712   ac_cv_func_readv=yes
34713 else
34714   echo "$as_me: failed program was:" >&5
34715 sed 's/^/| /' conftest.$ac_ext >&5
34716
34717         ac_cv_func_readv=no
34718 fi
34719
34720 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34721       conftest$ac_exeext conftest.$ac_ext
34722 fi
34723 { echo "$as_me:$LINENO: result: $ac_cv_func_readv" >&5
34724 echo "${ECHO_T}$ac_cv_func_readv" >&6; }
34725 if test $ac_cv_func_readv = yes; then
34726
34727 cat >>confdefs.h <<_ACEOF
34728 #define HAVE_READV 1
34729 _ACEOF
34730
34731 else
34732   case " $LIBOBJS " in
34733   *" readv.$ac_objext "* ) ;;
34734   *) LIBOBJS="$LIBOBJS readv.$ac_objext"
34735  ;;
34736 esac
34737
34738 fi
34739 { echo "$as_me:$LINENO: checking for recvmsg" >&5
34740 echo $ECHO_N "checking for recvmsg... $ECHO_C" >&6; }
34741 if test "${ac_cv_func_recvmsg+set}" = set; then
34742   echo $ECHO_N "(cached) $ECHO_C" >&6
34743 else
34744   cat >conftest.$ac_ext <<_ACEOF
34745 /* confdefs.h.  */
34746 _ACEOF
34747 cat confdefs.h >>conftest.$ac_ext
34748 cat >>conftest.$ac_ext <<_ACEOF
34749 /* end confdefs.h.  */
34750 /* Define recvmsg to an innocuous variant, in case <limits.h> declares recvmsg.
34751    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34752 #define recvmsg innocuous_recvmsg
34753
34754 /* System header to define __stub macros and hopefully few prototypes,
34755     which can conflict with char recvmsg (); below.
34756     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34757     <limits.h> exists even on freestanding compilers.  */
34758
34759 #ifdef __STDC__
34760 # include <limits.h>
34761 #else
34762 # include <assert.h>
34763 #endif
34764
34765 #undef recvmsg
34766
34767 /* Override any GCC internal prototype to avoid an error.
34768    Use char because int might match the return type of a GCC
34769    builtin and then its argument prototype would still apply.  */
34770 #ifdef __cplusplus
34771 extern "C"
34772 #endif
34773 char recvmsg ();
34774 /* The GNU C library defines this for functions which it implements
34775     to always fail with ENOSYS.  Some functions are actually named
34776     something starting with __ and the normal name is an alias.  */
34777 #if defined __stub_recvmsg || defined __stub___recvmsg
34778 choke me
34779 #endif
34780
34781 int
34782 main ()
34783 {
34784 return recvmsg ();
34785   ;
34786   return 0;
34787 }
34788 _ACEOF
34789 rm -f conftest.$ac_objext conftest$ac_exeext
34790 if { (ac_try="$ac_link"
34791 case "(($ac_try" in
34792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34793   *) ac_try_echo=$ac_try;;
34794 esac
34795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34796   (eval "$ac_link") 2>conftest.er1
34797   ac_status=$?
34798   grep -v '^ *+' conftest.er1 >conftest.err
34799   rm -f conftest.er1
34800   cat conftest.err >&5
34801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34802   (exit $ac_status); } && {
34803          test -z "$ac_c_werror_flag" ||
34804          test ! -s conftest.err
34805        } && test -s conftest$ac_exeext &&
34806        $as_test_x conftest$ac_exeext; then
34807   ac_cv_func_recvmsg=yes
34808 else
34809   echo "$as_me: failed program was:" >&5
34810 sed 's/^/| /' conftest.$ac_ext >&5
34811
34812         ac_cv_func_recvmsg=no
34813 fi
34814
34815 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34816       conftest$ac_exeext conftest.$ac_ext
34817 fi
34818 { echo "$as_me:$LINENO: result: $ac_cv_func_recvmsg" >&5
34819 echo "${ECHO_T}$ac_cv_func_recvmsg" >&6; }
34820 if test $ac_cv_func_recvmsg = yes; then
34821
34822 cat >>confdefs.h <<_ACEOF
34823 #define HAVE_RECVMSG 1
34824 _ACEOF
34825
34826 else
34827   case " $LIBOBJS " in
34828   *" recvmsg.$ac_objext "* ) ;;
34829   *) LIBOBJS="$LIBOBJS recvmsg.$ac_objext"
34830  ;;
34831 esac
34832
34833 fi
34834 { echo "$as_me:$LINENO: checking for sendmsg" >&5
34835 echo $ECHO_N "checking for sendmsg... $ECHO_C" >&6; }
34836 if test "${ac_cv_func_sendmsg+set}" = set; then
34837   echo $ECHO_N "(cached) $ECHO_C" >&6
34838 else
34839   cat >conftest.$ac_ext <<_ACEOF
34840 /* confdefs.h.  */
34841 _ACEOF
34842 cat confdefs.h >>conftest.$ac_ext
34843 cat >>conftest.$ac_ext <<_ACEOF
34844 /* end confdefs.h.  */
34845 /* Define sendmsg to an innocuous variant, in case <limits.h> declares sendmsg.
34846    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34847 #define sendmsg innocuous_sendmsg
34848
34849 /* System header to define __stub macros and hopefully few prototypes,
34850     which can conflict with char sendmsg (); below.
34851     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34852     <limits.h> exists even on freestanding compilers.  */
34853
34854 #ifdef __STDC__
34855 # include <limits.h>
34856 #else
34857 # include <assert.h>
34858 #endif
34859
34860 #undef sendmsg
34861
34862 /* Override any GCC internal prototype to avoid an error.
34863    Use char because int might match the return type of a GCC
34864    builtin and then its argument prototype would still apply.  */
34865 #ifdef __cplusplus
34866 extern "C"
34867 #endif
34868 char sendmsg ();
34869 /* The GNU C library defines this for functions which it implements
34870     to always fail with ENOSYS.  Some functions are actually named
34871     something starting with __ and the normal name is an alias.  */
34872 #if defined __stub_sendmsg || defined __stub___sendmsg
34873 choke me
34874 #endif
34875
34876 int
34877 main ()
34878 {
34879 return sendmsg ();
34880   ;
34881   return 0;
34882 }
34883 _ACEOF
34884 rm -f conftest.$ac_objext conftest$ac_exeext
34885 if { (ac_try="$ac_link"
34886 case "(($ac_try" in
34887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34888   *) ac_try_echo=$ac_try;;
34889 esac
34890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34891   (eval "$ac_link") 2>conftest.er1
34892   ac_status=$?
34893   grep -v '^ *+' conftest.er1 >conftest.err
34894   rm -f conftest.er1
34895   cat conftest.err >&5
34896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34897   (exit $ac_status); } && {
34898          test -z "$ac_c_werror_flag" ||
34899          test ! -s conftest.err
34900        } && test -s conftest$ac_exeext &&
34901        $as_test_x conftest$ac_exeext; then
34902   ac_cv_func_sendmsg=yes
34903 else
34904   echo "$as_me: failed program was:" >&5
34905 sed 's/^/| /' conftest.$ac_ext >&5
34906
34907         ac_cv_func_sendmsg=no
34908 fi
34909
34910 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34911       conftest$ac_exeext conftest.$ac_ext
34912 fi
34913 { echo "$as_me:$LINENO: result: $ac_cv_func_sendmsg" >&5
34914 echo "${ECHO_T}$ac_cv_func_sendmsg" >&6; }
34915 if test $ac_cv_func_sendmsg = yes; then
34916
34917 cat >>confdefs.h <<_ACEOF
34918 #define HAVE_SENDMSG 1
34919 _ACEOF
34920
34921 else
34922   case " $LIBOBJS " in
34923   *" sendmsg.$ac_objext "* ) ;;
34924   *) LIBOBJS="$LIBOBJS sendmsg.$ac_objext"
34925  ;;
34926 esac
34927
34928 fi
34929 { echo "$as_me:$LINENO: checking for setegid" >&5
34930 echo $ECHO_N "checking for setegid... $ECHO_C" >&6; }
34931 if test "${ac_cv_func_setegid+set}" = set; then
34932   echo $ECHO_N "(cached) $ECHO_C" >&6
34933 else
34934   cat >conftest.$ac_ext <<_ACEOF
34935 /* confdefs.h.  */
34936 _ACEOF
34937 cat confdefs.h >>conftest.$ac_ext
34938 cat >>conftest.$ac_ext <<_ACEOF
34939 /* end confdefs.h.  */
34940 /* Define setegid to an innocuous variant, in case <limits.h> declares setegid.
34941    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34942 #define setegid innocuous_setegid
34943
34944 /* System header to define __stub macros and hopefully few prototypes,
34945     which can conflict with char setegid (); below.
34946     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34947     <limits.h> exists even on freestanding compilers.  */
34948
34949 #ifdef __STDC__
34950 # include <limits.h>
34951 #else
34952 # include <assert.h>
34953 #endif
34954
34955 #undef setegid
34956
34957 /* Override any GCC internal prototype to avoid an error.
34958    Use char because int might match the return type of a GCC
34959    builtin and then its argument prototype would still apply.  */
34960 #ifdef __cplusplus
34961 extern "C"
34962 #endif
34963 char setegid ();
34964 /* The GNU C library defines this for functions which it implements
34965     to always fail with ENOSYS.  Some functions are actually named
34966     something starting with __ and the normal name is an alias.  */
34967 #if defined __stub_setegid || defined __stub___setegid
34968 choke me
34969 #endif
34970
34971 int
34972 main ()
34973 {
34974 return setegid ();
34975   ;
34976   return 0;
34977 }
34978 _ACEOF
34979 rm -f conftest.$ac_objext conftest$ac_exeext
34980 if { (ac_try="$ac_link"
34981 case "(($ac_try" in
34982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34983   *) ac_try_echo=$ac_try;;
34984 esac
34985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34986   (eval "$ac_link") 2>conftest.er1
34987   ac_status=$?
34988   grep -v '^ *+' conftest.er1 >conftest.err
34989   rm -f conftest.er1
34990   cat conftest.err >&5
34991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34992   (exit $ac_status); } && {
34993          test -z "$ac_c_werror_flag" ||
34994          test ! -s conftest.err
34995        } && test -s conftest$ac_exeext &&
34996        $as_test_x conftest$ac_exeext; then
34997   ac_cv_func_setegid=yes
34998 else
34999   echo "$as_me: failed program was:" >&5
35000 sed 's/^/| /' conftest.$ac_ext >&5
35001
35002         ac_cv_func_setegid=no
35003 fi
35004
35005 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35006       conftest$ac_exeext conftest.$ac_ext
35007 fi
35008 { echo "$as_me:$LINENO: result: $ac_cv_func_setegid" >&5
35009 echo "${ECHO_T}$ac_cv_func_setegid" >&6; }
35010 if test $ac_cv_func_setegid = yes; then
35011
35012 cat >>confdefs.h <<_ACEOF
35013 #define HAVE_SETEGID 1
35014 _ACEOF
35015
35016 else
35017   case " $LIBOBJS " in
35018   *" setegid.$ac_objext "* ) ;;
35019   *) LIBOBJS="$LIBOBJS setegid.$ac_objext"
35020  ;;
35021 esac
35022
35023 fi
35024 { echo "$as_me:$LINENO: checking for setenv" >&5
35025 echo $ECHO_N "checking for setenv... $ECHO_C" >&6; }
35026 if test "${ac_cv_func_setenv+set}" = set; then
35027   echo $ECHO_N "(cached) $ECHO_C" >&6
35028 else
35029   cat >conftest.$ac_ext <<_ACEOF
35030 /* confdefs.h.  */
35031 _ACEOF
35032 cat confdefs.h >>conftest.$ac_ext
35033 cat >>conftest.$ac_ext <<_ACEOF
35034 /* end confdefs.h.  */
35035 /* Define setenv to an innocuous variant, in case <limits.h> declares setenv.
35036    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35037 #define setenv innocuous_setenv
35038
35039 /* System header to define __stub macros and hopefully few prototypes,
35040     which can conflict with char setenv (); below.
35041     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35042     <limits.h> exists even on freestanding compilers.  */
35043
35044 #ifdef __STDC__
35045 # include <limits.h>
35046 #else
35047 # include <assert.h>
35048 #endif
35049
35050 #undef setenv
35051
35052 /* Override any GCC internal prototype to avoid an error.
35053    Use char because int might match the return type of a GCC
35054    builtin and then its argument prototype would still apply.  */
35055 #ifdef __cplusplus
35056 extern "C"
35057 #endif
35058 char setenv ();
35059 /* The GNU C library defines this for functions which it implements
35060     to always fail with ENOSYS.  Some functions are actually named
35061     something starting with __ and the normal name is an alias.  */
35062 #if defined __stub_setenv || defined __stub___setenv
35063 choke me
35064 #endif
35065
35066 int
35067 main ()
35068 {
35069 return setenv ();
35070   ;
35071   return 0;
35072 }
35073 _ACEOF
35074 rm -f conftest.$ac_objext conftest$ac_exeext
35075 if { (ac_try="$ac_link"
35076 case "(($ac_try" in
35077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35078   *) ac_try_echo=$ac_try;;
35079 esac
35080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35081   (eval "$ac_link") 2>conftest.er1
35082   ac_status=$?
35083   grep -v '^ *+' conftest.er1 >conftest.err
35084   rm -f conftest.er1
35085   cat conftest.err >&5
35086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35087   (exit $ac_status); } && {
35088          test -z "$ac_c_werror_flag" ||
35089          test ! -s conftest.err
35090        } && test -s conftest$ac_exeext &&
35091        $as_test_x conftest$ac_exeext; then
35092   ac_cv_func_setenv=yes
35093 else
35094   echo "$as_me: failed program was:" >&5
35095 sed 's/^/| /' conftest.$ac_ext >&5
35096
35097         ac_cv_func_setenv=no
35098 fi
35099
35100 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35101       conftest$ac_exeext conftest.$ac_ext
35102 fi
35103 { echo "$as_me:$LINENO: result: $ac_cv_func_setenv" >&5
35104 echo "${ECHO_T}$ac_cv_func_setenv" >&6; }
35105 if test $ac_cv_func_setenv = yes; then
35106
35107 cat >>confdefs.h <<_ACEOF
35108 #define HAVE_SETENV 1
35109 _ACEOF
35110
35111 else
35112   case " $LIBOBJS " in
35113   *" setenv.$ac_objext "* ) ;;
35114   *) LIBOBJS="$LIBOBJS setenv.$ac_objext"
35115  ;;
35116 esac
35117
35118 fi
35119 { echo "$as_me:$LINENO: checking for seteuid" >&5
35120 echo $ECHO_N "checking for seteuid... $ECHO_C" >&6; }
35121 if test "${ac_cv_func_seteuid+set}" = set; then
35122   echo $ECHO_N "(cached) $ECHO_C" >&6
35123 else
35124   cat >conftest.$ac_ext <<_ACEOF
35125 /* confdefs.h.  */
35126 _ACEOF
35127 cat confdefs.h >>conftest.$ac_ext
35128 cat >>conftest.$ac_ext <<_ACEOF
35129 /* end confdefs.h.  */
35130 /* Define seteuid to an innocuous variant, in case <limits.h> declares seteuid.
35131    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35132 #define seteuid innocuous_seteuid
35133
35134 /* System header to define __stub macros and hopefully few prototypes,
35135     which can conflict with char seteuid (); below.
35136     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35137     <limits.h> exists even on freestanding compilers.  */
35138
35139 #ifdef __STDC__
35140 # include <limits.h>
35141 #else
35142 # include <assert.h>
35143 #endif
35144
35145 #undef seteuid
35146
35147 /* Override any GCC internal prototype to avoid an error.
35148    Use char because int might match the return type of a GCC
35149    builtin and then its argument prototype would still apply.  */
35150 #ifdef __cplusplus
35151 extern "C"
35152 #endif
35153 char seteuid ();
35154 /* The GNU C library defines this for functions which it implements
35155     to always fail with ENOSYS.  Some functions are actually named
35156     something starting with __ and the normal name is an alias.  */
35157 #if defined __stub_seteuid || defined __stub___seteuid
35158 choke me
35159 #endif
35160
35161 int
35162 main ()
35163 {
35164 return seteuid ();
35165   ;
35166   return 0;
35167 }
35168 _ACEOF
35169 rm -f conftest.$ac_objext conftest$ac_exeext
35170 if { (ac_try="$ac_link"
35171 case "(($ac_try" in
35172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35173   *) ac_try_echo=$ac_try;;
35174 esac
35175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35176   (eval "$ac_link") 2>conftest.er1
35177   ac_status=$?
35178   grep -v '^ *+' conftest.er1 >conftest.err
35179   rm -f conftest.er1
35180   cat conftest.err >&5
35181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35182   (exit $ac_status); } && {
35183          test -z "$ac_c_werror_flag" ||
35184          test ! -s conftest.err
35185        } && test -s conftest$ac_exeext &&
35186        $as_test_x conftest$ac_exeext; then
35187   ac_cv_func_seteuid=yes
35188 else
35189   echo "$as_me: failed program was:" >&5
35190 sed 's/^/| /' conftest.$ac_ext >&5
35191
35192         ac_cv_func_seteuid=no
35193 fi
35194
35195 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35196       conftest$ac_exeext conftest.$ac_ext
35197 fi
35198 { echo "$as_me:$LINENO: result: $ac_cv_func_seteuid" >&5
35199 echo "${ECHO_T}$ac_cv_func_seteuid" >&6; }
35200 if test $ac_cv_func_seteuid = yes; then
35201
35202 cat >>confdefs.h <<_ACEOF
35203 #define HAVE_SETEUID 1
35204 _ACEOF
35205
35206 else
35207   case " $LIBOBJS " in
35208   *" seteuid.$ac_objext "* ) ;;
35209   *) LIBOBJS="$LIBOBJS seteuid.$ac_objext"
35210  ;;
35211 esac
35212
35213 fi
35214 { echo "$as_me:$LINENO: checking for strcasecmp" >&5
35215 echo $ECHO_N "checking for strcasecmp... $ECHO_C" >&6; }
35216 if test "${ac_cv_func_strcasecmp+set}" = set; then
35217   echo $ECHO_N "(cached) $ECHO_C" >&6
35218 else
35219   cat >conftest.$ac_ext <<_ACEOF
35220 /* confdefs.h.  */
35221 _ACEOF
35222 cat confdefs.h >>conftest.$ac_ext
35223 cat >>conftest.$ac_ext <<_ACEOF
35224 /* end confdefs.h.  */
35225 /* Define strcasecmp to an innocuous variant, in case <limits.h> declares strcasecmp.
35226    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35227 #define strcasecmp innocuous_strcasecmp
35228
35229 /* System header to define __stub macros and hopefully few prototypes,
35230     which can conflict with char strcasecmp (); below.
35231     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35232     <limits.h> exists even on freestanding compilers.  */
35233
35234 #ifdef __STDC__
35235 # include <limits.h>
35236 #else
35237 # include <assert.h>
35238 #endif
35239
35240 #undef strcasecmp
35241
35242 /* Override any GCC internal prototype to avoid an error.
35243    Use char because int might match the return type of a GCC
35244    builtin and then its argument prototype would still apply.  */
35245 #ifdef __cplusplus
35246 extern "C"
35247 #endif
35248 char strcasecmp ();
35249 /* The GNU C library defines this for functions which it implements
35250     to always fail with ENOSYS.  Some functions are actually named
35251     something starting with __ and the normal name is an alias.  */
35252 #if defined __stub_strcasecmp || defined __stub___strcasecmp
35253 choke me
35254 #endif
35255
35256 int
35257 main ()
35258 {
35259 return strcasecmp ();
35260   ;
35261   return 0;
35262 }
35263 _ACEOF
35264 rm -f conftest.$ac_objext conftest$ac_exeext
35265 if { (ac_try="$ac_link"
35266 case "(($ac_try" in
35267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35268   *) ac_try_echo=$ac_try;;
35269 esac
35270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35271   (eval "$ac_link") 2>conftest.er1
35272   ac_status=$?
35273   grep -v '^ *+' conftest.er1 >conftest.err
35274   rm -f conftest.er1
35275   cat conftest.err >&5
35276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35277   (exit $ac_status); } && {
35278          test -z "$ac_c_werror_flag" ||
35279          test ! -s conftest.err
35280        } && test -s conftest$ac_exeext &&
35281        $as_test_x conftest$ac_exeext; then
35282   ac_cv_func_strcasecmp=yes
35283 else
35284   echo "$as_me: failed program was:" >&5
35285 sed 's/^/| /' conftest.$ac_ext >&5
35286
35287         ac_cv_func_strcasecmp=no
35288 fi
35289
35290 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35291       conftest$ac_exeext conftest.$ac_ext
35292 fi
35293 { echo "$as_me:$LINENO: result: $ac_cv_func_strcasecmp" >&5
35294 echo "${ECHO_T}$ac_cv_func_strcasecmp" >&6; }
35295 if test $ac_cv_func_strcasecmp = yes; then
35296
35297 cat >>confdefs.h <<_ACEOF
35298 #define HAVE_STRCASECMP 1
35299 _ACEOF
35300
35301 else
35302   case " $LIBOBJS " in
35303   *" strcasecmp.$ac_objext "* ) ;;
35304   *) LIBOBJS="$LIBOBJS strcasecmp.$ac_objext"
35305  ;;
35306 esac
35307
35308 fi
35309 { echo "$as_me:$LINENO: checking for strdup" >&5
35310 echo $ECHO_N "checking for strdup... $ECHO_C" >&6; }
35311 if test "${ac_cv_func_strdup+set}" = set; then
35312   echo $ECHO_N "(cached) $ECHO_C" >&6
35313 else
35314   cat >conftest.$ac_ext <<_ACEOF
35315 /* confdefs.h.  */
35316 _ACEOF
35317 cat confdefs.h >>conftest.$ac_ext
35318 cat >>conftest.$ac_ext <<_ACEOF
35319 /* end confdefs.h.  */
35320 /* Define strdup to an innocuous variant, in case <limits.h> declares strdup.
35321    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35322 #define strdup innocuous_strdup
35323
35324 /* System header to define __stub macros and hopefully few prototypes,
35325     which can conflict with char strdup (); below.
35326     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35327     <limits.h> exists even on freestanding compilers.  */
35328
35329 #ifdef __STDC__
35330 # include <limits.h>
35331 #else
35332 # include <assert.h>
35333 #endif
35334
35335 #undef strdup
35336
35337 /* Override any GCC internal prototype to avoid an error.
35338    Use char because int might match the return type of a GCC
35339    builtin and then its argument prototype would still apply.  */
35340 #ifdef __cplusplus
35341 extern "C"
35342 #endif
35343 char strdup ();
35344 /* The GNU C library defines this for functions which it implements
35345     to always fail with ENOSYS.  Some functions are actually named
35346     something starting with __ and the normal name is an alias.  */
35347 #if defined __stub_strdup || defined __stub___strdup
35348 choke me
35349 #endif
35350
35351 int
35352 main ()
35353 {
35354 return strdup ();
35355   ;
35356   return 0;
35357 }
35358 _ACEOF
35359 rm -f conftest.$ac_objext conftest$ac_exeext
35360 if { (ac_try="$ac_link"
35361 case "(($ac_try" in
35362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35363   *) ac_try_echo=$ac_try;;
35364 esac
35365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35366   (eval "$ac_link") 2>conftest.er1
35367   ac_status=$?
35368   grep -v '^ *+' conftest.er1 >conftest.err
35369   rm -f conftest.er1
35370   cat conftest.err >&5
35371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35372   (exit $ac_status); } && {
35373          test -z "$ac_c_werror_flag" ||
35374          test ! -s conftest.err
35375        } && test -s conftest$ac_exeext &&
35376        $as_test_x conftest$ac_exeext; then
35377   ac_cv_func_strdup=yes
35378 else
35379   echo "$as_me: failed program was:" >&5
35380 sed 's/^/| /' conftest.$ac_ext >&5
35381
35382         ac_cv_func_strdup=no
35383 fi
35384
35385 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35386       conftest$ac_exeext conftest.$ac_ext
35387 fi
35388 { echo "$as_me:$LINENO: result: $ac_cv_func_strdup" >&5
35389 echo "${ECHO_T}$ac_cv_func_strdup" >&6; }
35390 if test $ac_cv_func_strdup = yes; then
35391
35392 cat >>confdefs.h <<_ACEOF
35393 #define HAVE_STRDUP 1
35394 _ACEOF
35395
35396 else
35397   case " $LIBOBJS " in
35398   *" strdup.$ac_objext "* ) ;;
35399   *) LIBOBJS="$LIBOBJS strdup.$ac_objext"
35400  ;;
35401 esac
35402
35403 fi
35404 { echo "$as_me:$LINENO: checking for strerror" >&5
35405 echo $ECHO_N "checking for strerror... $ECHO_C" >&6; }
35406 if test "${ac_cv_func_strerror+set}" = set; then
35407   echo $ECHO_N "(cached) $ECHO_C" >&6
35408 else
35409   cat >conftest.$ac_ext <<_ACEOF
35410 /* confdefs.h.  */
35411 _ACEOF
35412 cat confdefs.h >>conftest.$ac_ext
35413 cat >>conftest.$ac_ext <<_ACEOF
35414 /* end confdefs.h.  */
35415 /* Define strerror to an innocuous variant, in case <limits.h> declares strerror.
35416    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35417 #define strerror innocuous_strerror
35418
35419 /* System header to define __stub macros and hopefully few prototypes,
35420     which can conflict with char strerror (); below.
35421     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35422     <limits.h> exists even on freestanding compilers.  */
35423
35424 #ifdef __STDC__
35425 # include <limits.h>
35426 #else
35427 # include <assert.h>
35428 #endif
35429
35430 #undef strerror
35431
35432 /* Override any GCC internal prototype to avoid an error.
35433    Use char because int might match the return type of a GCC
35434    builtin and then its argument prototype would still apply.  */
35435 #ifdef __cplusplus
35436 extern "C"
35437 #endif
35438 char strerror ();
35439 /* The GNU C library defines this for functions which it implements
35440     to always fail with ENOSYS.  Some functions are actually named
35441     something starting with __ and the normal name is an alias.  */
35442 #if defined __stub_strerror || defined __stub___strerror
35443 choke me
35444 #endif
35445
35446 int
35447 main ()
35448 {
35449 return strerror ();
35450   ;
35451   return 0;
35452 }
35453 _ACEOF
35454 rm -f conftest.$ac_objext conftest$ac_exeext
35455 if { (ac_try="$ac_link"
35456 case "(($ac_try" in
35457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35458   *) ac_try_echo=$ac_try;;
35459 esac
35460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35461   (eval "$ac_link") 2>conftest.er1
35462   ac_status=$?
35463   grep -v '^ *+' conftest.er1 >conftest.err
35464   rm -f conftest.er1
35465   cat conftest.err >&5
35466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35467   (exit $ac_status); } && {
35468          test -z "$ac_c_werror_flag" ||
35469          test ! -s conftest.err
35470        } && test -s conftest$ac_exeext &&
35471        $as_test_x conftest$ac_exeext; then
35472   ac_cv_func_strerror=yes
35473 else
35474   echo "$as_me: failed program was:" >&5
35475 sed 's/^/| /' conftest.$ac_ext >&5
35476
35477         ac_cv_func_strerror=no
35478 fi
35479
35480 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35481       conftest$ac_exeext conftest.$ac_ext
35482 fi
35483 { echo "$as_me:$LINENO: result: $ac_cv_func_strerror" >&5
35484 echo "${ECHO_T}$ac_cv_func_strerror" >&6; }
35485 if test $ac_cv_func_strerror = yes; then
35486
35487 cat >>confdefs.h <<_ACEOF
35488 #define HAVE_STRERROR 1
35489 _ACEOF
35490
35491 else
35492   case " $LIBOBJS " in
35493   *" strerror.$ac_objext "* ) ;;
35494   *) LIBOBJS="$LIBOBJS strerror.$ac_objext"
35495  ;;
35496 esac
35497
35498 fi
35499 { echo "$as_me:$LINENO: checking for strftime" >&5
35500 echo $ECHO_N "checking for strftime... $ECHO_C" >&6; }
35501 if test "${ac_cv_func_strftime+set}" = set; then
35502   echo $ECHO_N "(cached) $ECHO_C" >&6
35503 else
35504   cat >conftest.$ac_ext <<_ACEOF
35505 /* confdefs.h.  */
35506 _ACEOF
35507 cat confdefs.h >>conftest.$ac_ext
35508 cat >>conftest.$ac_ext <<_ACEOF
35509 /* end confdefs.h.  */
35510 /* Define strftime to an innocuous variant, in case <limits.h> declares strftime.
35511    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35512 #define strftime innocuous_strftime
35513
35514 /* System header to define __stub macros and hopefully few prototypes,
35515     which can conflict with char strftime (); below.
35516     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35517     <limits.h> exists even on freestanding compilers.  */
35518
35519 #ifdef __STDC__
35520 # include <limits.h>
35521 #else
35522 # include <assert.h>
35523 #endif
35524
35525 #undef strftime
35526
35527 /* Override any GCC internal prototype to avoid an error.
35528    Use char because int might match the return type of a GCC
35529    builtin and then its argument prototype would still apply.  */
35530 #ifdef __cplusplus
35531 extern "C"
35532 #endif
35533 char strftime ();
35534 /* The GNU C library defines this for functions which it implements
35535     to always fail with ENOSYS.  Some functions are actually named
35536     something starting with __ and the normal name is an alias.  */
35537 #if defined __stub_strftime || defined __stub___strftime
35538 choke me
35539 #endif
35540
35541 int
35542 main ()
35543 {
35544 return strftime ();
35545   ;
35546   return 0;
35547 }
35548 _ACEOF
35549 rm -f conftest.$ac_objext conftest$ac_exeext
35550 if { (ac_try="$ac_link"
35551 case "(($ac_try" in
35552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35553   *) ac_try_echo=$ac_try;;
35554 esac
35555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35556   (eval "$ac_link") 2>conftest.er1
35557   ac_status=$?
35558   grep -v '^ *+' conftest.er1 >conftest.err
35559   rm -f conftest.er1
35560   cat conftest.err >&5
35561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35562   (exit $ac_status); } && {
35563          test -z "$ac_c_werror_flag" ||
35564          test ! -s conftest.err
35565        } && test -s conftest$ac_exeext &&
35566        $as_test_x conftest$ac_exeext; then
35567   ac_cv_func_strftime=yes
35568 else
35569   echo "$as_me: failed program was:" >&5
35570 sed 's/^/| /' conftest.$ac_ext >&5
35571
35572         ac_cv_func_strftime=no
35573 fi
35574
35575 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35576       conftest$ac_exeext conftest.$ac_ext
35577 fi
35578 { echo "$as_me:$LINENO: result: $ac_cv_func_strftime" >&5
35579 echo "${ECHO_T}$ac_cv_func_strftime" >&6; }
35580 if test $ac_cv_func_strftime = yes; then
35581
35582 cat >>confdefs.h <<_ACEOF
35583 #define HAVE_STRFTIME 1
35584 _ACEOF
35585
35586 else
35587   case " $LIBOBJS " in
35588   *" strftime.$ac_objext "* ) ;;
35589   *) LIBOBJS="$LIBOBJS strftime.$ac_objext"
35590  ;;
35591 esac
35592
35593 fi
35594 { echo "$as_me:$LINENO: checking for strlcat" >&5
35595 echo $ECHO_N "checking for strlcat... $ECHO_C" >&6; }
35596 if test "${ac_cv_func_strlcat+set}" = set; then
35597   echo $ECHO_N "(cached) $ECHO_C" >&6
35598 else
35599   cat >conftest.$ac_ext <<_ACEOF
35600 /* confdefs.h.  */
35601 _ACEOF
35602 cat confdefs.h >>conftest.$ac_ext
35603 cat >>conftest.$ac_ext <<_ACEOF
35604 /* end confdefs.h.  */
35605 /* Define strlcat to an innocuous variant, in case <limits.h> declares strlcat.
35606    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35607 #define strlcat innocuous_strlcat
35608
35609 /* System header to define __stub macros and hopefully few prototypes,
35610     which can conflict with char strlcat (); below.
35611     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35612     <limits.h> exists even on freestanding compilers.  */
35613
35614 #ifdef __STDC__
35615 # include <limits.h>
35616 #else
35617 # include <assert.h>
35618 #endif
35619
35620 #undef strlcat
35621
35622 /* Override any GCC internal prototype to avoid an error.
35623    Use char because int might match the return type of a GCC
35624    builtin and then its argument prototype would still apply.  */
35625 #ifdef __cplusplus
35626 extern "C"
35627 #endif
35628 char strlcat ();
35629 /* The GNU C library defines this for functions which it implements
35630     to always fail with ENOSYS.  Some functions are actually named
35631     something starting with __ and the normal name is an alias.  */
35632 #if defined __stub_strlcat || defined __stub___strlcat
35633 choke me
35634 #endif
35635
35636 int
35637 main ()
35638 {
35639 return strlcat ();
35640   ;
35641   return 0;
35642 }
35643 _ACEOF
35644 rm -f conftest.$ac_objext conftest$ac_exeext
35645 if { (ac_try="$ac_link"
35646 case "(($ac_try" in
35647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35648   *) ac_try_echo=$ac_try;;
35649 esac
35650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35651   (eval "$ac_link") 2>conftest.er1
35652   ac_status=$?
35653   grep -v '^ *+' conftest.er1 >conftest.err
35654   rm -f conftest.er1
35655   cat conftest.err >&5
35656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35657   (exit $ac_status); } && {
35658          test -z "$ac_c_werror_flag" ||
35659          test ! -s conftest.err
35660        } && test -s conftest$ac_exeext &&
35661        $as_test_x conftest$ac_exeext; then
35662   ac_cv_func_strlcat=yes
35663 else
35664   echo "$as_me: failed program was:" >&5
35665 sed 's/^/| /' conftest.$ac_ext >&5
35666
35667         ac_cv_func_strlcat=no
35668 fi
35669
35670 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35671       conftest$ac_exeext conftest.$ac_ext
35672 fi
35673 { echo "$as_me:$LINENO: result: $ac_cv_func_strlcat" >&5
35674 echo "${ECHO_T}$ac_cv_func_strlcat" >&6; }
35675 if test $ac_cv_func_strlcat = yes; then
35676
35677 cat >>confdefs.h <<_ACEOF
35678 #define HAVE_STRLCAT 1
35679 _ACEOF
35680
35681 else
35682   case " $LIBOBJS " in
35683   *" strlcat.$ac_objext "* ) ;;
35684   *) LIBOBJS="$LIBOBJS strlcat.$ac_objext"
35685  ;;
35686 esac
35687
35688 fi
35689 { echo "$as_me:$LINENO: checking for strlcpy" >&5
35690 echo $ECHO_N "checking for strlcpy... $ECHO_C" >&6; }
35691 if test "${ac_cv_func_strlcpy+set}" = set; then
35692   echo $ECHO_N "(cached) $ECHO_C" >&6
35693 else
35694   cat >conftest.$ac_ext <<_ACEOF
35695 /* confdefs.h.  */
35696 _ACEOF
35697 cat confdefs.h >>conftest.$ac_ext
35698 cat >>conftest.$ac_ext <<_ACEOF
35699 /* end confdefs.h.  */
35700 /* Define strlcpy to an innocuous variant, in case <limits.h> declares strlcpy.
35701    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35702 #define strlcpy innocuous_strlcpy
35703
35704 /* System header to define __stub macros and hopefully few prototypes,
35705     which can conflict with char strlcpy (); below.
35706     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35707     <limits.h> exists even on freestanding compilers.  */
35708
35709 #ifdef __STDC__
35710 # include <limits.h>
35711 #else
35712 # include <assert.h>
35713 #endif
35714
35715 #undef strlcpy
35716
35717 /* Override any GCC internal prototype to avoid an error.
35718    Use char because int might match the return type of a GCC
35719    builtin and then its argument prototype would still apply.  */
35720 #ifdef __cplusplus
35721 extern "C"
35722 #endif
35723 char strlcpy ();
35724 /* The GNU C library defines this for functions which it implements
35725     to always fail with ENOSYS.  Some functions are actually named
35726     something starting with __ and the normal name is an alias.  */
35727 #if defined __stub_strlcpy || defined __stub___strlcpy
35728 choke me
35729 #endif
35730
35731 int
35732 main ()
35733 {
35734 return strlcpy ();
35735   ;
35736   return 0;
35737 }
35738 _ACEOF
35739 rm -f conftest.$ac_objext conftest$ac_exeext
35740 if { (ac_try="$ac_link"
35741 case "(($ac_try" in
35742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35743   *) ac_try_echo=$ac_try;;
35744 esac
35745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35746   (eval "$ac_link") 2>conftest.er1
35747   ac_status=$?
35748   grep -v '^ *+' conftest.er1 >conftest.err
35749   rm -f conftest.er1
35750   cat conftest.err >&5
35751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35752   (exit $ac_status); } && {
35753          test -z "$ac_c_werror_flag" ||
35754          test ! -s conftest.err
35755        } && test -s conftest$ac_exeext &&
35756        $as_test_x conftest$ac_exeext; then
35757   ac_cv_func_strlcpy=yes
35758 else
35759   echo "$as_me: failed program was:" >&5
35760 sed 's/^/| /' conftest.$ac_ext >&5
35761
35762         ac_cv_func_strlcpy=no
35763 fi
35764
35765 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35766       conftest$ac_exeext conftest.$ac_ext
35767 fi
35768 { echo "$as_me:$LINENO: result: $ac_cv_func_strlcpy" >&5
35769 echo "${ECHO_T}$ac_cv_func_strlcpy" >&6; }
35770 if test $ac_cv_func_strlcpy = yes; then
35771
35772 cat >>confdefs.h <<_ACEOF
35773 #define HAVE_STRLCPY 1
35774 _ACEOF
35775
35776 else
35777   case " $LIBOBJS " in
35778   *" strlcpy.$ac_objext "* ) ;;
35779   *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
35780  ;;
35781 esac
35782
35783 fi
35784 { echo "$as_me:$LINENO: checking for strlwr" >&5
35785 echo $ECHO_N "checking for strlwr... $ECHO_C" >&6; }
35786 if test "${ac_cv_func_strlwr+set}" = set; then
35787   echo $ECHO_N "(cached) $ECHO_C" >&6
35788 else
35789   cat >conftest.$ac_ext <<_ACEOF
35790 /* confdefs.h.  */
35791 _ACEOF
35792 cat confdefs.h >>conftest.$ac_ext
35793 cat >>conftest.$ac_ext <<_ACEOF
35794 /* end confdefs.h.  */
35795 /* Define strlwr to an innocuous variant, in case <limits.h> declares strlwr.
35796    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35797 #define strlwr innocuous_strlwr
35798
35799 /* System header to define __stub macros and hopefully few prototypes,
35800     which can conflict with char strlwr (); below.
35801     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35802     <limits.h> exists even on freestanding compilers.  */
35803
35804 #ifdef __STDC__
35805 # include <limits.h>
35806 #else
35807 # include <assert.h>
35808 #endif
35809
35810 #undef strlwr
35811
35812 /* Override any GCC internal prototype to avoid an error.
35813    Use char because int might match the return type of a GCC
35814    builtin and then its argument prototype would still apply.  */
35815 #ifdef __cplusplus
35816 extern "C"
35817 #endif
35818 char strlwr ();
35819 /* The GNU C library defines this for functions which it implements
35820     to always fail with ENOSYS.  Some functions are actually named
35821     something starting with __ and the normal name is an alias.  */
35822 #if defined __stub_strlwr || defined __stub___strlwr
35823 choke me
35824 #endif
35825
35826 int
35827 main ()
35828 {
35829 return strlwr ();
35830   ;
35831   return 0;
35832 }
35833 _ACEOF
35834 rm -f conftest.$ac_objext conftest$ac_exeext
35835 if { (ac_try="$ac_link"
35836 case "(($ac_try" in
35837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35838   *) ac_try_echo=$ac_try;;
35839 esac
35840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35841   (eval "$ac_link") 2>conftest.er1
35842   ac_status=$?
35843   grep -v '^ *+' conftest.er1 >conftest.err
35844   rm -f conftest.er1
35845   cat conftest.err >&5
35846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35847   (exit $ac_status); } && {
35848          test -z "$ac_c_werror_flag" ||
35849          test ! -s conftest.err
35850        } && test -s conftest$ac_exeext &&
35851        $as_test_x conftest$ac_exeext; then
35852   ac_cv_func_strlwr=yes
35853 else
35854   echo "$as_me: failed program was:" >&5
35855 sed 's/^/| /' conftest.$ac_ext >&5
35856
35857         ac_cv_func_strlwr=no
35858 fi
35859
35860 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35861       conftest$ac_exeext conftest.$ac_ext
35862 fi
35863 { echo "$as_me:$LINENO: result: $ac_cv_func_strlwr" >&5
35864 echo "${ECHO_T}$ac_cv_func_strlwr" >&6; }
35865 if test $ac_cv_func_strlwr = yes; then
35866
35867 cat >>confdefs.h <<_ACEOF
35868 #define HAVE_STRLWR 1
35869 _ACEOF
35870
35871 else
35872   case " $LIBOBJS " in
35873   *" strlwr.$ac_objext "* ) ;;
35874   *) LIBOBJS="$LIBOBJS strlwr.$ac_objext"
35875  ;;
35876 esac
35877
35878 fi
35879 { echo "$as_me:$LINENO: checking for strncasecmp" >&5
35880 echo $ECHO_N "checking for strncasecmp... $ECHO_C" >&6; }
35881 if test "${ac_cv_func_strncasecmp+set}" = set; then
35882   echo $ECHO_N "(cached) $ECHO_C" >&6
35883 else
35884   cat >conftest.$ac_ext <<_ACEOF
35885 /* confdefs.h.  */
35886 _ACEOF
35887 cat confdefs.h >>conftest.$ac_ext
35888 cat >>conftest.$ac_ext <<_ACEOF
35889 /* end confdefs.h.  */
35890 /* Define strncasecmp to an innocuous variant, in case <limits.h> declares strncasecmp.
35891    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35892 #define strncasecmp innocuous_strncasecmp
35893
35894 /* System header to define __stub macros and hopefully few prototypes,
35895     which can conflict with char strncasecmp (); below.
35896     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35897     <limits.h> exists even on freestanding compilers.  */
35898
35899 #ifdef __STDC__
35900 # include <limits.h>
35901 #else
35902 # include <assert.h>
35903 #endif
35904
35905 #undef strncasecmp
35906
35907 /* Override any GCC internal prototype to avoid an error.
35908    Use char because int might match the return type of a GCC
35909    builtin and then its argument prototype would still apply.  */
35910 #ifdef __cplusplus
35911 extern "C"
35912 #endif
35913 char strncasecmp ();
35914 /* The GNU C library defines this for functions which it implements
35915     to always fail with ENOSYS.  Some functions are actually named
35916     something starting with __ and the normal name is an alias.  */
35917 #if defined __stub_strncasecmp || defined __stub___strncasecmp
35918 choke me
35919 #endif
35920
35921 int
35922 main ()
35923 {
35924 return strncasecmp ();
35925   ;
35926   return 0;
35927 }
35928 _ACEOF
35929 rm -f conftest.$ac_objext conftest$ac_exeext
35930 if { (ac_try="$ac_link"
35931 case "(($ac_try" in
35932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35933   *) ac_try_echo=$ac_try;;
35934 esac
35935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35936   (eval "$ac_link") 2>conftest.er1
35937   ac_status=$?
35938   grep -v '^ *+' conftest.er1 >conftest.err
35939   rm -f conftest.er1
35940   cat conftest.err >&5
35941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35942   (exit $ac_status); } && {
35943          test -z "$ac_c_werror_flag" ||
35944          test ! -s conftest.err
35945        } && test -s conftest$ac_exeext &&
35946        $as_test_x conftest$ac_exeext; then
35947   ac_cv_func_strncasecmp=yes
35948 else
35949   echo "$as_me: failed program was:" >&5
35950 sed 's/^/| /' conftest.$ac_ext >&5
35951
35952         ac_cv_func_strncasecmp=no
35953 fi
35954
35955 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35956       conftest$ac_exeext conftest.$ac_ext
35957 fi
35958 { echo "$as_me:$LINENO: result: $ac_cv_func_strncasecmp" >&5
35959 echo "${ECHO_T}$ac_cv_func_strncasecmp" >&6; }
35960 if test $ac_cv_func_strncasecmp = yes; then
35961
35962 cat >>confdefs.h <<_ACEOF
35963 #define HAVE_STRNCASECMP 1
35964 _ACEOF
35965
35966 else
35967   case " $LIBOBJS " in
35968   *" strncasecmp.$ac_objext "* ) ;;
35969   *) LIBOBJS="$LIBOBJS strncasecmp.$ac_objext"
35970  ;;
35971 esac
35972
35973 fi
35974 { echo "$as_me:$LINENO: checking for strndup" >&5
35975 echo $ECHO_N "checking for strndup... $ECHO_C" >&6; }
35976 if test "${ac_cv_func_strndup+set}" = set; then
35977   echo $ECHO_N "(cached) $ECHO_C" >&6
35978 else
35979   cat >conftest.$ac_ext <<_ACEOF
35980 /* confdefs.h.  */
35981 _ACEOF
35982 cat confdefs.h >>conftest.$ac_ext
35983 cat >>conftest.$ac_ext <<_ACEOF
35984 /* end confdefs.h.  */
35985 /* Define strndup to an innocuous variant, in case <limits.h> declares strndup.
35986    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35987 #define strndup innocuous_strndup
35988
35989 /* System header to define __stub macros and hopefully few prototypes,
35990     which can conflict with char strndup (); below.
35991     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35992     <limits.h> exists even on freestanding compilers.  */
35993
35994 #ifdef __STDC__
35995 # include <limits.h>
35996 #else
35997 # include <assert.h>
35998 #endif
35999
36000 #undef strndup
36001
36002 /* Override any GCC internal prototype to avoid an error.
36003    Use char because int might match the return type of a GCC
36004    builtin and then its argument prototype would still apply.  */
36005 #ifdef __cplusplus
36006 extern "C"
36007 #endif
36008 char strndup ();
36009 /* The GNU C library defines this for functions which it implements
36010     to always fail with ENOSYS.  Some functions are actually named
36011     something starting with __ and the normal name is an alias.  */
36012 #if defined __stub_strndup || defined __stub___strndup
36013 choke me
36014 #endif
36015
36016 int
36017 main ()
36018 {
36019 return strndup ();
36020   ;
36021   return 0;
36022 }
36023 _ACEOF
36024 rm -f conftest.$ac_objext conftest$ac_exeext
36025 if { (ac_try="$ac_link"
36026 case "(($ac_try" in
36027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36028   *) ac_try_echo=$ac_try;;
36029 esac
36030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36031   (eval "$ac_link") 2>conftest.er1
36032   ac_status=$?
36033   grep -v '^ *+' conftest.er1 >conftest.err
36034   rm -f conftest.er1
36035   cat conftest.err >&5
36036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36037   (exit $ac_status); } && {
36038          test -z "$ac_c_werror_flag" ||
36039          test ! -s conftest.err
36040        } && test -s conftest$ac_exeext &&
36041        $as_test_x conftest$ac_exeext; then
36042   ac_cv_func_strndup=yes
36043 else
36044   echo "$as_me: failed program was:" >&5
36045 sed 's/^/| /' conftest.$ac_ext >&5
36046
36047         ac_cv_func_strndup=no
36048 fi
36049
36050 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36051       conftest$ac_exeext conftest.$ac_ext
36052 fi
36053 { echo "$as_me:$LINENO: result: $ac_cv_func_strndup" >&5
36054 echo "${ECHO_T}$ac_cv_func_strndup" >&6; }
36055 if test $ac_cv_func_strndup = yes; then
36056
36057 cat >>confdefs.h <<_ACEOF
36058 #define HAVE_STRNDUP 1
36059 _ACEOF
36060
36061 else
36062   case " $LIBOBJS " in
36063   *" strndup.$ac_objext "* ) ;;
36064   *) LIBOBJS="$LIBOBJS strndup.$ac_objext"
36065  ;;
36066 esac
36067
36068 fi
36069 { echo "$as_me:$LINENO: checking for strnlen" >&5
36070 echo $ECHO_N "checking for strnlen... $ECHO_C" >&6; }
36071 if test "${ac_cv_func_strnlen+set}" = set; then
36072   echo $ECHO_N "(cached) $ECHO_C" >&6
36073 else
36074   cat >conftest.$ac_ext <<_ACEOF
36075 /* confdefs.h.  */
36076 _ACEOF
36077 cat confdefs.h >>conftest.$ac_ext
36078 cat >>conftest.$ac_ext <<_ACEOF
36079 /* end confdefs.h.  */
36080 /* Define strnlen to an innocuous variant, in case <limits.h> declares strnlen.
36081    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36082 #define strnlen innocuous_strnlen
36083
36084 /* System header to define __stub macros and hopefully few prototypes,
36085     which can conflict with char strnlen (); below.
36086     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36087     <limits.h> exists even on freestanding compilers.  */
36088
36089 #ifdef __STDC__
36090 # include <limits.h>
36091 #else
36092 # include <assert.h>
36093 #endif
36094
36095 #undef strnlen
36096
36097 /* Override any GCC internal prototype to avoid an error.
36098    Use char because int might match the return type of a GCC
36099    builtin and then its argument prototype would still apply.  */
36100 #ifdef __cplusplus
36101 extern "C"
36102 #endif
36103 char strnlen ();
36104 /* The GNU C library defines this for functions which it implements
36105     to always fail with ENOSYS.  Some functions are actually named
36106     something starting with __ and the normal name is an alias.  */
36107 #if defined __stub_strnlen || defined __stub___strnlen
36108 choke me
36109 #endif
36110
36111 int
36112 main ()
36113 {
36114 return strnlen ();
36115   ;
36116   return 0;
36117 }
36118 _ACEOF
36119 rm -f conftest.$ac_objext conftest$ac_exeext
36120 if { (ac_try="$ac_link"
36121 case "(($ac_try" in
36122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36123   *) ac_try_echo=$ac_try;;
36124 esac
36125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36126   (eval "$ac_link") 2>conftest.er1
36127   ac_status=$?
36128   grep -v '^ *+' conftest.er1 >conftest.err
36129   rm -f conftest.er1
36130   cat conftest.err >&5
36131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36132   (exit $ac_status); } && {
36133          test -z "$ac_c_werror_flag" ||
36134          test ! -s conftest.err
36135        } && test -s conftest$ac_exeext &&
36136        $as_test_x conftest$ac_exeext; then
36137   ac_cv_func_strnlen=yes
36138 else
36139   echo "$as_me: failed program was:" >&5
36140 sed 's/^/| /' conftest.$ac_ext >&5
36141
36142         ac_cv_func_strnlen=no
36143 fi
36144
36145 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36146       conftest$ac_exeext conftest.$ac_ext
36147 fi
36148 { echo "$as_me:$LINENO: result: $ac_cv_func_strnlen" >&5
36149 echo "${ECHO_T}$ac_cv_func_strnlen" >&6; }
36150 if test $ac_cv_func_strnlen = yes; then
36151
36152 cat >>confdefs.h <<_ACEOF
36153 #define HAVE_STRNLEN 1
36154 _ACEOF
36155
36156 else
36157   case " $LIBOBJS " in
36158   *" strnlen.$ac_objext "* ) ;;
36159   *) LIBOBJS="$LIBOBJS strnlen.$ac_objext"
36160  ;;
36161 esac
36162
36163 fi
36164 { echo "$as_me:$LINENO: checking for strptime" >&5
36165 echo $ECHO_N "checking for strptime... $ECHO_C" >&6; }
36166 if test "${ac_cv_func_strptime+set}" = set; then
36167   echo $ECHO_N "(cached) $ECHO_C" >&6
36168 else
36169   cat >conftest.$ac_ext <<_ACEOF
36170 /* confdefs.h.  */
36171 _ACEOF
36172 cat confdefs.h >>conftest.$ac_ext
36173 cat >>conftest.$ac_ext <<_ACEOF
36174 /* end confdefs.h.  */
36175 /* Define strptime to an innocuous variant, in case <limits.h> declares strptime.
36176    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36177 #define strptime innocuous_strptime
36178
36179 /* System header to define __stub macros and hopefully few prototypes,
36180     which can conflict with char strptime (); below.
36181     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36182     <limits.h> exists even on freestanding compilers.  */
36183
36184 #ifdef __STDC__
36185 # include <limits.h>
36186 #else
36187 # include <assert.h>
36188 #endif
36189
36190 #undef strptime
36191
36192 /* Override any GCC internal prototype to avoid an error.
36193    Use char because int might match the return type of a GCC
36194    builtin and then its argument prototype would still apply.  */
36195 #ifdef __cplusplus
36196 extern "C"
36197 #endif
36198 char strptime ();
36199 /* The GNU C library defines this for functions which it implements
36200     to always fail with ENOSYS.  Some functions are actually named
36201     something starting with __ and the normal name is an alias.  */
36202 #if defined __stub_strptime || defined __stub___strptime
36203 choke me
36204 #endif
36205
36206 int
36207 main ()
36208 {
36209 return strptime ();
36210   ;
36211   return 0;
36212 }
36213 _ACEOF
36214 rm -f conftest.$ac_objext conftest$ac_exeext
36215 if { (ac_try="$ac_link"
36216 case "(($ac_try" in
36217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36218   *) ac_try_echo=$ac_try;;
36219 esac
36220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36221   (eval "$ac_link") 2>conftest.er1
36222   ac_status=$?
36223   grep -v '^ *+' conftest.er1 >conftest.err
36224   rm -f conftest.er1
36225   cat conftest.err >&5
36226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36227   (exit $ac_status); } && {
36228          test -z "$ac_c_werror_flag" ||
36229          test ! -s conftest.err
36230        } && test -s conftest$ac_exeext &&
36231        $as_test_x conftest$ac_exeext; then
36232   ac_cv_func_strptime=yes
36233 else
36234   echo "$as_me: failed program was:" >&5
36235 sed 's/^/| /' conftest.$ac_ext >&5
36236
36237         ac_cv_func_strptime=no
36238 fi
36239
36240 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36241       conftest$ac_exeext conftest.$ac_ext
36242 fi
36243 { echo "$as_me:$LINENO: result: $ac_cv_func_strptime" >&5
36244 echo "${ECHO_T}$ac_cv_func_strptime" >&6; }
36245 if test $ac_cv_func_strptime = yes; then
36246
36247 cat >>confdefs.h <<_ACEOF
36248 #define HAVE_STRPTIME 1
36249 _ACEOF
36250
36251 else
36252   case " $LIBOBJS " in
36253   *" strptime.$ac_objext "* ) ;;
36254   *) LIBOBJS="$LIBOBJS strptime.$ac_objext"
36255  ;;
36256 esac
36257
36258 fi
36259 { echo "$as_me:$LINENO: checking for strsep" >&5
36260 echo $ECHO_N "checking for strsep... $ECHO_C" >&6; }
36261 if test "${ac_cv_func_strsep+set}" = set; then
36262   echo $ECHO_N "(cached) $ECHO_C" >&6
36263 else
36264   cat >conftest.$ac_ext <<_ACEOF
36265 /* confdefs.h.  */
36266 _ACEOF
36267 cat confdefs.h >>conftest.$ac_ext
36268 cat >>conftest.$ac_ext <<_ACEOF
36269 /* end confdefs.h.  */
36270 /* Define strsep to an innocuous variant, in case <limits.h> declares strsep.
36271    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36272 #define strsep innocuous_strsep
36273
36274 /* System header to define __stub macros and hopefully few prototypes,
36275     which can conflict with char strsep (); below.
36276     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36277     <limits.h> exists even on freestanding compilers.  */
36278
36279 #ifdef __STDC__
36280 # include <limits.h>
36281 #else
36282 # include <assert.h>
36283 #endif
36284
36285 #undef strsep
36286
36287 /* Override any GCC internal prototype to avoid an error.
36288    Use char because int might match the return type of a GCC
36289    builtin and then its argument prototype would still apply.  */
36290 #ifdef __cplusplus
36291 extern "C"
36292 #endif
36293 char strsep ();
36294 /* The GNU C library defines this for functions which it implements
36295     to always fail with ENOSYS.  Some functions are actually named
36296     something starting with __ and the normal name is an alias.  */
36297 #if defined __stub_strsep || defined __stub___strsep
36298 choke me
36299 #endif
36300
36301 int
36302 main ()
36303 {
36304 return strsep ();
36305   ;
36306   return 0;
36307 }
36308 _ACEOF
36309 rm -f conftest.$ac_objext conftest$ac_exeext
36310 if { (ac_try="$ac_link"
36311 case "(($ac_try" in
36312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36313   *) ac_try_echo=$ac_try;;
36314 esac
36315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36316   (eval "$ac_link") 2>conftest.er1
36317   ac_status=$?
36318   grep -v '^ *+' conftest.er1 >conftest.err
36319   rm -f conftest.er1
36320   cat conftest.err >&5
36321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36322   (exit $ac_status); } && {
36323          test -z "$ac_c_werror_flag" ||
36324          test ! -s conftest.err
36325        } && test -s conftest$ac_exeext &&
36326        $as_test_x conftest$ac_exeext; then
36327   ac_cv_func_strsep=yes
36328 else
36329   echo "$as_me: failed program was:" >&5
36330 sed 's/^/| /' conftest.$ac_ext >&5
36331
36332         ac_cv_func_strsep=no
36333 fi
36334
36335 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36336       conftest$ac_exeext conftest.$ac_ext
36337 fi
36338 { echo "$as_me:$LINENO: result: $ac_cv_func_strsep" >&5
36339 echo "${ECHO_T}$ac_cv_func_strsep" >&6; }
36340 if test $ac_cv_func_strsep = yes; then
36341
36342 cat >>confdefs.h <<_ACEOF
36343 #define HAVE_STRSEP 1
36344 _ACEOF
36345
36346 else
36347   case " $LIBOBJS " in
36348   *" strsep.$ac_objext "* ) ;;
36349   *) LIBOBJS="$LIBOBJS strsep.$ac_objext"
36350  ;;
36351 esac
36352
36353 fi
36354 { echo "$as_me:$LINENO: checking for strsep_copy" >&5
36355 echo $ECHO_N "checking for strsep_copy... $ECHO_C" >&6; }
36356 if test "${ac_cv_func_strsep_copy+set}" = set; then
36357   echo $ECHO_N "(cached) $ECHO_C" >&6
36358 else
36359   cat >conftest.$ac_ext <<_ACEOF
36360 /* confdefs.h.  */
36361 _ACEOF
36362 cat confdefs.h >>conftest.$ac_ext
36363 cat >>conftest.$ac_ext <<_ACEOF
36364 /* end confdefs.h.  */
36365 /* Define strsep_copy to an innocuous variant, in case <limits.h> declares strsep_copy.
36366    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36367 #define strsep_copy innocuous_strsep_copy
36368
36369 /* System header to define __stub macros and hopefully few prototypes,
36370     which can conflict with char strsep_copy (); below.
36371     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36372     <limits.h> exists even on freestanding compilers.  */
36373
36374 #ifdef __STDC__
36375 # include <limits.h>
36376 #else
36377 # include <assert.h>
36378 #endif
36379
36380 #undef strsep_copy
36381
36382 /* Override any GCC internal prototype to avoid an error.
36383    Use char because int might match the return type of a GCC
36384    builtin and then its argument prototype would still apply.  */
36385 #ifdef __cplusplus
36386 extern "C"
36387 #endif
36388 char strsep_copy ();
36389 /* The GNU C library defines this for functions which it implements
36390     to always fail with ENOSYS.  Some functions are actually named
36391     something starting with __ and the normal name is an alias.  */
36392 #if defined __stub_strsep_copy || defined __stub___strsep_copy
36393 choke me
36394 #endif
36395
36396 int
36397 main ()
36398 {
36399 return strsep_copy ();
36400   ;
36401   return 0;
36402 }
36403 _ACEOF
36404 rm -f conftest.$ac_objext conftest$ac_exeext
36405 if { (ac_try="$ac_link"
36406 case "(($ac_try" in
36407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36408   *) ac_try_echo=$ac_try;;
36409 esac
36410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36411   (eval "$ac_link") 2>conftest.er1
36412   ac_status=$?
36413   grep -v '^ *+' conftest.er1 >conftest.err
36414   rm -f conftest.er1
36415   cat conftest.err >&5
36416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36417   (exit $ac_status); } && {
36418          test -z "$ac_c_werror_flag" ||
36419          test ! -s conftest.err
36420        } && test -s conftest$ac_exeext &&
36421        $as_test_x conftest$ac_exeext; then
36422   ac_cv_func_strsep_copy=yes
36423 else
36424   echo "$as_me: failed program was:" >&5
36425 sed 's/^/| /' conftest.$ac_ext >&5
36426
36427         ac_cv_func_strsep_copy=no
36428 fi
36429
36430 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36431       conftest$ac_exeext conftest.$ac_ext
36432 fi
36433 { echo "$as_me:$LINENO: result: $ac_cv_func_strsep_copy" >&5
36434 echo "${ECHO_T}$ac_cv_func_strsep_copy" >&6; }
36435 if test $ac_cv_func_strsep_copy = yes; then
36436
36437 cat >>confdefs.h <<_ACEOF
36438 #define HAVE_STRSEP_COPY 1
36439 _ACEOF
36440
36441 else
36442   case " $LIBOBJS " in
36443   *" strsep_copy.$ac_objext "* ) ;;
36444   *) LIBOBJS="$LIBOBJS strsep_copy.$ac_objext"
36445  ;;
36446 esac
36447
36448 fi
36449 { echo "$as_me:$LINENO: checking for strtok_r" >&5
36450 echo $ECHO_N "checking for strtok_r... $ECHO_C" >&6; }
36451 if test "${ac_cv_func_strtok_r+set}" = set; then
36452   echo $ECHO_N "(cached) $ECHO_C" >&6
36453 else
36454   cat >conftest.$ac_ext <<_ACEOF
36455 /* confdefs.h.  */
36456 _ACEOF
36457 cat confdefs.h >>conftest.$ac_ext
36458 cat >>conftest.$ac_ext <<_ACEOF
36459 /* end confdefs.h.  */
36460 /* Define strtok_r to an innocuous variant, in case <limits.h> declares strtok_r.
36461    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36462 #define strtok_r innocuous_strtok_r
36463
36464 /* System header to define __stub macros and hopefully few prototypes,
36465     which can conflict with char strtok_r (); below.
36466     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36467     <limits.h> exists even on freestanding compilers.  */
36468
36469 #ifdef __STDC__
36470 # include <limits.h>
36471 #else
36472 # include <assert.h>
36473 #endif
36474
36475 #undef strtok_r
36476
36477 /* Override any GCC internal prototype to avoid an error.
36478    Use char because int might match the return type of a GCC
36479    builtin and then its argument prototype would still apply.  */
36480 #ifdef __cplusplus
36481 extern "C"
36482 #endif
36483 char strtok_r ();
36484 /* The GNU C library defines this for functions which it implements
36485     to always fail with ENOSYS.  Some functions are actually named
36486     something starting with __ and the normal name is an alias.  */
36487 #if defined __stub_strtok_r || defined __stub___strtok_r
36488 choke me
36489 #endif
36490
36491 int
36492 main ()
36493 {
36494 return strtok_r ();
36495   ;
36496   return 0;
36497 }
36498 _ACEOF
36499 rm -f conftest.$ac_objext conftest$ac_exeext
36500 if { (ac_try="$ac_link"
36501 case "(($ac_try" in
36502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36503   *) ac_try_echo=$ac_try;;
36504 esac
36505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36506   (eval "$ac_link") 2>conftest.er1
36507   ac_status=$?
36508   grep -v '^ *+' conftest.er1 >conftest.err
36509   rm -f conftest.er1
36510   cat conftest.err >&5
36511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36512   (exit $ac_status); } && {
36513          test -z "$ac_c_werror_flag" ||
36514          test ! -s conftest.err
36515        } && test -s conftest$ac_exeext &&
36516        $as_test_x conftest$ac_exeext; then
36517   ac_cv_func_strtok_r=yes
36518 else
36519   echo "$as_me: failed program was:" >&5
36520 sed 's/^/| /' conftest.$ac_ext >&5
36521
36522         ac_cv_func_strtok_r=no
36523 fi
36524
36525 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36526       conftest$ac_exeext conftest.$ac_ext
36527 fi
36528 { echo "$as_me:$LINENO: result: $ac_cv_func_strtok_r" >&5
36529 echo "${ECHO_T}$ac_cv_func_strtok_r" >&6; }
36530 if test $ac_cv_func_strtok_r = yes; then
36531
36532 cat >>confdefs.h <<_ACEOF
36533 #define HAVE_STRTOK_R 1
36534 _ACEOF
36535
36536 else
36537   case " $LIBOBJS " in
36538   *" strtok_r.$ac_objext "* ) ;;
36539   *) LIBOBJS="$LIBOBJS strtok_r.$ac_objext"
36540  ;;
36541 esac
36542
36543 fi
36544 { echo "$as_me:$LINENO: checking for strupr" >&5
36545 echo $ECHO_N "checking for strupr... $ECHO_C" >&6; }
36546 if test "${ac_cv_func_strupr+set}" = set; then
36547   echo $ECHO_N "(cached) $ECHO_C" >&6
36548 else
36549   cat >conftest.$ac_ext <<_ACEOF
36550 /* confdefs.h.  */
36551 _ACEOF
36552 cat confdefs.h >>conftest.$ac_ext
36553 cat >>conftest.$ac_ext <<_ACEOF
36554 /* end confdefs.h.  */
36555 /* Define strupr to an innocuous variant, in case <limits.h> declares strupr.
36556    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36557 #define strupr innocuous_strupr
36558
36559 /* System header to define __stub macros and hopefully few prototypes,
36560     which can conflict with char strupr (); below.
36561     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36562     <limits.h> exists even on freestanding compilers.  */
36563
36564 #ifdef __STDC__
36565 # include <limits.h>
36566 #else
36567 # include <assert.h>
36568 #endif
36569
36570 #undef strupr
36571
36572 /* Override any GCC internal prototype to avoid an error.
36573    Use char because int might match the return type of a GCC
36574    builtin and then its argument prototype would still apply.  */
36575 #ifdef __cplusplus
36576 extern "C"
36577 #endif
36578 char strupr ();
36579 /* The GNU C library defines this for functions which it implements
36580     to always fail with ENOSYS.  Some functions are actually named
36581     something starting with __ and the normal name is an alias.  */
36582 #if defined __stub_strupr || defined __stub___strupr
36583 choke me
36584 #endif
36585
36586 int
36587 main ()
36588 {
36589 return strupr ();
36590   ;
36591   return 0;
36592 }
36593 _ACEOF
36594 rm -f conftest.$ac_objext conftest$ac_exeext
36595 if { (ac_try="$ac_link"
36596 case "(($ac_try" in
36597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36598   *) ac_try_echo=$ac_try;;
36599 esac
36600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36601   (eval "$ac_link") 2>conftest.er1
36602   ac_status=$?
36603   grep -v '^ *+' conftest.er1 >conftest.err
36604   rm -f conftest.er1
36605   cat conftest.err >&5
36606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36607   (exit $ac_status); } && {
36608          test -z "$ac_c_werror_flag" ||
36609          test ! -s conftest.err
36610        } && test -s conftest$ac_exeext &&
36611        $as_test_x conftest$ac_exeext; then
36612   ac_cv_func_strupr=yes
36613 else
36614   echo "$as_me: failed program was:" >&5
36615 sed 's/^/| /' conftest.$ac_ext >&5
36616
36617         ac_cv_func_strupr=no
36618 fi
36619
36620 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36621       conftest$ac_exeext conftest.$ac_ext
36622 fi
36623 { echo "$as_me:$LINENO: result: $ac_cv_func_strupr" >&5
36624 echo "${ECHO_T}$ac_cv_func_strupr" >&6; }
36625 if test $ac_cv_func_strupr = yes; then
36626
36627 cat >>confdefs.h <<_ACEOF
36628 #define HAVE_STRUPR 1
36629 _ACEOF
36630
36631 else
36632   case " $LIBOBJS " in
36633   *" strupr.$ac_objext "* ) ;;
36634   *) LIBOBJS="$LIBOBJS strupr.$ac_objext"
36635  ;;
36636 esac
36637
36638 fi
36639 { echo "$as_me:$LINENO: checking for swab" >&5
36640 echo $ECHO_N "checking for swab... $ECHO_C" >&6; }
36641 if test "${ac_cv_func_swab+set}" = set; then
36642   echo $ECHO_N "(cached) $ECHO_C" >&6
36643 else
36644   cat >conftest.$ac_ext <<_ACEOF
36645 /* confdefs.h.  */
36646 _ACEOF
36647 cat confdefs.h >>conftest.$ac_ext
36648 cat >>conftest.$ac_ext <<_ACEOF
36649 /* end confdefs.h.  */
36650 /* Define swab to an innocuous variant, in case <limits.h> declares swab.
36651    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36652 #define swab innocuous_swab
36653
36654 /* System header to define __stub macros and hopefully few prototypes,
36655     which can conflict with char swab (); below.
36656     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36657     <limits.h> exists even on freestanding compilers.  */
36658
36659 #ifdef __STDC__
36660 # include <limits.h>
36661 #else
36662 # include <assert.h>
36663 #endif
36664
36665 #undef swab
36666
36667 /* Override any GCC internal prototype to avoid an error.
36668    Use char because int might match the return type of a GCC
36669    builtin and then its argument prototype would still apply.  */
36670 #ifdef __cplusplus
36671 extern "C"
36672 #endif
36673 char swab ();
36674 /* The GNU C library defines this for functions which it implements
36675     to always fail with ENOSYS.  Some functions are actually named
36676     something starting with __ and the normal name is an alias.  */
36677 #if defined __stub_swab || defined __stub___swab
36678 choke me
36679 #endif
36680
36681 int
36682 main ()
36683 {
36684 return swab ();
36685   ;
36686   return 0;
36687 }
36688 _ACEOF
36689 rm -f conftest.$ac_objext conftest$ac_exeext
36690 if { (ac_try="$ac_link"
36691 case "(($ac_try" in
36692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36693   *) ac_try_echo=$ac_try;;
36694 esac
36695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36696   (eval "$ac_link") 2>conftest.er1
36697   ac_status=$?
36698   grep -v '^ *+' conftest.er1 >conftest.err
36699   rm -f conftest.er1
36700   cat conftest.err >&5
36701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36702   (exit $ac_status); } && {
36703          test -z "$ac_c_werror_flag" ||
36704          test ! -s conftest.err
36705        } && test -s conftest$ac_exeext &&
36706        $as_test_x conftest$ac_exeext; then
36707   ac_cv_func_swab=yes
36708 else
36709   echo "$as_me: failed program was:" >&5
36710 sed 's/^/| /' conftest.$ac_ext >&5
36711
36712         ac_cv_func_swab=no
36713 fi
36714
36715 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36716       conftest$ac_exeext conftest.$ac_ext
36717 fi
36718 { echo "$as_me:$LINENO: result: $ac_cv_func_swab" >&5
36719 echo "${ECHO_T}$ac_cv_func_swab" >&6; }
36720 if test $ac_cv_func_swab = yes; then
36721
36722 cat >>confdefs.h <<_ACEOF
36723 #define HAVE_SWAB 1
36724 _ACEOF
36725
36726 else
36727   case " $LIBOBJS " in
36728   *" swab.$ac_objext "* ) ;;
36729   *) LIBOBJS="$LIBOBJS swab.$ac_objext"
36730  ;;
36731 esac
36732
36733 fi
36734 { echo "$as_me:$LINENO: checking for timegm" >&5
36735 echo $ECHO_N "checking for timegm... $ECHO_C" >&6; }
36736 if test "${ac_cv_func_timegm+set}" = set; then
36737   echo $ECHO_N "(cached) $ECHO_C" >&6
36738 else
36739   cat >conftest.$ac_ext <<_ACEOF
36740 /* confdefs.h.  */
36741 _ACEOF
36742 cat confdefs.h >>conftest.$ac_ext
36743 cat >>conftest.$ac_ext <<_ACEOF
36744 /* end confdefs.h.  */
36745 /* Define timegm to an innocuous variant, in case <limits.h> declares timegm.
36746    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36747 #define timegm innocuous_timegm
36748
36749 /* System header to define __stub macros and hopefully few prototypes,
36750     which can conflict with char timegm (); below.
36751     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36752     <limits.h> exists even on freestanding compilers.  */
36753
36754 #ifdef __STDC__
36755 # include <limits.h>
36756 #else
36757 # include <assert.h>
36758 #endif
36759
36760 #undef timegm
36761
36762 /* Override any GCC internal prototype to avoid an error.
36763    Use char because int might match the return type of a GCC
36764    builtin and then its argument prototype would still apply.  */
36765 #ifdef __cplusplus
36766 extern "C"
36767 #endif
36768 char timegm ();
36769 /* The GNU C library defines this for functions which it implements
36770     to always fail with ENOSYS.  Some functions are actually named
36771     something starting with __ and the normal name is an alias.  */
36772 #if defined __stub_timegm || defined __stub___timegm
36773 choke me
36774 #endif
36775
36776 int
36777 main ()
36778 {
36779 return timegm ();
36780   ;
36781   return 0;
36782 }
36783 _ACEOF
36784 rm -f conftest.$ac_objext conftest$ac_exeext
36785 if { (ac_try="$ac_link"
36786 case "(($ac_try" in
36787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36788   *) ac_try_echo=$ac_try;;
36789 esac
36790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36791   (eval "$ac_link") 2>conftest.er1
36792   ac_status=$?
36793   grep -v '^ *+' conftest.er1 >conftest.err
36794   rm -f conftest.er1
36795   cat conftest.err >&5
36796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36797   (exit $ac_status); } && {
36798          test -z "$ac_c_werror_flag" ||
36799          test ! -s conftest.err
36800        } && test -s conftest$ac_exeext &&
36801        $as_test_x conftest$ac_exeext; then
36802   ac_cv_func_timegm=yes
36803 else
36804   echo "$as_me: failed program was:" >&5
36805 sed 's/^/| /' conftest.$ac_ext >&5
36806
36807         ac_cv_func_timegm=no
36808 fi
36809
36810 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36811       conftest$ac_exeext conftest.$ac_ext
36812 fi
36813 { echo "$as_me:$LINENO: result: $ac_cv_func_timegm" >&5
36814 echo "${ECHO_T}$ac_cv_func_timegm" >&6; }
36815 if test $ac_cv_func_timegm = yes; then
36816
36817 cat >>confdefs.h <<_ACEOF
36818 #define HAVE_TIMEGM 1
36819 _ACEOF
36820
36821 else
36822   case " $LIBOBJS " in
36823   *" timegm.$ac_objext "* ) ;;
36824   *) LIBOBJS="$LIBOBJS timegm.$ac_objext"
36825  ;;
36826 esac
36827
36828 fi
36829 { echo "$as_me:$LINENO: checking for unsetenv" >&5
36830 echo $ECHO_N "checking for unsetenv... $ECHO_C" >&6; }
36831 if test "${ac_cv_func_unsetenv+set}" = set; then
36832   echo $ECHO_N "(cached) $ECHO_C" >&6
36833 else
36834   cat >conftest.$ac_ext <<_ACEOF
36835 /* confdefs.h.  */
36836 _ACEOF
36837 cat confdefs.h >>conftest.$ac_ext
36838 cat >>conftest.$ac_ext <<_ACEOF
36839 /* end confdefs.h.  */
36840 /* Define unsetenv to an innocuous variant, in case <limits.h> declares unsetenv.
36841    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36842 #define unsetenv innocuous_unsetenv
36843
36844 /* System header to define __stub macros and hopefully few prototypes,
36845     which can conflict with char unsetenv (); below.
36846     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36847     <limits.h> exists even on freestanding compilers.  */
36848
36849 #ifdef __STDC__
36850 # include <limits.h>
36851 #else
36852 # include <assert.h>
36853 #endif
36854
36855 #undef unsetenv
36856
36857 /* Override any GCC internal prototype to avoid an error.
36858    Use char because int might match the return type of a GCC
36859    builtin and then its argument prototype would still apply.  */
36860 #ifdef __cplusplus
36861 extern "C"
36862 #endif
36863 char unsetenv ();
36864 /* The GNU C library defines this for functions which it implements
36865     to always fail with ENOSYS.  Some functions are actually named
36866     something starting with __ and the normal name is an alias.  */
36867 #if defined __stub_unsetenv || defined __stub___unsetenv
36868 choke me
36869 #endif
36870
36871 int
36872 main ()
36873 {
36874 return unsetenv ();
36875   ;
36876   return 0;
36877 }
36878 _ACEOF
36879 rm -f conftest.$ac_objext conftest$ac_exeext
36880 if { (ac_try="$ac_link"
36881 case "(($ac_try" in
36882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36883   *) ac_try_echo=$ac_try;;
36884 esac
36885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36886   (eval "$ac_link") 2>conftest.er1
36887   ac_status=$?
36888   grep -v '^ *+' conftest.er1 >conftest.err
36889   rm -f conftest.er1
36890   cat conftest.err >&5
36891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36892   (exit $ac_status); } && {
36893          test -z "$ac_c_werror_flag" ||
36894          test ! -s conftest.err
36895        } && test -s conftest$ac_exeext &&
36896        $as_test_x conftest$ac_exeext; then
36897   ac_cv_func_unsetenv=yes
36898 else
36899   echo "$as_me: failed program was:" >&5
36900 sed 's/^/| /' conftest.$ac_ext >&5
36901
36902         ac_cv_func_unsetenv=no
36903 fi
36904
36905 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36906       conftest$ac_exeext conftest.$ac_ext
36907 fi
36908 { echo "$as_me:$LINENO: result: $ac_cv_func_unsetenv" >&5
36909 echo "${ECHO_T}$ac_cv_func_unsetenv" >&6; }
36910 if test $ac_cv_func_unsetenv = yes; then
36911
36912 cat >>confdefs.h <<_ACEOF
36913 #define HAVE_UNSETENV 1
36914 _ACEOF
36915
36916 else
36917   case " $LIBOBJS " in
36918   *" unsetenv.$ac_objext "* ) ;;
36919   *) LIBOBJS="$LIBOBJS unsetenv.$ac_objext"
36920  ;;
36921 esac
36922
36923 fi
36924 { echo "$as_me:$LINENO: checking for verr" >&5
36925 echo $ECHO_N "checking for verr... $ECHO_C" >&6; }
36926 if test "${ac_cv_func_verr+set}" = set; then
36927   echo $ECHO_N "(cached) $ECHO_C" >&6
36928 else
36929   cat >conftest.$ac_ext <<_ACEOF
36930 /* confdefs.h.  */
36931 _ACEOF
36932 cat confdefs.h >>conftest.$ac_ext
36933 cat >>conftest.$ac_ext <<_ACEOF
36934 /* end confdefs.h.  */
36935 /* Define verr to an innocuous variant, in case <limits.h> declares verr.
36936    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36937 #define verr innocuous_verr
36938
36939 /* System header to define __stub macros and hopefully few prototypes,
36940     which can conflict with char verr (); below.
36941     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36942     <limits.h> exists even on freestanding compilers.  */
36943
36944 #ifdef __STDC__
36945 # include <limits.h>
36946 #else
36947 # include <assert.h>
36948 #endif
36949
36950 #undef verr
36951
36952 /* Override any GCC internal prototype to avoid an error.
36953    Use char because int might match the return type of a GCC
36954    builtin and then its argument prototype would still apply.  */
36955 #ifdef __cplusplus
36956 extern "C"
36957 #endif
36958 char verr ();
36959 /* The GNU C library defines this for functions which it implements
36960     to always fail with ENOSYS.  Some functions are actually named
36961     something starting with __ and the normal name is an alias.  */
36962 #if defined __stub_verr || defined __stub___verr
36963 choke me
36964 #endif
36965
36966 int
36967 main ()
36968 {
36969 return verr ();
36970   ;
36971   return 0;
36972 }
36973 _ACEOF
36974 rm -f conftest.$ac_objext conftest$ac_exeext
36975 if { (ac_try="$ac_link"
36976 case "(($ac_try" in
36977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36978   *) ac_try_echo=$ac_try;;
36979 esac
36980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36981   (eval "$ac_link") 2>conftest.er1
36982   ac_status=$?
36983   grep -v '^ *+' conftest.er1 >conftest.err
36984   rm -f conftest.er1
36985   cat conftest.err >&5
36986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36987   (exit $ac_status); } && {
36988          test -z "$ac_c_werror_flag" ||
36989          test ! -s conftest.err
36990        } && test -s conftest$ac_exeext &&
36991        $as_test_x conftest$ac_exeext; then
36992   ac_cv_func_verr=yes
36993 else
36994   echo "$as_me: failed program was:" >&5
36995 sed 's/^/| /' conftest.$ac_ext >&5
36996
36997         ac_cv_func_verr=no
36998 fi
36999
37000 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37001       conftest$ac_exeext conftest.$ac_ext
37002 fi
37003 { echo "$as_me:$LINENO: result: $ac_cv_func_verr" >&5
37004 echo "${ECHO_T}$ac_cv_func_verr" >&6; }
37005 if test $ac_cv_func_verr = yes; then
37006
37007 cat >>confdefs.h <<_ACEOF
37008 #define HAVE_VERR 1
37009 _ACEOF
37010
37011 else
37012   case " $LIBOBJS " in
37013   *" verr.$ac_objext "* ) ;;
37014   *) LIBOBJS="$LIBOBJS verr.$ac_objext"
37015  ;;
37016 esac
37017
37018 fi
37019 { echo "$as_me:$LINENO: checking for verrx" >&5
37020 echo $ECHO_N "checking for verrx... $ECHO_C" >&6; }
37021 if test "${ac_cv_func_verrx+set}" = set; then
37022   echo $ECHO_N "(cached) $ECHO_C" >&6
37023 else
37024   cat >conftest.$ac_ext <<_ACEOF
37025 /* confdefs.h.  */
37026 _ACEOF
37027 cat confdefs.h >>conftest.$ac_ext
37028 cat >>conftest.$ac_ext <<_ACEOF
37029 /* end confdefs.h.  */
37030 /* Define verrx to an innocuous variant, in case <limits.h> declares verrx.
37031    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37032 #define verrx innocuous_verrx
37033
37034 /* System header to define __stub macros and hopefully few prototypes,
37035     which can conflict with char verrx (); below.
37036     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37037     <limits.h> exists even on freestanding compilers.  */
37038
37039 #ifdef __STDC__
37040 # include <limits.h>
37041 #else
37042 # include <assert.h>
37043 #endif
37044
37045 #undef verrx
37046
37047 /* Override any GCC internal prototype to avoid an error.
37048    Use char because int might match the return type of a GCC
37049    builtin and then its argument prototype would still apply.  */
37050 #ifdef __cplusplus
37051 extern "C"
37052 #endif
37053 char verrx ();
37054 /* The GNU C library defines this for functions which it implements
37055     to always fail with ENOSYS.  Some functions are actually named
37056     something starting with __ and the normal name is an alias.  */
37057 #if defined __stub_verrx || defined __stub___verrx
37058 choke me
37059 #endif
37060
37061 int
37062 main ()
37063 {
37064 return verrx ();
37065   ;
37066   return 0;
37067 }
37068 _ACEOF
37069 rm -f conftest.$ac_objext conftest$ac_exeext
37070 if { (ac_try="$ac_link"
37071 case "(($ac_try" in
37072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37073   *) ac_try_echo=$ac_try;;
37074 esac
37075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37076   (eval "$ac_link") 2>conftest.er1
37077   ac_status=$?
37078   grep -v '^ *+' conftest.er1 >conftest.err
37079   rm -f conftest.er1
37080   cat conftest.err >&5
37081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37082   (exit $ac_status); } && {
37083          test -z "$ac_c_werror_flag" ||
37084          test ! -s conftest.err
37085        } && test -s conftest$ac_exeext &&
37086        $as_test_x conftest$ac_exeext; then
37087   ac_cv_func_verrx=yes
37088 else
37089   echo "$as_me: failed program was:" >&5
37090 sed 's/^/| /' conftest.$ac_ext >&5
37091
37092         ac_cv_func_verrx=no
37093 fi
37094
37095 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37096       conftest$ac_exeext conftest.$ac_ext
37097 fi
37098 { echo "$as_me:$LINENO: result: $ac_cv_func_verrx" >&5
37099 echo "${ECHO_T}$ac_cv_func_verrx" >&6; }
37100 if test $ac_cv_func_verrx = yes; then
37101
37102 cat >>confdefs.h <<_ACEOF
37103 #define HAVE_VERRX 1
37104 _ACEOF
37105
37106 else
37107   case " $LIBOBJS " in
37108   *" verrx.$ac_objext "* ) ;;
37109   *) LIBOBJS="$LIBOBJS verrx.$ac_objext"
37110  ;;
37111 esac
37112
37113 fi
37114 { echo "$as_me:$LINENO: checking for vsyslog" >&5
37115 echo $ECHO_N "checking for vsyslog... $ECHO_C" >&6; }
37116 if test "${ac_cv_func_vsyslog+set}" = set; then
37117   echo $ECHO_N "(cached) $ECHO_C" >&6
37118 else
37119   cat >conftest.$ac_ext <<_ACEOF
37120 /* confdefs.h.  */
37121 _ACEOF
37122 cat confdefs.h >>conftest.$ac_ext
37123 cat >>conftest.$ac_ext <<_ACEOF
37124 /* end confdefs.h.  */
37125 /* Define vsyslog to an innocuous variant, in case <limits.h> declares vsyslog.
37126    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37127 #define vsyslog innocuous_vsyslog
37128
37129 /* System header to define __stub macros and hopefully few prototypes,
37130     which can conflict with char vsyslog (); below.
37131     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37132     <limits.h> exists even on freestanding compilers.  */
37133
37134 #ifdef __STDC__
37135 # include <limits.h>
37136 #else
37137 # include <assert.h>
37138 #endif
37139
37140 #undef vsyslog
37141
37142 /* Override any GCC internal prototype to avoid an error.
37143    Use char because int might match the return type of a GCC
37144    builtin and then its argument prototype would still apply.  */
37145 #ifdef __cplusplus
37146 extern "C"
37147 #endif
37148 char vsyslog ();
37149 /* The GNU C library defines this for functions which it implements
37150     to always fail with ENOSYS.  Some functions are actually named
37151     something starting with __ and the normal name is an alias.  */
37152 #if defined __stub_vsyslog || defined __stub___vsyslog
37153 choke me
37154 #endif
37155
37156 int
37157 main ()
37158 {
37159 return vsyslog ();
37160   ;
37161   return 0;
37162 }
37163 _ACEOF
37164 rm -f conftest.$ac_objext conftest$ac_exeext
37165 if { (ac_try="$ac_link"
37166 case "(($ac_try" in
37167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37168   *) ac_try_echo=$ac_try;;
37169 esac
37170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37171   (eval "$ac_link") 2>conftest.er1
37172   ac_status=$?
37173   grep -v '^ *+' conftest.er1 >conftest.err
37174   rm -f conftest.er1
37175   cat conftest.err >&5
37176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37177   (exit $ac_status); } && {
37178          test -z "$ac_c_werror_flag" ||
37179          test ! -s conftest.err
37180        } && test -s conftest$ac_exeext &&
37181        $as_test_x conftest$ac_exeext; then
37182   ac_cv_func_vsyslog=yes
37183 else
37184   echo "$as_me: failed program was:" >&5
37185 sed 's/^/| /' conftest.$ac_ext >&5
37186
37187         ac_cv_func_vsyslog=no
37188 fi
37189
37190 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37191       conftest$ac_exeext conftest.$ac_ext
37192 fi
37193 { echo "$as_me:$LINENO: result: $ac_cv_func_vsyslog" >&5
37194 echo "${ECHO_T}$ac_cv_func_vsyslog" >&6; }
37195 if test $ac_cv_func_vsyslog = yes; then
37196
37197 cat >>confdefs.h <<_ACEOF
37198 #define HAVE_VSYSLOG 1
37199 _ACEOF
37200
37201 else
37202   case " $LIBOBJS " in
37203   *" vsyslog.$ac_objext "* ) ;;
37204   *) LIBOBJS="$LIBOBJS vsyslog.$ac_objext"
37205  ;;
37206 esac
37207
37208 fi
37209 { echo "$as_me:$LINENO: checking for vwarn" >&5
37210 echo $ECHO_N "checking for vwarn... $ECHO_C" >&6; }
37211 if test "${ac_cv_func_vwarn+set}" = set; then
37212   echo $ECHO_N "(cached) $ECHO_C" >&6
37213 else
37214   cat >conftest.$ac_ext <<_ACEOF
37215 /* confdefs.h.  */
37216 _ACEOF
37217 cat confdefs.h >>conftest.$ac_ext
37218 cat >>conftest.$ac_ext <<_ACEOF
37219 /* end confdefs.h.  */
37220 /* Define vwarn to an innocuous variant, in case <limits.h> declares vwarn.
37221    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37222 #define vwarn innocuous_vwarn
37223
37224 /* System header to define __stub macros and hopefully few prototypes,
37225     which can conflict with char vwarn (); below.
37226     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37227     <limits.h> exists even on freestanding compilers.  */
37228
37229 #ifdef __STDC__
37230 # include <limits.h>
37231 #else
37232 # include <assert.h>
37233 #endif
37234
37235 #undef vwarn
37236
37237 /* Override any GCC internal prototype to avoid an error.
37238    Use char because int might match the return type of a GCC
37239    builtin and then its argument prototype would still apply.  */
37240 #ifdef __cplusplus
37241 extern "C"
37242 #endif
37243 char vwarn ();
37244 /* The GNU C library defines this for functions which it implements
37245     to always fail with ENOSYS.  Some functions are actually named
37246     something starting with __ and the normal name is an alias.  */
37247 #if defined __stub_vwarn || defined __stub___vwarn
37248 choke me
37249 #endif
37250
37251 int
37252 main ()
37253 {
37254 return vwarn ();
37255   ;
37256   return 0;
37257 }
37258 _ACEOF
37259 rm -f conftest.$ac_objext conftest$ac_exeext
37260 if { (ac_try="$ac_link"
37261 case "(($ac_try" in
37262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37263   *) ac_try_echo=$ac_try;;
37264 esac
37265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37266   (eval "$ac_link") 2>conftest.er1
37267   ac_status=$?
37268   grep -v '^ *+' conftest.er1 >conftest.err
37269   rm -f conftest.er1
37270   cat conftest.err >&5
37271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37272   (exit $ac_status); } && {
37273          test -z "$ac_c_werror_flag" ||
37274          test ! -s conftest.err
37275        } && test -s conftest$ac_exeext &&
37276        $as_test_x conftest$ac_exeext; then
37277   ac_cv_func_vwarn=yes
37278 else
37279   echo "$as_me: failed program was:" >&5
37280 sed 's/^/| /' conftest.$ac_ext >&5
37281
37282         ac_cv_func_vwarn=no
37283 fi
37284
37285 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37286       conftest$ac_exeext conftest.$ac_ext
37287 fi
37288 { echo "$as_me:$LINENO: result: $ac_cv_func_vwarn" >&5
37289 echo "${ECHO_T}$ac_cv_func_vwarn" >&6; }
37290 if test $ac_cv_func_vwarn = yes; then
37291
37292 cat >>confdefs.h <<_ACEOF
37293 #define HAVE_VWARN 1
37294 _ACEOF
37295
37296 else
37297   case " $LIBOBJS " in
37298   *" vwarn.$ac_objext "* ) ;;
37299   *) LIBOBJS="$LIBOBJS vwarn.$ac_objext"
37300  ;;
37301 esac
37302
37303 fi
37304 { echo "$as_me:$LINENO: checking for vwarnx" >&5
37305 echo $ECHO_N "checking for vwarnx... $ECHO_C" >&6; }
37306 if test "${ac_cv_func_vwarnx+set}" = set; then
37307   echo $ECHO_N "(cached) $ECHO_C" >&6
37308 else
37309   cat >conftest.$ac_ext <<_ACEOF
37310 /* confdefs.h.  */
37311 _ACEOF
37312 cat confdefs.h >>conftest.$ac_ext
37313 cat >>conftest.$ac_ext <<_ACEOF
37314 /* end confdefs.h.  */
37315 /* Define vwarnx to an innocuous variant, in case <limits.h> declares vwarnx.
37316    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37317 #define vwarnx innocuous_vwarnx
37318
37319 /* System header to define __stub macros and hopefully few prototypes,
37320     which can conflict with char vwarnx (); below.
37321     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37322     <limits.h> exists even on freestanding compilers.  */
37323
37324 #ifdef __STDC__
37325 # include <limits.h>
37326 #else
37327 # include <assert.h>
37328 #endif
37329
37330 #undef vwarnx
37331
37332 /* Override any GCC internal prototype to avoid an error.
37333    Use char because int might match the return type of a GCC
37334    builtin and then its argument prototype would still apply.  */
37335 #ifdef __cplusplus
37336 extern "C"
37337 #endif
37338 char vwarnx ();
37339 /* The GNU C library defines this for functions which it implements
37340     to always fail with ENOSYS.  Some functions are actually named
37341     something starting with __ and the normal name is an alias.  */
37342 #if defined __stub_vwarnx || defined __stub___vwarnx
37343 choke me
37344 #endif
37345
37346 int
37347 main ()
37348 {
37349 return vwarnx ();
37350   ;
37351   return 0;
37352 }
37353 _ACEOF
37354 rm -f conftest.$ac_objext conftest$ac_exeext
37355 if { (ac_try="$ac_link"
37356 case "(($ac_try" in
37357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37358   *) ac_try_echo=$ac_try;;
37359 esac
37360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37361   (eval "$ac_link") 2>conftest.er1
37362   ac_status=$?
37363   grep -v '^ *+' conftest.er1 >conftest.err
37364   rm -f conftest.er1
37365   cat conftest.err >&5
37366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37367   (exit $ac_status); } && {
37368          test -z "$ac_c_werror_flag" ||
37369          test ! -s conftest.err
37370        } && test -s conftest$ac_exeext &&
37371        $as_test_x conftest$ac_exeext; then
37372   ac_cv_func_vwarnx=yes
37373 else
37374   echo "$as_me: failed program was:" >&5
37375 sed 's/^/| /' conftest.$ac_ext >&5
37376
37377         ac_cv_func_vwarnx=no
37378 fi
37379
37380 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37381       conftest$ac_exeext conftest.$ac_ext
37382 fi
37383 { echo "$as_me:$LINENO: result: $ac_cv_func_vwarnx" >&5
37384 echo "${ECHO_T}$ac_cv_func_vwarnx" >&6; }
37385 if test $ac_cv_func_vwarnx = yes; then
37386
37387 cat >>confdefs.h <<_ACEOF
37388 #define HAVE_VWARNX 1
37389 _ACEOF
37390
37391 else
37392   case " $LIBOBJS " in
37393   *" vwarnx.$ac_objext "* ) ;;
37394   *) LIBOBJS="$LIBOBJS vwarnx.$ac_objext"
37395  ;;
37396 esac
37397
37398 fi
37399 { echo "$as_me:$LINENO: checking for warn" >&5
37400 echo $ECHO_N "checking for warn... $ECHO_C" >&6; }
37401 if test "${ac_cv_func_warn+set}" = set; then
37402   echo $ECHO_N "(cached) $ECHO_C" >&6
37403 else
37404   cat >conftest.$ac_ext <<_ACEOF
37405 /* confdefs.h.  */
37406 _ACEOF
37407 cat confdefs.h >>conftest.$ac_ext
37408 cat >>conftest.$ac_ext <<_ACEOF
37409 /* end confdefs.h.  */
37410 /* Define warn to an innocuous variant, in case <limits.h> declares warn.
37411    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37412 #define warn innocuous_warn
37413
37414 /* System header to define __stub macros and hopefully few prototypes,
37415     which can conflict with char warn (); below.
37416     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37417     <limits.h> exists even on freestanding compilers.  */
37418
37419 #ifdef __STDC__
37420 # include <limits.h>
37421 #else
37422 # include <assert.h>
37423 #endif
37424
37425 #undef warn
37426
37427 /* Override any GCC internal prototype to avoid an error.
37428    Use char because int might match the return type of a GCC
37429    builtin and then its argument prototype would still apply.  */
37430 #ifdef __cplusplus
37431 extern "C"
37432 #endif
37433 char warn ();
37434 /* The GNU C library defines this for functions which it implements
37435     to always fail with ENOSYS.  Some functions are actually named
37436     something starting with __ and the normal name is an alias.  */
37437 #if defined __stub_warn || defined __stub___warn
37438 choke me
37439 #endif
37440
37441 int
37442 main ()
37443 {
37444 return warn ();
37445   ;
37446   return 0;
37447 }
37448 _ACEOF
37449 rm -f conftest.$ac_objext conftest$ac_exeext
37450 if { (ac_try="$ac_link"
37451 case "(($ac_try" in
37452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37453   *) ac_try_echo=$ac_try;;
37454 esac
37455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37456   (eval "$ac_link") 2>conftest.er1
37457   ac_status=$?
37458   grep -v '^ *+' conftest.er1 >conftest.err
37459   rm -f conftest.er1
37460   cat conftest.err >&5
37461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37462   (exit $ac_status); } && {
37463          test -z "$ac_c_werror_flag" ||
37464          test ! -s conftest.err
37465        } && test -s conftest$ac_exeext &&
37466        $as_test_x conftest$ac_exeext; then
37467   ac_cv_func_warn=yes
37468 else
37469   echo "$as_me: failed program was:" >&5
37470 sed 's/^/| /' conftest.$ac_ext >&5
37471
37472         ac_cv_func_warn=no
37473 fi
37474
37475 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37476       conftest$ac_exeext conftest.$ac_ext
37477 fi
37478 { echo "$as_me:$LINENO: result: $ac_cv_func_warn" >&5
37479 echo "${ECHO_T}$ac_cv_func_warn" >&6; }
37480 if test $ac_cv_func_warn = yes; then
37481
37482 cat >>confdefs.h <<_ACEOF
37483 #define HAVE_WARN 1
37484 _ACEOF
37485
37486 else
37487   case " $LIBOBJS " in
37488   *" warn.$ac_objext "* ) ;;
37489   *) LIBOBJS="$LIBOBJS warn.$ac_objext"
37490  ;;
37491 esac
37492
37493 fi
37494 { echo "$as_me:$LINENO: checking for warnx" >&5
37495 echo $ECHO_N "checking for warnx... $ECHO_C" >&6; }
37496 if test "${ac_cv_func_warnx+set}" = set; then
37497   echo $ECHO_N "(cached) $ECHO_C" >&6
37498 else
37499   cat >conftest.$ac_ext <<_ACEOF
37500 /* confdefs.h.  */
37501 _ACEOF
37502 cat confdefs.h >>conftest.$ac_ext
37503 cat >>conftest.$ac_ext <<_ACEOF
37504 /* end confdefs.h.  */
37505 /* Define warnx to an innocuous variant, in case <limits.h> declares warnx.
37506    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37507 #define warnx innocuous_warnx
37508
37509 /* System header to define __stub macros and hopefully few prototypes,
37510     which can conflict with char warnx (); below.
37511     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37512     <limits.h> exists even on freestanding compilers.  */
37513
37514 #ifdef __STDC__
37515 # include <limits.h>
37516 #else
37517 # include <assert.h>
37518 #endif
37519
37520 #undef warnx
37521
37522 /* Override any GCC internal prototype to avoid an error.
37523    Use char because int might match the return type of a GCC
37524    builtin and then its argument prototype would still apply.  */
37525 #ifdef __cplusplus
37526 extern "C"
37527 #endif
37528 char warnx ();
37529 /* The GNU C library defines this for functions which it implements
37530     to always fail with ENOSYS.  Some functions are actually named
37531     something starting with __ and the normal name is an alias.  */
37532 #if defined __stub_warnx || defined __stub___warnx
37533 choke me
37534 #endif
37535
37536 int
37537 main ()
37538 {
37539 return warnx ();
37540   ;
37541   return 0;
37542 }
37543 _ACEOF
37544 rm -f conftest.$ac_objext conftest$ac_exeext
37545 if { (ac_try="$ac_link"
37546 case "(($ac_try" in
37547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37548   *) ac_try_echo=$ac_try;;
37549 esac
37550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37551   (eval "$ac_link") 2>conftest.er1
37552   ac_status=$?
37553   grep -v '^ *+' conftest.er1 >conftest.err
37554   rm -f conftest.er1
37555   cat conftest.err >&5
37556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37557   (exit $ac_status); } && {
37558          test -z "$ac_c_werror_flag" ||
37559          test ! -s conftest.err
37560        } && test -s conftest$ac_exeext &&
37561        $as_test_x conftest$ac_exeext; then
37562   ac_cv_func_warnx=yes
37563 else
37564   echo "$as_me: failed program was:" >&5
37565 sed 's/^/| /' conftest.$ac_ext >&5
37566
37567         ac_cv_func_warnx=no
37568 fi
37569
37570 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37571       conftest$ac_exeext conftest.$ac_ext
37572 fi
37573 { echo "$as_me:$LINENO: result: $ac_cv_func_warnx" >&5
37574 echo "${ECHO_T}$ac_cv_func_warnx" >&6; }
37575 if test $ac_cv_func_warnx = yes; then
37576
37577 cat >>confdefs.h <<_ACEOF
37578 #define HAVE_WARNX 1
37579 _ACEOF
37580
37581 else
37582   case " $LIBOBJS " in
37583   *" warnx.$ac_objext "* ) ;;
37584   *) LIBOBJS="$LIBOBJS warnx.$ac_objext"
37585  ;;
37586 esac
37587
37588 fi
37589 { echo "$as_me:$LINENO: checking for writev" >&5
37590 echo $ECHO_N "checking for writev... $ECHO_C" >&6; }
37591 if test "${ac_cv_func_writev+set}" = set; then
37592   echo $ECHO_N "(cached) $ECHO_C" >&6
37593 else
37594   cat >conftest.$ac_ext <<_ACEOF
37595 /* confdefs.h.  */
37596 _ACEOF
37597 cat confdefs.h >>conftest.$ac_ext
37598 cat >>conftest.$ac_ext <<_ACEOF
37599 /* end confdefs.h.  */
37600 /* Define writev to an innocuous variant, in case <limits.h> declares writev.
37601    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37602 #define writev innocuous_writev
37603
37604 /* System header to define __stub macros and hopefully few prototypes,
37605     which can conflict with char writev (); below.
37606     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37607     <limits.h> exists even on freestanding compilers.  */
37608
37609 #ifdef __STDC__
37610 # include <limits.h>
37611 #else
37612 # include <assert.h>
37613 #endif
37614
37615 #undef writev
37616
37617 /* Override any GCC internal prototype to avoid an error.
37618    Use char because int might match the return type of a GCC
37619    builtin and then its argument prototype would still apply.  */
37620 #ifdef __cplusplus
37621 extern "C"
37622 #endif
37623 char writev ();
37624 /* The GNU C library defines this for functions which it implements
37625     to always fail with ENOSYS.  Some functions are actually named
37626     something starting with __ and the normal name is an alias.  */
37627 #if defined __stub_writev || defined __stub___writev
37628 choke me
37629 #endif
37630
37631 int
37632 main ()
37633 {
37634 return writev ();
37635   ;
37636   return 0;
37637 }
37638 _ACEOF
37639 rm -f conftest.$ac_objext conftest$ac_exeext
37640 if { (ac_try="$ac_link"
37641 case "(($ac_try" in
37642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37643   *) ac_try_echo=$ac_try;;
37644 esac
37645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37646   (eval "$ac_link") 2>conftest.er1
37647   ac_status=$?
37648   grep -v '^ *+' conftest.er1 >conftest.err
37649   rm -f conftest.er1
37650   cat conftest.err >&5
37651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37652   (exit $ac_status); } && {
37653          test -z "$ac_c_werror_flag" ||
37654          test ! -s conftest.err
37655        } && test -s conftest$ac_exeext &&
37656        $as_test_x conftest$ac_exeext; then
37657   ac_cv_func_writev=yes
37658 else
37659   echo "$as_me: failed program was:" >&5
37660 sed 's/^/| /' conftest.$ac_ext >&5
37661
37662         ac_cv_func_writev=no
37663 fi
37664
37665 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37666       conftest$ac_exeext conftest.$ac_ext
37667 fi
37668 { echo "$as_me:$LINENO: result: $ac_cv_func_writev" >&5
37669 echo "${ECHO_T}$ac_cv_func_writev" >&6; }
37670 if test $ac_cv_func_writev = yes; then
37671
37672 cat >>confdefs.h <<_ACEOF
37673 #define HAVE_WRITEV 1
37674 _ACEOF
37675
37676 else
37677   case " $LIBOBJS " in
37678   *" writev.$ac_objext "* ) ;;
37679   *) LIBOBJS="$LIBOBJS writev.$ac_objext"
37680  ;;
37681 esac
37682
37683 fi
37684
37685
37686  if test "$ac_cv_header_fnmatch_h" = yes -a "$ac_cv_func_fnmatch" = yes; then
37687   have_fnmatch_h_TRUE=
37688   have_fnmatch_h_FALSE='#'
37689 else
37690   have_fnmatch_h_TRUE='#'
37691   have_fnmatch_h_FALSE=
37692 fi
37693
37694
37695
37696 if test "$ac_cv_func_strndup+set" != set -o "$ac_cv_func_strndup" = yes; then
37697 { echo "$as_me:$LINENO: checking if strndup needs a prototype" >&5
37698 echo $ECHO_N "checking if strndup needs a prototype... $ECHO_C" >&6; }
37699 if test "${ac_cv_func_strndup_noproto+set}" = set; then
37700   echo $ECHO_N "(cached) $ECHO_C" >&6
37701 else
37702   cat >conftest.$ac_ext <<_ACEOF
37703 /* confdefs.h.  */
37704 _ACEOF
37705 cat confdefs.h >>conftest.$ac_ext
37706 cat >>conftest.$ac_ext <<_ACEOF
37707 /* end confdefs.h.  */
37708 #include <string.h>
37709 struct foo { int foo; } xx;
37710 extern int strndup (struct foo*);
37711 int
37712 main ()
37713 {
37714 strndup(&xx)
37715   ;
37716   return 0;
37717 }
37718 _ACEOF
37719 rm -f conftest.$ac_objext
37720 if { (ac_try="$ac_compile"
37721 case "(($ac_try" in
37722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37723   *) ac_try_echo=$ac_try;;
37724 esac
37725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37726   (eval "$ac_compile") 2>conftest.er1
37727   ac_status=$?
37728   grep -v '^ *+' conftest.er1 >conftest.err
37729   rm -f conftest.er1
37730   cat conftest.err >&5
37731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37732   (exit $ac_status); } && {
37733          test -z "$ac_c_werror_flag" ||
37734          test ! -s conftest.err
37735        } && test -s conftest.$ac_objext; then
37736   eval "ac_cv_func_strndup_noproto=yes"
37737 else
37738   echo "$as_me: failed program was:" >&5
37739 sed 's/^/| /' conftest.$ac_ext >&5
37740
37741         eval "ac_cv_func_strndup_noproto=no"
37742 fi
37743
37744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37745 fi
37746 { echo "$as_me:$LINENO: result: $ac_cv_func_strndup_noproto" >&5
37747 echo "${ECHO_T}$ac_cv_func_strndup_noproto" >&6; }
37748 if test "$ac_cv_func_strndup_noproto" = yes; then
37749
37750 cat >>confdefs.h <<\_ACEOF
37751 #define NEED_STRNDUP_PROTO 1
37752 _ACEOF
37753
37754 fi
37755 fi
37756
37757 if test "$ac_cv_func_strsep+set" != set -o "$ac_cv_func_strsep" = yes; then
37758 { echo "$as_me:$LINENO: checking if strsep needs a prototype" >&5
37759 echo $ECHO_N "checking if strsep needs a prototype... $ECHO_C" >&6; }
37760 if test "${ac_cv_func_strsep_noproto+set}" = set; then
37761   echo $ECHO_N "(cached) $ECHO_C" >&6
37762 else
37763   cat >conftest.$ac_ext <<_ACEOF
37764 /* confdefs.h.  */
37765 _ACEOF
37766 cat confdefs.h >>conftest.$ac_ext
37767 cat >>conftest.$ac_ext <<_ACEOF
37768 /* end confdefs.h.  */
37769 #include <string.h>
37770 struct foo { int foo; } xx;
37771 extern int strsep (struct foo*);
37772 int
37773 main ()
37774 {
37775 strsep(&xx)
37776   ;
37777   return 0;
37778 }
37779 _ACEOF
37780 rm -f conftest.$ac_objext
37781 if { (ac_try="$ac_compile"
37782 case "(($ac_try" in
37783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37784   *) ac_try_echo=$ac_try;;
37785 esac
37786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37787   (eval "$ac_compile") 2>conftest.er1
37788   ac_status=$?
37789   grep -v '^ *+' conftest.er1 >conftest.err
37790   rm -f conftest.er1
37791   cat conftest.err >&5
37792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37793   (exit $ac_status); } && {
37794          test -z "$ac_c_werror_flag" ||
37795          test ! -s conftest.err
37796        } && test -s conftest.$ac_objext; then
37797   eval "ac_cv_func_strsep_noproto=yes"
37798 else
37799   echo "$as_me: failed program was:" >&5
37800 sed 's/^/| /' conftest.$ac_ext >&5
37801
37802         eval "ac_cv_func_strsep_noproto=no"
37803 fi
37804
37805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37806 fi
37807 { echo "$as_me:$LINENO: result: $ac_cv_func_strsep_noproto" >&5
37808 echo "${ECHO_T}$ac_cv_func_strsep_noproto" >&6; }
37809 if test "$ac_cv_func_strsep_noproto" = yes; then
37810
37811 cat >>confdefs.h <<\_ACEOF
37812 #define NEED_STRSEP_PROTO 1
37813 _ACEOF
37814
37815 fi
37816 fi
37817
37818 if test "$ac_cv_func_strtok_r+set" != set -o "$ac_cv_func_strtok_r" = yes; then
37819 { echo "$as_me:$LINENO: checking if strtok_r needs a prototype" >&5
37820 echo $ECHO_N "checking if strtok_r needs a prototype... $ECHO_C" >&6; }
37821 if test "${ac_cv_func_strtok_r_noproto+set}" = set; then
37822   echo $ECHO_N "(cached) $ECHO_C" >&6
37823 else
37824   cat >conftest.$ac_ext <<_ACEOF
37825 /* confdefs.h.  */
37826 _ACEOF
37827 cat confdefs.h >>conftest.$ac_ext
37828 cat >>conftest.$ac_ext <<_ACEOF
37829 /* end confdefs.h.  */
37830 #include <string.h>
37831 struct foo { int foo; } xx;
37832 extern int strtok_r (struct foo*);
37833 int
37834 main ()
37835 {
37836 strtok_r(&xx)
37837   ;
37838   return 0;
37839 }
37840 _ACEOF
37841 rm -f conftest.$ac_objext
37842 if { (ac_try="$ac_compile"
37843 case "(($ac_try" in
37844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37845   *) ac_try_echo=$ac_try;;
37846 esac
37847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37848   (eval "$ac_compile") 2>conftest.er1
37849   ac_status=$?
37850   grep -v '^ *+' conftest.er1 >conftest.err
37851   rm -f conftest.er1
37852   cat conftest.err >&5
37853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37854   (exit $ac_status); } && {
37855          test -z "$ac_c_werror_flag" ||
37856          test ! -s conftest.err
37857        } && test -s conftest.$ac_objext; then
37858   eval "ac_cv_func_strtok_r_noproto=yes"
37859 else
37860   echo "$as_me: failed program was:" >&5
37861 sed 's/^/| /' conftest.$ac_ext >&5
37862
37863         eval "ac_cv_func_strtok_r_noproto=no"
37864 fi
37865
37866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37867 fi
37868 { echo "$as_me:$LINENO: result: $ac_cv_func_strtok_r_noproto" >&5
37869 echo "${ECHO_T}$ac_cv_func_strtok_r_noproto" >&6; }
37870 if test "$ac_cv_func_strtok_r_noproto" = yes; then
37871
37872 cat >>confdefs.h <<\_ACEOF
37873 #define NEED_STRTOK_R_PROTO 1
37874 _ACEOF
37875
37876 fi
37877 fi
37878
37879
37880
37881 if test "$ac_cv_func_strsvis+set" != set -o "$ac_cv_func_strsvis" = yes; then
37882 { echo "$as_me:$LINENO: checking if strsvis needs a prototype" >&5
37883 echo $ECHO_N "checking if strsvis needs a prototype... $ECHO_C" >&6; }
37884 if test "${ac_cv_func_strsvis_noproto+set}" = set; then
37885   echo $ECHO_N "(cached) $ECHO_C" >&6
37886 else
37887   cat >conftest.$ac_ext <<_ACEOF
37888 /* confdefs.h.  */
37889 _ACEOF
37890 cat confdefs.h >>conftest.$ac_ext
37891 cat >>conftest.$ac_ext <<_ACEOF
37892 /* end confdefs.h.  */
37893 #ifdef HAVE_VIS_H
37894 #include <vis.h>
37895 #endif
37896 struct foo { int foo; } xx;
37897 extern int strsvis (struct foo*);
37898 int
37899 main ()
37900 {
37901 strsvis(&xx)
37902   ;
37903   return 0;
37904 }
37905 _ACEOF
37906 rm -f conftest.$ac_objext
37907 if { (ac_try="$ac_compile"
37908 case "(($ac_try" in
37909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37910   *) ac_try_echo=$ac_try;;
37911 esac
37912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37913   (eval "$ac_compile") 2>conftest.er1
37914   ac_status=$?
37915   grep -v '^ *+' conftest.er1 >conftest.err
37916   rm -f conftest.er1
37917   cat conftest.err >&5
37918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37919   (exit $ac_status); } && {
37920          test -z "$ac_c_werror_flag" ||
37921          test ! -s conftest.err
37922        } && test -s conftest.$ac_objext; then
37923   eval "ac_cv_func_strsvis_noproto=yes"
37924 else
37925   echo "$as_me: failed program was:" >&5
37926 sed 's/^/| /' conftest.$ac_ext >&5
37927
37928         eval "ac_cv_func_strsvis_noproto=no"
37929 fi
37930
37931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37932 fi
37933 { echo "$as_me:$LINENO: result: $ac_cv_func_strsvis_noproto" >&5
37934 echo "${ECHO_T}$ac_cv_func_strsvis_noproto" >&6; }
37935 if test "$ac_cv_func_strsvis_noproto" = yes; then
37936
37937 cat >>confdefs.h <<\_ACEOF
37938 #define NEED_STRSVIS_PROTO 1
37939 _ACEOF
37940
37941 fi
37942 fi
37943
37944 if test "$ac_cv_func_strunvis+set" != set -o "$ac_cv_func_strunvis" = yes; then
37945 { echo "$as_me:$LINENO: checking if strunvis needs a prototype" >&5
37946 echo $ECHO_N "checking if strunvis needs a prototype... $ECHO_C" >&6; }
37947 if test "${ac_cv_func_strunvis_noproto+set}" = set; then
37948   echo $ECHO_N "(cached) $ECHO_C" >&6
37949 else
37950   cat >conftest.$ac_ext <<_ACEOF
37951 /* confdefs.h.  */
37952 _ACEOF
37953 cat confdefs.h >>conftest.$ac_ext
37954 cat >>conftest.$ac_ext <<_ACEOF
37955 /* end confdefs.h.  */
37956 #ifdef HAVE_VIS_H
37957 #include <vis.h>
37958 #endif
37959 struct foo { int foo; } xx;
37960 extern int strunvis (struct foo*);
37961 int
37962 main ()
37963 {
37964 strunvis(&xx)
37965   ;
37966   return 0;
37967 }
37968 _ACEOF
37969 rm -f conftest.$ac_objext
37970 if { (ac_try="$ac_compile"
37971 case "(($ac_try" in
37972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37973   *) ac_try_echo=$ac_try;;
37974 esac
37975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37976   (eval "$ac_compile") 2>conftest.er1
37977   ac_status=$?
37978   grep -v '^ *+' conftest.er1 >conftest.err
37979   rm -f conftest.er1
37980   cat conftest.err >&5
37981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37982   (exit $ac_status); } && {
37983          test -z "$ac_c_werror_flag" ||
37984          test ! -s conftest.err
37985        } && test -s conftest.$ac_objext; then
37986   eval "ac_cv_func_strunvis_noproto=yes"
37987 else
37988   echo "$as_me: failed program was:" >&5
37989 sed 's/^/| /' conftest.$ac_ext >&5
37990
37991         eval "ac_cv_func_strunvis_noproto=no"
37992 fi
37993
37994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37995 fi
37996 { echo "$as_me:$LINENO: result: $ac_cv_func_strunvis_noproto" >&5
37997 echo "${ECHO_T}$ac_cv_func_strunvis_noproto" >&6; }
37998 if test "$ac_cv_func_strunvis_noproto" = yes; then
37999
38000 cat >>confdefs.h <<\_ACEOF
38001 #define NEED_STRUNVIS_PROTO 1
38002 _ACEOF
38003
38004 fi
38005 fi
38006
38007 if test "$ac_cv_func_strvis+set" != set -o "$ac_cv_func_strvis" = yes; then
38008 { echo "$as_me:$LINENO: checking if strvis needs a prototype" >&5
38009 echo $ECHO_N "checking if strvis needs a prototype... $ECHO_C" >&6; }
38010 if test "${ac_cv_func_strvis_noproto+set}" = set; then
38011   echo $ECHO_N "(cached) $ECHO_C" >&6
38012 else
38013   cat >conftest.$ac_ext <<_ACEOF
38014 /* confdefs.h.  */
38015 _ACEOF
38016 cat confdefs.h >>conftest.$ac_ext
38017 cat >>conftest.$ac_ext <<_ACEOF
38018 /* end confdefs.h.  */
38019 #ifdef HAVE_VIS_H
38020 #include <vis.h>
38021 #endif
38022 struct foo { int foo; } xx;
38023 extern int strvis (struct foo*);
38024 int
38025 main ()
38026 {
38027 strvis(&xx)
38028   ;
38029   return 0;
38030 }
38031 _ACEOF
38032 rm -f conftest.$ac_objext
38033 if { (ac_try="$ac_compile"
38034 case "(($ac_try" in
38035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38036   *) ac_try_echo=$ac_try;;
38037 esac
38038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38039   (eval "$ac_compile") 2>conftest.er1
38040   ac_status=$?
38041   grep -v '^ *+' conftest.er1 >conftest.err
38042   rm -f conftest.er1
38043   cat conftest.err >&5
38044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38045   (exit $ac_status); } && {
38046          test -z "$ac_c_werror_flag" ||
38047          test ! -s conftest.err
38048        } && test -s conftest.$ac_objext; then
38049   eval "ac_cv_func_strvis_noproto=yes"
38050 else
38051   echo "$as_me: failed program was:" >&5
38052 sed 's/^/| /' conftest.$ac_ext >&5
38053
38054         eval "ac_cv_func_strvis_noproto=no"
38055 fi
38056
38057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38058 fi
38059 { echo "$as_me:$LINENO: result: $ac_cv_func_strvis_noproto" >&5
38060 echo "${ECHO_T}$ac_cv_func_strvis_noproto" >&6; }
38061 if test "$ac_cv_func_strvis_noproto" = yes; then
38062
38063 cat >>confdefs.h <<\_ACEOF
38064 #define NEED_STRVIS_PROTO 1
38065 _ACEOF
38066
38067 fi
38068 fi
38069
38070 if test "$ac_cv_func_strvisx+set" != set -o "$ac_cv_func_strvisx" = yes; then
38071 { echo "$as_me:$LINENO: checking if strvisx needs a prototype" >&5
38072 echo $ECHO_N "checking if strvisx needs a prototype... $ECHO_C" >&6; }
38073 if test "${ac_cv_func_strvisx_noproto+set}" = set; then
38074   echo $ECHO_N "(cached) $ECHO_C" >&6
38075 else
38076   cat >conftest.$ac_ext <<_ACEOF
38077 /* confdefs.h.  */
38078 _ACEOF
38079 cat confdefs.h >>conftest.$ac_ext
38080 cat >>conftest.$ac_ext <<_ACEOF
38081 /* end confdefs.h.  */
38082 #ifdef HAVE_VIS_H
38083 #include <vis.h>
38084 #endif
38085 struct foo { int foo; } xx;
38086 extern int strvisx (struct foo*);
38087 int
38088 main ()
38089 {
38090 strvisx(&xx)
38091   ;
38092   return 0;
38093 }
38094 _ACEOF
38095 rm -f conftest.$ac_objext
38096 if { (ac_try="$ac_compile"
38097 case "(($ac_try" in
38098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38099   *) ac_try_echo=$ac_try;;
38100 esac
38101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38102   (eval "$ac_compile") 2>conftest.er1
38103   ac_status=$?
38104   grep -v '^ *+' conftest.er1 >conftest.err
38105   rm -f conftest.er1
38106   cat conftest.err >&5
38107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38108   (exit $ac_status); } && {
38109          test -z "$ac_c_werror_flag" ||
38110          test ! -s conftest.err
38111        } && test -s conftest.$ac_objext; then
38112   eval "ac_cv_func_strvisx_noproto=yes"
38113 else
38114   echo "$as_me: failed program was:" >&5
38115 sed 's/^/| /' conftest.$ac_ext >&5
38116
38117         eval "ac_cv_func_strvisx_noproto=no"
38118 fi
38119
38120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38121 fi
38122 { echo "$as_me:$LINENO: result: $ac_cv_func_strvisx_noproto" >&5
38123 echo "${ECHO_T}$ac_cv_func_strvisx_noproto" >&6; }
38124 if test "$ac_cv_func_strvisx_noproto" = yes; then
38125
38126 cat >>confdefs.h <<\_ACEOF
38127 #define NEED_STRVISX_PROTO 1
38128 _ACEOF
38129
38130 fi
38131 fi
38132
38133 if test "$ac_cv_func_svis+set" != set -o "$ac_cv_func_svis" = yes; then
38134 { echo "$as_me:$LINENO: checking if svis needs a prototype" >&5
38135 echo $ECHO_N "checking if svis needs a prototype... $ECHO_C" >&6; }
38136 if test "${ac_cv_func_svis_noproto+set}" = set; then
38137   echo $ECHO_N "(cached) $ECHO_C" >&6
38138 else
38139   cat >conftest.$ac_ext <<_ACEOF
38140 /* confdefs.h.  */
38141 _ACEOF
38142 cat confdefs.h >>conftest.$ac_ext
38143 cat >>conftest.$ac_ext <<_ACEOF
38144 /* end confdefs.h.  */
38145 #ifdef HAVE_VIS_H
38146 #include <vis.h>
38147 #endif
38148 struct foo { int foo; } xx;
38149 extern int svis (struct foo*);
38150 int
38151 main ()
38152 {
38153 svis(&xx)
38154   ;
38155   return 0;
38156 }
38157 _ACEOF
38158 rm -f conftest.$ac_objext
38159 if { (ac_try="$ac_compile"
38160 case "(($ac_try" in
38161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38162   *) ac_try_echo=$ac_try;;
38163 esac
38164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38165   (eval "$ac_compile") 2>conftest.er1
38166   ac_status=$?
38167   grep -v '^ *+' conftest.er1 >conftest.err
38168   rm -f conftest.er1
38169   cat conftest.err >&5
38170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38171   (exit $ac_status); } && {
38172          test -z "$ac_c_werror_flag" ||
38173          test ! -s conftest.err
38174        } && test -s conftest.$ac_objext; then
38175   eval "ac_cv_func_svis_noproto=yes"
38176 else
38177   echo "$as_me: failed program was:" >&5
38178 sed 's/^/| /' conftest.$ac_ext >&5
38179
38180         eval "ac_cv_func_svis_noproto=no"
38181 fi
38182
38183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38184 fi
38185 { echo "$as_me:$LINENO: result: $ac_cv_func_svis_noproto" >&5
38186 echo "${ECHO_T}$ac_cv_func_svis_noproto" >&6; }
38187 if test "$ac_cv_func_svis_noproto" = yes; then
38188
38189 cat >>confdefs.h <<\_ACEOF
38190 #define NEED_SVIS_PROTO 1
38191 _ACEOF
38192
38193 fi
38194 fi
38195
38196 if test "$ac_cv_func_unvis+set" != set -o "$ac_cv_func_unvis" = yes; then
38197 { echo "$as_me:$LINENO: checking if unvis needs a prototype" >&5
38198 echo $ECHO_N "checking if unvis needs a prototype... $ECHO_C" >&6; }
38199 if test "${ac_cv_func_unvis_noproto+set}" = set; then
38200   echo $ECHO_N "(cached) $ECHO_C" >&6
38201 else
38202   cat >conftest.$ac_ext <<_ACEOF
38203 /* confdefs.h.  */
38204 _ACEOF
38205 cat confdefs.h >>conftest.$ac_ext
38206 cat >>conftest.$ac_ext <<_ACEOF
38207 /* end confdefs.h.  */
38208 #ifdef HAVE_VIS_H
38209 #include <vis.h>
38210 #endif
38211 struct foo { int foo; } xx;
38212 extern int unvis (struct foo*);
38213 int
38214 main ()
38215 {
38216 unvis(&xx)
38217   ;
38218   return 0;
38219 }
38220 _ACEOF
38221 rm -f conftest.$ac_objext
38222 if { (ac_try="$ac_compile"
38223 case "(($ac_try" in
38224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38225   *) ac_try_echo=$ac_try;;
38226 esac
38227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38228   (eval "$ac_compile") 2>conftest.er1
38229   ac_status=$?
38230   grep -v '^ *+' conftest.er1 >conftest.err
38231   rm -f conftest.er1
38232   cat conftest.err >&5
38233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38234   (exit $ac_status); } && {
38235          test -z "$ac_c_werror_flag" ||
38236          test ! -s conftest.err
38237        } && test -s conftest.$ac_objext; then
38238   eval "ac_cv_func_unvis_noproto=yes"
38239 else
38240   echo "$as_me: failed program was:" >&5
38241 sed 's/^/| /' conftest.$ac_ext >&5
38242
38243         eval "ac_cv_func_unvis_noproto=no"
38244 fi
38245
38246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38247 fi
38248 { echo "$as_me:$LINENO: result: $ac_cv_func_unvis_noproto" >&5
38249 echo "${ECHO_T}$ac_cv_func_unvis_noproto" >&6; }
38250 if test "$ac_cv_func_unvis_noproto" = yes; then
38251
38252 cat >>confdefs.h <<\_ACEOF
38253 #define NEED_UNVIS_PROTO 1
38254 _ACEOF
38255
38256 fi
38257 fi
38258
38259 if test "$ac_cv_func_vis+set" != set -o "$ac_cv_func_vis" = yes; then
38260 { echo "$as_me:$LINENO: checking if vis needs a prototype" >&5
38261 echo $ECHO_N "checking if vis needs a prototype... $ECHO_C" >&6; }
38262 if test "${ac_cv_func_vis_noproto+set}" = set; then
38263   echo $ECHO_N "(cached) $ECHO_C" >&6
38264 else
38265   cat >conftest.$ac_ext <<_ACEOF
38266 /* confdefs.h.  */
38267 _ACEOF
38268 cat confdefs.h >>conftest.$ac_ext
38269 cat >>conftest.$ac_ext <<_ACEOF
38270 /* end confdefs.h.  */
38271 #ifdef HAVE_VIS_H
38272 #include <vis.h>
38273 #endif
38274 struct foo { int foo; } xx;
38275 extern int vis (struct foo*);
38276 int
38277 main ()
38278 {
38279 vis(&xx)
38280   ;
38281   return 0;
38282 }
38283 _ACEOF
38284 rm -f conftest.$ac_objext
38285 if { (ac_try="$ac_compile"
38286 case "(($ac_try" in
38287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38288   *) ac_try_echo=$ac_try;;
38289 esac
38290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38291   (eval "$ac_compile") 2>conftest.er1
38292   ac_status=$?
38293   grep -v '^ *+' conftest.er1 >conftest.err
38294   rm -f conftest.er1
38295   cat conftest.err >&5
38296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38297   (exit $ac_status); } && {
38298          test -z "$ac_c_werror_flag" ||
38299          test ! -s conftest.err
38300        } && test -s conftest.$ac_objext; then
38301   eval "ac_cv_func_vis_noproto=yes"
38302 else
38303   echo "$as_me: failed program was:" >&5
38304 sed 's/^/| /' conftest.$ac_ext >&5
38305
38306         eval "ac_cv_func_vis_noproto=no"
38307 fi
38308
38309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38310 fi
38311 { echo "$as_me:$LINENO: result: $ac_cv_func_vis_noproto" >&5
38312 echo "${ECHO_T}$ac_cv_func_vis_noproto" >&6; }
38313 if test "$ac_cv_func_vis_noproto" = yes; then
38314
38315 cat >>confdefs.h <<\_ACEOF
38316 #define NEED_VIS_PROTO 1
38317 _ACEOF
38318
38319 fi
38320 fi
38321
38322
38323 { echo "$as_me:$LINENO: checking for inet_aton" >&5
38324 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; }
38325 if test "${ac_cv_func_inet_aton+set}" = set; then
38326   echo $ECHO_N "(cached) $ECHO_C" >&6
38327 else
38328   cat >conftest.$ac_ext <<_ACEOF
38329 /* confdefs.h.  */
38330 _ACEOF
38331 cat confdefs.h >>conftest.$ac_ext
38332 cat >>conftest.$ac_ext <<_ACEOF
38333 /* end confdefs.h.  */
38334 #ifdef HAVE_SYS_TYPES_H
38335 #include <sys/types.h>
38336 #endif
38337 #ifdef HAVE_SYS_SOCKET_H
38338 #include <sys/socket.h>
38339 #endif
38340 #ifdef HAVE_NETINET_IN_H
38341 #include <netinet/in.h>
38342 #endif
38343 #ifdef HAVE_ARPA_INET_H
38344 #include <arpa/inet.h>
38345 #endif
38346 int
38347 main ()
38348 {
38349
38350 /* The GNU C library defines this for functions which it implements
38351     to always fail with ENOSYS.  Some functions are actually named
38352     something starting with __ and the normal name is an alias.  */
38353 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
38354 choke me
38355 #else
38356 inet_aton(0,0);
38357 #endif
38358
38359   ;
38360   return 0;
38361 }
38362 _ACEOF
38363 rm -f conftest.$ac_objext conftest$ac_exeext
38364 if { (ac_try="$ac_link"
38365 case "(($ac_try" in
38366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38367   *) ac_try_echo=$ac_try;;
38368 esac
38369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38370   (eval "$ac_link") 2>conftest.er1
38371   ac_status=$?
38372   grep -v '^ *+' conftest.er1 >conftest.err
38373   rm -f conftest.er1
38374   cat conftest.err >&5
38375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38376   (exit $ac_status); } && {
38377          test -z "$ac_c_werror_flag" ||
38378          test ! -s conftest.err
38379        } && test -s conftest$ac_exeext &&
38380        $as_test_x conftest$ac_exeext; then
38381   eval "ac_cv_func_inet_aton=yes"
38382 else
38383   echo "$as_me: failed program was:" >&5
38384 sed 's/^/| /' conftest.$ac_ext >&5
38385
38386         eval "ac_cv_func_inet_aton=no"
38387 fi
38388
38389 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38390       conftest$ac_exeext conftest.$ac_ext
38391 fi
38392
38393 if eval "test \"\${ac_cv_func_inet_aton}\" = yes"; then
38394
38395 cat >>confdefs.h <<_ACEOF
38396 #define HAVE_INET_ATON 1
38397 _ACEOF
38398
38399   { echo "$as_me:$LINENO: result: yes" >&5
38400 echo "${ECHO_T}yes" >&6; }
38401 else
38402   { echo "$as_me:$LINENO: result: no" >&5
38403 echo "${ECHO_T}no" >&6; }
38404   case " $LIBOBJS " in
38405   *" inet_aton.$ac_objext "* ) ;;
38406   *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext"
38407  ;;
38408 esac
38409
38410 fi
38411
38412 { echo "$as_me:$LINENO: checking for inet_ntop" >&5
38413 echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6; }
38414 if test "${ac_cv_func_inet_ntop+set}" = set; then
38415   echo $ECHO_N "(cached) $ECHO_C" >&6
38416 else
38417   cat >conftest.$ac_ext <<_ACEOF
38418 /* confdefs.h.  */
38419 _ACEOF
38420 cat confdefs.h >>conftest.$ac_ext
38421 cat >>conftest.$ac_ext <<_ACEOF
38422 /* end confdefs.h.  */
38423 #ifdef HAVE_SYS_TYPES_H
38424 #include <sys/types.h>
38425 #endif
38426 #ifdef HAVE_SYS_SOCKET_H
38427 #include <sys/socket.h>
38428 #endif
38429 #ifdef HAVE_NETINET_IN_H
38430 #include <netinet/in.h>
38431 #endif
38432 #ifdef HAVE_ARPA_INET_H
38433 #include <arpa/inet.h>
38434 #endif
38435 int
38436 main ()
38437 {
38438
38439 /* The GNU C library defines this for functions which it implements
38440     to always fail with ENOSYS.  Some functions are actually named
38441     something starting with __ and the normal name is an alias.  */
38442 #if defined (__stub_inet_ntop) || defined (__stub___inet_ntop)
38443 choke me
38444 #else
38445 inet_ntop(0, 0, 0, 0);
38446 #endif
38447
38448   ;
38449   return 0;
38450 }
38451 _ACEOF
38452 rm -f conftest.$ac_objext conftest$ac_exeext
38453 if { (ac_try="$ac_link"
38454 case "(($ac_try" in
38455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38456   *) ac_try_echo=$ac_try;;
38457 esac
38458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38459   (eval "$ac_link") 2>conftest.er1
38460   ac_status=$?
38461   grep -v '^ *+' conftest.er1 >conftest.err
38462   rm -f conftest.er1
38463   cat conftest.err >&5
38464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38465   (exit $ac_status); } && {
38466          test -z "$ac_c_werror_flag" ||
38467          test ! -s conftest.err
38468        } && test -s conftest$ac_exeext &&
38469        $as_test_x conftest$ac_exeext; then
38470   eval "ac_cv_func_inet_ntop=yes"
38471 else
38472   echo "$as_me: failed program was:" >&5
38473 sed 's/^/| /' conftest.$ac_ext >&5
38474
38475         eval "ac_cv_func_inet_ntop=no"
38476 fi
38477
38478 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38479       conftest$ac_exeext conftest.$ac_ext
38480 fi
38481
38482 if eval "test \"\${ac_cv_func_inet_ntop}\" = yes"; then
38483
38484 cat >>confdefs.h <<_ACEOF
38485 #define HAVE_INET_NTOP 1
38486 _ACEOF
38487
38488   { echo "$as_me:$LINENO: result: yes" >&5
38489 echo "${ECHO_T}yes" >&6; }
38490 else
38491   { echo "$as_me:$LINENO: result: no" >&5
38492 echo "${ECHO_T}no" >&6; }
38493   case " $LIBOBJS " in
38494   *" inet_ntop.$ac_objext "* ) ;;
38495   *) LIBOBJS="$LIBOBJS inet_ntop.$ac_objext"
38496  ;;
38497 esac
38498
38499 fi
38500
38501 { echo "$as_me:$LINENO: checking for inet_pton" >&5
38502 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6; }
38503 if test "${ac_cv_func_inet_pton+set}" = set; then
38504   echo $ECHO_N "(cached) $ECHO_C" >&6
38505 else
38506   cat >conftest.$ac_ext <<_ACEOF
38507 /* confdefs.h.  */
38508 _ACEOF
38509 cat confdefs.h >>conftest.$ac_ext
38510 cat >>conftest.$ac_ext <<_ACEOF
38511 /* end confdefs.h.  */
38512 #ifdef HAVE_SYS_TYPES_H
38513 #include <sys/types.h>
38514 #endif
38515 #ifdef HAVE_SYS_SOCKET_H
38516 #include <sys/socket.h>
38517 #endif
38518 #ifdef HAVE_NETINET_IN_H
38519 #include <netinet/in.h>
38520 #endif
38521 #ifdef HAVE_ARPA_INET_H
38522 #include <arpa/inet.h>
38523 #endif
38524 int
38525 main ()
38526 {
38527
38528 /* The GNU C library defines this for functions which it implements
38529     to always fail with ENOSYS.  Some functions are actually named
38530     something starting with __ and the normal name is an alias.  */
38531 #if defined (__stub_inet_pton) || defined (__stub___inet_pton)
38532 choke me
38533 #else
38534 inet_pton(0,0,0);
38535 #endif
38536
38537   ;
38538   return 0;
38539 }
38540 _ACEOF
38541 rm -f conftest.$ac_objext conftest$ac_exeext
38542 if { (ac_try="$ac_link"
38543 case "(($ac_try" in
38544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38545   *) ac_try_echo=$ac_try;;
38546 esac
38547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38548   (eval "$ac_link") 2>conftest.er1
38549   ac_status=$?
38550   grep -v '^ *+' conftest.er1 >conftest.err
38551   rm -f conftest.er1
38552   cat conftest.err >&5
38553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38554   (exit $ac_status); } && {
38555          test -z "$ac_c_werror_flag" ||
38556          test ! -s conftest.err
38557        } && test -s conftest$ac_exeext &&
38558        $as_test_x conftest$ac_exeext; then
38559   eval "ac_cv_func_inet_pton=yes"
38560 else
38561   echo "$as_me: failed program was:" >&5
38562 sed 's/^/| /' conftest.$ac_ext >&5
38563
38564         eval "ac_cv_func_inet_pton=no"
38565 fi
38566
38567 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38568       conftest$ac_exeext conftest.$ac_ext
38569 fi
38570
38571 if eval "test \"\${ac_cv_func_inet_pton}\" = yes"; then
38572
38573 cat >>confdefs.h <<_ACEOF
38574 #define HAVE_INET_PTON 1
38575 _ACEOF
38576
38577   { echo "$as_me:$LINENO: result: yes" >&5
38578 echo "${ECHO_T}yes" >&6; }
38579 else
38580   { echo "$as_me:$LINENO: result: no" >&5
38581 echo "${ECHO_T}no" >&6; }
38582   case " $LIBOBJS " in
38583   *" inet_pton.$ac_objext "* ) ;;
38584   *) LIBOBJS="$LIBOBJS inet_pton.$ac_objext"
38585  ;;
38586 esac
38587
38588 fi
38589
38590
38591
38592 { echo "$as_me:$LINENO: checking for sa_len in struct sockaddr" >&5
38593 echo $ECHO_N "checking for sa_len in struct sockaddr... $ECHO_C" >&6; }
38594 if test "${ac_cv_type_struct_sockaddr_sa_len+set}" = set; then
38595   echo $ECHO_N "(cached) $ECHO_C" >&6
38596 else
38597
38598 cat >conftest.$ac_ext <<_ACEOF
38599 /* confdefs.h.  */
38600 _ACEOF
38601 cat confdefs.h >>conftest.$ac_ext
38602 cat >>conftest.$ac_ext <<_ACEOF
38603 /* end confdefs.h.  */
38604 #include <sys/types.h>
38605 #include <sys/socket.h>
38606 int
38607 main ()
38608 {
38609 struct sockaddr x; memset(&x, 0, sizeof(x)); x.sa_len
38610   ;
38611   return 0;
38612 }
38613 _ACEOF
38614 rm -f conftest.$ac_objext
38615 if { (ac_try="$ac_compile"
38616 case "(($ac_try" in
38617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38618   *) ac_try_echo=$ac_try;;
38619 esac
38620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38621   (eval "$ac_compile") 2>conftest.er1
38622   ac_status=$?
38623   grep -v '^ *+' conftest.er1 >conftest.err
38624   rm -f conftest.er1
38625   cat conftest.err >&5
38626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38627   (exit $ac_status); } && {
38628          test -z "$ac_c_werror_flag" ||
38629          test ! -s conftest.err
38630        } && test -s conftest.$ac_objext; then
38631   ac_cv_type_struct_sockaddr_sa_len=yes
38632 else
38633   echo "$as_me: failed program was:" >&5
38634 sed 's/^/| /' conftest.$ac_ext >&5
38635
38636         ac_cv_type_struct_sockaddr_sa_len=no
38637 fi
38638
38639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38640
38641 fi
38642 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_sa_len" >&5
38643 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_sa_len" >&6; }
38644 if test "$ac_cv_type_struct_sockaddr_sa_len" = yes; then
38645
38646
38647 cat >>confdefs.h <<\_ACEOF
38648 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
38649 _ACEOF
38650
38651
38652 fi
38653
38654
38655
38656 if test "$ac_cv_func_getaddrinfo" = "yes"; then
38657
38658 { echo "$as_me:$LINENO: checking if getaddrinfo handles numeric services" >&5
38659 echo $ECHO_N "checking if getaddrinfo handles numeric services... $ECHO_C" >&6; }
38660 if test "${ac_cv_func_getaddrinfo_numserv+set}" = set; then
38661   echo $ECHO_N "(cached) $ECHO_C" >&6
38662 else
38663   if test "$cross_compiling" = yes; then
38664   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
38665 See \`config.log' for more details." >&5
38666 echo "$as_me: error: cannot run test program while cross compiling
38667 See \`config.log' for more details." >&2;}
38668    { (exit 1); exit 1; }; }
38669 else
38670   cat >conftest.$ac_ext <<_ACEOF
38671 /* confdefs.h.  */
38672 _ACEOF
38673 cat confdefs.h >>conftest.$ac_ext
38674 cat >>conftest.$ac_ext <<_ACEOF
38675 /* end confdefs.h.  */
38676 #include <stdio.h>
38677 #include <sys/types.h>
38678 #include <sys/socket.h>
38679 #include <netdb.h>
38680
38681 int
38682 main(int argc, char **argv)
38683 {
38684         struct addrinfo hints, *ai;
38685         memset(&hints, 0, sizeof(hints));
38686         hints.ai_flags = AI_PASSIVE;
38687         hints.ai_socktype = SOCK_STREAM;
38688         hints.ai_family = PF_UNSPEC;
38689         if(getaddrinfo(NULL, "17", &hints, &ai) != 0)
38690                 return 1;
38691         if(getaddrinfo(NULL, "0", &hints, &ai) != 0)
38692                 return 1;
38693         return 0;
38694 }
38695
38696 _ACEOF
38697 rm -f conftest$ac_exeext
38698 if { (ac_try="$ac_link"
38699 case "(($ac_try" in
38700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38701   *) ac_try_echo=$ac_try;;
38702 esac
38703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38704   (eval "$ac_link") 2>&5
38705   ac_status=$?
38706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38707   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38708   { (case "(($ac_try" in
38709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38710   *) ac_try_echo=$ac_try;;
38711 esac
38712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38713   (eval "$ac_try") 2>&5
38714   ac_status=$?
38715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38716   (exit $ac_status); }; }; then
38717   ac_cv_func_getaddrinfo_numserv=yes
38718 else
38719   echo "$as_me: program exited with status $ac_status" >&5
38720 echo "$as_me: failed program was:" >&5
38721 sed 's/^/| /' conftest.$ac_ext >&5
38722
38723 ( exit $ac_status )
38724 ac_cv_func_getaddrinfo_numserv=no
38725 fi
38726 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
38727 fi
38728
38729
38730 fi
38731 { echo "$as_me:$LINENO: result: $ac_cv_func_getaddrinfo_numserv" >&5
38732 echo "${ECHO_T}$ac_cv_func_getaddrinfo_numserv" >&6; }
38733   if test "$ac_cv_func_getaddrinfo_numserv" = no; then
38734         case " $LIBOBJS " in
38735   *" getaddrinfo.$ac_objext "* ) ;;
38736   *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
38737  ;;
38738 esac
38739
38740         case " $LIBOBJS " in
38741   *" freeaddrinfo.$ac_objext "* ) ;;
38742   *) LIBOBJS="$LIBOBJS freeaddrinfo.$ac_objext"
38743  ;;
38744 esac
38745
38746   fi
38747 fi
38748
38749
38750 if test "$ac_cv_func_setenv+set" != set -o "$ac_cv_func_setenv" = yes; then
38751 { echo "$as_me:$LINENO: checking if setenv needs a prototype" >&5
38752 echo $ECHO_N "checking if setenv needs a prototype... $ECHO_C" >&6; }
38753 if test "${ac_cv_func_setenv_noproto+set}" = set; then
38754   echo $ECHO_N "(cached) $ECHO_C" >&6
38755 else
38756   cat >conftest.$ac_ext <<_ACEOF
38757 /* confdefs.h.  */
38758 _ACEOF
38759 cat confdefs.h >>conftest.$ac_ext
38760 cat >>conftest.$ac_ext <<_ACEOF
38761 /* end confdefs.h.  */
38762 #include <stdlib.h>
38763 struct foo { int foo; } xx;
38764 extern int setenv (struct foo*);
38765 int
38766 main ()
38767 {
38768 setenv(&xx)
38769   ;
38770   return 0;
38771 }
38772 _ACEOF
38773 rm -f conftest.$ac_objext
38774 if { (ac_try="$ac_compile"
38775 case "(($ac_try" in
38776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38777   *) ac_try_echo=$ac_try;;
38778 esac
38779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38780   (eval "$ac_compile") 2>conftest.er1
38781   ac_status=$?
38782   grep -v '^ *+' conftest.er1 >conftest.err
38783   rm -f conftest.er1
38784   cat conftest.err >&5
38785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38786   (exit $ac_status); } && {
38787          test -z "$ac_c_werror_flag" ||
38788          test ! -s conftest.err
38789        } && test -s conftest.$ac_objext; then
38790   eval "ac_cv_func_setenv_noproto=yes"
38791 else
38792   echo "$as_me: failed program was:" >&5
38793 sed 's/^/| /' conftest.$ac_ext >&5
38794
38795         eval "ac_cv_func_setenv_noproto=no"
38796 fi
38797
38798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38799 fi
38800 { echo "$as_me:$LINENO: result: $ac_cv_func_setenv_noproto" >&5
38801 echo "${ECHO_T}$ac_cv_func_setenv_noproto" >&6; }
38802 if test "$ac_cv_func_setenv_noproto" = yes; then
38803
38804 cat >>confdefs.h <<\_ACEOF
38805 #define NEED_SETENV_PROTO 1
38806 _ACEOF
38807
38808 fi
38809 fi
38810
38811
38812 if test "$ac_cv_func_unsetenv+set" != set -o "$ac_cv_func_unsetenv" = yes; then
38813 { echo "$as_me:$LINENO: checking if unsetenv needs a prototype" >&5
38814 echo $ECHO_N "checking if unsetenv needs a prototype... $ECHO_C" >&6; }
38815 if test "${ac_cv_func_unsetenv_noproto+set}" = set; then
38816   echo $ECHO_N "(cached) $ECHO_C" >&6
38817 else
38818   cat >conftest.$ac_ext <<_ACEOF
38819 /* confdefs.h.  */
38820 _ACEOF
38821 cat confdefs.h >>conftest.$ac_ext
38822 cat >>conftest.$ac_ext <<_ACEOF
38823 /* end confdefs.h.  */
38824 #include <stdlib.h>
38825 struct foo { int foo; } xx;
38826 extern int unsetenv (struct foo*);
38827 int
38828 main ()
38829 {
38830 unsetenv(&xx)
38831   ;
38832   return 0;
38833 }
38834 _ACEOF
38835 rm -f conftest.$ac_objext
38836 if { (ac_try="$ac_compile"
38837 case "(($ac_try" in
38838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38839   *) ac_try_echo=$ac_try;;
38840 esac
38841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38842   (eval "$ac_compile") 2>conftest.er1
38843   ac_status=$?
38844   grep -v '^ *+' conftest.er1 >conftest.err
38845   rm -f conftest.er1
38846   cat conftest.err >&5
38847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38848   (exit $ac_status); } && {
38849          test -z "$ac_c_werror_flag" ||
38850          test ! -s conftest.err
38851        } && test -s conftest.$ac_objext; then
38852   eval "ac_cv_func_unsetenv_noproto=yes"
38853 else
38854   echo "$as_me: failed program was:" >&5
38855 sed 's/^/| /' conftest.$ac_ext >&5
38856
38857         eval "ac_cv_func_unsetenv_noproto=no"
38858 fi
38859
38860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38861 fi
38862 { echo "$as_me:$LINENO: result: $ac_cv_func_unsetenv_noproto" >&5
38863 echo "${ECHO_T}$ac_cv_func_unsetenv_noproto" >&6; }
38864 if test "$ac_cv_func_unsetenv_noproto" = yes; then
38865
38866 cat >>confdefs.h <<\_ACEOF
38867 #define NEED_UNSETENV_PROTO 1
38868 _ACEOF
38869
38870 fi
38871 fi
38872
38873
38874 if test "$ac_cv_func_gethostname+set" != set -o "$ac_cv_func_gethostname" = yes; then
38875 { echo "$as_me:$LINENO: checking if gethostname needs a prototype" >&5
38876 echo $ECHO_N "checking if gethostname needs a prototype... $ECHO_C" >&6; }
38877 if test "${ac_cv_func_gethostname_noproto+set}" = set; then
38878   echo $ECHO_N "(cached) $ECHO_C" >&6
38879 else
38880   cat >conftest.$ac_ext <<_ACEOF
38881 /* confdefs.h.  */
38882 _ACEOF
38883 cat confdefs.h >>conftest.$ac_ext
38884 cat >>conftest.$ac_ext <<_ACEOF
38885 /* end confdefs.h.  */
38886 #include <unistd.h>
38887 struct foo { int foo; } xx;
38888 extern int gethostname (struct foo*);
38889 int
38890 main ()
38891 {
38892 gethostname(&xx)
38893   ;
38894   return 0;
38895 }
38896 _ACEOF
38897 rm -f conftest.$ac_objext
38898 if { (ac_try="$ac_compile"
38899 case "(($ac_try" in
38900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38901   *) ac_try_echo=$ac_try;;
38902 esac
38903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38904   (eval "$ac_compile") 2>conftest.er1
38905   ac_status=$?
38906   grep -v '^ *+' conftest.er1 >conftest.err
38907   rm -f conftest.er1
38908   cat conftest.err >&5
38909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38910   (exit $ac_status); } && {
38911          test -z "$ac_c_werror_flag" ||
38912          test ! -s conftest.err
38913        } && test -s conftest.$ac_objext; then
38914   eval "ac_cv_func_gethostname_noproto=yes"
38915 else
38916   echo "$as_me: failed program was:" >&5
38917 sed 's/^/| /' conftest.$ac_ext >&5
38918
38919         eval "ac_cv_func_gethostname_noproto=no"
38920 fi
38921
38922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38923 fi
38924 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostname_noproto" >&5
38925 echo "${ECHO_T}$ac_cv_func_gethostname_noproto" >&6; }
38926 if test "$ac_cv_func_gethostname_noproto" = yes; then
38927
38928 cat >>confdefs.h <<\_ACEOF
38929 #define NEED_GETHOSTNAME_PROTO 1
38930 _ACEOF
38931
38932 fi
38933 fi
38934
38935
38936 if test "$ac_cv_func_mkstemp+set" != set -o "$ac_cv_func_mkstemp" = yes; then
38937 { echo "$as_me:$LINENO: checking if mkstemp needs a prototype" >&5
38938 echo $ECHO_N "checking if mkstemp needs a prototype... $ECHO_C" >&6; }
38939 if test "${ac_cv_func_mkstemp_noproto+set}" = set; then
38940   echo $ECHO_N "(cached) $ECHO_C" >&6
38941 else
38942   cat >conftest.$ac_ext <<_ACEOF
38943 /* confdefs.h.  */
38944 _ACEOF
38945 cat confdefs.h >>conftest.$ac_ext
38946 cat >>conftest.$ac_ext <<_ACEOF
38947 /* end confdefs.h.  */
38948 #include <unistd.h>
38949 struct foo { int foo; } xx;
38950 extern int mkstemp (struct foo*);
38951 int
38952 main ()
38953 {
38954 mkstemp(&xx)
38955   ;
38956   return 0;
38957 }
38958 _ACEOF
38959 rm -f conftest.$ac_objext
38960 if { (ac_try="$ac_compile"
38961 case "(($ac_try" in
38962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38963   *) ac_try_echo=$ac_try;;
38964 esac
38965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38966   (eval "$ac_compile") 2>conftest.er1
38967   ac_status=$?
38968   grep -v '^ *+' conftest.er1 >conftest.err
38969   rm -f conftest.er1
38970   cat conftest.err >&5
38971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38972   (exit $ac_status); } && {
38973          test -z "$ac_c_werror_flag" ||
38974          test ! -s conftest.err
38975        } && test -s conftest.$ac_objext; then
38976   eval "ac_cv_func_mkstemp_noproto=yes"
38977 else
38978   echo "$as_me: failed program was:" >&5
38979 sed 's/^/| /' conftest.$ac_ext >&5
38980
38981         eval "ac_cv_func_mkstemp_noproto=no"
38982 fi
38983
38984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38985 fi
38986 { echo "$as_me:$LINENO: result: $ac_cv_func_mkstemp_noproto" >&5
38987 echo "${ECHO_T}$ac_cv_func_mkstemp_noproto" >&6; }
38988 if test "$ac_cv_func_mkstemp_noproto" = yes; then
38989
38990 cat >>confdefs.h <<\_ACEOF
38991 #define NEED_MKSTEMP_PROTO 1
38992 _ACEOF
38993
38994 fi
38995 fi
38996
38997
38998 if test "$ac_cv_func_getusershell+set" != set -o "$ac_cv_func_getusershell" = yes; then
38999 { echo "$as_me:$LINENO: checking if getusershell needs a prototype" >&5
39000 echo $ECHO_N "checking if getusershell needs a prototype... $ECHO_C" >&6; }
39001 if test "${ac_cv_func_getusershell_noproto+set}" = set; then
39002   echo $ECHO_N "(cached) $ECHO_C" >&6
39003 else
39004   cat >conftest.$ac_ext <<_ACEOF
39005 /* confdefs.h.  */
39006 _ACEOF
39007 cat confdefs.h >>conftest.$ac_ext
39008 cat >>conftest.$ac_ext <<_ACEOF
39009 /* end confdefs.h.  */
39010 #include <unistd.h>
39011 struct foo { int foo; } xx;
39012 extern int getusershell (struct foo*);
39013 int
39014 main ()
39015 {
39016 getusershell(&xx)
39017   ;
39018   return 0;
39019 }
39020 _ACEOF
39021 rm -f conftest.$ac_objext
39022 if { (ac_try="$ac_compile"
39023 case "(($ac_try" in
39024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39025   *) ac_try_echo=$ac_try;;
39026 esac
39027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39028   (eval "$ac_compile") 2>conftest.er1
39029   ac_status=$?
39030   grep -v '^ *+' conftest.er1 >conftest.err
39031   rm -f conftest.er1
39032   cat conftest.err >&5
39033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39034   (exit $ac_status); } && {
39035          test -z "$ac_c_werror_flag" ||
39036          test ! -s conftest.err
39037        } && test -s conftest.$ac_objext; then
39038   eval "ac_cv_func_getusershell_noproto=yes"
39039 else
39040   echo "$as_me: failed program was:" >&5
39041 sed 's/^/| /' conftest.$ac_ext >&5
39042
39043         eval "ac_cv_func_getusershell_noproto=no"
39044 fi
39045
39046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39047 fi
39048 { echo "$as_me:$LINENO: result: $ac_cv_func_getusershell_noproto" >&5
39049 echo "${ECHO_T}$ac_cv_func_getusershell_noproto" >&6; }
39050 if test "$ac_cv_func_getusershell_noproto" = yes; then
39051
39052 cat >>confdefs.h <<\_ACEOF
39053 #define NEED_GETUSERSHELL_PROTO 1
39054 _ACEOF
39055
39056 fi
39057 fi
39058
39059
39060 if test "$ac_cv_func_daemon+set" != set -o "$ac_cv_func_daemon" = yes; then
39061 { echo "$as_me:$LINENO: checking if daemon needs a prototype" >&5
39062 echo $ECHO_N "checking if daemon needs a prototype... $ECHO_C" >&6; }
39063 if test "${ac_cv_func_daemon_noproto+set}" = set; then
39064   echo $ECHO_N "(cached) $ECHO_C" >&6
39065 else
39066   cat >conftest.$ac_ext <<_ACEOF
39067 /* confdefs.h.  */
39068 _ACEOF
39069 cat confdefs.h >>conftest.$ac_ext
39070 cat >>conftest.$ac_ext <<_ACEOF
39071 /* end confdefs.h.  */
39072 #include <unistd.h>
39073 struct foo { int foo; } xx;
39074 extern int daemon (struct foo*);
39075 int
39076 main ()
39077 {
39078 daemon(&xx)
39079   ;
39080   return 0;
39081 }
39082 _ACEOF
39083 rm -f conftest.$ac_objext
39084 if { (ac_try="$ac_compile"
39085 case "(($ac_try" in
39086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39087   *) ac_try_echo=$ac_try;;
39088 esac
39089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39090   (eval "$ac_compile") 2>conftest.er1
39091   ac_status=$?
39092   grep -v '^ *+' conftest.er1 >conftest.err
39093   rm -f conftest.er1
39094   cat conftest.err >&5
39095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39096   (exit $ac_status); } && {
39097          test -z "$ac_c_werror_flag" ||
39098          test ! -s conftest.err
39099        } && test -s conftest.$ac_objext; then
39100   eval "ac_cv_func_daemon_noproto=yes"
39101 else
39102   echo "$as_me: failed program was:" >&5
39103 sed 's/^/| /' conftest.$ac_ext >&5
39104
39105         eval "ac_cv_func_daemon_noproto=no"
39106 fi
39107
39108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39109 fi
39110 { echo "$as_me:$LINENO: result: $ac_cv_func_daemon_noproto" >&5
39111 echo "${ECHO_T}$ac_cv_func_daemon_noproto" >&6; }
39112 if test "$ac_cv_func_daemon_noproto" = yes; then
39113
39114 cat >>confdefs.h <<\_ACEOF
39115 #define NEED_DAEMON_PROTO 1
39116 _ACEOF
39117
39118 fi
39119 fi
39120
39121
39122 if test "$ac_cv_func_iruserok+set" != set -o "$ac_cv_func_iruserok" = yes; then
39123 { echo "$as_me:$LINENO: checking if iruserok needs a prototype" >&5
39124 echo $ECHO_N "checking if iruserok needs a prototype... $ECHO_C" >&6; }
39125 if test "${ac_cv_func_iruserok_noproto+set}" = set; then
39126   echo $ECHO_N "(cached) $ECHO_C" >&6
39127 else
39128   cat >conftest.$ac_ext <<_ACEOF
39129 /* confdefs.h.  */
39130 _ACEOF
39131 cat confdefs.h >>conftest.$ac_ext
39132 cat >>conftest.$ac_ext <<_ACEOF
39133 /* end confdefs.h.  */
39134
39135 #ifdef HAVE_SYS_TYPES_H
39136 #include <sys/types.h>
39137 #endif
39138 #ifdef HAVE_SYS_SOCKET_H
39139 #include <sys/socket.h>
39140 #endif
39141 #ifdef HAVE_NETINET_IN_H
39142 #include <netinet/in.h>
39143 #endif
39144 #ifdef HAVE_ARPA_INET_H
39145 #include <arpa/inet.h>
39146 #endif
39147 #ifdef HAVE_NETDB_H
39148 #include <netdb.h>
39149 #endif
39150 #ifdef HAVE_UNISTD_H
39151 #include <unistd.h>
39152 #endif
39153 struct foo { int foo; } xx;
39154 extern int iruserok (struct foo*);
39155 int
39156 main ()
39157 {
39158 iruserok(&xx)
39159   ;
39160   return 0;
39161 }
39162 _ACEOF
39163 rm -f conftest.$ac_objext
39164 if { (ac_try="$ac_compile"
39165 case "(($ac_try" in
39166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39167   *) ac_try_echo=$ac_try;;
39168 esac
39169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39170   (eval "$ac_compile") 2>conftest.er1
39171   ac_status=$?
39172   grep -v '^ *+' conftest.er1 >conftest.err
39173   rm -f conftest.er1
39174   cat conftest.err >&5
39175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39176   (exit $ac_status); } && {
39177          test -z "$ac_c_werror_flag" ||
39178          test ! -s conftest.err
39179        } && test -s conftest.$ac_objext; then
39180   eval "ac_cv_func_iruserok_noproto=yes"
39181 else
39182   echo "$as_me: failed program was:" >&5
39183 sed 's/^/| /' conftest.$ac_ext >&5
39184
39185         eval "ac_cv_func_iruserok_noproto=no"
39186 fi
39187
39188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39189 fi
39190 { echo "$as_me:$LINENO: result: $ac_cv_func_iruserok_noproto" >&5
39191 echo "${ECHO_T}$ac_cv_func_iruserok_noproto" >&6; }
39192 if test "$ac_cv_func_iruserok_noproto" = yes; then
39193
39194 cat >>confdefs.h <<\_ACEOF
39195 #define NEED_IRUSEROK_PROTO 1
39196 _ACEOF
39197
39198 fi
39199 fi
39200
39201
39202
39203 if test "$ac_cv_func_inet_aton+set" != set -o "$ac_cv_func_inet_aton" = yes; then
39204 { echo "$as_me:$LINENO: checking if inet_aton needs a prototype" >&5
39205 echo $ECHO_N "checking if inet_aton needs a prototype... $ECHO_C" >&6; }
39206 if test "${ac_cv_func_inet_aton_noproto+set}" = set; then
39207   echo $ECHO_N "(cached) $ECHO_C" >&6
39208 else
39209   cat >conftest.$ac_ext <<_ACEOF
39210 /* confdefs.h.  */
39211 _ACEOF
39212 cat confdefs.h >>conftest.$ac_ext
39213 cat >>conftest.$ac_ext <<_ACEOF
39214 /* end confdefs.h.  */
39215
39216 #ifdef HAVE_SYS_TYPES_H
39217 #include <sys/types.h>
39218 #endif
39219 #ifdef HAVE_SYS_SOCKET_H
39220 #include <sys/socket.h>
39221 #endif
39222 #ifdef HAVE_NETINET_IN_H
39223 #include <netinet/in.h>
39224 #endif
39225 #ifdef HAVE_ARPA_INET_H
39226 #include <arpa/inet.h>
39227 #endif
39228 struct foo { int foo; } xx;
39229 extern int inet_aton (struct foo*);
39230 int
39231 main ()
39232 {
39233 inet_aton(&xx)
39234   ;
39235   return 0;
39236 }
39237 _ACEOF
39238 rm -f conftest.$ac_objext
39239 if { (ac_try="$ac_compile"
39240 case "(($ac_try" in
39241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39242   *) ac_try_echo=$ac_try;;
39243 esac
39244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39245   (eval "$ac_compile") 2>conftest.er1
39246   ac_status=$?
39247   grep -v '^ *+' conftest.er1 >conftest.err
39248   rm -f conftest.er1
39249   cat conftest.err >&5
39250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39251   (exit $ac_status); } && {
39252          test -z "$ac_c_werror_flag" ||
39253          test ! -s conftest.err
39254        } && test -s conftest.$ac_objext; then
39255   eval "ac_cv_func_inet_aton_noproto=yes"
39256 else
39257   echo "$as_me: failed program was:" >&5
39258 sed 's/^/| /' conftest.$ac_ext >&5
39259
39260         eval "ac_cv_func_inet_aton_noproto=no"
39261 fi
39262
39263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39264 fi
39265 { echo "$as_me:$LINENO: result: $ac_cv_func_inet_aton_noproto" >&5
39266 echo "${ECHO_T}$ac_cv_func_inet_aton_noproto" >&6; }
39267 if test "$ac_cv_func_inet_aton_noproto" = yes; then
39268
39269 cat >>confdefs.h <<\_ACEOF
39270 #define NEED_INET_ATON_PROTO 1
39271 _ACEOF
39272
39273 fi
39274 fi
39275
39276
39277
39278
39279
39280 { echo "$as_me:$LINENO: checking for crypt" >&5
39281 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
39282 if test "${ac_cv_funclib_crypt+set}" = set; then
39283   echo $ECHO_N "(cached) $ECHO_C" >&6
39284 else
39285
39286 if eval "test \"\$ac_cv_func_crypt\" != yes" ; then
39287         ac_save_LIBS="$LIBS"
39288         for ac_lib in "" crypt; do
39289                 case "$ac_lib" in
39290                 "") ;;
39291                 yes) ac_lib="" ;;
39292                 no) continue ;;
39293                 -l*) ;;
39294                 *) ac_lib="-l$ac_lib" ;;
39295                 esac
39296                 LIBS=" $ac_lib  $ac_save_LIBS"
39297                 cat >conftest.$ac_ext <<_ACEOF
39298 /* confdefs.h.  */
39299 _ACEOF
39300 cat confdefs.h >>conftest.$ac_ext
39301 cat >>conftest.$ac_ext <<_ACEOF
39302 /* end confdefs.h.  */
39303
39304 int
39305 main ()
39306 {
39307 crypt()
39308   ;
39309   return 0;
39310 }
39311 _ACEOF
39312 rm -f conftest.$ac_objext conftest$ac_exeext
39313 if { (ac_try="$ac_link"
39314 case "(($ac_try" in
39315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39316   *) ac_try_echo=$ac_try;;
39317 esac
39318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39319   (eval "$ac_link") 2>conftest.er1
39320   ac_status=$?
39321   grep -v '^ *+' conftest.er1 >conftest.err
39322   rm -f conftest.er1
39323   cat conftest.err >&5
39324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39325   (exit $ac_status); } && {
39326          test -z "$ac_c_werror_flag" ||
39327          test ! -s conftest.err
39328        } && test -s conftest$ac_exeext &&
39329        $as_test_x conftest$ac_exeext; then
39330   eval "if test -n \"$ac_lib\";then ac_cv_funclib_crypt=$ac_lib; else ac_cv_funclib_crypt=yes; fi";break
39331 else
39332   echo "$as_me: failed program was:" >&5
39333 sed 's/^/| /' conftest.$ac_ext >&5
39334
39335
39336 fi
39337
39338 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39339       conftest$ac_exeext conftest.$ac_ext
39340         done
39341         eval "ac_cv_funclib_crypt=\${ac_cv_funclib_crypt-no}"
39342         LIBS="$ac_save_LIBS"
39343 fi
39344
39345 fi
39346
39347
39348 eval "ac_res=\$ac_cv_funclib_crypt"
39349
39350 if false; then
39351
39352 for ac_func in crypt
39353 do
39354 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39355 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39356 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39357 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39358   echo $ECHO_N "(cached) $ECHO_C" >&6
39359 else
39360   cat >conftest.$ac_ext <<_ACEOF
39361 /* confdefs.h.  */
39362 _ACEOF
39363 cat confdefs.h >>conftest.$ac_ext
39364 cat >>conftest.$ac_ext <<_ACEOF
39365 /* end confdefs.h.  */
39366 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39367    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39368 #define $ac_func innocuous_$ac_func
39369
39370 /* System header to define __stub macros and hopefully few prototypes,
39371     which can conflict with char $ac_func (); below.
39372     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39373     <limits.h> exists even on freestanding compilers.  */
39374
39375 #ifdef __STDC__
39376 # include <limits.h>
39377 #else
39378 # include <assert.h>
39379 #endif
39380
39381 #undef $ac_func
39382
39383 /* Override any GCC internal prototype to avoid an error.
39384    Use char because int might match the return type of a GCC
39385    builtin and then its argument prototype would still apply.  */
39386 #ifdef __cplusplus
39387 extern "C"
39388 #endif
39389 char $ac_func ();
39390 /* The GNU C library defines this for functions which it implements
39391     to always fail with ENOSYS.  Some functions are actually named
39392     something starting with __ and the normal name is an alias.  */
39393 #if defined __stub_$ac_func || defined __stub___$ac_func
39394 choke me
39395 #endif
39396
39397 int
39398 main ()
39399 {
39400 return $ac_func ();
39401   ;
39402   return 0;
39403 }
39404 _ACEOF
39405 rm -f conftest.$ac_objext conftest$ac_exeext
39406 if { (ac_try="$ac_link"
39407 case "(($ac_try" in
39408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39409   *) ac_try_echo=$ac_try;;
39410 esac
39411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39412   (eval "$ac_link") 2>conftest.er1
39413   ac_status=$?
39414   grep -v '^ *+' conftest.er1 >conftest.err
39415   rm -f conftest.er1
39416   cat conftest.err >&5
39417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39418   (exit $ac_status); } && {
39419          test -z "$ac_c_werror_flag" ||
39420          test ! -s conftest.err
39421        } && test -s conftest$ac_exeext &&
39422        $as_test_x conftest$ac_exeext; then
39423   eval "$as_ac_var=yes"
39424 else
39425   echo "$as_me: failed program was:" >&5
39426 sed 's/^/| /' conftest.$ac_ext >&5
39427
39428         eval "$as_ac_var=no"
39429 fi
39430
39431 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39432       conftest$ac_exeext conftest.$ac_ext
39433 fi
39434 ac_res=`eval echo '${'$as_ac_var'}'`
39435                { echo "$as_me:$LINENO: result: $ac_res" >&5
39436 echo "${ECHO_T}$ac_res" >&6; }
39437 if test `eval echo '${'$as_ac_var'}'` = yes; then
39438   cat >>confdefs.h <<_ACEOF
39439 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39440 _ACEOF
39441
39442 fi
39443 done
39444
39445 fi
39446 # crypt
39447 eval "ac_tr_func=HAVE_`echo crypt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
39448 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
39449 eval "LIB_crypt=$ac_res"
39450
39451 case "$ac_res" in
39452         yes)
39453         eval "ac_cv_func_crypt=yes"
39454         eval "LIB_crypt="
39455         cat >>confdefs.h <<_ACEOF
39456 #define $ac_tr_func 1
39457 _ACEOF
39458
39459         { echo "$as_me:$LINENO: result: yes" >&5
39460 echo "${ECHO_T}yes" >&6; }
39461         ;;
39462         no)
39463         eval "ac_cv_func_crypt=no"
39464         eval "LIB_crypt="
39465         { echo "$as_me:$LINENO: result: no" >&5
39466 echo "${ECHO_T}no" >&6; }
39467         ;;
39468         *)
39469         eval "ac_cv_func_crypt=yes"
39470         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
39471         cat >>confdefs.h <<_ACEOF
39472 #define $ac_tr_func 1
39473 _ACEOF
39474
39475         cat >>confdefs.h <<_ACEOF
39476 #define $ac_tr_lib 1
39477 _ACEOF
39478
39479         { echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
39480 echo "${ECHO_T}yes, in $ac_res" >&6; }
39481         ;;
39482 esac
39483
39484
39485
39486
39487
39488
39489 { echo "$as_me:$LINENO: checking if gethostbyname is compatible with system prototype" >&5
39490 echo $ECHO_N "checking if gethostbyname is compatible with system prototype... $ECHO_C" >&6; }
39491 if test "${ac_cv_func_gethostbyname_proto_compat+set}" = set; then
39492   echo $ECHO_N "(cached) $ECHO_C" >&6
39493 else
39494   cat >conftest.$ac_ext <<_ACEOF
39495 /* confdefs.h.  */
39496 _ACEOF
39497 cat confdefs.h >>conftest.$ac_ext
39498 cat >>conftest.$ac_ext <<_ACEOF
39499 /* end confdefs.h.  */
39500
39501 #ifdef HAVE_SYS_TYPES_H
39502 #include <sys/types.h>
39503 #endif
39504 #ifdef HAVE_SYS_SOCKET_H
39505 #include <sys/socket.h>
39506 #endif
39507 #ifdef HAVE_NETINET_IN_H
39508 #include <netinet/in.h>
39509 #endif
39510 #ifdef HAVE_ARPA_INET_H
39511 #include <arpa/inet.h>
39512 #endif
39513 #ifdef HAVE_NETDB_H
39514 #include <netdb.h>
39515 #endif
39516
39517 int
39518 main ()
39519 {
39520 struct hostent *gethostbyname(const char *)
39521   ;
39522   return 0;
39523 }
39524 _ACEOF
39525 rm -f conftest.$ac_objext
39526 if { (ac_try="$ac_compile"
39527 case "(($ac_try" in
39528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39529   *) ac_try_echo=$ac_try;;
39530 esac
39531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39532   (eval "$ac_compile") 2>conftest.er1
39533   ac_status=$?
39534   grep -v '^ *+' conftest.er1 >conftest.err
39535   rm -f conftest.er1
39536   cat conftest.err >&5
39537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39538   (exit $ac_status); } && {
39539          test -z "$ac_c_werror_flag" ||
39540          test ! -s conftest.err
39541        } && test -s conftest.$ac_objext; then
39542   eval "ac_cv_func_gethostbyname_proto_compat=yes"
39543 else
39544   echo "$as_me: failed program was:" >&5
39545 sed 's/^/| /' conftest.$ac_ext >&5
39546
39547         eval "ac_cv_func_gethostbyname_proto_compat=no"
39548 fi
39549
39550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39551 fi
39552 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_proto_compat" >&5
39553 echo "${ECHO_T}$ac_cv_func_gethostbyname_proto_compat" >&6; }
39554
39555 if test "$ac_cv_func_gethostbyname_proto_compat" = yes; then
39556
39557 cat >>confdefs.h <<\_ACEOF
39558 #define GETHOSTBYNAME_PROTO_COMPATIBLE 1
39559 _ACEOF
39560
39561 fi
39562
39563
39564
39565
39566 { echo "$as_me:$LINENO: checking if gethostbyaddr is compatible with system prototype" >&5
39567 echo $ECHO_N "checking if gethostbyaddr is compatible with system prototype... $ECHO_C" >&6; }
39568 if test "${ac_cv_func_gethostbyaddr_proto_compat+set}" = set; then
39569   echo $ECHO_N "(cached) $ECHO_C" >&6
39570 else
39571   cat >conftest.$ac_ext <<_ACEOF
39572 /* confdefs.h.  */
39573 _ACEOF
39574 cat confdefs.h >>conftest.$ac_ext
39575 cat >>conftest.$ac_ext <<_ACEOF
39576 /* end confdefs.h.  */
39577
39578 #ifdef HAVE_SYS_TYPES_H
39579 #include <sys/types.h>
39580 #endif
39581 #ifdef HAVE_SYS_SOCKET_H
39582 #include <sys/socket.h>
39583 #endif
39584 #ifdef HAVE_NETINET_IN_H
39585 #include <netinet/in.h>
39586 #endif
39587 #ifdef HAVE_ARPA_INET_H
39588 #include <arpa/inet.h>
39589 #endif
39590 #ifdef HAVE_NETDB_H
39591 #include <netdb.h>
39592 #endif
39593
39594 int
39595 main ()
39596 {
39597 struct hostent *gethostbyaddr(const void *, size_t, int)
39598   ;
39599   return 0;
39600 }
39601 _ACEOF
39602 rm -f conftest.$ac_objext
39603 if { (ac_try="$ac_compile"
39604 case "(($ac_try" in
39605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39606   *) ac_try_echo=$ac_try;;
39607 esac
39608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39609   (eval "$ac_compile") 2>conftest.er1
39610   ac_status=$?
39611   grep -v '^ *+' conftest.er1 >conftest.err
39612   rm -f conftest.er1
39613   cat conftest.err >&5
39614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39615   (exit $ac_status); } && {
39616          test -z "$ac_c_werror_flag" ||
39617          test ! -s conftest.err
39618        } && test -s conftest.$ac_objext; then
39619   eval "ac_cv_func_gethostbyaddr_proto_compat=yes"
39620 else
39621   echo "$as_me: failed program was:" >&5
39622 sed 's/^/| /' conftest.$ac_ext >&5
39623
39624         eval "ac_cv_func_gethostbyaddr_proto_compat=no"
39625 fi
39626
39627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39628 fi
39629 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyaddr_proto_compat" >&5
39630 echo "${ECHO_T}$ac_cv_func_gethostbyaddr_proto_compat" >&6; }
39631
39632 if test "$ac_cv_func_gethostbyaddr_proto_compat" = yes; then
39633
39634 cat >>confdefs.h <<\_ACEOF
39635 #define GETHOSTBYADDR_PROTO_COMPATIBLE 1
39636 _ACEOF
39637
39638 fi
39639
39640
39641
39642
39643 { echo "$as_me:$LINENO: checking if getservbyname is compatible with system prototype" >&5
39644 echo $ECHO_N "checking if getservbyname is compatible with system prototype... $ECHO_C" >&6; }
39645 if test "${ac_cv_func_getservbyname_proto_compat+set}" = set; then
39646   echo $ECHO_N "(cached) $ECHO_C" >&6
39647 else
39648   cat >conftest.$ac_ext <<_ACEOF
39649 /* confdefs.h.  */
39650 _ACEOF
39651 cat confdefs.h >>conftest.$ac_ext
39652 cat >>conftest.$ac_ext <<_ACEOF
39653 /* end confdefs.h.  */
39654
39655 #ifdef HAVE_SYS_TYPES_H
39656 #include <sys/types.h>
39657 #endif
39658 #ifdef HAVE_SYS_SOCKET_H
39659 #include <sys/socket.h>
39660 #endif
39661 #ifdef HAVE_NETINET_IN_H
39662 #include <netinet/in.h>
39663 #endif
39664 #ifdef HAVE_ARPA_INET_H
39665 #include <arpa/inet.h>
39666 #endif
39667 #ifdef HAVE_NETDB_H
39668 #include <netdb.h>
39669 #endif
39670
39671 int
39672 main ()
39673 {
39674 struct servent *getservbyname(const char *, const char *)
39675   ;
39676   return 0;
39677 }
39678 _ACEOF
39679 rm -f conftest.$ac_objext
39680 if { (ac_try="$ac_compile"
39681 case "(($ac_try" in
39682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39683   *) ac_try_echo=$ac_try;;
39684 esac
39685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39686   (eval "$ac_compile") 2>conftest.er1
39687   ac_status=$?
39688   grep -v '^ *+' conftest.er1 >conftest.err
39689   rm -f conftest.er1
39690   cat conftest.err >&5
39691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39692   (exit $ac_status); } && {
39693          test -z "$ac_c_werror_flag" ||
39694          test ! -s conftest.err
39695        } && test -s conftest.$ac_objext; then
39696   eval "ac_cv_func_getservbyname_proto_compat=yes"
39697 else
39698   echo "$as_me: failed program was:" >&5
39699 sed 's/^/| /' conftest.$ac_ext >&5
39700
39701         eval "ac_cv_func_getservbyname_proto_compat=no"
39702 fi
39703
39704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39705 fi
39706 { echo "$as_me:$LINENO: result: $ac_cv_func_getservbyname_proto_compat" >&5
39707 echo "${ECHO_T}$ac_cv_func_getservbyname_proto_compat" >&6; }
39708
39709 if test "$ac_cv_func_getservbyname_proto_compat" = yes; then
39710
39711 cat >>confdefs.h <<\_ACEOF
39712 #define GETSERVBYNAME_PROTO_COMPATIBLE 1
39713 _ACEOF
39714
39715 fi
39716
39717
39718
39719
39720 { echo "$as_me:$LINENO: checking if getsockname is compatible with system prototype" >&5
39721 echo $ECHO_N "checking if getsockname is compatible with system prototype... $ECHO_C" >&6; }
39722 if test "${ac_cv_func_getsockname_proto_compat+set}" = set; then
39723   echo $ECHO_N "(cached) $ECHO_C" >&6
39724 else
39725   cat >conftest.$ac_ext <<_ACEOF
39726 /* confdefs.h.  */
39727 _ACEOF
39728 cat confdefs.h >>conftest.$ac_ext
39729 cat >>conftest.$ac_ext <<_ACEOF
39730 /* end confdefs.h.  */
39731
39732 #ifdef HAVE_SYS_TYPES_H
39733 #include <sys/types.h>
39734 #endif
39735 #ifdef HAVE_SYS_SOCKET_H
39736 #include <sys/socket.h>
39737 #endif
39738
39739 int
39740 main ()
39741 {
39742 int getsockname(int, struct sockaddr*, socklen_t*)
39743   ;
39744   return 0;
39745 }
39746 _ACEOF
39747 rm -f conftest.$ac_objext
39748 if { (ac_try="$ac_compile"
39749 case "(($ac_try" in
39750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39751   *) ac_try_echo=$ac_try;;
39752 esac
39753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39754   (eval "$ac_compile") 2>conftest.er1
39755   ac_status=$?
39756   grep -v '^ *+' conftest.er1 >conftest.err
39757   rm -f conftest.er1
39758   cat conftest.err >&5
39759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39760   (exit $ac_status); } && {
39761          test -z "$ac_c_werror_flag" ||
39762          test ! -s conftest.err
39763        } && test -s conftest.$ac_objext; then
39764   eval "ac_cv_func_getsockname_proto_compat=yes"
39765 else
39766   echo "$as_me: failed program was:" >&5
39767 sed 's/^/| /' conftest.$ac_ext >&5
39768
39769         eval "ac_cv_func_getsockname_proto_compat=no"
39770 fi
39771
39772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39773 fi
39774 { echo "$as_me:$LINENO: result: $ac_cv_func_getsockname_proto_compat" >&5
39775 echo "${ECHO_T}$ac_cv_func_getsockname_proto_compat" >&6; }
39776
39777 if test "$ac_cv_func_getsockname_proto_compat" = yes; then
39778
39779 cat >>confdefs.h <<\_ACEOF
39780 #define GETSOCKNAME_PROTO_COMPATIBLE 1
39781 _ACEOF
39782
39783 fi
39784
39785
39786
39787
39788 { echo "$as_me:$LINENO: checking if openlog is compatible with system prototype" >&5
39789 echo $ECHO_N "checking if openlog is compatible with system prototype... $ECHO_C" >&6; }
39790 if test "${ac_cv_func_openlog_proto_compat+set}" = set; then
39791   echo $ECHO_N "(cached) $ECHO_C" >&6
39792 else
39793   cat >conftest.$ac_ext <<_ACEOF
39794 /* confdefs.h.  */
39795 _ACEOF
39796 cat confdefs.h >>conftest.$ac_ext
39797 cat >>conftest.$ac_ext <<_ACEOF
39798 /* end confdefs.h.  */
39799
39800 #ifdef HAVE_SYSLOG_H
39801 #include <syslog.h>
39802 #endif
39803
39804 int
39805 main ()
39806 {
39807 void openlog(const char *, int, int)
39808   ;
39809   return 0;
39810 }
39811 _ACEOF
39812 rm -f conftest.$ac_objext
39813 if { (ac_try="$ac_compile"
39814 case "(($ac_try" in
39815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39816   *) ac_try_echo=$ac_try;;
39817 esac
39818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39819   (eval "$ac_compile") 2>conftest.er1
39820   ac_status=$?
39821   grep -v '^ *+' conftest.er1 >conftest.err
39822   rm -f conftest.er1
39823   cat conftest.err >&5
39824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39825   (exit $ac_status); } && {
39826          test -z "$ac_c_werror_flag" ||
39827          test ! -s conftest.err
39828        } && test -s conftest.$ac_objext; then
39829   eval "ac_cv_func_openlog_proto_compat=yes"
39830 else
39831   echo "$as_me: failed program was:" >&5
39832 sed 's/^/| /' conftest.$ac_ext >&5
39833
39834         eval "ac_cv_func_openlog_proto_compat=no"
39835 fi
39836
39837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39838 fi
39839 { echo "$as_me:$LINENO: result: $ac_cv_func_openlog_proto_compat" >&5
39840 echo "${ECHO_T}$ac_cv_func_openlog_proto_compat" >&6; }
39841
39842 if test "$ac_cv_func_openlog_proto_compat" = yes; then
39843
39844 cat >>confdefs.h <<\_ACEOF
39845 #define OPENLOG_PROTO_COMPATIBLE 1
39846 _ACEOF
39847
39848 fi
39849
39850
39851
39852
39853 if test "$ac_cv_func_crypt+set" != set -o "$ac_cv_func_crypt" = yes; then
39854 { echo "$as_me:$LINENO: checking if crypt needs a prototype" >&5
39855 echo $ECHO_N "checking if crypt needs a prototype... $ECHO_C" >&6; }
39856 if test "${ac_cv_func_crypt_noproto+set}" = set; then
39857   echo $ECHO_N "(cached) $ECHO_C" >&6
39858 else
39859   cat >conftest.$ac_ext <<_ACEOF
39860 /* confdefs.h.  */
39861 _ACEOF
39862 cat confdefs.h >>conftest.$ac_ext
39863 cat >>conftest.$ac_ext <<_ACEOF
39864 /* end confdefs.h.  */
39865
39866 #ifdef HAVE_CRYPT_H
39867 #include <crypt.h>
39868 #endif
39869 #ifdef HAVE_UNISTD_H
39870 #include <unistd.h>
39871 #endif
39872
39873 struct foo { int foo; } xx;
39874 extern int crypt (struct foo*);
39875 int
39876 main ()
39877 {
39878 crypt(&xx)
39879   ;
39880   return 0;
39881 }
39882 _ACEOF
39883 rm -f conftest.$ac_objext
39884 if { (ac_try="$ac_compile"
39885 case "(($ac_try" in
39886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39887   *) ac_try_echo=$ac_try;;
39888 esac
39889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39890   (eval "$ac_compile") 2>conftest.er1
39891   ac_status=$?
39892   grep -v '^ *+' conftest.er1 >conftest.err
39893   rm -f conftest.er1
39894   cat conftest.err >&5
39895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39896   (exit $ac_status); } && {
39897          test -z "$ac_c_werror_flag" ||
39898          test ! -s conftest.err
39899        } && test -s conftest.$ac_objext; then
39900   eval "ac_cv_func_crypt_noproto=yes"
39901 else
39902   echo "$as_me: failed program was:" >&5
39903 sed 's/^/| /' conftest.$ac_ext >&5
39904
39905         eval "ac_cv_func_crypt_noproto=no"
39906 fi
39907
39908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39909 fi
39910 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt_noproto" >&5
39911 echo "${ECHO_T}$ac_cv_func_crypt_noproto" >&6; }
39912 if test "$ac_cv_func_crypt_noproto" = yes; then
39913
39914 cat >>confdefs.h <<\_ACEOF
39915 #define NEED_CRYPT_PROTO 1
39916 _ACEOF
39917
39918 fi
39919 fi
39920
39921
39922
39923
39924 { echo "$as_me:$LINENO: checking for h_errno" >&5
39925 echo $ECHO_N "checking for h_errno... $ECHO_C" >&6; }
39926 if test "${ac_cv_var_h_errno+set}" = set; then
39927   echo $ECHO_N "(cached) $ECHO_C" >&6
39928 else
39929
39930
39931         cat >conftest.$ac_ext <<_ACEOF
39932 /* confdefs.h.  */
39933 _ACEOF
39934 cat confdefs.h >>conftest.$ac_ext
39935 cat >>conftest.$ac_ext <<_ACEOF
39936 /* end confdefs.h.  */
39937 #ifdef HAVE_SYS_TYPES_H
39938 #include <sys/types.h>
39939 #endif
39940 #ifdef HAVE_NETDB_H
39941 #include <netdb.h>
39942 #endif
39943         void * foo(void) { return &h_errno; }
39944 int
39945 main ()
39946 {
39947 foo()
39948   ;
39949   return 0;
39950 }
39951 _ACEOF
39952 rm -f conftest.$ac_objext conftest$ac_exeext
39953 if { (ac_try="$ac_link"
39954 case "(($ac_try" in
39955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39956   *) ac_try_echo=$ac_try;;
39957 esac
39958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39959   (eval "$ac_link") 2>conftest.er1
39960   ac_status=$?
39961   grep -v '^ *+' conftest.er1 >conftest.err
39962   rm -f conftest.er1
39963   cat conftest.err >&5
39964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39965   (exit $ac_status); } && {
39966          test -z "$ac_c_werror_flag" ||
39967          test ! -s conftest.err
39968        } && test -s conftest$ac_exeext &&
39969        $as_test_x conftest$ac_exeext; then
39970   ac_cv_var_h_errno=yes
39971 else
39972   echo "$as_me: failed program was:" >&5
39973 sed 's/^/| /' conftest.$ac_ext >&5
39974
39975         ac_cv_var_h_errno=no
39976 fi
39977
39978 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39979       conftest$ac_exeext conftest.$ac_ext
39980 if test "$ac_cv_var_h_errno" != yes ; then
39981 cat >conftest.$ac_ext <<_ACEOF
39982 /* confdefs.h.  */
39983 _ACEOF
39984 cat confdefs.h >>conftest.$ac_ext
39985 cat >>conftest.$ac_ext <<_ACEOF
39986 /* end confdefs.h.  */
39987 extern int h_errno;
39988 int foo(void) { return h_errno; }
39989 int
39990 main ()
39991 {
39992 foo()
39993   ;
39994   return 0;
39995 }
39996 _ACEOF
39997 rm -f conftest.$ac_objext conftest$ac_exeext
39998 if { (ac_try="$ac_link"
39999 case "(($ac_try" in
40000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40001   *) ac_try_echo=$ac_try;;
40002 esac
40003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40004   (eval "$ac_link") 2>conftest.er1
40005   ac_status=$?
40006   grep -v '^ *+' conftest.er1 >conftest.err
40007   rm -f conftest.er1
40008   cat conftest.err >&5
40009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40010   (exit $ac_status); } && {
40011          test -z "$ac_c_werror_flag" ||
40012          test ! -s conftest.err
40013        } && test -s conftest$ac_exeext &&
40014        $as_test_x conftest$ac_exeext; then
40015   ac_cv_var_h_errno=yes
40016 else
40017   echo "$as_me: failed program was:" >&5
40018 sed 's/^/| /' conftest.$ac_ext >&5
40019
40020         ac_cv_var_h_errno=no
40021 fi
40022
40023 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40024       conftest$ac_exeext conftest.$ac_ext
40025 fi
40026
40027 fi
40028
40029 ac_foo=`eval echo \\$ac_cv_var_h_errno`
40030 { echo "$as_me:$LINENO: result: $ac_foo" >&5
40031 echo "${ECHO_T}$ac_foo" >&6; }
40032 if test "$ac_foo" = yes; then
40033
40034 cat >>confdefs.h <<_ACEOF
40035 #define HAVE_H_ERRNO 1
40036 _ACEOF
40037
40038         { echo "$as_me:$LINENO: checking whether h_errno is declared" >&5
40039 echo $ECHO_N "checking whether h_errno is declared... $ECHO_C" >&6; }
40040 if test "${ac_cv_have_decl_h_errno+set}" = set; then
40041   echo $ECHO_N "(cached) $ECHO_C" >&6
40042 else
40043   cat >conftest.$ac_ext <<_ACEOF
40044 /* confdefs.h.  */
40045 _ACEOF
40046 cat confdefs.h >>conftest.$ac_ext
40047 cat >>conftest.$ac_ext <<_ACEOF
40048 /* end confdefs.h.  */
40049 #ifdef HAVE_SYS_TYPES_H
40050 #include <sys/types.h>
40051 #endif
40052 #ifdef HAVE_NETDB_H
40053 #include <netdb.h>
40054 #endif
40055
40056 int
40057 main ()
40058 {
40059 #ifndef h_errno
40060   (void) h_errno;
40061 #endif
40062
40063   ;
40064   return 0;
40065 }
40066 _ACEOF
40067 rm -f conftest.$ac_objext
40068 if { (ac_try="$ac_compile"
40069 case "(($ac_try" in
40070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40071   *) ac_try_echo=$ac_try;;
40072 esac
40073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40074   (eval "$ac_compile") 2>conftest.er1
40075   ac_status=$?
40076   grep -v '^ *+' conftest.er1 >conftest.err
40077   rm -f conftest.er1
40078   cat conftest.err >&5
40079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40080   (exit $ac_status); } && {
40081          test -z "$ac_c_werror_flag" ||
40082          test ! -s conftest.err
40083        } && test -s conftest.$ac_objext; then
40084   ac_cv_have_decl_h_errno=yes
40085 else
40086   echo "$as_me: failed program was:" >&5
40087 sed 's/^/| /' conftest.$ac_ext >&5
40088
40089         ac_cv_have_decl_h_errno=no
40090 fi
40091
40092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40093 fi
40094 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_h_errno" >&5
40095 echo "${ECHO_T}$ac_cv_have_decl_h_errno" >&6; }
40096 if test $ac_cv_have_decl_h_errno = yes; then
40097
40098 cat >>confdefs.h <<_ACEOF
40099 #define HAVE_DECL_H_ERRNO 1
40100 _ACEOF
40101
40102
40103 else
40104   cat >>confdefs.h <<_ACEOF
40105 #define HAVE_DECL_H_ERRNO 0
40106 _ACEOF
40107
40108
40109 fi
40110
40111
40112 fi
40113
40114
40115
40116 { echo "$as_me:$LINENO: checking for h_errlist" >&5
40117 echo $ECHO_N "checking for h_errlist... $ECHO_C" >&6; }
40118 if test "${ac_cv_var_h_errlist+set}" = set; then
40119   echo $ECHO_N "(cached) $ECHO_C" >&6
40120 else
40121
40122
40123         cat >conftest.$ac_ext <<_ACEOF
40124 /* confdefs.h.  */
40125 _ACEOF
40126 cat confdefs.h >>conftest.$ac_ext
40127 cat >>conftest.$ac_ext <<_ACEOF
40128 /* end confdefs.h.  */
40129 #ifdef HAVE_NETDB_H
40130 #include <netdb.h>
40131 #endif
40132         void * foo(void) { return &h_errlist; }
40133 int
40134 main ()
40135 {
40136 foo()
40137   ;
40138   return 0;
40139 }
40140 _ACEOF
40141 rm -f conftest.$ac_objext conftest$ac_exeext
40142 if { (ac_try="$ac_link"
40143 case "(($ac_try" in
40144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40145   *) ac_try_echo=$ac_try;;
40146 esac
40147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40148   (eval "$ac_link") 2>conftest.er1
40149   ac_status=$?
40150   grep -v '^ *+' conftest.er1 >conftest.err
40151   rm -f conftest.er1
40152   cat conftest.err >&5
40153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40154   (exit $ac_status); } && {
40155          test -z "$ac_c_werror_flag" ||
40156          test ! -s conftest.err
40157        } && test -s conftest$ac_exeext &&
40158        $as_test_x conftest$ac_exeext; then
40159   ac_cv_var_h_errlist=yes
40160 else
40161   echo "$as_me: failed program was:" >&5
40162 sed 's/^/| /' conftest.$ac_ext >&5
40163
40164         ac_cv_var_h_errlist=no
40165 fi
40166
40167 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40168       conftest$ac_exeext conftest.$ac_ext
40169 if test "$ac_cv_var_h_errlist" != yes ; then
40170 cat >conftest.$ac_ext <<_ACEOF
40171 /* confdefs.h.  */
40172 _ACEOF
40173 cat confdefs.h >>conftest.$ac_ext
40174 cat >>conftest.$ac_ext <<_ACEOF
40175 /* end confdefs.h.  */
40176 extern int h_errlist;
40177 int foo(void) { return h_errlist; }
40178 int
40179 main ()
40180 {
40181 foo()
40182   ;
40183   return 0;
40184 }
40185 _ACEOF
40186 rm -f conftest.$ac_objext conftest$ac_exeext
40187 if { (ac_try="$ac_link"
40188 case "(($ac_try" in
40189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40190   *) ac_try_echo=$ac_try;;
40191 esac
40192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40193   (eval "$ac_link") 2>conftest.er1
40194   ac_status=$?
40195   grep -v '^ *+' conftest.er1 >conftest.err
40196   rm -f conftest.er1
40197   cat conftest.err >&5
40198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40199   (exit $ac_status); } && {
40200          test -z "$ac_c_werror_flag" ||
40201          test ! -s conftest.err
40202        } && test -s conftest$ac_exeext &&
40203        $as_test_x conftest$ac_exeext; then
40204   ac_cv_var_h_errlist=yes
40205 else
40206   echo "$as_me: failed program was:" >&5
40207 sed 's/^/| /' conftest.$ac_ext >&5
40208
40209         ac_cv_var_h_errlist=no
40210 fi
40211
40212 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40213       conftest$ac_exeext conftest.$ac_ext
40214 fi
40215
40216 fi
40217
40218 ac_foo=`eval echo \\$ac_cv_var_h_errlist`
40219 { echo "$as_me:$LINENO: result: $ac_foo" >&5
40220 echo "${ECHO_T}$ac_foo" >&6; }
40221 if test "$ac_foo" = yes; then
40222
40223 cat >>confdefs.h <<_ACEOF
40224 #define HAVE_H_ERRLIST 1
40225 _ACEOF
40226
40227         { echo "$as_me:$LINENO: checking whether h_errlist is declared" >&5
40228 echo $ECHO_N "checking whether h_errlist is declared... $ECHO_C" >&6; }
40229 if test "${ac_cv_have_decl_h_errlist+set}" = set; then
40230   echo $ECHO_N "(cached) $ECHO_C" >&6
40231 else
40232   cat >conftest.$ac_ext <<_ACEOF
40233 /* confdefs.h.  */
40234 _ACEOF
40235 cat confdefs.h >>conftest.$ac_ext
40236 cat >>conftest.$ac_ext <<_ACEOF
40237 /* end confdefs.h.  */
40238 #ifdef HAVE_NETDB_H
40239 #include <netdb.h>
40240 #endif
40241
40242 int
40243 main ()
40244 {
40245 #ifndef h_errlist
40246   (void) h_errlist;
40247 #endif
40248
40249   ;
40250   return 0;
40251 }
40252 _ACEOF
40253 rm -f conftest.$ac_objext
40254 if { (ac_try="$ac_compile"
40255 case "(($ac_try" in
40256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40257   *) ac_try_echo=$ac_try;;
40258 esac
40259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40260   (eval "$ac_compile") 2>conftest.er1
40261   ac_status=$?
40262   grep -v '^ *+' conftest.er1 >conftest.err
40263   rm -f conftest.er1
40264   cat conftest.err >&5
40265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40266   (exit $ac_status); } && {
40267          test -z "$ac_c_werror_flag" ||
40268          test ! -s conftest.err
40269        } && test -s conftest.$ac_objext; then
40270   ac_cv_have_decl_h_errlist=yes
40271 else
40272   echo "$as_me: failed program was:" >&5
40273 sed 's/^/| /' conftest.$ac_ext >&5
40274
40275         ac_cv_have_decl_h_errlist=no
40276 fi
40277
40278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40279 fi
40280 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_h_errlist" >&5
40281 echo "${ECHO_T}$ac_cv_have_decl_h_errlist" >&6; }
40282 if test $ac_cv_have_decl_h_errlist = yes; then
40283
40284 cat >>confdefs.h <<_ACEOF
40285 #define HAVE_DECL_H_ERRLIST 1
40286 _ACEOF
40287
40288
40289 else
40290   cat >>confdefs.h <<_ACEOF
40291 #define HAVE_DECL_H_ERRLIST 0
40292 _ACEOF
40293
40294
40295 fi
40296
40297
40298 fi
40299
40300
40301
40302 { echo "$as_me:$LINENO: checking for h_nerr" >&5
40303 echo $ECHO_N "checking for h_nerr... $ECHO_C" >&6; }
40304 if test "${ac_cv_var_h_nerr+set}" = set; then
40305   echo $ECHO_N "(cached) $ECHO_C" >&6
40306 else
40307
40308
40309         cat >conftest.$ac_ext <<_ACEOF
40310 /* confdefs.h.  */
40311 _ACEOF
40312 cat confdefs.h >>conftest.$ac_ext
40313 cat >>conftest.$ac_ext <<_ACEOF
40314 /* end confdefs.h.  */
40315 #ifdef HAVE_NETDB_H
40316 #include <netdb.h>
40317 #endif
40318         void * foo(void) { return &h_nerr; }
40319 int
40320 main ()
40321 {
40322 foo()
40323   ;
40324   return 0;
40325 }
40326 _ACEOF
40327 rm -f conftest.$ac_objext conftest$ac_exeext
40328 if { (ac_try="$ac_link"
40329 case "(($ac_try" in
40330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40331   *) ac_try_echo=$ac_try;;
40332 esac
40333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40334   (eval "$ac_link") 2>conftest.er1
40335   ac_status=$?
40336   grep -v '^ *+' conftest.er1 >conftest.err
40337   rm -f conftest.er1
40338   cat conftest.err >&5
40339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40340   (exit $ac_status); } && {
40341          test -z "$ac_c_werror_flag" ||
40342          test ! -s conftest.err
40343        } && test -s conftest$ac_exeext &&
40344        $as_test_x conftest$ac_exeext; then
40345   ac_cv_var_h_nerr=yes
40346 else
40347   echo "$as_me: failed program was:" >&5
40348 sed 's/^/| /' conftest.$ac_ext >&5
40349
40350         ac_cv_var_h_nerr=no
40351 fi
40352
40353 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40354       conftest$ac_exeext conftest.$ac_ext
40355 if test "$ac_cv_var_h_nerr" != yes ; then
40356 cat >conftest.$ac_ext <<_ACEOF
40357 /* confdefs.h.  */
40358 _ACEOF
40359 cat confdefs.h >>conftest.$ac_ext
40360 cat >>conftest.$ac_ext <<_ACEOF
40361 /* end confdefs.h.  */
40362 extern int h_nerr;
40363 int foo(void) { return h_nerr; }
40364 int
40365 main ()
40366 {
40367 foo()
40368   ;
40369   return 0;
40370 }
40371 _ACEOF
40372 rm -f conftest.$ac_objext conftest$ac_exeext
40373 if { (ac_try="$ac_link"
40374 case "(($ac_try" in
40375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40376   *) ac_try_echo=$ac_try;;
40377 esac
40378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40379   (eval "$ac_link") 2>conftest.er1
40380   ac_status=$?
40381   grep -v '^ *+' conftest.er1 >conftest.err
40382   rm -f conftest.er1
40383   cat conftest.err >&5
40384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40385   (exit $ac_status); } && {
40386          test -z "$ac_c_werror_flag" ||
40387          test ! -s conftest.err
40388        } && test -s conftest$ac_exeext &&
40389        $as_test_x conftest$ac_exeext; then
40390   ac_cv_var_h_nerr=yes
40391 else
40392   echo "$as_me: failed program was:" >&5
40393 sed 's/^/| /' conftest.$ac_ext >&5
40394
40395         ac_cv_var_h_nerr=no
40396 fi
40397
40398 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40399       conftest$ac_exeext conftest.$ac_ext
40400 fi
40401
40402 fi
40403
40404 ac_foo=`eval echo \\$ac_cv_var_h_nerr`
40405 { echo "$as_me:$LINENO: result: $ac_foo" >&5
40406 echo "${ECHO_T}$ac_foo" >&6; }
40407 if test "$ac_foo" = yes; then
40408
40409 cat >>confdefs.h <<_ACEOF
40410 #define HAVE_H_NERR 1
40411 _ACEOF
40412
40413         { echo "$as_me:$LINENO: checking whether h_nerr is declared" >&5
40414 echo $ECHO_N "checking whether h_nerr is declared... $ECHO_C" >&6; }
40415 if test "${ac_cv_have_decl_h_nerr+set}" = set; then
40416   echo $ECHO_N "(cached) $ECHO_C" >&6
40417 else
40418   cat >conftest.$ac_ext <<_ACEOF
40419 /* confdefs.h.  */
40420 _ACEOF
40421 cat confdefs.h >>conftest.$ac_ext
40422 cat >>conftest.$ac_ext <<_ACEOF
40423 /* end confdefs.h.  */
40424 #ifdef HAVE_NETDB_H
40425 #include <netdb.h>
40426 #endif
40427
40428 int
40429 main ()
40430 {
40431 #ifndef h_nerr
40432   (void) h_nerr;
40433 #endif
40434
40435   ;
40436   return 0;
40437 }
40438 _ACEOF
40439 rm -f conftest.$ac_objext
40440 if { (ac_try="$ac_compile"
40441 case "(($ac_try" in
40442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40443   *) ac_try_echo=$ac_try;;
40444 esac
40445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40446   (eval "$ac_compile") 2>conftest.er1
40447   ac_status=$?
40448   grep -v '^ *+' conftest.er1 >conftest.err
40449   rm -f conftest.er1
40450   cat conftest.err >&5
40451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40452   (exit $ac_status); } && {
40453          test -z "$ac_c_werror_flag" ||
40454          test ! -s conftest.err
40455        } && test -s conftest.$ac_objext; then
40456   ac_cv_have_decl_h_nerr=yes
40457 else
40458   echo "$as_me: failed program was:" >&5
40459 sed 's/^/| /' conftest.$ac_ext >&5
40460
40461         ac_cv_have_decl_h_nerr=no
40462 fi
40463
40464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40465 fi
40466 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_h_nerr" >&5
40467 echo "${ECHO_T}$ac_cv_have_decl_h_nerr" >&6; }
40468 if test $ac_cv_have_decl_h_nerr = yes; then
40469
40470 cat >>confdefs.h <<_ACEOF
40471 #define HAVE_DECL_H_NERR 1
40472 _ACEOF
40473
40474
40475 else
40476   cat >>confdefs.h <<_ACEOF
40477 #define HAVE_DECL_H_NERR 0
40478 _ACEOF
40479
40480
40481 fi
40482
40483
40484 fi
40485
40486
40487
40488 { echo "$as_me:$LINENO: checking for __progname" >&5
40489 echo $ECHO_N "checking for __progname... $ECHO_C" >&6; }
40490 if test "${ac_cv_var___progname+set}" = set; then
40491   echo $ECHO_N "(cached) $ECHO_C" >&6
40492 else
40493
40494
40495         cat >conftest.$ac_ext <<_ACEOF
40496 /* confdefs.h.  */
40497 _ACEOF
40498 cat confdefs.h >>conftest.$ac_ext
40499 cat >>conftest.$ac_ext <<_ACEOF
40500 /* end confdefs.h.  */
40501 #ifdef HAVE_ERR_H
40502 #include <err.h>
40503 #endif
40504         void * foo(void) { return &__progname; }
40505 int
40506 main ()
40507 {
40508 foo()
40509   ;
40510   return 0;
40511 }
40512 _ACEOF
40513 rm -f conftest.$ac_objext conftest$ac_exeext
40514 if { (ac_try="$ac_link"
40515 case "(($ac_try" in
40516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40517   *) ac_try_echo=$ac_try;;
40518 esac
40519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40520   (eval "$ac_link") 2>conftest.er1
40521   ac_status=$?
40522   grep -v '^ *+' conftest.er1 >conftest.err
40523   rm -f conftest.er1
40524   cat conftest.err >&5
40525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40526   (exit $ac_status); } && {
40527          test -z "$ac_c_werror_flag" ||
40528          test ! -s conftest.err
40529        } && test -s conftest$ac_exeext &&
40530        $as_test_x conftest$ac_exeext; then
40531   ac_cv_var___progname=yes
40532 else
40533   echo "$as_me: failed program was:" >&5
40534 sed 's/^/| /' conftest.$ac_ext >&5
40535
40536         ac_cv_var___progname=no
40537 fi
40538
40539 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40540       conftest$ac_exeext conftest.$ac_ext
40541 if test "$ac_cv_var___progname" != yes ; then
40542 cat >conftest.$ac_ext <<_ACEOF
40543 /* confdefs.h.  */
40544 _ACEOF
40545 cat confdefs.h >>conftest.$ac_ext
40546 cat >>conftest.$ac_ext <<_ACEOF
40547 /* end confdefs.h.  */
40548 extern int __progname;
40549 int foo(void) { return __progname; }
40550 int
40551 main ()
40552 {
40553 foo()
40554   ;
40555   return 0;
40556 }
40557 _ACEOF
40558 rm -f conftest.$ac_objext conftest$ac_exeext
40559 if { (ac_try="$ac_link"
40560 case "(($ac_try" in
40561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40562   *) ac_try_echo=$ac_try;;
40563 esac
40564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40565   (eval "$ac_link") 2>conftest.er1
40566   ac_status=$?
40567   grep -v '^ *+' conftest.er1 >conftest.err
40568   rm -f conftest.er1
40569   cat conftest.err >&5
40570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40571   (exit $ac_status); } && {
40572          test -z "$ac_c_werror_flag" ||
40573          test ! -s conftest.err
40574        } && test -s conftest$ac_exeext &&
40575        $as_test_x conftest$ac_exeext; then
40576   ac_cv_var___progname=yes
40577 else
40578   echo "$as_me: failed program was:" >&5
40579 sed 's/^/| /' conftest.$ac_ext >&5
40580
40581         ac_cv_var___progname=no
40582 fi
40583
40584 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40585       conftest$ac_exeext conftest.$ac_ext
40586 fi
40587
40588 fi
40589
40590 ac_foo=`eval echo \\$ac_cv_var___progname`
40591 { echo "$as_me:$LINENO: result: $ac_foo" >&5
40592 echo "${ECHO_T}$ac_foo" >&6; }
40593 if test "$ac_foo" = yes; then
40594
40595 cat >>confdefs.h <<_ACEOF
40596 #define HAVE___PROGNAME 1
40597 _ACEOF
40598
40599         { echo "$as_me:$LINENO: checking whether __progname is declared" >&5
40600 echo $ECHO_N "checking whether __progname is declared... $ECHO_C" >&6; }
40601 if test "${ac_cv_have_decl___progname+set}" = set; then
40602   echo $ECHO_N "(cached) $ECHO_C" >&6
40603 else
40604   cat >conftest.$ac_ext <<_ACEOF
40605 /* confdefs.h.  */
40606 _ACEOF
40607 cat confdefs.h >>conftest.$ac_ext
40608 cat >>conftest.$ac_ext <<_ACEOF
40609 /* end confdefs.h.  */
40610 #ifdef HAVE_ERR_H
40611 #include <err.h>
40612 #endif
40613
40614 int
40615 main ()
40616 {
40617 #ifndef __progname
40618   (void) __progname;
40619 #endif
40620
40621   ;
40622   return 0;
40623 }
40624 _ACEOF
40625 rm -f conftest.$ac_objext
40626 if { (ac_try="$ac_compile"
40627 case "(($ac_try" in
40628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40629   *) ac_try_echo=$ac_try;;
40630 esac
40631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40632   (eval "$ac_compile") 2>conftest.er1
40633   ac_status=$?
40634   grep -v '^ *+' conftest.er1 >conftest.err
40635   rm -f conftest.er1
40636   cat conftest.err >&5
40637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40638   (exit $ac_status); } && {
40639          test -z "$ac_c_werror_flag" ||
40640          test ! -s conftest.err
40641        } && test -s conftest.$ac_objext; then
40642   ac_cv_have_decl___progname=yes
40643 else
40644   echo "$as_me: failed program was:" >&5
40645 sed 's/^/| /' conftest.$ac_ext >&5
40646
40647         ac_cv_have_decl___progname=no
40648 fi
40649
40650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40651 fi
40652 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___progname" >&5
40653 echo "${ECHO_T}$ac_cv_have_decl___progname" >&6; }
40654 if test $ac_cv_have_decl___progname = yes; then
40655
40656 cat >>confdefs.h <<_ACEOF
40657 #define HAVE_DECL___PROGNAME 1
40658 _ACEOF
40659
40660
40661 else
40662   cat >>confdefs.h <<_ACEOF
40663 #define HAVE_DECL___PROGNAME 0
40664 _ACEOF
40665
40666
40667 fi
40668
40669
40670 fi
40671
40672
40673 { echo "$as_me:$LINENO: checking whether optarg is declared" >&5
40674 echo $ECHO_N "checking whether optarg is declared... $ECHO_C" >&6; }
40675 if test "${ac_cv_have_decl_optarg+set}" = set; then
40676   echo $ECHO_N "(cached) $ECHO_C" >&6
40677 else
40678   cat >conftest.$ac_ext <<_ACEOF
40679 /* confdefs.h.  */
40680 _ACEOF
40681 cat confdefs.h >>conftest.$ac_ext
40682 cat >>conftest.$ac_ext <<_ACEOF
40683 /* end confdefs.h.  */
40684 $ac_includes_default
40685 int
40686 main ()
40687 {
40688 #ifndef optarg
40689   (void) optarg;
40690 #endif
40691
40692   ;
40693   return 0;
40694 }
40695 _ACEOF
40696 rm -f conftest.$ac_objext
40697 if { (ac_try="$ac_compile"
40698 case "(($ac_try" in
40699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40700   *) ac_try_echo=$ac_try;;
40701 esac
40702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40703   (eval "$ac_compile") 2>conftest.er1
40704   ac_status=$?
40705   grep -v '^ *+' conftest.er1 >conftest.err
40706   rm -f conftest.er1
40707   cat conftest.err >&5
40708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40709   (exit $ac_status); } && {
40710          test -z "$ac_c_werror_flag" ||
40711          test ! -s conftest.err
40712        } && test -s conftest.$ac_objext; then
40713   ac_cv_have_decl_optarg=yes
40714 else
40715   echo "$as_me: failed program was:" >&5
40716 sed 's/^/| /' conftest.$ac_ext >&5
40717
40718         ac_cv_have_decl_optarg=no
40719 fi
40720
40721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40722 fi
40723 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_optarg" >&5
40724 echo "${ECHO_T}$ac_cv_have_decl_optarg" >&6; }
40725 if test $ac_cv_have_decl_optarg = yes; then
40726
40727 cat >>confdefs.h <<_ACEOF
40728 #define HAVE_DECL_OPTARG 1
40729 _ACEOF
40730
40731
40732 else
40733   cat >>confdefs.h <<_ACEOF
40734 #define HAVE_DECL_OPTARG 0
40735 _ACEOF
40736
40737
40738 #include <stdlib.h>
40739 #ifdef HAVE_UNISTD_H
40740 #include <unistd.h>
40741 #endif
40742 fi
40743 { echo "$as_me:$LINENO: checking whether optind is declared" >&5
40744 echo $ECHO_N "checking whether optind is declared... $ECHO_C" >&6; }
40745 if test "${ac_cv_have_decl_optind+set}" = set; then
40746   echo $ECHO_N "(cached) $ECHO_C" >&6
40747 else
40748   cat >conftest.$ac_ext <<_ACEOF
40749 /* confdefs.h.  */
40750 _ACEOF
40751 cat confdefs.h >>conftest.$ac_ext
40752 cat >>conftest.$ac_ext <<_ACEOF
40753 /* end confdefs.h.  */
40754 $ac_includes_default
40755 int
40756 main ()
40757 {
40758 #ifndef optind
40759   (void) optind;
40760 #endif
40761
40762   ;
40763   return 0;
40764 }
40765 _ACEOF
40766 rm -f conftest.$ac_objext
40767 if { (ac_try="$ac_compile"
40768 case "(($ac_try" in
40769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40770   *) ac_try_echo=$ac_try;;
40771 esac
40772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40773   (eval "$ac_compile") 2>conftest.er1
40774   ac_status=$?
40775   grep -v '^ *+' conftest.er1 >conftest.err
40776   rm -f conftest.er1
40777   cat conftest.err >&5
40778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40779   (exit $ac_status); } && {
40780          test -z "$ac_c_werror_flag" ||
40781          test ! -s conftest.err
40782        } && test -s conftest.$ac_objext; then
40783   ac_cv_have_decl_optind=yes
40784 else
40785   echo "$as_me: failed program was:" >&5
40786 sed 's/^/| /' conftest.$ac_ext >&5
40787
40788         ac_cv_have_decl_optind=no
40789 fi
40790
40791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40792 fi
40793 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_optind" >&5
40794 echo "${ECHO_T}$ac_cv_have_decl_optind" >&6; }
40795 if test $ac_cv_have_decl_optind = yes; then
40796
40797 cat >>confdefs.h <<_ACEOF
40798 #define HAVE_DECL_OPTIND 1
40799 _ACEOF
40800
40801
40802 else
40803   cat >>confdefs.h <<_ACEOF
40804 #define HAVE_DECL_OPTIND 0
40805 _ACEOF
40806
40807
40808 #include <stdlib.h>
40809 #ifdef HAVE_UNISTD_H
40810 #include <unistd.h>
40811 #endif
40812 fi
40813 { echo "$as_me:$LINENO: checking whether opterr is declared" >&5
40814 echo $ECHO_N "checking whether opterr is declared... $ECHO_C" >&6; }
40815 if test "${ac_cv_have_decl_opterr+set}" = set; then
40816   echo $ECHO_N "(cached) $ECHO_C" >&6
40817 else
40818   cat >conftest.$ac_ext <<_ACEOF
40819 /* confdefs.h.  */
40820 _ACEOF
40821 cat confdefs.h >>conftest.$ac_ext
40822 cat >>conftest.$ac_ext <<_ACEOF
40823 /* end confdefs.h.  */
40824 $ac_includes_default
40825 int
40826 main ()
40827 {
40828 #ifndef opterr
40829   (void) opterr;
40830 #endif
40831
40832   ;
40833   return 0;
40834 }
40835 _ACEOF
40836 rm -f conftest.$ac_objext
40837 if { (ac_try="$ac_compile"
40838 case "(($ac_try" in
40839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40840   *) ac_try_echo=$ac_try;;
40841 esac
40842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40843   (eval "$ac_compile") 2>conftest.er1
40844   ac_status=$?
40845   grep -v '^ *+' conftest.er1 >conftest.err
40846   rm -f conftest.er1
40847   cat conftest.err >&5
40848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40849   (exit $ac_status); } && {
40850          test -z "$ac_c_werror_flag" ||
40851          test ! -s conftest.err
40852        } && test -s conftest.$ac_objext; then
40853   ac_cv_have_decl_opterr=yes
40854 else
40855   echo "$as_me: failed program was:" >&5
40856 sed 's/^/| /' conftest.$ac_ext >&5
40857
40858         ac_cv_have_decl_opterr=no
40859 fi
40860
40861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40862 fi
40863 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_opterr" >&5
40864 echo "${ECHO_T}$ac_cv_have_decl_opterr" >&6; }
40865 if test $ac_cv_have_decl_opterr = yes; then
40866
40867 cat >>confdefs.h <<_ACEOF
40868 #define HAVE_DECL_OPTERR 1
40869 _ACEOF
40870
40871
40872 else
40873   cat >>confdefs.h <<_ACEOF
40874 #define HAVE_DECL_OPTERR 0
40875 _ACEOF
40876
40877
40878 #include <stdlib.h>
40879 #ifdef HAVE_UNISTD_H
40880 #include <unistd.h>
40881 #endif
40882 fi
40883 { echo "$as_me:$LINENO: checking whether optopt is declared" >&5
40884 echo $ECHO_N "checking whether optopt is declared... $ECHO_C" >&6; }
40885 if test "${ac_cv_have_decl_optopt+set}" = set; then
40886   echo $ECHO_N "(cached) $ECHO_C" >&6
40887 else
40888   cat >conftest.$ac_ext <<_ACEOF
40889 /* confdefs.h.  */
40890 _ACEOF
40891 cat confdefs.h >>conftest.$ac_ext
40892 cat >>conftest.$ac_ext <<_ACEOF
40893 /* end confdefs.h.  */
40894 $ac_includes_default
40895 int
40896 main ()
40897 {
40898 #ifndef optopt
40899   (void) optopt;
40900 #endif
40901
40902   ;
40903   return 0;
40904 }
40905 _ACEOF
40906 rm -f conftest.$ac_objext
40907 if { (ac_try="$ac_compile"
40908 case "(($ac_try" in
40909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40910   *) ac_try_echo=$ac_try;;
40911 esac
40912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40913   (eval "$ac_compile") 2>conftest.er1
40914   ac_status=$?
40915   grep -v '^ *+' conftest.er1 >conftest.err
40916   rm -f conftest.er1
40917   cat conftest.err >&5
40918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40919   (exit $ac_status); } && {
40920          test -z "$ac_c_werror_flag" ||
40921          test ! -s conftest.err
40922        } && test -s conftest.$ac_objext; then
40923   ac_cv_have_decl_optopt=yes
40924 else
40925   echo "$as_me: failed program was:" >&5
40926 sed 's/^/| /' conftest.$ac_ext >&5
40927
40928         ac_cv_have_decl_optopt=no
40929 fi
40930
40931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40932 fi
40933 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_optopt" >&5
40934 echo "${ECHO_T}$ac_cv_have_decl_optopt" >&6; }
40935 if test $ac_cv_have_decl_optopt = yes; then
40936
40937 cat >>confdefs.h <<_ACEOF
40938 #define HAVE_DECL_OPTOPT 1
40939 _ACEOF
40940
40941
40942 else
40943   cat >>confdefs.h <<_ACEOF
40944 #define HAVE_DECL_OPTOPT 0
40945 _ACEOF
40946
40947
40948 #include <stdlib.h>
40949 #ifdef HAVE_UNISTD_H
40950 #include <unistd.h>
40951 #endif
40952 fi
40953 { echo "$as_me:$LINENO: checking whether environ is declared" >&5
40954 echo $ECHO_N "checking whether environ is declared... $ECHO_C" >&6; }
40955 if test "${ac_cv_have_decl_environ+set}" = set; then
40956   echo $ECHO_N "(cached) $ECHO_C" >&6
40957 else
40958   cat >conftest.$ac_ext <<_ACEOF
40959 /* confdefs.h.  */
40960 _ACEOF
40961 cat confdefs.h >>conftest.$ac_ext
40962 cat >>conftest.$ac_ext <<_ACEOF
40963 /* end confdefs.h.  */
40964 $ac_includes_default
40965 int
40966 main ()
40967 {
40968 #ifndef environ
40969   (void) environ;
40970 #endif
40971
40972   ;
40973   return 0;
40974 }
40975 _ACEOF
40976 rm -f conftest.$ac_objext
40977 if { (ac_try="$ac_compile"
40978 case "(($ac_try" in
40979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40980   *) ac_try_echo=$ac_try;;
40981 esac
40982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40983   (eval "$ac_compile") 2>conftest.er1
40984   ac_status=$?
40985   grep -v '^ *+' conftest.er1 >conftest.err
40986   rm -f conftest.er1
40987   cat conftest.err >&5
40988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40989   (exit $ac_status); } && {
40990          test -z "$ac_c_werror_flag" ||
40991          test ! -s conftest.err
40992        } && test -s conftest.$ac_objext; then
40993   ac_cv_have_decl_environ=yes
40994 else
40995   echo "$as_me: failed program was:" >&5
40996 sed 's/^/| /' conftest.$ac_ext >&5
40997
40998         ac_cv_have_decl_environ=no
40999 fi
41000
41001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41002 fi
41003 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_environ" >&5
41004 echo "${ECHO_T}$ac_cv_have_decl_environ" >&6; }
41005 if test $ac_cv_have_decl_environ = yes; then
41006
41007 cat >>confdefs.h <<_ACEOF
41008 #define HAVE_DECL_ENVIRON 1
41009 _ACEOF
41010
41011
41012 else
41013   cat >>confdefs.h <<_ACEOF
41014 #define HAVE_DECL_ENVIRON 0
41015 _ACEOF
41016
41017
41018 #include <stdlib.h>
41019 #ifdef HAVE_UNISTD_H
41020 #include <unistd.h>
41021 #endif
41022 fi
41023
41024
41025
41026
41027
41028
41029 { echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
41030 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6; }
41031 if test "${ac_cv_type_struct_tm_tm_gmtoff+set}" = set; then
41032   echo $ECHO_N "(cached) $ECHO_C" >&6
41033 else
41034
41035 cat >conftest.$ac_ext <<_ACEOF
41036 /* confdefs.h.  */
41037 _ACEOF
41038 cat confdefs.h >>conftest.$ac_ext
41039 cat >>conftest.$ac_ext <<_ACEOF
41040 /* end confdefs.h.  */
41041 #include <time.h>
41042 int
41043 main ()
41044 {
41045 struct tm x; memset(&x, 0, sizeof(x)); x.tm_gmtoff
41046   ;
41047   return 0;
41048 }
41049 _ACEOF
41050 rm -f conftest.$ac_objext
41051 if { (ac_try="$ac_compile"
41052 case "(($ac_try" in
41053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41054   *) ac_try_echo=$ac_try;;
41055 esac
41056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41057   (eval "$ac_compile") 2>conftest.er1
41058   ac_status=$?
41059   grep -v '^ *+' conftest.er1 >conftest.err
41060   rm -f conftest.er1
41061   cat conftest.err >&5
41062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41063   (exit $ac_status); } && {
41064          test -z "$ac_c_werror_flag" ||
41065          test ! -s conftest.err
41066        } && test -s conftest.$ac_objext; then
41067   ac_cv_type_struct_tm_tm_gmtoff=yes
41068 else
41069   echo "$as_me: failed program was:" >&5
41070 sed 's/^/| /' conftest.$ac_ext >&5
41071
41072         ac_cv_type_struct_tm_tm_gmtoff=no
41073 fi
41074
41075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41076
41077 fi
41078 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_tm_tm_gmtoff" >&5
41079 echo "${ECHO_T}$ac_cv_type_struct_tm_tm_gmtoff" >&6; }
41080 if test "$ac_cv_type_struct_tm_tm_gmtoff" = yes; then
41081
41082
41083 cat >>confdefs.h <<\_ACEOF
41084 #define HAVE_STRUCT_TM_TM_GMTOFF 1
41085 _ACEOF
41086
41087
41088 fi
41089
41090
41091
41092
41093 { echo "$as_me:$LINENO: checking for tm_zone in struct tm" >&5
41094 echo $ECHO_N "checking for tm_zone in struct tm... $ECHO_C" >&6; }
41095 if test "${ac_cv_type_struct_tm_tm_zone+set}" = set; then
41096   echo $ECHO_N "(cached) $ECHO_C" >&6
41097 else
41098
41099 cat >conftest.$ac_ext <<_ACEOF
41100 /* confdefs.h.  */
41101 _ACEOF
41102 cat confdefs.h >>conftest.$ac_ext
41103 cat >>conftest.$ac_ext <<_ACEOF
41104 /* end confdefs.h.  */
41105 #include <time.h>
41106 int
41107 main ()
41108 {
41109 struct tm x; memset(&x, 0, sizeof(x)); x.tm_zone
41110   ;
41111   return 0;
41112 }
41113 _ACEOF
41114 rm -f conftest.$ac_objext
41115 if { (ac_try="$ac_compile"
41116 case "(($ac_try" in
41117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41118   *) ac_try_echo=$ac_try;;
41119 esac
41120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41121   (eval "$ac_compile") 2>conftest.er1
41122   ac_status=$?
41123   grep -v '^ *+' conftest.er1 >conftest.err
41124   rm -f conftest.er1
41125   cat conftest.err >&5
41126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41127   (exit $ac_status); } && {
41128          test -z "$ac_c_werror_flag" ||
41129          test ! -s conftest.err
41130        } && test -s conftest.$ac_objext; then
41131   ac_cv_type_struct_tm_tm_zone=yes
41132 else
41133   echo "$as_me: failed program was:" >&5
41134 sed 's/^/| /' conftest.$ac_ext >&5
41135
41136         ac_cv_type_struct_tm_tm_zone=no
41137 fi
41138
41139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41140
41141 fi
41142 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_tm_tm_zone" >&5
41143 echo "${ECHO_T}$ac_cv_type_struct_tm_tm_zone" >&6; }
41144 if test "$ac_cv_type_struct_tm_tm_zone" = yes; then
41145
41146
41147 cat >>confdefs.h <<\_ACEOF
41148 #define HAVE_STRUCT_TM_TM_ZONE 1
41149 _ACEOF
41150
41151
41152 fi
41153
41154
41155
41156
41157
41158 { echo "$as_me:$LINENO: checking for timezone" >&5
41159 echo $ECHO_N "checking for timezone... $ECHO_C" >&6; }
41160 if test "${ac_cv_var_timezone+set}" = set; then
41161   echo $ECHO_N "(cached) $ECHO_C" >&6
41162 else
41163
41164
41165         cat >conftest.$ac_ext <<_ACEOF
41166 /* confdefs.h.  */
41167 _ACEOF
41168 cat confdefs.h >>conftest.$ac_ext
41169 cat >>conftest.$ac_ext <<_ACEOF
41170 /* end confdefs.h.  */
41171 #include <time.h>
41172         void * foo(void) { return &timezone; }
41173 int
41174 main ()
41175 {
41176 foo()
41177   ;
41178   return 0;
41179 }
41180 _ACEOF
41181 rm -f conftest.$ac_objext conftest$ac_exeext
41182 if { (ac_try="$ac_link"
41183 case "(($ac_try" in
41184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41185   *) ac_try_echo=$ac_try;;
41186 esac
41187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41188   (eval "$ac_link") 2>conftest.er1
41189   ac_status=$?
41190   grep -v '^ *+' conftest.er1 >conftest.err
41191   rm -f conftest.er1
41192   cat conftest.err >&5
41193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41194   (exit $ac_status); } && {
41195          test -z "$ac_c_werror_flag" ||
41196          test ! -s conftest.err
41197        } && test -s conftest$ac_exeext &&
41198        $as_test_x conftest$ac_exeext; then
41199   ac_cv_var_timezone=yes
41200 else
41201   echo "$as_me: failed program was:" >&5
41202 sed 's/^/| /' conftest.$ac_ext >&5
41203
41204         ac_cv_var_timezone=no
41205 fi
41206
41207 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41208       conftest$ac_exeext conftest.$ac_ext
41209 if test "$ac_cv_var_timezone" != yes ; then
41210 cat >conftest.$ac_ext <<_ACEOF
41211 /* confdefs.h.  */
41212 _ACEOF
41213 cat confdefs.h >>conftest.$ac_ext
41214 cat >>conftest.$ac_ext <<_ACEOF
41215 /* end confdefs.h.  */
41216 extern int timezone;
41217 int foo(void) { return timezone; }
41218 int
41219 main ()
41220 {
41221 foo()
41222   ;
41223   return 0;
41224 }
41225 _ACEOF
41226 rm -f conftest.$ac_objext conftest$ac_exeext
41227 if { (ac_try="$ac_link"
41228 case "(($ac_try" in
41229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41230   *) ac_try_echo=$ac_try;;
41231 esac
41232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41233   (eval "$ac_link") 2>conftest.er1
41234   ac_status=$?
41235   grep -v '^ *+' conftest.er1 >conftest.err
41236   rm -f conftest.er1
41237   cat conftest.err >&5
41238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41239   (exit $ac_status); } && {
41240          test -z "$ac_c_werror_flag" ||
41241          test ! -s conftest.err
41242        } && test -s conftest$ac_exeext &&
41243        $as_test_x conftest$ac_exeext; then
41244   ac_cv_var_timezone=yes
41245 else
41246   echo "$as_me: failed program was:" >&5
41247 sed 's/^/| /' conftest.$ac_ext >&5
41248
41249         ac_cv_var_timezone=no
41250 fi
41251
41252 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41253       conftest$ac_exeext conftest.$ac_ext
41254 fi
41255
41256 fi
41257
41258 ac_foo=`eval echo \\$ac_cv_var_timezone`
41259 { echo "$as_me:$LINENO: result: $ac_foo" >&5
41260 echo "${ECHO_T}$ac_foo" >&6; }
41261 if test "$ac_foo" = yes; then
41262
41263 cat >>confdefs.h <<_ACEOF
41264 #define HAVE_TIMEZONE 1
41265 _ACEOF
41266
41267         { echo "$as_me:$LINENO: checking whether timezone is declared" >&5
41268 echo $ECHO_N "checking whether timezone is declared... $ECHO_C" >&6; }
41269 if test "${ac_cv_have_decl_timezone+set}" = set; then
41270   echo $ECHO_N "(cached) $ECHO_C" >&6
41271 else
41272   cat >conftest.$ac_ext <<_ACEOF
41273 /* confdefs.h.  */
41274 _ACEOF
41275 cat confdefs.h >>conftest.$ac_ext
41276 cat >>conftest.$ac_ext <<_ACEOF
41277 /* end confdefs.h.  */
41278 #include <time.h>
41279
41280 int
41281 main ()
41282 {
41283 #ifndef timezone
41284   (void) timezone;
41285 #endif
41286
41287   ;
41288   return 0;
41289 }
41290 _ACEOF
41291 rm -f conftest.$ac_objext
41292 if { (ac_try="$ac_compile"
41293 case "(($ac_try" in
41294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41295   *) ac_try_echo=$ac_try;;
41296 esac
41297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41298   (eval "$ac_compile") 2>conftest.er1
41299   ac_status=$?
41300   grep -v '^ *+' conftest.er1 >conftest.err
41301   rm -f conftest.er1
41302   cat conftest.err >&5
41303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41304   (exit $ac_status); } && {
41305          test -z "$ac_c_werror_flag" ||
41306          test ! -s conftest.err
41307        } && test -s conftest.$ac_objext; then
41308   ac_cv_have_decl_timezone=yes
41309 else
41310   echo "$as_me: failed program was:" >&5
41311 sed 's/^/| /' conftest.$ac_ext >&5
41312
41313         ac_cv_have_decl_timezone=no
41314 fi
41315
41316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41317 fi
41318 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_timezone" >&5
41319 echo "${ECHO_T}$ac_cv_have_decl_timezone" >&6; }
41320 if test $ac_cv_have_decl_timezone = yes; then
41321
41322 cat >>confdefs.h <<_ACEOF
41323 #define HAVE_DECL_TIMEZONE 1
41324 _ACEOF
41325
41326
41327 else
41328   cat >>confdefs.h <<_ACEOF
41329 #define HAVE_DECL_TIMEZONE 0
41330 _ACEOF
41331
41332
41333 fi
41334
41335
41336 fi
41337
41338
41339 { echo "$as_me:$LINENO: checking for altzone" >&5
41340 echo $ECHO_N "checking for altzone... $ECHO_C" >&6; }
41341 if test "${ac_cv_var_altzone+set}" = set; then
41342   echo $ECHO_N "(cached) $ECHO_C" >&6
41343 else
41344
41345
41346         cat >conftest.$ac_ext <<_ACEOF
41347 /* confdefs.h.  */
41348 _ACEOF
41349 cat confdefs.h >>conftest.$ac_ext
41350 cat >>conftest.$ac_ext <<_ACEOF
41351 /* end confdefs.h.  */
41352 #include <time.h>
41353         void * foo(void) { return &altzone; }
41354 int
41355 main ()
41356 {
41357 foo()
41358   ;
41359   return 0;
41360 }
41361 _ACEOF
41362 rm -f conftest.$ac_objext conftest$ac_exeext
41363 if { (ac_try="$ac_link"
41364 case "(($ac_try" in
41365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41366   *) ac_try_echo=$ac_try;;
41367 esac
41368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41369   (eval "$ac_link") 2>conftest.er1
41370   ac_status=$?
41371   grep -v '^ *+' conftest.er1 >conftest.err
41372   rm -f conftest.er1
41373   cat conftest.err >&5
41374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41375   (exit $ac_status); } && {
41376          test -z "$ac_c_werror_flag" ||
41377          test ! -s conftest.err
41378        } && test -s conftest$ac_exeext &&
41379        $as_test_x conftest$ac_exeext; then
41380   ac_cv_var_altzone=yes
41381 else
41382   echo "$as_me: failed program was:" >&5
41383 sed 's/^/| /' conftest.$ac_ext >&5
41384
41385         ac_cv_var_altzone=no
41386 fi
41387
41388 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41389       conftest$ac_exeext conftest.$ac_ext
41390 if test "$ac_cv_var_altzone" != yes ; then
41391 cat >conftest.$ac_ext <<_ACEOF
41392 /* confdefs.h.  */
41393 _ACEOF
41394 cat confdefs.h >>conftest.$ac_ext
41395 cat >>conftest.$ac_ext <<_ACEOF
41396 /* end confdefs.h.  */
41397 extern int altzone;
41398 int foo(void) { return altzone; }
41399 int
41400 main ()
41401 {
41402 foo()
41403   ;
41404   return 0;
41405 }
41406 _ACEOF
41407 rm -f conftest.$ac_objext conftest$ac_exeext
41408 if { (ac_try="$ac_link"
41409 case "(($ac_try" in
41410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41411   *) ac_try_echo=$ac_try;;
41412 esac
41413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41414   (eval "$ac_link") 2>conftest.er1
41415   ac_status=$?
41416   grep -v '^ *+' conftest.er1 >conftest.err
41417   rm -f conftest.er1
41418   cat conftest.err >&5
41419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41420   (exit $ac_status); } && {
41421          test -z "$ac_c_werror_flag" ||
41422          test ! -s conftest.err
41423        } && test -s conftest$ac_exeext &&
41424        $as_test_x conftest$ac_exeext; then
41425   ac_cv_var_altzone=yes
41426 else
41427   echo "$as_me: failed program was:" >&5
41428 sed 's/^/| /' conftest.$ac_ext >&5
41429
41430         ac_cv_var_altzone=no
41431 fi
41432
41433 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41434       conftest$ac_exeext conftest.$ac_ext
41435 fi
41436
41437 fi
41438
41439 ac_foo=`eval echo \\$ac_cv_var_altzone`
41440 { echo "$as_me:$LINENO: result: $ac_foo" >&5
41441 echo "${ECHO_T}$ac_foo" >&6; }
41442 if test "$ac_foo" = yes; then
41443
41444 cat >>confdefs.h <<_ACEOF
41445 #define HAVE_ALTZONE 1
41446 _ACEOF
41447
41448         { echo "$as_me:$LINENO: checking whether altzone is declared" >&5
41449 echo $ECHO_N "checking whether altzone is declared... $ECHO_C" >&6; }
41450 if test "${ac_cv_have_decl_altzone+set}" = set; then
41451   echo $ECHO_N "(cached) $ECHO_C" >&6
41452 else
41453   cat >conftest.$ac_ext <<_ACEOF
41454 /* confdefs.h.  */
41455 _ACEOF
41456 cat confdefs.h >>conftest.$ac_ext
41457 cat >>conftest.$ac_ext <<_ACEOF
41458 /* end confdefs.h.  */
41459 #include <time.h>
41460
41461 int
41462 main ()
41463 {
41464 #ifndef altzone
41465   (void) altzone;
41466 #endif
41467
41468   ;
41469   return 0;
41470 }
41471 _ACEOF
41472 rm -f conftest.$ac_objext
41473 if { (ac_try="$ac_compile"
41474 case "(($ac_try" in
41475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41476   *) ac_try_echo=$ac_try;;
41477 esac
41478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41479   (eval "$ac_compile") 2>conftest.er1
41480   ac_status=$?
41481   grep -v '^ *+' conftest.er1 >conftest.err
41482   rm -f conftest.er1
41483   cat conftest.err >&5
41484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41485   (exit $ac_status); } && {
41486          test -z "$ac_c_werror_flag" ||
41487          test ! -s conftest.err
41488        } && test -s conftest.$ac_objext; then
41489   ac_cv_have_decl_altzone=yes
41490 else
41491   echo "$as_me: failed program was:" >&5
41492 sed 's/^/| /' conftest.$ac_ext >&5
41493
41494         ac_cv_have_decl_altzone=no
41495 fi
41496
41497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41498 fi
41499 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_altzone" >&5
41500 echo "${ECHO_T}$ac_cv_have_decl_altzone" >&6; }
41501 if test $ac_cv_have_decl_altzone = yes; then
41502
41503 cat >>confdefs.h <<_ACEOF
41504 #define HAVE_DECL_ALTZONE 1
41505 _ACEOF
41506
41507
41508 else
41509   cat >>confdefs.h <<_ACEOF
41510 #define HAVE_DECL_ALTZONE 0
41511 _ACEOF
41512
41513
41514 fi
41515
41516
41517 fi
41518
41519
41520
41521
41522 cv=`echo "sa_family_t" | sed 'y%./+- %__p__%'`
41523 { echo "$as_me:$LINENO: checking for sa_family_t" >&5
41524 echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6; }
41525 if { as_var=ac_cv_type_$cv; eval "test \"\${$as_var+set}\" = set"; }; then
41526   echo $ECHO_N "(cached) $ECHO_C" >&6
41527 else
41528   cat >conftest.$ac_ext <<_ACEOF
41529 /* confdefs.h.  */
41530 _ACEOF
41531 cat confdefs.h >>conftest.$ac_ext
41532 cat >>conftest.$ac_ext <<_ACEOF
41533 /* end confdefs.h.  */
41534
41535 #include <sys/types.h>
41536 #if STDC_HEADERS
41537 #include <stdlib.h>
41538 #include <stddef.h>
41539 #endif
41540
41541 #include <sys/types.h>
41542 #include <sys/socket.h>
41543 int
41544 main ()
41545 {
41546 sa_family_t foo;
41547   ;
41548   return 0;
41549 }
41550 _ACEOF
41551 rm -f conftest.$ac_objext
41552 if { (ac_try="$ac_compile"
41553 case "(($ac_try" in
41554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41555   *) ac_try_echo=$ac_try;;
41556 esac
41557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41558   (eval "$ac_compile") 2>conftest.er1
41559   ac_status=$?
41560   grep -v '^ *+' conftest.er1 >conftest.err
41561   rm -f conftest.er1
41562   cat conftest.err >&5
41563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41564   (exit $ac_status); } && {
41565          test -z "$ac_c_werror_flag" ||
41566          test ! -s conftest.err
41567        } && test -s conftest.$ac_objext; then
41568   eval "ac_cv_type_$cv=yes"
41569 else
41570   echo "$as_me: failed program was:" >&5
41571 sed 's/^/| /' conftest.$ac_ext >&5
41572
41573         eval "ac_cv_type_$cv=no"
41574 fi
41575
41576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41577 fi
41578 ac_foo=`eval echo \\$ac_cv_type_$cv`
41579 { echo "$as_me:$LINENO: result: $ac_foo" >&5
41580 echo "${ECHO_T}$ac_foo" >&6; }
41581 if test "$ac_foo" = yes; then
41582   ac_tr_hdr=HAVE_`echo sa_family_t | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
41583 if false; then
41584         { echo "$as_me:$LINENO: checking for sa_family_t" >&5
41585 echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6; }
41586 if test "${ac_cv_type_sa_family_t+set}" = set; then
41587   echo $ECHO_N "(cached) $ECHO_C" >&6
41588 else
41589   cat >conftest.$ac_ext <<_ACEOF
41590 /* confdefs.h.  */
41591 _ACEOF
41592 cat confdefs.h >>conftest.$ac_ext
41593 cat >>conftest.$ac_ext <<_ACEOF
41594 /* end confdefs.h.  */
41595 $ac_includes_default
41596 typedef sa_family_t ac__type_new_;
41597 int
41598 main ()
41599 {
41600 if ((ac__type_new_ *) 0)
41601   return 0;
41602 if (sizeof (ac__type_new_))
41603   return 0;
41604   ;
41605   return 0;
41606 }
41607 _ACEOF
41608 rm -f conftest.$ac_objext
41609 if { (ac_try="$ac_compile"
41610 case "(($ac_try" in
41611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41612   *) ac_try_echo=$ac_try;;
41613 esac
41614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41615   (eval "$ac_compile") 2>conftest.er1
41616   ac_status=$?
41617   grep -v '^ *+' conftest.er1 >conftest.err
41618   rm -f conftest.er1
41619   cat conftest.err >&5
41620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41621   (exit $ac_status); } && {
41622          test -z "$ac_c_werror_flag" ||
41623          test ! -s conftest.err
41624        } && test -s conftest.$ac_objext; then
41625   ac_cv_type_sa_family_t=yes
41626 else
41627   echo "$as_me: failed program was:" >&5
41628 sed 's/^/| /' conftest.$ac_ext >&5
41629
41630         ac_cv_type_sa_family_t=no
41631 fi
41632
41633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41634 fi
41635 { echo "$as_me:$LINENO: result: $ac_cv_type_sa_family_t" >&5
41636 echo "${ECHO_T}$ac_cv_type_sa_family_t" >&6; }
41637 if test $ac_cv_type_sa_family_t = yes; then
41638
41639 cat >>confdefs.h <<_ACEOF
41640 #define HAVE_SA_FAMILY_T 1
41641 _ACEOF
41642
41643
41644 fi
41645
41646 fi
41647
41648 cat >>confdefs.h <<_ACEOF
41649 #define $ac_tr_hdr 1
41650 _ACEOF
41651
41652 fi
41653
41654
41655
41656 cv=`echo "socklen_t" | sed 'y%./+- %__p__%'`
41657 { echo "$as_me:$LINENO: checking for socklen_t" >&5
41658 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
41659 if { as_var=ac_cv_type_$cv; eval "test \"\${$as_var+set}\" = set"; }; then
41660   echo $ECHO_N "(cached) $ECHO_C" >&6
41661 else
41662   cat >conftest.$ac_ext <<_ACEOF
41663 /* confdefs.h.  */
41664 _ACEOF
41665 cat confdefs.h >>conftest.$ac_ext
41666 cat >>conftest.$ac_ext <<_ACEOF
41667 /* end confdefs.h.  */
41668
41669 #include <sys/types.h>
41670 #if STDC_HEADERS
41671 #include <stdlib.h>
41672 #include <stddef.h>
41673 #endif
41674
41675 #include <sys/types.h>
41676 #include <sys/socket.h>
41677 int
41678 main ()
41679 {
41680 socklen_t foo;
41681   ;
41682   return 0;
41683 }
41684 _ACEOF
41685 rm -f conftest.$ac_objext
41686 if { (ac_try="$ac_compile"
41687 case "(($ac_try" in
41688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41689   *) ac_try_echo=$ac_try;;
41690 esac
41691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41692   (eval "$ac_compile") 2>conftest.er1
41693   ac_status=$?
41694   grep -v '^ *+' conftest.er1 >conftest.err
41695   rm -f conftest.er1
41696   cat conftest.err >&5
41697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41698   (exit $ac_status); } && {
41699          test -z "$ac_c_werror_flag" ||
41700          test ! -s conftest.err
41701        } && test -s conftest.$ac_objext; then
41702   eval "ac_cv_type_$cv=yes"
41703 else
41704   echo "$as_me: failed program was:" >&5
41705 sed 's/^/| /' conftest.$ac_ext >&5
41706
41707         eval "ac_cv_type_$cv=no"
41708 fi
41709
41710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41711 fi
41712 ac_foo=`eval echo \\$ac_cv_type_$cv`
41713 { echo "$as_me:$LINENO: result: $ac_foo" >&5
41714 echo "${ECHO_T}$ac_foo" >&6; }
41715 if test "$ac_foo" = yes; then
41716   ac_tr_hdr=HAVE_`echo socklen_t | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
41717 if false; then
41718         { echo "$as_me:$LINENO: checking for socklen_t" >&5
41719 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
41720 if test "${ac_cv_type_socklen_t+set}" = set; then
41721   echo $ECHO_N "(cached) $ECHO_C" >&6
41722 else
41723   cat >conftest.$ac_ext <<_ACEOF
41724 /* confdefs.h.  */
41725 _ACEOF
41726 cat confdefs.h >>conftest.$ac_ext
41727 cat >>conftest.$ac_ext <<_ACEOF
41728 /* end confdefs.h.  */
41729 $ac_includes_default
41730 typedef socklen_t ac__type_new_;
41731 int
41732 main ()
41733 {
41734 if ((ac__type_new_ *) 0)
41735   return 0;
41736 if (sizeof (ac__type_new_))
41737   return 0;
41738   ;
41739   return 0;
41740 }
41741 _ACEOF
41742 rm -f conftest.$ac_objext
41743 if { (ac_try="$ac_compile"
41744 case "(($ac_try" in
41745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41746   *) ac_try_echo=$ac_try;;
41747 esac
41748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41749   (eval "$ac_compile") 2>conftest.er1
41750   ac_status=$?
41751   grep -v '^ *+' conftest.er1 >conftest.err
41752   rm -f conftest.er1
41753   cat conftest.err >&5
41754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41755   (exit $ac_status); } && {
41756          test -z "$ac_c_werror_flag" ||
41757          test ! -s conftest.err
41758        } && test -s conftest.$ac_objext; then
41759   ac_cv_type_socklen_t=yes
41760 else
41761   echo "$as_me: failed program was:" >&5
41762 sed 's/^/| /' conftest.$ac_ext >&5
41763
41764         ac_cv_type_socklen_t=no
41765 fi
41766
41767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41768 fi
41769 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
41770 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
41771 if test $ac_cv_type_socklen_t = yes; then
41772
41773 cat >>confdefs.h <<_ACEOF
41774 #define HAVE_SOCKLEN_T 1
41775 _ACEOF
41776
41777
41778 fi
41779
41780 fi
41781
41782 cat >>confdefs.h <<_ACEOF
41783 #define $ac_tr_hdr 1
41784 _ACEOF
41785
41786 fi
41787
41788
41789
41790 cv=`echo "struct sockaddr" | sed 'y%./+- %__p__%'`
41791 { echo "$as_me:$LINENO: checking for struct sockaddr" >&5
41792 echo $ECHO_N "checking for struct sockaddr... $ECHO_C" >&6; }
41793 if { as_var=ac_cv_type_$cv; eval "test \"\${$as_var+set}\" = set"; }; then
41794   echo $ECHO_N "(cached) $ECHO_C" >&6
41795 else
41796   cat >conftest.$ac_ext <<_ACEOF
41797 /* confdefs.h.  */
41798 _ACEOF
41799 cat confdefs.h >>conftest.$ac_ext
41800 cat >>conftest.$ac_ext <<_ACEOF
41801 /* end confdefs.h.  */
41802
41803 #include <sys/types.h>
41804 #if STDC_HEADERS
41805 #include <stdlib.h>
41806 #include <stddef.h>
41807 #endif
41808
41809 #include <sys/types.h>
41810 #include <sys/socket.h>
41811 int
41812 main ()
41813 {
41814 struct sockaddr foo;
41815   ;
41816   return 0;
41817 }
41818 _ACEOF
41819 rm -f conftest.$ac_objext
41820 if { (ac_try="$ac_compile"
41821 case "(($ac_try" in
41822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41823   *) ac_try_echo=$ac_try;;
41824 esac
41825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41826   (eval "$ac_compile") 2>conftest.er1
41827   ac_status=$?
41828   grep -v '^ *+' conftest.er1 >conftest.err
41829   rm -f conftest.er1
41830   cat conftest.err >&5
41831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41832   (exit $ac_status); } && {
41833          test -z "$ac_c_werror_flag" ||
41834          test ! -s conftest.err
41835        } && test -s conftest.$ac_objext; then
41836   eval "ac_cv_type_$cv=yes"
41837 else
41838   echo "$as_me: failed program was:" >&5
41839 sed 's/^/| /' conftest.$ac_ext >&5
41840
41841         eval "ac_cv_type_$cv=no"
41842 fi
41843
41844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41845 fi
41846 ac_foo=`eval echo \\$ac_cv_type_$cv`
41847 { echo "$as_me:$LINENO: result: $ac_foo" >&5
41848 echo "${ECHO_T}$ac_foo" >&6; }
41849 if test "$ac_foo" = yes; then
41850   ac_tr_hdr=HAVE_`echo struct sockaddr | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
41851 if false; then
41852         { echo "$as_me:$LINENO: checking for struct sockaddr" >&5
41853 echo $ECHO_N "checking for struct sockaddr... $ECHO_C" >&6; }
41854 if test "${ac_cv_type_struct_sockaddr+set}" = set; then
41855   echo $ECHO_N "(cached) $ECHO_C" >&6
41856 else
41857   cat >conftest.$ac_ext <<_ACEOF
41858 /* confdefs.h.  */
41859 _ACEOF
41860 cat confdefs.h >>conftest.$ac_ext
41861 cat >>conftest.$ac_ext <<_ACEOF
41862 /* end confdefs.h.  */
41863 $ac_includes_default
41864 typedef struct sockaddr ac__type_new_;
41865 int
41866 main ()
41867 {
41868 if ((ac__type_new_ *) 0)
41869   return 0;
41870 if (sizeof (ac__type_new_))
41871   return 0;
41872   ;
41873   return 0;
41874 }
41875 _ACEOF
41876 rm -f conftest.$ac_objext
41877 if { (ac_try="$ac_compile"
41878 case "(($ac_try" in
41879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41880   *) ac_try_echo=$ac_try;;
41881 esac
41882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41883   (eval "$ac_compile") 2>conftest.er1
41884   ac_status=$?
41885   grep -v '^ *+' conftest.er1 >conftest.err
41886   rm -f conftest.er1
41887   cat conftest.err >&5
41888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41889   (exit $ac_status); } && {
41890          test -z "$ac_c_werror_flag" ||
41891          test ! -s conftest.err
41892        } && test -s conftest.$ac_objext; then
41893   ac_cv_type_struct_sockaddr=yes
41894 else
41895   echo "$as_me: failed program was:" >&5
41896 sed 's/^/| /' conftest.$ac_ext >&5
41897
41898         ac_cv_type_struct_sockaddr=no
41899 fi
41900
41901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41902 fi
41903 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr" >&5
41904 echo "${ECHO_T}$ac_cv_type_struct_sockaddr" >&6; }
41905 if test $ac_cv_type_struct_sockaddr = yes; then
41906
41907 cat >>confdefs.h <<_ACEOF
41908 #define HAVE_STRUCT_SOCKADDR 1
41909 _ACEOF
41910
41911
41912 fi
41913
41914 fi
41915
41916 cat >>confdefs.h <<_ACEOF
41917 #define $ac_tr_hdr 1
41918 _ACEOF
41919
41920 fi
41921
41922
41923
41924 cv=`echo "struct sockaddr_storage" | sed 'y%./+- %__p__%'`
41925 { echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
41926 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6; }
41927 if { as_var=ac_cv_type_$cv; eval "test \"\${$as_var+set}\" = set"; }; then
41928   echo $ECHO_N "(cached) $ECHO_C" >&6
41929 else
41930   cat >conftest.$ac_ext <<_ACEOF
41931 /* confdefs.h.  */
41932 _ACEOF
41933 cat confdefs.h >>conftest.$ac_ext
41934 cat >>conftest.$ac_ext <<_ACEOF
41935 /* end confdefs.h.  */
41936
41937 #include <sys/types.h>
41938 #if STDC_HEADERS
41939 #include <stdlib.h>
41940 #include <stddef.h>
41941 #endif
41942
41943 #include <sys/types.h>
41944 #include <sys/socket.h>
41945 int
41946 main ()
41947 {
41948 struct sockaddr_storage foo;
41949   ;
41950   return 0;
41951 }
41952 _ACEOF
41953 rm -f conftest.$ac_objext
41954 if { (ac_try="$ac_compile"
41955 case "(($ac_try" in
41956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41957   *) ac_try_echo=$ac_try;;
41958 esac
41959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41960   (eval "$ac_compile") 2>conftest.er1
41961   ac_status=$?
41962   grep -v '^ *+' conftest.er1 >conftest.err
41963   rm -f conftest.er1
41964   cat conftest.err >&5
41965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41966   (exit $ac_status); } && {
41967          test -z "$ac_c_werror_flag" ||
41968          test ! -s conftest.err
41969        } && test -s conftest.$ac_objext; then
41970   eval "ac_cv_type_$cv=yes"
41971 else
41972   echo "$as_me: failed program was:" >&5
41973 sed 's/^/| /' conftest.$ac_ext >&5
41974
41975         eval "ac_cv_type_$cv=no"
41976 fi
41977
41978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41979 fi
41980 ac_foo=`eval echo \\$ac_cv_type_$cv`
41981 { echo "$as_me:$LINENO: result: $ac_foo" >&5
41982 echo "${ECHO_T}$ac_foo" >&6; }
41983 if test "$ac_foo" = yes; then
41984   ac_tr_hdr=HAVE_`echo struct sockaddr_storage | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
41985 if false; then
41986         { echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
41987 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6; }
41988 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
41989   echo $ECHO_N "(cached) $ECHO_C" >&6
41990 else
41991   cat >conftest.$ac_ext <<_ACEOF
41992 /* confdefs.h.  */
41993 _ACEOF
41994 cat confdefs.h >>conftest.$ac_ext
41995 cat >>conftest.$ac_ext <<_ACEOF
41996 /* end confdefs.h.  */
41997 $ac_includes_default
41998 typedef struct sockaddr_storage ac__type_new_;
41999 int
42000 main ()
42001 {
42002 if ((ac__type_new_ *) 0)
42003   return 0;
42004 if (sizeof (ac__type_new_))
42005   return 0;
42006   ;
42007   return 0;
42008 }
42009 _ACEOF
42010 rm -f conftest.$ac_objext
42011 if { (ac_try="$ac_compile"
42012 case "(($ac_try" in
42013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42014   *) ac_try_echo=$ac_try;;
42015 esac
42016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42017   (eval "$ac_compile") 2>conftest.er1
42018   ac_status=$?
42019   grep -v '^ *+' conftest.er1 >conftest.err
42020   rm -f conftest.er1
42021   cat conftest.err >&5
42022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42023   (exit $ac_status); } && {
42024          test -z "$ac_c_werror_flag" ||
42025          test ! -s conftest.err
42026        } && test -s conftest.$ac_objext; then
42027   ac_cv_type_struct_sockaddr_storage=yes
42028 else
42029   echo "$as_me: failed program was:" >&5
42030 sed 's/^/| /' conftest.$ac_ext >&5
42031
42032         ac_cv_type_struct_sockaddr_storage=no
42033 fi
42034
42035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42036 fi
42037 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
42038 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6; }
42039 if test $ac_cv_type_struct_sockaddr_storage = yes; then
42040
42041 cat >>confdefs.h <<_ACEOF
42042 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
42043 _ACEOF
42044
42045
42046 fi
42047
42048 fi
42049
42050 cat >>confdefs.h <<_ACEOF
42051 #define $ac_tr_hdr 1
42052 _ACEOF
42053
42054 fi
42055
42056
42057
42058 cv=`echo "struct addrinfo" | sed 'y%./+- %__p__%'`
42059 { echo "$as_me:$LINENO: checking for struct addrinfo" >&5
42060 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6; }
42061 if { as_var=ac_cv_type_$cv; eval "test \"\${$as_var+set}\" = set"; }; then
42062   echo $ECHO_N "(cached) $ECHO_C" >&6
42063 else
42064   cat >conftest.$ac_ext <<_ACEOF
42065 /* confdefs.h.  */
42066 _ACEOF
42067 cat confdefs.h >>conftest.$ac_ext
42068 cat >>conftest.$ac_ext <<_ACEOF
42069 /* end confdefs.h.  */
42070
42071 #include <sys/types.h>
42072 #if STDC_HEADERS
42073 #include <stdlib.h>
42074 #include <stddef.h>
42075 #endif
42076
42077 #include <sys/types.h>
42078 #include <netdb.h>
42079 int
42080 main ()
42081 {
42082 struct addrinfo foo;
42083   ;
42084   return 0;
42085 }
42086 _ACEOF
42087 rm -f conftest.$ac_objext
42088 if { (ac_try="$ac_compile"
42089 case "(($ac_try" in
42090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42091   *) ac_try_echo=$ac_try;;
42092 esac
42093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42094   (eval "$ac_compile") 2>conftest.er1
42095   ac_status=$?
42096   grep -v '^ *+' conftest.er1 >conftest.err
42097   rm -f conftest.er1
42098   cat conftest.err >&5
42099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42100   (exit $ac_status); } && {
42101          test -z "$ac_c_werror_flag" ||
42102          test ! -s conftest.err
42103        } && test -s conftest.$ac_objext; then
42104   eval "ac_cv_type_$cv=yes"
42105 else
42106   echo "$as_me: failed program was:" >&5
42107 sed 's/^/| /' conftest.$ac_ext >&5
42108
42109         eval "ac_cv_type_$cv=no"
42110 fi
42111
42112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42113 fi
42114 ac_foo=`eval echo \\$ac_cv_type_$cv`
42115 { echo "$as_me:$LINENO: result: $ac_foo" >&5
42116 echo "${ECHO_T}$ac_foo" >&6; }
42117 if test "$ac_foo" = yes; then
42118   ac_tr_hdr=HAVE_`echo struct addrinfo | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
42119 if false; then
42120         { echo "$as_me:$LINENO: checking for struct addrinfo" >&5
42121 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6; }
42122 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
42123   echo $ECHO_N "(cached) $ECHO_C" >&6
42124 else
42125   cat >conftest.$ac_ext <<_ACEOF
42126 /* confdefs.h.  */
42127 _ACEOF
42128 cat confdefs.h >>conftest.$ac_ext
42129 cat >>conftest.$ac_ext <<_ACEOF
42130 /* end confdefs.h.  */
42131 $ac_includes_default
42132 typedef struct addrinfo ac__type_new_;
42133 int
42134 main ()
42135 {
42136 if ((ac__type_new_ *) 0)
42137   return 0;
42138 if (sizeof (ac__type_new_))
42139   return 0;
42140   ;
42141   return 0;
42142 }
42143 _ACEOF
42144 rm -f conftest.$ac_objext
42145 if { (ac_try="$ac_compile"
42146 case "(($ac_try" in
42147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42148   *) ac_try_echo=$ac_try;;
42149 esac
42150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42151   (eval "$ac_compile") 2>conftest.er1
42152   ac_status=$?
42153   grep -v '^ *+' conftest.er1 >conftest.err
42154   rm -f conftest.er1
42155   cat conftest.err >&5
42156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42157   (exit $ac_status); } && {
42158          test -z "$ac_c_werror_flag" ||
42159          test ! -s conftest.err
42160        } && test -s conftest.$ac_objext; then
42161   ac_cv_type_struct_addrinfo=yes
42162 else
42163   echo "$as_me: failed program was:" >&5
42164 sed 's/^/| /' conftest.$ac_ext >&5
42165
42166         ac_cv_type_struct_addrinfo=no
42167 fi
42168
42169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42170 fi
42171 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
42172 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6; }
42173 if test $ac_cv_type_struct_addrinfo = yes; then
42174
42175 cat >>confdefs.h <<_ACEOF
42176 #define HAVE_STRUCT_ADDRINFO 1
42177 _ACEOF
42178
42179
42180 fi
42181
42182 fi
42183
42184 cat >>confdefs.h <<_ACEOF
42185 #define $ac_tr_hdr 1
42186 _ACEOF
42187
42188 fi
42189
42190
42191
42192 cv=`echo "struct ifaddrs" | sed 'y%./+- %__p__%'`
42193 { echo "$as_me:$LINENO: checking for struct ifaddrs" >&5
42194 echo $ECHO_N "checking for struct ifaddrs... $ECHO_C" >&6; }
42195 if { as_var=ac_cv_type_$cv; eval "test \"\${$as_var+set}\" = set"; }; then
42196   echo $ECHO_N "(cached) $ECHO_C" >&6
42197 else
42198   cat >conftest.$ac_ext <<_ACEOF
42199 /* confdefs.h.  */
42200 _ACEOF
42201 cat confdefs.h >>conftest.$ac_ext
42202 cat >>conftest.$ac_ext <<_ACEOF
42203 /* end confdefs.h.  */
42204
42205 #include <sys/types.h>
42206 #if STDC_HEADERS
42207 #include <stdlib.h>
42208 #include <stddef.h>
42209 #endif
42210 #include <ifaddrs.h>
42211 int
42212 main ()
42213 {
42214 struct ifaddrs foo;
42215   ;
42216   return 0;
42217 }
42218 _ACEOF
42219 rm -f conftest.$ac_objext
42220 if { (ac_try="$ac_compile"
42221 case "(($ac_try" in
42222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42223   *) ac_try_echo=$ac_try;;
42224 esac
42225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42226   (eval "$ac_compile") 2>conftest.er1
42227   ac_status=$?
42228   grep -v '^ *+' conftest.er1 >conftest.err
42229   rm -f conftest.er1
42230   cat conftest.err >&5
42231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42232   (exit $ac_status); } && {
42233          test -z "$ac_c_werror_flag" ||
42234          test ! -s conftest.err
42235        } && test -s conftest.$ac_objext; then
42236   eval "ac_cv_type_$cv=yes"
42237 else
42238   echo "$as_me: failed program was:" >&5
42239 sed 's/^/| /' conftest.$ac_ext >&5
42240
42241         eval "ac_cv_type_$cv=no"
42242 fi
42243
42244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42245 fi
42246 ac_foo=`eval echo \\$ac_cv_type_$cv`
42247 { echo "$as_me:$LINENO: result: $ac_foo" >&5
42248 echo "${ECHO_T}$ac_foo" >&6; }
42249 if test "$ac_foo" = yes; then
42250   ac_tr_hdr=HAVE_`echo struct ifaddrs | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
42251 if false; then
42252         { echo "$as_me:$LINENO: checking for struct ifaddrs" >&5
42253 echo $ECHO_N "checking for struct ifaddrs... $ECHO_C" >&6; }
42254 if test "${ac_cv_type_struct_ifaddrs+set}" = set; then
42255   echo $ECHO_N "(cached) $ECHO_C" >&6
42256 else
42257   cat >conftest.$ac_ext <<_ACEOF
42258 /* confdefs.h.  */
42259 _ACEOF
42260 cat confdefs.h >>conftest.$ac_ext
42261 cat >>conftest.$ac_ext <<_ACEOF
42262 /* end confdefs.h.  */
42263 $ac_includes_default
42264 typedef struct ifaddrs ac__type_new_;
42265 int
42266 main ()
42267 {
42268 if ((ac__type_new_ *) 0)
42269   return 0;
42270 if (sizeof (ac__type_new_))
42271   return 0;
42272   ;
42273   return 0;
42274 }
42275 _ACEOF
42276 rm -f conftest.$ac_objext
42277 if { (ac_try="$ac_compile"
42278 case "(($ac_try" in
42279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42280   *) ac_try_echo=$ac_try;;
42281 esac
42282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42283   (eval "$ac_compile") 2>conftest.er1
42284   ac_status=$?
42285   grep -v '^ *+' conftest.er1 >conftest.err
42286   rm -f conftest.er1
42287   cat conftest.err >&5
42288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42289   (exit $ac_status); } && {
42290          test -z "$ac_c_werror_flag" ||
42291          test ! -s conftest.err
42292        } && test -s conftest.$ac_objext; then
42293   ac_cv_type_struct_ifaddrs=yes
42294 else
42295   echo "$as_me: failed program was:" >&5
42296 sed 's/^/| /' conftest.$ac_ext >&5
42297
42298         ac_cv_type_struct_ifaddrs=no
42299 fi
42300
42301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42302 fi
42303 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_ifaddrs" >&5
42304 echo "${ECHO_T}$ac_cv_type_struct_ifaddrs" >&6; }
42305 if test $ac_cv_type_struct_ifaddrs = yes; then
42306
42307 cat >>confdefs.h <<_ACEOF
42308 #define HAVE_STRUCT_IFADDRS 1
42309 _ACEOF
42310
42311
42312 fi
42313
42314 fi
42315
42316 cat >>confdefs.h <<_ACEOF
42317 #define $ac_tr_hdr 1
42318 _ACEOF
42319
42320 fi
42321
42322
42323
42324 cv=`echo "struct iovec" | sed 'y%./+- %__p__%'`
42325 { echo "$as_me:$LINENO: checking for struct iovec" >&5
42326 echo $ECHO_N "checking for struct iovec... $ECHO_C" >&6; }
42327 if { as_var=ac_cv_type_$cv; eval "test \"\${$as_var+set}\" = set"; }; then
42328   echo $ECHO_N "(cached) $ECHO_C" >&6
42329 else
42330   cat >conftest.$ac_ext <<_ACEOF
42331 /* confdefs.h.  */
42332 _ACEOF
42333 cat confdefs.h >>conftest.$ac_ext
42334 cat >>conftest.$ac_ext <<_ACEOF
42335 /* end confdefs.h.  */
42336
42337 #include <sys/types.h>
42338 #if STDC_HEADERS
42339 #include <stdlib.h>
42340 #include <stddef.h>
42341 #endif
42342
42343 #include <sys/types.h>
42344 #include <sys/uio.h>
42345
42346 int
42347 main ()
42348 {
42349 struct iovec foo;
42350   ;
42351   return 0;
42352 }
42353 _ACEOF
42354 rm -f conftest.$ac_objext
42355 if { (ac_try="$ac_compile"
42356 case "(($ac_try" in
42357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42358   *) ac_try_echo=$ac_try;;
42359 esac
42360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42361   (eval "$ac_compile") 2>conftest.er1
42362   ac_status=$?
42363   grep -v '^ *+' conftest.er1 >conftest.err
42364   rm -f conftest.er1
42365   cat conftest.err >&5
42366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42367   (exit $ac_status); } && {
42368          test -z "$ac_c_werror_flag" ||
42369          test ! -s conftest.err
42370        } && test -s conftest.$ac_objext; then
42371   eval "ac_cv_type_$cv=yes"
42372 else
42373   echo "$as_me: failed program was:" >&5
42374 sed 's/^/| /' conftest.$ac_ext >&5
42375
42376         eval "ac_cv_type_$cv=no"
42377 fi
42378
42379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42380 fi
42381 ac_foo=`eval echo \\$ac_cv_type_$cv`
42382 { echo "$as_me:$LINENO: result: $ac_foo" >&5
42383 echo "${ECHO_T}$ac_foo" >&6; }
42384 if test "$ac_foo" = yes; then
42385   ac_tr_hdr=HAVE_`echo struct iovec | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
42386 if false; then
42387         { echo "$as_me:$LINENO: checking for struct iovec" >&5
42388 echo $ECHO_N "checking for struct iovec... $ECHO_C" >&6; }
42389 if test "${ac_cv_type_struct_iovec+set}" = set; then
42390   echo $ECHO_N "(cached) $ECHO_C" >&6
42391 else
42392   cat >conftest.$ac_ext <<_ACEOF
42393 /* confdefs.h.  */
42394 _ACEOF
42395 cat confdefs.h >>conftest.$ac_ext
42396 cat >>conftest.$ac_ext <<_ACEOF
42397 /* end confdefs.h.  */
42398 $ac_includes_default
42399 typedef struct iovec ac__type_new_;
42400 int
42401 main ()
42402 {
42403 if ((ac__type_new_ *) 0)
42404   return 0;
42405 if (sizeof (ac__type_new_))
42406   return 0;
42407   ;
42408   return 0;
42409 }
42410 _ACEOF
42411 rm -f conftest.$ac_objext
42412 if { (ac_try="$ac_compile"
42413 case "(($ac_try" in
42414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42415   *) ac_try_echo=$ac_try;;
42416 esac
42417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42418   (eval "$ac_compile") 2>conftest.er1
42419   ac_status=$?
42420   grep -v '^ *+' conftest.er1 >conftest.err
42421   rm -f conftest.er1
42422   cat conftest.err >&5
42423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42424   (exit $ac_status); } && {
42425          test -z "$ac_c_werror_flag" ||
42426          test ! -s conftest.err
42427        } && test -s conftest.$ac_objext; then
42428   ac_cv_type_struct_iovec=yes
42429 else
42430   echo "$as_me: failed program was:" >&5
42431 sed 's/^/| /' conftest.$ac_ext >&5
42432
42433         ac_cv_type_struct_iovec=no
42434 fi
42435
42436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42437 fi
42438 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_iovec" >&5
42439 echo "${ECHO_T}$ac_cv_type_struct_iovec" >&6; }
42440 if test $ac_cv_type_struct_iovec = yes; then
42441
42442 cat >>confdefs.h <<_ACEOF
42443 #define HAVE_STRUCT_IOVEC 1
42444 _ACEOF
42445
42446
42447 fi
42448
42449 fi
42450
42451 cat >>confdefs.h <<_ACEOF
42452 #define $ac_tr_hdr 1
42453 _ACEOF
42454
42455 fi
42456
42457
42458
42459 cv=`echo "struct msghdr" | sed 'y%./+- %__p__%'`
42460 { echo "$as_me:$LINENO: checking for struct msghdr" >&5
42461 echo $ECHO_N "checking for struct msghdr... $ECHO_C" >&6; }
42462 if { as_var=ac_cv_type_$cv; eval "test \"\${$as_var+set}\" = set"; }; then
42463   echo $ECHO_N "(cached) $ECHO_C" >&6
42464 else
42465   cat >conftest.$ac_ext <<_ACEOF
42466 /* confdefs.h.  */
42467 _ACEOF
42468 cat confdefs.h >>conftest.$ac_ext
42469 cat >>conftest.$ac_ext <<_ACEOF
42470 /* end confdefs.h.  */
42471
42472 #include <sys/types.h>
42473 #if STDC_HEADERS
42474 #include <stdlib.h>
42475 #include <stddef.h>
42476 #endif
42477
42478 #include <sys/types.h>
42479 #include <sys/socket.h>
42480
42481 int
42482 main ()
42483 {
42484 struct msghdr foo;
42485   ;
42486   return 0;
42487 }
42488 _ACEOF
42489 rm -f conftest.$ac_objext
42490 if { (ac_try="$ac_compile"
42491 case "(($ac_try" in
42492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42493   *) ac_try_echo=$ac_try;;
42494 esac
42495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42496   (eval "$ac_compile") 2>conftest.er1
42497   ac_status=$?
42498   grep -v '^ *+' conftest.er1 >conftest.err
42499   rm -f conftest.er1
42500   cat conftest.err >&5
42501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42502   (exit $ac_status); } && {
42503          test -z "$ac_c_werror_flag" ||
42504          test ! -s conftest.err
42505        } && test -s conftest.$ac_objext; then
42506   eval "ac_cv_type_$cv=yes"
42507 else
42508   echo "$as_me: failed program was:" >&5
42509 sed 's/^/| /' conftest.$ac_ext >&5
42510
42511         eval "ac_cv_type_$cv=no"
42512 fi
42513
42514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42515 fi
42516 ac_foo=`eval echo \\$ac_cv_type_$cv`
42517 { echo "$as_me:$LINENO: result: $ac_foo" >&5
42518 echo "${ECHO_T}$ac_foo" >&6; }
42519 if test "$ac_foo" = yes; then
42520   ac_tr_hdr=HAVE_`echo struct msghdr | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
42521 if false; then
42522         { echo "$as_me:$LINENO: checking for struct msghdr" >&5
42523 echo $ECHO_N "checking for struct msghdr... $ECHO_C" >&6; }
42524 if test "${ac_cv_type_struct_msghdr+set}" = set; then
42525   echo $ECHO_N "(cached) $ECHO_C" >&6
42526 else
42527   cat >conftest.$ac_ext <<_ACEOF
42528 /* confdefs.h.  */
42529 _ACEOF
42530 cat confdefs.h >>conftest.$ac_ext
42531 cat >>conftest.$ac_ext <<_ACEOF
42532 /* end confdefs.h.  */
42533 $ac_includes_default
42534 typedef struct msghdr ac__type_new_;
42535 int
42536 main ()
42537 {
42538 if ((ac__type_new_ *) 0)
42539   return 0;
42540 if (sizeof (ac__type_new_))
42541   return 0;
42542   ;
42543   return 0;
42544 }
42545 _ACEOF
42546 rm -f conftest.$ac_objext
42547 if { (ac_try="$ac_compile"
42548 case "(($ac_try" in
42549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42550   *) ac_try_echo=$ac_try;;
42551 esac
42552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42553   (eval "$ac_compile") 2>conftest.er1
42554   ac_status=$?
42555   grep -v '^ *+' conftest.er1 >conftest.err
42556   rm -f conftest.er1
42557   cat conftest.err >&5
42558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42559   (exit $ac_status); } && {
42560          test -z "$ac_c_werror_flag" ||
42561          test ! -s conftest.err
42562        } && test -s conftest.$ac_objext; then
42563   ac_cv_type_struct_msghdr=yes
42564 else
42565   echo "$as_me: failed program was:" >&5
42566 sed 's/^/| /' conftest.$ac_ext >&5
42567
42568         ac_cv_type_struct_msghdr=no
42569 fi
42570
42571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42572 fi
42573 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_msghdr" >&5
42574 echo "${ECHO_T}$ac_cv_type_struct_msghdr" >&6; }
42575 if test $ac_cv_type_struct_msghdr = yes; then
42576
42577 cat >>confdefs.h <<_ACEOF
42578 #define HAVE_STRUCT_MSGHDR 1
42579 _ACEOF
42580
42581
42582 fi
42583
42584 fi
42585
42586 cat >>confdefs.h <<_ACEOF
42587 #define $ac_tr_hdr 1
42588 _ACEOF
42589
42590 fi
42591
42592
42593
42594
42595 { echo "$as_me:$LINENO: checking for struct winsize" >&5
42596 echo $ECHO_N "checking for struct winsize... $ECHO_C" >&6; }
42597 if test "${ac_cv_struct_winsize+set}" = set; then
42598   echo $ECHO_N "(cached) $ECHO_C" >&6
42599 else
42600
42601 ac_cv_struct_winsize=no
42602 for i in sys/termios.h sys/ioctl.h; do
42603 cat >conftest.$ac_ext <<_ACEOF
42604 /* confdefs.h.  */
42605 _ACEOF
42606 cat confdefs.h >>conftest.$ac_ext
42607 cat >>conftest.$ac_ext <<_ACEOF
42608 /* end confdefs.h.  */
42609 #include <$i>
42610
42611 _ACEOF
42612 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42613   $EGREP "struct[       ]*winsize" >/dev/null 2>&1; then
42614   ac_cv_struct_winsize=yes; break
42615 fi
42616 rm -f conftest*
42617 done
42618
42619 fi
42620
42621 if test "$ac_cv_struct_winsize" = "yes"; then
42622
42623 cat >>confdefs.h <<\_ACEOF
42624 #define HAVE_STRUCT_WINSIZE 1
42625 _ACEOF
42626
42627 fi
42628 { echo "$as_me:$LINENO: result: $ac_cv_struct_winsize" >&5
42629 echo "${ECHO_T}$ac_cv_struct_winsize" >&6; }
42630 cat >conftest.$ac_ext <<_ACEOF
42631 /* confdefs.h.  */
42632 _ACEOF
42633 cat confdefs.h >>conftest.$ac_ext
42634 cat >>conftest.$ac_ext <<_ACEOF
42635 /* end confdefs.h.  */
42636 #include <termios.h>
42637
42638 _ACEOF
42639 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42640   $EGREP "ws_xpixel" >/dev/null 2>&1; then
42641
42642 cat >>confdefs.h <<\_ACEOF
42643 #define HAVE_WS_XPIXEL 1
42644 _ACEOF
42645
42646 fi
42647 rm -f conftest*
42648
42649 cat >conftest.$ac_ext <<_ACEOF
42650 /* confdefs.h.  */
42651 _ACEOF
42652 cat confdefs.h >>conftest.$ac_ext
42653 cat >>conftest.$ac_ext <<_ACEOF
42654 /* end confdefs.h.  */
42655 #include <termios.h>
42656
42657 _ACEOF
42658 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42659   $EGREP "ws_ypixel" >/dev/null 2>&1; then
42660
42661 cat >>confdefs.h <<\_ACEOF
42662 #define HAVE_WS_YPIXEL 1
42663 _ACEOF
42664
42665 fi
42666 rm -f conftest*
42667
42668
42669
42670
42671
42672 { echo "$as_me:$LINENO: checking for struct spwd" >&5
42673 echo $ECHO_N "checking for struct spwd... $ECHO_C" >&6; }
42674 if test "${ac_cv_struct_spwd+set}" = set; then
42675   echo $ECHO_N "(cached) $ECHO_C" >&6
42676 else
42677
42678 cat >conftest.$ac_ext <<_ACEOF
42679 /* confdefs.h.  */
42680 _ACEOF
42681 cat confdefs.h >>conftest.$ac_ext
42682 cat >>conftest.$ac_ext <<_ACEOF
42683 /* end confdefs.h.  */
42684
42685 #include <pwd.h>
42686 #ifdef HAVE_SHADOW_H
42687 #include <shadow.h>
42688 #endif
42689 int
42690 main ()
42691 {
42692 struct spwd foo;
42693   ;
42694   return 0;
42695 }
42696 _ACEOF
42697 rm -f conftest.$ac_objext
42698 if { (ac_try="$ac_compile"
42699 case "(($ac_try" in
42700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42701   *) ac_try_echo=$ac_try;;
42702 esac
42703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42704   (eval "$ac_compile") 2>conftest.er1
42705   ac_status=$?
42706   grep -v '^ *+' conftest.er1 >conftest.err
42707   rm -f conftest.er1
42708   cat conftest.err >&5
42709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42710   (exit $ac_status); } && {
42711          test -z "$ac_c_werror_flag" ||
42712          test ! -s conftest.err
42713        } && test -s conftest.$ac_objext; then
42714   ac_cv_struct_spwd=yes
42715 else
42716   echo "$as_me: failed program was:" >&5
42717 sed 's/^/| /' conftest.$ac_ext >&5
42718
42719         ac_cv_struct_spwd=no
42720 fi
42721
42722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42723
42724 fi
42725
42726 { echo "$as_me:$LINENO: result: $ac_cv_struct_spwd" >&5
42727 echo "${ECHO_T}$ac_cv_struct_spwd" >&6; }
42728
42729 if test "$ac_cv_struct_spwd" = "yes"; then
42730
42731 cat >>confdefs.h <<\_ACEOF
42732 #define HAVE_STRUCT_SPWD 1
42733 _ACEOF
42734
42735 fi
42736
42737
42738 #
42739 # Check if we want samba's socket wrapper
42740 #
42741
42742
42743
42744 # Check whether --enable-socket-wrapper was given.
42745 if test "${enable_socket_wrapper+set}" = set; then
42746   enableval=$enable_socket_wrapper;
42747 fi
42748
42749
42750  if test "x$enable_socket_wrapper" = xyes; then
42751   have_socket_wrapper_TRUE=
42752   have_socket_wrapper_FALSE='#'
42753 else
42754   have_socket_wrapper_TRUE='#'
42755   have_socket_wrapper_FALSE=
42756 fi
42757
42758 if test "x$enable_socket_wrapper" = xyes ; then
42759
42760 cat >>confdefs.h <<\_ACEOF
42761 #define SOCKET_WRAPPER_REPLACE 1
42762 _ACEOF
42763
42764 fi
42765
42766
42767
42768
42769 LIB_roken="${LIB_roken} \$(LIB_crypt) \$(LIB_dbopen)"
42770
42771
42772 LIBADD_roken="$LIB_roken"
42773 LIB_roken="\$(top_builddir)/lib/vers/libvers.la $LIB_roken"
42774
42775
42776 # Check whether --enable-otp was given.
42777 if test "${enable_otp+set}" = set; then
42778   enableval=$enable_otp;
42779 fi
42780
42781 if test "$enable_otp" = yes -a "$db_type" = unknown; then
42782         { { echo "$as_me:$LINENO: error: OTP requires a NDBM/DB compatible library" >&5
42783 echo "$as_me: error: OTP requires a NDBM/DB compatible library" >&2;}
42784    { (exit 1); exit 1; }; }
42785 fi
42786 if test "$enable_otp" != no; then
42787         if test "$db_type" != unknown; then
42788                 enable_otp=yes
42789         else
42790                 enable_otp=no
42791         fi
42792 fi
42793 if test "$enable_otp" = yes; then
42794
42795 cat >>confdefs.h <<\_ACEOF
42796 #define OTP 1
42797 _ACEOF
42798
42799         LIB_otp='$(top_builddir)/lib/otp/libotp.la'
42800
42801 fi
42802 { echo "$as_me:$LINENO: checking whether to enable OTP library" >&5
42803 echo $ECHO_N "checking whether to enable OTP library... $ECHO_C" >&6; }
42804 { echo "$as_me:$LINENO: result: $enable_otp" >&5
42805 echo "${ECHO_T}$enable_otp" >&6; }
42806  if test "$enable_otp" = yes; then
42807   OTP_TRUE=
42808   OTP_FALSE='#'
42809 else
42810   OTP_TRUE='#'
42811   OTP_FALSE=
42812 fi
42813
42814
42815
42816 # Check whether --enable-osfc2 was given.
42817 if test "${enable_osfc2+set}" = set; then
42818   enableval=$enable_osfc2;
42819 fi
42820
42821 LIB_security=
42822 if test "$enable_osfc2" = yes; then
42823
42824 cat >>confdefs.h <<\_ACEOF
42825 #define HAVE_OSFC2 1
42826 _ACEOF
42827
42828         LIB_security=-lsecurity
42829 fi
42830
42831
42832
42833 # Check whether --enable-mmap was given.
42834 if test "${enable_mmap+set}" = set; then
42835   enableval=$enable_mmap;
42836 fi
42837
42838 if test "$enable_mmap" = "no"; then
42839
42840 cat >>confdefs.h <<\_ACEOF
42841 #define NO_MMAP 1
42842 _ACEOF
42843
42844 fi
42845
42846 # Check whether --enable-afs-string-to-key was given.
42847 if test "${enable_afs_string_to_key+set}" = set; then
42848   enableval=$enable_afs_string_to_key;
42849 else
42850   enable_afs_string_to_key=yes
42851 fi
42852
42853
42854 if test "$enable_afs_string_to_key" = "yes"; then
42855
42856 cat >>confdefs.h <<\_ACEOF
42857 #define ENABLE_AFS_STRING_TO_KEY 1
42858 _ACEOF
42859
42860 fi
42861
42862
42863 # Extract the first word of "nroff", so it can be a program name with args.
42864 set dummy nroff; ac_word=$2
42865 { echo "$as_me:$LINENO: checking for $ac_word" >&5
42866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
42867 if test "${ac_cv_path_NROFF+set}" = set; then
42868   echo $ECHO_N "(cached) $ECHO_C" >&6
42869 else
42870   case $NROFF in
42871   [\\/]* | ?:[\\/]*)
42872   ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
42873   ;;
42874   *)
42875   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42876 for as_dir in $PATH
42877 do
42878   IFS=$as_save_IFS
42879   test -z "$as_dir" && as_dir=.
42880   for ac_exec_ext in '' $ac_executable_extensions; do
42881   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42882     ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
42883     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42884     break 2
42885   fi
42886 done
42887 done
42888 IFS=$as_save_IFS
42889
42890   ;;
42891 esac
42892 fi
42893 NROFF=$ac_cv_path_NROFF
42894 if test -n "$NROFF"; then
42895   { echo "$as_me:$LINENO: result: $NROFF" >&5
42896 echo "${ECHO_T}$NROFF" >&6; }
42897 else
42898   { echo "$as_me:$LINENO: result: no" >&5
42899 echo "${ECHO_T}no" >&6; }
42900 fi
42901
42902
42903 # Extract the first word of "groff", so it can be a program name with args.
42904 set dummy groff; ac_word=$2
42905 { echo "$as_me:$LINENO: checking for $ac_word" >&5
42906 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
42907 if test "${ac_cv_path_GROFF+set}" = set; then
42908   echo $ECHO_N "(cached) $ECHO_C" >&6
42909 else
42910   case $GROFF in
42911   [\\/]* | ?:[\\/]*)
42912   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
42913   ;;
42914   *)
42915   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42916 for as_dir in $PATH
42917 do
42918   IFS=$as_save_IFS
42919   test -z "$as_dir" && as_dir=.
42920   for ac_exec_ext in '' $ac_executable_extensions; do
42921   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42922     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
42923     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42924     break 2
42925   fi
42926 done
42927 done
42928 IFS=$as_save_IFS
42929
42930   ;;
42931 esac
42932 fi
42933 GROFF=$ac_cv_path_GROFF
42934 if test -n "$GROFF"; then
42935   { echo "$as_me:$LINENO: result: $GROFF" >&5
42936 echo "${ECHO_T}$GROFF" >&6; }
42937 else
42938   { echo "$as_me:$LINENO: result: no" >&5
42939 echo "${ECHO_T}no" >&6; }
42940 fi
42941
42942
42943 { echo "$as_me:$LINENO: checking how to format man pages" >&5
42944 echo $ECHO_N "checking how to format man pages... $ECHO_C" >&6; }
42945 if test "${ac_cv_sys_man_format+set}" = set; then
42946   echo $ECHO_N "(cached) $ECHO_C" >&6
42947 else
42948   cat > conftest.1 << END
42949 .Dd January 1, 1970
42950 .Dt CONFTEST 1
42951 .Sh NAME
42952 .Nm conftest
42953 .Nd
42954 foobar
42955 END
42956
42957 if test "$NROFF" ; then
42958         for i in "-mdoc" "-mandoc"; do
42959                 if "$NROFF" $i conftest.1 2> /dev/null | \
42960                         grep Jan > /dev/null 2>&1 ; then
42961                         ac_cv_sys_man_format="$NROFF $i"
42962                         break
42963                 fi
42964         done
42965 fi
42966 if test "$ac_cv_sys_man_format" = "" -a "$GROFF" ; then
42967         for i in "-mdoc" "-mandoc"; do
42968                 if "$GROFF" -Tascii $i conftest.1 2> /dev/null | \
42969                         grep Jan > /dev/null 2>&1 ; then
42970                         ac_cv_sys_man_format="$GROFF -Tascii $i"
42971                         break
42972                 fi
42973         done
42974 fi
42975 if test "$ac_cv_sys_man_format"; then
42976         ac_cv_sys_man_format="$ac_cv_sys_man_format \$< > \$@"
42977 fi
42978
42979 fi
42980 { echo "$as_me:$LINENO: result: $ac_cv_sys_man_format" >&5
42981 echo "${ECHO_T}$ac_cv_sys_man_format" >&6; }
42982 if test "$ac_cv_sys_man_format"; then
42983         CATMAN="$ac_cv_sys_man_format"
42984
42985 fi
42986  if test "$CATMAN"; then
42987   CATMAN_TRUE=
42988   CATMAN_FALSE='#'
42989 else
42990   CATMAN_TRUE='#'
42991   CATMAN_FALSE=
42992 fi
42993
42994 { echo "$as_me:$LINENO: checking extension of pre-formatted manual pages" >&5
42995 echo $ECHO_N "checking extension of pre-formatted manual pages... $ECHO_C" >&6; }
42996 if test "${ac_cv_sys_catman_ext+set}" = set; then
42997   echo $ECHO_N "(cached) $ECHO_C" >&6
42998 else
42999   if grep _suffix /etc/man.conf > /dev/null 2>&1; then
43000         ac_cv_sys_catman_ext=0
43001 else
43002         ac_cv_sys_catman_ext=number
43003 fi
43004
43005 fi
43006 { echo "$as_me:$LINENO: result: $ac_cv_sys_catman_ext" >&5
43007 echo "${ECHO_T}$ac_cv_sys_catman_ext" >&6; }
43008 if test "$ac_cv_sys_catman_ext" = number; then
43009         CATMANEXT='$$section'
43010 else
43011         CATMANEXT=0
43012 fi
43013
43014
43015
43016
43017
43018 # Check whether --with-readline was given.
43019 if test "${with_readline+set}" = set; then
43020   withval=$with_readline;
43021 fi
43022
43023
43024 # Check whether --with-readline-lib was given.
43025 if test "${with_readline_lib+set}" = set; then
43026   withval=$with_readline_lib; if test "$withval" = "yes" -o "$withval" = "no"; then
43027   { { echo "$as_me:$LINENO: error: No argument for --with-readline-lib" >&5
43028 echo "$as_me: error: No argument for --with-readline-lib" >&2;}
43029    { (exit 1); exit 1; }; }
43030 elif test "X$with_readline" = "X"; then
43031   with_readline=yes
43032 fi
43033 fi
43034
43035
43036 # Check whether --with-readline-include was given.
43037 if test "${with_readline_include+set}" = set; then
43038   withval=$with_readline_include; if test "$withval" = "yes" -o "$withval" = "no"; then
43039   { { echo "$as_me:$LINENO: error: No argument for --with-readline-include" >&5
43040 echo "$as_me: error: No argument for --with-readline-include" >&2;}
43041    { (exit 1); exit 1; }; }
43042 elif test "X$with_readline" = "X"; then
43043   with_readline=yes
43044 fi
43045 fi
43046
43047
43048 # Check whether --with-readline-config was given.
43049 if test "${with_readline_config+set}" = set; then
43050   withval=$with_readline_config;
43051 fi
43052
43053
43054
43055
43056 { echo "$as_me:$LINENO: checking for readline" >&5
43057 echo $ECHO_N "checking for readline... $ECHO_C" >&6; }
43058
43059 case "$with_readline" in
43060 yes|"") d='' ;;
43061 no)     d= ;;
43062 *)      d="$with_readline" ;;
43063 esac
43064
43065 header_dirs=
43066 lib_dirs=
43067 for i in $d; do
43068         if test "$with_readline_include" = ""; then
43069                 if test -d "$i/include/readline"; then
43070                         header_dirs="$header_dirs $i/include/readline"
43071                 fi
43072                 if test -d "$i/include"; then
43073                         header_dirs="$header_dirs $i/include"
43074                 fi
43075         fi
43076         if test "$with_readline_lib" = ""; then
43077                 if test -d "$i/lib$abilibdirext"; then
43078                         lib_dirs="$lib_dirs $i/lib$abilibdirext"
43079                 fi
43080         fi
43081 done
43082
43083 if test "$with_readline_include"; then
43084         header_dirs="$with_readline_include $header_dirs"
43085 fi
43086 if test "$with_readline_lib"; then
43087         lib_dirs="$with_readline_lib $lib_dirs"
43088 fi
43089
43090 if test "$with_readline_config" = ""; then
43091         with_readline_config=''
43092 fi
43093
43094 readline_cflags=
43095 readline_libs=
43096
43097 case "$with_readline_config" in
43098 yes|no|""|"")
43099         if test -f $with_readline/bin/ ; then
43100                 with_readline_config=$with_readline/bin/
43101         fi
43102         ;;
43103 esac
43104
43105 case "$with_readline_config" in
43106 yes|no|"")
43107         ;;
43108 *)
43109         readline_cflags="`$with_readline_config --cflags 2>&1`"
43110         readline_libs="`$with_readline_config --libs 2>&1`"
43111         ;;
43112 esac
43113
43114 found=no
43115 if test "$with_readline" != no; then
43116         save_CFLAGS="$CFLAGS"
43117         save_LIBS="$LIBS"
43118         if test "$readline_cflags" -a "$readline_libs"; then
43119                 CFLAGS="$readline_cflags $save_CFLAGS"
43120                 LIBS="$readline_libs $save_LIBS"
43121                 cat >conftest.$ac_ext <<_ACEOF
43122 /* confdefs.h.  */
43123 _ACEOF
43124 cat confdefs.h >>conftest.$ac_ext
43125 cat >>conftest.$ac_ext <<_ACEOF
43126 /* end confdefs.h.  */
43127 #include <stdio.h>
43128  #include <readline.h>
43129 int
43130 main ()
43131 {
43132
43133   ;
43134   return 0;
43135 }
43136 _ACEOF
43137 rm -f conftest.$ac_objext conftest$ac_exeext
43138 if { (ac_try="$ac_link"
43139 case "(($ac_try" in
43140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43141   *) ac_try_echo=$ac_try;;
43142 esac
43143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43144   (eval "$ac_link") 2>conftest.er1
43145   ac_status=$?
43146   grep -v '^ *+' conftest.er1 >conftest.err
43147   rm -f conftest.er1
43148   cat conftest.err >&5
43149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43150   (exit $ac_status); } && {
43151          test -z "$ac_c_werror_flag" ||
43152          test ! -s conftest.err
43153        } && test -s conftest$ac_exeext &&
43154        $as_test_x conftest$ac_exeext; then
43155
43156                         INCLUDE_readline="$readline_cflags"
43157                         LIB_readline="$readline_libs"
43158                         { echo "$as_me:$LINENO: result: from $with_readline_config" >&5
43159 echo "${ECHO_T}from $with_readline_config" >&6; }
43160                         found=yes
43161 else
43162   echo "$as_me: failed program was:" >&5
43163 sed 's/^/| /' conftest.$ac_ext >&5
43164
43165
43166 fi
43167
43168 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43169       conftest$ac_exeext conftest.$ac_ext
43170         fi
43171         if test "$found" = no; then
43172                 ires= lres=
43173                 for i in $header_dirs; do
43174                         CFLAGS="-I$i $save_CFLAGS"
43175                         cat >conftest.$ac_ext <<_ACEOF
43176 /* confdefs.h.  */
43177 _ACEOF
43178 cat confdefs.h >>conftest.$ac_ext
43179 cat >>conftest.$ac_ext <<_ACEOF
43180 /* end confdefs.h.  */
43181 #include <stdio.h>
43182  #include <readline.h>
43183 int
43184 main ()
43185 {
43186
43187   ;
43188   return 0;
43189 }
43190 _ACEOF
43191 rm -f conftest.$ac_objext
43192 if { (ac_try="$ac_compile"
43193 case "(($ac_try" in
43194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43195   *) ac_try_echo=$ac_try;;
43196 esac
43197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43198   (eval "$ac_compile") 2>conftest.er1
43199   ac_status=$?
43200   grep -v '^ *+' conftest.er1 >conftest.err
43201   rm -f conftest.er1
43202   cat conftest.err >&5
43203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43204   (exit $ac_status); } && {
43205          test -z "$ac_c_werror_flag" ||
43206          test ! -s conftest.err
43207        } && test -s conftest.$ac_objext; then
43208   ires=$i;break
43209 else
43210   echo "$as_me: failed program was:" >&5
43211 sed 's/^/| /' conftest.$ac_ext >&5
43212
43213
43214 fi
43215
43216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43217                 done
43218                 for i in $lib_dirs; do
43219                         LIBS="-L$i -lreadline  $save_LIBS"
43220                         cat >conftest.$ac_ext <<_ACEOF
43221 /* confdefs.h.  */
43222 _ACEOF
43223 cat confdefs.h >>conftest.$ac_ext
43224 cat >>conftest.$ac_ext <<_ACEOF
43225 /* end confdefs.h.  */
43226 #include <stdio.h>
43227  #include <readline.h>
43228 int
43229 main ()
43230 {
43231
43232   ;
43233   return 0;
43234 }
43235 _ACEOF
43236 rm -f conftest.$ac_objext conftest$ac_exeext
43237 if { (ac_try="$ac_link"
43238 case "(($ac_try" in
43239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43240   *) ac_try_echo=$ac_try;;
43241 esac
43242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43243   (eval "$ac_link") 2>conftest.er1
43244   ac_status=$?
43245   grep -v '^ *+' conftest.er1 >conftest.err
43246   rm -f conftest.er1
43247   cat conftest.err >&5
43248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43249   (exit $ac_status); } && {
43250          test -z "$ac_c_werror_flag" ||
43251          test ! -s conftest.err
43252        } && test -s conftest$ac_exeext &&
43253        $as_test_x conftest$ac_exeext; then
43254   lres=$i;break
43255 else
43256   echo "$as_me: failed program was:" >&5
43257 sed 's/^/| /' conftest.$ac_ext >&5
43258
43259
43260 fi
43261
43262 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43263       conftest$ac_exeext conftest.$ac_ext
43264                 done
43265                 if test "$ires" -a "$lres" -a "$with_readline" != "no"; then
43266                         INCLUDE_readline="-I$ires"
43267                         LIB_readline="-L$lres -lreadline "
43268                         found=yes
43269                         { echo "$as_me:$LINENO: result: headers $ires, libraries $lres" >&5
43270 echo "${ECHO_T}headers $ires, libraries $lres" >&6; }
43271                 fi
43272         fi
43273         CFLAGS="$save_CFLAGS"
43274         LIBS="$save_LIBS"
43275 fi
43276
43277 if test "$found" = yes; then
43278
43279 cat >>confdefs.h <<_ACEOF
43280 #define READLINE 1
43281 _ACEOF
43282
43283         with_readline=yes
43284 else
43285         with_readline=no
43286         INCLUDE_readline=
43287         LIB_readline=
43288         { echo "$as_me:$LINENO: result: no" >&5
43289 echo "${ECHO_T}no" >&6; }
43290 fi
43291
43292
43293
43294
43295
43296
43297
43298 # Check whether --with-hesiod was given.
43299 if test "${with_hesiod+set}" = set; then
43300   withval=$with_hesiod;
43301 fi
43302
43303
43304 # Check whether --with-hesiod-lib was given.
43305 if test "${with_hesiod_lib+set}" = set; then
43306   withval=$with_hesiod_lib; if test "$withval" = "yes" -o "$withval" = "no"; then
43307   { { echo "$as_me:$LINENO: error: No argument for --with-hesiod-lib" >&5
43308 echo "$as_me: error: No argument for --with-hesiod-lib" >&2;}
43309    { (exit 1); exit 1; }; }
43310 elif test "X$with_hesiod" = "X"; then
43311   with_hesiod=yes
43312 fi
43313 fi
43314
43315
43316 # Check whether --with-hesiod-include was given.
43317 if test "${with_hesiod_include+set}" = set; then
43318   withval=$with_hesiod_include; if test "$withval" = "yes" -o "$withval" = "no"; then
43319   { { echo "$as_me:$LINENO: error: No argument for --with-hesiod-include" >&5
43320 echo "$as_me: error: No argument for --with-hesiod-include" >&2;}
43321    { (exit 1); exit 1; }; }
43322 elif test "X$with_hesiod" = "X"; then
43323   with_hesiod=yes
43324 fi
43325 fi
43326
43327
43328 # Check whether --with-hesiod-config was given.
43329 if test "${with_hesiod_config+set}" = set; then
43330   withval=$with_hesiod_config;
43331 fi
43332
43333
43334
43335
43336 { echo "$as_me:$LINENO: checking for hesiod" >&5
43337 echo $ECHO_N "checking for hesiod... $ECHO_C" >&6; }
43338
43339 case "$with_hesiod" in
43340 yes|"") d='' ;;
43341 no)     d= ;;
43342 *)      d="$with_hesiod" ;;
43343 esac
43344
43345 header_dirs=
43346 lib_dirs=
43347 for i in $d; do
43348         if test "$with_hesiod_include" = ""; then
43349                 if test -d "$i/include/hesiod"; then
43350                         header_dirs="$header_dirs $i/include/hesiod"
43351                 fi
43352                 if test -d "$i/include"; then
43353                         header_dirs="$header_dirs $i/include"
43354                 fi
43355         fi
43356         if test "$with_hesiod_lib" = ""; then
43357                 if test -d "$i/lib$abilibdirext"; then
43358                         lib_dirs="$lib_dirs $i/lib$abilibdirext"
43359                 fi
43360         fi
43361 done
43362
43363 if test "$with_hesiod_include"; then
43364         header_dirs="$with_hesiod_include $header_dirs"
43365 fi
43366 if test "$with_hesiod_lib"; then
43367         lib_dirs="$with_hesiod_lib $lib_dirs"
43368 fi
43369
43370 if test "$with_hesiod_config" = ""; then
43371         with_hesiod_config=''
43372 fi
43373
43374 hesiod_cflags=
43375 hesiod_libs=
43376
43377 case "$with_hesiod_config" in
43378 yes|no|""|"")
43379         if test -f $with_hesiod/bin/ ; then
43380                 with_hesiod_config=$with_hesiod/bin/
43381         fi
43382         ;;
43383 esac
43384
43385 case "$with_hesiod_config" in
43386 yes|no|"")
43387         ;;
43388 *)
43389         hesiod_cflags="`$with_hesiod_config --cflags 2>&1`"
43390         hesiod_libs="`$with_hesiod_config --libs 2>&1`"
43391         ;;
43392 esac
43393
43394 found=no
43395 if test "$with_hesiod" != no; then
43396         save_CFLAGS="$CFLAGS"
43397         save_LIBS="$LIBS"
43398         if test "$hesiod_cflags" -a "$hesiod_libs"; then
43399                 CFLAGS="$hesiod_cflags $save_CFLAGS"
43400                 LIBS="$hesiod_libs $save_LIBS"
43401                 cat >conftest.$ac_ext <<_ACEOF
43402 /* confdefs.h.  */
43403 _ACEOF
43404 cat confdefs.h >>conftest.$ac_ext
43405 cat >>conftest.$ac_ext <<_ACEOF
43406 /* end confdefs.h.  */
43407 #include <hesiod.h>
43408 int
43409 main ()
43410 {
43411
43412   ;
43413   return 0;
43414 }
43415 _ACEOF
43416 rm -f conftest.$ac_objext conftest$ac_exeext
43417 if { (ac_try="$ac_link"
43418 case "(($ac_try" in
43419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43420   *) ac_try_echo=$ac_try;;
43421 esac
43422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43423   (eval "$ac_link") 2>conftest.er1
43424   ac_status=$?
43425   grep -v '^ *+' conftest.er1 >conftest.err
43426   rm -f conftest.er1
43427   cat conftest.err >&5
43428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43429   (exit $ac_status); } && {
43430          test -z "$ac_c_werror_flag" ||
43431          test ! -s conftest.err
43432        } && test -s conftest$ac_exeext &&
43433        $as_test_x conftest$ac_exeext; then
43434
43435                         INCLUDE_hesiod="$hesiod_cflags"
43436                         LIB_hesiod="$hesiod_libs"
43437                         { echo "$as_me:$LINENO: result: from $with_hesiod_config" >&5
43438 echo "${ECHO_T}from $with_hesiod_config" >&6; }
43439                         found=yes
43440 else
43441   echo "$as_me: failed program was:" >&5
43442 sed 's/^/| /' conftest.$ac_ext >&5
43443
43444
43445 fi
43446
43447 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43448       conftest$ac_exeext conftest.$ac_ext
43449         fi
43450         if test "$found" = no; then
43451                 ires= lres=
43452                 for i in $header_dirs; do
43453                         CFLAGS="-I$i $save_CFLAGS"
43454                         cat >conftest.$ac_ext <<_ACEOF
43455 /* confdefs.h.  */
43456 _ACEOF
43457 cat confdefs.h >>conftest.$ac_ext
43458 cat >>conftest.$ac_ext <<_ACEOF
43459 /* end confdefs.h.  */
43460 #include <hesiod.h>
43461 int
43462 main ()
43463 {
43464
43465   ;
43466   return 0;
43467 }
43468 _ACEOF
43469 rm -f conftest.$ac_objext
43470 if { (ac_try="$ac_compile"
43471 case "(($ac_try" in
43472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43473   *) ac_try_echo=$ac_try;;
43474 esac
43475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43476   (eval "$ac_compile") 2>conftest.er1
43477   ac_status=$?
43478   grep -v '^ *+' conftest.er1 >conftest.err
43479   rm -f conftest.er1
43480   cat conftest.err >&5
43481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43482   (exit $ac_status); } && {
43483          test -z "$ac_c_werror_flag" ||
43484          test ! -s conftest.err
43485        } && test -s conftest.$ac_objext; then
43486   ires=$i;break
43487 else
43488   echo "$as_me: failed program was:" >&5
43489 sed 's/^/| /' conftest.$ac_ext >&5
43490
43491
43492 fi
43493
43494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43495                 done
43496                 for i in $lib_dirs; do
43497                         LIBS="-L$i -lhesiod  $save_LIBS"
43498                         cat >conftest.$ac_ext <<_ACEOF
43499 /* confdefs.h.  */
43500 _ACEOF
43501 cat confdefs.h >>conftest.$ac_ext
43502 cat >>conftest.$ac_ext <<_ACEOF
43503 /* end confdefs.h.  */
43504 #include <hesiod.h>
43505 int
43506 main ()
43507 {
43508
43509   ;
43510   return 0;
43511 }
43512 _ACEOF
43513 rm -f conftest.$ac_objext conftest$ac_exeext
43514 if { (ac_try="$ac_link"
43515 case "(($ac_try" in
43516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43517   *) ac_try_echo=$ac_try;;
43518 esac
43519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43520   (eval "$ac_link") 2>conftest.er1
43521   ac_status=$?
43522   grep -v '^ *+' conftest.er1 >conftest.err
43523   rm -f conftest.er1
43524   cat conftest.err >&5
43525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43526   (exit $ac_status); } && {
43527          test -z "$ac_c_werror_flag" ||
43528          test ! -s conftest.err
43529        } && test -s conftest$ac_exeext &&
43530        $as_test_x conftest$ac_exeext; then
43531   lres=$i;break
43532 else
43533   echo "$as_me: failed program was:" >&5
43534 sed 's/^/| /' conftest.$ac_ext >&5
43535
43536
43537 fi
43538
43539 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43540       conftest$ac_exeext conftest.$ac_ext
43541                 done
43542                 if test "$ires" -a "$lres" -a "$with_hesiod" != "no"; then
43543                         INCLUDE_hesiod="-I$ires"
43544                         LIB_hesiod="-L$lres -lhesiod "
43545                         found=yes
43546                         { echo "$as_me:$LINENO: result: headers $ires, libraries $lres" >&5
43547 echo "${ECHO_T}headers $ires, libraries $lres" >&6; }
43548                 fi
43549         fi
43550         CFLAGS="$save_CFLAGS"
43551         LIBS="$save_LIBS"
43552 fi
43553
43554 if test "$found" = yes; then
43555
43556 cat >>confdefs.h <<_ACEOF
43557 #define HESIOD 1
43558 _ACEOF
43559
43560         with_hesiod=yes
43561 else
43562         with_hesiod=no
43563         INCLUDE_hesiod=
43564         LIB_hesiod=
43565         { echo "$as_me:$LINENO: result: no" >&5
43566 echo "${ECHO_T}no" >&6; }
43567 fi
43568
43569
43570
43571
43572
43573
43574 # Check whether --enable-bigendian was given.
43575 if test "${enable_bigendian+set}" = set; then
43576   enableval=$enable_bigendian; krb_cv_c_bigendian=yes
43577 fi
43578
43579 # Check whether --enable-littleendian was given.
43580 if test "${enable_littleendian+set}" = set; then
43581   enableval=$enable_littleendian; krb_cv_c_bigendian=no
43582 fi
43583
43584 { echo "$as_me:$LINENO: checking whether byte order is known at compile time" >&5
43585 echo $ECHO_N "checking whether byte order is known at compile time... $ECHO_C" >&6; }
43586 if test "${krb_cv_c_bigendian_compile+set}" = set; then
43587   echo $ECHO_N "(cached) $ECHO_C" >&6
43588 else
43589   cat >conftest.$ac_ext <<_ACEOF
43590 /* confdefs.h.  */
43591 _ACEOF
43592 cat confdefs.h >>conftest.$ac_ext
43593 cat >>conftest.$ac_ext <<_ACEOF
43594 /* end confdefs.h.  */
43595
43596 #include <sys/types.h>
43597 #include <sys/param.h>
43598 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
43599  bogus endian macros
43600 #endif
43601 _ACEOF
43602 rm -f conftest.$ac_objext
43603 if { (ac_try="$ac_compile"
43604 case "(($ac_try" in
43605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43606   *) ac_try_echo=$ac_try;;
43607 esac
43608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43609   (eval "$ac_compile") 2>conftest.er1
43610   ac_status=$?
43611   grep -v '^ *+' conftest.er1 >conftest.err
43612   rm -f conftest.er1
43613   cat conftest.err >&5
43614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43615   (exit $ac_status); } && {
43616          test -z "$ac_c_werror_flag" ||
43617          test ! -s conftest.err
43618        } && test -s conftest.$ac_objext; then
43619   krb_cv_c_bigendian_compile=yes
43620 else
43621   echo "$as_me: failed program was:" >&5
43622 sed 's/^/| /' conftest.$ac_ext >&5
43623
43624         krb_cv_c_bigendian_compile=no
43625 fi
43626
43627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43628 fi
43629 { echo "$as_me:$LINENO: result: $krb_cv_c_bigendian_compile" >&5
43630 echo "${ECHO_T}$krb_cv_c_bigendian_compile" >&6; }
43631 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
43632 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
43633 if test "${krb_cv_c_bigendian+set}" = set; then
43634   echo $ECHO_N "(cached) $ECHO_C" >&6
43635 else
43636
43637   if test "$krb_cv_c_bigendian_compile" = "yes"; then
43638     cat >conftest.$ac_ext <<_ACEOF
43639 /* confdefs.h.  */
43640 _ACEOF
43641 cat confdefs.h >>conftest.$ac_ext
43642 cat >>conftest.$ac_ext <<_ACEOF
43643 /* end confdefs.h.  */
43644
43645 #include <sys/types.h>
43646 #include <sys/param.h>
43647 #if BYTE_ORDER != BIG_ENDIAN
43648   not big endian
43649 #endif
43650 _ACEOF
43651 rm -f conftest.$ac_objext
43652 if { (ac_try="$ac_compile"
43653 case "(($ac_try" in
43654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43655   *) ac_try_echo=$ac_try;;
43656 esac
43657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43658   (eval "$ac_compile") 2>conftest.er1
43659   ac_status=$?
43660   grep -v '^ *+' conftest.er1 >conftest.err
43661   rm -f conftest.er1
43662   cat conftest.err >&5
43663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43664   (exit $ac_status); } && {
43665          test -z "$ac_c_werror_flag" ||
43666          test ! -s conftest.err
43667        } && test -s conftest.$ac_objext; then
43668   krb_cv_c_bigendian=yes
43669 else
43670   echo "$as_me: failed program was:" >&5
43671 sed 's/^/| /' conftest.$ac_ext >&5
43672
43673         krb_cv_c_bigendian=no
43674 fi
43675
43676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43677   else
43678     if test "$cross_compiling" = yes; then
43679   { { echo "$as_me:$LINENO: error: specify either --enable-bigendian or --enable-littleendian" >&5
43680 echo "$as_me: error: specify either --enable-bigendian or --enable-littleendian" >&2;}
43681    { (exit 1); exit 1; }; }
43682 else
43683   cat >conftest.$ac_ext <<_ACEOF
43684 /* confdefs.h.  */
43685 _ACEOF
43686 cat confdefs.h >>conftest.$ac_ext
43687 cat >>conftest.$ac_ext <<_ACEOF
43688 /* end confdefs.h.  */
43689 main (int argc, char **argv) {
43690       /* Are we little or big endian?  From Harbison&Steele.  */
43691       union
43692       {
43693         long l;
43694         char c[sizeof (long)];
43695     } u;
43696     u.l = 1;
43697     exit (u.c[sizeof (long) - 1] == 1);
43698   }
43699 _ACEOF
43700 rm -f conftest$ac_exeext
43701 if { (ac_try="$ac_link"
43702 case "(($ac_try" in
43703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43704   *) ac_try_echo=$ac_try;;
43705 esac
43706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43707   (eval "$ac_link") 2>&5
43708   ac_status=$?
43709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43710   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
43711   { (case "(($ac_try" in
43712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43713   *) ac_try_echo=$ac_try;;
43714 esac
43715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43716   (eval "$ac_try") 2>&5
43717   ac_status=$?
43718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43719   (exit $ac_status); }; }; then
43720   krb_cv_c_bigendian=no
43721 else
43722   echo "$as_me: program exited with status $ac_status" >&5
43723 echo "$as_me: failed program was:" >&5
43724 sed 's/^/| /' conftest.$ac_ext >&5
43725
43726 ( exit $ac_status )
43727 krb_cv_c_bigendian=yes
43728 fi
43729 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
43730 fi
43731
43732
43733   fi
43734
43735 fi
43736 { echo "$as_me:$LINENO: result: $krb_cv_c_bigendian" >&5
43737 echo "${ECHO_T}$krb_cv_c_bigendian" >&6; }
43738 if test "$krb_cv_c_bigendian" = "yes"; then
43739
43740 cat >>confdefs.h <<\_ACEOF
43741 #define WORDS_BIGENDIAN 1
43742 _ACEOF
43743 fi
43744 if test "$krb_cv_c_bigendian_compile" = "yes"; then
43745
43746 cat >>confdefs.h <<\_ACEOF
43747 #define ENDIANESS_IN_SYS_PARAM_H 1
43748 _ACEOF
43749 fi
43750
43751
43752
43753 { echo "$as_me:$LINENO: checking for inline" >&5
43754 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
43755 if test "${ac_cv_c_inline+set}" = set; then
43756   echo $ECHO_N "(cached) $ECHO_C" >&6
43757 else
43758   ac_cv_c_inline=no
43759 for ac_kw in inline __inline__ __inline; do
43760   cat >conftest.$ac_ext <<_ACEOF
43761 /* confdefs.h.  */
43762 _ACEOF
43763 cat confdefs.h >>conftest.$ac_ext
43764 cat >>conftest.$ac_ext <<_ACEOF
43765 /* end confdefs.h.  */
43766 #ifndef __cplusplus
43767 typedef int foo_t;
43768 static $ac_kw foo_t static_foo () {return 0; }
43769 $ac_kw foo_t foo () {return 0; }
43770 #endif
43771
43772 _ACEOF
43773 rm -f conftest.$ac_objext
43774 if { (ac_try="$ac_compile"
43775 case "(($ac_try" in
43776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43777   *) ac_try_echo=$ac_try;;
43778 esac
43779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43780   (eval "$ac_compile") 2>conftest.er1
43781   ac_status=$?
43782   grep -v '^ *+' conftest.er1 >conftest.err
43783   rm -f conftest.er1
43784   cat conftest.err >&5
43785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43786   (exit $ac_status); } && {
43787          test -z "$ac_c_werror_flag" ||
43788          test ! -s conftest.err
43789        } && test -s conftest.$ac_objext; then
43790   ac_cv_c_inline=$ac_kw
43791 else
43792   echo "$as_me: failed program was:" >&5
43793 sed 's/^/| /' conftest.$ac_ext >&5
43794
43795
43796 fi
43797
43798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43799   test "$ac_cv_c_inline" != no && break
43800 done
43801
43802 fi
43803 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
43804 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
43805
43806
43807 case $ac_cv_c_inline in
43808   inline | yes) ;;
43809   *)
43810     case $ac_cv_c_inline in
43811       no) ac_val=;;
43812       *) ac_val=$ac_cv_c_inline;;
43813     esac
43814     cat >>confdefs.h <<_ACEOF
43815 #ifndef __cplusplus
43816 #define inline $ac_val
43817 #endif
43818 _ACEOF
43819     ;;
43820 esac
43821
43822
43823
43824
43825
43826
43827 { echo "$as_me:$LINENO: checking for dlopen" >&5
43828 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
43829 if test "${ac_cv_funclib_dlopen+set}" = set; then
43830   echo $ECHO_N "(cached) $ECHO_C" >&6
43831 else
43832
43833 if eval "test \"\$ac_cv_func_dlopen\" != yes" ; then
43834         ac_save_LIBS="$LIBS"
43835         for ac_lib in "" dl; do
43836                 case "$ac_lib" in
43837                 "") ;;
43838                 yes) ac_lib="" ;;
43839                 no) continue ;;
43840                 -l*) ;;
43841                 *) ac_lib="-l$ac_lib" ;;
43842                 esac
43843                 LIBS=" $ac_lib  $ac_save_LIBS"
43844                 cat >conftest.$ac_ext <<_ACEOF
43845 /* confdefs.h.  */
43846 _ACEOF
43847 cat confdefs.h >>conftest.$ac_ext
43848 cat >>conftest.$ac_ext <<_ACEOF
43849 /* end confdefs.h.  */
43850
43851 #ifdef HAVE_DLFCN_H
43852 #include <dlfcn.h>
43853 #endif
43854 int
43855 main ()
43856 {
43857 dlopen(0,0)
43858   ;
43859   return 0;
43860 }
43861 _ACEOF
43862 rm -f conftest.$ac_objext conftest$ac_exeext
43863 if { (ac_try="$ac_link"
43864 case "(($ac_try" in
43865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43866   *) ac_try_echo=$ac_try;;
43867 esac
43868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43869   (eval "$ac_link") 2>conftest.er1
43870   ac_status=$?
43871   grep -v '^ *+' conftest.er1 >conftest.err
43872   rm -f conftest.er1
43873   cat conftest.err >&5
43874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43875   (exit $ac_status); } && {
43876          test -z "$ac_c_werror_flag" ||
43877          test ! -s conftest.err
43878        } && test -s conftest$ac_exeext &&
43879        $as_test_x conftest$ac_exeext; then
43880   eval "if test -n \"$ac_lib\";then ac_cv_funclib_dlopen=$ac_lib; else ac_cv_funclib_dlopen=yes; fi";break
43881 else
43882   echo "$as_me: failed program was:" >&5
43883 sed 's/^/| /' conftest.$ac_ext >&5
43884
43885
43886 fi
43887
43888 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43889       conftest$ac_exeext conftest.$ac_ext
43890         done
43891         eval "ac_cv_funclib_dlopen=\${ac_cv_funclib_dlopen-no}"
43892         LIBS="$ac_save_LIBS"
43893 fi
43894
43895 fi
43896
43897
43898 eval "ac_res=\$ac_cv_funclib_dlopen"
43899
43900 if false; then
43901
43902 for ac_func in dlopen
43903 do
43904 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43905 { echo "$as_me:$LINENO: checking for $ac_func" >&5
43906 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
43907 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43908   echo $ECHO_N "(cached) $ECHO_C" >&6
43909 else
43910   cat >conftest.$ac_ext <<_ACEOF
43911 /* confdefs.h.  */
43912 _ACEOF
43913 cat confdefs.h >>conftest.$ac_ext
43914 cat >>conftest.$ac_ext <<_ACEOF
43915 /* end confdefs.h.  */
43916 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43917    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43918 #define $ac_func innocuous_$ac_func
43919
43920 /* System header to define __stub macros and hopefully few prototypes,
43921     which can conflict with char $ac_func (); below.
43922     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43923     <limits.h> exists even on freestanding compilers.  */
43924
43925 #ifdef __STDC__
43926 # include <limits.h>
43927 #else
43928 # include <assert.h>
43929 #endif
43930
43931 #undef $ac_func
43932
43933 /* Override any GCC internal prototype to avoid an error.
43934    Use char because int might match the return type of a GCC
43935    builtin and then its argument prototype would still apply.  */
43936 #ifdef __cplusplus
43937 extern "C"
43938 #endif
43939 char $ac_func ();
43940 /* The GNU C library defines this for functions which it implements
43941     to always fail with ENOSYS.  Some functions are actually named
43942     something starting with __ and the normal name is an alias.  */
43943 #if defined __stub_$ac_func || defined __stub___$ac_func
43944 choke me
43945 #endif
43946
43947 int
43948 main ()
43949 {
43950 return $ac_func ();
43951   ;
43952   return 0;
43953 }
43954 _ACEOF
43955 rm -f conftest.$ac_objext conftest$ac_exeext
43956 if { (ac_try="$ac_link"
43957 case "(($ac_try" in
43958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43959   *) ac_try_echo=$ac_try;;
43960 esac
43961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43962   (eval "$ac_link") 2>conftest.er1
43963   ac_status=$?
43964   grep -v '^ *+' conftest.er1 >conftest.err
43965   rm -f conftest.er1
43966   cat conftest.err >&5
43967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43968   (exit $ac_status); } && {
43969          test -z "$ac_c_werror_flag" ||
43970          test ! -s conftest.err
43971        } && test -s conftest$ac_exeext &&
43972        $as_test_x conftest$ac_exeext; then
43973   eval "$as_ac_var=yes"
43974 else
43975   echo "$as_me: failed program was:" >&5
43976 sed 's/^/| /' conftest.$ac_ext >&5
43977
43978         eval "$as_ac_var=no"
43979 fi
43980
43981 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43982       conftest$ac_exeext conftest.$ac_ext
43983 fi
43984 ac_res=`eval echo '${'$as_ac_var'}'`
43985                { echo "$as_me:$LINENO: result: $ac_res" >&5
43986 echo "${ECHO_T}$ac_res" >&6; }
43987 if test `eval echo '${'$as_ac_var'}'` = yes; then
43988   cat >>confdefs.h <<_ACEOF
43989 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43990 _ACEOF
43991
43992 fi
43993 done
43994
43995 fi
43996 # dlopen
43997 eval "ac_tr_func=HAVE_`echo dlopen | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
43998 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
43999 eval "LIB_dlopen=$ac_res"
44000
44001 case "$ac_res" in
44002         yes)
44003         eval "ac_cv_func_dlopen=yes"
44004         eval "LIB_dlopen="
44005         cat >>confdefs.h <<_ACEOF
44006 #define $ac_tr_func 1
44007 _ACEOF
44008
44009         { echo "$as_me:$LINENO: result: yes" >&5
44010 echo "${ECHO_T}yes" >&6; }
44011         ;;
44012         no)
44013         eval "ac_cv_func_dlopen=no"
44014         eval "LIB_dlopen="
44015         { echo "$as_me:$LINENO: result: no" >&5
44016 echo "${ECHO_T}no" >&6; }
44017         ;;
44018         *)
44019         eval "ac_cv_func_dlopen=yes"
44020         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
44021         cat >>confdefs.h <<_ACEOF
44022 #define $ac_tr_func 1
44023 _ACEOF
44024
44025         cat >>confdefs.h <<_ACEOF
44026 #define $ac_tr_lib 1
44027 _ACEOF
44028
44029         { echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
44030 echo "${ECHO_T}yes, in $ac_res" >&6; }
44031         ;;
44032 esac
44033
44034
44035          if test "$ac_cv_funclib_dlopen" != no; then
44036   HAVE_DLOPEN_TRUE=
44037   HAVE_DLOPEN_FALSE='#'
44038 else
44039   HAVE_DLOPEN_TRUE='#'
44040   HAVE_DLOPEN_FALSE=
44041 fi
44042
44043
44044
44045
44046 aix=no
44047 case "$host" in
44048 *-*-aix3*)
44049         aix=3
44050         ;;
44051 *-*-aix4*|*-*-aix5*)
44052         aix=4
44053         ;;
44054 esac
44055
44056  if test "$aix" != no; then
44057   AIX_TRUE=
44058   AIX_FALSE='#'
44059 else
44060   AIX_TRUE='#'
44061   AIX_FALSE=
44062 fi
44063  if test "$aix" = 4; then
44064   AIX4_TRUE=
44065   AIX4_FALSE='#'
44066 else
44067   AIX4_TRUE='#'
44068   AIX4_FALSE=
44069 fi
44070
44071
44072
44073 # Check whether --enable-dynamic-afs was given.
44074 if test "${enable_dynamic_afs+set}" = set; then
44075   enableval=$enable_dynamic_afs;
44076 fi
44077
44078
44079 if test "$aix" != no; then
44080         if test "$enable_dynamic_afs" != no; then
44081
44082                 if test "$ac_cv_func_dlopen" = no; then
44083
44084
44085
44086 { echo "$as_me:$LINENO: checking for loadquery" >&5
44087 echo $ECHO_N "checking for loadquery... $ECHO_C" >&6; }
44088 if test "${ac_cv_funclib_loadquery+set}" = set; then
44089   echo $ECHO_N "(cached) $ECHO_C" >&6
44090 else
44091
44092 if eval "test \"\$ac_cv_func_loadquery\" != yes" ; then
44093         ac_save_LIBS="$LIBS"
44094         for ac_lib in "" ld; do
44095                 case "$ac_lib" in
44096                 "") ;;
44097                 yes) ac_lib="" ;;
44098                 no) continue ;;
44099                 -l*) ;;
44100                 *) ac_lib="-l$ac_lib" ;;
44101                 esac
44102                 LIBS=" $ac_lib  $ac_save_LIBS"
44103                 cat >conftest.$ac_ext <<_ACEOF
44104 /* confdefs.h.  */
44105 _ACEOF
44106 cat confdefs.h >>conftest.$ac_ext
44107 cat >>conftest.$ac_ext <<_ACEOF
44108 /* end confdefs.h.  */
44109
44110 int
44111 main ()
44112 {
44113 loadquery()
44114   ;
44115   return 0;
44116 }
44117 _ACEOF
44118 rm -f conftest.$ac_objext conftest$ac_exeext
44119 if { (ac_try="$ac_link"
44120 case "(($ac_try" in
44121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44122   *) ac_try_echo=$ac_try;;
44123 esac
44124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44125   (eval "$ac_link") 2>conftest.er1
44126   ac_status=$?
44127   grep -v '^ *+' conftest.er1 >conftest.err
44128   rm -f conftest.er1
44129   cat conftest.err >&5
44130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44131   (exit $ac_status); } && {
44132          test -z "$ac_c_werror_flag" ||
44133          test ! -s conftest.err
44134        } && test -s conftest$ac_exeext &&
44135        $as_test_x conftest$ac_exeext; then
44136   eval "if test -n \"$ac_lib\";then ac_cv_funclib_loadquery=$ac_lib; else ac_cv_funclib_loadquery=yes; fi";break
44137 else
44138   echo "$as_me: failed program was:" >&5
44139 sed 's/^/| /' conftest.$ac_ext >&5
44140
44141
44142 fi
44143
44144 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44145       conftest$ac_exeext conftest.$ac_ext
44146         done
44147         eval "ac_cv_funclib_loadquery=\${ac_cv_funclib_loadquery-no}"
44148         LIBS="$ac_save_LIBS"
44149 fi
44150
44151 fi
44152
44153
44154 eval "ac_res=\$ac_cv_funclib_loadquery"
44155
44156 if false; then
44157
44158 for ac_func in loadquery
44159 do
44160 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44161 { echo "$as_me:$LINENO: checking for $ac_func" >&5
44162 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
44163 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
44164   echo $ECHO_N "(cached) $ECHO_C" >&6
44165 else
44166   cat >conftest.$ac_ext <<_ACEOF
44167 /* confdefs.h.  */
44168 _ACEOF
44169 cat confdefs.h >>conftest.$ac_ext
44170 cat >>conftest.$ac_ext <<_ACEOF
44171 /* end confdefs.h.  */
44172 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44173    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44174 #define $ac_func innocuous_$ac_func
44175
44176 /* System header to define __stub macros and hopefully few prototypes,
44177     which can conflict with char $ac_func (); below.
44178     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44179     <limits.h> exists even on freestanding compilers.  */
44180
44181 #ifdef __STDC__
44182 # include <limits.h>
44183 #else
44184 # include <assert.h>
44185 #endif
44186
44187 #undef $ac_func
44188
44189 /* Override any GCC internal prototype to avoid an error.
44190    Use char because int might match the return type of a GCC
44191    builtin and then its argument prototype would still apply.  */
44192 #ifdef __cplusplus
44193 extern "C"
44194 #endif
44195 char $ac_func ();
44196 /* The GNU C library defines this for functions which it implements
44197     to always fail with ENOSYS.  Some functions are actually named
44198     something starting with __ and the normal name is an alias.  */
44199 #if defined __stub_$ac_func || defined __stub___$ac_func
44200 choke me
44201 #endif
44202
44203 int
44204 main ()
44205 {
44206 return $ac_func ();
44207   ;
44208   return 0;
44209 }
44210 _ACEOF
44211 rm -f conftest.$ac_objext conftest$ac_exeext
44212 if { (ac_try="$ac_link"
44213 case "(($ac_try" in
44214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44215   *) ac_try_echo=$ac_try;;
44216 esac
44217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44218   (eval "$ac_link") 2>conftest.er1
44219   ac_status=$?
44220   grep -v '^ *+' conftest.er1 >conftest.err
44221   rm -f conftest.er1
44222   cat conftest.err >&5
44223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44224   (exit $ac_status); } && {
44225          test -z "$ac_c_werror_flag" ||
44226          test ! -s conftest.err
44227        } && test -s conftest$ac_exeext &&
44228        $as_test_x conftest$ac_exeext; then
44229   eval "$as_ac_var=yes"
44230 else
44231   echo "$as_me: failed program was:" >&5
44232 sed 's/^/| /' conftest.$ac_ext >&5
44233
44234         eval "$as_ac_var=no"
44235 fi
44236
44237 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44238       conftest$ac_exeext conftest.$ac_ext
44239 fi
44240 ac_res=`eval echo '${'$as_ac_var'}'`
44241                { echo "$as_me:$LINENO: result: $ac_res" >&5
44242 echo "${ECHO_T}$ac_res" >&6; }
44243 if test `eval echo '${'$as_ac_var'}'` = yes; then
44244   cat >>confdefs.h <<_ACEOF
44245 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44246 _ACEOF
44247
44248 fi
44249 done
44250
44251 fi
44252 # loadquery
44253 eval "ac_tr_func=HAVE_`echo loadquery | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
44254 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
44255 eval "LIB_loadquery=$ac_res"
44256
44257 case "$ac_res" in
44258         yes)
44259         eval "ac_cv_func_loadquery=yes"
44260         eval "LIB_loadquery="
44261         cat >>confdefs.h <<_ACEOF
44262 #define $ac_tr_func 1
44263 _ACEOF
44264
44265         { echo "$as_me:$LINENO: result: yes" >&5
44266 echo "${ECHO_T}yes" >&6; }
44267         ;;
44268         no)
44269         eval "ac_cv_func_loadquery=no"
44270         eval "LIB_loadquery="
44271         { echo "$as_me:$LINENO: result: no" >&5
44272 echo "${ECHO_T}no" >&6; }
44273         ;;
44274         *)
44275         eval "ac_cv_func_loadquery=yes"
44276         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
44277         cat >>confdefs.h <<_ACEOF
44278 #define $ac_tr_func 1
44279 _ACEOF
44280
44281         cat >>confdefs.h <<_ACEOF
44282 #define $ac_tr_lib 1
44283 _ACEOF
44284
44285         { echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
44286 echo "${ECHO_T}yes, in $ac_res" >&6; }
44287         ;;
44288 esac
44289
44290
44291                 fi
44292                 if test "$ac_cv_func_dlopen" != no; then
44293                         AIX_EXTRA_KAFS='$(LIB_dlopen)'
44294                 elif test "$ac_cv_func_loadquery" != no; then
44295                         AIX_EXTRA_KAFS='$(LIB_loadquery)'
44296                 else
44297                         { echo "$as_me:$LINENO: not using dynloaded AFS library" >&5
44298 echo "$as_me: not using dynloaded AFS library" >&6;}
44299                         AIX_EXTRA_KAFS=
44300                         enable_dynamic_afs=no
44301                 fi
44302         else
44303                 AIX_EXTRA_KAFS=
44304         fi
44305 fi
44306
44307  if test "$enable_dynamic_afs" != no; then
44308   AIX_DYNAMIC_AFS_TRUE=
44309   AIX_DYNAMIC_AFS_FALSE='#'
44310 else
44311   AIX_DYNAMIC_AFS_TRUE='#'
44312   AIX_DYNAMIC_AFS_FALSE=
44313 fi
44314
44315
44316
44317
44318
44319
44320 irix=no
44321 case "$host" in
44322 *-*-irix4*)
44323
44324 cat >>confdefs.h <<\_ACEOF
44325 #define IRIX4 1
44326 _ACEOF
44327
44328         irix=yes
44329         ;;
44330 *-*-irix*)
44331         irix=yes
44332         ;;
44333 esac
44334  if test "$irix" != no; then
44335   IRIX_TRUE=
44336   IRIX_FALSE='#'
44337 else
44338   IRIX_TRUE='#'
44339   IRIX_FALSE=
44340 fi
44341
44342
44343
44344
44345
44346 sunos=no
44347 case "$host" in
44348 *-*-sunos4*)
44349         sunos=40
44350         ;;
44351 *-*-solaris2.7)
44352         sunos=57
44353         ;;
44354 *-*-solaris2.[89] | *-*-solaris2.10)
44355         sunos=58
44356         ;;
44357 *-*-solaris2*)
44358         sunos=50
44359         ;;
44360 esac
44361 if test "$sunos" != no; then
44362
44363 cat >>confdefs.h <<_ACEOF
44364 #define SunOS $sunos
44365 _ACEOF
44366
44367 fi
44368
44369
44370 { echo "$as_me:$LINENO: checking for X" >&5
44371 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
44372
44373
44374 # Check whether --with-x was given.
44375 if test "${with_x+set}" = set; then
44376   withval=$with_x;
44377 fi
44378
44379 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
44380 if test "x$with_x" = xno; then
44381   # The user explicitly disabled X.
44382   have_x=disabled
44383 else
44384   case $x_includes,$x_libraries in #(
44385     *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
44386 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
44387    { (exit 1); exit 1; }; };; #(
44388     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
44389   echo $ECHO_N "(cached) $ECHO_C" >&6
44390 else
44391   # One or both of the vars are not set, and there is no cached value.
44392 ac_x_includes=no ac_x_libraries=no
44393 rm -f -r conftest.dir
44394 if mkdir conftest.dir; then
44395   cd conftest.dir
44396   cat >Imakefile <<'_ACEOF'
44397 incroot:
44398         @echo incroot='${INCROOT}'
44399 usrlibdir:
44400         @echo usrlibdir='${USRLIBDIR}'
44401 libdir:
44402         @echo libdir='${LIBDIR}'
44403 _ACEOF
44404   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
44405     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
44406     for ac_var in incroot usrlibdir libdir; do
44407       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
44408     done
44409     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
44410     for ac_extension in a so sl; do
44411       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
44412          test -f "$ac_im_libdir/libX11.$ac_extension"; then
44413         ac_im_usrlibdir=$ac_im_libdir; break
44414       fi
44415     done
44416     # Screen out bogus values from the imake configuration.  They are
44417     # bogus both because they are the default anyway, and because
44418     # using them would break gcc on systems where it needs fixed includes.
44419     case $ac_im_incroot in
44420         /usr/include) ac_x_includes= ;;
44421         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
44422     esac
44423     case $ac_im_usrlibdir in
44424         /usr/lib | /lib) ;;
44425         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
44426     esac
44427   fi
44428   cd ..
44429   rm -f -r conftest.dir
44430 fi
44431
44432 # Standard set of common directories for X headers.
44433 # Check X11 before X11Rn because it is often a symlink to the current release.
44434 ac_x_header_dirs='
44435 /usr/X11/include
44436 /usr/X11R6/include
44437 /usr/X11R5/include
44438 /usr/X11R4/include
44439
44440 /usr/include/X11
44441 /usr/include/X11R6
44442 /usr/include/X11R5
44443 /usr/include/X11R4
44444
44445 /usr/local/X11/include
44446 /usr/local/X11R6/include
44447 /usr/local/X11R5/include
44448 /usr/local/X11R4/include
44449
44450 /usr/local/include/X11
44451 /usr/local/include/X11R6
44452 /usr/local/include/X11R5
44453 /usr/local/include/X11R4
44454
44455 /usr/X386/include
44456 /usr/x386/include
44457 /usr/XFree86/include/X11
44458
44459 /usr/include
44460 /usr/local/include
44461 /usr/unsupported/include
44462 /usr/athena/include
44463 /usr/local/x11r5/include
44464 /usr/lpp/Xamples/include
44465
44466 /usr/openwin/include
44467 /usr/openwin/share/include'
44468
44469 if test "$ac_x_includes" = no; then
44470   # Guess where to find include files, by looking for Xlib.h.
44471   # First, try using that file with no special directory specified.
44472   cat >conftest.$ac_ext <<_ACEOF
44473 /* confdefs.h.  */
44474 _ACEOF
44475 cat confdefs.h >>conftest.$ac_ext
44476 cat >>conftest.$ac_ext <<_ACEOF
44477 /* end confdefs.h.  */
44478 #include <X11/Xlib.h>
44479 _ACEOF
44480 if { (ac_try="$ac_cpp conftest.$ac_ext"
44481 case "(($ac_try" in
44482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44483   *) ac_try_echo=$ac_try;;
44484 esac
44485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44486   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
44487   ac_status=$?
44488   grep -v '^ *+' conftest.er1 >conftest.err
44489   rm -f conftest.er1
44490   cat conftest.err >&5
44491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44492   (exit $ac_status); } >/dev/null && {
44493          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
44494          test ! -s conftest.err
44495        }; then
44496   # We can compile using X headers with no special include directory.
44497 ac_x_includes=
44498 else
44499   echo "$as_me: failed program was:" >&5
44500 sed 's/^/| /' conftest.$ac_ext >&5
44501
44502   for ac_dir in $ac_x_header_dirs; do
44503   if test -r "$ac_dir/X11/Xlib.h"; then
44504     ac_x_includes=$ac_dir
44505     break
44506   fi
44507 done
44508 fi
44509
44510 rm -f conftest.err conftest.$ac_ext
44511 fi # $ac_x_includes = no
44512
44513 if test "$ac_x_libraries" = no; then
44514   # Check for the libraries.
44515   # See if we find them without any special options.
44516   # Don't add to $LIBS permanently.
44517   ac_save_LIBS=$LIBS
44518   LIBS="-lX11 $LIBS"
44519   cat >conftest.$ac_ext <<_ACEOF
44520 /* confdefs.h.  */
44521 _ACEOF
44522 cat confdefs.h >>conftest.$ac_ext
44523 cat >>conftest.$ac_ext <<_ACEOF
44524 /* end confdefs.h.  */
44525 #include <X11/Xlib.h>
44526 int
44527 main ()
44528 {
44529 XrmInitialize ()
44530   ;
44531   return 0;
44532 }
44533 _ACEOF
44534 rm -f conftest.$ac_objext conftest$ac_exeext
44535 if { (ac_try="$ac_link"
44536 case "(($ac_try" in
44537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44538   *) ac_try_echo=$ac_try;;
44539 esac
44540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44541   (eval "$ac_link") 2>conftest.er1
44542   ac_status=$?
44543   grep -v '^ *+' conftest.er1 >conftest.err
44544   rm -f conftest.er1
44545   cat conftest.err >&5
44546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44547   (exit $ac_status); } && {
44548          test -z "$ac_c_werror_flag" ||
44549          test ! -s conftest.err
44550        } && test -s conftest$ac_exeext &&
44551        $as_test_x conftest$ac_exeext; then
44552   LIBS=$ac_save_LIBS
44553 # We can link X programs with no special library path.
44554 ac_x_libraries=
44555 else
44556   echo "$as_me: failed program was:" >&5
44557 sed 's/^/| /' conftest.$ac_ext >&5
44558
44559         LIBS=$ac_save_LIBS
44560 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
44561 do
44562   # Don't even attempt the hair of trying to link an X program!
44563   for ac_extension in a so sl; do
44564     if test -r "$ac_dir/libX11.$ac_extension"; then
44565       ac_x_libraries=$ac_dir
44566       break 2
44567     fi
44568   done
44569 done
44570 fi
44571
44572 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44573       conftest$ac_exeext conftest.$ac_ext
44574 fi # $ac_x_libraries = no
44575
44576 case $ac_x_includes,$ac_x_libraries in #(
44577   no,* | *,no | *\'*)
44578     # Didn't find X, or a directory has "'" in its name.
44579     ac_cv_have_x="have_x=no";; #(
44580   *)
44581     # Record where we found X for the cache.
44582     ac_cv_have_x="have_x=yes\
44583         ac_x_includes='$ac_x_includes'\
44584         ac_x_libraries='$ac_x_libraries'"
44585 esac
44586 fi
44587 ;; #(
44588     *) have_x=yes;;
44589   esac
44590   eval "$ac_cv_have_x"
44591 fi # $with_x != no
44592
44593 if test "$have_x" != yes; then
44594   { echo "$as_me:$LINENO: result: $have_x" >&5
44595 echo "${ECHO_T}$have_x" >&6; }
44596   no_x=yes
44597 else
44598   # If each of the values was on the command line, it overrides each guess.
44599   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
44600   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
44601   # Update the cache value to reflect the command line values.
44602   ac_cv_have_x="have_x=yes\
44603         ac_x_includes='$x_includes'\
44604         ac_x_libraries='$x_libraries'"
44605   { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
44606 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
44607 fi
44608
44609
44610 if test "$no_x" = yes; then
44611   # Not all programs may use this symbol, but it does not hurt to define it.
44612
44613 cat >>confdefs.h <<\_ACEOF
44614 #define X_DISPLAY_MISSING 1
44615 _ACEOF
44616
44617   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
44618 else
44619   if test -n "$x_includes"; then
44620     X_CFLAGS="$X_CFLAGS -I$x_includes"
44621   fi
44622
44623   # It would also be nice to do this for all -L options, not just this one.
44624   if test -n "$x_libraries"; then
44625     X_LIBS="$X_LIBS -L$x_libraries"
44626     # For Solaris; some versions of Sun CC require a space after -R and
44627     # others require no space.  Words are not sufficient . . . .
44628     { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
44629 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
44630     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
44631     ac_xsave_c_werror_flag=$ac_c_werror_flag
44632     ac_c_werror_flag=yes
44633     cat >conftest.$ac_ext <<_ACEOF
44634 /* confdefs.h.  */
44635 _ACEOF
44636 cat confdefs.h >>conftest.$ac_ext
44637 cat >>conftest.$ac_ext <<_ACEOF
44638 /* end confdefs.h.  */
44639
44640 int
44641 main ()
44642 {
44643
44644   ;
44645   return 0;
44646 }
44647 _ACEOF
44648 rm -f conftest.$ac_objext conftest$ac_exeext
44649 if { (ac_try="$ac_link"
44650 case "(($ac_try" in
44651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44652   *) ac_try_echo=$ac_try;;
44653 esac
44654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44655   (eval "$ac_link") 2>conftest.er1
44656   ac_status=$?
44657   grep -v '^ *+' conftest.er1 >conftest.err
44658   rm -f conftest.er1
44659   cat conftest.err >&5
44660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44661   (exit $ac_status); } && {
44662          test -z "$ac_c_werror_flag" ||
44663          test ! -s conftest.err
44664        } && test -s conftest$ac_exeext &&
44665        $as_test_x conftest$ac_exeext; then
44666   { echo "$as_me:$LINENO: result: no" >&5
44667 echo "${ECHO_T}no" >&6; }
44668        X_LIBS="$X_LIBS -R$x_libraries"
44669 else
44670   echo "$as_me: failed program was:" >&5
44671 sed 's/^/| /' conftest.$ac_ext >&5
44672
44673         LIBS="$ac_xsave_LIBS -R $x_libraries"
44674        cat >conftest.$ac_ext <<_ACEOF
44675 /* confdefs.h.  */
44676 _ACEOF
44677 cat confdefs.h >>conftest.$ac_ext
44678 cat >>conftest.$ac_ext <<_ACEOF
44679 /* end confdefs.h.  */
44680
44681 int
44682 main ()
44683 {
44684
44685   ;
44686   return 0;
44687 }
44688 _ACEOF
44689 rm -f conftest.$ac_objext conftest$ac_exeext
44690 if { (ac_try="$ac_link"
44691 case "(($ac_try" in
44692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44693   *) ac_try_echo=$ac_try;;
44694 esac
44695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44696   (eval "$ac_link") 2>conftest.er1
44697   ac_status=$?
44698   grep -v '^ *+' conftest.er1 >conftest.err
44699   rm -f conftest.er1
44700   cat conftest.err >&5
44701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44702   (exit $ac_status); } && {
44703          test -z "$ac_c_werror_flag" ||
44704          test ! -s conftest.err
44705        } && test -s conftest$ac_exeext &&
44706        $as_test_x conftest$ac_exeext; then
44707   { echo "$as_me:$LINENO: result: yes" >&5
44708 echo "${ECHO_T}yes" >&6; }
44709           X_LIBS="$X_LIBS -R $x_libraries"
44710 else
44711   echo "$as_me: failed program was:" >&5
44712 sed 's/^/| /' conftest.$ac_ext >&5
44713
44714         { echo "$as_me:$LINENO: result: neither works" >&5
44715 echo "${ECHO_T}neither works" >&6; }
44716 fi
44717
44718 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44719       conftest$ac_exeext conftest.$ac_ext
44720 fi
44721
44722 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44723       conftest$ac_exeext conftest.$ac_ext
44724     ac_c_werror_flag=$ac_xsave_c_werror_flag
44725     LIBS=$ac_xsave_LIBS
44726   fi
44727
44728   # Check for system-dependent libraries X programs must link with.
44729   # Do this before checking for the system-independent R6 libraries
44730   # (-lICE), since we may need -lsocket or whatever for X linking.
44731
44732   if test "$ISC" = yes; then
44733     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
44734   else
44735     # Martyn Johnson says this is needed for Ultrix, if the X
44736     # libraries were built with DECnet support.  And Karl Berry says
44737     # the Alpha needs dnet_stub (dnet does not exist).
44738     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
44739     cat >conftest.$ac_ext <<_ACEOF
44740 /* confdefs.h.  */
44741 _ACEOF
44742 cat confdefs.h >>conftest.$ac_ext
44743 cat >>conftest.$ac_ext <<_ACEOF
44744 /* end confdefs.h.  */
44745
44746 /* Override any GCC internal prototype to avoid an error.
44747    Use char because int might match the return type of a GCC
44748    builtin and then its argument prototype would still apply.  */
44749 #ifdef __cplusplus
44750 extern "C"
44751 #endif
44752 char XOpenDisplay ();
44753 int
44754 main ()
44755 {
44756 return XOpenDisplay ();
44757   ;
44758   return 0;
44759 }
44760 _ACEOF
44761 rm -f conftest.$ac_objext conftest$ac_exeext
44762 if { (ac_try="$ac_link"
44763 case "(($ac_try" in
44764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44765   *) ac_try_echo=$ac_try;;
44766 esac
44767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44768   (eval "$ac_link") 2>conftest.er1
44769   ac_status=$?
44770   grep -v '^ *+' conftest.er1 >conftest.err
44771   rm -f conftest.er1
44772   cat conftest.err >&5
44773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44774   (exit $ac_status); } && {
44775          test -z "$ac_c_werror_flag" ||
44776          test ! -s conftest.err
44777        } && test -s conftest$ac_exeext &&
44778        $as_test_x conftest$ac_exeext; then
44779   :
44780 else
44781   echo "$as_me: failed program was:" >&5
44782 sed 's/^/| /' conftest.$ac_ext >&5
44783
44784         { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
44785 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
44786 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
44787   echo $ECHO_N "(cached) $ECHO_C" >&6
44788 else
44789   ac_check_lib_save_LIBS=$LIBS
44790 LIBS="-ldnet  $LIBS"
44791 cat >conftest.$ac_ext <<_ACEOF
44792 /* confdefs.h.  */
44793 _ACEOF
44794 cat confdefs.h >>conftest.$ac_ext
44795 cat >>conftest.$ac_ext <<_ACEOF
44796 /* end confdefs.h.  */
44797
44798 /* Override any GCC internal prototype to avoid an error.
44799    Use char because int might match the return type of a GCC
44800    builtin and then its argument prototype would still apply.  */
44801 #ifdef __cplusplus
44802 extern "C"
44803 #endif
44804 char dnet_ntoa ();
44805 int
44806 main ()
44807 {
44808 return dnet_ntoa ();
44809   ;
44810   return 0;
44811 }
44812 _ACEOF
44813 rm -f conftest.$ac_objext conftest$ac_exeext
44814 if { (ac_try="$ac_link"
44815 case "(($ac_try" in
44816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44817   *) ac_try_echo=$ac_try;;
44818 esac
44819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44820   (eval "$ac_link") 2>conftest.er1
44821   ac_status=$?
44822   grep -v '^ *+' conftest.er1 >conftest.err
44823   rm -f conftest.er1
44824   cat conftest.err >&5
44825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44826   (exit $ac_status); } && {
44827          test -z "$ac_c_werror_flag" ||
44828          test ! -s conftest.err
44829        } && test -s conftest$ac_exeext &&
44830        $as_test_x conftest$ac_exeext; then
44831   ac_cv_lib_dnet_dnet_ntoa=yes
44832 else
44833   echo "$as_me: failed program was:" >&5
44834 sed 's/^/| /' conftest.$ac_ext >&5
44835
44836         ac_cv_lib_dnet_dnet_ntoa=no
44837 fi
44838
44839 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44840       conftest$ac_exeext conftest.$ac_ext
44841 LIBS=$ac_check_lib_save_LIBS
44842 fi
44843 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
44844 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
44845 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
44846   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
44847 fi
44848
44849     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
44850       { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
44851 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
44852 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
44853   echo $ECHO_N "(cached) $ECHO_C" >&6
44854 else
44855   ac_check_lib_save_LIBS=$LIBS
44856 LIBS="-ldnet_stub  $LIBS"
44857 cat >conftest.$ac_ext <<_ACEOF
44858 /* confdefs.h.  */
44859 _ACEOF
44860 cat confdefs.h >>conftest.$ac_ext
44861 cat >>conftest.$ac_ext <<_ACEOF
44862 /* end confdefs.h.  */
44863
44864 /* Override any GCC internal prototype to avoid an error.
44865    Use char because int might match the return type of a GCC
44866    builtin and then its argument prototype would still apply.  */
44867 #ifdef __cplusplus
44868 extern "C"
44869 #endif
44870 char dnet_ntoa ();
44871 int
44872 main ()
44873 {
44874 return dnet_ntoa ();
44875   ;
44876   return 0;
44877 }
44878 _ACEOF
44879 rm -f conftest.$ac_objext conftest$ac_exeext
44880 if { (ac_try="$ac_link"
44881 case "(($ac_try" in
44882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44883   *) ac_try_echo=$ac_try;;
44884 esac
44885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44886   (eval "$ac_link") 2>conftest.er1
44887   ac_status=$?
44888   grep -v '^ *+' conftest.er1 >conftest.err
44889   rm -f conftest.er1
44890   cat conftest.err >&5
44891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44892   (exit $ac_status); } && {
44893          test -z "$ac_c_werror_flag" ||
44894          test ! -s conftest.err
44895        } && test -s conftest$ac_exeext &&
44896        $as_test_x conftest$ac_exeext; then
44897   ac_cv_lib_dnet_stub_dnet_ntoa=yes
44898 else
44899   echo "$as_me: failed program was:" >&5
44900 sed 's/^/| /' conftest.$ac_ext >&5
44901
44902         ac_cv_lib_dnet_stub_dnet_ntoa=no
44903 fi
44904
44905 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44906       conftest$ac_exeext conftest.$ac_ext
44907 LIBS=$ac_check_lib_save_LIBS
44908 fi
44909 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
44910 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
44911 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
44912   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
44913 fi
44914
44915     fi
44916 fi
44917
44918 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44919       conftest$ac_exeext conftest.$ac_ext
44920     LIBS="$ac_xsave_LIBS"
44921
44922     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
44923     # to get the SysV transport functions.
44924     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
44925     # needs -lnsl.
44926     # The nsl library prevents programs from opening the X display
44927     # on Irix 5.2, according to T.E. Dickey.
44928     # The functions gethostbyname, getservbyname, and inet_addr are
44929     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
44930     { echo "$as_me:$LINENO: checking for gethostbyname" >&5
44931 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
44932 if test "${ac_cv_func_gethostbyname+set}" = set; then
44933   echo $ECHO_N "(cached) $ECHO_C" >&6
44934 else
44935   cat >conftest.$ac_ext <<_ACEOF
44936 /* confdefs.h.  */
44937 _ACEOF
44938 cat confdefs.h >>conftest.$ac_ext
44939 cat >>conftest.$ac_ext <<_ACEOF
44940 /* end confdefs.h.  */
44941 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
44942    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44943 #define gethostbyname innocuous_gethostbyname
44944
44945 /* System header to define __stub macros and hopefully few prototypes,
44946     which can conflict with char gethostbyname (); below.
44947     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44948     <limits.h> exists even on freestanding compilers.  */
44949
44950 #ifdef __STDC__
44951 # include <limits.h>
44952 #else
44953 # include <assert.h>
44954 #endif
44955
44956 #undef gethostbyname
44957
44958 /* Override any GCC internal prototype to avoid an error.
44959    Use char because int might match the return type of a GCC
44960    builtin and then its argument prototype would still apply.  */
44961 #ifdef __cplusplus
44962 extern "C"
44963 #endif
44964 char gethostbyname ();
44965 /* The GNU C library defines this for functions which it implements
44966     to always fail with ENOSYS.  Some functions are actually named
44967     something starting with __ and the normal name is an alias.  */
44968 #if defined __stub_gethostbyname || defined __stub___gethostbyname
44969 choke me
44970 #endif
44971
44972 int
44973 main ()
44974 {
44975 return gethostbyname ();
44976   ;
44977   return 0;
44978 }
44979 _ACEOF
44980 rm -f conftest.$ac_objext conftest$ac_exeext
44981 if { (ac_try="$ac_link"
44982 case "(($ac_try" in
44983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44984   *) ac_try_echo=$ac_try;;
44985 esac
44986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44987   (eval "$ac_link") 2>conftest.er1
44988   ac_status=$?
44989   grep -v '^ *+' conftest.er1 >conftest.err
44990   rm -f conftest.er1
44991   cat conftest.err >&5
44992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44993   (exit $ac_status); } && {
44994          test -z "$ac_c_werror_flag" ||
44995          test ! -s conftest.err
44996        } && test -s conftest$ac_exeext &&
44997        $as_test_x conftest$ac_exeext; then
44998   ac_cv_func_gethostbyname=yes
44999 else
45000   echo "$as_me: failed program was:" >&5
45001 sed 's/^/| /' conftest.$ac_ext >&5
45002
45003         ac_cv_func_gethostbyname=no
45004 fi
45005
45006 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45007       conftest$ac_exeext conftest.$ac_ext
45008 fi
45009 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
45010 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
45011
45012     if test $ac_cv_func_gethostbyname = no; then
45013       { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
45014 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
45015 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
45016   echo $ECHO_N "(cached) $ECHO_C" >&6
45017 else
45018   ac_check_lib_save_LIBS=$LIBS
45019 LIBS="-lnsl  $LIBS"
45020 cat >conftest.$ac_ext <<_ACEOF
45021 /* confdefs.h.  */
45022 _ACEOF
45023 cat confdefs.h >>conftest.$ac_ext
45024 cat >>conftest.$ac_ext <<_ACEOF
45025 /* end confdefs.h.  */
45026
45027 /* Override any GCC internal prototype to avoid an error.
45028    Use char because int might match the return type of a GCC
45029    builtin and then its argument prototype would still apply.  */
45030 #ifdef __cplusplus
45031 extern "C"
45032 #endif
45033 char gethostbyname ();
45034 int
45035 main ()
45036 {
45037 return gethostbyname ();
45038   ;
45039   return 0;
45040 }
45041 _ACEOF
45042 rm -f conftest.$ac_objext conftest$ac_exeext
45043 if { (ac_try="$ac_link"
45044 case "(($ac_try" in
45045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45046   *) ac_try_echo=$ac_try;;
45047 esac
45048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45049   (eval "$ac_link") 2>conftest.er1
45050   ac_status=$?
45051   grep -v '^ *+' conftest.er1 >conftest.err
45052   rm -f conftest.er1
45053   cat conftest.err >&5
45054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45055   (exit $ac_status); } && {
45056          test -z "$ac_c_werror_flag" ||
45057          test ! -s conftest.err
45058        } && test -s conftest$ac_exeext &&
45059        $as_test_x conftest$ac_exeext; then
45060   ac_cv_lib_nsl_gethostbyname=yes
45061 else
45062   echo "$as_me: failed program was:" >&5
45063 sed 's/^/| /' conftest.$ac_ext >&5
45064
45065         ac_cv_lib_nsl_gethostbyname=no
45066 fi
45067
45068 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45069       conftest$ac_exeext conftest.$ac_ext
45070 LIBS=$ac_check_lib_save_LIBS
45071 fi
45072 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
45073 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
45074 if test $ac_cv_lib_nsl_gethostbyname = yes; then
45075   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
45076 fi
45077
45078       if test $ac_cv_lib_nsl_gethostbyname = no; then
45079         { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
45080 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
45081 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
45082   echo $ECHO_N "(cached) $ECHO_C" >&6
45083 else
45084   ac_check_lib_save_LIBS=$LIBS
45085 LIBS="-lbsd  $LIBS"
45086 cat >conftest.$ac_ext <<_ACEOF
45087 /* confdefs.h.  */
45088 _ACEOF
45089 cat confdefs.h >>conftest.$ac_ext
45090 cat >>conftest.$ac_ext <<_ACEOF
45091 /* end confdefs.h.  */
45092
45093 /* Override any GCC internal prototype to avoid an error.
45094    Use char because int might match the return type of a GCC
45095    builtin and then its argument prototype would still apply.  */
45096 #ifdef __cplusplus
45097 extern "C"
45098 #endif
45099 char gethostbyname ();
45100 int
45101 main ()
45102 {
45103 return gethostbyname ();
45104   ;
45105   return 0;
45106 }
45107 _ACEOF
45108 rm -f conftest.$ac_objext conftest$ac_exeext
45109 if { (ac_try="$ac_link"
45110 case "(($ac_try" in
45111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45112   *) ac_try_echo=$ac_try;;
45113 esac
45114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45115   (eval "$ac_link") 2>conftest.er1
45116   ac_status=$?
45117   grep -v '^ *+' conftest.er1 >conftest.err
45118   rm -f conftest.er1
45119   cat conftest.err >&5
45120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45121   (exit $ac_status); } && {
45122          test -z "$ac_c_werror_flag" ||
45123          test ! -s conftest.err
45124        } && test -s conftest$ac_exeext &&
45125        $as_test_x conftest$ac_exeext; then
45126   ac_cv_lib_bsd_gethostbyname=yes
45127 else
45128   echo "$as_me: failed program was:" >&5
45129 sed 's/^/| /' conftest.$ac_ext >&5
45130
45131         ac_cv_lib_bsd_gethostbyname=no
45132 fi
45133
45134 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45135       conftest$ac_exeext conftest.$ac_ext
45136 LIBS=$ac_check_lib_save_LIBS
45137 fi
45138 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
45139 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
45140 if test $ac_cv_lib_bsd_gethostbyname = yes; then
45141   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
45142 fi
45143
45144       fi
45145     fi
45146
45147     # lieder@skyler.mavd.honeywell.com says without -lsocket,
45148     # socket/setsockopt and other routines are undefined under SCO ODT
45149     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
45150     # on later versions), says Simon Leinen: it contains gethostby*
45151     # variants that don't use the name server (or something).  -lsocket
45152     # must be given before -lnsl if both are needed.  We assume that
45153     # if connect needs -lnsl, so does gethostbyname.
45154     { echo "$as_me:$LINENO: checking for connect" >&5
45155 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
45156 if test "${ac_cv_func_connect+set}" = set; then
45157   echo $ECHO_N "(cached) $ECHO_C" >&6
45158 else
45159   cat >conftest.$ac_ext <<_ACEOF
45160 /* confdefs.h.  */
45161 _ACEOF
45162 cat confdefs.h >>conftest.$ac_ext
45163 cat >>conftest.$ac_ext <<_ACEOF
45164 /* end confdefs.h.  */
45165 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
45166    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45167 #define connect innocuous_connect
45168
45169 /* System header to define __stub macros and hopefully few prototypes,
45170     which can conflict with char connect (); below.
45171     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45172     <limits.h> exists even on freestanding compilers.  */
45173
45174 #ifdef __STDC__
45175 # include <limits.h>
45176 #else
45177 # include <assert.h>
45178 #endif
45179
45180 #undef connect
45181
45182 /* Override any GCC internal prototype to avoid an error.
45183    Use char because int might match the return type of a GCC
45184    builtin and then its argument prototype would still apply.  */
45185 #ifdef __cplusplus
45186 extern "C"
45187 #endif
45188 char connect ();
45189 /* The GNU C library defines this for functions which it implements
45190     to always fail with ENOSYS.  Some functions are actually named
45191     something starting with __ and the normal name is an alias.  */
45192 #if defined __stub_connect || defined __stub___connect
45193 choke me
45194 #endif
45195
45196 int
45197 main ()
45198 {
45199 return connect ();
45200   ;
45201   return 0;
45202 }
45203 _ACEOF
45204 rm -f conftest.$ac_objext conftest$ac_exeext
45205 if { (ac_try="$ac_link"
45206 case "(($ac_try" in
45207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45208   *) ac_try_echo=$ac_try;;
45209 esac
45210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45211   (eval "$ac_link") 2>conftest.er1
45212   ac_status=$?
45213   grep -v '^ *+' conftest.er1 >conftest.err
45214   rm -f conftest.er1
45215   cat conftest.err >&5
45216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45217   (exit $ac_status); } && {
45218          test -z "$ac_c_werror_flag" ||
45219          test ! -s conftest.err
45220        } && test -s conftest$ac_exeext &&
45221        $as_test_x conftest$ac_exeext; then
45222   ac_cv_func_connect=yes
45223 else
45224   echo "$as_me: failed program was:" >&5
45225 sed 's/^/| /' conftest.$ac_ext >&5
45226
45227         ac_cv_func_connect=no
45228 fi
45229
45230 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45231       conftest$ac_exeext conftest.$ac_ext
45232 fi
45233 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
45234 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
45235
45236     if test $ac_cv_func_connect = no; then
45237       { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
45238 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
45239 if test "${ac_cv_lib_socket_connect+set}" = set; then
45240   echo $ECHO_N "(cached) $ECHO_C" >&6
45241 else
45242   ac_check_lib_save_LIBS=$LIBS
45243 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
45244 cat >conftest.$ac_ext <<_ACEOF
45245 /* confdefs.h.  */
45246 _ACEOF
45247 cat confdefs.h >>conftest.$ac_ext
45248 cat >>conftest.$ac_ext <<_ACEOF
45249 /* end confdefs.h.  */
45250
45251 /* Override any GCC internal prototype to avoid an error.
45252    Use char because int might match the return type of a GCC
45253    builtin and then its argument prototype would still apply.  */
45254 #ifdef __cplusplus
45255 extern "C"
45256 #endif
45257 char connect ();
45258 int
45259 main ()
45260 {
45261 return connect ();
45262   ;
45263   return 0;
45264 }
45265 _ACEOF
45266 rm -f conftest.$ac_objext conftest$ac_exeext
45267 if { (ac_try="$ac_link"
45268 case "(($ac_try" in
45269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45270   *) ac_try_echo=$ac_try;;
45271 esac
45272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45273   (eval "$ac_link") 2>conftest.er1
45274   ac_status=$?
45275   grep -v '^ *+' conftest.er1 >conftest.err
45276   rm -f conftest.er1
45277   cat conftest.err >&5
45278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45279   (exit $ac_status); } && {
45280          test -z "$ac_c_werror_flag" ||
45281          test ! -s conftest.err
45282        } && test -s conftest$ac_exeext &&
45283        $as_test_x conftest$ac_exeext; then
45284   ac_cv_lib_socket_connect=yes
45285 else
45286   echo "$as_me: failed program was:" >&5
45287 sed 's/^/| /' conftest.$ac_ext >&5
45288
45289         ac_cv_lib_socket_connect=no
45290 fi
45291
45292 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45293       conftest$ac_exeext conftest.$ac_ext
45294 LIBS=$ac_check_lib_save_LIBS
45295 fi
45296 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
45297 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
45298 if test $ac_cv_lib_socket_connect = yes; then
45299   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
45300 fi
45301
45302     fi
45303
45304     # Guillermo Gomez says -lposix is necessary on A/UX.
45305     { echo "$as_me:$LINENO: checking for remove" >&5
45306 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
45307 if test "${ac_cv_func_remove+set}" = set; then
45308   echo $ECHO_N "(cached) $ECHO_C" >&6
45309 else
45310   cat >conftest.$ac_ext <<_ACEOF
45311 /* confdefs.h.  */
45312 _ACEOF
45313 cat confdefs.h >>conftest.$ac_ext
45314 cat >>conftest.$ac_ext <<_ACEOF
45315 /* end confdefs.h.  */
45316 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
45317    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45318 #define remove innocuous_remove
45319
45320 /* System header to define __stub macros and hopefully few prototypes,
45321     which can conflict with char remove (); below.
45322     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45323     <limits.h> exists even on freestanding compilers.  */
45324
45325 #ifdef __STDC__
45326 # include <limits.h>
45327 #else
45328 # include <assert.h>
45329 #endif
45330
45331 #undef remove
45332
45333 /* Override any GCC internal prototype to avoid an error.
45334    Use char because int might match the return type of a GCC
45335    builtin and then its argument prototype would still apply.  */
45336 #ifdef __cplusplus
45337 extern "C"
45338 #endif
45339 char remove ();
45340 /* The GNU C library defines this for functions which it implements
45341     to always fail with ENOSYS.  Some functions are actually named
45342     something starting with __ and the normal name is an alias.  */
45343 #if defined __stub_remove || defined __stub___remove
45344 choke me
45345 #endif
45346
45347 int
45348 main ()
45349 {
45350 return remove ();
45351   ;
45352   return 0;
45353 }
45354 _ACEOF
45355 rm -f conftest.$ac_objext conftest$ac_exeext
45356 if { (ac_try="$ac_link"
45357 case "(($ac_try" in
45358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45359   *) ac_try_echo=$ac_try;;
45360 esac
45361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45362   (eval "$ac_link") 2>conftest.er1
45363   ac_status=$?
45364   grep -v '^ *+' conftest.er1 >conftest.err
45365   rm -f conftest.er1
45366   cat conftest.err >&5
45367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45368   (exit $ac_status); } && {
45369          test -z "$ac_c_werror_flag" ||
45370          test ! -s conftest.err
45371        } && test -s conftest$ac_exeext &&
45372        $as_test_x conftest$ac_exeext; then
45373   ac_cv_func_remove=yes
45374 else
45375   echo "$as_me: failed program was:" >&5
45376 sed 's/^/| /' conftest.$ac_ext >&5
45377
45378         ac_cv_func_remove=no
45379 fi
45380
45381 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45382       conftest$ac_exeext conftest.$ac_ext
45383 fi
45384 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
45385 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
45386
45387     if test $ac_cv_func_remove = no; then
45388       { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
45389 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
45390 if test "${ac_cv_lib_posix_remove+set}" = set; then
45391   echo $ECHO_N "(cached) $ECHO_C" >&6
45392 else
45393   ac_check_lib_save_LIBS=$LIBS
45394 LIBS="-lposix  $LIBS"
45395 cat >conftest.$ac_ext <<_ACEOF
45396 /* confdefs.h.  */
45397 _ACEOF
45398 cat confdefs.h >>conftest.$ac_ext
45399 cat >>conftest.$ac_ext <<_ACEOF
45400 /* end confdefs.h.  */
45401
45402 /* Override any GCC internal prototype to avoid an error.
45403    Use char because int might match the return type of a GCC
45404    builtin and then its argument prototype would still apply.  */
45405 #ifdef __cplusplus
45406 extern "C"
45407 #endif
45408 char remove ();
45409 int
45410 main ()
45411 {
45412 return remove ();
45413   ;
45414   return 0;
45415 }
45416 _ACEOF
45417 rm -f conftest.$ac_objext conftest$ac_exeext
45418 if { (ac_try="$ac_link"
45419 case "(($ac_try" in
45420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45421   *) ac_try_echo=$ac_try;;
45422 esac
45423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45424   (eval "$ac_link") 2>conftest.er1
45425   ac_status=$?
45426   grep -v '^ *+' conftest.er1 >conftest.err
45427   rm -f conftest.er1
45428   cat conftest.err >&5
45429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45430   (exit $ac_status); } && {
45431          test -z "$ac_c_werror_flag" ||
45432          test ! -s conftest.err
45433        } && test -s conftest$ac_exeext &&
45434        $as_test_x conftest$ac_exeext; then
45435   ac_cv_lib_posix_remove=yes
45436 else
45437   echo "$as_me: failed program was:" >&5
45438 sed 's/^/| /' conftest.$ac_ext >&5
45439
45440         ac_cv_lib_posix_remove=no
45441 fi
45442
45443 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45444       conftest$ac_exeext conftest.$ac_ext
45445 LIBS=$ac_check_lib_save_LIBS
45446 fi
45447 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
45448 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
45449 if test $ac_cv_lib_posix_remove = yes; then
45450   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
45451 fi
45452
45453     fi
45454
45455     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
45456     { echo "$as_me:$LINENO: checking for shmat" >&5
45457 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
45458 if test "${ac_cv_func_shmat+set}" = set; then
45459   echo $ECHO_N "(cached) $ECHO_C" >&6
45460 else
45461   cat >conftest.$ac_ext <<_ACEOF
45462 /* confdefs.h.  */
45463 _ACEOF
45464 cat confdefs.h >>conftest.$ac_ext
45465 cat >>conftest.$ac_ext <<_ACEOF
45466 /* end confdefs.h.  */
45467 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
45468    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45469 #define shmat innocuous_shmat
45470
45471 /* System header to define __stub macros and hopefully few prototypes,
45472     which can conflict with char shmat (); below.
45473     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45474     <limits.h> exists even on freestanding compilers.  */
45475
45476 #ifdef __STDC__
45477 # include <limits.h>
45478 #else
45479 # include <assert.h>
45480 #endif
45481
45482 #undef shmat
45483
45484 /* Override any GCC internal prototype to avoid an error.
45485    Use char because int might match the return type of a GCC
45486    builtin and then its argument prototype would still apply.  */
45487 #ifdef __cplusplus
45488 extern "C"
45489 #endif
45490 char shmat ();
45491 /* The GNU C library defines this for functions which it implements
45492     to always fail with ENOSYS.  Some functions are actually named
45493     something starting with __ and the normal name is an alias.  */
45494 #if defined __stub_shmat || defined __stub___shmat
45495 choke me
45496 #endif
45497
45498 int
45499 main ()
45500 {
45501 return shmat ();
45502   ;
45503   return 0;
45504 }
45505 _ACEOF
45506 rm -f conftest.$ac_objext conftest$ac_exeext
45507 if { (ac_try="$ac_link"
45508 case "(($ac_try" in
45509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45510   *) ac_try_echo=$ac_try;;
45511 esac
45512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45513   (eval "$ac_link") 2>conftest.er1
45514   ac_status=$?
45515   grep -v '^ *+' conftest.er1 >conftest.err
45516   rm -f conftest.er1
45517   cat conftest.err >&5
45518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45519   (exit $ac_status); } && {
45520          test -z "$ac_c_werror_flag" ||
45521          test ! -s conftest.err
45522        } && test -s conftest$ac_exeext &&
45523        $as_test_x conftest$ac_exeext; then
45524   ac_cv_func_shmat=yes
45525 else
45526   echo "$as_me: failed program was:" >&5
45527 sed 's/^/| /' conftest.$ac_ext >&5
45528
45529         ac_cv_func_shmat=no
45530 fi
45531
45532 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45533       conftest$ac_exeext conftest.$ac_ext
45534 fi
45535 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
45536 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
45537
45538     if test $ac_cv_func_shmat = no; then
45539       { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
45540 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
45541 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
45542   echo $ECHO_N "(cached) $ECHO_C" >&6
45543 else
45544   ac_check_lib_save_LIBS=$LIBS
45545 LIBS="-lipc  $LIBS"
45546 cat >conftest.$ac_ext <<_ACEOF
45547 /* confdefs.h.  */
45548 _ACEOF
45549 cat confdefs.h >>conftest.$ac_ext
45550 cat >>conftest.$ac_ext <<_ACEOF
45551 /* end confdefs.h.  */
45552
45553 /* Override any GCC internal prototype to avoid an error.
45554    Use char because int might match the return type of a GCC
45555    builtin and then its argument prototype would still apply.  */
45556 #ifdef __cplusplus
45557 extern "C"
45558 #endif
45559 char shmat ();
45560 int
45561 main ()
45562 {
45563 return shmat ();
45564   ;
45565   return 0;
45566 }
45567 _ACEOF
45568 rm -f conftest.$ac_objext conftest$ac_exeext
45569 if { (ac_try="$ac_link"
45570 case "(($ac_try" in
45571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45572   *) ac_try_echo=$ac_try;;
45573 esac
45574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45575   (eval "$ac_link") 2>conftest.er1
45576   ac_status=$?
45577   grep -v '^ *+' conftest.er1 >conftest.err
45578   rm -f conftest.er1
45579   cat conftest.err >&5
45580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45581   (exit $ac_status); } && {
45582          test -z "$ac_c_werror_flag" ||
45583          test ! -s conftest.err
45584        } && test -s conftest$ac_exeext &&
45585        $as_test_x conftest$ac_exeext; then
45586   ac_cv_lib_ipc_shmat=yes
45587 else
45588   echo "$as_me: failed program was:" >&5
45589 sed 's/^/| /' conftest.$ac_ext >&5
45590
45591         ac_cv_lib_ipc_shmat=no
45592 fi
45593
45594 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45595       conftest$ac_exeext conftest.$ac_ext
45596 LIBS=$ac_check_lib_save_LIBS
45597 fi
45598 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
45599 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
45600 if test $ac_cv_lib_ipc_shmat = yes; then
45601   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
45602 fi
45603
45604     fi
45605   fi
45606
45607   # Check for libraries that X11R6 Xt/Xaw programs need.
45608   ac_save_LDFLAGS=$LDFLAGS
45609   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
45610   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
45611   # check for ICE first), but we must link in the order -lSM -lICE or
45612   # we get undefined symbols.  So assume we have SM if we have ICE.
45613   # These have to be linked with before -lX11, unlike the other
45614   # libraries we check for below, so use a different variable.
45615   # John Interrante, Karl Berry
45616   { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
45617 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
45618 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
45619   echo $ECHO_N "(cached) $ECHO_C" >&6
45620 else
45621   ac_check_lib_save_LIBS=$LIBS
45622 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
45623 cat >conftest.$ac_ext <<_ACEOF
45624 /* confdefs.h.  */
45625 _ACEOF
45626 cat confdefs.h >>conftest.$ac_ext
45627 cat >>conftest.$ac_ext <<_ACEOF
45628 /* end confdefs.h.  */
45629
45630 /* Override any GCC internal prototype to avoid an error.
45631    Use char because int might match the return type of a GCC
45632    builtin and then its argument prototype would still apply.  */
45633 #ifdef __cplusplus
45634 extern "C"
45635 #endif
45636 char IceConnectionNumber ();
45637 int
45638 main ()
45639 {
45640 return IceConnectionNumber ();
45641   ;
45642   return 0;
45643 }
45644 _ACEOF
45645 rm -f conftest.$ac_objext conftest$ac_exeext
45646 if { (ac_try="$ac_link"
45647 case "(($ac_try" in
45648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45649   *) ac_try_echo=$ac_try;;
45650 esac
45651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45652   (eval "$ac_link") 2>conftest.er1
45653   ac_status=$?
45654   grep -v '^ *+' conftest.er1 >conftest.err
45655   rm -f conftest.er1
45656   cat conftest.err >&5
45657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45658   (exit $ac_status); } && {
45659          test -z "$ac_c_werror_flag" ||
45660          test ! -s conftest.err
45661        } && test -s conftest$ac_exeext &&
45662        $as_test_x conftest$ac_exeext; then
45663   ac_cv_lib_ICE_IceConnectionNumber=yes
45664 else
45665   echo "$as_me: failed program was:" >&5
45666 sed 's/^/| /' conftest.$ac_ext >&5
45667
45668         ac_cv_lib_ICE_IceConnectionNumber=no
45669 fi
45670
45671 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45672       conftest$ac_exeext conftest.$ac_ext
45673 LIBS=$ac_check_lib_save_LIBS
45674 fi
45675 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
45676 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
45677 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
45678   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
45679 fi
45680
45681   LDFLAGS=$ac_save_LDFLAGS
45682
45683 fi
45684
45685
45686 # try to figure out if we need any additional ld flags, like -R
45687 # and yes, the autoconf X test is utterly broken
45688 if test "$no_x" != yes; then
45689         { echo "$as_me:$LINENO: checking for special X linker flags" >&5
45690 echo $ECHO_N "checking for special X linker flags... $ECHO_C" >&6; }
45691 if test "${krb_cv_sys_x_libs_rpath+set}" = set; then
45692   echo $ECHO_N "(cached) $ECHO_C" >&6
45693 else
45694
45695         ac_save_libs="$LIBS"
45696         ac_save_cflags="$CFLAGS"
45697         CFLAGS="$CFLAGS $X_CFLAGS"
45698         krb_cv_sys_x_libs_rpath=""
45699         krb_cv_sys_x_libs=""
45700         for rflag in "" "-R" "-R " "-rpath "; do
45701                 if test "$rflag" = ""; then
45702                         foo="$X_LIBS"
45703                 else
45704                         foo=""
45705                         for flag in $X_LIBS; do
45706                         case $flag in
45707                         -L*)
45708                                 foo="$foo $flag `echo $flag | sed \"s/-L/$rflag/\"`"
45709                                 ;;
45710                         *)
45711                                 foo="$foo $flag"
45712                                 ;;
45713                         esac
45714                         done
45715                 fi
45716                 LIBS="$ac_save_libs $foo $X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
45717                 if test "$cross_compiling" = yes; then
45718   krb_cv_sys_x_libs_rpath="" ; krb_cv_sys_x_libs="" ; break
45719 else
45720   cat >conftest.$ac_ext <<_ACEOF
45721
45722                 #include <X11/Xlib.h>
45723                 foo(void)
45724                 {
45725                 XOpenDisplay(NULL);
45726                 }
45727                 main(int argc, char **argv)
45728                 {
45729                 return 0;
45730                 }
45731
45732 _ACEOF
45733 rm -f conftest$ac_exeext
45734 if { (ac_try="$ac_link"
45735 case "(($ac_try" in
45736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45737   *) ac_try_echo=$ac_try;;
45738 esac
45739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45740   (eval "$ac_link") 2>&5
45741   ac_status=$?
45742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45743   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
45744   { (case "(($ac_try" in
45745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45746   *) ac_try_echo=$ac_try;;
45747 esac
45748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45749   (eval "$ac_try") 2>&5
45750   ac_status=$?
45751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45752   (exit $ac_status); }; }; then
45753   krb_cv_sys_x_libs_rpath="$rflag"; krb_cv_sys_x_libs="$foo"; break
45754 else
45755   echo "$as_me: program exited with status $ac_status" >&5
45756 echo "$as_me: failed program was:" >&5
45757 sed 's/^/| /' conftest.$ac_ext >&5
45758
45759 ( exit $ac_status )
45760 :
45761 fi
45762 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
45763 fi
45764
45765
45766         done
45767         LIBS="$ac_save_libs"
45768         CFLAGS="$ac_save_cflags"
45769
45770 fi
45771 { echo "$as_me:$LINENO: result: $krb_cv_sys_x_libs_rpath" >&5
45772 echo "${ECHO_T}$krb_cv_sys_x_libs_rpath" >&6; }
45773         X_LIBS="$krb_cv_sys_x_libs"
45774 fi
45775
45776
45777  if test "$no_x" != yes; then
45778   HAVE_X_TRUE=
45779   HAVE_X_FALSE='#'
45780 else
45781   HAVE_X_TRUE='#'
45782   HAVE_X_FALSE=
45783 fi
45784
45785
45786
45787 save_CFLAGS="$CFLAGS"
45788 CFLAGS="$X_CFLAGS $CFLAGS"
45789 save_LIBS="$LIBS"
45790 LIBS="$X_PRE_LIBS $X_EXTRA_LIBS $LIBS"
45791 save_LDFLAGS="$LDFLAGS"
45792 LDFLAGS="$LDFLAGS $X_LIBS"
45793
45794 ## check for XauWriteAuth first, so we detect the case where
45795 ## XauReadAuth is in -lX11, but XauWriteAuth is only in -lXau this
45796 ## could be done by checking for XauReadAuth in -lXau first, but this
45797 ## breaks in IRIX 6.5
45798
45799
45800
45801
45802 { echo "$as_me:$LINENO: checking for XauWriteAuth" >&5
45803 echo $ECHO_N "checking for XauWriteAuth... $ECHO_C" >&6; }
45804 if test "${ac_cv_funclib_XauWriteAuth+set}" = set; then
45805   echo $ECHO_N "(cached) $ECHO_C" >&6
45806 else
45807
45808 if eval "test \"\$ac_cv_func_XauWriteAuth\" != yes" ; then
45809         ac_save_LIBS="$LIBS"
45810         for ac_lib in "" X11 Xau; do
45811                 case "$ac_lib" in
45812                 "") ;;
45813                 yes) ac_lib="" ;;
45814                 no) continue ;;
45815                 -l*) ;;
45816                 *) ac_lib="-l$ac_lib" ;;
45817                 esac
45818                 LIBS=" $ac_lib  $ac_save_LIBS"
45819                 cat >conftest.$ac_ext <<_ACEOF
45820 /* confdefs.h.  */
45821 _ACEOF
45822 cat confdefs.h >>conftest.$ac_ext
45823 cat >>conftest.$ac_ext <<_ACEOF
45824 /* end confdefs.h.  */
45825 #include <X11/Xauth.h>
45826 int
45827 main ()
45828 {
45829 XauWriteAuth(0,0)
45830   ;
45831   return 0;
45832 }
45833 _ACEOF
45834 rm -f conftest.$ac_objext conftest$ac_exeext
45835 if { (ac_try="$ac_link"
45836 case "(($ac_try" in
45837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45838   *) ac_try_echo=$ac_try;;
45839 esac
45840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45841   (eval "$ac_link") 2>conftest.er1
45842   ac_status=$?
45843   grep -v '^ *+' conftest.er1 >conftest.err
45844   rm -f conftest.er1
45845   cat conftest.err >&5
45846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45847   (exit $ac_status); } && {
45848          test -z "$ac_c_werror_flag" ||
45849          test ! -s conftest.err
45850        } && test -s conftest$ac_exeext &&
45851        $as_test_x conftest$ac_exeext; then
45852   eval "if test -n \"$ac_lib\";then ac_cv_funclib_XauWriteAuth=$ac_lib; else ac_cv_funclib_XauWriteAuth=yes; fi";break
45853 else
45854   echo "$as_me: failed program was:" >&5
45855 sed 's/^/| /' conftest.$ac_ext >&5
45856
45857
45858 fi
45859
45860 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45861       conftest$ac_exeext conftest.$ac_ext
45862         done
45863         eval "ac_cv_funclib_XauWriteAuth=\${ac_cv_funclib_XauWriteAuth-no}"
45864         LIBS="$ac_save_LIBS"
45865 fi
45866
45867 fi
45868
45869
45870 eval "ac_res=\$ac_cv_funclib_XauWriteAuth"
45871
45872 if false; then
45873
45874 for ac_func in XauWriteAuth
45875 do
45876 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45877 { echo "$as_me:$LINENO: checking for $ac_func" >&5
45878 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
45879 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
45880   echo $ECHO_N "(cached) $ECHO_C" >&6
45881 else
45882   cat >conftest.$ac_ext <<_ACEOF
45883 /* confdefs.h.  */
45884 _ACEOF
45885 cat confdefs.h >>conftest.$ac_ext
45886 cat >>conftest.$ac_ext <<_ACEOF
45887 /* end confdefs.h.  */
45888 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45889    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45890 #define $ac_func innocuous_$ac_func
45891
45892 /* System header to define __stub macros and hopefully few prototypes,
45893     which can conflict with char $ac_func (); below.
45894     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45895     <limits.h> exists even on freestanding compilers.  */
45896
45897 #ifdef __STDC__
45898 # include <limits.h>
45899 #else
45900 # include <assert.h>
45901 #endif
45902
45903 #undef $ac_func
45904
45905 /* Override any GCC internal prototype to avoid an error.
45906    Use char because int might match the return type of a GCC
45907    builtin and then its argument prototype would still apply.  */
45908 #ifdef __cplusplus
45909 extern "C"
45910 #endif
45911 char $ac_func ();
45912 /* The GNU C library defines this for functions which it implements
45913     to always fail with ENOSYS.  Some functions are actually named
45914     something starting with __ and the normal name is an alias.  */
45915 #if defined __stub_$ac_func || defined __stub___$ac_func
45916 choke me
45917 #endif
45918
45919 int
45920 main ()
45921 {
45922 return $ac_func ();
45923   ;
45924   return 0;
45925 }
45926 _ACEOF
45927 rm -f conftest.$ac_objext conftest$ac_exeext
45928 if { (ac_try="$ac_link"
45929 case "(($ac_try" in
45930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45931   *) ac_try_echo=$ac_try;;
45932 esac
45933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45934   (eval "$ac_link") 2>conftest.er1
45935   ac_status=$?
45936   grep -v '^ *+' conftest.er1 >conftest.err
45937   rm -f conftest.er1
45938   cat conftest.err >&5
45939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45940   (exit $ac_status); } && {
45941          test -z "$ac_c_werror_flag" ||
45942          test ! -s conftest.err
45943        } && test -s conftest$ac_exeext &&
45944        $as_test_x conftest$ac_exeext; then
45945   eval "$as_ac_var=yes"
45946 else
45947   echo "$as_me: failed program was:" >&5
45948 sed 's/^/| /' conftest.$ac_ext >&5
45949
45950         eval "$as_ac_var=no"
45951 fi
45952
45953 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45954       conftest$ac_exeext conftest.$ac_ext
45955 fi
45956 ac_res=`eval echo '${'$as_ac_var'}'`
45957                { echo "$as_me:$LINENO: result: $ac_res" >&5
45958 echo "${ECHO_T}$ac_res" >&6; }
45959 if test `eval echo '${'$as_ac_var'}'` = yes; then
45960   cat >>confdefs.h <<_ACEOF
45961 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45962 _ACEOF
45963
45964 fi
45965 done
45966
45967 fi
45968 # XauWriteAuth
45969 eval "ac_tr_func=HAVE_`echo XauWriteAuth | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
45970 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
45971 eval "LIB_XauWriteAuth=$ac_res"
45972
45973 case "$ac_res" in
45974         yes)
45975         eval "ac_cv_func_XauWriteAuth=yes"
45976         eval "LIB_XauWriteAuth="
45977         cat >>confdefs.h <<_ACEOF
45978 #define $ac_tr_func 1
45979 _ACEOF
45980
45981         { echo "$as_me:$LINENO: result: yes" >&5
45982 echo "${ECHO_T}yes" >&6; }
45983         ;;
45984         no)
45985         eval "ac_cv_func_XauWriteAuth=no"
45986         eval "LIB_XauWriteAuth="
45987         { echo "$as_me:$LINENO: result: no" >&5
45988 echo "${ECHO_T}no" >&6; }
45989         ;;
45990         *)
45991         eval "ac_cv_func_XauWriteAuth=yes"
45992         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
45993         cat >>confdefs.h <<_ACEOF
45994 #define $ac_tr_func 1
45995 _ACEOF
45996
45997         cat >>confdefs.h <<_ACEOF
45998 #define $ac_tr_lib 1
45999 _ACEOF
46000
46001         { echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
46002 echo "${ECHO_T}yes, in $ac_res" >&6; }
46003         ;;
46004 esac
46005
46006
46007 ac_xxx="$LIBS"
46008 LIBS="$LIB_XauWriteAuth $LIBS"
46009
46010
46011
46012 { echo "$as_me:$LINENO: checking for XauReadAuth" >&5
46013 echo $ECHO_N "checking for XauReadAuth... $ECHO_C" >&6; }
46014 if test "${ac_cv_funclib_XauReadAuth+set}" = set; then
46015   echo $ECHO_N "(cached) $ECHO_C" >&6
46016 else
46017
46018 if eval "test \"\$ac_cv_func_XauReadAuth\" != yes" ; then
46019         ac_save_LIBS="$LIBS"
46020         for ac_lib in "" X11 Xau; do
46021                 case "$ac_lib" in
46022                 "") ;;
46023                 yes) ac_lib="" ;;
46024                 no) continue ;;
46025                 -l*) ;;
46026                 *) ac_lib="-l$ac_lib" ;;
46027                 esac
46028                 LIBS=" $ac_lib  $ac_save_LIBS"
46029                 cat >conftest.$ac_ext <<_ACEOF
46030 /* confdefs.h.  */
46031 _ACEOF
46032 cat confdefs.h >>conftest.$ac_ext
46033 cat >>conftest.$ac_ext <<_ACEOF
46034 /* end confdefs.h.  */
46035 #include <X11/Xauth.h>
46036 int
46037 main ()
46038 {
46039 XauReadAuth(0)
46040   ;
46041   return 0;
46042 }
46043 _ACEOF
46044 rm -f conftest.$ac_objext conftest$ac_exeext
46045 if { (ac_try="$ac_link"
46046 case "(($ac_try" in
46047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46048   *) ac_try_echo=$ac_try;;
46049 esac
46050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46051   (eval "$ac_link") 2>conftest.er1
46052   ac_status=$?
46053   grep -v '^ *+' conftest.er1 >conftest.err
46054   rm -f conftest.er1
46055   cat conftest.err >&5
46056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46057   (exit $ac_status); } && {
46058          test -z "$ac_c_werror_flag" ||
46059          test ! -s conftest.err
46060        } && test -s conftest$ac_exeext &&
46061        $as_test_x conftest$ac_exeext; then
46062   eval "if test -n \"$ac_lib\";then ac_cv_funclib_XauReadAuth=$ac_lib; else ac_cv_funclib_XauReadAuth=yes; fi";break
46063 else
46064   echo "$as_me: failed program was:" >&5
46065 sed 's/^/| /' conftest.$ac_ext >&5
46066
46067
46068 fi
46069
46070 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46071       conftest$ac_exeext conftest.$ac_ext
46072         done
46073         eval "ac_cv_funclib_XauReadAuth=\${ac_cv_funclib_XauReadAuth-no}"
46074         LIBS="$ac_save_LIBS"
46075 fi
46076
46077 fi
46078
46079
46080 eval "ac_res=\$ac_cv_funclib_XauReadAuth"
46081
46082 if false; then
46083
46084 for ac_func in XauReadAuth
46085 do
46086 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46087 { echo "$as_me:$LINENO: checking for $ac_func" >&5
46088 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
46089 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
46090   echo $ECHO_N "(cached) $ECHO_C" >&6
46091 else
46092   cat >conftest.$ac_ext <<_ACEOF
46093 /* confdefs.h.  */
46094 _ACEOF
46095 cat confdefs.h >>conftest.$ac_ext
46096 cat >>conftest.$ac_ext <<_ACEOF
46097 /* end confdefs.h.  */
46098 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46099    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46100 #define $ac_func innocuous_$ac_func
46101
46102 /* System header to define __stub macros and hopefully few prototypes,
46103     which can conflict with char $ac_func (); below.
46104     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46105     <limits.h> exists even on freestanding compilers.  */
46106
46107 #ifdef __STDC__
46108 # include <limits.h>
46109 #else
46110 # include <assert.h>
46111 #endif
46112
46113 #undef $ac_func
46114
46115 /* Override any GCC internal prototype to avoid an error.
46116    Use char because int might match the return type of a GCC
46117    builtin and then its argument prototype would still apply.  */
46118 #ifdef __cplusplus
46119 extern "C"
46120 #endif
46121 char $ac_func ();
46122 /* The GNU C library defines this for functions which it implements
46123     to always fail with ENOSYS.  Some functions are actually named
46124     something starting with __ and the normal name is an alias.  */
46125 #if defined __stub_$ac_func || defined __stub___$ac_func
46126 choke me
46127 #endif
46128
46129 int
46130 main ()
46131 {
46132 return $ac_func ();
46133   ;
46134   return 0;
46135 }
46136 _ACEOF
46137 rm -f conftest.$ac_objext conftest$ac_exeext
46138 if { (ac_try="$ac_link"
46139 case "(($ac_try" in
46140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46141   *) ac_try_echo=$ac_try;;
46142 esac
46143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46144   (eval "$ac_link") 2>conftest.er1
46145   ac_status=$?
46146   grep -v '^ *+' conftest.er1 >conftest.err
46147   rm -f conftest.er1
46148   cat conftest.err >&5
46149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46150   (exit $ac_status); } && {
46151          test -z "$ac_c_werror_flag" ||
46152          test ! -s conftest.err
46153        } && test -s conftest$ac_exeext &&
46154        $as_test_x conftest$ac_exeext; then
46155   eval "$as_ac_var=yes"
46156 else
46157   echo "$as_me: failed program was:" >&5
46158 sed 's/^/| /' conftest.$ac_ext >&5
46159
46160         eval "$as_ac_var=no"
46161 fi
46162
46163 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46164       conftest$ac_exeext conftest.$ac_ext
46165 fi
46166 ac_res=`eval echo '${'$as_ac_var'}'`
46167                { echo "$as_me:$LINENO: result: $ac_res" >&5
46168 echo "${ECHO_T}$ac_res" >&6; }
46169 if test `eval echo '${'$as_ac_var'}'` = yes; then
46170   cat >>confdefs.h <<_ACEOF
46171 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46172 _ACEOF
46173
46174 fi
46175 done
46176
46177 fi
46178 # XauReadAuth
46179 eval "ac_tr_func=HAVE_`echo XauReadAuth | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
46180 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
46181 eval "LIB_XauReadAuth=$ac_res"
46182
46183 case "$ac_res" in
46184         yes)
46185         eval "ac_cv_func_XauReadAuth=yes"
46186         eval "LIB_XauReadAuth="
46187         cat >>confdefs.h <<_ACEOF
46188 #define $ac_tr_func 1
46189 _ACEOF
46190
46191         { echo "$as_me:$LINENO: result: yes" >&5
46192 echo "${ECHO_T}yes" >&6; }
46193         ;;
46194         no)
46195         eval "ac_cv_func_XauReadAuth=no"
46196         eval "LIB_XauReadAuth="
46197         { echo "$as_me:$LINENO: result: no" >&5
46198 echo "${ECHO_T}no" >&6; }
46199         ;;
46200         *)
46201         eval "ac_cv_func_XauReadAuth=yes"
46202         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
46203         cat >>confdefs.h <<_ACEOF
46204 #define $ac_tr_func 1
46205 _ACEOF
46206
46207         cat >>confdefs.h <<_ACEOF
46208 #define $ac_tr_lib 1
46209 _ACEOF
46210
46211         { echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
46212 echo "${ECHO_T}yes, in $ac_res" >&6; }
46213         ;;
46214 esac
46215
46216
46217 LIBS="$LIB_XauReadAauth $LIBS"
46218
46219
46220
46221 { echo "$as_me:$LINENO: checking for XauFileName" >&5
46222 echo $ECHO_N "checking for XauFileName... $ECHO_C" >&6; }
46223 if test "${ac_cv_funclib_XauFileName+set}" = set; then
46224   echo $ECHO_N "(cached) $ECHO_C" >&6
46225 else
46226
46227 if eval "test \"\$ac_cv_func_XauFileName\" != yes" ; then
46228         ac_save_LIBS="$LIBS"
46229         for ac_lib in "" X11 Xau; do
46230                 case "$ac_lib" in
46231                 "") ;;
46232                 yes) ac_lib="" ;;
46233                 no) continue ;;
46234                 -l*) ;;
46235                 *) ac_lib="-l$ac_lib" ;;
46236                 esac
46237                 LIBS=" $ac_lib  $ac_save_LIBS"
46238                 cat >conftest.$ac_ext <<_ACEOF
46239 /* confdefs.h.  */
46240 _ACEOF
46241 cat confdefs.h >>conftest.$ac_ext
46242 cat >>conftest.$ac_ext <<_ACEOF
46243 /* end confdefs.h.  */
46244 #include <X11/Xauth.h>
46245 int
46246 main ()
46247 {
46248 XauFileName()
46249   ;
46250   return 0;
46251 }
46252 _ACEOF
46253 rm -f conftest.$ac_objext conftest$ac_exeext
46254 if { (ac_try="$ac_link"
46255 case "(($ac_try" in
46256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46257   *) ac_try_echo=$ac_try;;
46258 esac
46259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46260   (eval "$ac_link") 2>conftest.er1
46261   ac_status=$?
46262   grep -v '^ *+' conftest.er1 >conftest.err
46263   rm -f conftest.er1
46264   cat conftest.err >&5
46265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46266   (exit $ac_status); } && {
46267          test -z "$ac_c_werror_flag" ||
46268          test ! -s conftest.err
46269        } && test -s conftest$ac_exeext &&
46270        $as_test_x conftest$ac_exeext; then
46271   eval "if test -n \"$ac_lib\";then ac_cv_funclib_XauFileName=$ac_lib; else ac_cv_funclib_XauFileName=yes; fi";break
46272 else
46273   echo "$as_me: failed program was:" >&5
46274 sed 's/^/| /' conftest.$ac_ext >&5
46275
46276
46277 fi
46278
46279 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46280       conftest$ac_exeext conftest.$ac_ext
46281         done
46282         eval "ac_cv_funclib_XauFileName=\${ac_cv_funclib_XauFileName-no}"
46283         LIBS="$ac_save_LIBS"
46284 fi
46285
46286 fi
46287
46288
46289 eval "ac_res=\$ac_cv_funclib_XauFileName"
46290
46291 if false; then
46292
46293 for ac_func in XauFileName
46294 do
46295 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46296 { echo "$as_me:$LINENO: checking for $ac_func" >&5
46297 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
46298 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
46299   echo $ECHO_N "(cached) $ECHO_C" >&6
46300 else
46301   cat >conftest.$ac_ext <<_ACEOF
46302 /* confdefs.h.  */
46303 _ACEOF
46304 cat confdefs.h >>conftest.$ac_ext
46305 cat >>conftest.$ac_ext <<_ACEOF
46306 /* end confdefs.h.  */
46307 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46308    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46309 #define $ac_func innocuous_$ac_func
46310
46311 /* System header to define __stub macros and hopefully few prototypes,
46312     which can conflict with char $ac_func (); below.
46313     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46314     <limits.h> exists even on freestanding compilers.  */
46315
46316 #ifdef __STDC__
46317 # include <limits.h>
46318 #else
46319 # include <assert.h>
46320 #endif
46321
46322 #undef $ac_func
46323
46324 /* Override any GCC internal prototype to avoid an error.
46325    Use char because int might match the return type of a GCC
46326    builtin and then its argument prototype would still apply.  */
46327 #ifdef __cplusplus
46328 extern "C"
46329 #endif
46330 char $ac_func ();
46331 /* The GNU C library defines this for functions which it implements
46332     to always fail with ENOSYS.  Some functions are actually named
46333     something starting with __ and the normal name is an alias.  */
46334 #if defined __stub_$ac_func || defined __stub___$ac_func
46335 choke me
46336 #endif
46337
46338 int
46339 main ()
46340 {
46341 return $ac_func ();
46342   ;
46343   return 0;
46344 }
46345 _ACEOF
46346 rm -f conftest.$ac_objext conftest$ac_exeext
46347 if { (ac_try="$ac_link"
46348 case "(($ac_try" in
46349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46350   *) ac_try_echo=$ac_try;;
46351 esac
46352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46353   (eval "$ac_link") 2>conftest.er1
46354   ac_status=$?
46355   grep -v '^ *+' conftest.er1 >conftest.err
46356   rm -f conftest.er1
46357   cat conftest.err >&5
46358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46359   (exit $ac_status); } && {
46360          test -z "$ac_c_werror_flag" ||
46361          test ! -s conftest.err
46362        } && test -s conftest$ac_exeext &&
46363        $as_test_x conftest$ac_exeext; then
46364   eval "$as_ac_var=yes"
46365 else
46366   echo "$as_me: failed program was:" >&5
46367 sed 's/^/| /' conftest.$ac_ext >&5
46368
46369         eval "$as_ac_var=no"
46370 fi
46371
46372 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46373       conftest$ac_exeext conftest.$ac_ext
46374 fi
46375 ac_res=`eval echo '${'$as_ac_var'}'`
46376                { echo "$as_me:$LINENO: result: $ac_res" >&5
46377 echo "${ECHO_T}$ac_res" >&6; }
46378 if test `eval echo '${'$as_ac_var'}'` = yes; then
46379   cat >>confdefs.h <<_ACEOF
46380 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46381 _ACEOF
46382
46383 fi
46384 done
46385
46386 fi
46387 # XauFileName
46388 eval "ac_tr_func=HAVE_`echo XauFileName | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
46389 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
46390 eval "LIB_XauFileName=$ac_res"
46391
46392 case "$ac_res" in
46393         yes)
46394         eval "ac_cv_func_XauFileName=yes"
46395         eval "LIB_XauFileName="
46396         cat >>confdefs.h <<_ACEOF
46397 #define $ac_tr_func 1
46398 _ACEOF
46399
46400         { echo "$as_me:$LINENO: result: yes" >&5
46401 echo "${ECHO_T}yes" >&6; }
46402         ;;
46403         no)
46404         eval "ac_cv_func_XauFileName=no"
46405         eval "LIB_XauFileName="
46406         { echo "$as_me:$LINENO: result: no" >&5
46407 echo "${ECHO_T}no" >&6; }
46408         ;;
46409         *)
46410         eval "ac_cv_func_XauFileName=yes"
46411         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
46412         cat >>confdefs.h <<_ACEOF
46413 #define $ac_tr_func 1
46414 _ACEOF
46415
46416         cat >>confdefs.h <<_ACEOF
46417 #define $ac_tr_lib 1
46418 _ACEOF
46419
46420         { echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
46421 echo "${ECHO_T}yes, in $ac_res" >&6; }
46422         ;;
46423 esac
46424
46425
46426 LIBS="$ac_xxx"
46427
46428 ## set LIB_XauReadAuth to union of these tests, since this is what the
46429 ## Makefiles are using
46430 case "$ac_cv_funclib_XauWriteAuth" in
46431 yes)    ;;
46432 no)     ;;
46433 *)      if test "$ac_cv_funclib_XauReadAuth" = yes; then
46434                 if test "$ac_cv_funclib_XauFileName" = yes; then
46435                         LIB_XauReadAuth="$LIB_XauWriteAuth"
46436                 else
46437                         LIB_XauReadAuth="$LIB_XauWriteAuth $LIB_XauFileName"
46438                 fi
46439         else
46440                 if test "$ac_cv_funclib_XauFileName" = yes; then
46441                         LIB_XauReadAuth="$LIB_XauReadAuth $LIB_XauWriteAuth"
46442                 else
46443                         LIB_XauReadAuth="$LIB_XauReadAuth $LIB_XauWriteAuth $LIB_XauFileName"
46444                 fi
46445         fi
46446         ;;
46447 esac
46448
46449 if test "$AUTOMAKE" != ""; then
46450          if test "$ac_cv_func_XauWriteAuth" != "yes"; then
46451   NEED_WRITEAUTH_TRUE=
46452   NEED_WRITEAUTH_FALSE='#'
46453 else
46454   NEED_WRITEAUTH_TRUE='#'
46455   NEED_WRITEAUTH_FALSE=
46456 fi
46457
46458 else
46459
46460
46461         if test "$ac_cv_func_XauWriteAuth" != "yes"; then
46462                 NEED_WRITEAUTH_TRUE=
46463                 NEED_WRITEAUTH_FALSE='#'
46464         else
46465                 NEED_WRITEAUTH_TRUE='#'
46466                 NEED_WRITEAUTH_FALSE=
46467         fi
46468 fi
46469 CFLAGS=$save_CFLAGS
46470 LIBS=$save_LIBS
46471 LDFLAGS=$save_LDFLAGS
46472
46473
46474
46475 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
46476 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
46477 if test "${ac_cv_c_const+set}" = set; then
46478   echo $ECHO_N "(cached) $ECHO_C" >&6
46479 else
46480   cat >conftest.$ac_ext <<_ACEOF
46481 /* confdefs.h.  */
46482 _ACEOF
46483 cat confdefs.h >>conftest.$ac_ext
46484 cat >>conftest.$ac_ext <<_ACEOF
46485 /* end confdefs.h.  */
46486
46487 int
46488 main ()
46489 {
46490 /* FIXME: Include the comments suggested by Paul. */
46491 #ifndef __cplusplus
46492   /* Ultrix mips cc rejects this.  */
46493   typedef int charset[2];
46494   const charset cs;
46495   /* SunOS 4.1.1 cc rejects this.  */
46496   char const *const *pcpcc;
46497   char **ppc;
46498   /* NEC SVR4.0.2 mips cc rejects this.  */
46499   struct point {int x, y;};
46500   static struct point const zero = {0,0};
46501   /* AIX XL C 1.02.0.0 rejects this.
46502      It does not let you subtract one const X* pointer from another in
46503      an arm of an if-expression whose if-part is not a constant
46504      expression */
46505   const char *g = "string";
46506   pcpcc = &g + (g ? g-g : 0);
46507   /* HPUX 7.0 cc rejects these. */
46508   ++pcpcc;
46509   ppc = (char**) pcpcc;
46510   pcpcc = (char const *const *) ppc;
46511   { /* SCO 3.2v4 cc rejects this.  */
46512     char *t;
46513     char const *s = 0 ? (char *) 0 : (char const *) 0;
46514
46515     *t++ = 0;
46516     if (s) return 0;
46517   }
46518   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
46519     int x[] = {25, 17};
46520     const int *foo = &x[0];
46521     ++foo;
46522   }
46523   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
46524     typedef const int *iptr;
46525     iptr p = 0;
46526     ++p;
46527   }
46528   { /* AIX XL C 1.02.0.0 rejects this saying
46529        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
46530     struct s { int j; const int *ap[3]; };
46531     struct s *b; b->j = 5;
46532   }
46533   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
46534     const int foo = 10;
46535     if (!foo) return 0;
46536   }
46537   return !cs[0] && !zero.x;
46538 #endif
46539
46540   ;
46541   return 0;
46542 }
46543 _ACEOF
46544 rm -f conftest.$ac_objext
46545 if { (ac_try="$ac_compile"
46546 case "(($ac_try" in
46547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46548   *) ac_try_echo=$ac_try;;
46549 esac
46550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46551   (eval "$ac_compile") 2>conftest.er1
46552   ac_status=$?
46553   grep -v '^ *+' conftest.er1 >conftest.err
46554   rm -f conftest.er1
46555   cat conftest.err >&5
46556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46557   (exit $ac_status); } && {
46558          test -z "$ac_c_werror_flag" ||
46559          test ! -s conftest.err
46560        } && test -s conftest.$ac_objext; then
46561   ac_cv_c_const=yes
46562 else
46563   echo "$as_me: failed program was:" >&5
46564 sed 's/^/| /' conftest.$ac_ext >&5
46565
46566         ac_cv_c_const=no
46567 fi
46568
46569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46570 fi
46571 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
46572 echo "${ECHO_T}$ac_cv_c_const" >&6; }
46573 if test $ac_cv_c_const = no; then
46574
46575 cat >>confdefs.h <<\_ACEOF
46576 #define const
46577 _ACEOF
46578
46579 fi
46580
46581 { echo "$as_me:$LINENO: checking for off_t" >&5
46582 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
46583 if test "${ac_cv_type_off_t+set}" = set; then
46584   echo $ECHO_N "(cached) $ECHO_C" >&6
46585 else
46586   cat >conftest.$ac_ext <<_ACEOF
46587 /* confdefs.h.  */
46588 _ACEOF
46589 cat confdefs.h >>conftest.$ac_ext
46590 cat >>conftest.$ac_ext <<_ACEOF
46591 /* end confdefs.h.  */
46592 $ac_includes_default
46593 typedef off_t ac__type_new_;
46594 int
46595 main ()
46596 {
46597 if ((ac__type_new_ *) 0)
46598   return 0;
46599 if (sizeof (ac__type_new_))
46600   return 0;
46601   ;
46602   return 0;
46603 }
46604 _ACEOF
46605 rm -f conftest.$ac_objext
46606 if { (ac_try="$ac_compile"
46607 case "(($ac_try" in
46608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46609   *) ac_try_echo=$ac_try;;
46610 esac
46611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46612   (eval "$ac_compile") 2>conftest.er1
46613   ac_status=$?
46614   grep -v '^ *+' conftest.er1 >conftest.err
46615   rm -f conftest.er1
46616   cat conftest.err >&5
46617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46618   (exit $ac_status); } && {
46619          test -z "$ac_c_werror_flag" ||
46620          test ! -s conftest.err
46621        } && test -s conftest.$ac_objext; then
46622   ac_cv_type_off_t=yes
46623 else
46624   echo "$as_me: failed program was:" >&5
46625 sed 's/^/| /' conftest.$ac_ext >&5
46626
46627         ac_cv_type_off_t=no
46628 fi
46629
46630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46631 fi
46632 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
46633 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
46634 if test $ac_cv_type_off_t = yes; then
46635   :
46636 else
46637
46638 cat >>confdefs.h <<_ACEOF
46639 #define off_t long int
46640 _ACEOF
46641
46642 fi
46643
46644 { echo "$as_me:$LINENO: checking for mode_t" >&5
46645 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
46646 if test "${ac_cv_type_mode_t+set}" = set; then
46647   echo $ECHO_N "(cached) $ECHO_C" >&6
46648 else
46649   cat >conftest.$ac_ext <<_ACEOF
46650 /* confdefs.h.  */
46651 _ACEOF
46652 cat confdefs.h >>conftest.$ac_ext
46653 cat >>conftest.$ac_ext <<_ACEOF
46654 /* end confdefs.h.  */
46655 #include <sys/types.h>
46656 #if STDC_HEADERS
46657 #include <stdlib.h>
46658 #include <stddef.h>
46659 #endif
46660
46661 _ACEOF
46662 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46663   $EGREP "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
46664   ac_cv_type_mode_t=yes
46665 else
46666   ac_cv_type_mode_t=no
46667 fi
46668 rm -f conftest*
46669
46670 fi
46671 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
46672 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
46673 if test $ac_cv_type_mode_t = no; then
46674
46675 cat >>confdefs.h <<\_ACEOF
46676 #define mode_t unsigned short
46677 _ACEOF
46678
46679 fi
46680
46681 { echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
46682 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6; }
46683 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
46684   echo $ECHO_N "(cached) $ECHO_C" >&6
46685 else
46686   cat >conftest.$ac_ext <<_ACEOF
46687 /* confdefs.h.  */
46688 _ACEOF
46689 cat confdefs.h >>conftest.$ac_ext
46690 cat >>conftest.$ac_ext <<_ACEOF
46691 /* end confdefs.h.  */
46692 #include <sys/types.h>
46693 #if STDC_HEADERS
46694 #include <stdlib.h>
46695 #include <stddef.h>
46696 #endif
46697 #include <signal.h>
46698 _ACEOF
46699 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46700   $EGREP "sig_atomic_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
46701   ac_cv_type_sig_atomic_t=yes
46702 else
46703   ac_cv_type_sig_atomic_t=no
46704 fi
46705 rm -f conftest*
46706
46707 fi
46708 { echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
46709 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6; }
46710 if test $ac_cv_type_sig_atomic_t = no; then
46711
46712 cat >>confdefs.h <<\_ACEOF
46713 #define sig_atomic_t int
46714 _ACEOF
46715
46716 fi
46717
46718
46719
46720 cv=`echo "long long" | sed 'y%./+- %__p__%'`
46721 { echo "$as_me:$LINENO: checking for long long" >&5
46722 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
46723 if { as_var=ac_cv_type_$cv; eval "test \"\${$as_var+set}\" = set"; }; then
46724   echo $ECHO_N "(cached) $ECHO_C" >&6
46725 else
46726   cat >conftest.$ac_ext <<_ACEOF
46727 /* confdefs.h.  */
46728 _ACEOF
46729 cat confdefs.h >>conftest.$ac_ext
46730 cat >>conftest.$ac_ext <<_ACEOF
46731 /* end confdefs.h.  */
46732
46733 #include <sys/types.h>
46734 #if STDC_HEADERS
46735 #include <stdlib.h>
46736 #include <stddef.h>
46737 #endif
46738
46739 int
46740 main ()
46741 {
46742 long long foo;
46743   ;
46744   return 0;
46745 }
46746 _ACEOF
46747 rm -f conftest.$ac_objext
46748 if { (ac_try="$ac_compile"
46749 case "(($ac_try" in
46750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46751   *) ac_try_echo=$ac_try;;
46752 esac
46753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46754   (eval "$ac_compile") 2>conftest.er1
46755   ac_status=$?
46756   grep -v '^ *+' conftest.er1 >conftest.err
46757   rm -f conftest.er1
46758   cat conftest.err >&5
46759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46760   (exit $ac_status); } && {
46761          test -z "$ac_c_werror_flag" ||
46762          test ! -s conftest.err
46763        } && test -s conftest.$ac_objext; then
46764   eval "ac_cv_type_$cv=yes"
46765 else
46766   echo "$as_me: failed program was:" >&5
46767 sed 's/^/| /' conftest.$ac_ext >&5
46768
46769         eval "ac_cv_type_$cv=no"
46770 fi
46771
46772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46773 fi
46774 ac_foo=`eval echo \\$ac_cv_type_$cv`
46775 { echo "$as_me:$LINENO: result: $ac_foo" >&5
46776 echo "${ECHO_T}$ac_foo" >&6; }
46777 if test "$ac_foo" = yes; then
46778   ac_tr_hdr=HAVE_`echo long long | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
46779 if false; then
46780         { echo "$as_me:$LINENO: checking for long long" >&5
46781 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
46782 if test "${ac_cv_type_long_long+set}" = set; then
46783   echo $ECHO_N "(cached) $ECHO_C" >&6
46784 else
46785   cat >conftest.$ac_ext <<_ACEOF
46786 /* confdefs.h.  */
46787 _ACEOF
46788 cat confdefs.h >>conftest.$ac_ext
46789 cat >>conftest.$ac_ext <<_ACEOF
46790 /* end confdefs.h.  */
46791 $ac_includes_default
46792 typedef long long ac__type_new_;
46793 int
46794 main ()
46795 {
46796 if ((ac__type_new_ *) 0)
46797   return 0;
46798 if (sizeof (ac__type_new_))
46799   return 0;
46800   ;
46801   return 0;
46802 }
46803 _ACEOF
46804 rm -f conftest.$ac_objext
46805 if { (ac_try="$ac_compile"
46806 case "(($ac_try" in
46807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46808   *) ac_try_echo=$ac_try;;
46809 esac
46810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46811   (eval "$ac_compile") 2>conftest.er1
46812   ac_status=$?
46813   grep -v '^ *+' conftest.er1 >conftest.err
46814   rm -f conftest.er1
46815   cat conftest.err >&5
46816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46817   (exit $ac_status); } && {
46818          test -z "$ac_c_werror_flag" ||
46819          test ! -s conftest.err
46820        } && test -s conftest.$ac_objext; then
46821   ac_cv_type_long_long=yes
46822 else
46823   echo "$as_me: failed program was:" >&5
46824 sed 's/^/| /' conftest.$ac_ext >&5
46825
46826         ac_cv_type_long_long=no
46827 fi
46828
46829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46830 fi
46831 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
46832 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
46833 if test $ac_cv_type_long_long = yes; then
46834
46835 cat >>confdefs.h <<_ACEOF
46836 #define HAVE_LONG_LONG 1
46837 _ACEOF
46838
46839
46840 fi
46841
46842 fi
46843
46844 cat >>confdefs.h <<_ACEOF
46845 #define $ac_tr_hdr 1
46846 _ACEOF
46847
46848 fi
46849
46850 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
46851 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
46852 if test "${ac_cv_header_time+set}" = set; then
46853   echo $ECHO_N "(cached) $ECHO_C" >&6
46854 else
46855   cat >conftest.$ac_ext <<_ACEOF
46856 /* confdefs.h.  */
46857 _ACEOF
46858 cat confdefs.h >>conftest.$ac_ext
46859 cat >>conftest.$ac_ext <<_ACEOF
46860 /* end confdefs.h.  */
46861 #include <sys/types.h>
46862 #include <sys/time.h>
46863 #include <time.h>
46864
46865 int
46866 main ()
46867 {
46868 if ((struct tm *) 0)
46869 return 0;
46870   ;
46871   return 0;
46872 }
46873 _ACEOF
46874 rm -f conftest.$ac_objext
46875 if { (ac_try="$ac_compile"
46876 case "(($ac_try" in
46877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46878   *) ac_try_echo=$ac_try;;
46879 esac
46880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46881   (eval "$ac_compile") 2>conftest.er1
46882   ac_status=$?
46883   grep -v '^ *+' conftest.er1 >conftest.err
46884   rm -f conftest.er1
46885   cat conftest.err >&5
46886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46887   (exit $ac_status); } && {
46888          test -z "$ac_c_werror_flag" ||
46889          test ! -s conftest.err
46890        } && test -s conftest.$ac_objext; then
46891   ac_cv_header_time=yes
46892 else
46893   echo "$as_me: failed program was:" >&5
46894 sed 's/^/| /' conftest.$ac_ext >&5
46895
46896         ac_cv_header_time=no
46897 fi
46898
46899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46900 fi
46901 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
46902 echo "${ECHO_T}$ac_cv_header_time" >&6; }
46903 if test $ac_cv_header_time = yes; then
46904
46905 cat >>confdefs.h <<\_ACEOF
46906 #define TIME_WITH_SYS_TIME 1
46907 _ACEOF
46908
46909 fi
46910
46911 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
46912 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
46913 if test "${ac_cv_struct_tm+set}" = set; then
46914   echo $ECHO_N "(cached) $ECHO_C" >&6
46915 else
46916   cat >conftest.$ac_ext <<_ACEOF
46917 /* confdefs.h.  */
46918 _ACEOF
46919 cat confdefs.h >>conftest.$ac_ext
46920 cat >>conftest.$ac_ext <<_ACEOF
46921 /* end confdefs.h.  */
46922 #include <sys/types.h>
46923 #include <time.h>
46924
46925 int
46926 main ()
46927 {
46928 struct tm tm;
46929                                      int *p = &tm.tm_sec;
46930                                      return !p;
46931   ;
46932   return 0;
46933 }
46934 _ACEOF
46935 rm -f conftest.$ac_objext
46936 if { (ac_try="$ac_compile"
46937 case "(($ac_try" in
46938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46939   *) ac_try_echo=$ac_try;;
46940 esac
46941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46942   (eval "$ac_compile") 2>conftest.er1
46943   ac_status=$?
46944   grep -v '^ *+' conftest.er1 >conftest.err
46945   rm -f conftest.er1
46946   cat conftest.err >&5
46947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46948   (exit $ac_status); } && {
46949          test -z "$ac_c_werror_flag" ||
46950          test ! -s conftest.err
46951        } && test -s conftest.$ac_objext; then
46952   ac_cv_struct_tm=time.h
46953 else
46954   echo "$as_me: failed program was:" >&5
46955 sed 's/^/| /' conftest.$ac_ext >&5
46956
46957         ac_cv_struct_tm=sys/time.h
46958 fi
46959
46960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46961 fi
46962 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
46963 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
46964 if test $ac_cv_struct_tm = sys/time.h; then
46965
46966 cat >>confdefs.h <<\_ACEOF
46967 #define TM_IN_SYS_TIME 1
46968 _ACEOF
46969
46970 fi
46971
46972
46973 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
46974 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
46975 if test "${ac_cv_header_stdc+set}" = set; then
46976   echo $ECHO_N "(cached) $ECHO_C" >&6
46977 else
46978   cat >conftest.$ac_ext <<_ACEOF
46979 /* confdefs.h.  */
46980 _ACEOF
46981 cat confdefs.h >>conftest.$ac_ext
46982 cat >>conftest.$ac_ext <<_ACEOF
46983 /* end confdefs.h.  */
46984 #include <stdlib.h>
46985 #include <stdarg.h>
46986 #include <string.h>
46987 #include <float.h>
46988
46989 int
46990 main ()
46991 {
46992
46993   ;
46994   return 0;
46995 }
46996 _ACEOF
46997 rm -f conftest.$ac_objext
46998 if { (ac_try="$ac_compile"
46999 case "(($ac_try" in
47000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47001   *) ac_try_echo=$ac_try;;
47002 esac
47003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47004   (eval "$ac_compile") 2>conftest.er1
47005   ac_status=$?
47006   grep -v '^ *+' conftest.er1 >conftest.err
47007   rm -f conftest.er1
47008   cat conftest.err >&5
47009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47010   (exit $ac_status); } && {
47011          test -z "$ac_c_werror_flag" ||
47012          test ! -s conftest.err
47013        } && test -s conftest.$ac_objext; then
47014   ac_cv_header_stdc=yes
47015 else
47016   echo "$as_me: failed program was:" >&5
47017 sed 's/^/| /' conftest.$ac_ext >&5
47018
47019         ac_cv_header_stdc=no
47020 fi
47021
47022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47023
47024 if test $ac_cv_header_stdc = yes; then
47025   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
47026   cat >conftest.$ac_ext <<_ACEOF
47027 /* confdefs.h.  */
47028 _ACEOF
47029 cat confdefs.h >>conftest.$ac_ext
47030 cat >>conftest.$ac_ext <<_ACEOF
47031 /* end confdefs.h.  */
47032 #include <string.h>
47033
47034 _ACEOF
47035 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47036   $EGREP "memchr" >/dev/null 2>&1; then
47037   :
47038 else
47039   ac_cv_header_stdc=no
47040 fi
47041 rm -f conftest*
47042
47043 fi
47044
47045 if test $ac_cv_header_stdc = yes; then
47046   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
47047   cat >conftest.$ac_ext <<_ACEOF
47048 /* confdefs.h.  */
47049 _ACEOF
47050 cat confdefs.h >>conftest.$ac_ext
47051 cat >>conftest.$ac_ext <<_ACEOF
47052 /* end confdefs.h.  */
47053 #include <stdlib.h>
47054
47055 _ACEOF
47056 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47057   $EGREP "free" >/dev/null 2>&1; then
47058   :
47059 else
47060   ac_cv_header_stdc=no
47061 fi
47062 rm -f conftest*
47063
47064 fi
47065
47066 if test $ac_cv_header_stdc = yes; then
47067   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
47068   if test "$cross_compiling" = yes; then
47069   :
47070 else
47071   cat >conftest.$ac_ext <<_ACEOF
47072 /* confdefs.h.  */
47073 _ACEOF
47074 cat confdefs.h >>conftest.$ac_ext
47075 cat >>conftest.$ac_ext <<_ACEOF
47076 /* end confdefs.h.  */
47077 #include <ctype.h>
47078 #include <stdlib.h>
47079 #if ((' ' & 0x0FF) == 0x020)
47080 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
47081 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
47082 #else
47083 # define ISLOWER(c) \
47084                    (('a' <= (c) && (c) <= 'i') \
47085                      || ('j' <= (c) && (c) <= 'r') \
47086                      || ('s' <= (c) && (c) <= 'z'))
47087 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
47088 #endif
47089
47090 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
47091 int
47092 main ()
47093 {
47094   int i;
47095   for (i = 0; i < 256; i++)
47096     if (XOR (islower (i), ISLOWER (i))
47097         || toupper (i) != TOUPPER (i))
47098       return 2;
47099   return 0;
47100 }
47101 _ACEOF
47102 rm -f conftest$ac_exeext
47103 if { (ac_try="$ac_link"
47104 case "(($ac_try" in
47105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47106   *) ac_try_echo=$ac_try;;
47107 esac
47108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47109   (eval "$ac_link") 2>&5
47110   ac_status=$?
47111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47112   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
47113   { (case "(($ac_try" in
47114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47115   *) ac_try_echo=$ac_try;;
47116 esac
47117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47118   (eval "$ac_try") 2>&5
47119   ac_status=$?
47120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47121   (exit $ac_status); }; }; then
47122   :
47123 else
47124   echo "$as_me: program exited with status $ac_status" >&5
47125 echo "$as_me: failed program was:" >&5
47126 sed 's/^/| /' conftest.$ac_ext >&5
47127
47128 ( exit $ac_status )
47129 ac_cv_header_stdc=no
47130 fi
47131 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
47132 fi
47133
47134
47135 fi
47136 fi
47137 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
47138 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
47139 if test $ac_cv_header_stdc = yes; then
47140
47141 cat >>confdefs.h <<\_ACEOF
47142 #define STDC_HEADERS 1
47143 _ACEOF
47144
47145 fi
47146
47147
47148
47149
47150
47151
47152
47153
47154
47155
47156
47157
47158
47159
47160
47161
47162
47163
47164
47165
47166
47167
47168
47169
47170
47171
47172
47173
47174
47175
47176
47177
47178
47179
47180
47181
47182
47183
47184
47185
47186
47187
47188
47189
47190
47191
47192
47193
47194
47195
47196
47197
47198
47199
47200 for ac_header in \
47201         arpa/ftp.h                              \
47202         arpa/telnet.h                           \
47203         bind/bitypes.h                          \
47204         bsdsetjmp.h                             \
47205         curses.h                                \
47206         dlfcn.h                                 \
47207         fnmatch.h                               \
47208         inttypes.h                              \
47209         io.h                                    \
47210         libutil.h                               \
47211         limits.h                                \
47212         maillock.h                              \
47213         netgroup.h                              \
47214         netinet/in6_machtypes.h                 \
47215         netinfo/ni.h                            \
47216         pthread.h                               \
47217         pty.h                                   \
47218         sac.h                                   \
47219         sgtty.h                                 \
47220         siad.h                                  \
47221         signal.h                                \
47222         strings.h                               \
47223         stropts.h                               \
47224         sys/bitypes.h                           \
47225         sys/category.h                          \
47226         sys/file.h                              \
47227         sys/filio.h                             \
47228         sys/ioccom.h                            \
47229         sys/mman.h                              \
47230         sys/param.h                             \
47231         sys/pty.h                               \
47232         sys/ptyio.h                             \
47233         sys/select.h                            \
47234         sys/socket.h                            \
47235         sys/str_tty.h                           \
47236         sys/stream.h                            \
47237         sys/stropts.h                           \
47238         sys/syscall.h                           \
47239         sys/termio.h                            \
47240         sys/timeb.h                             \
47241         sys/times.h                             \
47242         sys/types.h                             \
47243         sys/un.h                                \
47244         termcap.h                               \
47245         termio.h                                \
47246         termios.h                               \
47247         time.h                                  \
47248         tmpdir.h                                \
47249         udb.h                                   \
47250         util.h                                  \
47251         utmp.h                                  \
47252         utmpx.h                                 \
47253
47254 do
47255 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
47256 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
47257   { echo "$as_me:$LINENO: checking for $ac_header" >&5
47258 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
47259 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
47260   echo $ECHO_N "(cached) $ECHO_C" >&6
47261 fi
47262 ac_res=`eval echo '${'$as_ac_Header'}'`
47263                { echo "$as_me:$LINENO: result: $ac_res" >&5
47264 echo "${ECHO_T}$ac_res" >&6; }
47265 else
47266   # Is the header compilable?
47267 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
47268 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
47269 cat >conftest.$ac_ext <<_ACEOF
47270 /* confdefs.h.  */
47271 _ACEOF
47272 cat confdefs.h >>conftest.$ac_ext
47273 cat >>conftest.$ac_ext <<_ACEOF
47274 /* end confdefs.h.  */
47275 $ac_includes_default
47276 #include <$ac_header>
47277 _ACEOF
47278 rm -f conftest.$ac_objext
47279 if { (ac_try="$ac_compile"
47280 case "(($ac_try" in
47281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47282   *) ac_try_echo=$ac_try;;
47283 esac
47284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47285   (eval "$ac_compile") 2>conftest.er1
47286   ac_status=$?
47287   grep -v '^ *+' conftest.er1 >conftest.err
47288   rm -f conftest.er1
47289   cat conftest.err >&5
47290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47291   (exit $ac_status); } && {
47292          test -z "$ac_c_werror_flag" ||
47293          test ! -s conftest.err
47294        } && test -s conftest.$ac_objext; then
47295   ac_header_compiler=yes
47296 else
47297   echo "$as_me: failed program was:" >&5
47298 sed 's/^/| /' conftest.$ac_ext >&5
47299
47300         ac_header_compiler=no
47301 fi
47302
47303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47304 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
47305 echo "${ECHO_T}$ac_header_compiler" >&6; }
47306
47307 # Is the header present?
47308 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
47309 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
47310 cat >conftest.$ac_ext <<_ACEOF
47311 /* confdefs.h.  */
47312 _ACEOF
47313 cat confdefs.h >>conftest.$ac_ext
47314 cat >>conftest.$ac_ext <<_ACEOF
47315 /* end confdefs.h.  */
47316 #include <$ac_header>
47317 _ACEOF
47318 if { (ac_try="$ac_cpp conftest.$ac_ext"
47319 case "(($ac_try" in
47320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47321   *) ac_try_echo=$ac_try;;
47322 esac
47323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47324   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
47325   ac_status=$?
47326   grep -v '^ *+' conftest.er1 >conftest.err
47327   rm -f conftest.er1
47328   cat conftest.err >&5
47329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47330   (exit $ac_status); } >/dev/null && {
47331          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
47332          test ! -s conftest.err
47333        }; then
47334   ac_header_preproc=yes
47335 else
47336   echo "$as_me: failed program was:" >&5
47337 sed 's/^/| /' conftest.$ac_ext >&5
47338
47339   ac_header_preproc=no
47340 fi
47341
47342 rm -f conftest.err conftest.$ac_ext
47343 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
47344 echo "${ECHO_T}$ac_header_preproc" >&6; }
47345
47346 # So?  What about this header?
47347 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
47348   yes:no: )
47349     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
47350 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
47351     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
47352 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
47353     ac_header_preproc=yes
47354     ;;
47355   no:yes:* )
47356     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
47357 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
47358     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
47359 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
47360     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
47361 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
47362     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
47363 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
47364     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
47365 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
47366     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
47367 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
47368     ( cat <<\_ASBOX
47369 ## ----------------------------------- ##
47370 ## Report this to heimdal-bugs@h5l.org ##
47371 ## ----------------------------------- ##
47372 _ASBOX
47373      ) | sed "s/^/$as_me: WARNING:     /" >&2
47374     ;;
47375 esac
47376 { echo "$as_me:$LINENO: checking for $ac_header" >&5
47377 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
47378 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
47379   echo $ECHO_N "(cached) $ECHO_C" >&6
47380 else
47381   eval "$as_ac_Header=\$ac_header_preproc"
47382 fi
47383 ac_res=`eval echo '${'$as_ac_Header'}'`
47384                { echo "$as_me:$LINENO: result: $ac_res" >&5
47385 echo "${ECHO_T}$ac_res" >&6; }
47386
47387 fi
47388 if test `eval echo '${'$as_ac_Header'}'` = yes; then
47389   cat >>confdefs.h <<_ACEOF
47390 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
47391 _ACEOF
47392
47393 fi
47394
47395 done
47396
47397
47398
47399 for ac_header in term.h
47400 do
47401 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
47402 { echo "$as_me:$LINENO: checking for $ac_header" >&5
47403 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
47404 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
47405   echo $ECHO_N "(cached) $ECHO_C" >&6
47406 else
47407   cat >conftest.$ac_ext <<_ACEOF
47408 /* confdefs.h.  */
47409 _ACEOF
47410 cat confdefs.h >>conftest.$ac_ext
47411 cat >>conftest.$ac_ext <<_ACEOF
47412 /* end confdefs.h.  */
47413 #include <$ac_header>
47414 _ACEOF
47415 if { (ac_try="$ac_cpp conftest.$ac_ext"
47416 case "(($ac_try" in
47417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47418   *) ac_try_echo=$ac_try;;
47419 esac
47420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47421   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
47422   ac_status=$?
47423   grep -v '^ *+' conftest.er1 >conftest.err
47424   rm -f conftest.er1
47425   cat conftest.err >&5
47426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47427   (exit $ac_status); } >/dev/null && {
47428          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
47429          test ! -s conftest.err
47430        }; then
47431   eval "$as_ac_Header=yes"
47432 else
47433   echo "$as_me: failed program was:" >&5
47434 sed 's/^/| /' conftest.$ac_ext >&5
47435
47436   eval "$as_ac_Header=no"
47437 fi
47438
47439 rm -f conftest.err conftest.$ac_ext
47440 fi
47441 ac_res=`eval echo '${'$as_ac_Header'}'`
47442                { echo "$as_me:$LINENO: result: $ac_res" >&5
47443 echo "${ECHO_T}$ac_res" >&6; }
47444 if test `eval echo '${'$as_ac_Header'}'` = yes; then
47445   cat >>confdefs.h <<_ACEOF
47446 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
47447 _ACEOF
47448
47449 fi
47450
47451 done
47452
47453
47454
47455 for ac_header in net/if.h
47456 do
47457 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
47458 { echo "$as_me:$LINENO: checking for $ac_header" >&5
47459 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
47460 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
47461   echo $ECHO_N "(cached) $ECHO_C" >&6
47462 else
47463   cat >conftest.$ac_ext <<_ACEOF
47464 /* confdefs.h.  */
47465 _ACEOF
47466 cat confdefs.h >>conftest.$ac_ext
47467 cat >>conftest.$ac_ext <<_ACEOF
47468 /* end confdefs.h.  */
47469 $ac_includes_default
47470 #if HAVE_SYS_SOCKET_H
47471 #include <sys/socket.h>
47472 #endif
47473
47474 #include <$ac_header>
47475 _ACEOF
47476 rm -f conftest.$ac_objext
47477 if { (ac_try="$ac_compile"
47478 case "(($ac_try" in
47479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47480   *) ac_try_echo=$ac_try;;
47481 esac
47482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47483   (eval "$ac_compile") 2>conftest.er1
47484   ac_status=$?
47485   grep -v '^ *+' conftest.er1 >conftest.err
47486   rm -f conftest.er1
47487   cat conftest.err >&5
47488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47489   (exit $ac_status); } && {
47490          test -z "$ac_c_werror_flag" ||
47491          test ! -s conftest.err
47492        } && test -s conftest.$ac_objext; then
47493   eval "$as_ac_Header=yes"
47494 else
47495   echo "$as_me: failed program was:" >&5
47496 sed 's/^/| /' conftest.$ac_ext >&5
47497
47498         eval "$as_ac_Header=no"
47499 fi
47500
47501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47502 fi
47503 ac_res=`eval echo '${'$as_ac_Header'}'`
47504                { echo "$as_me:$LINENO: result: $ac_res" >&5
47505 echo "${ECHO_T}$ac_res" >&6; }
47506 if test `eval echo '${'$as_ac_Header'}'` = yes; then
47507   cat >>confdefs.h <<_ACEOF
47508 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
47509 _ACEOF
47510
47511 fi
47512
47513 done
47514
47515
47516
47517 for ac_header in sys/ptyvar.h
47518 do
47519 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
47520 { echo "$as_me:$LINENO: checking for $ac_header" >&5
47521 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
47522 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
47523   echo $ECHO_N "(cached) $ECHO_C" >&6
47524 else
47525   cat >conftest.$ac_ext <<_ACEOF
47526 /* confdefs.h.  */
47527 _ACEOF
47528 cat confdefs.h >>conftest.$ac_ext
47529 cat >>conftest.$ac_ext <<_ACEOF
47530 /* end confdefs.h.  */
47531 $ac_includes_default
47532 #if HAVE_SYS_TTY_H
47533 #include <sys/tty.h>
47534 #endif
47535
47536 #include <$ac_header>
47537 _ACEOF
47538 rm -f conftest.$ac_objext
47539 if { (ac_try="$ac_compile"
47540 case "(($ac_try" in
47541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47542   *) ac_try_echo=$ac_try;;
47543 esac
47544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47545   (eval "$ac_compile") 2>conftest.er1
47546   ac_status=$?
47547   grep -v '^ *+' conftest.er1 >conftest.err
47548   rm -f conftest.er1
47549   cat conftest.err >&5
47550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47551   (exit $ac_status); } && {
47552          test -z "$ac_c_werror_flag" ||
47553          test ! -s conftest.err
47554        } && test -s conftest.$ac_objext; then
47555   eval "$as_ac_Header=yes"
47556 else
47557   echo "$as_me: failed program was:" >&5
47558 sed 's/^/| /' conftest.$ac_ext >&5
47559
47560         eval "$as_ac_Header=no"
47561 fi
47562
47563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47564 fi
47565 ac_res=`eval echo '${'$as_ac_Header'}'`
47566                { echo "$as_me:$LINENO: result: $ac_res" >&5
47567 echo "${ECHO_T}$ac_res" >&6; }
47568 if test `eval echo '${'$as_ac_Header'}'` = yes; then
47569   cat >>confdefs.h <<_ACEOF
47570 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
47571 _ACEOF
47572
47573 fi
47574
47575 done
47576
47577
47578
47579 for ac_header in sys/strtty.h
47580 do
47581 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
47582 { echo "$as_me:$LINENO: checking for $ac_header" >&5
47583 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
47584 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
47585   echo $ECHO_N "(cached) $ECHO_C" >&6
47586 else
47587   cat >conftest.$ac_ext <<_ACEOF
47588 /* confdefs.h.  */
47589 _ACEOF
47590 cat confdefs.h >>conftest.$ac_ext
47591 cat >>conftest.$ac_ext <<_ACEOF
47592 /* end confdefs.h.  */
47593 $ac_includes_default
47594 #if HAVE_TERMIOS_H
47595 #include <termios.h>
47596 #endif
47597 #if HAVE_SYS_STREAM_H
47598 #include <sys/stream.h>
47599 #endif
47600
47601 #include <$ac_header>
47602 _ACEOF
47603 rm -f conftest.$ac_objext
47604 if { (ac_try="$ac_compile"
47605 case "(($ac_try" in
47606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47607   *) ac_try_echo=$ac_try;;
47608 esac
47609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47610   (eval "$ac_compile") 2>conftest.er1
47611   ac_status=$?
47612   grep -v '^ *+' conftest.er1 >conftest.err
47613   rm -f conftest.er1
47614   cat conftest.err >&5
47615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47616   (exit $ac_status); } && {
47617          test -z "$ac_c_werror_flag" ||
47618          test ! -s conftest.err
47619        } && test -s conftest.$ac_objext; then
47620   eval "$as_ac_Header=yes"
47621 else
47622   echo "$as_me: failed program was:" >&5
47623 sed 's/^/| /' conftest.$ac_ext >&5
47624
47625         eval "$as_ac_Header=no"
47626 fi
47627
47628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47629 fi
47630 ac_res=`eval echo '${'$as_ac_Header'}'`
47631                { echo "$as_me:$LINENO: result: $ac_res" >&5
47632 echo "${ECHO_T}$ac_res" >&6; }
47633 if test `eval echo '${'$as_ac_Header'}'` = yes; then
47634   cat >>confdefs.h <<_ACEOF
47635 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
47636 _ACEOF
47637
47638 fi
47639
47640 done
47641
47642
47643
47644 for ac_header in sys/ucred.h
47645 do
47646 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
47647 { echo "$as_me:$LINENO: checking for $ac_header" >&5
47648 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
47649 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
47650   echo $ECHO_N "(cached) $ECHO_C" >&6
47651 else
47652   cat >conftest.$ac_ext <<_ACEOF
47653 /* confdefs.h.  */
47654 _ACEOF
47655 cat confdefs.h >>conftest.$ac_ext
47656 cat >>conftest.$ac_ext <<_ACEOF
47657 /* end confdefs.h.  */
47658 $ac_includes_default
47659 #if HAVE_SYS_TYPES_H
47660 #include <sys/types.h>
47661 #endif
47662 #if HAVE_SYS_PARAM_H
47663 #include <sys/param.h>
47664 #endif
47665
47666 #include <$ac_header>
47667 _ACEOF
47668 rm -f conftest.$ac_objext
47669 if { (ac_try="$ac_compile"
47670 case "(($ac_try" in
47671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47672   *) ac_try_echo=$ac_try;;
47673 esac
47674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47675   (eval "$ac_compile") 2>conftest.er1
47676   ac_status=$?
47677   grep -v '^ *+' conftest.er1 >conftest.err
47678   rm -f conftest.er1
47679   cat conftest.err >&5
47680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47681   (exit $ac_status); } && {
47682          test -z "$ac_c_werror_flag" ||
47683          test ! -s conftest.err
47684        } && test -s conftest.$ac_objext; then
47685   eval "$as_ac_Header=yes"
47686 else
47687   echo "$as_me: failed program was:" >&5
47688 sed 's/^/| /' conftest.$ac_ext >&5
47689
47690         eval "$as_ac_Header=no"
47691 fi
47692
47693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47694 fi
47695 ac_res=`eval echo '${'$as_ac_Header'}'`
47696                { echo "$as_me:$LINENO: result: $ac_res" >&5
47697 echo "${ECHO_T}$ac_res" >&6; }
47698 if test `eval echo '${'$as_ac_Header'}'` = yes; then
47699   cat >>confdefs.h <<_ACEOF
47700 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
47701 _ACEOF
47702
47703 fi
47704
47705 done
47706
47707
47708
47709 for ac_header in security/pam_modules.h
47710 do
47711 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
47712 { echo "$as_me:$LINENO: checking for $ac_header" >&5
47713 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
47714 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
47715   echo $ECHO_N "(cached) $ECHO_C" >&6
47716 else
47717   cat >conftest.$ac_ext <<_ACEOF
47718 /* confdefs.h.  */
47719 _ACEOF
47720 cat confdefs.h >>conftest.$ac_ext
47721 cat >>conftest.$ac_ext <<_ACEOF
47722 /* end confdefs.h.  */
47723 $ac_includes_default
47724 #include <security/pam_appl.h>
47725
47726
47727 #include <$ac_header>
47728 _ACEOF
47729 rm -f conftest.$ac_objext
47730 if { (ac_try="$ac_compile"
47731 case "(($ac_try" in
47732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47733   *) ac_try_echo=$ac_try;;
47734 esac
47735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47736   (eval "$ac_compile") 2>conftest.er1
47737   ac_status=$?
47738   grep -v '^ *+' conftest.er1 >conftest.err
47739   rm -f conftest.er1
47740   cat conftest.err >&5
47741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47742   (exit $ac_status); } && {
47743          test -z "$ac_c_werror_flag" ||
47744          test ! -s conftest.err
47745        } && test -s conftest.$ac_objext; then
47746   eval "$as_ac_Header=yes"
47747 else
47748   echo "$as_me: failed program was:" >&5
47749 sed 's/^/| /' conftest.$ac_ext >&5
47750
47751         eval "$as_ac_Header=no"
47752 fi
47753
47754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47755 fi
47756 ac_res=`eval echo '${'$as_ac_Header'}'`
47757                { echo "$as_me:$LINENO: result: $ac_res" >&5
47758 echo "${ECHO_T}$ac_res" >&6; }
47759 if test `eval echo '${'$as_ac_Header'}'` = yes; then
47760   cat >>confdefs.h <<_ACEOF
47761 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
47762 _ACEOF
47763
47764 fi
47765
47766 done
47767
47768
47769 # Check whether --enable-netinfo was given.
47770 if test "${enable_netinfo+set}" = set; then
47771   enableval=$enable_netinfo;
47772 fi
47773
47774
47775 if test "$ac_cv_header_netinfo_ni_h" = yes -a "$enable_netinfo" = yes; then
47776
47777 cat >>confdefs.h <<\_ACEOF
47778 #define HAVE_NETINFO 1
47779 _ACEOF
47780
47781 fi
47782
47783
47784
47785
47786
47787
47788
47789
47790
47791
47792 { echo "$as_me:$LINENO: checking for logwtmp" >&5
47793 echo $ECHO_N "checking for logwtmp... $ECHO_C" >&6; }
47794 if test "${ac_cv_funclib_logwtmp+set}" = set; then
47795   echo $ECHO_N "(cached) $ECHO_C" >&6
47796 else
47797
47798 if eval "test \"\$ac_cv_func_logwtmp\" != yes" ; then
47799         ac_save_LIBS="$LIBS"
47800         for ac_lib in "" util; do
47801                 case "$ac_lib" in
47802                 "") ;;
47803                 yes) ac_lib="" ;;
47804                 no) continue ;;
47805                 -l*) ;;
47806                 *) ac_lib="-l$ac_lib" ;;
47807                 esac
47808                 LIBS=" $ac_lib  $ac_save_LIBS"
47809                 cat >conftest.$ac_ext <<_ACEOF
47810 /* confdefs.h.  */
47811 _ACEOF
47812 cat confdefs.h >>conftest.$ac_ext
47813 cat >>conftest.$ac_ext <<_ACEOF
47814 /* end confdefs.h.  */
47815
47816 #ifdef HAVE_UTIL_H
47817 #include <util.h>
47818 #endif
47819
47820 int
47821 main ()
47822 {
47823 logwtmp(0,0,0)
47824   ;
47825   return 0;
47826 }
47827 _ACEOF
47828 rm -f conftest.$ac_objext conftest$ac_exeext
47829 if { (ac_try="$ac_link"
47830 case "(($ac_try" in
47831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47832   *) ac_try_echo=$ac_try;;
47833 esac
47834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47835   (eval "$ac_link") 2>conftest.er1
47836   ac_status=$?
47837   grep -v '^ *+' conftest.er1 >conftest.err
47838   rm -f conftest.er1
47839   cat conftest.err >&5
47840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47841   (exit $ac_status); } && {
47842          test -z "$ac_c_werror_flag" ||
47843          test ! -s conftest.err
47844        } && test -s conftest$ac_exeext &&
47845        $as_test_x conftest$ac_exeext; then
47846   eval "if test -n \"$ac_lib\";then ac_cv_funclib_logwtmp=$ac_lib; else ac_cv_funclib_logwtmp=yes; fi";break
47847 else
47848   echo "$as_me: failed program was:" >&5
47849 sed 's/^/| /' conftest.$ac_ext >&5
47850
47851
47852 fi
47853
47854 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
47855       conftest$ac_exeext conftest.$ac_ext
47856         done
47857         eval "ac_cv_funclib_logwtmp=\${ac_cv_funclib_logwtmp-no}"
47858         LIBS="$ac_save_LIBS"
47859 fi
47860
47861 fi
47862
47863
47864 eval "ac_res=\$ac_cv_funclib_logwtmp"
47865
47866 if false; then
47867
47868 for ac_func in logwtmp
47869 do
47870 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47871 { echo "$as_me:$LINENO: checking for $ac_func" >&5
47872 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
47873 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
47874   echo $ECHO_N "(cached) $ECHO_C" >&6
47875 else
47876   cat >conftest.$ac_ext <<_ACEOF
47877 /* confdefs.h.  */
47878 _ACEOF
47879 cat confdefs.h >>conftest.$ac_ext
47880 cat >>conftest.$ac_ext <<_ACEOF
47881 /* end confdefs.h.  */
47882 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47883    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
47884 #define $ac_func innocuous_$ac_func
47885
47886 /* System header to define __stub macros and hopefully few prototypes,
47887     which can conflict with char $ac_func (); below.
47888     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47889     <limits.h> exists even on freestanding compilers.  */
47890
47891 #ifdef __STDC__
47892 # include <limits.h>
47893 #else
47894 # include <assert.h>
47895 #endif
47896
47897 #undef $ac_func
47898
47899 /* Override any GCC internal prototype to avoid an error.
47900    Use char because int might match the return type of a GCC
47901    builtin and then its argument prototype would still apply.  */
47902 #ifdef __cplusplus
47903 extern "C"
47904 #endif
47905 char $ac_func ();
47906 /* The GNU C library defines this for functions which it implements
47907     to always fail with ENOSYS.  Some functions are actually named
47908     something starting with __ and the normal name is an alias.  */
47909 #if defined __stub_$ac_func || defined __stub___$ac_func
47910 choke me
47911 #endif
47912
47913 int
47914 main ()
47915 {
47916 return $ac_func ();
47917   ;
47918   return 0;
47919 }
47920 _ACEOF
47921 rm -f conftest.$ac_objext conftest$ac_exeext
47922 if { (ac_try="$ac_link"
47923 case "(($ac_try" in
47924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47925   *) ac_try_echo=$ac_try;;
47926 esac
47927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47928   (eval "$ac_link") 2>conftest.er1
47929   ac_status=$?
47930   grep -v '^ *+' conftest.er1 >conftest.err
47931   rm -f conftest.er1
47932   cat conftest.err >&5
47933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47934   (exit $ac_status); } && {
47935          test -z "$ac_c_werror_flag" ||
47936          test ! -s conftest.err
47937        } && test -s conftest$ac_exeext &&
47938        $as_test_x conftest$ac_exeext; then
47939   eval "$as_ac_var=yes"
47940 else
47941   echo "$as_me: failed program was:" >&5
47942 sed 's/^/| /' conftest.$ac_ext >&5
47943
47944         eval "$as_ac_var=no"
47945 fi
47946
47947 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
47948       conftest$ac_exeext conftest.$ac_ext
47949 fi
47950 ac_res=`eval echo '${'$as_ac_var'}'`
47951                { echo "$as_me:$LINENO: result: $ac_res" >&5
47952 echo "${ECHO_T}$ac_res" >&6; }
47953 if test `eval echo '${'$as_ac_var'}'` = yes; then
47954   cat >>confdefs.h <<_ACEOF
47955 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47956 _ACEOF
47957
47958 fi
47959 done
47960
47961 fi
47962 # logwtmp
47963 eval "ac_tr_func=HAVE_`echo logwtmp | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
47964 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
47965 eval "LIB_logwtmp=$ac_res"
47966
47967 case "$ac_res" in
47968         yes)
47969         eval "ac_cv_func_logwtmp=yes"
47970         eval "LIB_logwtmp="
47971         cat >>confdefs.h <<_ACEOF
47972 #define $ac_tr_func 1
47973 _ACEOF
47974
47975         { echo "$as_me:$LINENO: result: yes" >&5
47976 echo "${ECHO_T}yes" >&6; }
47977         ;;
47978         no)
47979         eval "ac_cv_func_logwtmp=no"
47980         eval "LIB_logwtmp="
47981         { echo "$as_me:$LINENO: result: no" >&5
47982 echo "${ECHO_T}no" >&6; }
47983         ;;
47984         *)
47985         eval "ac_cv_func_logwtmp=yes"
47986         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
47987         cat >>confdefs.h <<_ACEOF
47988 #define $ac_tr_func 1
47989 _ACEOF
47990
47991         cat >>confdefs.h <<_ACEOF
47992 #define $ac_tr_lib 1
47993 _ACEOF
47994
47995         { echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
47996 echo "${ECHO_T}yes, in $ac_res" >&6; }
47997         ;;
47998 esac
47999
48000
48001
48002
48003
48004 { echo "$as_me:$LINENO: checking for logout" >&5
48005 echo $ECHO_N "checking for logout... $ECHO_C" >&6; }
48006 if test "${ac_cv_funclib_logout+set}" = set; then
48007   echo $ECHO_N "(cached) $ECHO_C" >&6
48008 else
48009
48010 if eval "test \"\$ac_cv_func_logout\" != yes" ; then
48011         ac_save_LIBS="$LIBS"
48012         for ac_lib in "" util; do
48013                 case "$ac_lib" in
48014                 "") ;;
48015                 yes) ac_lib="" ;;
48016                 no) continue ;;
48017                 -l*) ;;
48018                 *) ac_lib="-l$ac_lib" ;;
48019                 esac
48020                 LIBS=" $ac_lib  $ac_save_LIBS"
48021                 cat >conftest.$ac_ext <<_ACEOF
48022 /* confdefs.h.  */
48023 _ACEOF
48024 cat confdefs.h >>conftest.$ac_ext
48025 cat >>conftest.$ac_ext <<_ACEOF
48026 /* end confdefs.h.  */
48027
48028 #ifdef HAVE_UTIL_H
48029 #include <util.h>
48030 #endif
48031
48032 int
48033 main ()
48034 {
48035 logout(0)
48036   ;
48037   return 0;
48038 }
48039 _ACEOF
48040 rm -f conftest.$ac_objext conftest$ac_exeext
48041 if { (ac_try="$ac_link"
48042 case "(($ac_try" in
48043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48044   *) ac_try_echo=$ac_try;;
48045 esac
48046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48047   (eval "$ac_link") 2>conftest.er1
48048   ac_status=$?
48049   grep -v '^ *+' conftest.er1 >conftest.err
48050   rm -f conftest.er1
48051   cat conftest.err >&5
48052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48053   (exit $ac_status); } && {
48054          test -z "$ac_c_werror_flag" ||
48055          test ! -s conftest.err
48056        } && test -s conftest$ac_exeext &&
48057        $as_test_x conftest$ac_exeext; then
48058   eval "if test -n \"$ac_lib\";then ac_cv_funclib_logout=$ac_lib; else ac_cv_funclib_logout=yes; fi";break
48059 else
48060   echo "$as_me: failed program was:" >&5
48061 sed 's/^/| /' conftest.$ac_ext >&5
48062
48063
48064 fi
48065
48066 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
48067       conftest$ac_exeext conftest.$ac_ext
48068         done
48069         eval "ac_cv_funclib_logout=\${ac_cv_funclib_logout-no}"
48070         LIBS="$ac_save_LIBS"
48071 fi
48072
48073 fi
48074
48075
48076 eval "ac_res=\$ac_cv_funclib_logout"
48077
48078 if false; then
48079
48080 for ac_func in logout
48081 do
48082 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48083 { echo "$as_me:$LINENO: checking for $ac_func" >&5
48084 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
48085 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
48086   echo $ECHO_N "(cached) $ECHO_C" >&6
48087 else
48088   cat >conftest.$ac_ext <<_ACEOF
48089 /* confdefs.h.  */
48090 _ACEOF
48091 cat confdefs.h >>conftest.$ac_ext
48092 cat >>conftest.$ac_ext <<_ACEOF
48093 /* end confdefs.h.  */
48094 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48095    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
48096 #define $ac_func innocuous_$ac_func
48097
48098 /* System header to define __stub macros and hopefully few prototypes,
48099     which can conflict with char $ac_func (); below.
48100     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48101     <limits.h> exists even on freestanding compilers.  */
48102
48103 #ifdef __STDC__
48104 # include <limits.h>
48105 #else
48106 # include <assert.h>
48107 #endif
48108
48109 #undef $ac_func
48110
48111 /* Override any GCC internal prototype to avoid an error.
48112    Use char because int might match the return type of a GCC
48113    builtin and then its argument prototype would still apply.  */
48114 #ifdef __cplusplus
48115 extern "C"
48116 #endif
48117 char $ac_func ();
48118 /* The GNU C library defines this for functions which it implements
48119     to always fail with ENOSYS.  Some functions are actually named
48120     something starting with __ and the normal name is an alias.  */
48121 #if defined __stub_$ac_func || defined __stub___$ac_func
48122 choke me
48123 #endif
48124
48125 int
48126 main ()
48127 {
48128 return $ac_func ();
48129   ;
48130   return 0;
48131 }
48132 _ACEOF
48133 rm -f conftest.$ac_objext conftest$ac_exeext
48134 if { (ac_try="$ac_link"
48135 case "(($ac_try" in
48136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48137   *) ac_try_echo=$ac_try;;
48138 esac
48139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48140   (eval "$ac_link") 2>conftest.er1
48141   ac_status=$?
48142   grep -v '^ *+' conftest.er1 >conftest.err
48143   rm -f conftest.er1
48144   cat conftest.err >&5
48145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48146   (exit $ac_status); } && {
48147          test -z "$ac_c_werror_flag" ||
48148          test ! -s conftest.err
48149        } && test -s conftest$ac_exeext &&
48150        $as_test_x conftest$ac_exeext; then
48151   eval "$as_ac_var=yes"
48152 else
48153   echo "$as_me: failed program was:" >&5
48154 sed 's/^/| /' conftest.$ac_ext >&5
48155
48156         eval "$as_ac_var=no"
48157 fi
48158
48159 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
48160       conftest$ac_exeext conftest.$ac_ext
48161 fi
48162 ac_res=`eval echo '${'$as_ac_var'}'`
48163                { echo "$as_me:$LINENO: result: $ac_res" >&5
48164 echo "${ECHO_T}$ac_res" >&6; }
48165 if test `eval echo '${'$as_ac_var'}'` = yes; then
48166   cat >>confdefs.h <<_ACEOF
48167 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48168 _ACEOF
48169
48170 fi
48171 done
48172
48173 fi
48174 # logout
48175 eval "ac_tr_func=HAVE_`echo logout | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
48176 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
48177 eval "LIB_logout=$ac_res"
48178
48179 case "$ac_res" in
48180         yes)
48181         eval "ac_cv_func_logout=yes"
48182         eval "LIB_logout="
48183         cat >>confdefs.h <<_ACEOF
48184 #define $ac_tr_func 1
48185 _ACEOF
48186
48187         { echo "$as_me:$LINENO: result: yes" >&5
48188 echo "${ECHO_T}yes" >&6; }
48189         ;;
48190         no)
48191         eval "ac_cv_func_logout=no"
48192         eval "LIB_logout="
48193         { echo "$as_me:$LINENO: result: no" >&5
48194 echo "${ECHO_T}no" >&6; }
48195         ;;
48196         *)
48197         eval "ac_cv_func_logout=yes"
48198         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
48199         cat >>confdefs.h <<_ACEOF
48200 #define $ac_tr_func 1
48201 _ACEOF
48202
48203         cat >>confdefs.h <<_ACEOF
48204 #define $ac_tr_lib 1
48205 _ACEOF
48206
48207         { echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
48208 echo "${ECHO_T}yes, in $ac_res" >&6; }
48209         ;;
48210 esac
48211
48212
48213
48214
48215
48216 { echo "$as_me:$LINENO: checking for openpty" >&5
48217 echo $ECHO_N "checking for openpty... $ECHO_C" >&6; }
48218 if test "${ac_cv_funclib_openpty+set}" = set; then
48219   echo $ECHO_N "(cached) $ECHO_C" >&6
48220 else
48221
48222 if eval "test \"\$ac_cv_func_openpty\" != yes" ; then
48223         ac_save_LIBS="$LIBS"
48224         for ac_lib in "" util; do
48225                 case "$ac_lib" in
48226                 "") ;;
48227                 yes) ac_lib="" ;;
48228                 no) continue ;;
48229                 -l*) ;;
48230                 *) ac_lib="-l$ac_lib" ;;
48231                 esac
48232                 LIBS=" $ac_lib  $ac_save_LIBS"
48233                 cat >conftest.$ac_ext <<_ACEOF
48234 /* confdefs.h.  */
48235 _ACEOF
48236 cat confdefs.h >>conftest.$ac_ext
48237 cat >>conftest.$ac_ext <<_ACEOF
48238 /* end confdefs.h.  */
48239
48240 #ifdef HAVE_UTIL_H
48241 #include <util.h>
48242 #endif
48243
48244 int
48245 main ()
48246 {
48247 openpty(0,0,0,0,0)
48248   ;
48249   return 0;
48250 }
48251 _ACEOF
48252 rm -f conftest.$ac_objext conftest$ac_exeext
48253 if { (ac_try="$ac_link"
48254 case "(($ac_try" in
48255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48256   *) ac_try_echo=$ac_try;;
48257 esac
48258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48259   (eval "$ac_link") 2>conftest.er1
48260   ac_status=$?
48261   grep -v '^ *+' conftest.er1 >conftest.err
48262   rm -f conftest.er1
48263   cat conftest.err >&5
48264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48265   (exit $ac_status); } && {
48266          test -z "$ac_c_werror_flag" ||
48267          test ! -s conftest.err
48268        } && test -s conftest$ac_exeext &&
48269        $as_test_x conftest$ac_exeext; then
48270   eval "if test -n \"$ac_lib\";then ac_cv_funclib_openpty=$ac_lib; else ac_cv_funclib_openpty=yes; fi";break
48271 else
48272   echo "$as_me: failed program was:" >&5
48273 sed 's/^/| /' conftest.$ac_ext >&5
48274
48275
48276 fi
48277
48278 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
48279       conftest$ac_exeext conftest.$ac_ext
48280         done
48281         eval "ac_cv_funclib_openpty=\${ac_cv_funclib_openpty-no}"
48282         LIBS="$ac_save_LIBS"
48283 fi
48284
48285 fi
48286
48287
48288 eval "ac_res=\$ac_cv_funclib_openpty"
48289
48290 if false; then
48291
48292 for ac_func in openpty
48293 do
48294 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48295 { echo "$as_me:$LINENO: checking for $ac_func" >&5
48296 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
48297 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
48298   echo $ECHO_N "(cached) $ECHO_C" >&6
48299 else
48300   cat >conftest.$ac_ext <<_ACEOF
48301 /* confdefs.h.  */
48302 _ACEOF
48303 cat confdefs.h >>conftest.$ac_ext
48304 cat >>conftest.$ac_ext <<_ACEOF
48305 /* end confdefs.h.  */
48306 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48307    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
48308 #define $ac_func innocuous_$ac_func
48309
48310 /* System header to define __stub macros and hopefully few prototypes,
48311     which can conflict with char $ac_func (); below.
48312     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48313     <limits.h> exists even on freestanding compilers.  */
48314
48315 #ifdef __STDC__
48316 # include <limits.h>
48317 #else
48318 # include <assert.h>
48319 #endif
48320
48321 #undef $ac_func
48322
48323 /* Override any GCC internal prototype to avoid an error.
48324    Use char because int might match the return type of a GCC
48325    builtin and then its argument prototype would still apply.  */
48326 #ifdef __cplusplus
48327 extern "C"
48328 #endif
48329 char $ac_func ();
48330 /* The GNU C library defines this for functions which it implements
48331     to always fail with ENOSYS.  Some functions are actually named
48332     something starting with __ and the normal name is an alias.  */
48333 #if defined __stub_$ac_func || defined __stub___$ac_func
48334 choke me
48335 #endif
48336
48337 int
48338 main ()
48339 {
48340 return $ac_func ();
48341   ;
48342   return 0;
48343 }
48344 _ACEOF
48345 rm -f conftest.$ac_objext conftest$ac_exeext
48346 if { (ac_try="$ac_link"
48347 case "(($ac_try" in
48348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48349   *) ac_try_echo=$ac_try;;
48350 esac
48351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48352   (eval "$ac_link") 2>conftest.er1
48353   ac_status=$?
48354   grep -v '^ *+' conftest.er1 >conftest.err
48355   rm -f conftest.er1
48356   cat conftest.err >&5
48357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48358   (exit $ac_status); } && {
48359          test -z "$ac_c_werror_flag" ||
48360          test ! -s conftest.err
48361        } && test -s conftest$ac_exeext &&
48362        $as_test_x conftest$ac_exeext; then
48363   eval "$as_ac_var=yes"
48364 else
48365   echo "$as_me: failed program was:" >&5
48366 sed 's/^/| /' conftest.$ac_ext >&5
48367
48368         eval "$as_ac_var=no"
48369 fi
48370
48371 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
48372       conftest$ac_exeext conftest.$ac_ext
48373 fi
48374 ac_res=`eval echo '${'$as_ac_var'}'`
48375                { echo "$as_me:$LINENO: result: $ac_res" >&5
48376 echo "${ECHO_T}$ac_res" >&6; }
48377 if test `eval echo '${'$as_ac_var'}'` = yes; then
48378   cat >>confdefs.h <<_ACEOF
48379 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48380 _ACEOF
48381
48382 fi
48383 done
48384
48385 fi
48386 # openpty
48387 eval "ac_tr_func=HAVE_`echo openpty | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
48388 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
48389 eval "LIB_openpty=$ac_res"
48390
48391 case "$ac_res" in
48392         yes)
48393         eval "ac_cv_func_openpty=yes"
48394         eval "LIB_openpty="
48395         cat >>confdefs.h <<_ACEOF
48396 #define $ac_tr_func 1
48397 _ACEOF
48398
48399         { echo "$as_me:$LINENO: result: yes" >&5
48400 echo "${ECHO_T}yes" >&6; }
48401         ;;
48402         no)
48403         eval "ac_cv_func_openpty=no"
48404         eval "LIB_openpty="
48405         { echo "$as_me:$LINENO: result: no" >&5
48406 echo "${ECHO_T}no" >&6; }
48407         ;;
48408         *)
48409         eval "ac_cv_func_openpty=yes"
48410         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
48411         cat >>confdefs.h <<_ACEOF
48412 #define $ac_tr_func 1
48413 _ACEOF
48414
48415         cat >>confdefs.h <<_ACEOF
48416 #define $ac_tr_lib 1
48417 _ACEOF
48418
48419         { echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
48420 echo "${ECHO_T}yes, in $ac_res" >&6; }
48421         ;;
48422 esac
48423
48424
48425
48426
48427
48428
48429 { echo "$as_me:$LINENO: checking for tgetent" >&5
48430 echo $ECHO_N "checking for tgetent... $ECHO_C" >&6; }
48431 if test "${ac_cv_funclib_tgetent+set}" = set; then
48432   echo $ECHO_N "(cached) $ECHO_C" >&6
48433 else
48434
48435 if eval "test \"\$ac_cv_func_tgetent\" != yes" ; then
48436         ac_save_LIBS="$LIBS"
48437         for ac_lib in "" termcap ncurses curses; do
48438                 case "$ac_lib" in
48439                 "") ;;
48440                 yes) ac_lib="" ;;
48441                 no) continue ;;
48442                 -l*) ;;
48443                 *) ac_lib="-l$ac_lib" ;;
48444                 esac
48445                 LIBS=" $ac_lib  $ac_save_LIBS"
48446                 cat >conftest.$ac_ext <<_ACEOF
48447 /* confdefs.h.  */
48448 _ACEOF
48449 cat confdefs.h >>conftest.$ac_ext
48450 cat >>conftest.$ac_ext <<_ACEOF
48451 /* end confdefs.h.  */
48452
48453 #ifdef HAVE_TERMCAP_H
48454 #include <termcap.h>
48455 #endif
48456 #ifdef HAVE_CURSES_H
48457 #include <curses.h>
48458 #endif
48459
48460 int
48461 main ()
48462 {
48463 tgetent(0,0)
48464   ;
48465   return 0;
48466 }
48467 _ACEOF
48468 rm -f conftest.$ac_objext conftest$ac_exeext
48469 if { (ac_try="$ac_link"
48470 case "(($ac_try" in
48471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48472   *) ac_try_echo=$ac_try;;
48473 esac
48474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48475   (eval "$ac_link") 2>conftest.er1
48476   ac_status=$?
48477   grep -v '^ *+' conftest.er1 >conftest.err
48478   rm -f conftest.er1
48479   cat conftest.err >&5
48480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48481   (exit $ac_status); } && {
48482          test -z "$ac_c_werror_flag" ||
48483          test ! -s conftest.err
48484        } && test -s conftest$ac_exeext &&
48485        $as_test_x conftest$ac_exeext; then
48486   eval "if test -n \"$ac_lib\";then ac_cv_funclib_tgetent=$ac_lib; else ac_cv_funclib_tgetent=yes; fi";break
48487 else
48488   echo "$as_me: failed program was:" >&5
48489 sed 's/^/| /' conftest.$ac_ext >&5
48490
48491
48492 fi
48493
48494 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
48495       conftest$ac_exeext conftest.$ac_ext
48496         done
48497         eval "ac_cv_funclib_tgetent=\${ac_cv_funclib_tgetent-no}"
48498         LIBS="$ac_save_LIBS"
48499 fi
48500
48501 fi
48502
48503
48504 eval "ac_res=\$ac_cv_funclib_tgetent"
48505
48506 if false; then
48507
48508 for ac_func in tgetent
48509 do
48510 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48511 { echo "$as_me:$LINENO: checking for $ac_func" >&5
48512 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
48513 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
48514   echo $ECHO_N "(cached) $ECHO_C" >&6
48515 else
48516   cat >conftest.$ac_ext <<_ACEOF
48517 /* confdefs.h.  */
48518 _ACEOF
48519 cat confdefs.h >>conftest.$ac_ext
48520 cat >>conftest.$ac_ext <<_ACEOF
48521 /* end confdefs.h.  */
48522 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48523    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
48524 #define $ac_func innocuous_$ac_func
48525
48526 /* System header to define __stub macros and hopefully few prototypes,
48527     which can conflict with char $ac_func (); below.
48528     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48529     <limits.h> exists even on freestanding compilers.  */
48530
48531 #ifdef __STDC__
48532 # include <limits.h>
48533 #else
48534 # include <assert.h>
48535 #endif
48536
48537 #undef $ac_func
48538
48539 /* Override any GCC internal prototype to avoid an error.
48540    Use char because int might match the return type of a GCC
48541    builtin and then its argument prototype would still apply.  */
48542 #ifdef __cplusplus
48543 extern "C"
48544 #endif
48545 char $ac_func ();
48546 /* The GNU C library defines this for functions which it implements
48547     to always fail with ENOSYS.  Some functions are actually named
48548     something starting with __ and the normal name is an alias.  */
48549 #if defined __stub_$ac_func || defined __stub___$ac_func
48550 choke me
48551 #endif
48552
48553 int
48554 main ()
48555 {
48556 return $ac_func ();
48557   ;
48558   return 0;
48559 }
48560 _ACEOF
48561 rm -f conftest.$ac_objext conftest$ac_exeext
48562 if { (ac_try="$ac_link"
48563 case "(($ac_try" in
48564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48565   *) ac_try_echo=$ac_try;;
48566 esac
48567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48568   (eval "$ac_link") 2>conftest.er1
48569   ac_status=$?
48570   grep -v '^ *+' conftest.er1 >conftest.err
48571   rm -f conftest.er1
48572   cat conftest.err >&5
48573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48574   (exit $ac_status); } && {
48575          test -z "$ac_c_werror_flag" ||
48576          test ! -s conftest.err
48577        } && test -s conftest$ac_exeext &&
48578        $as_test_x conftest$ac_exeext; then
48579   eval "$as_ac_var=yes"
48580 else
48581   echo "$as_me: failed program was:" >&5
48582 sed 's/^/| /' conftest.$ac_ext >&5
48583
48584         eval "$as_ac_var=no"
48585 fi
48586
48587 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
48588       conftest$ac_exeext conftest.$ac_ext
48589 fi
48590 ac_res=`eval echo '${'$as_ac_var'}'`
48591                { echo "$as_me:$LINENO: result: $ac_res" >&5
48592 echo "${ECHO_T}$ac_res" >&6; }
48593 if test `eval echo '${'$as_ac_var'}'` = yes; then
48594   cat >>confdefs.h <<_ACEOF
48595 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48596 _ACEOF
48597
48598 fi
48599 done
48600
48601 fi
48602 # tgetent
48603 eval "ac_tr_func=HAVE_`echo tgetent | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
48604 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
48605 eval "LIB_tgetent=$ac_res"
48606
48607 case "$ac_res" in
48608         yes)
48609         eval "ac_cv_func_tgetent=yes"
48610         eval "LIB_tgetent="
48611         cat >>confdefs.h <<_ACEOF
48612 #define $ac_tr_func 1
48613 _ACEOF
48614
48615         { echo "$as_me:$LINENO: result: yes" >&5
48616 echo "${ECHO_T}yes" >&6; }
48617         ;;
48618         no)
48619         eval "ac_cv_func_tgetent=no"
48620         eval "LIB_tgetent="
48621         { echo "$as_me:$LINENO: result: no" >&5
48622 echo "${ECHO_T}no" >&6; }
48623         ;;
48624         *)
48625         eval "ac_cv_func_tgetent=yes"
48626         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
48627         cat >>confdefs.h <<_ACEOF
48628 #define $ac_tr_func 1
48629 _ACEOF
48630
48631         cat >>confdefs.h <<_ACEOF
48632 #define $ac_tr_lib 1
48633 _ACEOF
48634
48635         { echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
48636 echo "${ECHO_T}yes, in $ac_res" >&6; }
48637         ;;
48638 esac
48639
48640
48641
48642
48643
48644
48645
48646
48647
48648
48649
48650
48651
48652
48653
48654
48655
48656
48657
48658
48659
48660
48661
48662
48663
48664
48665
48666
48667
48668
48669
48670
48671
48672
48673 for ac_func in                          \
48674         _getpty                                 \
48675         _scrsize                                \
48676         arc4random                              \
48677         fcntl                                   \
48678         getpeereid                              \
48679         getpeerucred                            \
48680         grantpt                                 \
48681         mktime                                  \
48682         ptsname                                 \
48683         rand                                    \
48684         revoke                                  \
48685         select                                  \
48686         setitimer                               \
48687         setpcred                                \
48688         setpgid                                 \
48689         setproctitle                            \
48690         setregid                                \
48691         setresgid                               \
48692         setresuid                               \
48693         setreuid                                \
48694         setsid                                  \
48695         setutent                                \
48696         sigaction                               \
48697         strstr                                  \
48698         ttyname                                 \
48699         ttyslot                                 \
48700         umask                                   \
48701         unlockpt                                \
48702         vhangup                                 \
48703         yp_get_default_domain                   \
48704
48705 do
48706 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48707 { echo "$as_me:$LINENO: checking for $ac_func" >&5
48708 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
48709 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
48710   echo $ECHO_N "(cached) $ECHO_C" >&6
48711 else
48712   cat >conftest.$ac_ext <<_ACEOF
48713 /* confdefs.h.  */
48714 _ACEOF
48715 cat confdefs.h >>conftest.$ac_ext
48716 cat >>conftest.$ac_ext <<_ACEOF
48717 /* end confdefs.h.  */
48718 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48719    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
48720 #define $ac_func innocuous_$ac_func
48721
48722 /* System header to define __stub macros and hopefully few prototypes,
48723     which can conflict with char $ac_func (); below.
48724     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48725     <limits.h> exists even on freestanding compilers.  */
48726
48727 #ifdef __STDC__
48728 # include <limits.h>
48729 #else
48730 # include <assert.h>
48731 #endif
48732
48733 #undef $ac_func
48734
48735 /* Override any GCC internal prototype to avoid an error.
48736    Use char because int might match the return type of a GCC
48737    builtin and then its argument prototype would still apply.  */
48738 #ifdef __cplusplus
48739 extern "C"
48740 #endif
48741 char $ac_func ();
48742 /* The GNU C library defines this for functions which it implements
48743     to always fail with ENOSYS.  Some functions are actually named
48744     something starting with __ and the normal name is an alias.  */
48745 #if defined __stub_$ac_func || defined __stub___$ac_func
48746 choke me
48747 #endif
48748
48749 int
48750 main ()
48751 {
48752 return $ac_func ();
48753   ;
48754   return 0;
48755 }
48756 _ACEOF
48757 rm -f conftest.$ac_objext conftest$ac_exeext
48758 if { (ac_try="$ac_link"
48759 case "(($ac_try" in
48760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48761   *) ac_try_echo=$ac_try;;
48762 esac
48763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48764   (eval "$ac_link") 2>conftest.er1
48765   ac_status=$?
48766   grep -v '^ *+' conftest.er1 >conftest.err
48767   rm -f conftest.er1
48768   cat conftest.err >&5
48769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48770   (exit $ac_status); } && {
48771          test -z "$ac_c_werror_flag" ||
48772          test ! -s conftest.err
48773        } && test -s conftest$ac_exeext &&
48774        $as_test_x conftest$ac_exeext; then
48775   eval "$as_ac_var=yes"
48776 else
48777   echo "$as_me: failed program was:" >&5
48778 sed 's/^/| /' conftest.$ac_ext >&5
48779
48780         eval "$as_ac_var=no"
48781 fi
48782
48783 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
48784       conftest$ac_exeext conftest.$ac_ext
48785 fi
48786 ac_res=`eval echo '${'$as_ac_var'}'`
48787                { echo "$as_me:$LINENO: result: $ac_res" >&5
48788 echo "${ECHO_T}$ac_res" >&6; }
48789 if test `eval echo '${'$as_ac_var'}'` = yes; then
48790   cat >>confdefs.h <<_ACEOF
48791 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48792 _ACEOF
48793
48794 fi
48795 done
48796
48797
48798
48799
48800 for ac_header in stdlib.h unistd.h
48801 do
48802 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
48803 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
48804   { echo "$as_me:$LINENO: checking for $ac_header" >&5
48805 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
48806 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
48807   echo $ECHO_N "(cached) $ECHO_C" >&6
48808 fi
48809 ac_res=`eval echo '${'$as_ac_Header'}'`
48810                { echo "$as_me:$LINENO: result: $ac_res" >&5
48811 echo "${ECHO_T}$ac_res" >&6; }
48812 else
48813   # Is the header compilable?
48814 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
48815 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
48816 cat >conftest.$ac_ext <<_ACEOF
48817 /* confdefs.h.  */
48818 _ACEOF
48819 cat confdefs.h >>conftest.$ac_ext
48820 cat >>conftest.$ac_ext <<_ACEOF
48821 /* end confdefs.h.  */
48822 $ac_includes_default
48823 #include <$ac_header>
48824 _ACEOF
48825 rm -f conftest.$ac_objext
48826 if { (ac_try="$ac_compile"
48827 case "(($ac_try" in
48828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48829   *) ac_try_echo=$ac_try;;
48830 esac
48831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48832   (eval "$ac_compile") 2>conftest.er1
48833   ac_status=$?
48834   grep -v '^ *+' conftest.er1 >conftest.err
48835   rm -f conftest.er1
48836   cat conftest.err >&5
48837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48838   (exit $ac_status); } && {
48839          test -z "$ac_c_werror_flag" ||
48840          test ! -s conftest.err
48841        } && test -s conftest.$ac_objext; then
48842   ac_header_compiler=yes
48843 else
48844   echo "$as_me: failed program was:" >&5
48845 sed 's/^/| /' conftest.$ac_ext >&5
48846
48847         ac_header_compiler=no
48848 fi
48849
48850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48851 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
48852 echo "${ECHO_T}$ac_header_compiler" >&6; }
48853
48854 # Is the header present?
48855 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
48856 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
48857 cat >conftest.$ac_ext <<_ACEOF
48858 /* confdefs.h.  */
48859 _ACEOF
48860 cat confdefs.h >>conftest.$ac_ext
48861 cat >>conftest.$ac_ext <<_ACEOF
48862 /* end confdefs.h.  */
48863 #include <$ac_header>
48864 _ACEOF
48865 if { (ac_try="$ac_cpp conftest.$ac_ext"
48866 case "(($ac_try" in
48867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48868   *) ac_try_echo=$ac_try;;
48869 esac
48870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48871   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
48872   ac_status=$?
48873   grep -v '^ *+' conftest.er1 >conftest.err
48874   rm -f conftest.er1
48875   cat conftest.err >&5
48876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48877   (exit $ac_status); } >/dev/null && {
48878          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
48879          test ! -s conftest.err
48880        }; then
48881   ac_header_preproc=yes
48882 else
48883   echo "$as_me: failed program was:" >&5
48884 sed 's/^/| /' conftest.$ac_ext >&5
48885
48886   ac_header_preproc=no
48887 fi
48888
48889 rm -f conftest.err conftest.$ac_ext
48890 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
48891 echo "${ECHO_T}$ac_header_preproc" >&6; }
48892
48893 # So?  What about this header?
48894 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
48895   yes:no: )
48896     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
48897 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
48898     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
48899 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
48900     ac_header_preproc=yes
48901     ;;
48902   no:yes:* )
48903     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
48904 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
48905     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
48906 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
48907     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
48908 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
48909     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
48910 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
48911     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
48912 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
48913     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
48914 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
48915     ( cat <<\_ASBOX
48916 ## ----------------------------------- ##
48917 ## Report this to heimdal-bugs@h5l.org ##
48918 ## ----------------------------------- ##
48919 _ASBOX
48920      ) | sed "s/^/$as_me: WARNING:     /" >&2
48921     ;;
48922 esac
48923 { echo "$as_me:$LINENO: checking for $ac_header" >&5
48924 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
48925 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
48926   echo $ECHO_N "(cached) $ECHO_C" >&6
48927 else
48928   eval "$as_ac_Header=\$ac_header_preproc"
48929 fi
48930 ac_res=`eval echo '${'$as_ac_Header'}'`
48931                { echo "$as_me:$LINENO: result: $ac_res" >&5
48932 echo "${ECHO_T}$ac_res" >&6; }
48933
48934 fi
48935 if test `eval echo '${'$as_ac_Header'}'` = yes; then
48936   cat >>confdefs.h <<_ACEOF
48937 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
48938 _ACEOF
48939
48940 fi
48941
48942 done
48943
48944
48945 for ac_func in getpagesize
48946 do
48947 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48948 { echo "$as_me:$LINENO: checking for $ac_func" >&5
48949 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
48950 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
48951   echo $ECHO_N "(cached) $ECHO_C" >&6
48952 else
48953   cat >conftest.$ac_ext <<_ACEOF
48954 /* confdefs.h.  */
48955 _ACEOF
48956 cat confdefs.h >>conftest.$ac_ext
48957 cat >>conftest.$ac_ext <<_ACEOF
48958 /* end confdefs.h.  */
48959 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48960    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
48961 #define $ac_func innocuous_$ac_func
48962
48963 /* System header to define __stub macros and hopefully few prototypes,
48964     which can conflict with char $ac_func (); below.
48965     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48966     <limits.h> exists even on freestanding compilers.  */
48967
48968 #ifdef __STDC__
48969 # include <limits.h>
48970 #else
48971 # include <assert.h>
48972 #endif
48973
48974 #undef $ac_func
48975
48976 /* Override any GCC internal prototype to avoid an error.
48977    Use char because int might match the return type of a GCC
48978    builtin and then its argument prototype would still apply.  */
48979 #ifdef __cplusplus
48980 extern "C"
48981 #endif
48982 char $ac_func ();
48983 /* The GNU C library defines this for functions which it implements
48984     to always fail with ENOSYS.  Some functions are actually named
48985     something starting with __ and the normal name is an alias.  */
48986 #if defined __stub_$ac_func || defined __stub___$ac_func
48987 choke me
48988 #endif
48989
48990 int
48991 main ()
48992 {
48993 return $ac_func ();
48994   ;
48995   return 0;
48996 }
48997 _ACEOF
48998 rm -f conftest.$ac_objext conftest$ac_exeext
48999 if { (ac_try="$ac_link"
49000 case "(($ac_try" in
49001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49002   *) ac_try_echo=$ac_try;;
49003 esac
49004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49005   (eval "$ac_link") 2>conftest.er1
49006   ac_status=$?
49007   grep -v '^ *+' conftest.er1 >conftest.err
49008   rm -f conftest.er1
49009   cat conftest.err >&5
49010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49011   (exit $ac_status); } && {
49012          test -z "$ac_c_werror_flag" ||
49013          test ! -s conftest.err
49014        } && test -s conftest$ac_exeext &&
49015        $as_test_x conftest$ac_exeext; then
49016   eval "$as_ac_var=yes"
49017 else
49018   echo "$as_me: failed program was:" >&5
49019 sed 's/^/| /' conftest.$ac_ext >&5
49020
49021         eval "$as_ac_var=no"
49022 fi
49023
49024 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
49025       conftest$ac_exeext conftest.$ac_ext
49026 fi
49027 ac_res=`eval echo '${'$as_ac_var'}'`
49028                { echo "$as_me:$LINENO: result: $ac_res" >&5
49029 echo "${ECHO_T}$ac_res" >&6; }
49030 if test `eval echo '${'$as_ac_var'}'` = yes; then
49031   cat >>confdefs.h <<_ACEOF
49032 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49033 _ACEOF
49034
49035 fi
49036 done
49037
49038 { echo "$as_me:$LINENO: checking for working mmap" >&5
49039 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
49040 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
49041   echo $ECHO_N "(cached) $ECHO_C" >&6
49042 else
49043   if test "$cross_compiling" = yes; then
49044   ac_cv_func_mmap_fixed_mapped=no
49045 else
49046   cat >conftest.$ac_ext <<_ACEOF
49047 /* confdefs.h.  */
49048 _ACEOF
49049 cat confdefs.h >>conftest.$ac_ext
49050 cat >>conftest.$ac_ext <<_ACEOF
49051 /* end confdefs.h.  */
49052 $ac_includes_default
49053 /* malloc might have been renamed as rpl_malloc. */
49054 #undef malloc
49055
49056 /* Thanks to Mike Haertel and Jim Avera for this test.
49057    Here is a matrix of mmap possibilities:
49058         mmap private not fixed
49059         mmap private fixed at somewhere currently unmapped
49060         mmap private fixed at somewhere already mapped
49061         mmap shared not fixed
49062         mmap shared fixed at somewhere currently unmapped
49063         mmap shared fixed at somewhere already mapped
49064    For private mappings, we should verify that changes cannot be read()
49065    back from the file, nor mmap's back from the file at a different
49066    address.  (There have been systems where private was not correctly
49067    implemented like the infamous i386 svr4.0, and systems where the
49068    VM page cache was not coherent with the file system buffer cache
49069    like early versions of FreeBSD and possibly contemporary NetBSD.)
49070    For shared mappings, we should conversely verify that changes get
49071    propagated back to all the places they're supposed to be.
49072
49073    Grep wants private fixed already mapped.
49074    The main things grep needs to know about mmap are:
49075    * does it exist and is it safe to write into the mmap'd area
49076    * how to use it (BSD variants)  */
49077
49078 #include <fcntl.h>
49079 #include <sys/mman.h>
49080
49081 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
49082 char *malloc ();
49083 #endif
49084
49085 /* This mess was copied from the GNU getpagesize.h.  */
49086 #ifndef HAVE_GETPAGESIZE
49087 /* Assume that all systems that can run configure have sys/param.h.  */
49088 # ifndef HAVE_SYS_PARAM_H
49089 #  define HAVE_SYS_PARAM_H 1
49090 # endif
49091
49092 # ifdef _SC_PAGESIZE
49093 #  define getpagesize() sysconf(_SC_PAGESIZE)
49094 # else /* no _SC_PAGESIZE */
49095 #  ifdef HAVE_SYS_PARAM_H
49096 #   include <sys/param.h>
49097 #   ifdef EXEC_PAGESIZE
49098 #    define getpagesize() EXEC_PAGESIZE
49099 #   else /* no EXEC_PAGESIZE */
49100 #    ifdef NBPG
49101 #     define getpagesize() NBPG * CLSIZE
49102 #     ifndef CLSIZE
49103 #      define CLSIZE 1
49104 #     endif /* no CLSIZE */
49105 #    else /* no NBPG */
49106 #     ifdef NBPC
49107 #      define getpagesize() NBPC
49108 #     else /* no NBPC */
49109 #      ifdef PAGESIZE
49110 #       define getpagesize() PAGESIZE
49111 #      endif /* PAGESIZE */
49112 #     endif /* no NBPC */
49113 #    endif /* no NBPG */
49114 #   endif /* no EXEC_PAGESIZE */
49115 #  else /* no HAVE_SYS_PARAM_H */
49116 #   define getpagesize() 8192   /* punt totally */
49117 #  endif /* no HAVE_SYS_PARAM_H */
49118 # endif /* no _SC_PAGESIZE */
49119
49120 #endif /* no HAVE_GETPAGESIZE */
49121
49122 int
49123 main ()
49124 {
49125   char *data, *data2, *data3;
49126   int i, pagesize;
49127   int fd;
49128
49129   pagesize = getpagesize ();
49130
49131   /* First, make a file with some known garbage in it. */
49132   data = (char *) malloc (pagesize);
49133   if (!data)
49134     return 1;
49135   for (i = 0; i < pagesize; ++i)
49136     *(data + i) = rand ();
49137   umask (0);
49138   fd = creat ("conftest.mmap", 0600);
49139   if (fd < 0)
49140     return 1;
49141   if (write (fd, data, pagesize) != pagesize)
49142     return 1;
49143   close (fd);
49144
49145   /* Next, try to mmap the file at a fixed address which already has
49146      something else allocated at it.  If we can, also make sure that
49147      we see the same garbage.  */
49148   fd = open ("conftest.mmap", O_RDWR);
49149   if (fd < 0)
49150     return 1;
49151   data2 = (char *) malloc (2 * pagesize);
49152   if (!data2)
49153     return 1;
49154   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
49155   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
49156                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
49157     return 1;
49158   for (i = 0; i < pagesize; ++i)
49159     if (*(data + i) != *(data2 + i))
49160       return 1;
49161
49162   /* Finally, make sure that changes to the mapped area do not
49163      percolate back to the file as seen by read().  (This is a bug on
49164      some variants of i386 svr4.0.)  */
49165   for (i = 0; i < pagesize; ++i)
49166     *(data2 + i) = *(data2 + i) + 1;
49167   data3 = (char *) malloc (pagesize);
49168   if (!data3)
49169     return 1;
49170   if (read (fd, data3, pagesize) != pagesize)
49171     return 1;
49172   for (i = 0; i < pagesize; ++i)
49173     if (*(data + i) != *(data3 + i))
49174       return 1;
49175   close (fd);
49176   return 0;
49177 }
49178 _ACEOF
49179 rm -f conftest$ac_exeext
49180 if { (ac_try="$ac_link"
49181 case "(($ac_try" in
49182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49183   *) ac_try_echo=$ac_try;;
49184 esac
49185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49186   (eval "$ac_link") 2>&5
49187   ac_status=$?
49188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49189   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
49190   { (case "(($ac_try" in
49191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49192   *) ac_try_echo=$ac_try;;
49193 esac
49194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49195   (eval "$ac_try") 2>&5
49196   ac_status=$?
49197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49198   (exit $ac_status); }; }; then
49199   ac_cv_func_mmap_fixed_mapped=yes
49200 else
49201   echo "$as_me: program exited with status $ac_status" >&5
49202 echo "$as_me: failed program was:" >&5
49203 sed 's/^/| /' conftest.$ac_ext >&5
49204
49205 ( exit $ac_status )
49206 ac_cv_func_mmap_fixed_mapped=no
49207 fi
49208 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
49209 fi
49210
49211
49212 fi
49213 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
49214 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
49215 if test $ac_cv_func_mmap_fixed_mapped = yes; then
49216
49217 cat >>confdefs.h <<\_ACEOF
49218 #define HAVE_MMAP 1
49219 _ACEOF
49220
49221 fi
49222 rm -f conftest.mmap
49223
49224
49225
49226
49227
49228
49229 for ac_header in capability.h sys/capability.h
49230 do
49231 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
49232 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
49233   { echo "$as_me:$LINENO: checking for $ac_header" >&5
49234 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
49235 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
49236   echo $ECHO_N "(cached) $ECHO_C" >&6
49237 fi
49238 ac_res=`eval echo '${'$as_ac_Header'}'`
49239                { echo "$as_me:$LINENO: result: $ac_res" >&5
49240 echo "${ECHO_T}$ac_res" >&6; }
49241 else
49242   # Is the header compilable?
49243 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
49244 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
49245 cat >conftest.$ac_ext <<_ACEOF
49246 /* confdefs.h.  */
49247 _ACEOF
49248 cat confdefs.h >>conftest.$ac_ext
49249 cat >>conftest.$ac_ext <<_ACEOF
49250 /* end confdefs.h.  */
49251 $ac_includes_default
49252 #include <$ac_header>
49253 _ACEOF
49254 rm -f conftest.$ac_objext
49255 if { (ac_try="$ac_compile"
49256 case "(($ac_try" in
49257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49258   *) ac_try_echo=$ac_try;;
49259 esac
49260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49261   (eval "$ac_compile") 2>conftest.er1
49262   ac_status=$?
49263   grep -v '^ *+' conftest.er1 >conftest.err
49264   rm -f conftest.er1
49265   cat conftest.err >&5
49266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49267   (exit $ac_status); } && {
49268          test -z "$ac_c_werror_flag" ||
49269          test ! -s conftest.err
49270        } && test -s conftest.$ac_objext; then
49271   ac_header_compiler=yes
49272 else
49273   echo "$as_me: failed program was:" >&5
49274 sed 's/^/| /' conftest.$ac_ext >&5
49275
49276         ac_header_compiler=no
49277 fi
49278
49279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49280 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
49281 echo "${ECHO_T}$ac_header_compiler" >&6; }
49282
49283 # Is the header present?
49284 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
49285 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
49286 cat >conftest.$ac_ext <<_ACEOF
49287 /* confdefs.h.  */
49288 _ACEOF
49289 cat confdefs.h >>conftest.$ac_ext
49290 cat >>conftest.$ac_ext <<_ACEOF
49291 /* end confdefs.h.  */
49292 #include <$ac_header>
49293 _ACEOF
49294 if { (ac_try="$ac_cpp conftest.$ac_ext"
49295 case "(($ac_try" in
49296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49297   *) ac_try_echo=$ac_try;;
49298 esac
49299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49300   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
49301   ac_status=$?
49302   grep -v '^ *+' conftest.er1 >conftest.err
49303   rm -f conftest.er1
49304   cat conftest.err >&5
49305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49306   (exit $ac_status); } >/dev/null && {
49307          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
49308          test ! -s conftest.err
49309        }; then
49310   ac_header_preproc=yes
49311 else
49312   echo "$as_me: failed program was:" >&5
49313 sed 's/^/| /' conftest.$ac_ext >&5
49314
49315   ac_header_preproc=no
49316 fi
49317
49318 rm -f conftest.err conftest.$ac_ext
49319 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
49320 echo "${ECHO_T}$ac_header_preproc" >&6; }
49321
49322 # So?  What about this header?
49323 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
49324   yes:no: )
49325     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
49326 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
49327     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
49328 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
49329     ac_header_preproc=yes
49330     ;;
49331   no:yes:* )
49332     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
49333 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
49334     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
49335 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
49336     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
49337 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
49338     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
49339 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
49340     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
49341 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
49342     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
49343 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
49344     ( cat <<\_ASBOX
49345 ## ----------------------------------- ##
49346 ## Report this to heimdal-bugs@h5l.org ##
49347 ## ----------------------------------- ##
49348 _ASBOX
49349      ) | sed "s/^/$as_me: WARNING:     /" >&2
49350     ;;
49351 esac
49352 { echo "$as_me:$LINENO: checking for $ac_header" >&5
49353 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
49354 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
49355   echo $ECHO_N "(cached) $ECHO_C" >&6
49356 else
49357   eval "$as_ac_Header=\$ac_header_preproc"
49358 fi
49359 ac_res=`eval echo '${'$as_ac_Header'}'`
49360                { echo "$as_me:$LINENO: result: $ac_res" >&5
49361 echo "${ECHO_T}$ac_res" >&6; }
49362
49363 fi
49364 if test `eval echo '${'$as_ac_Header'}'` = yes; then
49365   cat >>confdefs.h <<_ACEOF
49366 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
49367 _ACEOF
49368
49369 fi
49370
49371 done
49372
49373
49374
49375
49376 for ac_func in sgi_getcapabilitybyname cap_set_proc
49377 do
49378 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49379 { echo "$as_me:$LINENO: checking for $ac_func" >&5
49380 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
49381 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
49382   echo $ECHO_N "(cached) $ECHO_C" >&6
49383 else
49384   cat >conftest.$ac_ext <<_ACEOF
49385 /* confdefs.h.  */
49386 _ACEOF
49387 cat confdefs.h >>conftest.$ac_ext
49388 cat >>conftest.$ac_ext <<_ACEOF
49389 /* end confdefs.h.  */
49390 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
49391    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
49392 #define $ac_func innocuous_$ac_func
49393
49394 /* System header to define __stub macros and hopefully few prototypes,
49395     which can conflict with char $ac_func (); below.
49396     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49397     <limits.h> exists even on freestanding compilers.  */
49398
49399 #ifdef __STDC__
49400 # include <limits.h>
49401 #else
49402 # include <assert.h>
49403 #endif
49404
49405 #undef $ac_func
49406
49407 /* Override any GCC internal prototype to avoid an error.
49408    Use char because int might match the return type of a GCC
49409    builtin and then its argument prototype would still apply.  */
49410 #ifdef __cplusplus
49411 extern "C"
49412 #endif
49413 char $ac_func ();
49414 /* The GNU C library defines this for functions which it implements
49415     to always fail with ENOSYS.  Some functions are actually named
49416     something starting with __ and the normal name is an alias.  */
49417 #if defined __stub_$ac_func || defined __stub___$ac_func
49418 choke me
49419 #endif
49420
49421 int
49422 main ()
49423 {
49424 return $ac_func ();
49425   ;
49426   return 0;
49427 }
49428 _ACEOF
49429 rm -f conftest.$ac_objext conftest$ac_exeext
49430 if { (ac_try="$ac_link"
49431 case "(($ac_try" in
49432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49433   *) ac_try_echo=$ac_try;;
49434 esac
49435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49436   (eval "$ac_link") 2>conftest.er1
49437   ac_status=$?
49438   grep -v '^ *+' conftest.er1 >conftest.err
49439   rm -f conftest.er1
49440   cat conftest.err >&5
49441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49442   (exit $ac_status); } && {
49443          test -z "$ac_c_werror_flag" ||
49444          test ! -s conftest.err
49445        } && test -s conftest$ac_exeext &&
49446        $as_test_x conftest$ac_exeext; then
49447   eval "$as_ac_var=yes"
49448 else
49449   echo "$as_me: failed program was:" >&5
49450 sed 's/^/| /' conftest.$ac_ext >&5
49451
49452         eval "$as_ac_var=no"
49453 fi
49454
49455 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
49456       conftest$ac_exeext conftest.$ac_ext
49457 fi
49458 ac_res=`eval echo '${'$as_ac_var'}'`
49459                { echo "$as_me:$LINENO: result: $ac_res" >&5
49460 echo "${ECHO_T}$ac_res" >&6; }
49461 if test `eval echo '${'$as_ac_var'}'` = yes; then
49462   cat >>confdefs.h <<_ACEOF
49463 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49464 _ACEOF
49465
49466 fi
49467 done
49468
49469
49470
49471
49472
49473
49474
49475 { echo "$as_me:$LINENO: checking for getpwnam_r" >&5
49476 echo $ECHO_N "checking for getpwnam_r... $ECHO_C" >&6; }
49477 if test "${ac_cv_funclib_getpwnam_r+set}" = set; then
49478   echo $ECHO_N "(cached) $ECHO_C" >&6
49479 else
49480
49481 if eval "test \"\$ac_cv_func_getpwnam_r\" != yes" ; then
49482         ac_save_LIBS="$LIBS"
49483         for ac_lib in "" c_r; do
49484                 case "$ac_lib" in
49485                 "") ;;
49486                 yes) ac_lib="" ;;
49487                 no) continue ;;
49488                 -l*) ;;
49489                 *) ac_lib="-l$ac_lib" ;;
49490                 esac
49491                 LIBS=" $ac_lib  $ac_save_LIBS"
49492                 cat >conftest.$ac_ext <<_ACEOF
49493 /* confdefs.h.  */
49494 _ACEOF
49495 cat confdefs.h >>conftest.$ac_ext
49496 cat >>conftest.$ac_ext <<_ACEOF
49497 /* end confdefs.h.  */
49498
49499 int
49500 main ()
49501 {
49502 getpwnam_r()
49503   ;
49504   return 0;
49505 }
49506 _ACEOF
49507 rm -f conftest.$ac_objext conftest$ac_exeext
49508 if { (ac_try="$ac_link"
49509 case "(($ac_try" in
49510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49511   *) ac_try_echo=$ac_try;;
49512 esac
49513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49514   (eval "$ac_link") 2>conftest.er1
49515   ac_status=$?
49516   grep -v '^ *+' conftest.er1 >conftest.err
49517   rm -f conftest.er1
49518   cat conftest.err >&5
49519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49520   (exit $ac_status); } && {
49521          test -z "$ac_c_werror_flag" ||
49522          test ! -s conftest.err
49523        } && test -s conftest$ac_exeext &&
49524        $as_test_x conftest$ac_exeext; then
49525   eval "if test -n \"$ac_lib\";then ac_cv_funclib_getpwnam_r=$ac_lib; else ac_cv_funclib_getpwnam_r=yes; fi";break
49526 else
49527   echo "$as_me: failed program was:" >&5
49528 sed 's/^/| /' conftest.$ac_ext >&5
49529
49530
49531 fi
49532
49533 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
49534       conftest$ac_exeext conftest.$ac_ext
49535         done
49536         eval "ac_cv_funclib_getpwnam_r=\${ac_cv_funclib_getpwnam_r-no}"
49537         LIBS="$ac_save_LIBS"
49538 fi
49539
49540 fi
49541
49542
49543 eval "ac_res=\$ac_cv_funclib_getpwnam_r"
49544
49545 if false; then
49546
49547 for ac_func in getpwnam_r
49548 do
49549 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49550 { echo "$as_me:$LINENO: checking for $ac_func" >&5
49551 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
49552 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
49553   echo $ECHO_N "(cached) $ECHO_C" >&6
49554 else
49555   cat >conftest.$ac_ext <<_ACEOF
49556 /* confdefs.h.  */
49557 _ACEOF
49558 cat confdefs.h >>conftest.$ac_ext
49559 cat >>conftest.$ac_ext <<_ACEOF
49560 /* end confdefs.h.  */
49561 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
49562    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
49563 #define $ac_func innocuous_$ac_func
49564
49565 /* System header to define __stub macros and hopefully few prototypes,
49566     which can conflict with char $ac_func (); below.
49567     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49568     <limits.h> exists even on freestanding compilers.  */
49569
49570 #ifdef __STDC__
49571 # include <limits.h>
49572 #else
49573 # include <assert.h>
49574 #endif
49575
49576 #undef $ac_func
49577
49578 /* Override any GCC internal prototype to avoid an error.
49579    Use char because int might match the return type of a GCC
49580    builtin and then its argument prototype would still apply.  */
49581 #ifdef __cplusplus
49582 extern "C"
49583 #endif
49584 char $ac_func ();
49585 /* The GNU C library defines this for functions which it implements
49586     to always fail with ENOSYS.  Some functions are actually named
49587     something starting with __ and the normal name is an alias.  */
49588 #if defined __stub_$ac_func || defined __stub___$ac_func
49589 choke me
49590 #endif
49591
49592 int
49593 main ()
49594 {
49595 return $ac_func ();
49596   ;
49597   return 0;
49598 }
49599 _ACEOF
49600 rm -f conftest.$ac_objext conftest$ac_exeext
49601 if { (ac_try="$ac_link"
49602 case "(($ac_try" in
49603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49604   *) ac_try_echo=$ac_try;;
49605 esac
49606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49607   (eval "$ac_link") 2>conftest.er1
49608   ac_status=$?
49609   grep -v '^ *+' conftest.er1 >conftest.err
49610   rm -f conftest.er1
49611   cat conftest.err >&5
49612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49613   (exit $ac_status); } && {
49614          test -z "$ac_c_werror_flag" ||
49615          test ! -s conftest.err
49616        } && test -s conftest$ac_exeext &&
49617        $as_test_x conftest$ac_exeext; then
49618   eval "$as_ac_var=yes"
49619 else
49620   echo "$as_me: failed program was:" >&5
49621 sed 's/^/| /' conftest.$ac_ext >&5
49622
49623         eval "$as_ac_var=no"
49624 fi
49625
49626 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
49627       conftest$ac_exeext conftest.$ac_ext
49628 fi
49629 ac_res=`eval echo '${'$as_ac_var'}'`
49630                { echo "$as_me:$LINENO: result: $ac_res" >&5
49631 echo "${ECHO_T}$ac_res" >&6; }
49632 if test `eval echo '${'$as_ac_var'}'` = yes; then
49633   cat >>confdefs.h <<_ACEOF
49634 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49635 _ACEOF
49636
49637 fi
49638 done
49639
49640 fi
49641 # getpwnam_r
49642 eval "ac_tr_func=HAVE_`echo getpwnam_r | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
49643 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
49644 eval "LIB_getpwnam_r=$ac_res"
49645
49646 case "$ac_res" in
49647         yes)
49648         eval "ac_cv_func_getpwnam_r=yes"
49649         eval "LIB_getpwnam_r="
49650         cat >>confdefs.h <<_ACEOF
49651 #define $ac_tr_func 1
49652 _ACEOF
49653
49654         { echo "$as_me:$LINENO: result: yes" >&5
49655 echo "${ECHO_T}yes" >&6; }
49656         ;;
49657         no)
49658         eval "ac_cv_func_getpwnam_r=no"
49659         eval "LIB_getpwnam_r="
49660         { echo "$as_me:$LINENO: result: no" >&5
49661 echo "${ECHO_T}no" >&6; }
49662         ;;
49663         *)
49664         eval "ac_cv_func_getpwnam_r=yes"
49665         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
49666         cat >>confdefs.h <<_ACEOF
49667 #define $ac_tr_func 1
49668 _ACEOF
49669
49670         cat >>confdefs.h <<_ACEOF
49671 #define $ac_tr_lib 1
49672 _ACEOF
49673
49674         { echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
49675 echo "${ECHO_T}yes, in $ac_res" >&6; }
49676         ;;
49677 esac
49678
49679
49680 if test "$ac_cv_func_getpwnam_r" = yes; then
49681         { echo "$as_me:$LINENO: checking if getpwnam_r is posix" >&5
49682 echo $ECHO_N "checking if getpwnam_r is posix... $ECHO_C" >&6; }
49683 if test "${ac_cv_func_getpwnam_r_posix+set}" = set; then
49684   echo $ECHO_N "(cached) $ECHO_C" >&6
49685 else
49686   ac_libs="$LIBS"
49687         LIBS="$LIBS $LIB_getpwnam_r"
49688         if test "$cross_compiling" = yes; then
49689   :
49690 else
49691   cat >conftest.$ac_ext <<_ACEOF
49692 /* confdefs.h.  */
49693 _ACEOF
49694 cat confdefs.h >>conftest.$ac_ext
49695 cat >>conftest.$ac_ext <<_ACEOF
49696 /* end confdefs.h.  */
49697
49698 #define _POSIX_PTHREAD_SEMANTICS
49699 #include <pwd.h>
49700 int main(int argc, char **argv)
49701 {
49702         struct passwd pw, *pwd;
49703         return getpwnam_r("", &pw, NULL, 0, &pwd) < 0;
49704 }
49705
49706 _ACEOF
49707 rm -f conftest$ac_exeext
49708 if { (ac_try="$ac_link"
49709 case "(($ac_try" in
49710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49711   *) ac_try_echo=$ac_try;;
49712 esac
49713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49714   (eval "$ac_link") 2>&5
49715   ac_status=$?
49716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49717   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
49718   { (case "(($ac_try" in
49719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49720   *) ac_try_echo=$ac_try;;
49721 esac
49722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49723   (eval "$ac_try") 2>&5
49724   ac_status=$?
49725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49726   (exit $ac_status); }; }; then
49727   ac_cv_func_getpwnam_r_posix=yes
49728 else
49729   echo "$as_me: program exited with status $ac_status" >&5
49730 echo "$as_me: failed program was:" >&5
49731 sed 's/^/| /' conftest.$ac_ext >&5
49732
49733 ( exit $ac_status )
49734 ac_cv_func_getpwnam_r_posix=no
49735 fi
49736 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
49737 fi
49738
49739
49740 LIBS="$ac_libs"
49741 fi
49742 { echo "$as_me:$LINENO: result: $ac_cv_func_getpwnam_r_posix" >&5
49743 echo "${ECHO_T}$ac_cv_func_getpwnam_r_posix" >&6; }
49744 if test "$ac_cv_func_getpwnam_r_posix" = yes; then
49745
49746 cat >>confdefs.h <<\_ACEOF
49747 #define POSIX_GETPWNAM_R 1
49748 _ACEOF
49749
49750 fi
49751 fi
49752
49753
49754 if test "$enable_pthread_support" != no; then
49755    saved_LIBS="$LIBS"
49756    LIBS="$LIBS $PTHREADS_LIBS"
49757
49758
49759
49760 { echo "$as_me:$LINENO: checking for door_create" >&5
49761 echo $ECHO_N "checking for door_create... $ECHO_C" >&6; }
49762 if test "${ac_cv_funclib_door_create+set}" = set; then
49763   echo $ECHO_N "(cached) $ECHO_C" >&6
49764 else
49765
49766 if eval "test \"\$ac_cv_func_door_create\" != yes" ; then
49767         ac_save_LIBS="$LIBS"
49768         for ac_lib in "" door; do
49769                 case "$ac_lib" in
49770                 "") ;;
49771                 yes) ac_lib="" ;;
49772                 no) continue ;;
49773                 -l*) ;;
49774                 *) ac_lib="-l$ac_lib" ;;
49775                 esac
49776                 LIBS=" $ac_lib  $ac_save_LIBS"
49777                 cat >conftest.$ac_ext <<_ACEOF
49778 /* confdefs.h.  */
49779 _ACEOF
49780 cat confdefs.h >>conftest.$ac_ext
49781 cat >>conftest.$ac_ext <<_ACEOF
49782 /* end confdefs.h.  */
49783
49784 int
49785 main ()
49786 {
49787 door_create()
49788   ;
49789   return 0;
49790 }
49791 _ACEOF
49792 rm -f conftest.$ac_objext conftest$ac_exeext
49793 if { (ac_try="$ac_link"
49794 case "(($ac_try" in
49795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49796   *) ac_try_echo=$ac_try;;
49797 esac
49798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49799   (eval "$ac_link") 2>conftest.er1
49800   ac_status=$?
49801   grep -v '^ *+' conftest.er1 >conftest.err
49802   rm -f conftest.er1
49803   cat conftest.err >&5
49804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49805   (exit $ac_status); } && {
49806          test -z "$ac_c_werror_flag" ||
49807          test ! -s conftest.err
49808        } && test -s conftest$ac_exeext &&
49809        $as_test_x conftest$ac_exeext; then
49810   eval "if test -n \"$ac_lib\";then ac_cv_funclib_door_create=$ac_lib; else ac_cv_funclib_door_create=yes; fi";break
49811 else
49812   echo "$as_me: failed program was:" >&5
49813 sed 's/^/| /' conftest.$ac_ext >&5
49814
49815
49816 fi
49817
49818 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
49819       conftest$ac_exeext conftest.$ac_ext
49820         done
49821         eval "ac_cv_funclib_door_create=\${ac_cv_funclib_door_create-no}"
49822         LIBS="$ac_save_LIBS"
49823 fi
49824
49825 fi
49826
49827
49828 eval "ac_res=\$ac_cv_funclib_door_create"
49829
49830 if false; then
49831
49832 for ac_func in door_create
49833 do
49834 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49835 { echo "$as_me:$LINENO: checking for $ac_func" >&5
49836 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
49837 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
49838   echo $ECHO_N "(cached) $ECHO_C" >&6
49839 else
49840   cat >conftest.$ac_ext <<_ACEOF
49841 /* confdefs.h.  */
49842 _ACEOF
49843 cat confdefs.h >>conftest.$ac_ext
49844 cat >>conftest.$ac_ext <<_ACEOF
49845 /* end confdefs.h.  */
49846 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
49847    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
49848 #define $ac_func innocuous_$ac_func
49849
49850 /* System header to define __stub macros and hopefully few prototypes,
49851     which can conflict with char $ac_func (); below.
49852     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49853     <limits.h> exists even on freestanding compilers.  */
49854
49855 #ifdef __STDC__
49856 # include <limits.h>
49857 #else
49858 # include <assert.h>
49859 #endif
49860
49861 #undef $ac_func
49862
49863 /* Override any GCC internal prototype to avoid an error.
49864    Use char because int might match the return type of a GCC
49865    builtin and then its argument prototype would still apply.  */
49866 #ifdef __cplusplus
49867 extern "C"
49868 #endif
49869 char $ac_func ();
49870 /* The GNU C library defines this for functions which it implements
49871     to always fail with ENOSYS.  Some functions are actually named
49872     something starting with __ and the normal name is an alias.  */
49873 #if defined __stub_$ac_func || defined __stub___$ac_func
49874 choke me
49875 #endif
49876
49877 int
49878 main ()
49879 {
49880 return $ac_func ();
49881   ;
49882   return 0;
49883 }
49884 _ACEOF
49885 rm -f conftest.$ac_objext conftest$ac_exeext
49886 if { (ac_try="$ac_link"
49887 case "(($ac_try" in
49888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49889   *) ac_try_echo=$ac_try;;
49890 esac
49891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49892   (eval "$ac_link") 2>conftest.er1
49893   ac_status=$?
49894   grep -v '^ *+' conftest.er1 >conftest.err
49895   rm -f conftest.er1
49896   cat conftest.err >&5
49897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49898   (exit $ac_status); } && {
49899          test -z "$ac_c_werror_flag" ||
49900          test ! -s conftest.err
49901        } && test -s conftest$ac_exeext &&
49902        $as_test_x conftest$ac_exeext; then
49903   eval "$as_ac_var=yes"
49904 else
49905   echo "$as_me: failed program was:" >&5
49906 sed 's/^/| /' conftest.$ac_ext >&5
49907
49908         eval "$as_ac_var=no"
49909 fi
49910
49911 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
49912       conftest$ac_exeext conftest.$ac_ext
49913 fi
49914 ac_res=`eval echo '${'$as_ac_var'}'`
49915                { echo "$as_me:$LINENO: result: $ac_res" >&5
49916 echo "${ECHO_T}$ac_res" >&6; }
49917 if test `eval echo '${'$as_ac_var'}'` = yes; then
49918   cat >>confdefs.h <<_ACEOF
49919 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49920 _ACEOF
49921
49922 fi
49923 done
49924
49925 fi
49926 # door_create
49927 eval "ac_tr_func=HAVE_`echo door_create | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
49928 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
49929 eval "LIB_door_create=$ac_res"
49930
49931 case "$ac_res" in
49932         yes)
49933         eval "ac_cv_func_door_create=yes"
49934         eval "LIB_door_create="
49935         cat >>confdefs.h <<_ACEOF
49936 #define $ac_tr_func 1
49937 _ACEOF
49938
49939         { echo "$as_me:$LINENO: result: yes" >&5
49940 echo "${ECHO_T}yes" >&6; }
49941         ;;
49942         no)
49943         eval "ac_cv_func_door_create=no"
49944         eval "LIB_door_create="
49945         { echo "$as_me:$LINENO: result: no" >&5
49946 echo "${ECHO_T}no" >&6; }
49947         ;;
49948         *)
49949         eval "ac_cv_func_door_create=yes"
49950         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
49951         cat >>confdefs.h <<_ACEOF
49952 #define $ac_tr_func 1
49953 _ACEOF
49954
49955         cat >>confdefs.h <<_ACEOF
49956 #define $ac_tr_lib 1
49957 _ACEOF
49958
49959         { echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
49960 echo "${ECHO_T}yes, in $ac_res" >&6; }
49961         ;;
49962 esac
49963
49964
49965    LIBS="$saved_LIBS"
49966 fi
49967
49968 # Check whether --enable-kcm was given.
49969 if test "${enable_kcm+set}" = set; then
49970   enableval=$enable_kcm;
49971 else
49972   enable_kcm=yes
49973 fi
49974
49975
49976 if test "$enable_kcm" = yes ; then
49977    if test  "$ac_cv_header_sys_un_h" != yes -a "$ac_cv_funclib_door_create" != yes ; then
49978         enable_kcm=no
49979    fi
49980 fi
49981 if test "$enable_kcm" = yes; then
49982
49983 cat >>confdefs.h <<\_ACEOF
49984 #define HAVE_KCM 1
49985 _ACEOF
49986
49987 fi
49988  if test "$enable_kcm" = yes; then
49989   KCM_TRUE=
49990   KCM_FALSE='#'
49991 else
49992   KCM_TRUE='#'
49993   KCM_FALSE=
49994 fi
49995
49996
49997
49998
49999
50000
50001 for ac_func in getudbnam setlim
50002 do
50003 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50004 { echo "$as_me:$LINENO: checking for $ac_func" >&5
50005 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
50006 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
50007   echo $ECHO_N "(cached) $ECHO_C" >&6
50008 else
50009   cat >conftest.$ac_ext <<_ACEOF
50010 /* confdefs.h.  */
50011 _ACEOF
50012 cat confdefs.h >>conftest.$ac_ext
50013 cat >>conftest.$ac_ext <<_ACEOF
50014 /* end confdefs.h.  */
50015 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50016    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
50017 #define $ac_func innocuous_$ac_func
50018
50019 /* System header to define __stub macros and hopefully few prototypes,
50020     which can conflict with char $ac_func (); below.
50021     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50022     <limits.h> exists even on freestanding compilers.  */
50023
50024 #ifdef __STDC__
50025 # include <limits.h>
50026 #else
50027 # include <assert.h>
50028 #endif
50029
50030 #undef $ac_func
50031
50032 /* Override any GCC internal prototype to avoid an error.
50033    Use char because int might match the return type of a GCC
50034    builtin and then its argument prototype would still apply.  */
50035 #ifdef __cplusplus
50036 extern "C"
50037 #endif
50038 char $ac_func ();
50039 /* The GNU C library defines this for functions which it implements
50040     to always fail with ENOSYS.  Some functions are actually named
50041     something starting with __ and the normal name is an alias.  */
50042 #if defined __stub_$ac_func || defined __stub___$ac_func
50043 choke me
50044 #endif
50045
50046 int
50047 main ()
50048 {
50049 return $ac_func ();
50050   ;
50051   return 0;
50052 }
50053 _ACEOF
50054 rm -f conftest.$ac_objext conftest$ac_exeext
50055 if { (ac_try="$ac_link"
50056 case "(($ac_try" in
50057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50058   *) ac_try_echo=$ac_try;;
50059 esac
50060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50061   (eval "$ac_link") 2>conftest.er1
50062   ac_status=$?
50063   grep -v '^ *+' conftest.er1 >conftest.err
50064   rm -f conftest.er1
50065   cat conftest.err >&5
50066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50067   (exit $ac_status); } && {
50068          test -z "$ac_c_werror_flag" ||
50069          test ! -s conftest.err
50070        } && test -s conftest$ac_exeext &&
50071        $as_test_x conftest$ac_exeext; then
50072   eval "$as_ac_var=yes"
50073 else
50074   echo "$as_me: failed program was:" >&5
50075 sed 's/^/| /' conftest.$ac_ext >&5
50076
50077         eval "$as_ac_var=no"
50078 fi
50079
50080 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
50081       conftest$ac_exeext conftest.$ac_ext
50082 fi
50083 ac_res=`eval echo '${'$as_ac_var'}'`
50084                { echo "$as_me:$LINENO: result: $ac_res" >&5
50085 echo "${ECHO_T}$ac_res" >&6; }
50086 if test `eval echo '${'$as_ac_var'}'` = yes; then
50087   cat >>confdefs.h <<_ACEOF
50088 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50089 _ACEOF
50090
50091 fi
50092 done
50093
50094
50095
50096
50097
50098
50099 { echo "$as_me:$LINENO: checking for ut_addr in struct utmp" >&5
50100 echo $ECHO_N "checking for ut_addr in struct utmp... $ECHO_C" >&6; }
50101 if test "${ac_cv_type_struct_utmp_ut_addr+set}" = set; then
50102   echo $ECHO_N "(cached) $ECHO_C" >&6
50103 else
50104
50105 cat >conftest.$ac_ext <<_ACEOF
50106 /* confdefs.h.  */
50107 _ACEOF
50108 cat confdefs.h >>conftest.$ac_ext
50109 cat >>conftest.$ac_ext <<_ACEOF
50110 /* end confdefs.h.  */
50111 #include <utmp.h>
50112 int
50113 main ()
50114 {
50115 struct utmp x; memset(&x, 0, sizeof(x)); x.ut_addr
50116   ;
50117   return 0;
50118 }
50119 _ACEOF
50120 rm -f conftest.$ac_objext
50121 if { (ac_try="$ac_compile"
50122 case "(($ac_try" in
50123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50124   *) ac_try_echo=$ac_try;;
50125 esac
50126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50127   (eval "$ac_compile") 2>conftest.er1
50128   ac_status=$?
50129   grep -v '^ *+' conftest.er1 >conftest.err
50130   rm -f conftest.er1
50131   cat conftest.err >&5
50132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50133   (exit $ac_status); } && {
50134          test -z "$ac_c_werror_flag" ||
50135          test ! -s conftest.err
50136        } && test -s conftest.$ac_objext; then
50137   ac_cv_type_struct_utmp_ut_addr=yes
50138 else
50139   echo "$as_me: failed program was:" >&5
50140 sed 's/^/| /' conftest.$ac_ext >&5
50141
50142         ac_cv_type_struct_utmp_ut_addr=no
50143 fi
50144
50145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50146
50147 fi
50148 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_utmp_ut_addr" >&5
50149 echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_addr" >&6; }
50150 if test "$ac_cv_type_struct_utmp_ut_addr" = yes; then
50151
50152
50153 cat >>confdefs.h <<\_ACEOF
50154 #define HAVE_STRUCT_UTMP_UT_ADDR 1
50155 _ACEOF
50156
50157
50158 fi
50159
50160
50161
50162
50163 { echo "$as_me:$LINENO: checking for ut_host in struct utmp" >&5
50164 echo $ECHO_N "checking for ut_host in struct utmp... $ECHO_C" >&6; }
50165 if test "${ac_cv_type_struct_utmp_ut_host+set}" = set; then
50166   echo $ECHO_N "(cached) $ECHO_C" >&6
50167 else
50168
50169 cat >conftest.$ac_ext <<_ACEOF
50170 /* confdefs.h.  */
50171 _ACEOF
50172 cat confdefs.h >>conftest.$ac_ext
50173 cat >>conftest.$ac_ext <<_ACEOF
50174 /* end confdefs.h.  */
50175 #include <utmp.h>
50176 int
50177 main ()
50178 {
50179 struct utmp x; memset(&x, 0, sizeof(x)); x.ut_host
50180   ;
50181   return 0;
50182 }
50183 _ACEOF
50184 rm -f conftest.$ac_objext
50185 if { (ac_try="$ac_compile"
50186 case "(($ac_try" in
50187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50188   *) ac_try_echo=$ac_try;;
50189 esac
50190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50191   (eval "$ac_compile") 2>conftest.er1
50192   ac_status=$?
50193   grep -v '^ *+' conftest.er1 >conftest.err
50194   rm -f conftest.er1
50195   cat conftest.err >&5
50196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50197   (exit $ac_status); } && {
50198          test -z "$ac_c_werror_flag" ||
50199          test ! -s conftest.err
50200        } && test -s conftest.$ac_objext; then
50201   ac_cv_type_struct_utmp_ut_host=yes
50202 else
50203   echo "$as_me: failed program was:" >&5
50204 sed 's/^/| /' conftest.$ac_ext >&5
50205
50206         ac_cv_type_struct_utmp_ut_host=no
50207 fi
50208
50209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50210
50211 fi
50212 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_utmp_ut_host" >&5
50213 echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_host" >&6; }
50214 if test "$ac_cv_type_struct_utmp_ut_host" = yes; then
50215
50216
50217 cat >>confdefs.h <<\_ACEOF
50218 #define HAVE_STRUCT_UTMP_UT_HOST 1
50219 _ACEOF
50220
50221
50222 fi
50223
50224
50225
50226
50227 { echo "$as_me:$LINENO: checking for ut_id in struct utmp" >&5
50228 echo $ECHO_N "checking for ut_id in struct utmp... $ECHO_C" >&6; }
50229 if test "${ac_cv_type_struct_utmp_ut_id+set}" = set; then
50230   echo $ECHO_N "(cached) $ECHO_C" >&6
50231 else
50232
50233 cat >conftest.$ac_ext <<_ACEOF
50234 /* confdefs.h.  */
50235 _ACEOF
50236 cat confdefs.h >>conftest.$ac_ext
50237 cat >>conftest.$ac_ext <<_ACEOF
50238 /* end confdefs.h.  */
50239 #include <utmp.h>
50240 int
50241 main ()
50242 {
50243 struct utmp x; memset(&x, 0, sizeof(x)); x.ut_id
50244   ;
50245   return 0;
50246 }
50247 _ACEOF
50248 rm -f conftest.$ac_objext
50249 if { (ac_try="$ac_compile"
50250 case "(($ac_try" in
50251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50252   *) ac_try_echo=$ac_try;;
50253 esac
50254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50255   (eval "$ac_compile") 2>conftest.er1
50256   ac_status=$?
50257   grep -v '^ *+' conftest.er1 >conftest.err
50258   rm -f conftest.er1
50259   cat conftest.err >&5
50260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50261   (exit $ac_status); } && {
50262          test -z "$ac_c_werror_flag" ||
50263          test ! -s conftest.err
50264        } && test -s conftest.$ac_objext; then
50265   ac_cv_type_struct_utmp_ut_id=yes
50266 else
50267   echo "$as_me: failed program was:" >&5
50268 sed 's/^/| /' conftest.$ac_ext >&5
50269
50270         ac_cv_type_struct_utmp_ut_id=no
50271 fi
50272
50273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50274
50275 fi
50276 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_utmp_ut_id" >&5
50277 echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_id" >&6; }
50278 if test "$ac_cv_type_struct_utmp_ut_id" = yes; then
50279
50280
50281 cat >>confdefs.h <<\_ACEOF
50282 #define HAVE_STRUCT_UTMP_UT_ID 1
50283 _ACEOF
50284
50285
50286 fi
50287
50288
50289
50290
50291 { echo "$as_me:$LINENO: checking for ut_pid in struct utmp" >&5
50292 echo $ECHO_N "checking for ut_pid in struct utmp... $ECHO_C" >&6; }
50293 if test "${ac_cv_type_struct_utmp_ut_pid+set}" = set; then
50294   echo $ECHO_N "(cached) $ECHO_C" >&6
50295 else
50296
50297 cat >conftest.$ac_ext <<_ACEOF
50298 /* confdefs.h.  */
50299 _ACEOF
50300 cat confdefs.h >>conftest.$ac_ext
50301 cat >>conftest.$ac_ext <<_ACEOF
50302 /* end confdefs.h.  */
50303 #include <utmp.h>
50304 int
50305 main ()
50306 {
50307 struct utmp x; memset(&x, 0, sizeof(x)); x.ut_pid
50308   ;
50309   return 0;
50310 }
50311 _ACEOF
50312 rm -f conftest.$ac_objext
50313 if { (ac_try="$ac_compile"
50314 case "(($ac_try" in
50315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50316   *) ac_try_echo=$ac_try;;
50317 esac
50318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50319   (eval "$ac_compile") 2>conftest.er1
50320   ac_status=$?
50321   grep -v '^ *+' conftest.er1 >conftest.err
50322   rm -f conftest.er1
50323   cat conftest.err >&5
50324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50325   (exit $ac_status); } && {
50326          test -z "$ac_c_werror_flag" ||
50327          test ! -s conftest.err
50328        } && test -s conftest.$ac_objext; then
50329   ac_cv_type_struct_utmp_ut_pid=yes
50330 else
50331   echo "$as_me: failed program was:" >&5
50332 sed 's/^/| /' conftest.$ac_ext >&5
50333
50334         ac_cv_type_struct_utmp_ut_pid=no
50335 fi
50336
50337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50338
50339 fi
50340 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_utmp_ut_pid" >&5
50341 echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_pid" >&6; }
50342 if test "$ac_cv_type_struct_utmp_ut_pid" = yes; then
50343
50344
50345 cat >>confdefs.h <<\_ACEOF
50346 #define HAVE_STRUCT_UTMP_UT_PID 1
50347 _ACEOF
50348
50349
50350 fi
50351
50352
50353
50354
50355 { echo "$as_me:$LINENO: checking for ut_type in struct utmp" >&5
50356 echo $ECHO_N "checking for ut_type in struct utmp... $ECHO_C" >&6; }
50357 if test "${ac_cv_type_struct_utmp_ut_type+set}" = set; then
50358   echo $ECHO_N "(cached) $ECHO_C" >&6
50359 else
50360
50361 cat >conftest.$ac_ext <<_ACEOF
50362 /* confdefs.h.  */
50363 _ACEOF
50364 cat confdefs.h >>conftest.$ac_ext
50365 cat >>conftest.$ac_ext <<_ACEOF
50366 /* end confdefs.h.  */
50367 #include <utmp.h>
50368 int
50369 main ()
50370 {
50371 struct utmp x; memset(&x, 0, sizeof(x)); x.ut_type
50372   ;
50373   return 0;
50374 }
50375 _ACEOF
50376 rm -f conftest.$ac_objext
50377 if { (ac_try="$ac_compile"
50378 case "(($ac_try" in
50379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50380   *) ac_try_echo=$ac_try;;
50381 esac
50382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50383   (eval "$ac_compile") 2>conftest.er1
50384   ac_status=$?
50385   grep -v '^ *+' conftest.er1 >conftest.err
50386   rm -f conftest.er1
50387   cat conftest.err >&5
50388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50389   (exit $ac_status); } && {
50390          test -z "$ac_c_werror_flag" ||
50391          test ! -s conftest.err
50392        } && test -s conftest.$ac_objext; then
50393   ac_cv_type_struct_utmp_ut_type=yes
50394 else
50395   echo "$as_me: failed program was:" >&5
50396 sed 's/^/| /' conftest.$ac_ext >&5
50397
50398         ac_cv_type_struct_utmp_ut_type=no
50399 fi
50400
50401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50402
50403 fi
50404 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_utmp_ut_type" >&5
50405 echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_type" >&6; }
50406 if test "$ac_cv_type_struct_utmp_ut_type" = yes; then
50407
50408
50409 cat >>confdefs.h <<\_ACEOF
50410 #define HAVE_STRUCT_UTMP_UT_TYPE 1
50411 _ACEOF
50412
50413
50414 fi
50415
50416
50417
50418
50419 { echo "$as_me:$LINENO: checking for ut_user in struct utmp" >&5
50420 echo $ECHO_N "checking for ut_user in struct utmp... $ECHO_C" >&6; }
50421 if test "${ac_cv_type_struct_utmp_ut_user+set}" = set; then
50422   echo $ECHO_N "(cached) $ECHO_C" >&6
50423 else
50424
50425 cat >conftest.$ac_ext <<_ACEOF
50426 /* confdefs.h.  */
50427 _ACEOF
50428 cat confdefs.h >>conftest.$ac_ext
50429 cat >>conftest.$ac_ext <<_ACEOF
50430 /* end confdefs.h.  */
50431 #include <utmp.h>
50432 int
50433 main ()
50434 {
50435 struct utmp x; memset(&x, 0, sizeof(x)); x.ut_user
50436   ;
50437   return 0;
50438 }
50439 _ACEOF
50440 rm -f conftest.$ac_objext
50441 if { (ac_try="$ac_compile"
50442 case "(($ac_try" in
50443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50444   *) ac_try_echo=$ac_try;;
50445 esac
50446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50447   (eval "$ac_compile") 2>conftest.er1
50448   ac_status=$?
50449   grep -v '^ *+' conftest.er1 >conftest.err
50450   rm -f conftest.er1
50451   cat conftest.err >&5
50452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50453   (exit $ac_status); } && {
50454          test -z "$ac_c_werror_flag" ||
50455          test ! -s conftest.err
50456        } && test -s conftest.$ac_objext; then
50457   ac_cv_type_struct_utmp_ut_user=yes
50458 else
50459   echo "$as_me: failed program was:" >&5
50460 sed 's/^/| /' conftest.$ac_ext >&5
50461
50462         ac_cv_type_struct_utmp_ut_user=no
50463 fi
50464
50465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50466
50467 fi
50468 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_utmp_ut_user" >&5
50469 echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_user" >&6; }
50470 if test "$ac_cv_type_struct_utmp_ut_user" = yes; then
50471
50472
50473 cat >>confdefs.h <<\_ACEOF
50474 #define HAVE_STRUCT_UTMP_UT_USER 1
50475 _ACEOF
50476
50477
50478 fi
50479
50480
50481
50482
50483 { echo "$as_me:$LINENO: checking for ut_exit in struct utmpx" >&5
50484 echo $ECHO_N "checking for ut_exit in struct utmpx... $ECHO_C" >&6; }
50485 if test "${ac_cv_type_struct_utmpx_ut_exit+set}" = set; then
50486   echo $ECHO_N "(cached) $ECHO_C" >&6
50487 else
50488
50489 cat >conftest.$ac_ext <<_ACEOF
50490 /* confdefs.h.  */
50491 _ACEOF
50492 cat confdefs.h >>conftest.$ac_ext
50493 cat >>conftest.$ac_ext <<_ACEOF
50494 /* end confdefs.h.  */
50495 #include <utmpx.h>
50496 int
50497 main ()
50498 {
50499 struct utmpx x; memset(&x, 0, sizeof(x)); x.ut_exit
50500   ;
50501   return 0;
50502 }
50503 _ACEOF
50504 rm -f conftest.$ac_objext
50505 if { (ac_try="$ac_compile"
50506 case "(($ac_try" in
50507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50508   *) ac_try_echo=$ac_try;;
50509 esac
50510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50511   (eval "$ac_compile") 2>conftest.er1
50512   ac_status=$?
50513   grep -v '^ *+' conftest.er1 >conftest.err
50514   rm -f conftest.er1
50515   cat conftest.err >&5
50516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50517   (exit $ac_status); } && {
50518          test -z "$ac_c_werror_flag" ||
50519          test ! -s conftest.err
50520        } && test -s conftest.$ac_objext; then
50521   ac_cv_type_struct_utmpx_ut_exit=yes
50522 else
50523   echo "$as_me: failed program was:" >&5
50524 sed 's/^/| /' conftest.$ac_ext >&5
50525
50526         ac_cv_type_struct_utmpx_ut_exit=no
50527 fi
50528
50529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50530
50531 fi
50532 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_utmpx_ut_exit" >&5
50533 echo "${ECHO_T}$ac_cv_type_struct_utmpx_ut_exit" >&6; }
50534 if test "$ac_cv_type_struct_utmpx_ut_exit" = yes; then
50535
50536
50537 cat >>confdefs.h <<\_ACEOF
50538 #define HAVE_STRUCT_UTMPX_UT_EXIT 1
50539 _ACEOF
50540
50541
50542 fi
50543
50544
50545
50546
50547 { echo "$as_me:$LINENO: checking for ut_syslen in struct utmpx" >&5
50548 echo $ECHO_N "checking for ut_syslen in struct utmpx... $ECHO_C" >&6; }
50549 if test "${ac_cv_type_struct_utmpx_ut_syslen+set}" = set; then
50550   echo $ECHO_N "(cached) $ECHO_C" >&6
50551 else
50552
50553 cat >conftest.$ac_ext <<_ACEOF
50554 /* confdefs.h.  */
50555 _ACEOF
50556 cat confdefs.h >>conftest.$ac_ext
50557 cat >>conftest.$ac_ext <<_ACEOF
50558 /* end confdefs.h.  */
50559 #include <utmpx.h>
50560 int
50561 main ()
50562 {
50563 struct utmpx x; memset(&x, 0, sizeof(x)); x.ut_syslen
50564   ;
50565   return 0;
50566 }
50567 _ACEOF
50568 rm -f conftest.$ac_objext
50569 if { (ac_try="$ac_compile"
50570 case "(($ac_try" in
50571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50572   *) ac_try_echo=$ac_try;;
50573 esac
50574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50575   (eval "$ac_compile") 2>conftest.er1
50576   ac_status=$?
50577   grep -v '^ *+' conftest.er1 >conftest.err
50578   rm -f conftest.er1
50579   cat conftest.err >&5
50580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50581   (exit $ac_status); } && {
50582          test -z "$ac_c_werror_flag" ||
50583          test ! -s conftest.err
50584        } && test -s conftest.$ac_objext; then
50585   ac_cv_type_struct_utmpx_ut_syslen=yes
50586 else
50587   echo "$as_me: failed program was:" >&5
50588 sed 's/^/| /' conftest.$ac_ext >&5
50589
50590         ac_cv_type_struct_utmpx_ut_syslen=no
50591 fi
50592
50593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50594
50595 fi
50596 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_utmpx_ut_syslen" >&5
50597 echo "${ECHO_T}$ac_cv_type_struct_utmpx_ut_syslen" >&6; }
50598 if test "$ac_cv_type_struct_utmpx_ut_syslen" = yes; then
50599
50600
50601 cat >>confdefs.h <<\_ACEOF
50602 #define HAVE_STRUCT_UTMPX_UT_SYSLEN 1
50603 _ACEOF
50604
50605
50606 fi
50607
50608
50609
50610 { echo "$as_me:$LINENO: checking for int8_t" >&5
50611 echo $ECHO_N "checking for int8_t... $ECHO_C" >&6; }
50612 if test "${ac_cv_type_int8_t+set}" = set; then
50613   echo $ECHO_N "(cached) $ECHO_C" >&6
50614 else
50615   cat >conftest.$ac_ext <<_ACEOF
50616 /* confdefs.h.  */
50617 _ACEOF
50618 cat confdefs.h >>conftest.$ac_ext
50619 cat >>conftest.$ac_ext <<_ACEOF
50620 /* end confdefs.h.  */
50621
50622 #ifdef HAVE_INTTYPES_H
50623 #include <inttypes.h>
50624 #endif
50625 #ifdef HAVE_SYS_TYPES_H
50626 #include <sys/types.h>
50627 #endif
50628 #ifdef HAVE_SYS_BITYPES_H
50629 #include <sys/bitypes.h>
50630 #endif
50631 #ifdef HAVE_BIND_BITYPES_H
50632 #include <bind/bitypes.h>
50633 #endif
50634 #ifdef HAVE_NETINET_IN6_MACHTYPES_H
50635 #include <netinet/in6_machtypes.h>
50636 #endif
50637
50638
50639 typedef int8_t ac__type_new_;
50640 int
50641 main ()
50642 {
50643 if ((ac__type_new_ *) 0)
50644   return 0;
50645 if (sizeof (ac__type_new_))
50646   return 0;
50647   ;
50648   return 0;
50649 }
50650 _ACEOF
50651 rm -f conftest.$ac_objext
50652 if { (ac_try="$ac_compile"
50653 case "(($ac_try" in
50654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50655   *) ac_try_echo=$ac_try;;
50656 esac
50657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50658   (eval "$ac_compile") 2>conftest.er1
50659   ac_status=$?
50660   grep -v '^ *+' conftest.er1 >conftest.err
50661   rm -f conftest.er1
50662   cat conftest.err >&5
50663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50664   (exit $ac_status); } && {
50665          test -z "$ac_c_werror_flag" ||
50666          test ! -s conftest.err
50667        } && test -s conftest.$ac_objext; then
50668   ac_cv_type_int8_t=yes
50669 else
50670   echo "$as_me: failed program was:" >&5
50671 sed 's/^/| /' conftest.$ac_ext >&5
50672
50673         ac_cv_type_int8_t=no
50674 fi
50675
50676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50677 fi
50678 { echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
50679 echo "${ECHO_T}$ac_cv_type_int8_t" >&6; }
50680 if test $ac_cv_type_int8_t = yes; then
50681
50682 cat >>confdefs.h <<_ACEOF
50683 #define HAVE_INT8_T 1
50684 _ACEOF
50685
50686
50687 fi
50688 { echo "$as_me:$LINENO: checking for int16_t" >&5
50689 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
50690 if test "${ac_cv_type_int16_t+set}" = set; then
50691   echo $ECHO_N "(cached) $ECHO_C" >&6
50692 else
50693   cat >conftest.$ac_ext <<_ACEOF
50694 /* confdefs.h.  */
50695 _ACEOF
50696 cat confdefs.h >>conftest.$ac_ext
50697 cat >>conftest.$ac_ext <<_ACEOF
50698 /* end confdefs.h.  */
50699
50700 #ifdef HAVE_INTTYPES_H
50701 #include <inttypes.h>
50702 #endif
50703 #ifdef HAVE_SYS_TYPES_H
50704 #include <sys/types.h>
50705 #endif
50706 #ifdef HAVE_SYS_BITYPES_H
50707 #include <sys/bitypes.h>
50708 #endif
50709 #ifdef HAVE_BIND_BITYPES_H
50710 #include <bind/bitypes.h>
50711 #endif
50712 #ifdef HAVE_NETINET_IN6_MACHTYPES_H
50713 #include <netinet/in6_machtypes.h>
50714 #endif
50715
50716
50717 typedef int16_t ac__type_new_;
50718 int
50719 main ()
50720 {
50721 if ((ac__type_new_ *) 0)
50722   return 0;
50723 if (sizeof (ac__type_new_))
50724   return 0;
50725   ;
50726   return 0;
50727 }
50728 _ACEOF
50729 rm -f conftest.$ac_objext
50730 if { (ac_try="$ac_compile"
50731 case "(($ac_try" in
50732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50733   *) ac_try_echo=$ac_try;;
50734 esac
50735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50736   (eval "$ac_compile") 2>conftest.er1
50737   ac_status=$?
50738   grep -v '^ *+' conftest.er1 >conftest.err
50739   rm -f conftest.er1
50740   cat conftest.err >&5
50741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50742   (exit $ac_status); } && {
50743          test -z "$ac_c_werror_flag" ||
50744          test ! -s conftest.err
50745        } && test -s conftest.$ac_objext; then
50746   ac_cv_type_int16_t=yes
50747 else
50748   echo "$as_me: failed program was:" >&5
50749 sed 's/^/| /' conftest.$ac_ext >&5
50750
50751         ac_cv_type_int16_t=no
50752 fi
50753
50754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50755 fi
50756 { echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
50757 echo "${ECHO_T}$ac_cv_type_int16_t" >&6; }
50758 if test $ac_cv_type_int16_t = yes; then
50759
50760 cat >>confdefs.h <<_ACEOF
50761 #define HAVE_INT16_T 1
50762 _ACEOF
50763
50764
50765 fi
50766 { echo "$as_me:$LINENO: checking for int32_t" >&5
50767 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
50768 if test "${ac_cv_type_int32_t+set}" = set; then
50769   echo $ECHO_N "(cached) $ECHO_C" >&6
50770 else
50771   cat >conftest.$ac_ext <<_ACEOF
50772 /* confdefs.h.  */
50773 _ACEOF
50774 cat confdefs.h >>conftest.$ac_ext
50775 cat >>conftest.$ac_ext <<_ACEOF
50776 /* end confdefs.h.  */
50777
50778 #ifdef HAVE_INTTYPES_H
50779 #include <inttypes.h>
50780 #endif
50781 #ifdef HAVE_SYS_TYPES_H
50782 #include <sys/types.h>
50783 #endif
50784 #ifdef HAVE_SYS_BITYPES_H
50785 #include <sys/bitypes.h>
50786 #endif
50787 #ifdef HAVE_BIND_BITYPES_H
50788 #include <bind/bitypes.h>
50789 #endif
50790 #ifdef HAVE_NETINET_IN6_MACHTYPES_H
50791 #include <netinet/in6_machtypes.h>
50792 #endif
50793
50794
50795 typedef int32_t ac__type_new_;
50796 int
50797 main ()
50798 {
50799 if ((ac__type_new_ *) 0)
50800   return 0;
50801 if (sizeof (ac__type_new_))
50802   return 0;
50803   ;
50804   return 0;
50805 }
50806 _ACEOF
50807 rm -f conftest.$ac_objext
50808 if { (ac_try="$ac_compile"
50809 case "(($ac_try" in
50810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50811   *) ac_try_echo=$ac_try;;
50812 esac
50813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50814   (eval "$ac_compile") 2>conftest.er1
50815   ac_status=$?
50816   grep -v '^ *+' conftest.er1 >conftest.err
50817   rm -f conftest.er1
50818   cat conftest.err >&5
50819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50820   (exit $ac_status); } && {
50821          test -z "$ac_c_werror_flag" ||
50822          test ! -s conftest.err
50823        } && test -s conftest.$ac_objext; then
50824   ac_cv_type_int32_t=yes
50825 else
50826   echo "$as_me: failed program was:" >&5
50827 sed 's/^/| /' conftest.$ac_ext >&5
50828
50829         ac_cv_type_int32_t=no
50830 fi
50831
50832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50833 fi
50834 { echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
50835 echo "${ECHO_T}$ac_cv_type_int32_t" >&6; }
50836 if test $ac_cv_type_int32_t = yes; then
50837
50838 cat >>confdefs.h <<_ACEOF
50839 #define HAVE_INT32_T 1
50840 _ACEOF
50841
50842
50843 fi
50844 { echo "$as_me:$LINENO: checking for int64_t" >&5
50845 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
50846 if test "${ac_cv_type_int64_t+set}" = set; then
50847   echo $ECHO_N "(cached) $ECHO_C" >&6
50848 else
50849   cat >conftest.$ac_ext <<_ACEOF
50850 /* confdefs.h.  */
50851 _ACEOF
50852 cat confdefs.h >>conftest.$ac_ext
50853 cat >>conftest.$ac_ext <<_ACEOF
50854 /* end confdefs.h.  */
50855
50856 #ifdef HAVE_INTTYPES_H
50857 #include <inttypes.h>
50858 #endif
50859 #ifdef HAVE_SYS_TYPES_H
50860 #include <sys/types.h>
50861 #endif
50862 #ifdef HAVE_SYS_BITYPES_H
50863 #include <sys/bitypes.h>
50864 #endif
50865 #ifdef HAVE_BIND_BITYPES_H
50866 #include <bind/bitypes.h>
50867 #endif
50868 #ifdef HAVE_NETINET_IN6_MACHTYPES_H
50869 #include <netinet/in6_machtypes.h>
50870 #endif
50871
50872
50873 typedef int64_t ac__type_new_;
50874 int
50875 main ()
50876 {
50877 if ((ac__type_new_ *) 0)
50878   return 0;
50879 if (sizeof (ac__type_new_))
50880   return 0;
50881   ;
50882   return 0;
50883 }
50884 _ACEOF
50885 rm -f conftest.$ac_objext
50886 if { (ac_try="$ac_compile"
50887 case "(($ac_try" in
50888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50889   *) ac_try_echo=$ac_try;;
50890 esac
50891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50892   (eval "$ac_compile") 2>conftest.er1
50893   ac_status=$?
50894   grep -v '^ *+' conftest.er1 >conftest.err
50895   rm -f conftest.er1
50896   cat conftest.err >&5
50897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50898   (exit $ac_status); } && {
50899          test -z "$ac_c_werror_flag" ||
50900          test ! -s conftest.err
50901        } && test -s conftest.$ac_objext; then
50902   ac_cv_type_int64_t=yes
50903 else
50904   echo "$as_me: failed program was:" >&5
50905 sed 's/^/| /' conftest.$ac_ext >&5
50906
50907         ac_cv_type_int64_t=no
50908 fi
50909
50910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50911 fi
50912 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
50913 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
50914 if test $ac_cv_type_int64_t = yes; then
50915
50916 cat >>confdefs.h <<_ACEOF
50917 #define HAVE_INT64_T 1
50918 _ACEOF
50919
50920
50921 fi
50922 { echo "$as_me:$LINENO: checking for u_int8_t" >&5
50923 echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6; }
50924 if test "${ac_cv_type_u_int8_t+set}" = set; then
50925   echo $ECHO_N "(cached) $ECHO_C" >&6
50926 else
50927   cat >conftest.$ac_ext <<_ACEOF
50928 /* confdefs.h.  */
50929 _ACEOF
50930 cat confdefs.h >>conftest.$ac_ext
50931 cat >>conftest.$ac_ext <<_ACEOF
50932 /* end confdefs.h.  */
50933
50934 #ifdef HAVE_INTTYPES_H
50935 #include <inttypes.h>
50936 #endif
50937 #ifdef HAVE_SYS_TYPES_H
50938 #include <sys/types.h>
50939 #endif
50940 #ifdef HAVE_SYS_BITYPES_H
50941 #include <sys/bitypes.h>
50942 #endif
50943 #ifdef HAVE_BIND_BITYPES_H
50944 #include <bind/bitypes.h>
50945 #endif
50946 #ifdef HAVE_NETINET_IN6_MACHTYPES_H
50947 #include <netinet/in6_machtypes.h>
50948 #endif
50949
50950
50951 typedef u_int8_t ac__type_new_;
50952 int
50953 main ()
50954 {
50955 if ((ac__type_new_ *) 0)
50956   return 0;
50957 if (sizeof (ac__type_new_))
50958   return 0;
50959   ;
50960   return 0;
50961 }
50962 _ACEOF
50963 rm -f conftest.$ac_objext
50964 if { (ac_try="$ac_compile"
50965 case "(($ac_try" in
50966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50967   *) ac_try_echo=$ac_try;;
50968 esac
50969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50970   (eval "$ac_compile") 2>conftest.er1
50971   ac_status=$?
50972   grep -v '^ *+' conftest.er1 >conftest.err
50973   rm -f conftest.er1
50974   cat conftest.err >&5
50975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50976   (exit $ac_status); } && {
50977          test -z "$ac_c_werror_flag" ||
50978          test ! -s conftest.err
50979        } && test -s conftest.$ac_objext; then
50980   ac_cv_type_u_int8_t=yes
50981 else
50982   echo "$as_me: failed program was:" >&5
50983 sed 's/^/| /' conftest.$ac_ext >&5
50984
50985         ac_cv_type_u_int8_t=no
50986 fi
50987
50988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50989 fi
50990 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5
50991 echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6; }
50992 if test $ac_cv_type_u_int8_t = yes; then
50993
50994 cat >>confdefs.h <<_ACEOF
50995 #define HAVE_U_INT8_T 1
50996 _ACEOF
50997
50998
50999 fi
51000 { echo "$as_me:$LINENO: checking for u_int16_t" >&5
51001 echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6; }
51002 if test "${ac_cv_type_u_int16_t+set}" = set; then
51003   echo $ECHO_N "(cached) $ECHO_C" >&6
51004 else
51005   cat >conftest.$ac_ext <<_ACEOF
51006 /* confdefs.h.  */
51007 _ACEOF
51008 cat confdefs.h >>conftest.$ac_ext
51009 cat >>conftest.$ac_ext <<_ACEOF
51010 /* end confdefs.h.  */
51011
51012 #ifdef HAVE_INTTYPES_H
51013 #include <inttypes.h>
51014 #endif
51015 #ifdef HAVE_SYS_TYPES_H
51016 #include <sys/types.h>
51017 #endif
51018 #ifdef HAVE_SYS_BITYPES_H
51019 #include <sys/bitypes.h>
51020 #endif
51021 #ifdef HAVE_BIND_BITYPES_H
51022 #include <bind/bitypes.h>
51023 #endif
51024 #ifdef HAVE_NETINET_IN6_MACHTYPES_H
51025 #include <netinet/in6_machtypes.h>
51026 #endif
51027
51028
51029 typedef u_int16_t ac__type_new_;
51030 int
51031 main ()
51032 {
51033 if ((ac__type_new_ *) 0)
51034   return 0;
51035 if (sizeof (ac__type_new_))
51036   return 0;
51037   ;
51038   return 0;
51039 }
51040 _ACEOF
51041 rm -f conftest.$ac_objext
51042 if { (ac_try="$ac_compile"
51043 case "(($ac_try" in
51044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51045   *) ac_try_echo=$ac_try;;
51046 esac
51047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51048   (eval "$ac_compile") 2>conftest.er1
51049   ac_status=$?
51050   grep -v '^ *+' conftest.er1 >conftest.err
51051   rm -f conftest.er1
51052   cat conftest.err >&5
51053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51054   (exit $ac_status); } && {
51055          test -z "$ac_c_werror_flag" ||
51056          test ! -s conftest.err
51057        } && test -s conftest.$ac_objext; then
51058   ac_cv_type_u_int16_t=yes
51059 else
51060   echo "$as_me: failed program was:" >&5
51061 sed 's/^/| /' conftest.$ac_ext >&5
51062
51063         ac_cv_type_u_int16_t=no
51064 fi
51065
51066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51067 fi
51068 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
51069 echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6; }
51070 if test $ac_cv_type_u_int16_t = yes; then
51071
51072 cat >>confdefs.h <<_ACEOF
51073 #define HAVE_U_INT16_T 1
51074 _ACEOF
51075
51076
51077 fi
51078 { echo "$as_me:$LINENO: checking for u_int32_t" >&5
51079 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6; }
51080 if test "${ac_cv_type_u_int32_t+set}" = set; then
51081   echo $ECHO_N "(cached) $ECHO_C" >&6
51082 else
51083   cat >conftest.$ac_ext <<_ACEOF
51084 /* confdefs.h.  */
51085 _ACEOF
51086 cat confdefs.h >>conftest.$ac_ext
51087 cat >>conftest.$ac_ext <<_ACEOF
51088 /* end confdefs.h.  */
51089
51090 #ifdef HAVE_INTTYPES_H
51091 #include <inttypes.h>
51092 #endif
51093 #ifdef HAVE_SYS_TYPES_H
51094 #include <sys/types.h>
51095 #endif
51096 #ifdef HAVE_SYS_BITYPES_H
51097 #include <sys/bitypes.h>
51098 #endif
51099 #ifdef HAVE_BIND_BITYPES_H
51100 #include <bind/bitypes.h>
51101 #endif
51102 #ifdef HAVE_NETINET_IN6_MACHTYPES_H
51103 #include <netinet/in6_machtypes.h>
51104 #endif
51105
51106
51107 typedef u_int32_t ac__type_new_;
51108 int
51109 main ()
51110 {
51111 if ((ac__type_new_ *) 0)
51112   return 0;
51113 if (sizeof (ac__type_new_))
51114   return 0;
51115   ;
51116   return 0;
51117 }
51118 _ACEOF
51119 rm -f conftest.$ac_objext
51120 if { (ac_try="$ac_compile"
51121 case "(($ac_try" in
51122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51123   *) ac_try_echo=$ac_try;;
51124 esac
51125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51126   (eval "$ac_compile") 2>conftest.er1
51127   ac_status=$?
51128   grep -v '^ *+' conftest.er1 >conftest.err
51129   rm -f conftest.er1
51130   cat conftest.err >&5
51131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51132   (exit $ac_status); } && {
51133          test -z "$ac_c_werror_flag" ||
51134          test ! -s conftest.err
51135        } && test -s conftest.$ac_objext; then
51136   ac_cv_type_u_int32_t=yes
51137 else
51138   echo "$as_me: failed program was:" >&5
51139 sed 's/^/| /' conftest.$ac_ext >&5
51140
51141         ac_cv_type_u_int32_t=no
51142 fi
51143
51144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51145 fi
51146 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
51147 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6; }
51148 if test $ac_cv_type_u_int32_t = yes; then
51149
51150 cat >>confdefs.h <<_ACEOF
51151 #define HAVE_U_INT32_T 1
51152 _ACEOF
51153
51154
51155 fi
51156 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
51157 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
51158 if test "${ac_cv_type_u_int64_t+set}" = set; then
51159   echo $ECHO_N "(cached) $ECHO_C" >&6
51160 else
51161   cat >conftest.$ac_ext <<_ACEOF
51162 /* confdefs.h.  */
51163 _ACEOF
51164 cat confdefs.h >>conftest.$ac_ext
51165 cat >>conftest.$ac_ext <<_ACEOF
51166 /* end confdefs.h.  */
51167
51168 #ifdef HAVE_INTTYPES_H
51169 #include <inttypes.h>
51170 #endif
51171 #ifdef HAVE_SYS_TYPES_H
51172 #include <sys/types.h>
51173 #endif
51174 #ifdef HAVE_SYS_BITYPES_H
51175 #include <sys/bitypes.h>
51176 #endif
51177 #ifdef HAVE_BIND_BITYPES_H
51178 #include <bind/bitypes.h>
51179 #endif
51180 #ifdef HAVE_NETINET_IN6_MACHTYPES_H
51181 #include <netinet/in6_machtypes.h>
51182 #endif
51183
51184
51185 typedef u_int64_t ac__type_new_;
51186 int
51187 main ()
51188 {
51189 if ((ac__type_new_ *) 0)
51190   return 0;
51191 if (sizeof (ac__type_new_))
51192   return 0;
51193   ;
51194   return 0;
51195 }
51196 _ACEOF
51197 rm -f conftest.$ac_objext
51198 if { (ac_try="$ac_compile"
51199 case "(($ac_try" in
51200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51201   *) ac_try_echo=$ac_try;;
51202 esac
51203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51204   (eval "$ac_compile") 2>conftest.er1
51205   ac_status=$?
51206   grep -v '^ *+' conftest.er1 >conftest.err
51207   rm -f conftest.er1
51208   cat conftest.err >&5
51209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51210   (exit $ac_status); } && {
51211          test -z "$ac_c_werror_flag" ||
51212          test ! -s conftest.err
51213        } && test -s conftest.$ac_objext; then
51214   ac_cv_type_u_int64_t=yes
51215 else
51216   echo "$as_me: failed program was:" >&5
51217 sed 's/^/| /' conftest.$ac_ext >&5
51218
51219         ac_cv_type_u_int64_t=no
51220 fi
51221
51222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51223 fi
51224 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
51225 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
51226 if test $ac_cv_type_u_int64_t = yes; then
51227
51228 cat >>confdefs.h <<_ACEOF
51229 #define HAVE_U_INT64_T 1
51230 _ACEOF
51231
51232
51233 fi
51234 { echo "$as_me:$LINENO: checking for uint8_t" >&5
51235 echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6; }
51236 if test "${ac_cv_type_uint8_t+set}" = set; then
51237   echo $ECHO_N "(cached) $ECHO_C" >&6
51238 else
51239   cat >conftest.$ac_ext <<_ACEOF
51240 /* confdefs.h.  */
51241 _ACEOF
51242 cat confdefs.h >>conftest.$ac_ext
51243 cat >>conftest.$ac_ext <<_ACEOF
51244 /* end confdefs.h.  */
51245
51246 #ifdef HAVE_INTTYPES_H
51247 #include <inttypes.h>
51248 #endif
51249 #ifdef HAVE_SYS_TYPES_H
51250 #include <sys/types.h>
51251 #endif
51252 #ifdef HAVE_SYS_BITYPES_H
51253 #include <sys/bitypes.h>
51254 #endif
51255 #ifdef HAVE_BIND_BITYPES_H
51256 #include <bind/bitypes.h>
51257 #endif
51258 #ifdef HAVE_NETINET_IN6_MACHTYPES_H
51259 #include <netinet/in6_machtypes.h>
51260 #endif
51261
51262
51263 typedef uint8_t ac__type_new_;
51264 int
51265 main ()
51266 {
51267 if ((ac__type_new_ *) 0)
51268   return 0;
51269 if (sizeof (ac__type_new_))
51270   return 0;
51271   ;
51272   return 0;
51273 }
51274 _ACEOF
51275 rm -f conftest.$ac_objext
51276 if { (ac_try="$ac_compile"
51277 case "(($ac_try" in
51278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51279   *) ac_try_echo=$ac_try;;
51280 esac
51281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51282   (eval "$ac_compile") 2>conftest.er1
51283   ac_status=$?
51284   grep -v '^ *+' conftest.er1 >conftest.err
51285   rm -f conftest.er1
51286   cat conftest.err >&5
51287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51288   (exit $ac_status); } && {
51289          test -z "$ac_c_werror_flag" ||
51290          test ! -s conftest.err
51291        } && test -s conftest.$ac_objext; then
51292   ac_cv_type_uint8_t=yes
51293 else
51294   echo "$as_me: failed program was:" >&5
51295 sed 's/^/| /' conftest.$ac_ext >&5
51296
51297         ac_cv_type_uint8_t=no
51298 fi
51299
51300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51301 fi
51302 { echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
51303 echo "${ECHO_T}$ac_cv_type_uint8_t" >&6; }
51304 if test $ac_cv_type_uint8_t = yes; then
51305
51306 cat >>confdefs.h <<_ACEOF
51307 #define HAVE_UINT8_T 1
51308 _ACEOF
51309
51310
51311 fi
51312 { echo "$as_me:$LINENO: checking for uint16_t" >&5
51313 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
51314 if test "${ac_cv_type_uint16_t+set}" = set; then
51315   echo $ECHO_N "(cached) $ECHO_C" >&6
51316 else
51317   cat >conftest.$ac_ext <<_ACEOF
51318 /* confdefs.h.  */
51319 _ACEOF
51320 cat confdefs.h >>conftest.$ac_ext
51321 cat >>conftest.$ac_ext <<_ACEOF
51322 /* end confdefs.h.  */
51323
51324 #ifdef HAVE_INTTYPES_H
51325 #include <inttypes.h>
51326 #endif
51327 #ifdef HAVE_SYS_TYPES_H
51328 #include <sys/types.h>
51329 #endif
51330 #ifdef HAVE_SYS_BITYPES_H
51331 #include <sys/bitypes.h>
51332 #endif
51333 #ifdef HAVE_BIND_BITYPES_H
51334 #include <bind/bitypes.h>
51335 #endif
51336 #ifdef HAVE_NETINET_IN6_MACHTYPES_H
51337 #include <netinet/in6_machtypes.h>
51338 #endif
51339
51340
51341 typedef uint16_t ac__type_new_;
51342 int
51343 main ()
51344 {
51345 if ((ac__type_new_ *) 0)
51346   return 0;
51347 if (sizeof (ac__type_new_))
51348   return 0;
51349   ;
51350   return 0;
51351 }
51352 _ACEOF
51353 rm -f conftest.$ac_objext
51354 if { (ac_try="$ac_compile"
51355 case "(($ac_try" in
51356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51357   *) ac_try_echo=$ac_try;;
51358 esac
51359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51360   (eval "$ac_compile") 2>conftest.er1
51361   ac_status=$?
51362   grep -v '^ *+' conftest.er1 >conftest.err
51363   rm -f conftest.er1
51364   cat conftest.err >&5
51365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51366   (exit $ac_status); } && {
51367          test -z "$ac_c_werror_flag" ||
51368          test ! -s conftest.err
51369        } && test -s conftest.$ac_objext; then
51370   ac_cv_type_uint16_t=yes
51371 else
51372   echo "$as_me: failed program was:" >&5
51373 sed 's/^/| /' conftest.$ac_ext >&5
51374
51375         ac_cv_type_uint16_t=no
51376 fi
51377
51378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51379 fi
51380 { echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
51381 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; }
51382 if test $ac_cv_type_uint16_t = yes; then
51383
51384 cat >>confdefs.h <<_ACEOF
51385 #define HAVE_UINT16_T 1
51386 _ACEOF
51387
51388
51389 fi
51390 { echo "$as_me:$LINENO: checking for uint32_t" >&5
51391 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
51392 if test "${ac_cv_type_uint32_t+set}" = set; then
51393   echo $ECHO_N "(cached) $ECHO_C" >&6
51394 else
51395   cat >conftest.$ac_ext <<_ACEOF
51396 /* confdefs.h.  */
51397 _ACEOF
51398 cat confdefs.h >>conftest.$ac_ext
51399 cat >>conftest.$ac_ext <<_ACEOF
51400 /* end confdefs.h.  */
51401
51402 #ifdef HAVE_INTTYPES_H
51403 #include <inttypes.h>
51404 #endif
51405 #ifdef HAVE_SYS_TYPES_H
51406 #include <sys/types.h>
51407 #endif
51408 #ifdef HAVE_SYS_BITYPES_H
51409 #include <sys/bitypes.h>
51410 #endif
51411 #ifdef HAVE_BIND_BITYPES_H
51412 #include <bind/bitypes.h>
51413 #endif
51414 #ifdef HAVE_NETINET_IN6_MACHTYPES_H
51415 #include <netinet/in6_machtypes.h>
51416 #endif
51417
51418
51419 typedef uint32_t ac__type_new_;
51420 int
51421 main ()
51422 {
51423 if ((ac__type_new_ *) 0)
51424   return 0;
51425 if (sizeof (ac__type_new_))
51426   return 0;
51427   ;
51428   return 0;
51429 }
51430 _ACEOF
51431 rm -f conftest.$ac_objext
51432 if { (ac_try="$ac_compile"
51433 case "(($ac_try" in
51434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51435   *) ac_try_echo=$ac_try;;
51436 esac
51437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51438   (eval "$ac_compile") 2>conftest.er1
51439   ac_status=$?
51440   grep -v '^ *+' conftest.er1 >conftest.err
51441   rm -f conftest.er1
51442   cat conftest.err >&5
51443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51444   (exit $ac_status); } && {
51445          test -z "$ac_c_werror_flag" ||
51446          test ! -s conftest.err
51447        } && test -s conftest.$ac_objext; then
51448   ac_cv_type_uint32_t=yes
51449 else
51450   echo "$as_me: failed program was:" >&5
51451 sed 's/^/| /' conftest.$ac_ext >&5
51452
51453         ac_cv_type_uint32_t=no
51454 fi
51455
51456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51457 fi
51458 { echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
51459 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; }
51460 if test $ac_cv_type_uint32_t = yes; then
51461
51462 cat >>confdefs.h <<_ACEOF
51463 #define HAVE_UINT32_T 1
51464 _ACEOF
51465
51466
51467 fi
51468 { echo "$as_me:$LINENO: checking for uint64_t" >&5
51469 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
51470 if test "${ac_cv_type_uint64_t+set}" = set; then
51471   echo $ECHO_N "(cached) $ECHO_C" >&6
51472 else
51473   cat >conftest.$ac_ext <<_ACEOF
51474 /* confdefs.h.  */
51475 _ACEOF
51476 cat confdefs.h >>conftest.$ac_ext
51477 cat >>conftest.$ac_ext <<_ACEOF
51478 /* end confdefs.h.  */
51479
51480 #ifdef HAVE_INTTYPES_H
51481 #include <inttypes.h>
51482 #endif
51483 #ifdef HAVE_SYS_TYPES_H
51484 #include <sys/types.h>
51485 #endif
51486 #ifdef HAVE_SYS_BITYPES_H
51487 #include <sys/bitypes.h>
51488 #endif
51489 #ifdef HAVE_BIND_BITYPES_H
51490 #include <bind/bitypes.h>
51491 #endif
51492 #ifdef HAVE_NETINET_IN6_MACHTYPES_H
51493 #include <netinet/in6_machtypes.h>
51494 #endif
51495
51496
51497 typedef uint64_t ac__type_new_;
51498 int
51499 main ()
51500 {
51501 if ((ac__type_new_ *) 0)
51502   return 0;
51503 if (sizeof (ac__type_new_))
51504   return 0;
51505   ;
51506   return 0;
51507 }
51508 _ACEOF
51509 rm -f conftest.$ac_objext
51510 if { (ac_try="$ac_compile"
51511 case "(($ac_try" in
51512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51513   *) ac_try_echo=$ac_try;;
51514 esac
51515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51516   (eval "$ac_compile") 2>conftest.er1
51517   ac_status=$?
51518   grep -v '^ *+' conftest.er1 >conftest.err
51519   rm -f conftest.er1
51520   cat conftest.err >&5
51521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51522   (exit $ac_status); } && {
51523          test -z "$ac_c_werror_flag" ||
51524          test ! -s conftest.err
51525        } && test -s conftest.$ac_objext; then
51526   ac_cv_type_uint64_t=yes
51527 else
51528   echo "$as_me: failed program was:" >&5
51529 sed 's/^/| /' conftest.$ac_ext >&5
51530
51531         ac_cv_type_uint64_t=no
51532 fi
51533
51534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51535 fi
51536 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
51537 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
51538 if test $ac_cv_type_uint64_t = yes; then
51539
51540 cat >>confdefs.h <<_ACEOF
51541 #define HAVE_UINT64_T 1
51542 _ACEOF
51543
51544
51545 fi
51546
51547
51548
51549
51550 { echo "$as_me:$LINENO: checking for framework security" >&5
51551 echo $ECHO_N "checking for framework security... $ECHO_C" >&6; }
51552 if test "${rk_cv_framework_security+set}" = set; then
51553   echo $ECHO_N "(cached) $ECHO_C" >&6
51554 else
51555
51556 if test "$rk_cv_framework_security" != yes; then
51557         ac_save_LIBS="$LIBS"
51558         LIBS="$ac_save_LIBS -framework Security -framework CoreFoundation"
51559         cat >conftest.$ac_ext <<_ACEOF
51560 /* confdefs.h.  */
51561 _ACEOF
51562 cat confdefs.h >>conftest.$ac_ext
51563 cat >>conftest.$ac_ext <<_ACEOF
51564 /* end confdefs.h.  */
51565 #include <Security/Security.h>
51566
51567 int
51568 main ()
51569 {
51570 SecKeychainSearchRef searchRef;
51571 SecKeychainSearchCreateFromAttributes(NULL,kSecCertificateItemClass,NULL, &searchRef);
51572 CFRelease(&searchRef);
51573
51574   ;
51575   return 0;
51576 }
51577 _ACEOF
51578 rm -f conftest.$ac_objext conftest$ac_exeext
51579 if { (ac_try="$ac_link"
51580 case "(($ac_try" in
51581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51582   *) ac_try_echo=$ac_try;;
51583 esac
51584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51585   (eval "$ac_link") 2>conftest.er1
51586   ac_status=$?
51587   grep -v '^ *+' conftest.er1 >conftest.err
51588   rm -f conftest.er1
51589   cat conftest.err >&5
51590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51591   (exit $ac_status); } && {
51592          test -z "$ac_c_werror_flag" ||
51593          test ! -s conftest.err
51594        } && test -s conftest$ac_exeext &&
51595        $as_test_x conftest$ac_exeext; then
51596   rk_cv_framework_security=yes
51597 else
51598   echo "$as_me: failed program was:" >&5
51599 sed 's/^/| /' conftest.$ac_ext >&5
51600
51601
51602 fi
51603
51604 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
51605       conftest$ac_exeext conftest.$ac_ext
51606         LIBS="$ac_save_LIBS"
51607 fi
51608
51609 fi
51610
51611
51612 if test "$rk_cv_framework_security" = yes; then
51613
51614 cat >>confdefs.h <<\_ACEOF
51615 #define HAVE_FRAMEWORK_SECURITY 1
51616 _ACEOF
51617
51618    { echo "$as_me:$LINENO: result: yes" >&5
51619 echo "${ECHO_T}yes" >&6; }
51620 else
51621    { echo "$as_me:$LINENO: result: no" >&5
51622 echo "${ECHO_T}no" >&6; }
51623 fi
51624  if test "$rk_cv_framework_security" = yes; then
51625   FRAMEWORK_SECURITY_TRUE=
51626   FRAMEWORK_SECURITY_FALSE='#'
51627 else
51628   FRAMEWORK_SECURITY_TRUE='#'
51629   FRAMEWORK_SECURITY_FALSE=
51630 fi
51631
51632
51633 if test "$rk_cv_framework_security" = yes; then
51634
51635 if test "$ac_cv_func_SecKeyGetCSPHandle+set" != set -o "$ac_cv_func_SecKeyGetCSPHandle" = yes; then
51636 { echo "$as_me:$LINENO: checking if SecKeyGetCSPHandle needs a prototype" >&5
51637 echo $ECHO_N "checking if SecKeyGetCSPHandle needs a prototype... $ECHO_C" >&6; }
51638 if test "${ac_cv_func_SecKeyGetCSPHandle_noproto+set}" = set; then
51639   echo $ECHO_N "(cached) $ECHO_C" >&6
51640 else
51641   cat >conftest.$ac_ext <<_ACEOF
51642 /* confdefs.h.  */
51643 _ACEOF
51644 cat confdefs.h >>conftest.$ac_ext
51645 cat >>conftest.$ac_ext <<_ACEOF
51646 /* end confdefs.h.  */
51647 #include <Security/Security.h>
51648 struct foo { int foo; } xx;
51649 extern int SecKeyGetCSPHandle (struct foo*);
51650 int
51651 main ()
51652 {
51653 SecKeyGetCSPHandle(&xx)
51654   ;
51655   return 0;
51656 }
51657 _ACEOF
51658 rm -f conftest.$ac_objext
51659 if { (ac_try="$ac_compile"
51660 case "(($ac_try" in
51661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51662   *) ac_try_echo=$ac_try;;
51663 esac
51664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51665   (eval "$ac_compile") 2>conftest.er1
51666   ac_status=$?
51667   grep -v '^ *+' conftest.er1 >conftest.err
51668   rm -f conftest.er1
51669   cat conftest.err >&5
51670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51671   (exit $ac_status); } && {
51672          test -z "$ac_c_werror_flag" ||
51673          test ! -s conftest.err
51674        } && test -s conftest.$ac_objext; then
51675   eval "ac_cv_func_SecKeyGetCSPHandle_noproto=yes"
51676 else
51677   echo "$as_me: failed program was:" >&5
51678 sed 's/^/| /' conftest.$ac_ext >&5
51679
51680         eval "ac_cv_func_SecKeyGetCSPHandle_noproto=no"
51681 fi
51682
51683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51684 fi
51685 { echo "$as_me:$LINENO: result: $ac_cv_func_SecKeyGetCSPHandle_noproto" >&5
51686 echo "${ECHO_T}$ac_cv_func_SecKeyGetCSPHandle_noproto" >&6; }
51687 if test "$ac_cv_func_SecKeyGetCSPHandle_noproto" = yes; then
51688
51689 cat >>confdefs.h <<\_ACEOF
51690 #define NEED_SECKEYGETCSPHANDLE_PROTO 1
51691 _ACEOF
51692
51693 fi
51694 fi
51695
51696 fi
51697
51698
51699
51700
51701
51702
51703
51704 { echo "$as_me:$LINENO: checking for el_init" >&5
51705 echo $ECHO_N "checking for el_init... $ECHO_C" >&6; }
51706 if test "${ac_cv_funclib_el_init+set}" = set; then
51707   echo $ECHO_N "(cached) $ECHO_C" >&6
51708 else
51709
51710 if eval "test \"\$ac_cv_func_el_init\" != yes" ; then
51711         ac_save_LIBS="$LIBS"
51712         for ac_lib in "" edit; do
51713                 case "$ac_lib" in
51714                 "") ;;
51715                 yes) ac_lib="" ;;
51716                 no) continue ;;
51717                 -l*) ;;
51718                 *) ac_lib="-l$ac_lib" ;;
51719                 esac
51720                 LIBS=" $ac_lib $LIB_tgetent $ac_save_LIBS"
51721                 cat >conftest.$ac_ext <<_ACEOF
51722 /* confdefs.h.  */
51723 _ACEOF
51724 cat confdefs.h >>conftest.$ac_ext
51725 cat >>conftest.$ac_ext <<_ACEOF
51726 /* end confdefs.h.  */
51727
51728 int
51729 main ()
51730 {
51731 el_init()
51732   ;
51733   return 0;
51734 }
51735 _ACEOF
51736 rm -f conftest.$ac_objext conftest$ac_exeext
51737 if { (ac_try="$ac_link"
51738 case "(($ac_try" in
51739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51740   *) ac_try_echo=$ac_try;;
51741 esac
51742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51743   (eval "$ac_link") 2>conftest.er1
51744   ac_status=$?
51745   grep -v '^ *+' conftest.er1 >conftest.err
51746   rm -f conftest.er1
51747   cat conftest.err >&5
51748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51749   (exit $ac_status); } && {
51750          test -z "$ac_c_werror_flag" ||
51751          test ! -s conftest.err
51752        } && test -s conftest$ac_exeext &&
51753        $as_test_x conftest$ac_exeext; then
51754   eval "if test -n \"$ac_lib\";then ac_cv_funclib_el_init=$ac_lib; else ac_cv_funclib_el_init=yes; fi";break
51755 else
51756   echo "$as_me: failed program was:" >&5
51757 sed 's/^/| /' conftest.$ac_ext >&5
51758
51759
51760 fi
51761
51762 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
51763       conftest$ac_exeext conftest.$ac_ext
51764         done
51765         eval "ac_cv_funclib_el_init=\${ac_cv_funclib_el_init-no}"
51766         LIBS="$ac_save_LIBS"
51767 fi
51768
51769 fi
51770
51771
51772 eval "ac_res=\$ac_cv_funclib_el_init"
51773
51774 if false; then
51775
51776 for ac_func in el_init
51777 do
51778 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51779 { echo "$as_me:$LINENO: checking for $ac_func" >&5
51780 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
51781 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
51782   echo $ECHO_N "(cached) $ECHO_C" >&6
51783 else
51784   cat >conftest.$ac_ext <<_ACEOF
51785 /* confdefs.h.  */
51786 _ACEOF
51787 cat confdefs.h >>conftest.$ac_ext
51788 cat >>conftest.$ac_ext <<_ACEOF
51789 /* end confdefs.h.  */
51790 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51791    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
51792 #define $ac_func innocuous_$ac_func
51793
51794 /* System header to define __stub macros and hopefully few prototypes,
51795     which can conflict with char $ac_func (); below.
51796     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51797     <limits.h> exists even on freestanding compilers.  */
51798
51799 #ifdef __STDC__
51800 # include <limits.h>
51801 #else
51802 # include <assert.h>
51803 #endif
51804
51805 #undef $ac_func
51806
51807 /* Override any GCC internal prototype to avoid an error.
51808    Use char because int might match the return type of a GCC
51809    builtin and then its argument prototype would still apply.  */
51810 #ifdef __cplusplus
51811 extern "C"
51812 #endif
51813 char $ac_func ();
51814 /* The GNU C library defines this for functions which it implements
51815     to always fail with ENOSYS.  Some functions are actually named
51816     something starting with __ and the normal name is an alias.  */
51817 #if defined __stub_$ac_func || defined __stub___$ac_func
51818 choke me
51819 #endif
51820
51821 int
51822 main ()
51823 {
51824 return $ac_func ();
51825   ;
51826   return 0;
51827 }
51828 _ACEOF
51829 rm -f conftest.$ac_objext conftest$ac_exeext
51830 if { (ac_try="$ac_link"
51831 case "(($ac_try" in
51832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51833   *) ac_try_echo=$ac_try;;
51834 esac
51835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51836   (eval "$ac_link") 2>conftest.er1
51837   ac_status=$?
51838   grep -v '^ *+' conftest.er1 >conftest.err
51839   rm -f conftest.er1
51840   cat conftest.err >&5
51841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51842   (exit $ac_status); } && {
51843          test -z "$ac_c_werror_flag" ||
51844          test ! -s conftest.err
51845        } && test -s conftest$ac_exeext &&
51846        $as_test_x conftest$ac_exeext; then
51847   eval "$as_ac_var=yes"
51848 else
51849   echo "$as_me: failed program was:" >&5
51850 sed 's/^/| /' conftest.$ac_ext >&5
51851
51852         eval "$as_ac_var=no"
51853 fi
51854
51855 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
51856       conftest$ac_exeext conftest.$ac_ext
51857 fi
51858 ac_res=`eval echo '${'$as_ac_var'}'`
51859                { echo "$as_me:$LINENO: result: $ac_res" >&5
51860 echo "${ECHO_T}$ac_res" >&6; }
51861 if test `eval echo '${'$as_ac_var'}'` = yes; then
51862   cat >>confdefs.h <<_ACEOF
51863 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51864 _ACEOF
51865
51866 fi
51867 done
51868
51869 fi
51870 # el_init
51871 eval "ac_tr_func=HAVE_`echo el_init | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
51872 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
51873 eval "LIB_el_init=$ac_res"
51874
51875 case "$ac_res" in
51876         yes)
51877         eval "ac_cv_func_el_init=yes"
51878         eval "LIB_el_init="
51879         cat >>confdefs.h <<_ACEOF
51880 #define $ac_tr_func 1
51881 _ACEOF
51882
51883         { echo "$as_me:$LINENO: result: yes" >&5
51884 echo "${ECHO_T}yes" >&6; }
51885         ;;
51886         no)
51887         eval "ac_cv_func_el_init=no"
51888         eval "LIB_el_init="
51889         { echo "$as_me:$LINENO: result: no" >&5
51890 echo "${ECHO_T}no" >&6; }
51891         ;;
51892         *)
51893         eval "ac_cv_func_el_init=yes"
51894         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
51895         cat >>confdefs.h <<_ACEOF
51896 #define $ac_tr_func 1
51897 _ACEOF
51898
51899         cat >>confdefs.h <<_ACEOF
51900 #define $ac_tr_lib 1
51901 _ACEOF
51902
51903         { echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
51904 echo "${ECHO_T}yes, in $ac_res" >&6; }
51905         ;;
51906 esac
51907
51908
51909 if test "$ac_cv_func_el_init" = yes ; then
51910         { echo "$as_me:$LINENO: checking for four argument el_init" >&5
51911 echo $ECHO_N "checking for four argument el_init... $ECHO_C" >&6; }
51912 if test "${ac_cv_func_el_init_four+set}" = set; then
51913   echo $ECHO_N "(cached) $ECHO_C" >&6
51914 else
51915
51916                 cat >conftest.$ac_ext <<_ACEOF
51917 /* confdefs.h.  */
51918 _ACEOF
51919 cat confdefs.h >>conftest.$ac_ext
51920 cat >>conftest.$ac_ext <<_ACEOF
51921 /* end confdefs.h.  */
51922 #include <stdio.h>
51923                         #include <histedit.h>
51924 int
51925 main ()
51926 {
51927 el_init("", NULL, NULL, NULL);
51928   ;
51929   return 0;
51930 }
51931 _ACEOF
51932 rm -f conftest.$ac_objext
51933 if { (ac_try="$ac_compile"
51934 case "(($ac_try" in
51935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51936   *) ac_try_echo=$ac_try;;
51937 esac
51938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51939   (eval "$ac_compile") 2>conftest.er1
51940   ac_status=$?
51941   grep -v '^ *+' conftest.er1 >conftest.err
51942   rm -f conftest.er1
51943   cat conftest.err >&5
51944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51945   (exit $ac_status); } && {
51946          test -z "$ac_c_werror_flag" ||
51947          test ! -s conftest.err
51948        } && test -s conftest.$ac_objext; then
51949   ac_cv_func_el_init_four=yes
51950 else
51951   echo "$as_me: failed program was:" >&5
51952 sed 's/^/| /' conftest.$ac_ext >&5
51953
51954         ac_cv_func_el_init_four=no
51955 fi
51956
51957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51958 fi
51959 { echo "$as_me:$LINENO: result: $ac_cv_func_el_init_four" >&5
51960 echo "${ECHO_T}$ac_cv_func_el_init_four" >&6; }
51961         if test "$ac_cv_func_el_init_four" = yes; then
51962
51963 cat >>confdefs.h <<\_ACEOF
51964 #define HAVE_FOUR_VALUED_EL_INIT 1
51965 _ACEOF
51966
51967         fi
51968 fi
51969
51970
51971 ac_foo=no
51972 if test "$with_readline" = yes; then
51973         :
51974 elif test "$ac_cv_func_readline" = yes; then
51975         :
51976 elif test "$ac_cv_func_el_init" = yes; then
51977         ac_foo=yes
51978         LIB_readline="\$(top_builddir)/lib/editline/libel_compat.la \$(LIB_el_init) \$(LIB_tgetent)"
51979 else
51980         LIB_readline="\$(top_builddir)/lib/editline/libeditline.la \$(LIB_tgetent)"
51981 fi
51982  if test "$ac_foo" = yes; then
51983   el_compat_TRUE=
51984   el_compat_FALSE='#'
51985 else
51986   el_compat_TRUE='#'
51987   el_compat_FALSE=
51988 fi
51989
51990
51991 cat >>confdefs.h <<\_ACEOF
51992 #define HAVE_READLINE 1
51993 _ACEOF
51994
51995
51996
51997
51998
51999 cat >>confdefs.h <<\_ACEOF
52000 #define AUTHENTICATION 1
52001 _ACEOF
52002
52003 cat >>confdefs.h <<\_ACEOF
52004 #define ENCRYPTION 1
52005 _ACEOF
52006
52007 cat >>confdefs.h <<\_ACEOF
52008 #define DES_ENCRYPTION 1
52009 _ACEOF
52010
52011 cat >>confdefs.h <<\_ACEOF
52012 #define DIAGNOSTICS 1
52013 _ACEOF
52014
52015 cat >>confdefs.h <<\_ACEOF
52016 #define OLD_ENVIRON 1
52017 _ACEOF
52018 if false; then
52019
52020 cat >>confdefs.h <<\_ACEOF
52021 #define ENV_HACK 1
52022 _ACEOF
52023
52024 fi
52025
52026 # Simple test for streamspty, based on the existance of getmsg(), alas
52027 # this breaks on SunOS4 which have streams but BSD-like ptys
52028 #
52029 # And also something wierd has happend with dec-osf1, fallback to bsd-ptys
52030
52031 case "$host" in
52032 *-*-aix3*|*-*-sunos4*|*-*-osf*|*-*-hpux1[01]*)
52033         ;;
52034 *)
52035         { echo "$as_me:$LINENO: checking for getmsg" >&5
52036 echo $ECHO_N "checking for getmsg... $ECHO_C" >&6; }
52037 if test "${ac_cv_func_getmsg+set}" = set; then
52038   echo $ECHO_N "(cached) $ECHO_C" >&6
52039 else
52040   cat >conftest.$ac_ext <<_ACEOF
52041 /* confdefs.h.  */
52042 _ACEOF
52043 cat confdefs.h >>conftest.$ac_ext
52044 cat >>conftest.$ac_ext <<_ACEOF
52045 /* end confdefs.h.  */
52046 /* Define getmsg to an innocuous variant, in case <limits.h> declares getmsg.
52047    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
52048 #define getmsg innocuous_getmsg
52049
52050 /* System header to define __stub macros and hopefully few prototypes,
52051     which can conflict with char getmsg (); below.
52052     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
52053     <limits.h> exists even on freestanding compilers.  */
52054
52055 #ifdef __STDC__
52056 # include <limits.h>
52057 #else
52058 # include <assert.h>
52059 #endif
52060
52061 #undef getmsg
52062
52063 /* Override any GCC internal prototype to avoid an error.
52064    Use char because int might match the return type of a GCC
52065    builtin and then its argument prototype would still apply.  */
52066 #ifdef __cplusplus
52067 extern "C"
52068 #endif
52069 char getmsg ();
52070 /* The GNU C library defines this for functions which it implements
52071     to always fail with ENOSYS.  Some functions are actually named
52072     something starting with __ and the normal name is an alias.  */
52073 #if defined __stub_getmsg || defined __stub___getmsg
52074 choke me
52075 #endif
52076
52077 int
52078 main ()
52079 {
52080 return getmsg ();
52081   ;
52082   return 0;
52083 }
52084 _ACEOF
52085 rm -f conftest.$ac_objext conftest$ac_exeext
52086 if { (ac_try="$ac_link"
52087 case "(($ac_try" in
52088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52089   *) ac_try_echo=$ac_try;;
52090 esac
52091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52092   (eval "$ac_link") 2>conftest.er1
52093   ac_status=$?
52094   grep -v '^ *+' conftest.er1 >conftest.err
52095   rm -f conftest.er1
52096   cat conftest.err >&5
52097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52098   (exit $ac_status); } && {
52099          test -z "$ac_c_werror_flag" ||
52100          test ! -s conftest.err
52101        } && test -s conftest$ac_exeext &&
52102        $as_test_x conftest$ac_exeext; then
52103   ac_cv_func_getmsg=yes
52104 else
52105   echo "$as_me: failed program was:" >&5
52106 sed 's/^/| /' conftest.$ac_ext >&5
52107
52108         ac_cv_func_getmsg=no
52109 fi
52110
52111 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
52112       conftest$ac_exeext conftest.$ac_ext
52113 fi
52114 { echo "$as_me:$LINENO: result: $ac_cv_func_getmsg" >&5
52115 echo "${ECHO_T}$ac_cv_func_getmsg" >&6; }
52116
52117         if test "$ac_cv_func_getmsg" = "yes"; then
52118                 { echo "$as_me:$LINENO: checking if getmsg works" >&5
52119 echo $ECHO_N "checking if getmsg works... $ECHO_C" >&6; }
52120 if test "${ac_cv_func_getmsg_works+set}" = set; then
52121   echo $ECHO_N "(cached) $ECHO_C" >&6
52122 else
52123   if test "$cross_compiling" = yes; then
52124   ac_cv_func_getmsg_works=no
52125 else
52126   cat >conftest.$ac_ext <<_ACEOF
52127 /* confdefs.h.  */
52128 _ACEOF
52129 cat confdefs.h >>conftest.$ac_ext
52130 cat >>conftest.$ac_ext <<_ACEOF
52131 /* end confdefs.h.  */
52132
52133                         #include <stdio.h>
52134                         #include <errno.h>
52135
52136                         int main(int argc, char **argv)
52137                         {
52138                           int ret;
52139                           ret = getmsg(open("/dev/null", 0), NULL, NULL, NULL);
52140                           if(ret < 0 && errno == ENOSYS)
52141                             return 1;
52142                           return 0;
52143                         }
52144
52145 _ACEOF
52146 rm -f conftest$ac_exeext
52147 if { (ac_try="$ac_link"
52148 case "(($ac_try" in
52149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52150   *) ac_try_echo=$ac_try;;
52151 esac
52152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52153   (eval "$ac_link") 2>&5
52154   ac_status=$?
52155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52156   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
52157   { (case "(($ac_try" in
52158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52159   *) ac_try_echo=$ac_try;;
52160 esac
52161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52162   (eval "$ac_try") 2>&5
52163   ac_status=$?
52164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52165   (exit $ac_status); }; }; then
52166   ac_cv_func_getmsg_works=yes
52167 else
52168   echo "$as_me: program exited with status $ac_status" >&5
52169 echo "$as_me: failed program was:" >&5
52170 sed 's/^/| /' conftest.$ac_ext >&5
52171
52172 ( exit $ac_status )
52173 ac_cv_func_getmsg_works=no
52174 fi
52175 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
52176 fi
52177
52178
52179 fi
52180 { echo "$as_me:$LINENO: result: $ac_cv_func_getmsg_works" >&5
52181 echo "${ECHO_T}$ac_cv_func_getmsg_works" >&6; }
52182                 if test "$ac_cv_func_getmsg_works" = "yes"; then
52183
52184 cat >>confdefs.h <<\_ACEOF
52185 #define HAVE_GETMSG 1
52186 _ACEOF
52187
52188
52189 cat >>confdefs.h <<\_ACEOF
52190 #define STREAMSPTY 1
52191 _ACEOF
52192
52193                 fi
52194         fi
52195         ;;
52196 esac
52197
52198
52199
52200
52201
52202
52203
52204 # Extract the first word of "compile_et", so it can be a program name with args.
52205 set dummy compile_et; ac_word=$2
52206 { echo "$as_me:$LINENO: checking for $ac_word" >&5
52207 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
52208 if test "${ac_cv_prog_COMPILE_ET+set}" = set; then
52209   echo $ECHO_N "(cached) $ECHO_C" >&6
52210 else
52211   if test -n "$COMPILE_ET"; then
52212   ac_cv_prog_COMPILE_ET="$COMPILE_ET" # Let the user override the test.
52213 else
52214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
52215 for as_dir in $PATH
52216 do
52217   IFS=$as_save_IFS
52218   test -z "$as_dir" && as_dir=.
52219   for ac_exec_ext in '' $ac_executable_extensions; do
52220   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
52221     ac_cv_prog_COMPILE_ET="compile_et"
52222     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
52223     break 2
52224   fi
52225 done
52226 done
52227 IFS=$as_save_IFS
52228
52229 fi
52230 fi
52231 COMPILE_ET=$ac_cv_prog_COMPILE_ET
52232 if test -n "$COMPILE_ET"; then
52233   { echo "$as_me:$LINENO: result: $COMPILE_ET" >&5
52234 echo "${ECHO_T}$COMPILE_ET" >&6; }
52235 else
52236   { echo "$as_me:$LINENO: result: no" >&5
52237 echo "${ECHO_T}no" >&6; }
52238 fi
52239
52240
52241
52242 krb_cv_compile_et="no"
52243 krb_cv_com_err_need_r=""
52244 krb_cv_compile_et_cross=no
52245 if test "${COMPILE_ET}" = "compile_et"; then
52246
52247 { echo "$as_me:$LINENO: checking whether compile_et has the features we need" >&5
52248 echo $ECHO_N "checking whether compile_et has the features we need... $ECHO_C" >&6; }
52249 cat > conftest_et.et <<'EOF'
52250 error_table test conf
52251 prefix CONFTEST
52252 index 1
52253 error_code CODE1, "CODE1"
52254 index 128
52255 error_code CODE2, "CODE2"
52256 end
52257 EOF
52258 if ${COMPILE_ET} conftest_et.et >/dev/null 2>&1; then
52259     save_CPPFLAGS="${CPPFLAGS}"
52260   if test -d "/usr/include/et"; then
52261     CPPFLAGS="-I/usr/include/et ${CPPFLAGS}"
52262   fi
52263     if test "$cross_compiling" = yes; then
52264   krb_cv_compile_et="yes" krb_cv_compile_et_cross=yes
52265 else
52266   cat >conftest.$ac_ext <<_ACEOF
52267
52268 #include <com_err.h>
52269 #include <string.h>
52270 #include "conftest_et.h"
52271 int main(int argc, char **argv){
52272 #ifndef ERROR_TABLE_BASE_conf
52273 #error compile_et does not handle error_table N M
52274 #endif
52275 return (CONFTEST_CODE2 - CONFTEST_CODE1) != 127;}
52276
52277 _ACEOF
52278 rm -f conftest$ac_exeext
52279 if { (ac_try="$ac_link"
52280 case "(($ac_try" in
52281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52282   *) ac_try_echo=$ac_try;;
52283 esac
52284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52285   (eval "$ac_link") 2>&5
52286   ac_status=$?
52287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52288   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
52289   { (case "(($ac_try" in
52290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52291   *) ac_try_echo=$ac_try;;
52292 esac
52293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52294   (eval "$ac_try") 2>&5
52295   ac_status=$?
52296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52297   (exit $ac_status); }; }; then
52298   krb_cv_compile_et="yes"
52299 else
52300   echo "$as_me: program exited with status $ac_status" >&5
52301 echo "$as_me: failed program was:" >&5
52302 sed 's/^/| /' conftest.$ac_ext >&5
52303
52304 ( exit $ac_status )
52305 CPPFLAGS="${save_CPPFLAGS}"
52306 fi
52307 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
52308 fi
52309
52310
52311 fi
52312 { echo "$as_me:$LINENO: result: ${krb_cv_compile_et}" >&5
52313 echo "${ECHO_T}${krb_cv_compile_et}" >&6; }
52314 if test "${krb_cv_compile_et}" = "yes" -a "${krb_cv_compile_et_cross}" = no; then
52315   { echo "$as_me:$LINENO: checking for if com_err generates a initialize_conf_error_table_r" >&5
52316 echo $ECHO_N "checking for if com_err generates a initialize_conf_error_table_r... $ECHO_C" >&6; }
52317   cat >conftest.$ac_ext <<_ACEOF
52318 /* confdefs.h.  */
52319 _ACEOF
52320 cat confdefs.h >>conftest.$ac_ext
52321 cat >>conftest.$ac_ext <<_ACEOF
52322 /* end confdefs.h.  */
52323 #include "conftest_et.h"
52324 _ACEOF
52325 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
52326   $EGREP "initialize_conf_error_table_r.*struct et_list" >/dev/null 2>&1; then
52327   krb_cv_com_err_need_r="ok"
52328 fi
52329 rm -f conftest*
52330
52331   if test X"$krb_cv_com_err_need_r" = X ; then
52332     { echo "$as_me:$LINENO: result: no" >&5
52333 echo "${ECHO_T}no" >&6; }
52334     krb_cv_compile_et=no
52335   else
52336     { echo "$as_me:$LINENO: result: yes" >&5
52337 echo "${ECHO_T}yes" >&6; }
52338   fi
52339 fi
52340 rm -fr conftest*
52341 fi
52342
52343 if test "${krb_cv_compile_et_cross}" = yes ; then
52344   krb_cv_com_err="cross"
52345 elif test "${krb_cv_compile_et}" = "yes"; then
52346     krb_cv_save_LIBS="${LIBS}"
52347   LIBS="${LIBS} -lcom_err"
52348   { echo "$as_me:$LINENO: checking for com_err" >&5
52349 echo $ECHO_N "checking for com_err... $ECHO_C" >&6; }
52350   cat >conftest.$ac_ext <<_ACEOF
52351 /* confdefs.h.  */
52352 _ACEOF
52353 cat confdefs.h >>conftest.$ac_ext
52354 cat >>conftest.$ac_ext <<_ACEOF
52355 /* end confdefs.h.  */
52356 #include <com_err.h>
52357 int
52358 main ()
52359 {
52360
52361     const char *p;
52362     p = error_message(0);
52363     initialize_error_table_r(0,0,0,0);
52364
52365   ;
52366   return 0;
52367 }
52368 _ACEOF
52369 rm -f conftest.$ac_objext conftest$ac_exeext
52370 if { (ac_try="$ac_link"
52371 case "(($ac_try" in
52372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52373   *) ac_try_echo=$ac_try;;
52374 esac
52375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52376   (eval "$ac_link") 2>conftest.er1
52377   ac_status=$?
52378   grep -v '^ *+' conftest.er1 >conftest.err
52379   rm -f conftest.er1
52380   cat conftest.err >&5
52381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52382   (exit $ac_status); } && {
52383          test -z "$ac_c_werror_flag" ||
52384          test ! -s conftest.err
52385        } && test -s conftest$ac_exeext &&
52386        $as_test_x conftest$ac_exeext; then
52387   krb_cv_com_err="yes"
52388 else
52389   echo "$as_me: failed program was:" >&5
52390 sed 's/^/| /' conftest.$ac_ext >&5
52391
52392         krb_cv_com_err="no"; CPPFLAGS="${save_CPPFLAGS}"
52393 fi
52394
52395 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
52396       conftest$ac_exeext conftest.$ac_ext
52397   { echo "$as_me:$LINENO: result: ${krb_cv_com_err}" >&5
52398 echo "${ECHO_T}${krb_cv_com_err}" >&6; }
52399   LIBS="${krb_cv_save_LIBS}"
52400 else
52401     krb_cv_com_err="no"
52402 fi
52403
52404 if test "${krb_cv_com_err}" = "yes"; then
52405     DIR_com_err=""
52406     LIB_com_err="-lcom_err"
52407     LIB_com_err_a=""
52408     LIB_com_err_so=""
52409     { echo "$as_me:$LINENO: Using the already-installed com_err" >&5
52410 echo "$as_me: Using the already-installed com_err" >&6;}
52411     localcomerr=no
52412 elif test "${krb_cv_com_err}" = "cross"; then
52413     DIR_com_err="com_err"
52414     LIB_com_err="\$(top_builddir)/lib/com_err/libcom_err.la"
52415     LIB_com_err_a="\$(top_builddir)/lib/com_err/.libs/libcom_err.a"
52416     LIB_com_err_so="\$(top_builddir)/lib/com_err/.libs/libcom_err.so"
52417     { echo "$as_me:$LINENO: Using our own com_err with toolchain compile_et" >&5
52418 echo "$as_me: Using our own com_err with toolchain compile_et" >&6;}
52419     localcomerr=yes
52420 else
52421     COMPILE_ET="\$(top_builddir)/lib/com_err/compile_et"
52422     DIR_com_err="com_err"
52423     LIB_com_err="\$(top_builddir)/lib/com_err/libcom_err.la"
52424     LIB_com_err_a="\$(top_builddir)/lib/com_err/.libs/libcom_err.a"
52425     LIB_com_err_so="\$(top_builddir)/lib/com_err/.libs/libcom_err.so"
52426     { echo "$as_me:$LINENO: Using our own com_err" >&5
52427 echo "$as_me: Using our own com_err" >&6;}
52428     localcomerr=yes
52429 fi
52430  if test "$localcomerr" = yes; then
52431   COM_ERR_TRUE=
52432   COM_ERR_FALSE='#'
52433 else
52434   COM_ERR_TRUE='#'
52435   COM_ERR_FALSE=
52436 fi
52437
52438
52439
52440
52441
52442
52443
52444
52445 { echo "$as_me:$LINENO: checking which authentication modules should be built" >&5
52446 echo $ECHO_N "checking which authentication modules should be built... $ECHO_C" >&6; }
52447
52448 z='sia afskauthlib'
52449 LIB_AUTH_SUBDIRS=
52450 for i in $z; do
52451 case $i in
52452 sia)
52453 if test "$ac_cv_header_siad_h" = yes; then
52454         LIB_AUTH_SUBDIRS="$LIB_AUTH_SUBDIRS sia"
52455 fi
52456 ;;
52457 pam)
52458 case "${host}" in
52459 *-*-freebsd*)   ac_cv_want_pam_krb4=no ;;
52460 *)              ac_cv_want_pam_krb4=yes ;;
52461 esac
52462
52463 if test "$ac_cv_want_pam_krb4" = yes -a \
52464     "$ac_cv_header_security_pam_modules_h" = yes -a \
52465     "$enable_shared" = yes; then
52466         LIB_AUTH_SUBDIRS="$LIB_AUTH_SUBDIRS pam"
52467 fi
52468 ;;
52469 afskauthlib)
52470 case "${host}" in
52471 *-*-irix[56]*) LIB_AUTH_SUBDIRS="$LIB_AUTH_SUBDIRS afskauthlib" ;;
52472 esac
52473 ;;
52474 esac
52475 done
52476 if test "$LIB_AUTH_SUBDIRS"; then
52477         { echo "$as_me:$LINENO: result: $LIB_AUTH_SUBDIRS" >&5
52478 echo "${ECHO_T}$LIB_AUTH_SUBDIRS" >&6; }
52479 else
52480         { echo "$as_me:$LINENO: result: none" >&5
52481 echo "${ECHO_T}none" >&6; }
52482 fi
52483
52484
52485
52486
52487 # This is done by AC_OUTPUT but we need the result here.
52488 test "x$prefix" = xNONE && prefix=$ac_default_prefix
52489 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
52490
52491
52492         x="${bindir}"
52493         eval y="$x"
52494         while test "x$y" != "x$x"; do
52495                 x="$y"
52496                 eval y="$x"
52497         done
52498
52499 cat >>confdefs.h <<_ACEOF
52500 #define BINDIR "$x"
52501 _ACEOF
52502
52503         x="${libdir}"
52504         eval y="$x"
52505         while test "x$y" != "x$x"; do
52506                 x="$y"
52507                 eval y="$x"
52508         done
52509
52510 cat >>confdefs.h <<_ACEOF
52511 #define LIBDIR "$x"
52512 _ACEOF
52513
52514         x="${libexecdir}"
52515         eval y="$x"
52516         while test "x$y" != "x$x"; do
52517                 x="$y"
52518                 eval y="$x"
52519         done
52520
52521 cat >>confdefs.h <<_ACEOF
52522 #define LIBEXECDIR "$x"
52523 _ACEOF
52524
52525         x="${localstatedir}"
52526         eval y="$x"
52527         while test "x$y" != "x$x"; do
52528                 x="$y"
52529                 eval y="$x"
52530         done
52531
52532 cat >>confdefs.h <<_ACEOF
52533 #define LOCALSTATEDIR "$x"
52534 _ACEOF
52535
52536         x="${sbindir}"
52537         eval y="$x"
52538         while test "x$y" != "x$x"; do
52539                 x="$y"
52540                 eval y="$x"
52541         done
52542
52543 cat >>confdefs.h <<_ACEOF
52544 #define SBINDIR "$x"
52545 _ACEOF
52546
52547         x="${sysconfdir}"
52548         eval y="$x"
52549         while test "x$y" != "x$x"; do
52550                 x="$y"
52551                 eval y="$x"
52552         done
52553
52554 cat >>confdefs.h <<_ACEOF
52555 #define SYSCONFDIR "$x"
52556 _ACEOF
52557
52558
52559
52560
52561
52562 # Check whether --enable-developer was given.
52563 if test "${enable_developer+set}" = set; then
52564   enableval=$enable_developer;
52565 fi
52566
52567 if test "X$enable_developer" = Xyes; then
52568     dwflags="-Werror"
52569 fi
52570
52571 WFLAGS_NOUNUSED=""
52572 WFLAGS_NOIMPLICITINT=""
52573 if test -z "$WFLAGS" -a "$GCC" = "yes"; then
52574   # -Wno-implicit-int for broken X11 headers
52575   # leave these out for now:
52576   #   -Wcast-align doesn't work well on alpha osf/1
52577   #   -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast
52578   #   -Wmissing-declarations -Wnested-externs
52579   WFLAGS="-Wall -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast -Wmissing-declarations -Wnested-externs $dwflags"
52580   WFLAGS_NOUNUSED="-Wno-unused"
52581   WFLAGS_NOIMPLICITINT="-Wno-implicit-int"
52582 fi
52583
52584
52585
52586
52587
52588
52589 ac_config_files="$ac_config_files Makefile etc/Makefile include/Makefile include/gssapi/Makefile include/hcrypto/Makefile include/kadm5/Makefile lib/Makefile lib/45/Makefile lib/auth/Makefile lib/auth/afskauthlib/Makefile lib/auth/pam/Makefile lib/auth/sia/Makefile lib/asn1/Makefile lib/com_err/Makefile lib/hcrypto/Makefile lib/editline/Makefile lib/hx509/Makefile lib/gssapi/Makefile lib/ntlm/Makefile lib/hdb/Makefile lib/kadm5/Makefile lib/kafs/Makefile lib/kdfs/Makefile lib/krb5/Makefile lib/otp/Makefile lib/roken/Makefile lib/sl/Makefile lib/vers/Makefile kuser/Makefile kpasswd/Makefile kadmin/Makefile admin/Makefile kcm/Makefile kdc/Makefile appl/Makefile appl/afsutil/Makefile appl/ftp/Makefile appl/ftp/common/Makefile appl/ftp/ftp/Makefile appl/ftp/ftpd/Makefile appl/gssmask/Makefile appl/kx/Makefile appl/login/Makefile appl/otp/Makefile appl/popper/Makefile appl/push/Makefile appl/rsh/Makefile appl/rcp/Makefile appl/su/Makefile appl/xnlock/Makefile appl/telnet/Makefile appl/telnet/libtelnet/Makefile appl/telnet/telnet/Makefile appl/telnet/telnetd/Makefile appl/test/Makefile appl/kf/Makefile appl/dceutils/Makefile tests/Makefile tests/can/Makefile tests/db/Makefile tests/kdc/Makefile tests/ldap/Makefile tests/gss/Makefile tests/java/Makefile tests/plugin/Makefile packages/Makefile packages/mac/Makefile packages/debian/Makefile doc/Makefile tools/Makefile"
52590
52591
52592 cat >confcache <<\_ACEOF
52593 # This file is a shell script that caches the results of configure
52594 # tests run on this system so they can be shared between configure
52595 # scripts and configure runs, see configure's option --config-cache.
52596 # It is not useful on other systems.  If it contains results you don't
52597 # want to keep, you may remove or edit it.
52598 #
52599 # config.status only pays attention to the cache file if you give it
52600 # the --recheck option to rerun configure.
52601 #
52602 # `ac_cv_env_foo' variables (set or unset) will be overridden when
52603 # loading this file, other *unset* `ac_cv_foo' will be assigned the
52604 # following values.
52605
52606 _ACEOF
52607
52608 # The following way of writing the cache mishandles newlines in values,
52609 # but we know of no workaround that is simple, portable, and efficient.
52610 # So, we kill variables containing newlines.
52611 # Ultrix sh set writes to stderr and can't be redirected directly,
52612 # and sets the high bit in the cache file unless we assign to the vars.
52613 (
52614   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
52615     eval ac_val=\$$ac_var
52616     case $ac_val in #(
52617     *${as_nl}*)
52618       case $ac_var in #(
52619       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
52620 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
52621       esac
52622       case $ac_var in #(
52623       _ | IFS | as_nl) ;; #(
52624       *) $as_unset $ac_var ;;
52625       esac ;;
52626     esac
52627   done
52628
52629   (set) 2>&1 |
52630     case $as_nl`(ac_space=' '; set) 2>&1` in #(
52631     *${as_nl}ac_space=\ *)
52632       # `set' does not quote correctly, so add quotes (double-quote
52633       # substitution turns \\\\ into \\, and sed turns \\ into \).
52634       sed -n \
52635         "s/'/'\\\\''/g;
52636           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
52637       ;; #(
52638     *)
52639       # `set' quotes correctly as required by POSIX, so do not add quotes.
52640       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
52641       ;;
52642     esac |
52643     sort
52644 ) |
52645   sed '
52646      /^ac_cv_env_/b end
52647      t clear
52648      :clear
52649      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
52650      t end
52651      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
52652      :end' >>confcache
52653 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
52654   if test -w "$cache_file"; then
52655     test "x$cache_file" != "x/dev/null" &&
52656       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
52657 echo "$as_me: updating cache $cache_file" >&6;}
52658     cat confcache >$cache_file
52659   else
52660     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
52661 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
52662   fi
52663 fi
52664 rm -f confcache
52665
52666 test "x$prefix" = xNONE && prefix=$ac_default_prefix
52667 # Let make expand exec_prefix.
52668 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
52669
52670 DEFS=-DHAVE_CONFIG_H
52671
52672 ac_libobjs=
52673 ac_ltlibobjs=
52674 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
52675   # 1. Remove the extension, and $U if already installed.
52676   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
52677   ac_i=`echo "$ac_i" | sed "$ac_script"`
52678   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
52679   #    will be set to the directory where LIBOBJS objects are built.
52680   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
52681   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
52682 done
52683 LIBOBJS=$ac_libobjs
52684
52685 LTLIBOBJS=$ac_ltlibobjs
52686
52687
52688 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
52689   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
52690 Usually this means the macro was only invoked conditionally." >&5
52691 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
52692 Usually this means the macro was only invoked conditionally." >&2;}
52693    { (exit 1); exit 1; }; }
52694 fi
52695 if test -z "${ENABLE_SHARED_TRUE}" && test -z "${ENABLE_SHARED_FALSE}"; then
52696   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SHARED\" was never defined.
52697 Usually this means the macro was only invoked conditionally." >&5
52698 echo "$as_me: error: conditional \"ENABLE_SHARED\" was never defined.
52699 Usually this means the macro was only invoked conditionally." >&2;}
52700    { (exit 1); exit 1; }; }
52701 fi
52702 if test -z "${versionscript_TRUE}" && test -z "${versionscript_FALSE}"; then
52703   { { echo "$as_me:$LINENO: error: conditional \"versionscript\" was never defined.
52704 Usually this means the macro was only invoked conditionally." >&5
52705 echo "$as_me: error: conditional \"versionscript\" was never defined.
52706 Usually this means the macro was only invoked conditionally." >&2;}
52707    { (exit 1); exit 1; }; }
52708 fi
52709 if test -z "${OPENLDAP_MODULE_TRUE}" && test -z "${OPENLDAP_MODULE_FALSE}"; then
52710   { { echo "$as_me:$LINENO: error: conditional \"OPENLDAP_MODULE\" was never defined.
52711 Usually this means the macro was only invoked conditionally." >&5
52712 echo "$as_me: error: conditional \"OPENLDAP_MODULE\" was never defined.
52713 Usually this means the macro was only invoked conditionally." >&2;}
52714    { (exit 1); exit 1; }; }
52715 fi
52716 if test -z "${PKINIT_TRUE}" && test -z "${PKINIT_FALSE}"; then
52717   { { echo "$as_me:$LINENO: error: conditional \"PKINIT\" was never defined.
52718 Usually this means the macro was only invoked conditionally." >&5
52719 echo "$as_me: error: conditional \"PKINIT\" was never defined.
52720 Usually this means the macro was only invoked conditionally." >&2;}
52721    { (exit 1); exit 1; }; }
52722 fi
52723 if test -z "${KRB4_TRUE}" && test -z "${KRB4_FALSE}"; then
52724   { { echo "$as_me:$LINENO: error: conditional \"KRB4\" was never defined.
52725 Usually this means the macro was only invoked conditionally." >&5
52726 echo "$as_me: error: conditional \"KRB4\" was never defined.
52727 Usually this means the macro was only invoked conditionally." >&2;}
52728    { (exit 1); exit 1; }; }
52729 fi
52730 if test -z "${KRB5_TRUE}" && test -z "${KRB5_FALSE}"; then
52731   { { echo "$as_me:$LINENO: error: conditional \"KRB5\" was never defined.
52732 Usually this means the macro was only invoked conditionally." >&5
52733 echo "$as_me: error: conditional \"KRB5\" was never defined.
52734 Usually this means the macro was only invoked conditionally." >&2;}
52735    { (exit 1); exit 1; }; }
52736 fi
52737 if test -z "${do_roken_rename_TRUE}" && test -z "${do_roken_rename_FALSE}"; then
52738   { { echo "$as_me:$LINENO: error: conditional \"do_roken_rename\" was never defined.
52739 Usually this means the macro was only invoked conditionally." >&5
52740 echo "$as_me: error: conditional \"do_roken_rename\" was never defined.
52741 Usually this means the macro was only invoked conditionally." >&2;}
52742    { (exit 1); exit 1; }; }
52743 fi
52744 if test -z "${HAVE_OPENSSL_TRUE}" && test -z "${HAVE_OPENSSL_FALSE}"; then
52745   { { echo "$as_me:$LINENO: error: conditional \"HAVE_OPENSSL\" was never defined.
52746 Usually this means the macro was only invoked conditionally." >&5
52747 echo "$as_me: error: conditional \"HAVE_OPENSSL\" was never defined.
52748 Usually this means the macro was only invoked conditionally." >&2;}
52749    { (exit 1); exit 1; }; }
52750 fi
52751 if test -z "${DCE_TRUE}" && test -z "${DCE_FALSE}"; then
52752   { { echo "$as_me:$LINENO: error: conditional \"DCE\" was never defined.
52753 Usually this means the macro was only invoked conditionally." >&5
52754 echo "$as_me: error: conditional \"DCE\" was never defined.
52755 Usually this means the macro was only invoked conditionally." >&2;}
52756    { (exit 1); exit 1; }; }
52757 fi
52758 if test -z "${HAVE_DB1_TRUE}" && test -z "${HAVE_DB1_FALSE}"; then
52759   { { echo "$as_me:$LINENO: error: conditional \"HAVE_DB1\" was never defined.
52760 Usually this means the macro was only invoked conditionally." >&5
52761 echo "$as_me: error: conditional \"HAVE_DB1\" was never defined.
52762 Usually this means the macro was only invoked conditionally." >&2;}
52763    { (exit 1); exit 1; }; }
52764 fi
52765 if test -z "${HAVE_DB3_TRUE}" && test -z "${HAVE_DB3_FALSE}"; then
52766   { { echo "$as_me:$LINENO: error: conditional \"HAVE_DB3\" was never defined.
52767 Usually this means the macro was only invoked conditionally." >&5
52768 echo "$as_me: error: conditional \"HAVE_DB3\" was never defined.
52769 Usually this means the macro was only invoked conditionally." >&2;}
52770    { (exit 1); exit 1; }; }
52771 fi
52772 if test -z "${HAVE_NDBM_TRUE}" && test -z "${HAVE_NDBM_FALSE}"; then
52773   { { echo "$as_me:$LINENO: error: conditional \"HAVE_NDBM\" was never defined.
52774 Usually this means the macro was only invoked conditionally." >&5
52775 echo "$as_me: error: conditional \"HAVE_NDBM\" was never defined.
52776 Usually this means the macro was only invoked conditionally." >&2;}
52777    { (exit 1); exit 1; }; }
52778 fi
52779 if test -z "${have_err_h_TRUE}" && test -z "${have_err_h_FALSE}"; then
52780   { { echo "$as_me:$LINENO: error: conditional \"have_err_h\" was never defined.
52781 Usually this means the macro was only invoked conditionally." >&5
52782 echo "$as_me: error: conditional \"have_err_h\" was never defined.
52783 Usually this means the macro was only invoked conditionally." >&2;}
52784    { (exit 1); exit 1; }; }
52785 fi
52786 if test -z "${have_ifaddrs_h_TRUE}" && test -z "${have_ifaddrs_h_FALSE}"; then
52787   { { echo "$as_me:$LINENO: error: conditional \"have_ifaddrs_h\" was never defined.
52788 Usually this means the macro was only invoked conditionally." >&5
52789 echo "$as_me: error: conditional \"have_ifaddrs_h\" was never defined.
52790 Usually this means the macro was only invoked conditionally." >&2;}
52791    { (exit 1); exit 1; }; }
52792 fi
52793 if test -z "${have_vis_h_TRUE}" && test -z "${have_vis_h_FALSE}"; then
52794   { { echo "$as_me:$LINENO: error: conditional \"have_vis_h\" was never defined.
52795 Usually this means the macro was only invoked conditionally." >&5
52796 echo "$as_me: error: conditional \"have_vis_h\" was never defined.
52797 Usually this means the macro was only invoked conditionally." >&2;}
52798    { (exit 1); exit 1; }; }
52799 fi
52800 if test -z "${have_glob_h_TRUE}" && test -z "${have_glob_h_FALSE}"; then
52801   { { echo "$as_me:$LINENO: error: conditional \"have_glob_h\" was never defined.
52802 Usually this means the macro was only invoked conditionally." >&5
52803 echo "$as_me: error: conditional \"have_glob_h\" was never defined.
52804 Usually this means the macro was only invoked conditionally." >&2;}
52805    { (exit 1); exit 1; }; }
52806 fi
52807 if test -z "${have_cgetent_TRUE}" && test -z "${have_cgetent_FALSE}"; then
52808   { { echo "$as_me:$LINENO: error: conditional \"have_cgetent\" was never defined.
52809 Usually this means the macro was only invoked conditionally." >&5
52810 echo "$as_me: error: conditional \"have_cgetent\" was never defined.
52811 Usually this means the macro was only invoked conditionally." >&2;}
52812    { (exit 1); exit 1; }; }
52813 fi
52814 if test -z "${have_fnmatch_h_TRUE}" && test -z "${have_fnmatch_h_FALSE}"; then
52815   { { echo "$as_me:$LINENO: error: conditional \"have_fnmatch_h\" was never defined.
52816 Usually this means the macro was only invoked conditionally." >&5
52817 echo "$as_me: error: conditional \"have_fnmatch_h\" was never defined.
52818 Usually this means the macro was only invoked conditionally." >&2;}
52819    { (exit 1); exit 1; }; }
52820 fi
52821 if test -z "${have_socket_wrapper_TRUE}" && test -z "${have_socket_wrapper_FALSE}"; then
52822   { { echo "$as_me:$LINENO: error: conditional \"have_socket_wrapper\" was never defined.
52823 Usually this means the macro was only invoked conditionally." >&5
52824 echo "$as_me: error: conditional \"have_socket_wrapper\" was never defined.
52825 Usually this means the macro was only invoked conditionally." >&2;}
52826    { (exit 1); exit 1; }; }
52827 fi
52828 if test -z "${OTP_TRUE}" && test -z "${OTP_FALSE}"; then
52829   { { echo "$as_me:$LINENO: error: conditional \"OTP\" was never defined.
52830 Usually this means the macro was only invoked conditionally." >&5
52831 echo "$as_me: error: conditional \"OTP\" was never defined.
52832 Usually this means the macro was only invoked conditionally." >&2;}
52833    { (exit 1); exit 1; }; }
52834 fi
52835 if test -z "${CATMAN_TRUE}" && test -z "${CATMAN_FALSE}"; then
52836   { { echo "$as_me:$LINENO: error: conditional \"CATMAN\" was never defined.
52837 Usually this means the macro was only invoked conditionally." >&5
52838 echo "$as_me: error: conditional \"CATMAN\" was never defined.
52839 Usually this means the macro was only invoked conditionally." >&2;}
52840    { (exit 1); exit 1; }; }
52841 fi
52842 if test -z "${AIX_TRUE}" && test -z "${AIX_FALSE}"; then
52843   { { echo "$as_me:$LINENO: error: conditional \"AIX\" was never defined.
52844 Usually this means the macro was only invoked conditionally." >&5
52845 echo "$as_me: error: conditional \"AIX\" was never defined.
52846 Usually this means the macro was only invoked conditionally." >&2;}
52847    { (exit 1); exit 1; }; }
52848 fi
52849 if test -z "${AIX4_TRUE}" && test -z "${AIX4_FALSE}"; then
52850   { { echo "$as_me:$LINENO: error: conditional \"AIX4\" was never defined.
52851 Usually this means the macro was only invoked conditionally." >&5
52852 echo "$as_me: error: conditional \"AIX4\" was never defined.
52853 Usually this means the macro was only invoked conditionally." >&2;}
52854    { (exit 1); exit 1; }; }
52855 fi
52856 if test -z "${HAVE_DLOPEN_TRUE}" && test -z "${HAVE_DLOPEN_FALSE}"; then
52857   { { echo "$as_me:$LINENO: error: conditional \"HAVE_DLOPEN\" was never defined.
52858 Usually this means the macro was only invoked conditionally." >&5
52859 echo "$as_me: error: conditional \"HAVE_DLOPEN\" was never defined.
52860 Usually this means the macro was only invoked conditionally." >&2;}
52861    { (exit 1); exit 1; }; }
52862 fi
52863 if test -z "${AIX_DYNAMIC_AFS_TRUE}" && test -z "${AIX_DYNAMIC_AFS_FALSE}"; then
52864   { { echo "$as_me:$LINENO: error: conditional \"AIX_DYNAMIC_AFS\" was never defined.
52865 Usually this means the macro was only invoked conditionally." >&5
52866 echo "$as_me: error: conditional \"AIX_DYNAMIC_AFS\" was never defined.
52867 Usually this means the macro was only invoked conditionally." >&2;}
52868    { (exit 1); exit 1; }; }
52869 fi
52870 if test -z "${IRIX_TRUE}" && test -z "${IRIX_FALSE}"; then
52871   { { echo "$as_me:$LINENO: error: conditional \"IRIX\" was never defined.
52872 Usually this means the macro was only invoked conditionally." >&5
52873 echo "$as_me: error: conditional \"IRIX\" was never defined.
52874 Usually this means the macro was only invoked conditionally." >&2;}
52875    { (exit 1); exit 1; }; }
52876 fi
52877 if test -z "${HAVE_X_TRUE}" && test -z "${HAVE_X_FALSE}"; then
52878   { { echo "$as_me:$LINENO: error: conditional \"HAVE_X\" was never defined.
52879 Usually this means the macro was only invoked conditionally." >&5
52880 echo "$as_me: error: conditional \"HAVE_X\" was never defined.
52881 Usually this means the macro was only invoked conditionally." >&2;}
52882    { (exit 1); exit 1; }; }
52883 fi
52884 if test -z "${NEED_WRITEAUTH_TRUE}" && test -z "${NEED_WRITEAUTH_FALSE}"; then
52885   { { echo "$as_me:$LINENO: error: conditional \"NEED_WRITEAUTH\" was never defined.
52886 Usually this means the macro was only invoked conditionally." >&5
52887 echo "$as_me: error: conditional \"NEED_WRITEAUTH\" was never defined.
52888 Usually this means the macro was only invoked conditionally." >&2;}
52889    { (exit 1); exit 1; }; }
52890 fi
52891 if test -z "${KCM_TRUE}" && test -z "${KCM_FALSE}"; then
52892   { { echo "$as_me:$LINENO: error: conditional \"KCM\" was never defined.
52893 Usually this means the macro was only invoked conditionally." >&5
52894 echo "$as_me: error: conditional \"KCM\" was never defined.
52895 Usually this means the macro was only invoked conditionally." >&2;}
52896    { (exit 1); exit 1; }; }
52897 fi
52898 if test -z "${FRAMEWORK_SECURITY_TRUE}" && test -z "${FRAMEWORK_SECURITY_FALSE}"; then
52899   { { echo "$as_me:$LINENO: error: conditional \"FRAMEWORK_SECURITY\" was never defined.
52900 Usually this means the macro was only invoked conditionally." >&5
52901 echo "$as_me: error: conditional \"FRAMEWORK_SECURITY\" was never defined.
52902 Usually this means the macro was only invoked conditionally." >&2;}
52903    { (exit 1); exit 1; }; }
52904 fi
52905 if test -z "${el_compat_TRUE}" && test -z "${el_compat_FALSE}"; then
52906   { { echo "$as_me:$LINENO: error: conditional \"el_compat\" was never defined.
52907 Usually this means the macro was only invoked conditionally." >&5
52908 echo "$as_me: error: conditional \"el_compat\" was never defined.
52909 Usually this means the macro was only invoked conditionally." >&2;}
52910    { (exit 1); exit 1; }; }
52911 fi
52912 if test -z "${COM_ERR_TRUE}" && test -z "${COM_ERR_FALSE}"; then
52913   { { echo "$as_me:$LINENO: error: conditional \"COM_ERR\" was never defined.
52914 Usually this means the macro was only invoked conditionally." >&5
52915 echo "$as_me: error: conditional \"COM_ERR\" was never defined.
52916 Usually this means the macro was only invoked conditionally." >&2;}
52917    { (exit 1); exit 1; }; }
52918 fi
52919
52920 : ${CONFIG_STATUS=./config.status}
52921 ac_clean_files_save=$ac_clean_files
52922 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
52923 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
52924 echo "$as_me: creating $CONFIG_STATUS" >&6;}
52925 cat >$CONFIG_STATUS <<_ACEOF
52926 #! $SHELL
52927 # Generated by $as_me.
52928 # Run this file to recreate the current configuration.
52929 # Compiler output produced by configure, useful for debugging
52930 # configure, is in config.log if it exists.
52931
52932 debug=false
52933 ac_cs_recheck=false
52934 ac_cs_silent=false
52935 SHELL=\${CONFIG_SHELL-$SHELL}
52936 _ACEOF
52937
52938 cat >>$CONFIG_STATUS <<\_ACEOF
52939 ## --------------------- ##
52940 ## M4sh Initialization.  ##
52941 ## --------------------- ##
52942
52943 # Be more Bourne compatible
52944 DUALCASE=1; export DUALCASE # for MKS sh
52945 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
52946   emulate sh
52947   NULLCMD=:
52948   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
52949   # is contrary to our usage.  Disable this feature.
52950   alias -g '${1+"$@"}'='"$@"'
52951   setopt NO_GLOB_SUBST
52952 else
52953   case `(set -o) 2>/dev/null` in
52954   *posix*) set -o posix ;;
52955 esac
52956
52957 fi
52958
52959
52960
52961
52962 # PATH needs CR
52963 # Avoid depending upon Character Ranges.
52964 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
52965 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
52966 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
52967 as_cr_digits='0123456789'
52968 as_cr_alnum=$as_cr_Letters$as_cr_digits
52969
52970 # The user is always right.
52971 if test "${PATH_SEPARATOR+set}" != set; then
52972   echo "#! /bin/sh" >conf$$.sh
52973   echo  "exit 0"   >>conf$$.sh
52974   chmod +x conf$$.sh
52975   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
52976     PATH_SEPARATOR=';'
52977   else
52978     PATH_SEPARATOR=:
52979   fi
52980   rm -f conf$$.sh
52981 fi
52982
52983 # Support unset when possible.
52984 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
52985   as_unset=unset
52986 else
52987   as_unset=false
52988 fi
52989
52990
52991 # IFS
52992 # We need space, tab and new line, in precisely that order.  Quoting is
52993 # there to prevent editors from complaining about space-tab.
52994 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
52995 # splitting by setting IFS to empty value.)
52996 as_nl='
52997 '
52998 IFS=" ""        $as_nl"
52999
53000 # Find who we are.  Look in the path if we contain no directory separator.
53001 case $0 in
53002   *[\\/]* ) as_myself=$0 ;;
53003   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
53004 for as_dir in $PATH
53005 do
53006   IFS=$as_save_IFS
53007   test -z "$as_dir" && as_dir=.
53008   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
53009 done
53010 IFS=$as_save_IFS
53011
53012      ;;
53013 esac
53014 # We did not find ourselves, most probably we were run as `sh COMMAND'
53015 # in which case we are not to be found in the path.
53016 if test "x$as_myself" = x; then
53017   as_myself=$0
53018 fi
53019 if test ! -f "$as_myself"; then
53020   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
53021   { (exit 1); exit 1; }
53022 fi
53023
53024 # Work around bugs in pre-3.0 UWIN ksh.
53025 for as_var in ENV MAIL MAILPATH
53026 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
53027 done
53028 PS1='$ '
53029 PS2='> '
53030 PS4='+ '
53031
53032 # NLS nuisances.
53033 for as_var in \
53034   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
53035   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
53036   LC_TELEPHONE LC_TIME
53037 do
53038   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53039     eval $as_var=C; export $as_var
53040   else
53041     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
53042   fi
53043 done
53044
53045 # Required to use basename.
53046 if expr a : '\(a\)' >/dev/null 2>&1 &&
53047    test "X`expr 00001 : '.*\(...\)'`" = X001; then
53048   as_expr=expr
53049 else
53050   as_expr=false
53051 fi
53052
53053 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
53054   as_basename=basename
53055 else
53056   as_basename=false
53057 fi
53058
53059
53060 # Name of the executable.
53061 as_me=`$as_basename -- "$0" ||
53062 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
53063          X"$0" : 'X\(//\)$' \| \
53064          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
53065 echo X/"$0" |
53066     sed '/^.*\/\([^/][^/]*\)\/*$/{
53067             s//\1/
53068             q
53069           }
53070           /^X\/\(\/\/\)$/{
53071             s//\1/
53072             q
53073           }
53074           /^X\/\(\/\).*/{
53075             s//\1/
53076             q
53077           }
53078           s/.*/./; q'`
53079
53080 # CDPATH.
53081 $as_unset CDPATH
53082
53083
53084
53085   as_lineno_1=$LINENO
53086   as_lineno_2=$LINENO
53087   test "x$as_lineno_1" != "x$as_lineno_2" &&
53088   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
53089
53090   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
53091   # uniformly replaced by the line number.  The first 'sed' inserts a
53092   # line-number line after each line using $LINENO; the second 'sed'
53093   # does the real work.  The second script uses 'N' to pair each
53094   # line-number line with the line containing $LINENO, and appends
53095   # trailing '-' during substitution so that $LINENO is not a special
53096   # case at line end.
53097   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
53098   # scripts with optimization help from Paolo Bonzini.  Blame Lee
53099   # E. McMahon (1931-1989) for sed's syntax.  :-)
53100   sed -n '
53101     p
53102     /[$]LINENO/=
53103   ' <$as_myself |
53104     sed '
53105       s/[$]LINENO.*/&-/
53106       t lineno
53107       b
53108       :lineno
53109       N
53110       :loop
53111       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
53112       t loop
53113       s/-\n.*//
53114     ' >$as_me.lineno &&
53115   chmod +x "$as_me.lineno" ||
53116     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
53117    { (exit 1); exit 1; }; }
53118
53119   # Don't try to exec as it changes $[0], causing all sort of problems
53120   # (the dirname of $[0] is not the place where we might find the
53121   # original and so on.  Autoconf is especially sensitive to this).
53122   . "./$as_me.lineno"
53123   # Exit status is that of the last command.
53124   exit
53125 }
53126
53127
53128 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
53129   as_dirname=dirname
53130 else
53131   as_dirname=false
53132 fi
53133
53134 ECHO_C= ECHO_N= ECHO_T=
53135 case `echo -n x` in
53136 -n*)
53137   case `echo 'x\c'` in
53138   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
53139   *)   ECHO_C='\c';;
53140   esac;;
53141 *)
53142   ECHO_N='-n';;
53143 esac
53144
53145 if expr a : '\(a\)' >/dev/null 2>&1 &&
53146    test "X`expr 00001 : '.*\(...\)'`" = X001; then
53147   as_expr=expr
53148 else
53149   as_expr=false
53150 fi
53151
53152 rm -f conf$$ conf$$.exe conf$$.file
53153 if test -d conf$$.dir; then
53154   rm -f conf$$.dir/conf$$.file
53155 else
53156   rm -f conf$$.dir
53157   mkdir conf$$.dir
53158 fi
53159 echo >conf$$.file
53160 if ln -s conf$$.file conf$$ 2>/dev/null; then
53161   as_ln_s='ln -s'
53162   # ... but there are two gotchas:
53163   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
53164   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
53165   # In both cases, we have to default to `cp -p'.
53166   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
53167     as_ln_s='cp -p'
53168 elif ln conf$$.file conf$$ 2>/dev/null; then
53169   as_ln_s=ln
53170 else
53171   as_ln_s='cp -p'
53172 fi
53173 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
53174 rmdir conf$$.dir 2>/dev/null
53175
53176 if mkdir -p . 2>/dev/null; then
53177   as_mkdir_p=:
53178 else
53179   test -d ./-p && rmdir ./-p
53180   as_mkdir_p=false
53181 fi
53182
53183 if test -x / >/dev/null 2>&1; then
53184   as_test_x='test -x'
53185 else
53186   if ls -dL / >/dev/null 2>&1; then
53187     as_ls_L_option=L
53188   else
53189     as_ls_L_option=
53190   fi
53191   as_test_x='
53192     eval sh -c '\''
53193       if test -d "$1"; then
53194         test -d "$1/.";
53195       else
53196         case $1 in
53197         -*)set "./$1";;
53198         esac;
53199         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
53200         ???[sx]*):;;*)false;;esac;fi
53201     '\'' sh
53202   '
53203 fi
53204 as_executable_p=$as_test_x
53205
53206 # Sed expression to map a string onto a valid CPP name.
53207 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
53208
53209 # Sed expression to map a string onto a valid variable name.
53210 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
53211
53212
53213 exec 6>&1
53214
53215 # Save the log message, to keep $[0] and so on meaningful, and to
53216 # report actual input values of CONFIG_FILES etc. instead of their
53217 # values after options handling.
53218 ac_log="
53219 This file was extended by Heimdal $as_me 1.1, which was
53220 generated by GNU Autoconf 2.61.  Invocation command line was
53221
53222   CONFIG_FILES    = $CONFIG_FILES
53223   CONFIG_HEADERS  = $CONFIG_HEADERS
53224   CONFIG_LINKS    = $CONFIG_LINKS
53225   CONFIG_COMMANDS = $CONFIG_COMMANDS
53226   $ $0 $@
53227
53228 on `(hostname || uname -n) 2>/dev/null | sed 1q`
53229 "
53230
53231 _ACEOF
53232
53233 cat >>$CONFIG_STATUS <<_ACEOF
53234 # Files that config.status was made for.
53235 config_files="$ac_config_files"
53236 config_headers="$ac_config_headers"
53237
53238 _ACEOF
53239
53240 cat >>$CONFIG_STATUS <<\_ACEOF
53241 ac_cs_usage="\
53242 \`$as_me' instantiates files from templates according to the
53243 current configuration.
53244
53245 Usage: $0 [OPTIONS] [FILE]...
53246
53247   -h, --help       print this help, then exit
53248   -V, --version    print version number and configuration settings, then exit
53249   -q, --quiet      do not print progress messages
53250   -d, --debug      don't remove temporary files
53251       --recheck    update $as_me by reconfiguring in the same conditions
53252   --file=FILE[:TEMPLATE]
53253                    instantiate the configuration file FILE
53254   --header=FILE[:TEMPLATE]
53255                    instantiate the configuration header FILE
53256
53257 Configuration files:
53258 $config_files
53259
53260 Configuration headers:
53261 $config_headers
53262
53263 Report bugs to <bug-autoconf@gnu.org>."
53264
53265 _ACEOF
53266 cat >>$CONFIG_STATUS <<_ACEOF
53267 ac_cs_version="\\
53268 Heimdal config.status 1.1
53269 configured by $0, generated by GNU Autoconf 2.61,
53270   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
53271
53272 Copyright (C) 2006 Free Software Foundation, Inc.
53273 This config.status script is free software; the Free Software Foundation
53274 gives unlimited permission to copy, distribute and modify it."
53275
53276 ac_pwd='$ac_pwd'
53277 srcdir='$srcdir'
53278 INSTALL='$INSTALL'
53279 MKDIR_P='$MKDIR_P'
53280 _ACEOF
53281
53282 cat >>$CONFIG_STATUS <<\_ACEOF
53283 # If no file are specified by the user, then we need to provide default
53284 # value.  By we need to know if files were specified by the user.
53285 ac_need_defaults=:
53286 while test $# != 0
53287 do
53288   case $1 in
53289   --*=*)
53290     ac_option=`expr "X$1" : 'X\([^=]*\)='`
53291     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
53292     ac_shift=:
53293     ;;
53294   *)
53295     ac_option=$1
53296     ac_optarg=$2
53297     ac_shift=shift
53298     ;;
53299   esac
53300
53301   case $ac_option in
53302   # Handling of the options.
53303   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
53304     ac_cs_recheck=: ;;
53305   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
53306     echo "$ac_cs_version"; exit ;;
53307   --debug | --debu | --deb | --de | --d | -d )
53308     debug=: ;;
53309   --file | --fil | --fi | --f )
53310     $ac_shift
53311     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
53312     ac_need_defaults=false;;
53313   --header | --heade | --head | --hea )
53314     $ac_shift
53315     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
53316     ac_need_defaults=false;;
53317   --he | --h)
53318     # Conflict between --help and --header
53319     { echo "$as_me: error: ambiguous option: $1
53320 Try \`$0 --help' for more information." >&2
53321    { (exit 1); exit 1; }; };;
53322   --help | --hel | -h )
53323     echo "$ac_cs_usage"; exit ;;
53324   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
53325   | -silent | --silent | --silen | --sile | --sil | --si | --s)
53326     ac_cs_silent=: ;;
53327
53328   # This is an error.
53329   -*) { echo "$as_me: error: unrecognized option: $1
53330 Try \`$0 --help' for more information." >&2
53331    { (exit 1); exit 1; }; } ;;
53332
53333   *) ac_config_targets="$ac_config_targets $1"
53334      ac_need_defaults=false ;;
53335
53336   esac
53337   shift
53338 done
53339
53340 ac_configure_extra_args=
53341
53342 if $ac_cs_silent; then
53343   exec 6>/dev/null
53344   ac_configure_extra_args="$ac_configure_extra_args --silent"
53345 fi
53346
53347 _ACEOF
53348 cat >>$CONFIG_STATUS <<_ACEOF
53349 if \$ac_cs_recheck; then
53350   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
53351   CONFIG_SHELL=$SHELL
53352   export CONFIG_SHELL
53353   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
53354 fi
53355
53356 _ACEOF
53357 cat >>$CONFIG_STATUS <<\_ACEOF
53358 exec 5>>config.log
53359 {
53360   echo
53361   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
53362 ## Running $as_me. ##
53363 _ASBOX
53364   echo "$ac_log"
53365 } >&5
53366
53367 _ACEOF
53368 cat >>$CONFIG_STATUS <<_ACEOF
53369 _ACEOF
53370
53371 cat >>$CONFIG_STATUS <<\_ACEOF
53372
53373 # Handling of arguments.
53374 for ac_config_target in $ac_config_targets
53375 do
53376   case $ac_config_target in
53377     "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
53378     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
53379     "etc/Makefile") CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;;
53380     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
53381     "include/gssapi/Makefile") CONFIG_FILES="$CONFIG_FILES include/gssapi/Makefile" ;;
53382     "include/hcrypto/Makefile") CONFIG_FILES="$CONFIG_FILES include/hcrypto/Makefile" ;;
53383     "include/kadm5/Makefile") CONFIG_FILES="$CONFIG_FILES include/kadm5/Makefile" ;;
53384     "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
53385     "lib/45/Makefile") CONFIG_FILES="$CONFIG_FILES lib/45/Makefile" ;;
53386     "lib/auth/Makefile") CONFIG_FILES="$CONFIG_FILES lib/auth/Makefile" ;;
53387     "lib/auth/afskauthlib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/auth/afskauthlib/Makefile" ;;
53388     "lib/auth/pam/Makefile") CONFIG_FILES="$CONFIG_FILES lib/auth/pam/Makefile" ;;
53389     "lib/auth/sia/Makefile") CONFIG_FILES="$CONFIG_FILES lib/auth/sia/Makefile" ;;
53390     "lib/asn1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/asn1/Makefile" ;;
53391     "lib/com_err/Makefile") CONFIG_FILES="$CONFIG_FILES lib/com_err/Makefile" ;;
53392     "lib/hcrypto/Makefile") CONFIG_FILES="$CONFIG_FILES lib/hcrypto/Makefile" ;;
53393     "lib/editline/Makefile") CONFIG_FILES="$CONFIG_FILES lib/editline/Makefile" ;;
53394     "lib/hx509/Makefile") CONFIG_FILES="$CONFIG_FILES lib/hx509/Makefile" ;;
53395     "lib/gssapi/Makefile") CONFIG_FILES="$CONFIG_FILES lib/gssapi/Makefile" ;;
53396     "lib/ntlm/Makefile") CONFIG_FILES="$CONFIG_FILES lib/ntlm/Makefile" ;;
53397     "lib/hdb/Makefile") CONFIG_FILES="$CONFIG_FILES lib/hdb/Makefile" ;;
53398     "lib/kadm5/Makefile") CONFIG_FILES="$CONFIG_FILES lib/kadm5/Makefile" ;;
53399     "lib/kafs/Makefile") CONFIG_FILES="$CONFIG_FILES lib/kafs/Makefile" ;;
53400     "lib/kdfs/Makefile") CONFIG_FILES="$CONFIG_FILES lib/kdfs/Makefile" ;;
53401     "lib/krb5/Makefile") CONFIG_FILES="$CONFIG_FILES lib/krb5/Makefile" ;;
53402     "lib/otp/Makefile") CONFIG_FILES="$CONFIG_FILES lib/otp/Makefile" ;;
53403     "lib/roken/Makefile") CONFIG_FILES="$CONFIG_FILES lib/roken/Makefile" ;;
53404     "lib/sl/Makefile") CONFIG_FILES="$CONFIG_FILES lib/sl/Makefile" ;;
53405     "lib/vers/Makefile") CONFIG_FILES="$CONFIG_FILES lib/vers/Makefile" ;;
53406     "kuser/Makefile") CONFIG_FILES="$CONFIG_FILES kuser/Makefile" ;;
53407     "kpasswd/Makefile") CONFIG_FILES="$CONFIG_FILES kpasswd/Makefile" ;;
53408     "kadmin/Makefile") CONFIG_FILES="$CONFIG_FILES kadmin/Makefile" ;;
53409     "admin/Makefile") CONFIG_FILES="$CONFIG_FILES admin/Makefile" ;;
53410     "kcm/Makefile") CONFIG_FILES="$CONFIG_FILES kcm/Makefile" ;;
53411     "kdc/Makefile") CONFIG_FILES="$CONFIG_FILES kdc/Makefile" ;;
53412     "appl/Makefile") CONFIG_FILES="$CONFIG_FILES appl/Makefile" ;;
53413     "appl/afsutil/Makefile") CONFIG_FILES="$CONFIG_FILES appl/afsutil/Makefile" ;;
53414     "appl/ftp/Makefile") CONFIG_FILES="$CONFIG_FILES appl/ftp/Makefile" ;;
53415     "appl/ftp/common/Makefile") CONFIG_FILES="$CONFIG_FILES appl/ftp/common/Makefile" ;;
53416     "appl/ftp/ftp/Makefile") CONFIG_FILES="$CONFIG_FILES appl/ftp/ftp/Makefile" ;;
53417     "appl/ftp/ftpd/Makefile") CONFIG_FILES="$CONFIG_FILES appl/ftp/ftpd/Makefile" ;;
53418     "appl/gssmask/Makefile") CONFIG_FILES="$CONFIG_FILES appl/gssmask/Makefile" ;;
53419     "appl/kx/Makefile") CONFIG_FILES="$CONFIG_FILES appl/kx/Makefile" ;;
53420     "appl/login/Makefile") CONFIG_FILES="$CONFIG_FILES appl/login/Makefile" ;;
53421     "appl/otp/Makefile") CONFIG_FILES="$CONFIG_FILES appl/otp/Makefile" ;;
53422     "appl/popper/Makefile") CONFIG_FILES="$CONFIG_FILES appl/popper/Makefile" ;;
53423     "appl/push/Makefile") CONFIG_FILES="$CONFIG_FILES appl/push/Makefile" ;;
53424     "appl/rsh/Makefile") CONFIG_FILES="$CONFIG_FILES appl/rsh/Makefile" ;;
53425     "appl/rcp/Makefile") CONFIG_FILES="$CONFIG_FILES appl/rcp/Makefile" ;;
53426     "appl/su/Makefile") CONFIG_FILES="$CONFIG_FILES appl/su/Makefile" ;;
53427     "appl/xnlock/Makefile") CONFIG_FILES="$CONFIG_FILES appl/xnlock/Makefile" ;;
53428     "appl/telnet/Makefile") CONFIG_FILES="$CONFIG_FILES appl/telnet/Makefile" ;;
53429     "appl/telnet/libtelnet/Makefile") CONFIG_FILES="$CONFIG_FILES appl/telnet/libtelnet/Makefile" ;;
53430     "appl/telnet/telnet/Makefile") CONFIG_FILES="$CONFIG_FILES appl/telnet/telnet/Makefile" ;;
53431     "appl/telnet/telnetd/Makefile") CONFIG_FILES="$CONFIG_FILES appl/telnet/telnetd/Makefile" ;;
53432     "appl/test/Makefile") CONFIG_FILES="$CONFIG_FILES appl/test/Makefile" ;;
53433     "appl/kf/Makefile") CONFIG_FILES="$CONFIG_FILES appl/kf/Makefile" ;;
53434     "appl/dceutils/Makefile") CONFIG_FILES="$CONFIG_FILES appl/dceutils/Makefile" ;;
53435     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
53436     "tests/can/Makefile") CONFIG_FILES="$CONFIG_FILES tests/can/Makefile" ;;
53437     "tests/db/Makefile") CONFIG_FILES="$CONFIG_FILES tests/db/Makefile" ;;
53438     "tests/kdc/Makefile") CONFIG_FILES="$CONFIG_FILES tests/kdc/Makefile" ;;
53439     "tests/ldap/Makefile") CONFIG_FILES="$CONFIG_FILES tests/ldap/Makefile" ;;
53440     "tests/gss/Makefile") CONFIG_FILES="$CONFIG_FILES tests/gss/Makefile" ;;
53441     "tests/java/Makefile") CONFIG_FILES="$CONFIG_FILES tests/java/Makefile" ;;
53442     "tests/plugin/Makefile") CONFIG_FILES="$CONFIG_FILES tests/plugin/Makefile" ;;
53443     "packages/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Makefile" ;;
53444     "packages/mac/Makefile") CONFIG_FILES="$CONFIG_FILES packages/mac/Makefile" ;;
53445     "packages/debian/Makefile") CONFIG_FILES="$CONFIG_FILES packages/debian/Makefile" ;;
53446     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
53447     "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
53448
53449   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
53450 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
53451    { (exit 1); exit 1; }; };;
53452   esac
53453 done
53454
53455
53456 # If the user did not use the arguments to specify the items to instantiate,
53457 # then the envvar interface is used.  Set only those that are not.
53458 # We use the long form for the default assignment because of an extremely
53459 # bizarre bug on SunOS 4.1.3.
53460 if $ac_need_defaults; then
53461   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
53462   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
53463 fi
53464
53465 # Have a temporary directory for convenience.  Make it in the build tree
53466 # simply because there is no reason against having it here, and in addition,
53467 # creating and moving files from /tmp can sometimes cause problems.
53468 # Hook for its removal unless debugging.
53469 # Note that there is a small window in which the directory will not be cleaned:
53470 # after its creation but before its name has been assigned to `$tmp'.
53471 $debug ||
53472 {
53473   tmp=
53474   trap 'exit_status=$?
53475   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
53476 ' 0
53477   trap '{ (exit 1); exit 1; }' 1 2 13 15
53478 }
53479 # Create a (secure) tmp directory for tmp files.
53480
53481 {
53482   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
53483   test -n "$tmp" && test -d "$tmp"
53484 }  ||
53485 {
53486   tmp=./conf$$-$RANDOM
53487   (umask 077 && mkdir "$tmp")
53488 } ||
53489 {
53490    echo "$me: cannot create a temporary directory in ." >&2
53491    { (exit 1); exit 1; }
53492 }
53493
53494 #
53495 # Set up the sed scripts for CONFIG_FILES section.
53496 #
53497
53498 # No need to generate the scripts if there are no CONFIG_FILES.
53499 # This happens for instance when ./config.status config.h
53500 if test -n "$CONFIG_FILES"; then
53501
53502 _ACEOF
53503
53504
53505
53506 ac_delim='%!_!# '
53507 for ac_last_try in false false false false false :; do
53508   cat >conf$$subs.sed <<_ACEOF
53509 SHELL!$SHELL$ac_delim
53510 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
53511 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
53512 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
53513 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
53514 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
53515 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
53516 exec_prefix!$exec_prefix$ac_delim
53517 prefix!$prefix$ac_delim
53518 program_transform_name!$program_transform_name$ac_delim
53519 bindir!$bindir$ac_delim
53520 sbindir!$sbindir$ac_delim
53521 libexecdir!$libexecdir$ac_delim
53522 datarootdir!$datarootdir$ac_delim
53523 datadir!$datadir$ac_delim
53524 sysconfdir!$sysconfdir$ac_delim
53525 sharedstatedir!$sharedstatedir$ac_delim
53526 localstatedir!$localstatedir$ac_delim
53527 includedir!$includedir$ac_delim
53528 oldincludedir!$oldincludedir$ac_delim
53529 docdir!$docdir$ac_delim
53530 infodir!$infodir$ac_delim
53531 htmldir!$htmldir$ac_delim
53532 dvidir!$dvidir$ac_delim
53533 pdfdir!$pdfdir$ac_delim
53534 psdir!$psdir$ac_delim
53535 libdir!$libdir$ac_delim
53536 localedir!$localedir$ac_delim
53537 mandir!$mandir$ac_delim
53538 DEFS!$DEFS$ac_delim
53539 ECHO_C!$ECHO_C$ac_delim
53540 ECHO_N!$ECHO_N$ac_delim
53541 ECHO_T!$ECHO_T$ac_delim
53542 LIBS!$LIBS$ac_delim
53543 build_alias!$build_alias$ac_delim
53544 host_alias!$host_alias$ac_delim
53545 target_alias!$target_alias$ac_delim
53546 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
53547 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
53548 INSTALL_DATA!$INSTALL_DATA$ac_delim
53549 am__isrc!$am__isrc$ac_delim
53550 CYGPATH_W!$CYGPATH_W$ac_delim
53551 PACKAGE!$PACKAGE$ac_delim
53552 VERSION!$VERSION$ac_delim
53553 ACLOCAL!$ACLOCAL$ac_delim
53554 AUTOCONF!$AUTOCONF$ac_delim
53555 AUTOMAKE!$AUTOMAKE$ac_delim
53556 AUTOHEADER!$AUTOHEADER$ac_delim
53557 MAKEINFO!$MAKEINFO$ac_delim
53558 install_sh!$install_sh$ac_delim
53559 STRIP!$STRIP$ac_delim
53560 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
53561 mkdir_p!$mkdir_p$ac_delim
53562 AWK!$AWK$ac_delim
53563 SET_MAKE!$SET_MAKE$ac_delim
53564 am__leading_dot!$am__leading_dot$ac_delim
53565 AMTAR!$AMTAR$ac_delim
53566 am__tar!$am__tar$ac_delim
53567 am__untar!$am__untar$ac_delim
53568 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
53569 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
53570 MAINT!$MAINT$ac_delim
53571 CC!$CC$ac_delim
53572 CFLAGS!$CFLAGS$ac_delim
53573 LDFLAGS!$LDFLAGS$ac_delim
53574 CPPFLAGS!$CPPFLAGS$ac_delim
53575 ac_ct_CC!$ac_ct_CC$ac_delim
53576 EXEEXT!$EXEEXT$ac_delim
53577 OBJEXT!$OBJEXT$ac_delim
53578 CPP!$CPP$ac_delim
53579 build!$build$ac_delim
53580 build_cpu!$build_cpu$ac_delim
53581 build_vendor!$build_vendor$ac_delim
53582 build_os!$build_os$ac_delim
53583 host!$host$ac_delim
53584 host_cpu!$host_cpu$ac_delim
53585 host_vendor!$host_vendor$ac_delim
53586 host_os!$host_os$ac_delim
53587 CANONICAL_HOST!$CANONICAL_HOST$ac_delim
53588 YACC!$YACC$ac_delim
53589 YFLAGS!$YFLAGS$ac_delim
53590 LEX!$LEX$ac_delim
53591 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
53592 LEXLIB!$LEXLIB$ac_delim
53593 LN_S!$LN_S$ac_delim
53594 GREP!$GREP$ac_delim
53595 EGREP!$EGREP$ac_delim
53596 ECHO!$ECHO$ac_delim
53597 AR!$AR$ac_delim
53598 RANLIB!$RANLIB$ac_delim
53599 CXX!$CXX$ac_delim
53600 CXXFLAGS!$CXXFLAGS$ac_delim
53601 ac_ct_CXX!$ac_ct_CXX$ac_delim
53602 CXXCPP!$CXXCPP$ac_delim
53603 F77!$F77$ac_delim
53604 FFLAGS!$FFLAGS$ac_delim
53605 ac_ct_F77!$ac_ct_F77$ac_delim
53606 _ACEOF
53607
53608   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
53609     break
53610   elif $ac_last_try; then
53611     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
53612 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
53613    { (exit 1); exit 1; }; }
53614   else
53615     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
53616   fi
53617 done
53618
53619 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
53620 if test -n "$ac_eof"; then
53621   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
53622   ac_eof=`expr $ac_eof + 1`
53623 fi
53624
53625 cat >>$CONFIG_STATUS <<_ACEOF
53626 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
53627 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
53628 _ACEOF
53629 sed '
53630 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
53631 s/^/s,@/; s/!/@,|#_!!_#|/
53632 :n
53633 t n
53634 s/'"$ac_delim"'$/,g/; t
53635 s/$/\\/; p
53636 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
53637 ' >>$CONFIG_STATUS <conf$$subs.sed
53638 rm -f conf$$subs.sed
53639 cat >>$CONFIG_STATUS <<_ACEOF
53640 CEOF$ac_eof
53641 _ACEOF
53642
53643
53644 ac_delim='%!_!# '
53645 for ac_last_try in false false false false false :; do
53646   cat >conf$$subs.sed <<_ACEOF
53647 LIBTOOL!$LIBTOOL$ac_delim
53648 ENABLE_SHARED_TRUE!$ENABLE_SHARED_TRUE$ac_delim
53649 ENABLE_SHARED_FALSE!$ENABLE_SHARED_FALSE$ac_delim
53650 VERSIONING!$VERSIONING$ac_delim
53651 versionscript_TRUE!$versionscript_TRUE$ac_delim
53652 versionscript_FALSE!$versionscript_FALSE$ac_delim
53653 LDFLAGS_VERSION_SCRIPT!$LDFLAGS_VERSION_SCRIPT$ac_delim
53654 INCLUDE_openldap!$INCLUDE_openldap$ac_delim
53655 LIB_openldap!$LIB_openldap$ac_delim
53656 OPENLDAP_MODULE_TRUE!$OPENLDAP_MODULE_TRUE$ac_delim
53657 OPENLDAP_MODULE_FALSE!$OPENLDAP_MODULE_FALSE$ac_delim
53658 PKINIT_TRUE!$PKINIT_TRUE$ac_delim
53659 PKINIT_FALSE!$PKINIT_FALSE$ac_delim
53660 DIR_hdbdir!$DIR_hdbdir$ac_delim
53661 INCLUDE_krb4!$INCLUDE_krb4$ac_delim
53662 LIB_krb4!$LIB_krb4$ac_delim
53663 KRB4_TRUE!$KRB4_TRUE$ac_delim
53664 KRB4_FALSE!$KRB4_FALSE$ac_delim
53665 KRB5_TRUE!$KRB5_TRUE$ac_delim
53666 KRB5_FALSE!$KRB5_FALSE$ac_delim
53667 do_roken_rename_TRUE!$do_roken_rename_TRUE$ac_delim
53668 do_roken_rename_FALSE!$do_roken_rename_FALSE$ac_delim
53669 LIB_kdb!$LIB_kdb$ac_delim
53670 HAVE_OPENSSL_TRUE!$HAVE_OPENSSL_TRUE$ac_delim
53671 HAVE_OPENSSL_FALSE!$HAVE_OPENSSL_FALSE$ac_delim
53672 DIR_hcrypto!$DIR_hcrypto$ac_delim
53673 INCLUDE_hcrypto!$INCLUDE_hcrypto$ac_delim
53674 LIB_hcrypto!$LIB_hcrypto$ac_delim
53675 LIB_hcrypto_a!$LIB_hcrypto_a$ac_delim
53676 LIB_hcrypto_so!$LIB_hcrypto_so$ac_delim
53677 LIB_hcrypto_appl!$LIB_hcrypto_appl$ac_delim
53678 PTHREADS_CFLAGS!$PTHREADS_CFLAGS$ac_delim
53679 PTHREADS_LIBS!$PTHREADS_LIBS$ac_delim
53680 DCE_TRUE!$DCE_TRUE$ac_delim
53681 DCE_FALSE!$DCE_FALSE$ac_delim
53682 dpagaix_cflags!$dpagaix_cflags$ac_delim
53683 dpagaix_ldadd!$dpagaix_ldadd$ac_delim
53684 dpagaix_ldflags!$dpagaix_ldflags$ac_delim
53685 LIB_db_create!$LIB_db_create$ac_delim
53686 LIB_dbopen!$LIB_dbopen$ac_delim
53687 LIB_dbm_firstkey!$LIB_dbm_firstkey$ac_delim
53688 HAVE_DB1_TRUE!$HAVE_DB1_TRUE$ac_delim
53689 HAVE_DB1_FALSE!$HAVE_DB1_FALSE$ac_delim
53690 HAVE_DB3_TRUE!$HAVE_DB3_TRUE$ac_delim
53691 HAVE_DB3_FALSE!$HAVE_DB3_FALSE$ac_delim
53692 HAVE_NDBM_TRUE!$HAVE_NDBM_TRUE$ac_delim
53693 HAVE_NDBM_FALSE!$HAVE_NDBM_FALSE$ac_delim
53694 DBLIB!$DBLIB$ac_delim
53695 LIB_NDBM!$LIB_NDBM$ac_delim
53696 WFLAGS!$WFLAGS$ac_delim
53697 WFLAGS_NOUNUSED!$WFLAGS_NOUNUSED$ac_delim
53698 WFLAGS_NOIMPLICITINT!$WFLAGS_NOIMPLICITINT$ac_delim
53699 VOID_RETSIGTYPE!$VOID_RETSIGTYPE$ac_delim
53700 have_err_h_TRUE!$have_err_h_TRUE$ac_delim
53701 have_err_h_FALSE!$have_err_h_FALSE$ac_delim
53702 have_ifaddrs_h_TRUE!$have_ifaddrs_h_TRUE$ac_delim
53703 have_ifaddrs_h_FALSE!$have_ifaddrs_h_FALSE$ac_delim
53704 have_vis_h_TRUE!$have_vis_h_TRUE$ac_delim
53705 have_vis_h_FALSE!$have_vis_h_FALSE$ac_delim
53706 LIB_socket!$LIB_socket$ac_delim
53707 LIB_gethostbyname!$LIB_gethostbyname$ac_delim
53708 LIB_syslog!$LIB_syslog$ac_delim
53709 LIB_gethostbyname2!$LIB_gethostbyname2$ac_delim
53710 LIB_res_search!$LIB_res_search$ac_delim
53711 LIB_res_nsearch!$LIB_res_nsearch$ac_delim
53712 LIB_res_ndestroy!$LIB_res_ndestroy$ac_delim
53713 LIB_dn_expand!$LIB_dn_expand$ac_delim
53714 LIBOBJS!$LIBOBJS$ac_delim
53715 have_glob_h_TRUE!$have_glob_h_TRUE$ac_delim
53716 have_glob_h_FALSE!$have_glob_h_FALSE$ac_delim
53717 have_cgetent_TRUE!$have_cgetent_TRUE$ac_delim
53718 have_cgetent_FALSE!$have_cgetent_FALSE$ac_delim
53719 LIB_getsockopt!$LIB_getsockopt$ac_delim
53720 LIB_setsockopt!$LIB_setsockopt$ac_delim
53721 LIB_hstrerror!$LIB_hstrerror$ac_delim
53722 LIB_bswap16!$LIB_bswap16$ac_delim
53723 LIB_bswap32!$LIB_bswap32$ac_delim
53724 LIB_pidfile!$LIB_pidfile$ac_delim
53725 LIB_getaddrinfo!$LIB_getaddrinfo$ac_delim
53726 LIB_getnameinfo!$LIB_getnameinfo$ac_delim
53727 LIB_freeaddrinfo!$LIB_freeaddrinfo$ac_delim
53728 LIB_gai_strerror!$LIB_gai_strerror$ac_delim
53729 have_fnmatch_h_TRUE!$have_fnmatch_h_TRUE$ac_delim
53730 have_fnmatch_h_FALSE!$have_fnmatch_h_FALSE$ac_delim
53731 LIB_crypt!$LIB_crypt$ac_delim
53732 have_socket_wrapper_TRUE!$have_socket_wrapper_TRUE$ac_delim
53733 have_socket_wrapper_FALSE!$have_socket_wrapper_FALSE$ac_delim
53734 DIR_roken!$DIR_roken$ac_delim
53735 LIB_roken!$LIB_roken$ac_delim
53736 INCLUDES_roken!$INCLUDES_roken$ac_delim
53737 LIBADD_roken!$LIBADD_roken$ac_delim
53738 LIB_otp!$LIB_otp$ac_delim
53739 OTP_TRUE!$OTP_TRUE$ac_delim
53740 OTP_FALSE!$OTP_FALSE$ac_delim
53741 LIB_security!$LIB_security$ac_delim
53742 NROFF!$NROFF$ac_delim
53743 GROFF!$GROFF$ac_delim
53744 _ACEOF
53745
53746   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
53747     break
53748   elif $ac_last_try; then
53749     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
53750 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
53751    { (exit 1); exit 1; }; }
53752   else
53753     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
53754   fi
53755 done
53756
53757 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
53758 if test -n "$ac_eof"; then
53759   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
53760   ac_eof=`expr $ac_eof + 1`
53761 fi
53762
53763 cat >>$CONFIG_STATUS <<_ACEOF
53764 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
53765 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
53766 _ACEOF
53767 sed '
53768 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
53769 s/^/s,@/; s/!/@,|#_!!_#|/
53770 :n
53771 t n
53772 s/'"$ac_delim"'$/,g/; t
53773 s/$/\\/; p
53774 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
53775 ' >>$CONFIG_STATUS <conf$$subs.sed
53776 rm -f conf$$subs.sed
53777 cat >>$CONFIG_STATUS <<_ACEOF
53778 CEOF$ac_eof
53779 _ACEOF
53780
53781
53782 ac_delim='%!_!# '
53783 for ac_last_try in false false false false false :; do
53784   cat >conf$$subs.sed <<_ACEOF
53785 CATMAN!$CATMAN$ac_delim
53786 CATMAN_TRUE!$CATMAN_TRUE$ac_delim
53787 CATMAN_FALSE!$CATMAN_FALSE$ac_delim
53788 CATMANEXT!$CATMANEXT$ac_delim
53789 INCLUDE_readline!$INCLUDE_readline$ac_delim
53790 LIB_readline!$LIB_readline$ac_delim
53791 INCLUDE_hesiod!$INCLUDE_hesiod$ac_delim
53792 LIB_hesiod!$LIB_hesiod$ac_delim
53793 AIX_TRUE!$AIX_TRUE$ac_delim
53794 AIX_FALSE!$AIX_FALSE$ac_delim
53795 AIX4_TRUE!$AIX4_TRUE$ac_delim
53796 AIX4_FALSE!$AIX4_FALSE$ac_delim
53797 LIB_dlopen!$LIB_dlopen$ac_delim
53798 HAVE_DLOPEN_TRUE!$HAVE_DLOPEN_TRUE$ac_delim
53799 HAVE_DLOPEN_FALSE!$HAVE_DLOPEN_FALSE$ac_delim
53800 LIB_loadquery!$LIB_loadquery$ac_delim
53801 AIX_DYNAMIC_AFS_TRUE!$AIX_DYNAMIC_AFS_TRUE$ac_delim
53802 AIX_DYNAMIC_AFS_FALSE!$AIX_DYNAMIC_AFS_FALSE$ac_delim
53803 AIX_EXTRA_KAFS!$AIX_EXTRA_KAFS$ac_delim
53804 IRIX_TRUE!$IRIX_TRUE$ac_delim
53805 IRIX_FALSE!$IRIX_FALSE$ac_delim
53806 XMKMF!$XMKMF$ac_delim
53807 X_CFLAGS!$X_CFLAGS$ac_delim
53808 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
53809 X_LIBS!$X_LIBS$ac_delim
53810 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
53811 HAVE_X_TRUE!$HAVE_X_TRUE$ac_delim
53812 HAVE_X_FALSE!$HAVE_X_FALSE$ac_delim
53813 LIB_XauWriteAuth!$LIB_XauWriteAuth$ac_delim
53814 LIB_XauReadAuth!$LIB_XauReadAuth$ac_delim
53815 LIB_XauFileName!$LIB_XauFileName$ac_delim
53816 NEED_WRITEAUTH_TRUE!$NEED_WRITEAUTH_TRUE$ac_delim
53817 NEED_WRITEAUTH_FALSE!$NEED_WRITEAUTH_FALSE$ac_delim
53818 LIB_logwtmp!$LIB_logwtmp$ac_delim
53819 LIB_logout!$LIB_logout$ac_delim
53820 LIB_openpty!$LIB_openpty$ac_delim
53821 LIB_tgetent!$LIB_tgetent$ac_delim
53822 LIB_getpwnam_r!$LIB_getpwnam_r$ac_delim
53823 LIB_door_create!$LIB_door_create$ac_delim
53824 KCM_TRUE!$KCM_TRUE$ac_delim
53825 KCM_FALSE!$KCM_FALSE$ac_delim
53826 FRAMEWORK_SECURITY_TRUE!$FRAMEWORK_SECURITY_TRUE$ac_delim
53827 FRAMEWORK_SECURITY_FALSE!$FRAMEWORK_SECURITY_FALSE$ac_delim
53828 LIB_el_init!$LIB_el_init$ac_delim
53829 el_compat_TRUE!$el_compat_TRUE$ac_delim
53830 el_compat_FALSE!$el_compat_FALSE$ac_delim
53831 COMPILE_ET!$COMPILE_ET$ac_delim
53832 COM_ERR_TRUE!$COM_ERR_TRUE$ac_delim
53833 COM_ERR_FALSE!$COM_ERR_FALSE$ac_delim
53834 DIR_com_err!$DIR_com_err$ac_delim
53835 LIB_com_err!$LIB_com_err$ac_delim
53836 LIB_com_err_a!$LIB_com_err_a$ac_delim
53837 LIB_com_err_so!$LIB_com_err_so$ac_delim
53838 LIB_AUTH_SUBDIRS!$LIB_AUTH_SUBDIRS$ac_delim
53839 LTLIBOBJS!$LTLIBOBJS$ac_delim
53840 _ACEOF
53841
53842   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 55; then
53843     break
53844   elif $ac_last_try; then
53845     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
53846 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
53847    { (exit 1); exit 1; }; }
53848   else
53849     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
53850   fi
53851 done
53852
53853 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
53854 if test -n "$ac_eof"; then
53855   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
53856   ac_eof=`expr $ac_eof + 1`
53857 fi
53858
53859 cat >>$CONFIG_STATUS <<_ACEOF
53860 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
53861 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
53862 _ACEOF
53863 sed '
53864 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
53865 s/^/s,@/; s/!/@,|#_!!_#|/
53866 :n
53867 t n
53868 s/'"$ac_delim"'$/,g/; t
53869 s/$/\\/; p
53870 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
53871 ' >>$CONFIG_STATUS <conf$$subs.sed
53872 rm -f conf$$subs.sed
53873 cat >>$CONFIG_STATUS <<_ACEOF
53874 :end
53875 s/|#_!!_#|//g
53876 CEOF$ac_eof
53877 _ACEOF
53878
53879
53880 # VPATH may cause trouble with some makes, so we remove $(srcdir),
53881 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
53882 # trailing colons and then remove the whole line if VPATH becomes empty
53883 # (actually we leave an empty line to preserve line numbers).
53884 if test "x$srcdir" = x.; then
53885   ac_vpsub='/^[  ]*VPATH[        ]*=/{
53886 s/:*\$(srcdir):*/:/
53887 s/:*\${srcdir}:*/:/
53888 s/:*@srcdir@:*/:/
53889 s/^\([^=]*=[     ]*\):*/\1/
53890 s/:*$//
53891 s/^[^=]*=[       ]*$//
53892 }'
53893 fi
53894
53895 cat >>$CONFIG_STATUS <<\_ACEOF
53896 fi # test -n "$CONFIG_FILES"
53897
53898
53899 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS
53900 do
53901   case $ac_tag in
53902   :[FHLC]) ac_mode=$ac_tag; continue;;
53903   esac
53904   case $ac_mode$ac_tag in
53905   :[FHL]*:*);;
53906   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
53907 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
53908    { (exit 1); exit 1; }; };;
53909   :[FH]-) ac_tag=-:-;;
53910   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
53911   esac
53912   ac_save_IFS=$IFS
53913   IFS=:
53914   set x $ac_tag
53915   IFS=$ac_save_IFS
53916   shift
53917   ac_file=$1
53918   shift
53919
53920   case $ac_mode in
53921   :L) ac_source=$1;;
53922   :[FH])
53923     ac_file_inputs=
53924     for ac_f
53925     do
53926       case $ac_f in
53927       -) ac_f="$tmp/stdin";;
53928       *) # Look for the file first in the build tree, then in the source tree
53929          # (if the path is not absolute).  The absolute path cannot be DOS-style,
53930          # because $ac_f cannot contain `:'.
53931          test -f "$ac_f" ||
53932            case $ac_f in
53933            [\\/$]*) false;;
53934            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
53935            esac ||
53936            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
53937 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
53938    { (exit 1); exit 1; }; };;
53939       esac
53940       ac_file_inputs="$ac_file_inputs $ac_f"
53941     done
53942
53943     # Let's still pretend it is `configure' which instantiates (i.e., don't
53944     # use $as_me), people would be surprised to read:
53945     #    /* config.h.  Generated by config.status.  */
53946     configure_input="Generated from "`IFS=:
53947           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
53948     if test x"$ac_file" != x-; then
53949       configure_input="$ac_file.  $configure_input"
53950       { echo "$as_me:$LINENO: creating $ac_file" >&5
53951 echo "$as_me: creating $ac_file" >&6;}
53952     fi
53953
53954     case $ac_tag in
53955     *:-:* | *:-) cat >"$tmp/stdin";;
53956     esac
53957     ;;
53958   esac
53959
53960   ac_dir=`$as_dirname -- "$ac_file" ||
53961 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
53962          X"$ac_file" : 'X\(//\)[^/]' \| \
53963          X"$ac_file" : 'X\(//\)$' \| \
53964          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
53965 echo X"$ac_file" |
53966     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
53967             s//\1/
53968             q
53969           }
53970           /^X\(\/\/\)[^/].*/{
53971             s//\1/
53972             q
53973           }
53974           /^X\(\/\/\)$/{
53975             s//\1/
53976             q
53977           }
53978           /^X\(\/\).*/{
53979             s//\1/
53980             q
53981           }
53982           s/.*/./; q'`
53983   { as_dir="$ac_dir"
53984   case $as_dir in #(
53985   -*) as_dir=./$as_dir;;
53986   esac
53987   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
53988     as_dirs=
53989     while :; do
53990       case $as_dir in #(
53991       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
53992       *) as_qdir=$as_dir;;
53993       esac
53994       as_dirs="'$as_qdir' $as_dirs"
53995       as_dir=`$as_dirname -- "$as_dir" ||
53996 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
53997          X"$as_dir" : 'X\(//\)[^/]' \| \
53998          X"$as_dir" : 'X\(//\)$' \| \
53999          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
54000 echo X"$as_dir" |
54001     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
54002             s//\1/
54003             q
54004           }
54005           /^X\(\/\/\)[^/].*/{
54006             s//\1/
54007             q
54008           }
54009           /^X\(\/\/\)$/{
54010             s//\1/
54011             q
54012           }
54013           /^X\(\/\).*/{
54014             s//\1/
54015             q
54016           }
54017           s/.*/./; q'`
54018       test -d "$as_dir" && break
54019     done
54020     test -z "$as_dirs" || eval "mkdir $as_dirs"
54021   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
54022 echo "$as_me: error: cannot create directory $as_dir" >&2;}
54023    { (exit 1); exit 1; }; }; }
54024   ac_builddir=.
54025
54026 case "$ac_dir" in
54027 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
54028 *)
54029   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
54030   # A ".." for each directory in $ac_dir_suffix.
54031   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
54032   case $ac_top_builddir_sub in
54033   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
54034   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
54035   esac ;;
54036 esac
54037 ac_abs_top_builddir=$ac_pwd
54038 ac_abs_builddir=$ac_pwd$ac_dir_suffix
54039 # for backward compatibility:
54040 ac_top_builddir=$ac_top_build_prefix
54041
54042 case $srcdir in
54043   .)  # We are building in place.
54044     ac_srcdir=.
54045     ac_top_srcdir=$ac_top_builddir_sub
54046     ac_abs_top_srcdir=$ac_pwd ;;
54047   [\\/]* | ?:[\\/]* )  # Absolute name.
54048     ac_srcdir=$srcdir$ac_dir_suffix;
54049     ac_top_srcdir=$srcdir
54050     ac_abs_top_srcdir=$srcdir ;;
54051   *) # Relative name.
54052     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
54053     ac_top_srcdir=$ac_top_build_prefix$srcdir
54054     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
54055 esac
54056 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
54057
54058
54059   case $ac_mode in
54060   :F)
54061   #
54062   # CONFIG_FILE
54063   #
54064
54065   case $INSTALL in
54066   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
54067   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
54068   esac
54069   ac_MKDIR_P=$MKDIR_P
54070   case $MKDIR_P in
54071   [\\/$]* | ?:[\\/]* ) ;;
54072   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
54073   esac
54074 _ACEOF
54075
54076 cat >>$CONFIG_STATUS <<\_ACEOF
54077 # If the template does not know about datarootdir, expand it.
54078 # FIXME: This hack should be removed a few years after 2.60.
54079 ac_datarootdir_hack=; ac_datarootdir_seen=
54080
54081 case `sed -n '/datarootdir/ {
54082   p
54083   q
54084 }
54085 /@datadir@/p
54086 /@docdir@/p
54087 /@infodir@/p
54088 /@localedir@/p
54089 /@mandir@/p
54090 ' $ac_file_inputs` in
54091 *datarootdir*) ac_datarootdir_seen=yes;;
54092 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
54093   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
54094 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
54095 _ACEOF
54096 cat >>$CONFIG_STATUS <<_ACEOF
54097   ac_datarootdir_hack='
54098   s&@datadir@&$datadir&g
54099   s&@docdir@&$docdir&g
54100   s&@infodir@&$infodir&g
54101   s&@localedir@&$localedir&g
54102   s&@mandir@&$mandir&g
54103     s&\\\${datarootdir}&$datarootdir&g' ;;
54104 esac
54105 _ACEOF
54106
54107 # Neutralize VPATH when `$srcdir' = `.'.
54108 # Shell code in configure.ac might set extrasub.
54109 # FIXME: do we really want to maintain this feature?
54110 cat >>$CONFIG_STATUS <<_ACEOF
54111   sed "$ac_vpsub
54112 $extrasub
54113 _ACEOF
54114 cat >>$CONFIG_STATUS <<\_ACEOF
54115 :t
54116 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
54117 s&@configure_input@&$configure_input&;t t
54118 s&@top_builddir@&$ac_top_builddir_sub&;t t
54119 s&@srcdir@&$ac_srcdir&;t t
54120 s&@abs_srcdir@&$ac_abs_srcdir&;t t
54121 s&@top_srcdir@&$ac_top_srcdir&;t t
54122 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
54123 s&@builddir@&$ac_builddir&;t t
54124 s&@abs_builddir@&$ac_abs_builddir&;t t
54125 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
54126 s&@INSTALL@&$ac_INSTALL&;t t
54127 s&@MKDIR_P@&$ac_MKDIR_P&;t t
54128 $ac_datarootdir_hack
54129 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
54130
54131 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
54132   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
54133   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
54134   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
54135 which seems to be undefined.  Please make sure it is defined." >&5
54136 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
54137 which seems to be undefined.  Please make sure it is defined." >&2;}
54138
54139   rm -f "$tmp/stdin"
54140   case $ac_file in
54141   -) cat "$tmp/out"; rm -f "$tmp/out";;
54142   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
54143   esac
54144  ;;
54145   :H)
54146   #
54147   # CONFIG_HEADER
54148   #
54149 _ACEOF
54150
54151 # Transform confdefs.h into a sed script `conftest.defines', that
54152 # substitutes the proper values into config.h.in to produce config.h.
54153 rm -f conftest.defines conftest.tail
54154 # First, append a space to every undef/define line, to ease matching.
54155 echo 's/$/ /' >conftest.defines
54156 # Then, protect against being on the right side of a sed subst, or in
54157 # an unquoted here document, in config.status.  If some macros were
54158 # called several times there might be several #defines for the same
54159 # symbol, which is useless.  But do not sort them, since the last
54160 # AC_DEFINE must be honored.
54161 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
54162 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
54163 # NAME is the cpp macro being defined, VALUE is the value it is being given.
54164 # PARAMS is the parameter list in the macro definition--in most cases, it's
54165 # just an empty string.
54166 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
54167 ac_dB='\\)[      (].*,\\1define\\2'
54168 ac_dC=' '
54169 ac_dD=' ,'
54170
54171 uniq confdefs.h |
54172   sed -n '
54173         t rset
54174         :rset
54175         s/^[     ]*#[    ]*define[       ][      ]*//
54176         t ok
54177         d
54178         :ok
54179         s/[\\&,]/\\&/g
54180         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
54181         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
54182   ' >>conftest.defines
54183
54184 # Remove the space that was appended to ease matching.
54185 # Then replace #undef with comments.  This is necessary, for
54186 # example, in the case of _POSIX_SOURCE, which is predefined and required
54187 # on some systems where configure will not decide to define it.
54188 # (The regexp can be short, since the line contains either #define or #undef.)
54189 echo 's/ $//
54190 s,^[     #]*u.*,/* & */,' >>conftest.defines
54191
54192 # Break up conftest.defines:
54193 ac_max_sed_lines=50
54194
54195 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
54196 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
54197 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
54198 # et cetera.
54199 ac_in='$ac_file_inputs'
54200 ac_out='"$tmp/out1"'
54201 ac_nxt='"$tmp/out2"'
54202
54203 while :
54204 do
54205   # Write a here document:
54206     cat >>$CONFIG_STATUS <<_ACEOF
54207     # First, check the format of the line:
54208     cat >"\$tmp/defines.sed" <<\\CEOF
54209 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
54210 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
54211 b
54212 :def
54213 _ACEOF
54214   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
54215   echo 'CEOF
54216     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
54217   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
54218   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
54219   grep . conftest.tail >/dev/null || break
54220   rm -f conftest.defines
54221   mv conftest.tail conftest.defines
54222 done
54223 rm -f conftest.defines conftest.tail
54224
54225 echo "ac_result=$ac_in" >>$CONFIG_STATUS
54226 cat >>$CONFIG_STATUS <<\_ACEOF
54227   if test x"$ac_file" != x-; then
54228     echo "/* $configure_input  */" >"$tmp/config.h"
54229     cat "$ac_result" >>"$tmp/config.h"
54230     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
54231       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
54232 echo "$as_me: $ac_file is unchanged" >&6;}
54233     else
54234       rm -f $ac_file
54235       mv "$tmp/config.h" $ac_file
54236     fi
54237   else
54238     echo "/* $configure_input  */"
54239     cat "$ac_result"
54240   fi
54241   rm -f "$tmp/out12"
54242 # Compute $ac_file's index in $config_headers.
54243 _am_stamp_count=1
54244 for _am_header in $config_headers :; do
54245   case $_am_header in
54246     $ac_file | $ac_file:* )
54247       break ;;
54248     * )
54249       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
54250   esac
54251 done
54252 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
54253 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54254          X$ac_file : 'X\(//\)[^/]' \| \
54255          X$ac_file : 'X\(//\)$' \| \
54256          X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
54257 echo X$ac_file |
54258     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
54259             s//\1/
54260             q
54261           }
54262           /^X\(\/\/\)[^/].*/{
54263             s//\1/
54264             q
54265           }
54266           /^X\(\/\/\)$/{
54267             s//\1/
54268             q
54269           }
54270           /^X\(\/\).*/{
54271             s//\1/
54272             q
54273           }
54274           s/.*/./; q'`/stamp-h$_am_stamp_count
54275  ;;
54276
54277
54278   esac
54279
54280 done # for ac_tag
54281
54282
54283 { (exit 0); exit 0; }
54284 _ACEOF
54285 chmod +x $CONFIG_STATUS
54286 ac_clean_files=$ac_clean_files_save
54287
54288
54289 # configure is writing to config.log, and then calls config.status.
54290 # config.status does its own redirection, appending to config.log.
54291 # Unfortunately, on DOS this fails, as config.log is still kept open
54292 # by configure, so config.status won't be able to write to it; its
54293 # output is simply discarded.  So we exec the FD to /dev/null,
54294 # effectively closing config.log, so it can be properly (re)opened and
54295 # appended to by config.status.  When coming back to configure, we
54296 # need to make the FD available again.
54297 if test "$no_create" != yes; then
54298   ac_cs_success=:
54299   ac_config_status_args=
54300   test "$silent" = yes &&
54301     ac_config_status_args="$ac_config_status_args --quiet"
54302   exec 5>/dev/null
54303   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
54304   exec 5>>config.log
54305   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
54306   # would make configure fail if this is the last instruction.
54307   $ac_cs_success || { (exit 1); exit 1; }
54308 fi
54309
54310
54311
54312 cat > include/newversion.h.in <<EOF
54313 const char *heimdal_long_version = "@(#)\$Version: $PACKAGE_STRING by @USER@ on @HOST@ ($host) @DATE@ \$";
54314 const char *heimdal_version = "Heimdal 1.1";
54315 EOF
54316
54317 if test -f include/version.h && cmp -s include/newversion.h.in include/version.h.in; then
54318         echo "include/version.h is unchanged"
54319         rm -f include/newversion.h.in
54320 else
54321         echo "creating include/version.h"
54322         User=${USER-${LOGNAME}}
54323         Host=`(hostname || uname -n || echo unknown) 2>/dev/null | sed 1q`
54324         Date=`date`
54325         mv -f include/newversion.h.in include/version.h.in
54326         sed -e "s/@USER@/$User/" -e "s/@HOST@/$Host/" -e "s/@DATE@/$Date/" include/version.h.in > include/version.h
54327 fi