Imported Debian patch 1.6.9p11-1
[debian/sudo] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for sudo 1.6.9.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21   setopt NO_GLOB_SUBST
22 else
23   case `(set -o) 2>/dev/null` in
24   *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42   echo "#! /bin/sh" >conf$$.sh
43   echo  "exit 0"   >>conf$$.sh
44   chmod +x conf$$.sh
45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46     PATH_SEPARATOR=';'
47   else
48     PATH_SEPARATOR=:
49   fi
50   rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55   as_unset=unset
56 else
57   as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order.  Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" ""        $as_nl"
69
70 # Find who we are.  Look in the path if we contain no directory separator.
71 case $0 in
72   *[\\/]* ) as_myself=$0 ;;
73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76   IFS=$as_save_IFS
77   test -z "$as_dir" && as_dir=.
78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82      ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87   as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91   { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106   LC_TELEPHONE LC_TIME
107 do
108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109     eval $as_var=C; export $as_var
110   else
111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112   fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
118   as_expr=expr
119 else
120   as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124   as_basename=basename
125 else
126   as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133          X"$0" : 'X\(//\)$' \| \
134          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136     sed '/^.*\/\([^/][^/]*\)\/*$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\/\)$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\).*/{
145             s//\1/
146             q
147           }
148           s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155   if (eval ":") 2>/dev/null; then
156   as_have_required=yes
157 else
158   as_have_required=no
159 fi
160
161   if test $as_have_required = yes &&     (eval ":
162 (as_func_return () {
163   (exit \$1)
164 }
165 as_func_success () {
166   as_func_return 0
167 }
168 as_func_failure () {
169   as_func_return 1
170 }
171 as_func_ret_success () {
172   return 0
173 }
174 as_func_ret_failure () {
175   return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180   :
181 else
182   exitcode=1
183   echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187   exitcode=1
188   echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192   :
193 else
194   exitcode=1
195   echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199   exitcode=1
200   echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204   :
205 else
206   exitcode=1
207   echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213   as_lineno_1=\$LINENO
214   as_lineno_2=\$LINENO
215   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218   :
219 else
220   as_candidate_shells=
221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224   IFS=$as_save_IFS
225   test -z "$as_dir" && as_dir=.
226   case $as_dir in
227          /*)
228            for as_base in sh bash ksh sh5; do
229              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230            done;;
231        esac
232 done
233 IFS=$as_save_IFS
234
235
236       for as_shell in $as_candidate_shells $SHELL; do
237          # Try only shells that exist, to save several forks.
238          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239                 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241   emulate sh
242   NULLCMD=:
243   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244   # is contrary to our usage.  Disable this feature.
245   alias -g '${1+"$@"}'='"$@"'
246   setopt NO_GLOB_SUBST
247 else
248   case `(set -o) 2>/dev/null` in
249   *posix*) set -o posix ;;
250 esac
251
252 fi
253
254
255 :
256 _ASEOF
257 }; then
258   CONFIG_SHELL=$as_shell
259                as_have_required=yes
260                if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in
270   *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 (as_func_return () {
278   (exit $1)
279 }
280 as_func_success () {
281   as_func_return 0
282 }
283 as_func_failure () {
284   as_func_return 1
285 }
286 as_func_ret_success () {
287   return 0
288 }
289 as_func_ret_failure () {
290   return 1
291 }
292
293 exitcode=0
294 if as_func_success; then
295   :
296 else
297   exitcode=1
298   echo as_func_success failed.
299 fi
300
301 if as_func_failure; then
302   exitcode=1
303   echo as_func_failure succeeded.
304 fi
305
306 if as_func_ret_success; then
307   :
308 else
309   exitcode=1
310   echo as_func_ret_success failed.
311 fi
312
313 if as_func_ret_failure; then
314   exitcode=1
315   echo as_func_ret_failure succeeded.
316 fi
317
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
319   :
320 else
321   exitcode=1
322   echo positional parameters were not saved.
323 fi
324
325 test $exitcode = 0) || { (exit 1); exit 1; }
326
327 (
328   as_lineno_1=$LINENO
329   as_lineno_2=$LINENO
330   test "x$as_lineno_1" != "x$as_lineno_2" &&
331   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333 _ASEOF
334 }; then
335   break
336 fi
337
338 fi
339
340       done
341
342       if test "x$CONFIG_SHELL" != x; then
343   for as_var in BASH_ENV ENV
344         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345         done
346         export CONFIG_SHELL
347         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348 fi
349
350
351     if test $as_have_required = no; then
352   echo This script requires a shell more modern than all the
353       echo shells that I found on your system.  Please install a
354       echo modern shell, or manually run the script under such a
355       echo shell if you do have one.
356       { (exit 1); exit 1; }
357 fi
358
359
360 fi
361
362 fi
363
364
365
366 (eval "as_func_return () {
367   (exit \$1)
368 }
369 as_func_success () {
370   as_func_return 0
371 }
372 as_func_failure () {
373   as_func_return 1
374 }
375 as_func_ret_success () {
376   return 0
377 }
378 as_func_ret_failure () {
379   return 1
380 }
381
382 exitcode=0
383 if as_func_success; then
384   :
385 else
386   exitcode=1
387   echo as_func_success failed.
388 fi
389
390 if as_func_failure; then
391   exitcode=1
392   echo as_func_failure succeeded.
393 fi
394
395 if as_func_ret_success; then
396   :
397 else
398   exitcode=1
399   echo as_func_ret_success failed.
400 fi
401
402 if as_func_ret_failure; then
403   exitcode=1
404   echo as_func_ret_failure succeeded.
405 fi
406
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408   :
409 else
410   exitcode=1
411   echo positional parameters were not saved.
412 fi
413
414 test \$exitcode = 0") || {
415   echo No shell found that supports shell functions.
416   echo Please tell autoconf@gnu.org about your system,
417   echo including any error possibly output before this
418   echo message
419 }
420
421
422
423   as_lineno_1=$LINENO
424   as_lineno_2=$LINENO
425   test "x$as_lineno_1" != "x$as_lineno_2" &&
426   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429   # uniformly replaced by the line number.  The first 'sed' inserts a
430   # line-number line after each line using $LINENO; the second 'sed'
431   # does the real work.  The second script uses 'N' to pair each
432   # line-number line with the line containing $LINENO, and appends
433   # trailing '-' during substitution so that $LINENO is not a special
434   # case at line end.
435   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436   # scripts with optimization help from Paolo Bonzini.  Blame Lee
437   # E. McMahon (1931-1989) for sed's syntax.  :-)
438   sed -n '
439     p
440     /[$]LINENO/=
441   ' <$as_myself |
442     sed '
443       s/[$]LINENO.*/&-/
444       t lineno
445       b
446       :lineno
447       N
448       :loop
449       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450       t loop
451       s/-\n.*//
452     ' >$as_me.lineno &&
453   chmod +x "$as_me.lineno" ||
454     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455    { (exit 1); exit 1; }; }
456
457   # Don't try to exec as it changes $[0], causing all sort of problems
458   # (the dirname of $[0] is not the place where we might find the
459   # original and so on.  Autoconf is especially sensitive to this).
460   . "./$as_me.lineno"
461   # Exit status is that of the last command.
462   exit
463 }
464
465
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467   as_dirname=dirname
468 else
469   as_dirname=false
470 fi
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475   case `echo 'x\c'` in
476   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
477   *)   ECHO_C='\c';;
478   esac;;
479 *)
480   ECHO_N='-n';;
481 esac
482
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484    test "X`expr 00001 : '.*\(...\)'`" = X001; then
485   as_expr=expr
486 else
487   as_expr=false
488 fi
489
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492   rm -f conf$$.dir/conf$$.file
493 else
494   rm -f conf$$.dir
495   mkdir conf$$.dir
496 fi
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499   as_ln_s='ln -s'
500   # ... but there are two gotchas:
501   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503   # In both cases, we have to default to `cp -p'.
504   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505     as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507   as_ln_s=ln
508 else
509   as_ln_s='cp -p'
510 fi
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
513
514 if mkdir -p . 2>/dev/null; then
515   as_mkdir_p=:
516 else
517   test -d ./-p && rmdir ./-p
518   as_mkdir_p=false
519 fi
520
521 if test -x / >/dev/null 2>&1; then
522   as_test_x='test -x'
523 else
524   if ls -dL / >/dev/null 2>&1; then
525     as_ls_L_option=L
526   else
527     as_ls_L_option=
528   fi
529   as_test_x='
530     eval sh -c '\''
531       if test -d "$1"; then
532         test -d "$1/.";
533       else
534         case $1 in
535         -*)set "./$1";;
536         esac;
537         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538         ???[sx]*):;;*)false;;esac;fi
539     '\'' sh
540   '
541 fi
542 as_executable_p=$as_test_x
543
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552
553 # Check that we are running under the correct shell.
554 SHELL=${CONFIG_SHELL-/bin/sh}
555
556 case X$ECHO in
557 X*--fallback-echo)
558   # Remove one level of quotation (which was required for Make).
559   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
560   ;;
561 esac
562
563 echo=${ECHO-echo}
564 if test "X$1" = X--no-reexec; then
565   # Discard the --no-reexec flag, and continue.
566   shift
567 elif test "X$1" = X--fallback-echo; then
568   # Avoid inline document here, it may be left over
569   :
570 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
571   # Yippee, $echo works!
572   :
573 else
574   # Restart under the correct shell.
575   exec $SHELL "$0" --no-reexec ${1+"$@"}
576 fi
577
578 if test "X$1" = X--fallback-echo; then
579   # used as fallback echo
580   shift
581   cat <<EOF
582 $*
583 EOF
584   exit 0
585 fi
586
587 # The HP-UX ksh and POSIX shell print the target directory to stdout
588 # if CDPATH is set.
589 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
590
591 if test -z "$ECHO"; then
592 if test "X${echo_test_string+set}" != Xset; then
593 # find a string as large as possible, as long as the shell can cope with it
594   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
597        echo_test_string=`eval $cmd` &&
598        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
599     then
600       break
601     fi
602   done
603 fi
604
605 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
606    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
607    test "X$echo_testing_string" = "X$echo_test_string"; then
608   :
609 else
610   # The Solaris, AIX, and Digital Unix default echo programs unquote
611   # backslashes.  This makes it impossible to quote backslashes using
612   #   echo "$something" | sed 's/\\/\\\\/g'
613   #
614   # So, first we look for a working echo in the user's PATH.
615
616   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
617   for dir in $PATH /usr/ucb; do
618     IFS="$lt_save_ifs"
619     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
620        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
621        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
622        test "X$echo_testing_string" = "X$echo_test_string"; then
623       echo="$dir/echo"
624       break
625     fi
626   done
627   IFS="$lt_save_ifs"
628
629   if test "X$echo" = Xecho; then
630     # We didn't find a better echo, so look for alternatives.
631     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
632        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
633        test "X$echo_testing_string" = "X$echo_test_string"; then
634       # This shell has a builtin print -r that does the trick.
635       echo='print -r'
636     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
637          test "X$CONFIG_SHELL" != X/bin/ksh; then
638       # If we have ksh, try running configure again with it.
639       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
640       export ORIGINAL_CONFIG_SHELL
641       CONFIG_SHELL=/bin/ksh
642       export CONFIG_SHELL
643       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
644     else
645       # Try using printf.
646       echo='printf %s\n'
647       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
648          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
649          test "X$echo_testing_string" = "X$echo_test_string"; then
650         # Cool, printf works
651         :
652       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
653            test "X$echo_testing_string" = 'X\t' &&
654            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
655            test "X$echo_testing_string" = "X$echo_test_string"; then
656         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
657         export CONFIG_SHELL
658         SHELL="$CONFIG_SHELL"
659         export SHELL
660         echo="$CONFIG_SHELL $0 --fallback-echo"
661       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
662            test "X$echo_testing_string" = 'X\t' &&
663            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
664            test "X$echo_testing_string" = "X$echo_test_string"; then
665         echo="$CONFIG_SHELL $0 --fallback-echo"
666       else
667         # maybe with a smaller string...
668         prev=:
669
670         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
671           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
672           then
673             break
674           fi
675           prev="$cmd"
676         done
677
678         if test "$prev" != 'sed 50q "$0"'; then
679           echo_test_string=`eval $prev`
680           export echo_test_string
681           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
682         else
683           # Oops.  We lost completely, so just stick with echo.
684           echo=echo
685         fi
686       fi
687     fi
688   fi
689 fi
690 fi
691
692 # Copy echo and quote the copy suitably for passing to libtool from
693 # the Makefile, instead of quoting the original, which is used later.
694 ECHO=$echo
695 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
696    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
697 fi
698
699
700
701
702 exec 7<&0 </dev/null 6>&1
703
704 # Name of the host.
705 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
706 # so uname gets run too.
707 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
708
709 #
710 # Initializations.
711 #
712 ac_default_prefix=/usr/local
713 ac_clean_files=
714 ac_config_libobj_dir=.
715 LIBOBJS=
716 cross_compiling=no
717 subdirs=
718 MFLAGS=
719 MAKEFLAGS=
720 SHELL=${CONFIG_SHELL-/bin/sh}
721
722 # Identity of this package.
723 PACKAGE_NAME='sudo'
724 PACKAGE_TARNAME='sudo'
725 PACKAGE_VERSION='1.6.9'
726 PACKAGE_STRING='sudo 1.6.9'
727 PACKAGE_BUGREPORT=''
728
729 # Factoring default headers for most tests.
730 ac_includes_default="\
731 #include <stdio.h>
732 #ifdef HAVE_SYS_TYPES_H
733 # include <sys/types.h>
734 #endif
735 #ifdef HAVE_SYS_STAT_H
736 # include <sys/stat.h>
737 #endif
738 #ifdef STDC_HEADERS
739 # include <stdlib.h>
740 # include <stddef.h>
741 #else
742 # ifdef HAVE_STDLIB_H
743 #  include <stdlib.h>
744 # endif
745 #endif
746 #ifdef HAVE_STRING_H
747 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
748 #  include <memory.h>
749 # endif
750 # include <string.h>
751 #endif
752 #ifdef HAVE_STRINGS_H
753 # include <strings.h>
754 #endif
755 #ifdef HAVE_INTTYPES_H
756 # include <inttypes.h>
757 #endif
758 #ifdef HAVE_STDINT_H
759 # include <stdint.h>
760 #endif
761 #ifdef HAVE_UNISTD_H
762 # include <unistd.h>
763 #endif"
764
765 ac_subst_vars='SHELL
766 PATH_SEPARATOR
767 PACKAGE_NAME
768 PACKAGE_TARNAME
769 PACKAGE_VERSION
770 PACKAGE_STRING
771 PACKAGE_BUGREPORT
772 exec_prefix
773 prefix
774 program_transform_name
775 bindir
776 sbindir
777 libexecdir
778 datarootdir
779 datadir
780 sysconfdir
781 sharedstatedir
782 localstatedir
783 includedir
784 oldincludedir
785 docdir
786 infodir
787 htmldir
788 dvidir
789 pdfdir
790 psdir
791 libdir
792 localedir
793 mandir
794 DEFS
795 ECHO_C
796 ECHO_N
797 ECHO_T
798 LIBS
799 build_alias
800 host_alias
801 target_alias
802 LIBTOOL
803 CFLAGS
804 PROGS
805 CPPFLAGS
806 LDFLAGS
807 SUDO_LDFLAGS
808 SUDO_OBJS
809 SUDO_LIBS
810 NET_LIBS
811 AFS_LIBS
812 GETGROUPS_LIB
813 OSDEFS
814 AUTH_OBJS
815 MANTYPE
816 MAN_POSTINSTALL
817 SUDOERS_MODE
818 SUDOERS_UID
819 SUDOERS_GID
820 DEV
821 mansectsu
822 mansectform
823 mansrcdir
824 NOEXECDIR
825 noexec_file
826 INSTALL_NOEXEC
827 DONT_LEAK_PATH_INFO
828 timedir
829 timeout
830 password_timeout
831 sudo_umask
832 passprompt
833 long_otp_prompt
834 lecture
835 logfac
836 goodpri
837 badpri
838 loglen
839 ignore_dot
840 mail_no_user
841 mail_no_host
842 mail_no_perms
843 mailto
844 mailsub
845 badpass_message
846 fqdn
847 runas_default
848 env_editor
849 passwd_tries
850 tty_tickets
851 insults
852 root_sudo
853 path_info
854 EGREPPROG
855 CC
856 ac_ct_CC
857 EXEEXT
858 OBJEXT
859 CPP
860 build
861 build_cpu
862 build_vendor
863 build_os
864 host
865 host_cpu
866 host_vendor
867 host_os
868 target
869 target_cpu
870 target_vendor
871 target_os
872 SED
873 GREP
874 EGREP
875 LN_S
876 ECHO
877 AR
878 RANLIB
879 STRIP
880 UNAMEPROG
881 TRPROG
882 NROFFPROG
883 YACC
884 YFLAGS
885 LIBOBJS
886 ALLOCA
887 KRB5CONFIG
888 LTLIBOBJS'
889 ac_subst_files=''
890       ac_precious_vars='build_alias
891 host_alias
892 target_alias
893 CC
894 CFLAGS
895 LDFLAGS
896 LIBS
897 CPPFLAGS
898 CPP
899 YACC
900 YFLAGS'
901
902
903 # Initialize some variables set by options.
904 ac_init_help=
905 ac_init_version=false
906 # The variables have the same names as the options, with
907 # dashes changed to underlines.
908 cache_file=/dev/null
909 exec_prefix=NONE
910 no_create=
911 no_recursion=
912 prefix=NONE
913 program_prefix=NONE
914 program_suffix=NONE
915 program_transform_name=s,x,x,
916 silent=
917 site=
918 srcdir=
919 verbose=
920 x_includes=NONE
921 x_libraries=NONE
922
923 # Installation directory options.
924 # These are left unexpanded so users can "make install exec_prefix=/foo"
925 # and all the variables that are supposed to be based on exec_prefix
926 # by default will actually change.
927 # Use braces instead of parens because sh, perl, etc. also accept them.
928 # (The list follows the same order as the GNU Coding Standards.)
929 bindir='${exec_prefix}/bin'
930 sbindir='${exec_prefix}/sbin'
931 libexecdir='${exec_prefix}/libexec'
932 datarootdir='${prefix}/share'
933 datadir='${datarootdir}'
934 sysconfdir='${prefix}/etc'
935 sharedstatedir='${prefix}/com'
936 localstatedir='${prefix}/var'
937 includedir='${prefix}/include'
938 oldincludedir='/usr/include'
939 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
940 infodir='${datarootdir}/info'
941 htmldir='${docdir}'
942 dvidir='${docdir}'
943 pdfdir='${docdir}'
944 psdir='${docdir}'
945 libdir='${exec_prefix}/lib'
946 localedir='${datarootdir}/locale'
947 mandir='${datarootdir}/man'
948
949 ac_prev=
950 ac_dashdash=
951 for ac_option
952 do
953   # If the previous option needs an argument, assign it.
954   if test -n "$ac_prev"; then
955     eval $ac_prev=\$ac_option
956     ac_prev=
957     continue
958   fi
959
960   case $ac_option in
961   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
962   *)    ac_optarg=yes ;;
963   esac
964
965   # Accept the important Cygnus configure options, so we can diagnose typos.
966
967   case $ac_dashdash$ac_option in
968   --)
969     ac_dashdash=yes ;;
970
971   -bindir | --bindir | --bindi | --bind | --bin | --bi)
972     ac_prev=bindir ;;
973   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
974     bindir=$ac_optarg ;;
975
976   -build | --build | --buil | --bui | --bu)
977     ac_prev=build_alias ;;
978   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
979     build_alias=$ac_optarg ;;
980
981   -cache-file | --cache-file | --cache-fil | --cache-fi \
982   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
983     ac_prev=cache_file ;;
984   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
985   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
986     cache_file=$ac_optarg ;;
987
988   --config-cache | -C)
989     cache_file=config.cache ;;
990
991   -datadir | --datadir | --datadi | --datad)
992     ac_prev=datadir ;;
993   -datadir=* | --datadir=* | --datadi=* | --datad=*)
994     datadir=$ac_optarg ;;
995
996   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
997   | --dataroo | --dataro | --datar)
998     ac_prev=datarootdir ;;
999   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1000   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1001     datarootdir=$ac_optarg ;;
1002
1003   -disable-* | --disable-*)
1004     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1005     # Reject names that are not valid shell variable names.
1006     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1007       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1008    { (exit 1); exit 1; }; }
1009     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1010     eval enable_$ac_feature=no ;;
1011
1012   -docdir | --docdir | --docdi | --doc | --do)
1013     ac_prev=docdir ;;
1014   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1015     docdir=$ac_optarg ;;
1016
1017   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1018     ac_prev=dvidir ;;
1019   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1020     dvidir=$ac_optarg ;;
1021
1022   -enable-* | --enable-*)
1023     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1024     # Reject names that are not valid shell variable names.
1025     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1026       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1027    { (exit 1); exit 1; }; }
1028     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1029     eval enable_$ac_feature=\$ac_optarg ;;
1030
1031   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1032   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1033   | --exec | --exe | --ex)
1034     ac_prev=exec_prefix ;;
1035   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1036   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1037   | --exec=* | --exe=* | --ex=*)
1038     exec_prefix=$ac_optarg ;;
1039
1040   -gas | --gas | --ga | --g)
1041     # Obsolete; use --with-gas.
1042     with_gas=yes ;;
1043
1044   -help | --help | --hel | --he | -h)
1045     ac_init_help=long ;;
1046   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1047     ac_init_help=recursive ;;
1048   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1049     ac_init_help=short ;;
1050
1051   -host | --host | --hos | --ho)
1052     ac_prev=host_alias ;;
1053   -host=* | --host=* | --hos=* | --ho=*)
1054     host_alias=$ac_optarg ;;
1055
1056   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1057     ac_prev=htmldir ;;
1058   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1059   | --ht=*)
1060     htmldir=$ac_optarg ;;
1061
1062   -includedir | --includedir | --includedi | --included | --include \
1063   | --includ | --inclu | --incl | --inc)
1064     ac_prev=includedir ;;
1065   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1066   | --includ=* | --inclu=* | --incl=* | --inc=*)
1067     includedir=$ac_optarg ;;
1068
1069   -infodir | --infodir | --infodi | --infod | --info | --inf)
1070     ac_prev=infodir ;;
1071   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1072     infodir=$ac_optarg ;;
1073
1074   -libdir | --libdir | --libdi | --libd)
1075     ac_prev=libdir ;;
1076   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1077     libdir=$ac_optarg ;;
1078
1079   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1080   | --libexe | --libex | --libe)
1081     ac_prev=libexecdir ;;
1082   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1083   | --libexe=* | --libex=* | --libe=*)
1084     libexecdir=$ac_optarg ;;
1085
1086   -localedir | --localedir | --localedi | --localed | --locale)
1087     ac_prev=localedir ;;
1088   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1089     localedir=$ac_optarg ;;
1090
1091   -localstatedir | --localstatedir | --localstatedi | --localstated \
1092   | --localstate | --localstat | --localsta | --localst | --locals)
1093     ac_prev=localstatedir ;;
1094   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1095   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1096     localstatedir=$ac_optarg ;;
1097
1098   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1099     ac_prev=mandir ;;
1100   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1101     mandir=$ac_optarg ;;
1102
1103   -nfp | --nfp | --nf)
1104     # Obsolete; use --without-fp.
1105     with_fp=no ;;
1106
1107   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1108   | --no-cr | --no-c | -n)
1109     no_create=yes ;;
1110
1111   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1112   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1113     no_recursion=yes ;;
1114
1115   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1116   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1117   | --oldin | --oldi | --old | --ol | --o)
1118     ac_prev=oldincludedir ;;
1119   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1120   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1121   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1122     oldincludedir=$ac_optarg ;;
1123
1124   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1125     ac_prev=prefix ;;
1126   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1127     prefix=$ac_optarg ;;
1128
1129   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1130   | --program-pre | --program-pr | --program-p)
1131     ac_prev=program_prefix ;;
1132   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1133   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1134     program_prefix=$ac_optarg ;;
1135
1136   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1137   | --program-suf | --program-su | --program-s)
1138     ac_prev=program_suffix ;;
1139   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1140   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1141     program_suffix=$ac_optarg ;;
1142
1143   -program-transform-name | --program-transform-name \
1144   | --program-transform-nam | --program-transform-na \
1145   | --program-transform-n | --program-transform- \
1146   | --program-transform | --program-transfor \
1147   | --program-transfo | --program-transf \
1148   | --program-trans | --program-tran \
1149   | --progr-tra | --program-tr | --program-t)
1150     ac_prev=program_transform_name ;;
1151   -program-transform-name=* | --program-transform-name=* \
1152   | --program-transform-nam=* | --program-transform-na=* \
1153   | --program-transform-n=* | --program-transform-=* \
1154   | --program-transform=* | --program-transfor=* \
1155   | --program-transfo=* | --program-transf=* \
1156   | --program-trans=* | --program-tran=* \
1157   | --progr-tra=* | --program-tr=* | --program-t=*)
1158     program_transform_name=$ac_optarg ;;
1159
1160   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1161     ac_prev=pdfdir ;;
1162   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1163     pdfdir=$ac_optarg ;;
1164
1165   -psdir | --psdir | --psdi | --psd | --ps)
1166     ac_prev=psdir ;;
1167   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1168     psdir=$ac_optarg ;;
1169
1170   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1171   | -silent | --silent | --silen | --sile | --sil)
1172     silent=yes ;;
1173
1174   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1175     ac_prev=sbindir ;;
1176   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1177   | --sbi=* | --sb=*)
1178     sbindir=$ac_optarg ;;
1179
1180   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1181   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1182   | --sharedst | --shareds | --shared | --share | --shar \
1183   | --sha | --sh)
1184     ac_prev=sharedstatedir ;;
1185   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1186   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1187   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1188   | --sha=* | --sh=*)
1189     sharedstatedir=$ac_optarg ;;
1190
1191   -site | --site | --sit)
1192     ac_prev=site ;;
1193   -site=* | --site=* | --sit=*)
1194     site=$ac_optarg ;;
1195
1196   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1197     ac_prev=srcdir ;;
1198   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1199     srcdir=$ac_optarg ;;
1200
1201   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1202   | --syscon | --sysco | --sysc | --sys | --sy)
1203     ac_prev=sysconfdir ;;
1204   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1205   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1206     sysconfdir=$ac_optarg ;;
1207
1208   -target | --target | --targe | --targ | --tar | --ta | --t)
1209     ac_prev=target_alias ;;
1210   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1211     target_alias=$ac_optarg ;;
1212
1213   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1214     verbose=yes ;;
1215
1216   -version | --version | --versio | --versi | --vers | -V)
1217     ac_init_version=: ;;
1218
1219   -with-* | --with-*)
1220     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1221     # Reject names that are not valid shell variable names.
1222     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1223       { echo "$as_me: error: invalid package name: $ac_package" >&2
1224    { (exit 1); exit 1; }; }
1225     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1226     eval with_$ac_package=\$ac_optarg ;;
1227
1228   -without-* | --without-*)
1229     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1230     # Reject names that are not valid shell variable names.
1231     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1232       { echo "$as_me: error: invalid package name: $ac_package" >&2
1233    { (exit 1); exit 1; }; }
1234     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1235     eval with_$ac_package=no ;;
1236
1237   --x)
1238     # Obsolete; use --with-x.
1239     with_x=yes ;;
1240
1241   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1242   | --x-incl | --x-inc | --x-in | --x-i)
1243     ac_prev=x_includes ;;
1244   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1245   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1246     x_includes=$ac_optarg ;;
1247
1248   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1249   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1250     ac_prev=x_libraries ;;
1251   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1252   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1253     x_libraries=$ac_optarg ;;
1254
1255   -*) { echo "$as_me: error: unrecognized option: $ac_option
1256 Try \`$0 --help' for more information." >&2
1257    { (exit 1); exit 1; }; }
1258     ;;
1259
1260   *=*)
1261     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1262     # Reject names that are not valid shell variable names.
1263     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1264       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1265    { (exit 1); exit 1; }; }
1266     eval $ac_envvar=\$ac_optarg
1267     export $ac_envvar ;;
1268
1269   *)
1270     # FIXME: should be removed in autoconf 3.0.
1271     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1272     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1273       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1274     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1275     ;;
1276
1277   esac
1278 done
1279
1280 if test -n "$ac_prev"; then
1281   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1282   { echo "$as_me: error: missing argument to $ac_option" >&2
1283    { (exit 1); exit 1; }; }
1284 fi
1285
1286 # Be sure to have absolute directory names.
1287 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1288                 datadir sysconfdir sharedstatedir localstatedir includedir \
1289                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1290                 libdir localedir mandir
1291 do
1292   eval ac_val=\$$ac_var
1293   case $ac_val in
1294     [\\/$]* | ?:[\\/]* )  continue;;
1295     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1296   esac
1297   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1298    { (exit 1); exit 1; }; }
1299 done
1300
1301 # There might be people who depend on the old broken behavior: `$host'
1302 # used to hold the argument of --host etc.
1303 # FIXME: To remove some day.
1304 build=$build_alias
1305 host=$host_alias
1306 target=$target_alias
1307
1308 # FIXME: To remove some day.
1309 if test "x$host_alias" != x; then
1310   if test "x$build_alias" = x; then
1311     cross_compiling=maybe
1312     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1313     If a cross compiler is detected then cross compile mode will be used." >&2
1314   elif test "x$build_alias" != "x$host_alias"; then
1315     cross_compiling=yes
1316   fi
1317 fi
1318
1319 ac_tool_prefix=
1320 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1321
1322 test "$silent" = yes && exec 6>/dev/null
1323
1324
1325 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1326 ac_ls_di=`ls -di .` &&
1327 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1328   { echo "$as_me: error: Working directory cannot be determined" >&2
1329    { (exit 1); exit 1; }; }
1330 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1331   { echo "$as_me: error: pwd does not report name of working directory" >&2
1332    { (exit 1); exit 1; }; }
1333
1334
1335 # Find the source files, if location was not specified.
1336 if test -z "$srcdir"; then
1337   ac_srcdir_defaulted=yes
1338   # Try the directory containing this script, then the parent directory.
1339   ac_confdir=`$as_dirname -- "$0" ||
1340 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1341          X"$0" : 'X\(//\)[^/]' \| \
1342          X"$0" : 'X\(//\)$' \| \
1343          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1344 echo X"$0" |
1345     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1346             s//\1/
1347             q
1348           }
1349           /^X\(\/\/\)[^/].*/{
1350             s//\1/
1351             q
1352           }
1353           /^X\(\/\/\)$/{
1354             s//\1/
1355             q
1356           }
1357           /^X\(\/\).*/{
1358             s//\1/
1359             q
1360           }
1361           s/.*/./; q'`
1362   srcdir=$ac_confdir
1363   if test ! -r "$srcdir/$ac_unique_file"; then
1364     srcdir=..
1365   fi
1366 else
1367   ac_srcdir_defaulted=no
1368 fi
1369 if test ! -r "$srcdir/$ac_unique_file"; then
1370   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1371   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1372    { (exit 1); exit 1; }; }
1373 fi
1374 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1375 ac_abs_confdir=`(
1376         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1377    { (exit 1); exit 1; }; }
1378         pwd)`
1379 # When building in place, set srcdir=.
1380 if test "$ac_abs_confdir" = "$ac_pwd"; then
1381   srcdir=.
1382 fi
1383 # Remove unnecessary trailing slashes from srcdir.
1384 # Double slashes in file names in object file debugging info
1385 # mess up M-x gdb in Emacs.
1386 case $srcdir in
1387 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1388 esac
1389 for ac_var in $ac_precious_vars; do
1390   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1391   eval ac_env_${ac_var}_value=\$${ac_var}
1392   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1393   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1394 done
1395
1396 #
1397 # Report the --help message.
1398 #
1399 if test "$ac_init_help" = "long"; then
1400   # Omit some internal or obsolete options to make the list less imposing.
1401   # This message is too long to be a string in the A/UX 3.1 sh.
1402   cat <<_ACEOF
1403 \`configure' configures sudo 1.6.9 to adapt to many kinds of systems.
1404
1405 Usage: $0 [OPTION]... [VAR=VALUE]...
1406
1407 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1408 VAR=VALUE.  See below for descriptions of some of the useful variables.
1409
1410 Defaults for the options are specified in brackets.
1411
1412 Configuration:
1413   -h, --help              display this help and exit
1414       --help=short        display options specific to this package
1415       --help=recursive    display the short help of all the included packages
1416   -V, --version           display version information and exit
1417   -q, --quiet, --silent   do not print \`checking...' messages
1418       --cache-file=FILE   cache test results in FILE [disabled]
1419   -C, --config-cache      alias for \`--cache-file=config.cache'
1420   -n, --no-create         do not create output files
1421       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1422
1423 Installation directories:
1424   --prefix=PREFIX         install architecture-independent files in PREFIX
1425                           [$ac_default_prefix]
1426   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1427                           [PREFIX]
1428
1429 By default, \`make install' will install all the files in
1430 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1431 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1432 for instance \`--prefix=\$HOME'.
1433
1434 For better control, use the options below.
1435
1436 Fine tuning of the installation directories:
1437   --bindir=DIR           user executables [EPREFIX/bin]
1438   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1439   --libexecdir=DIR       program executables [EPREFIX/libexec]
1440   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1441   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1442   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1443   --libdir=DIR           object code libraries [EPREFIX/lib]
1444   --includedir=DIR       C header files [PREFIX/include]
1445   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1446   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1447   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1448   --infodir=DIR          info documentation [DATAROOTDIR/info]
1449   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1450   --mandir=DIR           man documentation [DATAROOTDIR/man]
1451   --docdir=DIR           documentation root [DATAROOTDIR/doc/sudo]
1452   --htmldir=DIR          html documentation [DOCDIR]
1453   --dvidir=DIR           dvi documentation [DOCDIR]
1454   --pdfdir=DIR           pdf documentation [DOCDIR]
1455   --psdir=DIR            ps documentation [DOCDIR]
1456 _ACEOF
1457
1458   cat <<\_ACEOF
1459
1460 System types:
1461   --build=BUILD     configure for building on BUILD [guessed]
1462   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1463   --target=TARGET   configure for building compilers for TARGET [HOST]
1464 _ACEOF
1465 fi
1466
1467 if test -n "$ac_init_help"; then
1468   case $ac_init_help in
1469      short | recursive ) echo "Configuration of sudo 1.6.9:";;
1470    esac
1471   cat <<\_ACEOF
1472
1473 Optional Features:
1474   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1475   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1476   --disable-authentication
1477                           Do not require authentication by default
1478   --disable-root-mailer   Don't run the mailer as root, run as the user
1479   --disable-setreuid      Don't try to use the setreuid() function
1480   --disable-setresuid     Don't try to use the setresuid() function
1481   --disable-shadow        Never use shadow passwords
1482   --disable-root-sudo     Don't allow root to run sudo
1483   --enable-log-host       Log the hostname in the log file
1484   --enable-noargs-shell   If sudo is given no arguments run a shell
1485   --enable-shell-sets-home
1486                           set $HOME to target user in shell mode
1487   --disable-path-info     Print 'command not allowed' not 'command not found'
1488   --enable-static[=PKGS]  build static libraries [default=no]
1489   --enable-shared[=PKGS]  build shared libraries [default=yes]
1490   --enable-fast-install[=PKGS]
1491                           optimize for fast installation [default=yes]
1492   --disable-libtool-lock  avoid locking (might break parallel builds)
1493   --disable-sia           Disable SIA on Digital UNIX
1494   --disable-pam-session   Disable PAM session support
1495
1496 Optional Packages:
1497   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1498   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1499   --with-otp-only         deprecated
1500   --with-alertmail        deprecated
1501   --with-CC               C compiler to use
1502   --with-rpath            pass -R flag in addition to -L for lib paths
1503   --with-blibpath=PATH    pass -blibpath flag to ld for additional lib paths
1504   --with-incpath          additional places to look for include files
1505   --with-libpath          additional places to look for libraries
1506   --with-libraries        additional libraries to link with
1507   --with-devel            add development options
1508   --with-efence           link with -lefence for malloc() debugging
1509   --with-csops            add CSOps standard options
1510   --without-passwd        don't use passwd/shadow file for authentication
1511   --with-skey=DIR         enable S/Key support
1512   --with-opie=DIR         enable OPIE support
1513   --with-long-otp-prompt  use a two line OTP (skey/opie) prompt
1514   --with-SecurID[=DIR]    enable SecurID support
1515   --with-fwtk[=DIR]       enable FWTK AuthSRV support
1516   --with-kerb4[=DIR]      enable Kerberos IV support
1517   --with-kerb5[=DIR]      enable Kerberos V support
1518   --with-aixauth          enable AIX general authentication support
1519   --with-pam              enable PAM support
1520   --with-AFS              enable AFS support
1521   --with-DCE              enable DCE support
1522   --with-logincap         enable BSD login class support
1523   --with-bsdauth          enable BSD authentication support
1524   --with-project          enable Solaris project support
1525   --without-lecture       don't print lecture for first-time sudoer
1526   --with-logging          log via syslog, file, or both
1527   --with-logfac           syslog facility to log with (default is "local2")
1528   --with-goodpri          syslog priority for commands (def is "notice")
1529   --with-badpri           syslog priority for failures (def is "alert")
1530   --with-logpath          path to the sudo log file
1531   --with-loglen           maximum length of a log file line (default is 80)
1532   --with-ignore-dot       ignore '.' in the PATH
1533   --without-mail-if-no-user do not send mail if user not in sudoers
1534   --with-mail-if-no-host  send mail if user in sudoers but not for this host
1535   --with-mail-if-noperms  send mail if user not allowed to run command
1536   --with-mailto           who should get sudo mail (default is "root")
1537   --with-mailsubject      subject of sudo mail
1538   --with-passprompt       default password prompt
1539   --with-badpass-message  message the user sees when the password is wrong
1540   --with-fqdn             expect fully qualified hosts in sudoers
1541   --with-timedir          path to the sudo timestamp dir
1542   --with-sendmail=path    set path to sendmail
1543   --without-sendmail      do not send mail at all
1544   --with-sudoers-mode     mode of sudoers file (defaults to 0440)
1545   --with-sudoers-uid      uid that owns sudoers file (defaults to 0)
1546   --with-sudoers-gid      gid that owns sudoers file (defaults to 0)
1547   --with-umask            umask with which the prog should run (default is 022)
1548   --without-umask         Preserves the umask of the user invoking sudo.
1549   --with-runas-default    User to run commands as (default is "root")
1550   --with-exempt=group     no passwd needed for users in this group
1551   --with-editor=path      Default editor for visudo (defaults to vi)
1552   --with-env-editor       Use the environment variable EDITOR for visudo
1553   --with-passwd-tries     number of tries to enter password (default is 3)
1554   --with-timeout          minutes before sudo asks for passwd again (def is 5 minutes)
1555   --with-password-timeout passwd prompt timeout in minutes (default is 5 minutes)
1556   --with-tty-tickets      use a different ticket file for each tty
1557   --with-insults          insult the user for entering an incorrect password
1558   --with-all-insults      include all the sudo insult sets
1559   --with-classic-insults  include the insults from the "classic" sudo
1560   --with-csops-insults    include CSOps insults
1561   --with-hal-insults      include 2001-like insults
1562   --with-goons-insults    include the insults from the "Goon Show"
1563   --with-ldap[=DIR]       enable LDAP support
1564   --with-ldap-conf-file   path to LDAP configuration file
1565   --with-ldap-secret-file path to LDAP secret password file
1566   --with-pc-insults       replace politically incorrect insults with less offensive ones
1567   --with-secure-path      override the user's path with a built-in one
1568   --without-interfaces    don't try to read the ip addr of ether interfaces
1569   --with-stow             properly handle GNU stow packaging
1570   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1571   --with-pic              try to use only PIC/non-PIC objects [default=use
1572                           both]
1573   --with-noexec=PATH      fully qualified pathname of sudo_noexec.so
1574
1575 Some influential environment variables:
1576   CC          C compiler command
1577   CFLAGS      C compiler flags
1578   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1579               nonstandard directory <lib dir>
1580   LIBS        libraries to pass to the linker, e.g. -l<library>
1581   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1582               you have headers in a nonstandard directory <include dir>
1583   CPP         C preprocessor
1584   YACC        The `Yet Another C Compiler' implementation to use. Defaults to
1585               the first program found out of: `bison -y', `byacc', `yacc'.
1586   YFLAGS      The list of arguments that will be passed by default to $YACC.
1587               This script will default YFLAGS to the empty string to avoid a
1588               default value of `-d' given by some make applications.
1589
1590 Use these variables to override the choices made by `configure' or to help
1591 it to find libraries and programs with nonstandard names/locations.
1592
1593 _ACEOF
1594 ac_status=$?
1595 fi
1596
1597 if test "$ac_init_help" = "recursive"; then
1598   # If there are subdirs, report their specific --help.
1599   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1600     test -d "$ac_dir" || continue
1601     ac_builddir=.
1602
1603 case "$ac_dir" in
1604 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1605 *)
1606   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1607   # A ".." for each directory in $ac_dir_suffix.
1608   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1609   case $ac_top_builddir_sub in
1610   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1611   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1612   esac ;;
1613 esac
1614 ac_abs_top_builddir=$ac_pwd
1615 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1616 # for backward compatibility:
1617 ac_top_builddir=$ac_top_build_prefix
1618
1619 case $srcdir in
1620   .)  # We are building in place.
1621     ac_srcdir=.
1622     ac_top_srcdir=$ac_top_builddir_sub
1623     ac_abs_top_srcdir=$ac_pwd ;;
1624   [\\/]* | ?:[\\/]* )  # Absolute name.
1625     ac_srcdir=$srcdir$ac_dir_suffix;
1626     ac_top_srcdir=$srcdir
1627     ac_abs_top_srcdir=$srcdir ;;
1628   *) # Relative name.
1629     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1630     ac_top_srcdir=$ac_top_build_prefix$srcdir
1631     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1632 esac
1633 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1634
1635     cd "$ac_dir" || { ac_status=$?; continue; }
1636     # Check for guested configure.
1637     if test -f "$ac_srcdir/configure.gnu"; then
1638       echo &&
1639       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1640     elif test -f "$ac_srcdir/configure"; then
1641       echo &&
1642       $SHELL "$ac_srcdir/configure" --help=recursive
1643     else
1644       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1645     fi || ac_status=$?
1646     cd "$ac_pwd" || { ac_status=$?; break; }
1647   done
1648 fi
1649
1650 test -n "$ac_init_help" && exit $ac_status
1651 if $ac_init_version; then
1652   cat <<\_ACEOF
1653 sudo configure 1.6.9
1654 generated by GNU Autoconf 2.61
1655
1656 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1657 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1658 This configure script is free software; the Free Software Foundation
1659 gives unlimited permission to copy, distribute and modify it.
1660 _ACEOF
1661   exit
1662 fi
1663 cat >config.log <<_ACEOF
1664 This file contains any messages produced by compilers while
1665 running configure, to aid debugging if configure makes a mistake.
1666
1667 It was created by sudo $as_me 1.6.9, which was
1668 generated by GNU Autoconf 2.61.  Invocation command line was
1669
1670   $ $0 $@
1671
1672 _ACEOF
1673 exec 5>>config.log
1674 {
1675 cat <<_ASUNAME
1676 ## --------- ##
1677 ## Platform. ##
1678 ## --------- ##
1679
1680 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1681 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1682 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1683 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1684 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1685
1686 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1687 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1688
1689 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1690 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1691 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1692 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1693 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1694 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1695 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1696
1697 _ASUNAME
1698
1699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1700 for as_dir in $PATH
1701 do
1702   IFS=$as_save_IFS
1703   test -z "$as_dir" && as_dir=.
1704   echo "PATH: $as_dir"
1705 done
1706 IFS=$as_save_IFS
1707
1708 } >&5
1709
1710 cat >&5 <<_ACEOF
1711
1712
1713 ## ----------- ##
1714 ## Core tests. ##
1715 ## ----------- ##
1716
1717 _ACEOF
1718
1719
1720 # Keep a trace of the command line.
1721 # Strip out --no-create and --no-recursion so they do not pile up.
1722 # Strip out --silent because we don't want to record it for future runs.
1723 # Also quote any args containing shell meta-characters.
1724 # Make two passes to allow for proper duplicate-argument suppression.
1725 ac_configure_args=
1726 ac_configure_args0=
1727 ac_configure_args1=
1728 ac_must_keep_next=false
1729 for ac_pass in 1 2
1730 do
1731   for ac_arg
1732   do
1733     case $ac_arg in
1734     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1735     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1736     | -silent | --silent | --silen | --sile | --sil)
1737       continue ;;
1738     *\'*)
1739       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1740     esac
1741     case $ac_pass in
1742     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1743     2)
1744       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1745       if test $ac_must_keep_next = true; then
1746         ac_must_keep_next=false # Got value, back to normal.
1747       else
1748         case $ac_arg in
1749           *=* | --config-cache | -C | -disable-* | --disable-* \
1750           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1751           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1752           | -with-* | --with-* | -without-* | --without-* | --x)
1753             case "$ac_configure_args0 " in
1754               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1755             esac
1756             ;;
1757           -* ) ac_must_keep_next=true ;;
1758         esac
1759       fi
1760       ac_configure_args="$ac_configure_args '$ac_arg'"
1761       ;;
1762     esac
1763   done
1764 done
1765 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1766 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1767
1768 # When interrupted or exit'd, cleanup temporary files, and complete
1769 # config.log.  We remove comments because anyway the quotes in there
1770 # would cause problems or look ugly.
1771 # WARNING: Use '\'' to represent an apostrophe within the trap.
1772 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1773 trap 'exit_status=$?
1774   # Save into config.log some information that might help in debugging.
1775   {
1776     echo
1777
1778     cat <<\_ASBOX
1779 ## ---------------- ##
1780 ## Cache variables. ##
1781 ## ---------------- ##
1782 _ASBOX
1783     echo
1784     # The following way of writing the cache mishandles newlines in values,
1785 (
1786   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1787     eval ac_val=\$$ac_var
1788     case $ac_val in #(
1789     *${as_nl}*)
1790       case $ac_var in #(
1791       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1792 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1793       esac
1794       case $ac_var in #(
1795       _ | IFS | as_nl) ;; #(
1796       *) $as_unset $ac_var ;;
1797       esac ;;
1798     esac
1799   done
1800   (set) 2>&1 |
1801     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1802     *${as_nl}ac_space=\ *)
1803       sed -n \
1804         "s/'\''/'\''\\\\'\'''\''/g;
1805           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1806       ;; #(
1807     *)
1808       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1809       ;;
1810     esac |
1811     sort
1812 )
1813     echo
1814
1815     cat <<\_ASBOX
1816 ## ----------------- ##
1817 ## Output variables. ##
1818 ## ----------------- ##
1819 _ASBOX
1820     echo
1821     for ac_var in $ac_subst_vars
1822     do
1823       eval ac_val=\$$ac_var
1824       case $ac_val in
1825       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1826       esac
1827       echo "$ac_var='\''$ac_val'\''"
1828     done | sort
1829     echo
1830
1831     if test -n "$ac_subst_files"; then
1832       cat <<\_ASBOX
1833 ## ------------------- ##
1834 ## File substitutions. ##
1835 ## ------------------- ##
1836 _ASBOX
1837       echo
1838       for ac_var in $ac_subst_files
1839       do
1840         eval ac_val=\$$ac_var
1841         case $ac_val in
1842         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1843         esac
1844         echo "$ac_var='\''$ac_val'\''"
1845       done | sort
1846       echo
1847     fi
1848
1849     if test -s confdefs.h; then
1850       cat <<\_ASBOX
1851 ## ----------- ##
1852 ## confdefs.h. ##
1853 ## ----------- ##
1854 _ASBOX
1855       echo
1856       cat confdefs.h
1857       echo
1858     fi
1859     test "$ac_signal" != 0 &&
1860       echo "$as_me: caught signal $ac_signal"
1861     echo "$as_me: exit $exit_status"
1862   } >&5
1863   rm -f core *.core core.conftest.* &&
1864     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1865     exit $exit_status
1866 ' 0
1867 for ac_signal in 1 2 13 15; do
1868   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1869 done
1870 ac_signal=0
1871
1872 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1873 rm -f -r conftest* confdefs.h
1874
1875 # Predefined preprocessor variables.
1876
1877 cat >>confdefs.h <<_ACEOF
1878 #define PACKAGE_NAME "$PACKAGE_NAME"
1879 _ACEOF
1880
1881
1882 cat >>confdefs.h <<_ACEOF
1883 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1884 _ACEOF
1885
1886
1887 cat >>confdefs.h <<_ACEOF
1888 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1889 _ACEOF
1890
1891
1892 cat >>confdefs.h <<_ACEOF
1893 #define PACKAGE_STRING "$PACKAGE_STRING"
1894 _ACEOF
1895
1896
1897 cat >>confdefs.h <<_ACEOF
1898 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1899 _ACEOF
1900
1901
1902 # Let the site file select an alternate cache file if it wants to.
1903 # Prefer explicitly selected file to automatically selected ones.
1904 if test -n "$CONFIG_SITE"; then
1905   set x "$CONFIG_SITE"
1906 elif test "x$prefix" != xNONE; then
1907   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1908 else
1909   set x "$ac_default_prefix/share/config.site" \
1910         "$ac_default_prefix/etc/config.site"
1911 fi
1912 shift
1913 for ac_site_file
1914 do
1915   if test -r "$ac_site_file"; then
1916     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1917 echo "$as_me: loading site script $ac_site_file" >&6;}
1918     sed 's/^/| /' "$ac_site_file" >&5
1919     . "$ac_site_file"
1920   fi
1921 done
1922
1923 if test -r "$cache_file"; then
1924   # Some versions of bash will fail to source /dev/null (special
1925   # files actually), so we avoid doing that.
1926   if test -f "$cache_file"; then
1927     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1928 echo "$as_me: loading cache $cache_file" >&6;}
1929     case $cache_file in
1930       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1931       *)                      . "./$cache_file";;
1932     esac
1933   fi
1934 else
1935   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1936 echo "$as_me: creating cache $cache_file" >&6;}
1937   >$cache_file
1938 fi
1939
1940 # Check that the precious variables saved in the cache have kept the same
1941 # value.
1942 ac_cache_corrupted=false
1943 for ac_var in $ac_precious_vars; do
1944   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1945   eval ac_new_set=\$ac_env_${ac_var}_set
1946   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1947   eval ac_new_val=\$ac_env_${ac_var}_value
1948   case $ac_old_set,$ac_new_set in
1949     set,)
1950       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1951 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1952       ac_cache_corrupted=: ;;
1953     ,set)
1954       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1955 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1956       ac_cache_corrupted=: ;;
1957     ,);;
1958     *)
1959       if test "x$ac_old_val" != "x$ac_new_val"; then
1960         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1961 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1962         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1963 echo "$as_me:   former value:  $ac_old_val" >&2;}
1964         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1965 echo "$as_me:   current value: $ac_new_val" >&2;}
1966         ac_cache_corrupted=:
1967       fi;;
1968   esac
1969   # Pass precious variables to config.status.
1970   if test "$ac_new_set" = set; then
1971     case $ac_new_val in
1972     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1973     *) ac_arg=$ac_var=$ac_new_val ;;
1974     esac
1975     case " $ac_configure_args " in
1976       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1977       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1978     esac
1979   fi
1980 done
1981 if $ac_cache_corrupted; then
1982   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1983 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1984   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1985 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1986    { (exit 1); exit 1; }; }
1987 fi
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013 ac_ext=c
2014 ac_cpp='$CPP $CPPFLAGS'
2015 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2016 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2017 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2018
2019
2020 ac_config_headers="$ac_config_headers config.h pathnames.h"
2021
2022 { echo "$as_me:$LINENO: Configuring Sudo version 1.6.9" >&5
2023 echo "$as_me: Configuring Sudo version 1.6.9" >&6;}
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076 timeout=5
2077 password_timeout=5
2078 sudo_umask=0022
2079 passprompt="Password:"
2080 long_otp_prompt=off
2081 lecture=once
2082 logfac=local2
2083 goodpri=notice
2084 badpri=alert
2085 loglen=80
2086 ignore_dot=off
2087 mail_no_user=on
2088 mail_no_host=off
2089 mail_no_perms=off
2090 mailto=root
2091 mailsub='*** SECURITY information for %h ***'
2092 badpass_message='Sorry, try again.'
2093 fqdn=off
2094 runas_default=root
2095 env_editor=off
2096 passwd_tries=3
2097 tty_tickets=off
2098 insults=off
2099 root_sudo=on
2100 path_info=on
2101 INSTALL_NOEXEC=
2102 PROGS="sudo visudo"
2103 : ${MANTYPE='man'}
2104 : ${mansrcdir='.'}
2105 : ${SUDOERS_MODE='0440'}
2106 : ${SUDOERS_UID='0'}
2107 : ${SUDOERS_GID='0'}
2108 DEV="#"
2109 AUTH_OBJS=
2110 AUTH_REG=
2111 AUTH_EXCL=
2112 AUTH_EXCL_DEF=
2113 AUTH_DEF=passwd
2114
2115 CHECKSHADOW=true
2116 shadow_defs=
2117 shadow_funcs=
2118 shadow_libs=
2119 shadow_libs_optional=
2120
2121 test "$mandir" = '${prefix}/man' && mandir='$(prefix)/man'
2122 test "$bindir" = '${exec_prefix}/bin' && bindir='$(exec_prefix)/bin'
2123 test "$sbindir" = '${exec_prefix}/sbin' && sbindir='$(exec_prefix)/sbin'
2124 test "$sysconfdir" = '${prefix}/etc' -a X"$with_stow" != X"yes" && sysconfdir='/etc'
2125
2126
2127
2128 # Check whether --with-otp-only was given.
2129 if test "${with_otp_only+set}" = set; then
2130   withval=$with_otp_only; case $with_otp_only in
2131     yes)        with_passwd="no"
2132                 { echo "$as_me:$LINENO: --with-otp-only option deprecated, treating as --without-passwd" >&5
2133 echo "$as_me: --with-otp-only option deprecated, treating as --without-passwd" >&6;}
2134                 ;;
2135 esac
2136 fi
2137
2138
2139
2140 # Check whether --with-alertmail was given.
2141 if test "${with_alertmail+set}" = set; then
2142   withval=$with_alertmail; case $with_alertmail in
2143     *)          with_mailto="$with_alertmail"
2144                 { echo "$as_me:$LINENO: --with-alertmail option deprecated, treating as --mailto" >&5
2145 echo "$as_me: --with-alertmail option deprecated, treating as --mailto" >&6;}
2146                 ;;
2147 esac
2148 fi
2149
2150
2151
2152
2153 # Check whether --with-CC was given.
2154 if test "${with_CC+set}" = set; then
2155   withval=$with_CC; case $with_CC in
2156     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-CC an argument.\"" >&5
2157 echo "$as_me: error: \"must give --with-CC an argument.\"" >&2;}
2158    { (exit 1); exit 1; }; }
2159                 ;;
2160     no)         { { echo "$as_me:$LINENO: error: \"illegal argument: --without-CC.\"" >&5
2161 echo "$as_me: error: \"illegal argument: --without-CC.\"" >&2;}
2162    { (exit 1); exit 1; }; }
2163                 ;;
2164     *)          CC=$with_CC
2165                 ;;
2166 esac
2167 fi
2168
2169
2170
2171 # Check whether --with-rpath was given.
2172 if test "${with_rpath+set}" = set; then
2173   withval=$with_rpath; case $with_rpath in
2174     yes|no)     ;;
2175     *)          { { echo "$as_me:$LINENO: error: \"--with-rpath does not take an argument.\"" >&5
2176 echo "$as_me: error: \"--with-rpath does not take an argument.\"" >&2;}
2177    { (exit 1); exit 1; }; }
2178                 ;;
2179 esac
2180 fi
2181
2182
2183
2184 # Check whether --with-blibpath was given.
2185 if test "${with_blibpath+set}" = set; then
2186   withval=$with_blibpath; case $with_blibpath in
2187     yes|no)     ;;
2188     *)          { echo "$as_me:$LINENO: will pass -blibpath:${with_blibpath} to the loader." >&5
2189 echo "$as_me: will pass -blibpath:${with_blibpath} to the loader." >&6;}
2190                 ;;
2191 esac
2192 fi
2193
2194
2195
2196 # Check whether --with-incpath was given.
2197 if test "${with_incpath+set}" = set; then
2198   withval=$with_incpath; case $with_incpath in
2199     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-incpath an argument.\"" >&5
2200 echo "$as_me: error: \"must give --with-incpath an argument.\"" >&2;}
2201    { (exit 1); exit 1; }; }
2202                 ;;
2203     no)         { { echo "$as_me:$LINENO: error: \"--without-incpath not supported.\"" >&5
2204 echo "$as_me: error: \"--without-incpath not supported.\"" >&2;}
2205    { (exit 1); exit 1; }; }
2206                 ;;
2207     *)          { echo "$as_me:$LINENO: Adding ${with_incpath} to CPPFLAGS" >&5
2208 echo "$as_me: Adding ${with_incpath} to CPPFLAGS" >&6;}
2209                 for i in ${with_incpath}; do
2210                     CPPFLAGS="${CPPFLAGS} -I${i}"
2211                 done
2212                 ;;
2213 esac
2214 fi
2215
2216
2217
2218 # Check whether --with-libpath was given.
2219 if test "${with_libpath+set}" = set; then
2220   withval=$with_libpath; case $with_libpath in
2221     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-libpath an argument.\"" >&5
2222 echo "$as_me: error: \"must give --with-libpath an argument.\"" >&2;}
2223    { (exit 1); exit 1; }; }
2224                 ;;
2225     no)         { { echo "$as_me:$LINENO: error: \"--without-libpath not supported.\"" >&5
2226 echo "$as_me: error: \"--without-libpath not supported.\"" >&2;}
2227    { (exit 1); exit 1; }; }
2228                 ;;
2229     *)          { echo "$as_me:$LINENO: Adding ${with_libpath} to LDFLAGS" >&5
2230 echo "$as_me: Adding ${with_libpath} to LDFLAGS" >&6;}
2231                 ;;
2232 esac
2233 fi
2234
2235
2236
2237 # Check whether --with-libraries was given.
2238 if test "${with_libraries+set}" = set; then
2239   withval=$with_libraries; case $with_libraries in
2240     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-libraries an argument.\"" >&5
2241 echo "$as_me: error: \"must give --with-libraries an argument.\"" >&2;}
2242    { (exit 1); exit 1; }; }
2243                 ;;
2244     no)         { { echo "$as_me:$LINENO: error: \"--without-libraries not supported.\"" >&5
2245 echo "$as_me: error: \"--without-libraries not supported.\"" >&2;}
2246    { (exit 1); exit 1; }; }
2247                 ;;
2248     *)          { echo "$as_me:$LINENO: Adding ${with_libraries} to LIBS" >&5
2249 echo "$as_me: Adding ${with_libraries} to LIBS" >&6;}
2250                 ;;
2251 esac
2252 fi
2253
2254
2255
2256 # Check whether --with-devel was given.
2257 if test "${with_devel+set}" = set; then
2258   withval=$with_devel; case $with_devel in
2259     yes)        { echo "$as_me:$LINENO: Setting up for development: -Wall, flex, yacc" >&5
2260 echo "$as_me: Setting up for development: -Wall, flex, yacc" >&6;}
2261                 PROGS="${PROGS} testsudoers"
2262                 OSDEFS="${OSDEFS} -DSUDO_DEVEL"
2263                 DEV=""
2264                 ;;
2265     no)         ;;
2266     *)          { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --with-devel: $with_devel" >&5
2267 echo "$as_me: WARNING: Ignoring unknown argument to --with-devel: $with_devel" >&2;}
2268                 ;;
2269 esac
2270 fi
2271
2272
2273
2274 # Check whether --with-efence was given.
2275 if test "${with_efence+set}" = set; then
2276   withval=$with_efence; case $with_efence in
2277     yes)        { echo "$as_me:$LINENO: Sudo will link with -lefence (Electric Fence)" >&5
2278 echo "$as_me: Sudo will link with -lefence (Electric Fence)" >&6;}
2279                 LIBS="${LIBS} -lefence"
2280                 if test -f /usr/local/lib/libefence.a; then
2281                     with_libpath="${with_libpath} /usr/local/lib"
2282                 fi
2283                 ;;
2284     no)         ;;
2285     *)          { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --with-efence: $with_efence" >&5
2286 echo "$as_me: WARNING: Ignoring unknown argument to --with-efence: $with_efence" >&2;}
2287                 ;;
2288 esac
2289 fi
2290
2291
2292
2293 # Check whether --with-csops was given.
2294 if test "${with_csops+set}" = set; then
2295   withval=$with_csops; case $with_csops in
2296     yes)        { echo "$as_me:$LINENO: Adding CSOps standard options" >&5
2297 echo "$as_me: Adding CSOps standard options" >&6;}
2298                 CHECKSIA=false
2299                 with_ignore_dot=yes
2300                 insults=on
2301                 with_classic_insults=yes
2302                 with_csops_insults=yes
2303                 with_env_editor=yes
2304                 : ${mansectsu='8'}
2305                 : ${mansectform='5'}
2306                 ;;
2307     no)         ;;
2308     *)          { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --with-csops: $with_csops" >&5
2309 echo "$as_me: WARNING: Ignoring unknown argument to --with-csops: $with_csops" >&2;}
2310                 ;;
2311 esac
2312 fi
2313
2314
2315
2316 # Check whether --with-passwd was given.
2317 if test "${with_passwd+set}" = set; then
2318   withval=$with_passwd; case $with_passwd in
2319     yes|no)     { echo "$as_me:$LINENO: checking whether to use shadow/passwd file authentication" >&5
2320 echo $ECHO_N "checking whether to use shadow/passwd file authentication... $ECHO_C" >&6; }
2321                 { echo "$as_me:$LINENO: result: $with_passwd" >&5
2322 echo "${ECHO_T}$with_passwd" >&6; }
2323                 AUTH_DEF=""
2324                 test "$with_passwd" = "yes" && AUTH_REG="$AUTH_REG passwd"
2325                 ;;
2326     *)          { { echo "$as_me:$LINENO: error: \"Sorry, --with-passwd does not take an argument.\"" >&5
2327 echo "$as_me: error: \"Sorry, --with-passwd does not take an argument.\"" >&2;}
2328    { (exit 1); exit 1; }; }
2329                 ;;
2330 esac
2331 fi
2332
2333
2334
2335 # Check whether --with-skey was given.
2336 if test "${with_skey+set}" = set; then
2337   withval=$with_skey; case $with_skey in
2338     no)         with_skey=""
2339                 ;;
2340     *)          cat >>confdefs.h <<\_ACEOF
2341 #define HAVE_SKEY 1
2342 _ACEOF
2343
2344                 { echo "$as_me:$LINENO: checking whether to try S/Key authentication" >&5
2345 echo $ECHO_N "checking whether to try S/Key authentication... $ECHO_C" >&6; }
2346                 { echo "$as_me:$LINENO: result: yes" >&5
2347 echo "${ECHO_T}yes" >&6; }
2348                 AUTH_REG="$AUTH_REG S/Key"
2349                 ;;
2350 esac
2351 fi
2352
2353
2354
2355 # Check whether --with-opie was given.
2356 if test "${with_opie+set}" = set; then
2357   withval=$with_opie; case $with_opie in
2358     no)         with_opie=""
2359                 ;;
2360     *)          cat >>confdefs.h <<\_ACEOF
2361 #define HAVE_OPIE 1
2362 _ACEOF
2363
2364                 { echo "$as_me:$LINENO: checking whether to try NRL OPIE authentication" >&5
2365 echo $ECHO_N "checking whether to try NRL OPIE authentication... $ECHO_C" >&6; }
2366                 { echo "$as_me:$LINENO: result: yes" >&5
2367 echo "${ECHO_T}yes" >&6; }
2368                 AUTH_REG="$AUTH_REG NRL_OPIE"
2369                 ;;
2370 esac
2371 fi
2372
2373
2374
2375 # Check whether --with-long-otp-prompt was given.
2376 if test "${with_long_otp_prompt+set}" = set; then
2377   withval=$with_long_otp_prompt; case $with_long_otp_prompt in
2378     yes)        cat >>confdefs.h <<\_ACEOF
2379 #define LONG_OTP_PROMPT 1
2380 _ACEOF
2381
2382                 { echo "$as_me:$LINENO: checking whether to use a two line prompt for OTP authentication" >&5
2383 echo $ECHO_N "checking whether to use a two line prompt for OTP authentication... $ECHO_C" >&6; }
2384                 { echo "$as_me:$LINENO: result: yes" >&5
2385 echo "${ECHO_T}yes" >&6; }
2386                 long_otp_prompt=on
2387                 ;;
2388     no)         long_otp_prompt=off
2389                 ;;
2390     *)          { { echo "$as_me:$LINENO: error: \"--with-long-otp-prompt does not take an argument.\"" >&5
2391 echo "$as_me: error: \"--with-long-otp-prompt does not take an argument.\"" >&2;}
2392    { (exit 1); exit 1; }; }
2393                 ;;
2394 esac
2395 fi
2396
2397
2398
2399 # Check whether --with-SecurID was given.
2400 if test "${with_SecurID+set}" = set; then
2401   withval=$with_SecurID; case $with_SecurID in
2402     no)         with_SecurID="";;
2403     *)          cat >>confdefs.h <<\_ACEOF
2404 #define HAVE_SECURID 1
2405 _ACEOF
2406
2407                 { echo "$as_me:$LINENO: checking whether to use SecurID for authentication" >&5
2408 echo $ECHO_N "checking whether to use SecurID for authentication... $ECHO_C" >&6; }
2409                 { echo "$as_me:$LINENO: result: yes" >&5
2410 echo "${ECHO_T}yes" >&6; }
2411                 AUTH_EXCL="$AUTH_EXCL SecurID"
2412                 ;;
2413 esac
2414 fi
2415
2416
2417
2418 # Check whether --with-fwtk was given.
2419 if test "${with_fwtk+set}" = set; then
2420   withval=$with_fwtk; case $with_fwtk in
2421     no)         with_fwtk="";;
2422     *)          cat >>confdefs.h <<\_ACEOF
2423 #define HAVE_FWTK 1
2424 _ACEOF
2425
2426                 { echo "$as_me:$LINENO: checking whether to use FWTK AuthSRV for authentication" >&5
2427 echo $ECHO_N "checking whether to use FWTK AuthSRV for authentication... $ECHO_C" >&6; }
2428                 { echo "$as_me:$LINENO: result: yes" >&5
2429 echo "${ECHO_T}yes" >&6; }
2430                 AUTH_EXCL="$AUTH_EXCL FWTK"
2431                 ;;
2432 esac
2433 fi
2434
2435
2436
2437 # Check whether --with-kerb4 was given.
2438 if test "${with_kerb4+set}" = set; then
2439   withval=$with_kerb4; case $with_kerb4 in
2440     no)         with_kerb4="";;
2441     *)          { echo "$as_me:$LINENO: checking whether to try kerberos IV authentication" >&5
2442 echo $ECHO_N "checking whether to try kerberos IV authentication... $ECHO_C" >&6; }
2443                 { echo "$as_me:$LINENO: result: yes" >&5
2444 echo "${ECHO_T}yes" >&6; }
2445                 AUTH_REG="$AUTH_REG kerb4"
2446                 ;;
2447 esac
2448 fi
2449
2450
2451
2452 # Check whether --with-kerb5 was given.
2453 if test "${with_kerb5+set}" = set; then
2454   withval=$with_kerb5; case $with_kerb5 in
2455     no)         with_kerb5="";;
2456     *)          { echo "$as_me:$LINENO: checking whether to try Kerberos V authentication" >&5
2457 echo $ECHO_N "checking whether to try Kerberos V authentication... $ECHO_C" >&6; }
2458                 { echo "$as_me:$LINENO: result: yes" >&5
2459 echo "${ECHO_T}yes" >&6; }
2460                 AUTH_REG="$AUTH_REG kerb5"
2461                 ;;
2462 esac
2463 fi
2464
2465
2466
2467 # Check whether --with-aixauth was given.
2468 if test "${with_aixauth+set}" = set; then
2469   withval=$with_aixauth; case $with_aixauth in
2470     yes)        AUTH_EXCL="$AUTH_EXCL AIX_AUTH";;
2471     no)         ;;
2472     *)          { { echo "$as_me:$LINENO: error: \"--with-aixauth does not take an argument.\"" >&5
2473 echo "$as_me: error: \"--with-aixauth does not take an argument.\"" >&2;}
2474    { (exit 1); exit 1; }; }
2475                 ;;
2476 esac
2477 fi
2478
2479
2480
2481 # Check whether --with-pam was given.
2482 if test "${with_pam+set}" = set; then
2483   withval=$with_pam; case $with_pam in
2484     yes)        AUTH_EXCL="$AUTH_EXCL PAM";;
2485     no)         ;;
2486     *)          { { echo "$as_me:$LINENO: error: \"--with-pam does not take an argument.\"" >&5
2487 echo "$as_me: error: \"--with-pam does not take an argument.\"" >&2;}
2488    { (exit 1); exit 1; }; }
2489                 ;;
2490 esac
2491 fi
2492
2493
2494
2495 # Check whether --with-AFS was given.
2496 if test "${with_AFS+set}" = set; then
2497   withval=$with_AFS; case $with_AFS in
2498     yes)        cat >>confdefs.h <<\_ACEOF
2499 #define HAVE_AFS 1
2500 _ACEOF
2501
2502                 { echo "$as_me:$LINENO: checking whether to try AFS (kerberos) authentication" >&5
2503 echo $ECHO_N "checking whether to try AFS (kerberos) authentication... $ECHO_C" >&6; }
2504                 { echo "$as_me:$LINENO: result: yes" >&5
2505 echo "${ECHO_T}yes" >&6; }
2506                 AUTH_REG="$AUTH_REG AFS"
2507                 ;;
2508     no)         ;;
2509     *)          { { echo "$as_me:$LINENO: error: \"--with-AFS does not take an argument.\"" >&5
2510 echo "$as_me: error: \"--with-AFS does not take an argument.\"" >&2;}
2511    { (exit 1); exit 1; }; }
2512                 ;;
2513 esac
2514 fi
2515
2516
2517
2518 # Check whether --with-DCE was given.
2519 if test "${with_DCE+set}" = set; then
2520   withval=$with_DCE; case $with_DCE in
2521     yes)        cat >>confdefs.h <<\_ACEOF
2522 #define HAVE_DCE 1
2523 _ACEOF
2524
2525                 { echo "$as_me:$LINENO: checking whether to try DCE (kerberos) authentication" >&5
2526 echo $ECHO_N "checking whether to try DCE (kerberos) authentication... $ECHO_C" >&6; }
2527                 { echo "$as_me:$LINENO: result: yes" >&5
2528 echo "${ECHO_T}yes" >&6; }
2529                 AUTH_REG="$AUTH_REG DCE"
2530                 ;;
2531     no)         ;;
2532     *)          { { echo "$as_me:$LINENO: error: \"--with-DCE does not take an argument.\"" >&5
2533 echo "$as_me: error: \"--with-DCE does not take an argument.\"" >&2;}
2534    { (exit 1); exit 1; }; }
2535                 ;;
2536 esac
2537 fi
2538
2539
2540
2541 # Check whether --with-logincap was given.
2542 if test "${with_logincap+set}" = set; then
2543   withval=$with_logincap; case $with_logincap in
2544     yes|no)     ;;
2545     *)          { { echo "$as_me:$LINENO: error: \"--with-logincap does not take an argument.\"" >&5
2546 echo "$as_me: error: \"--with-logincap does not take an argument.\"" >&2;}
2547    { (exit 1); exit 1; }; }
2548                 ;;
2549 esac
2550 fi
2551
2552
2553
2554 # Check whether --with-bsdauth was given.
2555 if test "${with_bsdauth+set}" = set; then
2556   withval=$with_bsdauth; case $with_bsdauth in
2557     yes)        AUTH_EXCL="$AUTH_EXCL BSD_AUTH";;
2558     no)         ;;
2559     *)          { { echo "$as_me:$LINENO: error: \"--with-bsdauth does not take an argument.\"" >&5
2560 echo "$as_me: error: \"--with-bsdauth does not take an argument.\"" >&2;}
2561    { (exit 1); exit 1; }; }
2562                 ;;
2563 esac
2564 fi
2565
2566
2567
2568 # Check whether --with-project was given.
2569 if test "${with_project+set}" = set; then
2570   withval=$with_project; case $with_project in
2571     yes|no)     ;;
2572     no) ;;
2573     *)          { { echo "$as_me:$LINENO: error: \"--with-project does not take an argument.\"" >&5
2574 echo "$as_me: error: \"--with-project does not take an argument.\"" >&2;}
2575    { (exit 1); exit 1; }; }
2576                 ;;
2577 esac
2578 fi
2579
2580
2581 { echo "$as_me:$LINENO: checking whether to lecture users the first time they run sudo" >&5
2582 echo $ECHO_N "checking whether to lecture users the first time they run sudo... $ECHO_C" >&6; }
2583
2584 # Check whether --with-lecture was given.
2585 if test "${with_lecture+set}" = set; then
2586   withval=$with_lecture; case $with_lecture in
2587     yes|short|always)   lecture=once
2588                 ;;
2589     no|none|never)      lecture=never
2590                 ;;
2591     *)          { { echo "$as_me:$LINENO: error: \"unknown argument to --with-lecture: $with_lecture\"" >&5
2592 echo "$as_me: error: \"unknown argument to --with-lecture: $with_lecture\"" >&2;}
2593    { (exit 1); exit 1; }; }
2594                 ;;
2595 esac
2596 fi
2597
2598 if test "$lecture" = "once"; then
2599     { echo "$as_me:$LINENO: result: yes" >&5
2600 echo "${ECHO_T}yes" >&6; }
2601 else
2602     cat >>confdefs.h <<\_ACEOF
2603 #define NO_LECTURE 1
2604 _ACEOF
2605
2606     { echo "$as_me:$LINENO: result: no" >&5
2607 echo "${ECHO_T}no" >&6; }
2608 fi
2609
2610 { echo "$as_me:$LINENO: checking whether sudo should log via syslog or to a file by default" >&5
2611 echo $ECHO_N "checking whether sudo should log via syslog or to a file by default... $ECHO_C" >&6; }
2612
2613 # Check whether --with-logging was given.
2614 if test "${with_logging+set}" = set; then
2615   withval=$with_logging; case $with_logging in
2616     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-logging an argument.\"" >&5
2617 echo "$as_me: error: \"must give --with-logging an argument.\"" >&2;}
2618    { (exit 1); exit 1; }; }
2619                 ;;
2620     no)         { { echo "$as_me:$LINENO: error: \"--without-logging not supported.\"" >&5
2621 echo "$as_me: error: \"--without-logging not supported.\"" >&2;}
2622    { (exit 1); exit 1; }; }
2623                 ;;
2624     syslog)     cat >>confdefs.h <<\_ACEOF
2625 #define LOGGING SLOG_SYSLOG
2626 _ACEOF
2627
2628                 { echo "$as_me:$LINENO: result: syslog" >&5
2629 echo "${ECHO_T}syslog" >&6; }
2630                 ;;
2631     file)       cat >>confdefs.h <<\_ACEOF
2632 #define LOGGING SLOG_FILE
2633 _ACEOF
2634
2635                 { echo "$as_me:$LINENO: result: file" >&5
2636 echo "${ECHO_T}file" >&6; }
2637                 ;;
2638     both)       cat >>confdefs.h <<\_ACEOF
2639 #define LOGGING SLOG_BOTH
2640 _ACEOF
2641
2642                 { echo "$as_me:$LINENO: result: both" >&5
2643 echo "${ECHO_T}both" >&6; }
2644                 ;;
2645     *)          { { echo "$as_me:$LINENO: error: \"unknown argument to --with-logging: $with_logging\"" >&5
2646 echo "$as_me: error: \"unknown argument to --with-logging: $with_logging\"" >&2;}
2647    { (exit 1); exit 1; }; }
2648                 ;;
2649 esac
2650 else
2651   cat >>confdefs.h <<\_ACEOF
2652 #define LOGGING SLOG_SYSLOG
2653 _ACEOF
2654  { echo "$as_me:$LINENO: result: syslog" >&5
2655 echo "${ECHO_T}syslog" >&6; }
2656 fi
2657
2658
2659 { echo "$as_me:$LINENO: checking which syslog facility sudo should log with" >&5
2660 echo $ECHO_N "checking which syslog facility sudo should log with... $ECHO_C" >&6; }
2661
2662 # Check whether --with-logfac was given.
2663 if test "${with_logfac+set}" = set; then
2664   withval=$with_logfac; case $with_logfac in
2665     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-logfac an argument.\"" >&5
2666 echo "$as_me: error: \"must give --with-logfac an argument.\"" >&2;}
2667    { (exit 1); exit 1; }; }
2668                 ;;
2669     no)         { { echo "$as_me:$LINENO: error: \"--without-logfac not supported.\"" >&5
2670 echo "$as_me: error: \"--without-logfac not supported.\"" >&2;}
2671    { (exit 1); exit 1; }; }
2672                 ;;
2673     authpriv|auth|daemon|user|local0|local1|local2|local3|local4|local5|local6|local7)          logfac=$with_logfac
2674                 ;;
2675     *)          { { echo "$as_me:$LINENO: error: \"$with_logfac is not a supported syslog facility.\"" >&5
2676 echo "$as_me: error: \"$with_logfac is not a supported syslog facility.\"" >&2;}
2677    { (exit 1); exit 1; }; }
2678                 ;;
2679 esac
2680 fi
2681
2682
2683 cat >>confdefs.h <<_ACEOF
2684 #define LOGFAC "$logfac"
2685 _ACEOF
2686
2687 { echo "$as_me:$LINENO: result: $logfac" >&5
2688 echo "${ECHO_T}$logfac" >&6; }
2689
2690 { echo "$as_me:$LINENO: checking at which syslog priority to log commands" >&5
2691 echo $ECHO_N "checking at which syslog priority to log commands... $ECHO_C" >&6; }
2692
2693 # Check whether --with-goodpri was given.
2694 if test "${with_goodpri+set}" = set; then
2695   withval=$with_goodpri; case $with_goodpri in
2696     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-goodpri an argument.\"" >&5
2697 echo "$as_me: error: \"must give --with-goodpri an argument.\"" >&2;}
2698    { (exit 1); exit 1; }; }
2699                 ;;
2700     no)         { { echo "$as_me:$LINENO: error: \"--without-goodpri not supported.\"" >&5
2701 echo "$as_me: error: \"--without-goodpri not supported.\"" >&2;}
2702    { (exit 1); exit 1; }; }
2703                 ;;
2704     alert|crit|debug|emerg|err|info|notice|warning)
2705                 goodpri=$with_goodpri
2706                 ;;
2707     *)          { { echo "$as_me:$LINENO: error: \"$with_goodpri is not a supported syslog priority.\"" >&5
2708 echo "$as_me: error: \"$with_goodpri is not a supported syslog priority.\"" >&2;}
2709    { (exit 1); exit 1; }; }
2710                 ;;
2711 esac
2712 fi
2713
2714
2715 cat >>confdefs.h <<_ACEOF
2716 #define PRI_SUCCESS "$goodpri"
2717 _ACEOF
2718
2719 { echo "$as_me:$LINENO: result: $goodpri" >&5
2720 echo "${ECHO_T}$goodpri" >&6; }
2721
2722 { echo "$as_me:$LINENO: checking at which syslog priority to log failures" >&5
2723 echo $ECHO_N "checking at which syslog priority to log failures... $ECHO_C" >&6; }
2724
2725 # Check whether --with-badpri was given.
2726 if test "${with_badpri+set}" = set; then
2727   withval=$with_badpri; case $with_badpri in
2728     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-badpri an argument.\"" >&5
2729 echo "$as_me: error: \"must give --with-badpri an argument.\"" >&2;}
2730    { (exit 1); exit 1; }; }
2731                 ;;
2732     no)         { { echo "$as_me:$LINENO: error: \"--without-badpri not supported.\"" >&5
2733 echo "$as_me: error: \"--without-badpri not supported.\"" >&2;}
2734    { (exit 1); exit 1; }; }
2735                 ;;
2736     alert|crit|debug|emerg|err|info|notice|warning)
2737                 badpri=$with_badpri
2738                 ;;
2739     *)          { { echo "$as_me:$LINENO: error: $with_badpri is not a supported syslog priority." >&5
2740 echo "$as_me: error: $with_badpri is not a supported syslog priority." >&2;}
2741    { (exit 1); exit 1; }; }
2742                 ;;
2743 esac
2744 fi
2745
2746
2747 cat >>confdefs.h <<_ACEOF
2748 #define PRI_FAILURE "$badpri"
2749 _ACEOF
2750
2751 { echo "$as_me:$LINENO: result: $badpri" >&5
2752 echo "${ECHO_T}$badpri" >&6; }
2753
2754
2755 # Check whether --with-logpath was given.
2756 if test "${with_logpath+set}" = set; then
2757   withval=$with_logpath; case $with_logpath in
2758     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-logpath an argument.\"" >&5
2759 echo "$as_me: error: \"must give --with-logpath an argument.\"" >&2;}
2760    { (exit 1); exit 1; }; }
2761                 ;;
2762     no)         { { echo "$as_me:$LINENO: error: \"--without-logpath not supported.\"" >&5
2763 echo "$as_me: error: \"--without-logpath not supported.\"" >&2;}
2764    { (exit 1); exit 1; }; }
2765                 ;;
2766 esac
2767 fi
2768
2769
2770 { echo "$as_me:$LINENO: checking how long a line in the log file should be" >&5
2771 echo $ECHO_N "checking how long a line in the log file should be... $ECHO_C" >&6; }
2772
2773 # Check whether --with-loglen was given.
2774 if test "${with_loglen+set}" = set; then
2775   withval=$with_loglen; case $with_loglen in
2776     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-loglen an argument.\"" >&5
2777 echo "$as_me: error: \"must give --with-loglen an argument.\"" >&2;}
2778    { (exit 1); exit 1; }; }
2779                 ;;
2780     no)         { { echo "$as_me:$LINENO: error: \"--without-loglen not supported.\"" >&5
2781 echo "$as_me: error: \"--without-loglen not supported.\"" >&2;}
2782    { (exit 1); exit 1; }; }
2783                 ;;
2784     [0-9]*)     loglen=$with_loglen
2785                 ;;
2786     *)          { { echo "$as_me:$LINENO: error: \"you must enter a number, not $with_loglen\"" >&5
2787 echo "$as_me: error: \"you must enter a number, not $with_loglen\"" >&2;}
2788    { (exit 1); exit 1; }; }
2789                 ;;
2790 esac
2791 fi
2792
2793
2794 cat >>confdefs.h <<_ACEOF
2795 #define MAXLOGFILELEN $loglen
2796 _ACEOF
2797
2798 { echo "$as_me:$LINENO: result: $loglen" >&5
2799 echo "${ECHO_T}$loglen" >&6; }
2800
2801 { echo "$as_me:$LINENO: checking whether sudo should ignore '.' or '' in \$PATH" >&5
2802 echo $ECHO_N "checking whether sudo should ignore '.' or '' in \$PATH... $ECHO_C" >&6; }
2803
2804 # Check whether --with-ignore-dot was given.
2805 if test "${with_ignore_dot+set}" = set; then
2806   withval=$with_ignore_dot; case $with_ignore_dot in
2807     yes)        ignore_dot=on
2808                 ;;
2809     no)         ignore_dot=off
2810                 ;;
2811     *)          { { echo "$as_me:$LINENO: error: \"--with-ignore-dot does not take an argument.\"" >&5
2812 echo "$as_me: error: \"--with-ignore-dot does not take an argument.\"" >&2;}
2813    { (exit 1); exit 1; }; }
2814                 ;;
2815 esac
2816 fi
2817
2818 if test "$ignore_dot" = "on"; then
2819     cat >>confdefs.h <<\_ACEOF
2820 #define IGNORE_DOT_PATH 1
2821 _ACEOF
2822
2823     { echo "$as_me:$LINENO: result: yes" >&5
2824 echo "${ECHO_T}yes" >&6; }
2825 else
2826     { echo "$as_me:$LINENO: result: no" >&5
2827 echo "${ECHO_T}no" >&6; }
2828 fi
2829
2830 { echo "$as_me:$LINENO: checking whether to send mail when a user is not in sudoers" >&5
2831 echo $ECHO_N "checking whether to send mail when a user is not in sudoers... $ECHO_C" >&6; }
2832
2833 # Check whether --with-mail-if-no-user was given.
2834 if test "${with_mail_if_no_user+set}" = set; then
2835   withval=$with_mail_if_no_user; case $with_mail_if_no_user in
2836     yes)        mail_no_user=on
2837                 ;;
2838     no)         mail_no_user=off
2839                 ;;
2840     *)          { { echo "$as_me:$LINENO: error: \"--with-mail-if-no-user does not take an argument.\"" >&5
2841 echo "$as_me: error: \"--with-mail-if-no-user does not take an argument.\"" >&2;}
2842    { (exit 1); exit 1; }; }
2843                 ;;
2844 esac
2845 fi
2846
2847 if test "$mail_no_user" = "on"; then
2848     cat >>confdefs.h <<\_ACEOF
2849 #define SEND_MAIL_WHEN_NO_USER 1
2850 _ACEOF
2851
2852     { echo "$as_me:$LINENO: result: yes" >&5
2853 echo "${ECHO_T}yes" >&6; }
2854 else
2855     { echo "$as_me:$LINENO: result: no" >&5
2856 echo "${ECHO_T}no" >&6; }
2857 fi
2858
2859 { echo "$as_me:$LINENO: checking whether to send mail when user listed but not for this host" >&5
2860 echo $ECHO_N "checking whether to send mail when user listed but not for this host... $ECHO_C" >&6; }
2861
2862 # Check whether --with-mail-if-no-host was given.
2863 if test "${with_mail_if_no_host+set}" = set; then
2864   withval=$with_mail_if_no_host; case $with_mail_if_no_host in
2865     yes)        mail_no_host=on
2866                 ;;
2867     no)         mail_no_host=off
2868                 ;;
2869     *)          { { echo "$as_me:$LINENO: error: \"--with-mail-if-no-host does not take an argument.\"" >&5
2870 echo "$as_me: error: \"--with-mail-if-no-host does not take an argument.\"" >&2;}
2871    { (exit 1); exit 1; }; }
2872                 ;;
2873 esac
2874 fi
2875
2876 if test "$mail_no_host" = "on"; then
2877     cat >>confdefs.h <<\_ACEOF
2878 #define SEND_MAIL_WHEN_NO_HOST 1
2879 _ACEOF
2880
2881     { echo "$as_me:$LINENO: result: yes" >&5
2882 echo "${ECHO_T}yes" >&6; }
2883 else
2884     { echo "$as_me:$LINENO: result: no" >&5
2885 echo "${ECHO_T}no" >&6; }
2886 fi
2887
2888 { echo "$as_me:$LINENO: checking whether to send mail when a user tries a disallowed command" >&5
2889 echo $ECHO_N "checking whether to send mail when a user tries a disallowed command... $ECHO_C" >&6; }
2890
2891 # Check whether --with-mail-if-noperms was given.
2892 if test "${with_mail_if_noperms+set}" = set; then
2893   withval=$with_mail_if_noperms; case $with_mail_if_noperms in
2894     yes)        mail_noperms=on
2895                 ;;
2896     no)         mail_noperms=off
2897                 ;;
2898     *)          { { echo "$as_me:$LINENO: error: \"--with-mail-if-noperms does not take an argument.\"" >&5
2899 echo "$as_me: error: \"--with-mail-if-noperms does not take an argument.\"" >&2;}
2900    { (exit 1); exit 1; }; }
2901                 ;;
2902 esac
2903 fi
2904
2905 if test "$mail_noperms" = "on"; then
2906     cat >>confdefs.h <<\_ACEOF
2907 #define SEND_MAIL_WHEN_NOT_OK 1
2908 _ACEOF
2909
2910     { echo "$as_me:$LINENO: result: yes" >&5
2911 echo "${ECHO_T}yes" >&6; }
2912 else
2913     { echo "$as_me:$LINENO: result: no" >&5
2914 echo "${ECHO_T}no" >&6; }
2915 fi
2916
2917 { echo "$as_me:$LINENO: checking who should get the mail that sudo sends" >&5
2918 echo $ECHO_N "checking who should get the mail that sudo sends... $ECHO_C" >&6; }
2919
2920 # Check whether --with-mailto was given.
2921 if test "${with_mailto+set}" = set; then
2922   withval=$with_mailto; case $with_mailto in
2923     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-mailto an argument.\"" >&5
2924 echo "$as_me: error: \"must give --with-mailto an argument.\"" >&2;}
2925    { (exit 1); exit 1; }; }
2926                 ;;
2927     no)         { { echo "$as_me:$LINENO: error: \"--without-mailto not supported.\"" >&5
2928 echo "$as_me: error: \"--without-mailto not supported.\"" >&2;}
2929    { (exit 1); exit 1; }; }
2930                 ;;
2931     *)          mailto=$with_mailto
2932                 ;;
2933 esac
2934 fi
2935
2936
2937 cat >>confdefs.h <<_ACEOF
2938 #define MAILTO "$mailto"
2939 _ACEOF
2940
2941 { echo "$as_me:$LINENO: result: $mailto" >&5
2942 echo "${ECHO_T}$mailto" >&6; }
2943
2944
2945 # Check whether --with-mailsubject was given.
2946 if test "${with_mailsubject+set}" = set; then
2947   withval=$with_mailsubject; case $with_mailsubject in
2948     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-mailsubject an argument.\"" >&5
2949 echo "$as_me: error: \"must give --with-mailsubject an argument.\"" >&2;}
2950    { (exit 1); exit 1; }; }
2951                 ;;
2952     no)         { echo "$as_me:$LINENO: WARNING: Sorry, --without-mailsubject not supported." >&5
2953 echo "$as_me: WARNING: Sorry, --without-mailsubject not supported." >&2;}
2954                 ;;
2955     *)          mailsub="$with_mailsubject"
2956                 { echo "$as_me:$LINENO: checking sudo mail subject" >&5
2957 echo $ECHO_N "checking sudo mail subject... $ECHO_C" >&6; }
2958                 { echo "$as_me:$LINENO: result: Using alert mail subject: $mailsub" >&5
2959 echo "${ECHO_T}Using alert mail subject: $mailsub" >&6; }
2960                 ;;
2961 esac
2962 fi
2963
2964
2965 cat >>confdefs.h <<_ACEOF
2966 #define MAILSUBJECT "$mailsub"
2967 _ACEOF
2968
2969
2970 { echo "$as_me:$LINENO: checking for bad password prompt" >&5
2971 echo $ECHO_N "checking for bad password prompt... $ECHO_C" >&6; }
2972
2973 # Check whether --with-passprompt was given.
2974 if test "${with_passprompt+set}" = set; then
2975   withval=$with_passprompt; case $with_passprompt in
2976     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-passprompt an argument.\"" >&5
2977 echo "$as_me: error: \"must give --with-passprompt an argument.\"" >&2;}
2978    { (exit 1); exit 1; }; }
2979                 ;;
2980     no)         { echo "$as_me:$LINENO: WARNING: Sorry, --without-passprompt not supported." >&5
2981 echo "$as_me: WARNING: Sorry, --without-passprompt not supported." >&2;}
2982                 ;;
2983     *)          passprompt="$with_passprompt"
2984 esac
2985 fi
2986
2987 { echo "$as_me:$LINENO: result: $passprompt" >&5
2988 echo "${ECHO_T}$passprompt" >&6; }
2989
2990 cat >>confdefs.h <<_ACEOF
2991 #define PASSPROMPT "$passprompt"
2992 _ACEOF
2993
2994
2995 { echo "$as_me:$LINENO: checking for bad password message" >&5
2996 echo $ECHO_N "checking for bad password message... $ECHO_C" >&6; }
2997
2998 # Check whether --with-badpass-message was given.
2999 if test "${with_badpass_message+set}" = set; then
3000   withval=$with_badpass_message; case $with_badpass_message in
3001     yes)        { { echo "$as_me:$LINENO: error: \"Must give --with-badpass-message an argument.\"" >&5
3002 echo "$as_me: error: \"Must give --with-badpass-message an argument.\"" >&2;}
3003    { (exit 1); exit 1; }; }
3004                 ;;
3005     no)         { echo "$as_me:$LINENO: WARNING: Sorry, --without-badpass-message not supported." >&5
3006 echo "$as_me: WARNING: Sorry, --without-badpass-message not supported." >&2;}
3007                 ;;
3008     *)          badpass_message="$with_badpass_message"
3009                 ;;
3010 esac
3011 fi
3012
3013
3014 cat >>confdefs.h <<_ACEOF
3015 #define INCORRECT_PASSWORD "$badpass_message"
3016 _ACEOF
3017
3018 { echo "$as_me:$LINENO: result: $badpass_message" >&5
3019 echo "${ECHO_T}$badpass_message" >&6; }
3020
3021 { echo "$as_me:$LINENO: checking whether to expect fully qualified hosts in sudoers" >&5
3022 echo $ECHO_N "checking whether to expect fully qualified hosts in sudoers... $ECHO_C" >&6; }
3023
3024 # Check whether --with-fqdn was given.
3025 if test "${with_fqdn+set}" = set; then
3026   withval=$with_fqdn; case $with_fqdn in
3027     yes)        fqdn=on
3028                 ;;
3029     no)         fqdn=off
3030                 ;;
3031     *)          { { echo "$as_me:$LINENO: error: \"--with-fqdn does not take an argument.\"" >&5
3032 echo "$as_me: error: \"--with-fqdn does not take an argument.\"" >&2;}
3033    { (exit 1); exit 1; }; }
3034                 ;;
3035 esac
3036 fi
3037
3038 if test "$fqdn" = "on"; then
3039     cat >>confdefs.h <<\_ACEOF
3040 #define FQDN 1
3041 _ACEOF
3042
3043     { echo "$as_me:$LINENO: result: yes" >&5
3044 echo "${ECHO_T}yes" >&6; }
3045 else
3046     { echo "$as_me:$LINENO: result: no" >&5
3047 echo "${ECHO_T}no" >&6; }
3048 fi
3049
3050
3051 # Check whether --with-timedir was given.
3052 if test "${with_timedir+set}" = set; then
3053   withval=$with_timedir; case $with_timedir in
3054     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-timedir an argument.\"" >&5
3055 echo "$as_me: error: \"must give --with-timedir an argument.\"" >&2;}
3056    { (exit 1); exit 1; }; }
3057                 ;;
3058     no)         { { echo "$as_me:$LINENO: error: \"--without-timedir not supported.\"" >&5
3059 echo "$as_me: error: \"--without-timedir not supported.\"" >&2;}
3060    { (exit 1); exit 1; }; }
3061                 ;;
3062 esac
3063 fi
3064
3065
3066
3067 # Check whether --with-sendmail was given.
3068 if test "${with_sendmail+set}" = set; then
3069   withval=$with_sendmail; case $with_sendmail in
3070     yes)        with_sendmail=""
3071                 ;;
3072     no)         ;;
3073     *)          cat >>confdefs.h <<EOF
3074 #define _PATH_SUDO_SENDMAIL "$with_sendmail"
3075 EOF
3076
3077                 ;;
3078 esac
3079 fi
3080
3081
3082
3083 # Check whether --with-sudoers-mode was given.
3084 if test "${with_sudoers_mode+set}" = set; then
3085   withval=$with_sudoers_mode; case $with_sudoers_mode in
3086     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-sudoers-mode an argument.\"" >&5
3087 echo "$as_me: error: \"must give --with-sudoers-mode an argument.\"" >&2;}
3088    { (exit 1); exit 1; }; }
3089                 ;;
3090     no)         { { echo "$as_me:$LINENO: error: \"--without-sudoers-mode not supported.\"" >&5
3091 echo "$as_me: error: \"--without-sudoers-mode not supported.\"" >&2;}
3092    { (exit 1); exit 1; }; }
3093                 ;;
3094     [1-9]*)     SUDOERS_MODE=0${with_sudoers_mode}
3095                 ;;
3096     0*)         SUDOERS_MODE=$with_sudoers_mode
3097                 ;;
3098     *)          { { echo "$as_me:$LINENO: error: \"you must use an octal mode, not a name.\"" >&5
3099 echo "$as_me: error: \"you must use an octal mode, not a name.\"" >&2;}
3100    { (exit 1); exit 1; }; }
3101                 ;;
3102 esac
3103 fi
3104
3105
3106
3107 # Check whether --with-sudoers-uid was given.
3108 if test "${with_sudoers_uid+set}" = set; then
3109   withval=$with_sudoers_uid; case $with_sudoers_uid in
3110     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-sudoers-uid an argument.\"" >&5
3111 echo "$as_me: error: \"must give --with-sudoers-uid an argument.\"" >&2;}
3112    { (exit 1); exit 1; }; }
3113                 ;;
3114     no)         { { echo "$as_me:$LINENO: error: \"--without-sudoers-uid not supported.\"" >&5
3115 echo "$as_me: error: \"--without-sudoers-uid not supported.\"" >&2;}
3116    { (exit 1); exit 1; }; }
3117                 ;;
3118     [0-9]*)     SUDOERS_UID=$with_sudoers_uid
3119                 ;;
3120     *)          { { echo "$as_me:$LINENO: error: \"you must use an unsigned numeric uid, not a name.\"" >&5
3121 echo "$as_me: error: \"you must use an unsigned numeric uid, not a name.\"" >&2;}
3122    { (exit 1); exit 1; }; }
3123                 ;;
3124 esac
3125 fi
3126
3127
3128
3129 # Check whether --with-sudoers-gid was given.
3130 if test "${with_sudoers_gid+set}" = set; then
3131   withval=$with_sudoers_gid; case $with_sudoers_gid in
3132     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-sudoers-gid an argument.\"" >&5
3133 echo "$as_me: error: \"must give --with-sudoers-gid an argument.\"" >&2;}
3134    { (exit 1); exit 1; }; }
3135                 ;;
3136     no)         { { echo "$as_me:$LINENO: error: \"--without-sudoers-gid not supported.\"" >&5
3137 echo "$as_me: error: \"--without-sudoers-gid not supported.\"" >&2;}
3138    { (exit 1); exit 1; }; }
3139                 ;;
3140     [0-9]*)     SUDOERS_GID=$with_sudoers_gid
3141                 ;;
3142     *)          { { echo "$as_me:$LINENO: error: \"you must use an unsigned numeric gid, not a name.\"" >&5
3143 echo "$as_me: error: \"you must use an unsigned numeric gid, not a name.\"" >&2;}
3144    { (exit 1); exit 1; }; }
3145                 ;;
3146 esac
3147 fi
3148
3149
3150 { echo "$as_me:$LINENO: checking for umask programs should be run with" >&5
3151 echo $ECHO_N "checking for umask programs should be run with... $ECHO_C" >&6; }
3152
3153 # Check whether --with-umask was given.
3154 if test "${with_umask+set}" = set; then
3155   withval=$with_umask; case $with_umask in
3156     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-umask an argument.\"" >&5
3157 echo "$as_me: error: \"must give --with-umask an argument.\"" >&2;}
3158    { (exit 1); exit 1; }; }
3159                 ;;
3160     no)         sudo_umask=0777
3161                 ;;
3162     [0-9]*)     sudo_umask=$with_umask
3163                 ;;
3164     *)          { { echo "$as_me:$LINENO: error: \"you must enter a numeric mask.\"" >&5
3165 echo "$as_me: error: \"you must enter a numeric mask.\"" >&2;}
3166    { (exit 1); exit 1; }; }
3167                 ;;
3168 esac
3169 fi
3170
3171
3172 cat >>confdefs.h <<_ACEOF
3173 #define SUDO_UMASK $sudo_umask
3174 _ACEOF
3175
3176 if test "$sudo_umask" = "0777"; then
3177     { echo "$as_me:$LINENO: result: user" >&5
3178 echo "${ECHO_T}user" >&6; }
3179 else
3180     { echo "$as_me:$LINENO: result: $sudo_umask" >&5
3181 echo "${ECHO_T}$sudo_umask" >&6; }
3182 fi
3183
3184 { echo "$as_me:$LINENO: checking for default user to run commands as" >&5
3185 echo $ECHO_N "checking for default user to run commands as... $ECHO_C" >&6; }
3186
3187 # Check whether --with-runas-default was given.
3188 if test "${with_runas_default+set}" = set; then
3189   withval=$with_runas_default; case $with_runas_default in
3190     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-runas-default an argument.\"" >&5
3191 echo "$as_me: error: \"must give --with-runas-default an argument.\"" >&2;}
3192    { (exit 1); exit 1; }; }
3193                 ;;
3194     no)         { { echo "$as_me:$LINENO: error: \"--without-runas-default not supported.\"" >&5
3195 echo "$as_me: error: \"--without-runas-default not supported.\"" >&2;}
3196    { (exit 1); exit 1; }; }
3197                 ;;
3198     *)          runas_default="$with_runas_default"
3199                 ;;
3200 esac
3201 fi
3202
3203
3204 cat >>confdefs.h <<_ACEOF
3205 #define RUNAS_DEFAULT "$runas_default"
3206 _ACEOF
3207
3208 { echo "$as_me:$LINENO: result: $runas_default" >&5
3209 echo "${ECHO_T}$runas_default" >&6; }
3210
3211
3212 # Check whether --with-exempt was given.
3213 if test "${with_exempt+set}" = set; then
3214   withval=$with_exempt; case $with_exempt in
3215     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-exempt an argument.\"" >&5
3216 echo "$as_me: error: \"must give --with-exempt an argument.\"" >&2;}
3217    { (exit 1); exit 1; }; }
3218                 ;;
3219     no)         { { echo "$as_me:$LINENO: error: \"--without-exempt not supported.\"" >&5
3220 echo "$as_me: error: \"--without-exempt not supported.\"" >&2;}
3221    { (exit 1); exit 1; }; }
3222                 ;;
3223     *)
3224 cat >>confdefs.h <<_ACEOF
3225 #define EXEMPTGROUP "$with_exempt"
3226 _ACEOF
3227
3228                 { echo "$as_me:$LINENO: checking for group to be exempt from password" >&5
3229 echo $ECHO_N "checking for group to be exempt from password... $ECHO_C" >&6; }
3230                 { echo "$as_me:$LINENO: result: $with_exempt" >&5
3231 echo "${ECHO_T}$with_exempt" >&6; }
3232                 ;;
3233 esac
3234 fi
3235
3236
3237 { echo "$as_me:$LINENO: checking for editor that visudo should use" >&5
3238 echo $ECHO_N "checking for editor that visudo should use... $ECHO_C" >&6; }
3239
3240 # Check whether --with-editor was given.
3241 if test "${with_editor+set}" = set; then
3242   withval=$with_editor; case $with_editor in
3243     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-editor an argument.\"" >&5
3244 echo "$as_me: error: \"must give --with-editor an argument.\"" >&2;}
3245    { (exit 1); exit 1; }; }
3246                 ;;
3247     no)         { { echo "$as_me:$LINENO: error: \"--without-editor not supported.\"" >&5
3248 echo "$as_me: error: \"--without-editor not supported.\"" >&2;}
3249    { (exit 1); exit 1; }; }
3250                 ;;
3251     *)
3252 cat >>confdefs.h <<_ACEOF
3253 #define EDITOR "$with_editor"
3254 _ACEOF
3255
3256                 { echo "$as_me:$LINENO: result: $with_editor" >&5
3257 echo "${ECHO_T}$with_editor" >&6; }
3258                 ;;
3259 esac
3260 else
3261   cat >>confdefs.h <<\_ACEOF
3262 #define EDITOR _PATH_VI
3263 _ACEOF
3264  { echo "$as_me:$LINENO: result: vi" >&5
3265 echo "${ECHO_T}vi" >&6; }
3266 fi
3267
3268
3269 { echo "$as_me:$LINENO: checking whether to obey EDITOR and VISUAL environment variables" >&5
3270 echo $ECHO_N "checking whether to obey EDITOR and VISUAL environment variables... $ECHO_C" >&6; }
3271
3272 # Check whether --with-env-editor was given.
3273 if test "${with_env_editor+set}" = set; then
3274   withval=$with_env_editor; case $with_env_editor in
3275     yes)        env_editor=on
3276                 ;;
3277     no)         env_editor=off
3278                 ;;
3279     *)          { { echo "$as_me:$LINENO: error: \"--with-env-editor does not take an argument.\"" >&5
3280 echo "$as_me: error: \"--with-env-editor does not take an argument.\"" >&2;}
3281    { (exit 1); exit 1; }; }
3282                 ;;
3283 esac
3284 fi
3285
3286 if test "$env_editor" = "on"; then
3287     cat >>confdefs.h <<\_ACEOF
3288 #define ENV_EDITOR 1
3289 _ACEOF
3290
3291     { echo "$as_me:$LINENO: result: yes" >&5
3292 echo "${ECHO_T}yes" >&6; }
3293 else
3294     { echo "$as_me:$LINENO: result: no" >&5
3295 echo "${ECHO_T}no" >&6; }
3296 fi
3297
3298 { echo "$as_me:$LINENO: checking number of tries a user gets to enter their password" >&5
3299 echo $ECHO_N "checking number of tries a user gets to enter their password... $ECHO_C" >&6; }
3300
3301 # Check whether --with-passwd-tries was given.
3302 if test "${with_passwd_tries+set}" = set; then
3303   withval=$with_passwd_tries; case $with_passwd_tries in
3304     yes)        ;;
3305     no)         { { echo "$as_me:$LINENO: error: \"--without-editor not supported.\"" >&5
3306 echo "$as_me: error: \"--without-editor not supported.\"" >&2;}
3307    { (exit 1); exit 1; }; }
3308                 ;;
3309     [1-9]*)     passwd_tries=$with_passwd_tries
3310                 ;;
3311     *)          { { echo "$as_me:$LINENO: error: \"you must enter the numer of tries, > 0\"" >&5
3312 echo "$as_me: error: \"you must enter the numer of tries, > 0\"" >&2;}
3313    { (exit 1); exit 1; }; }
3314                 ;;
3315 esac
3316 fi
3317
3318
3319 cat >>confdefs.h <<_ACEOF
3320 #define TRIES_FOR_PASSWORD $passwd_tries
3321 _ACEOF
3322
3323 { echo "$as_me:$LINENO: result: $passwd_tries" >&5
3324 echo "${ECHO_T}$passwd_tries" >&6; }
3325
3326 { echo "$as_me:$LINENO: checking time in minutes after which sudo will ask for a password again" >&5
3327 echo $ECHO_N "checking time in minutes after which sudo will ask for a password again... $ECHO_C" >&6; }
3328
3329 # Check whether --with-timeout was given.
3330 if test "${with_timeout+set}" = set; then
3331   withval=$with_timeout; case $with_timeout in
3332     yes)        ;;
3333     no)         timeout=0
3334                 ;;
3335     [0-9]*)     timeout=$with_timeout
3336                 ;;
3337     *)          { { echo "$as_me:$LINENO: error: \"you must enter the numer of minutes.\"" >&5
3338 echo "$as_me: error: \"you must enter the numer of minutes.\"" >&2;}
3339    { (exit 1); exit 1; }; }
3340                 ;;
3341 esac
3342 fi
3343
3344
3345 cat >>confdefs.h <<_ACEOF
3346 #define TIMEOUT $timeout
3347 _ACEOF
3348
3349 { echo "$as_me:$LINENO: result: $timeout" >&5
3350 echo "${ECHO_T}$timeout" >&6; }
3351
3352 { echo "$as_me:$LINENO: checking time in minutes after the password prompt will time out" >&5
3353 echo $ECHO_N "checking time in minutes after the password prompt will time out... $ECHO_C" >&6; }
3354
3355 # Check whether --with-password-timeout was given.
3356 if test "${with_password_timeout+set}" = set; then
3357   withval=$with_password_timeout; case $with_password_timeout in
3358     yes)        ;;
3359     no)         password_timeout=0
3360                 ;;
3361     [0-9]*)     password_timeout=$with_password_timeout
3362                 ;;
3363     *)          { { echo "$as_me:$LINENO: error: \"you must enter the numer of minutes.\"" >&5
3364 echo "$as_me: error: \"you must enter the numer of minutes.\"" >&2;}
3365    { (exit 1); exit 1; }; }
3366                 ;;
3367 esac
3368 fi
3369
3370
3371 cat >>confdefs.h <<_ACEOF
3372 #define PASSWORD_TIMEOUT $password_timeout
3373 _ACEOF
3374
3375 { echo "$as_me:$LINENO: result: $password_timeout" >&5
3376 echo "${ECHO_T}$password_timeout" >&6; }
3377
3378 { echo "$as_me:$LINENO: checking whether to use per-tty ticket files" >&5
3379 echo $ECHO_N "checking whether to use per-tty ticket files... $ECHO_C" >&6; }
3380
3381 # Check whether --with-tty-tickets was given.
3382 if test "${with_tty_tickets+set}" = set; then
3383   withval=$with_tty_tickets; case $with_tty_tickets in
3384     yes)        tty_tickets=on
3385                 ;;
3386     no)         tty_tickets=off
3387                 ;;
3388     *)          { { echo "$as_me:$LINENO: error: \"--with-tty-tickets does not take an argument.\"" >&5
3389 echo "$as_me: error: \"--with-tty-tickets does not take an argument.\"" >&2;}
3390    { (exit 1); exit 1; }; }
3391                 ;;
3392 esac
3393 fi
3394
3395 if test "$tty_tickets" = "on"; then
3396     cat >>confdefs.h <<\_ACEOF
3397 #define USE_TTY_TICKETS 1
3398 _ACEOF
3399
3400     { echo "$as_me:$LINENO: result: yes" >&5
3401 echo "${ECHO_T}yes" >&6; }
3402 else
3403     { echo "$as_me:$LINENO: result: no" >&5
3404 echo "${ECHO_T}no" >&6; }
3405 fi
3406
3407 { echo "$as_me:$LINENO: checking whether to include insults" >&5
3408 echo $ECHO_N "checking whether to include insults... $ECHO_C" >&6; }
3409
3410 # Check whether --with-insults was given.
3411 if test "${with_insults+set}" = set; then
3412   withval=$with_insults; case $with_insults in
3413     yes)        insults=on
3414                 with_classic_insults=yes
3415                 with_csops_insults=yes
3416                 ;;
3417     no)         insults=off
3418                 ;;
3419     *)          { { echo "$as_me:$LINENO: error: \"--with-insults does not take an argument.\"" >&5
3420 echo "$as_me: error: \"--with-insults does not take an argument.\"" >&2;}
3421    { (exit 1); exit 1; }; }
3422                 ;;
3423 esac
3424 fi
3425
3426 if test "$insults" = "on"; then
3427     cat >>confdefs.h <<\_ACEOF
3428 #define USE_INSULTS 1
3429 _ACEOF
3430
3431     { echo "$as_me:$LINENO: result: yes" >&5
3432 echo "${ECHO_T}yes" >&6; }
3433 else
3434     { echo "$as_me:$LINENO: result: no" >&5
3435 echo "${ECHO_T}no" >&6; }
3436 fi
3437
3438
3439 # Check whether --with-all-insults was given.
3440 if test "${with_all_insults+set}" = set; then
3441   withval=$with_all_insults; case $with_all_insults in
3442     yes)        with_classic_insults=yes
3443                 with_csops_insults=yes
3444                 with_hal_insults=yes
3445                 with_goons_insults=yes
3446                 ;;
3447     no)         ;;
3448     *)          { { echo "$as_me:$LINENO: error: \"--with-all-insults does not take an argument.\"" >&5
3449 echo "$as_me: error: \"--with-all-insults does not take an argument.\"" >&2;}
3450    { (exit 1); exit 1; }; }
3451                 ;;
3452 esac
3453 fi
3454
3455
3456
3457 # Check whether --with-classic-insults was given.
3458 if test "${with_classic_insults+set}" = set; then
3459   withval=$with_classic_insults; case $with_classic_insults in
3460     yes)        cat >>confdefs.h <<\_ACEOF
3461 #define CLASSIC_INSULTS 1
3462 _ACEOF
3463
3464                 ;;
3465     no)         ;;
3466     *)          { { echo "$as_me:$LINENO: error: \"--with-classic-insults does not take an argument.\"" >&5
3467 echo "$as_me: error: \"--with-classic-insults does not take an argument.\"" >&2;}
3468    { (exit 1); exit 1; }; }
3469                 ;;
3470 esac
3471 fi
3472
3473
3474
3475 # Check whether --with-csops-insults was given.
3476 if test "${with_csops_insults+set}" = set; then
3477   withval=$with_csops_insults; case $with_csops_insults in
3478     yes)        cat >>confdefs.h <<\_ACEOF
3479 #define CSOPS_INSULTS 1
3480 _ACEOF
3481
3482                 ;;
3483     no)         ;;
3484     *)          { { echo "$as_me:$LINENO: error: \"--with-csops-insults does not take an argument.\"" >&5
3485 echo "$as_me: error: \"--with-csops-insults does not take an argument.\"" >&2;}
3486    { (exit 1); exit 1; }; }
3487                 ;;
3488 esac
3489 fi
3490
3491
3492
3493 # Check whether --with-hal-insults was given.
3494 if test "${with_hal_insults+set}" = set; then
3495   withval=$with_hal_insults; case $with_hal_insults in
3496     yes)        cat >>confdefs.h <<\_ACEOF
3497 #define HAL_INSULTS 1
3498 _ACEOF
3499
3500                 ;;
3501     no)         ;;
3502     *)          { { echo "$as_me:$LINENO: error: \"--with-hal-insults does not take an argument.\"" >&5
3503 echo "$as_me: error: \"--with-hal-insults does not take an argument.\"" >&2;}
3504    { (exit 1); exit 1; }; }
3505                 ;;
3506 esac
3507 fi
3508
3509
3510
3511 # Check whether --with-goons-insults was given.
3512 if test "${with_goons_insults+set}" = set; then
3513   withval=$with_goons_insults; case $with_goons_insults in
3514     yes)        cat >>confdefs.h <<\_ACEOF
3515 #define GOONS_INSULTS 1
3516 _ACEOF
3517
3518                 ;;
3519     no)         ;;
3520     *)          { { echo "$as_me:$LINENO: error: \"--with-goons-insults does not take an argument.\"" >&5
3521 echo "$as_me: error: \"--with-goons-insults does not take an argument.\"" >&2;}
3522    { (exit 1); exit 1; }; }
3523                 ;;
3524 esac
3525 fi
3526
3527
3528
3529 # Check whether --with-ldap was given.
3530 if test "${with_ldap+set}" = set; then
3531   withval=$with_ldap; case $with_ldap in
3532     no)         with_ldap="";;
3533     *)          cat >>confdefs.h <<\_ACEOF
3534 #define HAVE_LDAP 1
3535 _ACEOF
3536
3537                 { echo "$as_me:$LINENO: checking whether to use sudoers from LDAP" >&5
3538 echo $ECHO_N "checking whether to use sudoers from LDAP... $ECHO_C" >&6; }
3539                 { echo "$as_me:$LINENO: result: yes" >&5
3540 echo "${ECHO_T}yes" >&6; }
3541                 ;;
3542 esac
3543 fi
3544
3545
3546 # Check whether --with-ldap-conf-file was given.
3547 if test "${with_ldap_conf_file+set}" = set; then
3548   withval=$with_ldap_conf_file;
3549 cat >>confdefs.h <<_ACEOF
3550 #define _PATH_LDAP_CONF "$with_ldap_conf_file"
3551 _ACEOF
3552
3553 fi
3554
3555
3556 # Check whether --with-ldap-secret-file was given.
3557 if test "${with_ldap_secret_file+set}" = set; then
3558   withval=$with_ldap_secret_file;
3559 cat >>confdefs.h <<_ACEOF
3560 #define _PATH_LDAP_SECRET "$with_ldap_secret_file"
3561 _ACEOF
3562
3563 fi
3564
3565
3566
3567 # Check whether --with-pc-insults was given.
3568 if test "${with_pc_insults+set}" = set; then
3569   withval=$with_pc_insults; case $with_pc_insults in
3570     yes)        cat >>confdefs.h <<\_ACEOF
3571 #define PC_INSULTS 1
3572 _ACEOF
3573
3574                 ;;
3575     no)         ;;
3576     *)          { { echo "$as_me:$LINENO: error: \"--with-pc-insults does not take an argument.\"" >&5
3577 echo "$as_me: error: \"--with-pc-insults does not take an argument.\"" >&2;}
3578    { (exit 1); exit 1; }; }
3579                 ;;
3580 esac
3581 fi
3582
3583
3584 if test "$insults" = "on"; then
3585     { echo "$as_me:$LINENO: checking which insult sets to include" >&5
3586 echo $ECHO_N "checking which insult sets to include... $ECHO_C" >&6; }
3587     i=""
3588     test "$with_goons_insults" = "yes" && i="goons ${i}"
3589     test "$with_hal_insults" = "yes" && i="hal ${i}"
3590     test "$with_csops_insults" = "yes" && i="csops ${i}"
3591     test "$with_classic_insults" = "yes" && i="classic ${i}"
3592     { echo "$as_me:$LINENO: result: $i" >&5
3593 echo "${ECHO_T}$i" >&6; }
3594 fi
3595
3596 { echo "$as_me:$LINENO: checking whether to override the user's path" >&5
3597 echo $ECHO_N "checking whether to override the user's path... $ECHO_C" >&6; }
3598
3599 # Check whether --with-secure-path was given.
3600 if test "${with_secure_path+set}" = set; then
3601   withval=$with_secure_path; case $with_secure_path in
3602     yes)        cat >>confdefs.h <<_ACEOF
3603 #define SECURE_PATH "/bin:/usr/ucb:/usr/bin:/usr/sbin:/sbin:/usr/etc:/etc"
3604 _ACEOF
3605
3606                 { echo "$as_me:$LINENO: result: :/usr/ucb:/usr/bin:/usr/sbin:/sbin:/usr/etc:/etc" >&5
3607 echo "${ECHO_T}:/usr/ucb:/usr/bin:/usr/sbin:/sbin:/usr/etc:/etc" >&6; }
3608                 ;;
3609     no)         { echo "$as_me:$LINENO: result: no" >&5
3610 echo "${ECHO_T}no" >&6; }
3611                 ;;
3612     *)          cat >>confdefs.h <<_ACEOF
3613 #define SECURE_PATH "$with_secure_path"
3614 _ACEOF
3615
3616                 { echo "$as_me:$LINENO: result: $with_secure_path" >&5
3617 echo "${ECHO_T}$with_secure_path" >&6; }
3618                 ;;
3619 esac
3620 else
3621   { echo "$as_me:$LINENO: result: no" >&5
3622 echo "${ECHO_T}no" >&6; }
3623 fi
3624
3625
3626 { echo "$as_me:$LINENO: checking whether to get ip addresses from the network interfaces" >&5
3627 echo $ECHO_N "checking whether to get ip addresses from the network interfaces... $ECHO_C" >&6; }
3628
3629 # Check whether --with-interfaces was given.
3630 if test "${with_interfaces+set}" = set; then
3631   withval=$with_interfaces; case $with_interfaces in
3632     yes)        { echo "$as_me:$LINENO: result: yes" >&5
3633 echo "${ECHO_T}yes" >&6; }
3634                 ;;
3635     no)         cat >>confdefs.h <<\_ACEOF
3636 #define STUB_LOAD_INTERFACES 1
3637 _ACEOF
3638
3639                 { echo "$as_me:$LINENO: result: no" >&5
3640 echo "${ECHO_T}no" >&6; }
3641                 ;;
3642     *)          { { echo "$as_me:$LINENO: error: \"--with-interfaces does not take an argument.\"" >&5
3643 echo "$as_me: error: \"--with-interfaces does not take an argument.\"" >&2;}
3644    { (exit 1); exit 1; }; }
3645                 ;;
3646 esac
3647 else
3648   { echo "$as_me:$LINENO: result: yes" >&5
3649 echo "${ECHO_T}yes" >&6; }
3650 fi
3651
3652
3653 { echo "$as_me:$LINENO: checking whether stow should be used" >&5
3654 echo $ECHO_N "checking whether stow should be used... $ECHO_C" >&6; }
3655
3656 # Check whether --with-stow was given.
3657 if test "${with_stow+set}" = set; then
3658   withval=$with_stow; case $with_stow in
3659     yes)        { echo "$as_me:$LINENO: result: yes" >&5
3660 echo "${ECHO_T}yes" >&6; }
3661                 cat >>confdefs.h <<\_ACEOF
3662 #define USE_STOW 1
3663 _ACEOF
3664
3665                 ;;
3666     no)         { echo "$as_me:$LINENO: result: no" >&5
3667 echo "${ECHO_T}no" >&6; }
3668                 ;;
3669     *)          { { echo "$as_me:$LINENO: error: \"--with-stow does not take an argument.\"" >&5
3670 echo "$as_me: error: \"--with-stow does not take an argument.\"" >&2;}
3671    { (exit 1); exit 1; }; }
3672                 ;;
3673 esac
3674 else
3675   { echo "$as_me:$LINENO: result: no" >&5
3676 echo "${ECHO_T}no" >&6; }
3677 fi
3678
3679
3680
3681 { echo "$as_me:$LINENO: checking whether to do user authentication by default" >&5
3682 echo $ECHO_N "checking whether to do user authentication by default... $ECHO_C" >&6; }
3683 # Check whether --enable-authentication was given.
3684 if test "${enable_authentication+set}" = set; then
3685   enableval=$enable_authentication;  case "$enableval" in
3686     yes)        { echo "$as_me:$LINENO: result: yes" >&5
3687 echo "${ECHO_T}yes" >&6; }
3688                 ;;
3689     no)         { echo "$as_me:$LINENO: result: no" >&5
3690 echo "${ECHO_T}no" >&6; }
3691                 cat >>confdefs.h <<\_ACEOF
3692 #define NO_AUTHENTICATION 1
3693 _ACEOF
3694
3695                 ;;
3696     *)          { echo "$as_me:$LINENO: result: no" >&5
3697 echo "${ECHO_T}no" >&6; }
3698                 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-authentication: $enableval" >&5
3699 echo "$as_me: WARNING: Ignoring unknown argument to --enable-authentication: $enableval" >&2;}
3700                 ;;
3701   esac
3702
3703 else
3704   { echo "$as_me:$LINENO: result: yes" >&5
3705 echo "${ECHO_T}yes" >&6; }
3706 fi
3707
3708
3709 { echo "$as_me:$LINENO: checking whether to disable running the mailer as root" >&5
3710 echo $ECHO_N "checking whether to disable running the mailer as root... $ECHO_C" >&6; }
3711 # Check whether --enable-root-mailer was given.
3712 if test "${enable_root_mailer+set}" = set; then
3713   enableval=$enable_root_mailer;  case "$enableval" in
3714     yes)        { echo "$as_me:$LINENO: result: no" >&5
3715 echo "${ECHO_T}no" >&6; }
3716                 ;;
3717     no)         { echo "$as_me:$LINENO: result: yes" >&5
3718 echo "${ECHO_T}yes" >&6; }
3719                 cat >>confdefs.h <<\_ACEOF
3720 #define NO_ROOT_MAILER 1
3721 _ACEOF
3722
3723                 ;;
3724     *)          { echo "$as_me:$LINENO: result: no" >&5
3725 echo "${ECHO_T}no" >&6; }
3726                 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-root-mailer: $enableval" >&5
3727 echo "$as_me: WARNING: Ignoring unknown argument to --enable-root-mailer: $enableval" >&2;}
3728                 ;;
3729   esac
3730
3731 else
3732   { echo "$as_me:$LINENO: result: no" >&5
3733 echo "${ECHO_T}no" >&6; }
3734 fi
3735
3736
3737 # Check whether --enable-setreuid was given.
3738 if test "${enable_setreuid+set}" = set; then
3739   enableval=$enable_setreuid;  case "$enableval" in
3740     no)         SKIP_SETREUID=yes
3741                 ;;
3742     *)          ;;
3743   esac
3744
3745 fi
3746
3747
3748 # Check whether --enable-setresuid was given.
3749 if test "${enable_setresuid+set}" = set; then
3750   enableval=$enable_setresuid;  case "$enableval" in
3751     no)         SKIP_SETRESUID=yes
3752                 ;;
3753     *)          ;;
3754   esac
3755
3756 fi
3757
3758
3759 { echo "$as_me:$LINENO: checking whether to disable shadow password support" >&5
3760 echo $ECHO_N "checking whether to disable shadow password support... $ECHO_C" >&6; }
3761 # Check whether --enable-shadow was given.
3762 if test "${enable_shadow+set}" = set; then
3763   enableval=$enable_shadow;  case "$enableval" in
3764     yes)        { echo "$as_me:$LINENO: result: no" >&5
3765 echo "${ECHO_T}no" >&6; }
3766                 ;;
3767     no)         { echo "$as_me:$LINENO: result: yes" >&5
3768 echo "${ECHO_T}yes" >&6; }
3769                 CHECKSHADOW="false"
3770                 ;;
3771     *)          { echo "$as_me:$LINENO: result: no" >&5
3772 echo "${ECHO_T}no" >&6; }
3773                 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-shadow: $enableval" >&5
3774 echo "$as_me: WARNING: Ignoring unknown argument to --enable-shadow: $enableval" >&2;}
3775                 ;;
3776   esac
3777
3778 else
3779   { echo "$as_me:$LINENO: result: no" >&5
3780 echo "${ECHO_T}no" >&6; }
3781 fi
3782
3783
3784 { echo "$as_me:$LINENO: checking whether root should be allowed to use sudo" >&5
3785 echo $ECHO_N "checking whether root should be allowed to use sudo... $ECHO_C" >&6; }
3786 # Check whether --enable-root-sudo was given.
3787 if test "${enable_root_sudo+set}" = set; then
3788   enableval=$enable_root_sudo;  case "$enableval" in
3789     yes)        { echo "$as_me:$LINENO: result: yes" >&5
3790 echo "${ECHO_T}yes" >&6; }
3791                 ;;
3792     no)         cat >>confdefs.h <<\_ACEOF
3793 #define NO_ROOT_SUDO 1
3794 _ACEOF
3795
3796                 { echo "$as_me:$LINENO: result: no" >&5
3797 echo "${ECHO_T}no" >&6; }
3798                 root_sudo=off
3799                 ;;
3800     *)          { { echo "$as_me:$LINENO: error: \"--enable-root-sudo does not take an argument.\"" >&5
3801 echo "$as_me: error: \"--enable-root-sudo does not take an argument.\"" >&2;}
3802    { (exit 1); exit 1; }; }
3803                 ;;
3804   esac
3805
3806 else
3807   { echo "$as_me:$LINENO: result: yes" >&5
3808 echo "${ECHO_T}yes" >&6; }
3809 fi
3810
3811
3812 { echo "$as_me:$LINENO: checking whether to log the hostname in the log file" >&5
3813 echo $ECHO_N "checking whether to log the hostname in the log file... $ECHO_C" >&6; }
3814 # Check whether --enable-log-host was given.
3815 if test "${enable_log_host+set}" = set; then
3816   enableval=$enable_log_host;  case "$enableval" in
3817     yes)        { echo "$as_me:$LINENO: result: yes" >&5
3818 echo "${ECHO_T}yes" >&6; }
3819                 cat >>confdefs.h <<\_ACEOF
3820 #define HOST_IN_LOG 1
3821 _ACEOF
3822
3823                 ;;
3824     no)         { echo "$as_me:$LINENO: result: no" >&5
3825 echo "${ECHO_T}no" >&6; }
3826                 ;;
3827     *)          { echo "$as_me:$LINENO: result: no" >&5
3828 echo "${ECHO_T}no" >&6; }
3829                 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-log-host: $enableval" >&5
3830 echo "$as_me: WARNING: Ignoring unknown argument to --enable-log-host: $enableval" >&2;}
3831                 ;;
3832   esac
3833
3834 else
3835   { echo "$as_me:$LINENO: result: no" >&5
3836 echo "${ECHO_T}no" >&6; }
3837 fi
3838
3839
3840 { echo "$as_me:$LINENO: checking whether to invoke a shell if sudo is given no arguments" >&5
3841 echo $ECHO_N "checking whether to invoke a shell if sudo is given no arguments... $ECHO_C" >&6; }
3842 # Check whether --enable-noargs-shell was given.
3843 if test "${enable_noargs_shell+set}" = set; then
3844   enableval=$enable_noargs_shell;  case "$enableval" in
3845     yes)        { echo "$as_me:$LINENO: result: yes" >&5
3846 echo "${ECHO_T}yes" >&6; }
3847                 cat >>confdefs.h <<\_ACEOF
3848 #define SHELL_IF_NO_ARGS 1
3849 _ACEOF
3850
3851                 ;;
3852     no)         { echo "$as_me:$LINENO: result: no" >&5
3853 echo "${ECHO_T}no" >&6; }
3854                 ;;
3855     *)          { echo "$as_me:$LINENO: result: no" >&5
3856 echo "${ECHO_T}no" >&6; }
3857                 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-noargs-shell: $enableval" >&5
3858 echo "$as_me: WARNING: Ignoring unknown argument to --enable-noargs-shell: $enableval" >&2;}
3859                 ;;
3860   esac
3861
3862 else
3863   { echo "$as_me:$LINENO: result: no" >&5
3864 echo "${ECHO_T}no" >&6; }
3865 fi
3866
3867
3868 { echo "$as_me:$LINENO: checking whether to set \$HOME to target user in shell mode" >&5
3869 echo $ECHO_N "checking whether to set \$HOME to target user in shell mode... $ECHO_C" >&6; }
3870 # Check whether --enable-shell-sets-home was given.
3871 if test "${enable_shell_sets_home+set}" = set; then
3872   enableval=$enable_shell_sets_home;  case "$enableval" in
3873     yes)        { echo "$as_me:$LINENO: result: yes" >&5
3874 echo "${ECHO_T}yes" >&6; }
3875                 cat >>confdefs.h <<\_ACEOF
3876 #define SHELL_SETS_HOME 1
3877 _ACEOF
3878
3879                 ;;
3880     no)         { echo "$as_me:$LINENO: result: no" >&5
3881 echo "${ECHO_T}no" >&6; }
3882                 ;;
3883     *)          { echo "$as_me:$LINENO: result: no" >&5
3884 echo "${ECHO_T}no" >&6; }
3885                 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-shell-sets-home: $enableval" >&5
3886 echo "$as_me: WARNING: Ignoring unknown argument to --enable-shell-sets-home: $enableval" >&2;}
3887                 ;;
3888   esac
3889
3890 else
3891   { echo "$as_me:$LINENO: result: no" >&5
3892 echo "${ECHO_T}no" >&6; }
3893 fi
3894
3895
3896 { echo "$as_me:$LINENO: checking whether to disable 'command not found' messages" >&5
3897 echo $ECHO_N "checking whether to disable 'command not found' messages... $ECHO_C" >&6; }
3898 # Check whether --enable-path_info was given.
3899 if test "${enable_path_info+set}" = set; then
3900   enableval=$enable_path_info;  case "$enableval" in
3901     yes)        { echo "$as_me:$LINENO: result: no" >&5
3902 echo "${ECHO_T}no" >&6; }
3903                 ;;
3904     no)         { echo "$as_me:$LINENO: result: yes" >&5
3905 echo "${ECHO_T}yes" >&6; }
3906                 cat >>confdefs.h <<\_ACEOF
3907 #define DONT_LEAK_PATH_INFO 1
3908 _ACEOF
3909
3910                 path_info=off
3911                 ;;
3912     *)          { echo "$as_me:$LINENO: result: no" >&5
3913 echo "${ECHO_T}no" >&6; }
3914                 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-path-info: $enableval" >&5
3915 echo "$as_me: WARNING: Ignoring unknown argument to --enable-path-info: $enableval" >&2;}
3916                 ;;
3917   esac
3918
3919 else
3920   { echo "$as_me:$LINENO: result: no" >&5
3921 echo "${ECHO_T}no" >&6; }
3922 fi
3923
3924
3925 # Extract the first word of "egrep", so it can be a program name with args.
3926 set dummy egrep; ac_word=$2
3927 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3928 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3929 if test "${ac_cv_prog_EGREPPROG+set}" = set; then
3930   echo $ECHO_N "(cached) $ECHO_C" >&6
3931 else
3932   if test -n "$EGREPPROG"; then
3933   ac_cv_prog_EGREPPROG="$EGREPPROG" # Let the user override the test.
3934 else
3935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3936 for as_dir in $PATH
3937 do
3938   IFS=$as_save_IFS
3939   test -z "$as_dir" && as_dir=.
3940   for ac_exec_ext in '' $ac_executable_extensions; do
3941   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3942     ac_cv_prog_EGREPPROG="egrep"
3943     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3944     break 2
3945   fi
3946 done
3947 done
3948 IFS=$as_save_IFS
3949
3950 fi
3951 fi
3952 EGREPPROG=$ac_cv_prog_EGREPPROG
3953 if test -n "$EGREPPROG"; then
3954   { echo "$as_me:$LINENO: result: $EGREPPROG" >&5
3955 echo "${ECHO_T}$EGREPPROG" >&6; }
3956 else
3957   { echo "$as_me:$LINENO: result: no" >&5
3958 echo "${ECHO_T}no" >&6; }
3959 fi
3960
3961
3962 if test -z "$EGREPPROG"; then
3963     { { echo "$as_me:$LINENO: error: Sorry, configure requires egrep to run." >&5
3964 echo "$as_me: error: Sorry, configure requires egrep to run." >&2;}
3965    { (exit 1); exit 1; }; }
3966 fi
3967
3968 if test "$with_devel" != "yes"; then
3969     ac_cv_prog_cc_g=no
3970 fi
3971
3972 ac_ext=c
3973 ac_cpp='$CPP $CPPFLAGS'
3974 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3975 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3976 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3977 if test -n "$ac_tool_prefix"; then
3978   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3979 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3980 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3982 if test "${ac_cv_prog_CC+set}" = set; then
3983   echo $ECHO_N "(cached) $ECHO_C" >&6
3984 else
3985   if test -n "$CC"; then
3986   ac_cv_prog_CC="$CC" # Let the user override the test.
3987 else
3988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3989 for as_dir in $PATH
3990 do
3991   IFS=$as_save_IFS
3992   test -z "$as_dir" && as_dir=.
3993   for ac_exec_ext in '' $ac_executable_extensions; do
3994   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3995     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3996     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3997     break 2
3998   fi
3999 done
4000 done
4001 IFS=$as_save_IFS
4002
4003 fi
4004 fi
4005 CC=$ac_cv_prog_CC
4006 if test -n "$CC"; then
4007   { echo "$as_me:$LINENO: result: $CC" >&5
4008 echo "${ECHO_T}$CC" >&6; }
4009 else
4010   { echo "$as_me:$LINENO: result: no" >&5
4011 echo "${ECHO_T}no" >&6; }
4012 fi
4013
4014
4015 fi
4016 if test -z "$ac_cv_prog_CC"; then
4017   ac_ct_CC=$CC
4018   # Extract the first word of "gcc", so it can be a program name with args.
4019 set dummy gcc; ac_word=$2
4020 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4021 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4022 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4023   echo $ECHO_N "(cached) $ECHO_C" >&6
4024 else
4025   if test -n "$ac_ct_CC"; then
4026   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4027 else
4028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4029 for as_dir in $PATH
4030 do
4031   IFS=$as_save_IFS
4032   test -z "$as_dir" && as_dir=.
4033   for ac_exec_ext in '' $ac_executable_extensions; do
4034   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4035     ac_cv_prog_ac_ct_CC="gcc"
4036     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4037     break 2
4038   fi
4039 done
4040 done
4041 IFS=$as_save_IFS
4042
4043 fi
4044 fi
4045 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4046 if test -n "$ac_ct_CC"; then
4047   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4048 echo "${ECHO_T}$ac_ct_CC" >&6; }
4049 else
4050   { echo "$as_me:$LINENO: result: no" >&5
4051 echo "${ECHO_T}no" >&6; }
4052 fi
4053
4054   if test "x$ac_ct_CC" = x; then
4055     CC=""
4056   else
4057     case $cross_compiling:$ac_tool_warned in
4058 yes:)
4059 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4060 whose name does not start with the host triplet.  If you think this
4061 configuration is useful to you, please write to autoconf@gnu.org." >&5
4062 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4063 whose name does not start with the host triplet.  If you think this
4064 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4065 ac_tool_warned=yes ;;
4066 esac
4067     CC=$ac_ct_CC
4068   fi
4069 else
4070   CC="$ac_cv_prog_CC"
4071 fi
4072
4073 if test -z "$CC"; then
4074           if test -n "$ac_tool_prefix"; then
4075     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4076 set dummy ${ac_tool_prefix}cc; ac_word=$2
4077 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4078 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4079 if test "${ac_cv_prog_CC+set}" = set; then
4080   echo $ECHO_N "(cached) $ECHO_C" >&6
4081 else
4082   if test -n "$CC"; then
4083   ac_cv_prog_CC="$CC" # Let the user override the test.
4084 else
4085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4086 for as_dir in $PATH
4087 do
4088   IFS=$as_save_IFS
4089   test -z "$as_dir" && as_dir=.
4090   for ac_exec_ext in '' $ac_executable_extensions; do
4091   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4092     ac_cv_prog_CC="${ac_tool_prefix}cc"
4093     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4094     break 2
4095   fi
4096 done
4097 done
4098 IFS=$as_save_IFS
4099
4100 fi
4101 fi
4102 CC=$ac_cv_prog_CC
4103 if test -n "$CC"; then
4104   { echo "$as_me:$LINENO: result: $CC" >&5
4105 echo "${ECHO_T}$CC" >&6; }
4106 else
4107   { echo "$as_me:$LINENO: result: no" >&5
4108 echo "${ECHO_T}no" >&6; }
4109 fi
4110
4111
4112   fi
4113 fi
4114 if test -z "$CC"; then
4115   # Extract the first word of "cc", so it can be a program name with args.
4116 set dummy cc; ac_word=$2
4117 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4118 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4119 if test "${ac_cv_prog_CC+set}" = set; then
4120   echo $ECHO_N "(cached) $ECHO_C" >&6
4121 else
4122   if test -n "$CC"; then
4123   ac_cv_prog_CC="$CC" # Let the user override the test.
4124 else
4125   ac_prog_rejected=no
4126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4127 for as_dir in $PATH
4128 do
4129   IFS=$as_save_IFS
4130   test -z "$as_dir" && as_dir=.
4131   for ac_exec_ext in '' $ac_executable_extensions; do
4132   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4133     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4134        ac_prog_rejected=yes
4135        continue
4136      fi
4137     ac_cv_prog_CC="cc"
4138     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4139     break 2
4140   fi
4141 done
4142 done
4143 IFS=$as_save_IFS
4144
4145 if test $ac_prog_rejected = yes; then
4146   # We found a bogon in the path, so make sure we never use it.
4147   set dummy $ac_cv_prog_CC
4148   shift
4149   if test $# != 0; then
4150     # We chose a different compiler from the bogus one.
4151     # However, it has the same basename, so the bogon will be chosen
4152     # first if we set CC to just the basename; use the full file name.
4153     shift
4154     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4155   fi
4156 fi
4157 fi
4158 fi
4159 CC=$ac_cv_prog_CC
4160 if test -n "$CC"; then
4161   { echo "$as_me:$LINENO: result: $CC" >&5
4162 echo "${ECHO_T}$CC" >&6; }
4163 else
4164   { echo "$as_me:$LINENO: result: no" >&5
4165 echo "${ECHO_T}no" >&6; }
4166 fi
4167
4168
4169 fi
4170 if test -z "$CC"; then
4171   if test -n "$ac_tool_prefix"; then
4172   for ac_prog in cl.exe
4173   do
4174     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4175 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4176 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4177 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4178 if test "${ac_cv_prog_CC+set}" = set; then
4179   echo $ECHO_N "(cached) $ECHO_C" >&6
4180 else
4181   if test -n "$CC"; then
4182   ac_cv_prog_CC="$CC" # Let the user override the test.
4183 else
4184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4185 for as_dir in $PATH
4186 do
4187   IFS=$as_save_IFS
4188   test -z "$as_dir" && as_dir=.
4189   for ac_exec_ext in '' $ac_executable_extensions; do
4190   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4191     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4192     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4193     break 2
4194   fi
4195 done
4196 done
4197 IFS=$as_save_IFS
4198
4199 fi
4200 fi
4201 CC=$ac_cv_prog_CC
4202 if test -n "$CC"; then
4203   { echo "$as_me:$LINENO: result: $CC" >&5
4204 echo "${ECHO_T}$CC" >&6; }
4205 else
4206   { echo "$as_me:$LINENO: result: no" >&5
4207 echo "${ECHO_T}no" >&6; }
4208 fi
4209
4210
4211     test -n "$CC" && break
4212   done
4213 fi
4214 if test -z "$CC"; then
4215   ac_ct_CC=$CC
4216   for ac_prog in cl.exe
4217 do
4218   # Extract the first word of "$ac_prog", so it can be a program name with args.
4219 set dummy $ac_prog; ac_word=$2
4220 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4222 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4223   echo $ECHO_N "(cached) $ECHO_C" >&6
4224 else
4225   if test -n "$ac_ct_CC"; then
4226   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4227 else
4228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4229 for as_dir in $PATH
4230 do
4231   IFS=$as_save_IFS
4232   test -z "$as_dir" && as_dir=.
4233   for ac_exec_ext in '' $ac_executable_extensions; do
4234   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4235     ac_cv_prog_ac_ct_CC="$ac_prog"
4236     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4237     break 2
4238   fi
4239 done
4240 done
4241 IFS=$as_save_IFS
4242
4243 fi
4244 fi
4245 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4246 if test -n "$ac_ct_CC"; then
4247   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4248 echo "${ECHO_T}$ac_ct_CC" >&6; }
4249 else
4250   { echo "$as_me:$LINENO: result: no" >&5
4251 echo "${ECHO_T}no" >&6; }
4252 fi
4253
4254
4255   test -n "$ac_ct_CC" && break
4256 done
4257
4258   if test "x$ac_ct_CC" = x; then
4259     CC=""
4260   else
4261     case $cross_compiling:$ac_tool_warned in
4262 yes:)
4263 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4264 whose name does not start with the host triplet.  If you think this
4265 configuration is useful to you, please write to autoconf@gnu.org." >&5
4266 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4267 whose name does not start with the host triplet.  If you think this
4268 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4269 ac_tool_warned=yes ;;
4270 esac
4271     CC=$ac_ct_CC
4272   fi
4273 fi
4274
4275 fi
4276
4277
4278 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4279 See \`config.log' for more details." >&5
4280 echo "$as_me: error: no acceptable C compiler found in \$PATH
4281 See \`config.log' for more details." >&2;}
4282    { (exit 1); exit 1; }; }
4283
4284 # Provide some information about the compiler.
4285 echo "$as_me:$LINENO: checking for C compiler version" >&5
4286 ac_compiler=`set X $ac_compile; echo $2`
4287 { (ac_try="$ac_compiler --version >&5"
4288 case "(($ac_try" in
4289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4290   *) ac_try_echo=$ac_try;;
4291 esac
4292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4293   (eval "$ac_compiler --version >&5") 2>&5
4294   ac_status=$?
4295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4296   (exit $ac_status); }
4297 { (ac_try="$ac_compiler -v >&5"
4298 case "(($ac_try" in
4299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4300   *) ac_try_echo=$ac_try;;
4301 esac
4302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4303   (eval "$ac_compiler -v >&5") 2>&5
4304   ac_status=$?
4305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4306   (exit $ac_status); }
4307 { (ac_try="$ac_compiler -V >&5"
4308 case "(($ac_try" in
4309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4310   *) ac_try_echo=$ac_try;;
4311 esac
4312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4313   (eval "$ac_compiler -V >&5") 2>&5
4314   ac_status=$?
4315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4316   (exit $ac_status); }
4317
4318 cat >conftest.$ac_ext <<_ACEOF
4319 /* confdefs.h.  */
4320 _ACEOF
4321 cat confdefs.h >>conftest.$ac_ext
4322 cat >>conftest.$ac_ext <<_ACEOF
4323 /* end confdefs.h.  */
4324
4325 int
4326 main ()
4327 {
4328
4329   ;
4330   return 0;
4331 }
4332 _ACEOF
4333 ac_clean_files_save=$ac_clean_files
4334 ac_clean_files="$ac_clean_files a.out a.exe b.out"
4335 # Try to create an executable without -o first, disregard a.out.
4336 # It will help us diagnose broken compilers, and finding out an intuition
4337 # of exeext.
4338 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4339 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
4340 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4341 #
4342 # List of possible output files, starting from the most likely.
4343 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
4344 # only as a last resort.  b.out is created by i960 compilers.
4345 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
4346 #
4347 # The IRIX 6 linker writes into existing files which may not be
4348 # executable, retaining their permissions.  Remove them first so a
4349 # subsequent execution test works.
4350 ac_rmfiles=
4351 for ac_file in $ac_files
4352 do
4353   case $ac_file in
4354     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
4355     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4356   esac
4357 done
4358 rm -f $ac_rmfiles
4359
4360 if { (ac_try="$ac_link_default"
4361 case "(($ac_try" in
4362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4363   *) ac_try_echo=$ac_try;;
4364 esac
4365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4366   (eval "$ac_link_default") 2>&5
4367   ac_status=$?
4368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4369   (exit $ac_status); }; then
4370   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4371 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4372 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4373 # so that the user can short-circuit this test for compilers unknown to
4374 # Autoconf.
4375 for ac_file in $ac_files ''
4376 do
4377   test -f "$ac_file" || continue
4378   case $ac_file in
4379     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
4380         ;;
4381     [ab].out )
4382         # We found the default executable, but exeext='' is most
4383         # certainly right.
4384         break;;
4385     *.* )
4386         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4387         then :; else
4388            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4389         fi
4390         # We set ac_cv_exeext here because the later test for it is not
4391         # safe: cross compilers may not add the suffix if given an `-o'
4392         # argument, so we may need to know it at that point already.
4393         # Even if this section looks crufty: it has the advantage of
4394         # actually working.
4395         break;;
4396     * )
4397         break;;
4398   esac
4399 done
4400 test "$ac_cv_exeext" = no && ac_cv_exeext=
4401
4402 else
4403   ac_file=''
4404 fi
4405
4406 { echo "$as_me:$LINENO: result: $ac_file" >&5
4407 echo "${ECHO_T}$ac_file" >&6; }
4408 if test -z "$ac_file"; then
4409   echo "$as_me: failed program was:" >&5
4410 sed 's/^/| /' conftest.$ac_ext >&5
4411
4412 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4413 See \`config.log' for more details." >&5
4414 echo "$as_me: error: C compiler cannot create executables
4415 See \`config.log' for more details." >&2;}
4416    { (exit 77); exit 77; }; }
4417 fi
4418
4419 ac_exeext=$ac_cv_exeext
4420
4421 # Check that the compiler produces executables we can run.  If not, either
4422 # the compiler is broken, or we cross compile.
4423 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4424 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
4425 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4426 # If not cross compiling, check that we can run a simple program.
4427 if test "$cross_compiling" != yes; then
4428   if { ac_try='./$ac_file'
4429   { (case "(($ac_try" in
4430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4431   *) ac_try_echo=$ac_try;;
4432 esac
4433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4434   (eval "$ac_try") 2>&5
4435   ac_status=$?
4436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4437   (exit $ac_status); }; }; then
4438     cross_compiling=no
4439   else
4440     if test "$cross_compiling" = maybe; then
4441         cross_compiling=yes
4442     else
4443         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4444 If you meant to cross compile, use \`--host'.
4445 See \`config.log' for more details." >&5
4446 echo "$as_me: error: cannot run C compiled programs.
4447 If you meant to cross compile, use \`--host'.
4448 See \`config.log' for more details." >&2;}
4449    { (exit 1); exit 1; }; }
4450     fi
4451   fi
4452 fi
4453 { echo "$as_me:$LINENO: result: yes" >&5
4454 echo "${ECHO_T}yes" >&6; }
4455
4456 rm -f a.out a.exe conftest$ac_cv_exeext b.out
4457 ac_clean_files=$ac_clean_files_save
4458 # Check that the compiler produces executables we can run.  If not, either
4459 # the compiler is broken, or we cross compile.
4460 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4461 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
4462 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
4463 echo "${ECHO_T}$cross_compiling" >&6; }
4464
4465 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
4466 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
4467 if { (ac_try="$ac_link"
4468 case "(($ac_try" in
4469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4470   *) ac_try_echo=$ac_try;;
4471 esac
4472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4473   (eval "$ac_link") 2>&5
4474   ac_status=$?
4475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4476   (exit $ac_status); }; then
4477   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4478 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4479 # work properly (i.e., refer to `conftest.exe'), while it won't with
4480 # `rm'.
4481 for ac_file in conftest.exe conftest conftest.*; do
4482   test -f "$ac_file" || continue
4483   case $ac_file in
4484     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
4485     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4486           break;;
4487     * ) break;;
4488   esac
4489 done
4490 else
4491   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4492 See \`config.log' for more details." >&5
4493 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4494 See \`config.log' for more details." >&2;}
4495    { (exit 1); exit 1; }; }
4496 fi
4497
4498 rm -f conftest$ac_cv_exeext
4499 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4500 echo "${ECHO_T}$ac_cv_exeext" >&6; }
4501
4502 rm -f conftest.$ac_ext
4503 EXEEXT=$ac_cv_exeext
4504 ac_exeext=$EXEEXT
4505 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
4506 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
4507 if test "${ac_cv_objext+set}" = set; then
4508   echo $ECHO_N "(cached) $ECHO_C" >&6
4509 else
4510   cat >conftest.$ac_ext <<_ACEOF
4511 /* confdefs.h.  */
4512 _ACEOF
4513 cat confdefs.h >>conftest.$ac_ext
4514 cat >>conftest.$ac_ext <<_ACEOF
4515 /* end confdefs.h.  */
4516
4517 int
4518 main ()
4519 {
4520
4521   ;
4522   return 0;
4523 }
4524 _ACEOF
4525 rm -f conftest.o conftest.obj
4526 if { (ac_try="$ac_compile"
4527 case "(($ac_try" in
4528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4529   *) ac_try_echo=$ac_try;;
4530 esac
4531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4532   (eval "$ac_compile") 2>&5
4533   ac_status=$?
4534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4535   (exit $ac_status); }; then
4536   for ac_file in conftest.o conftest.obj conftest.*; do
4537   test -f "$ac_file" || continue;
4538   case $ac_file in
4539     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
4540     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4541        break;;
4542   esac
4543 done
4544 else
4545   echo "$as_me: failed program was:" >&5
4546 sed 's/^/| /' conftest.$ac_ext >&5
4547
4548 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4549 See \`config.log' for more details." >&5
4550 echo "$as_me: error: cannot compute suffix of object files: cannot compile
4551 See \`config.log' for more details." >&2;}
4552    { (exit 1); exit 1; }; }
4553 fi
4554
4555 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4556 fi
4557 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4558 echo "${ECHO_T}$ac_cv_objext" >&6; }
4559 OBJEXT=$ac_cv_objext
4560 ac_objext=$OBJEXT
4561 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4562 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
4563 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4564   echo $ECHO_N "(cached) $ECHO_C" >&6
4565 else
4566   cat >conftest.$ac_ext <<_ACEOF
4567 /* confdefs.h.  */
4568 _ACEOF
4569 cat confdefs.h >>conftest.$ac_ext
4570 cat >>conftest.$ac_ext <<_ACEOF
4571 /* end confdefs.h.  */
4572
4573 int
4574 main ()
4575 {
4576 #ifndef __GNUC__
4577        choke me
4578 #endif
4579
4580   ;
4581   return 0;
4582 }
4583 _ACEOF
4584 rm -f conftest.$ac_objext
4585 if { (ac_try="$ac_compile"
4586 case "(($ac_try" in
4587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4588   *) ac_try_echo=$ac_try;;
4589 esac
4590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4591   (eval "$ac_compile") 2>conftest.er1
4592   ac_status=$?
4593   grep -v '^ *+' conftest.er1 >conftest.err
4594   rm -f conftest.er1
4595   cat conftest.err >&5
4596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4597   (exit $ac_status); } && {
4598          test -z "$ac_c_werror_flag" ||
4599          test ! -s conftest.err
4600        } && test -s conftest.$ac_objext; then
4601   ac_compiler_gnu=yes
4602 else
4603   echo "$as_me: failed program was:" >&5
4604 sed 's/^/| /' conftest.$ac_ext >&5
4605
4606         ac_compiler_gnu=no
4607 fi
4608
4609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4610 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4611
4612 fi
4613 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4614 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4615 GCC=`test $ac_compiler_gnu = yes && echo yes`
4616 ac_test_CFLAGS=${CFLAGS+set}
4617 ac_save_CFLAGS=$CFLAGS
4618 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4619 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
4620 if test "${ac_cv_prog_cc_g+set}" = set; then
4621   echo $ECHO_N "(cached) $ECHO_C" >&6
4622 else
4623   ac_save_c_werror_flag=$ac_c_werror_flag
4624    ac_c_werror_flag=yes
4625    ac_cv_prog_cc_g=no
4626    CFLAGS="-g"
4627    cat >conftest.$ac_ext <<_ACEOF
4628 /* confdefs.h.  */
4629 _ACEOF
4630 cat confdefs.h >>conftest.$ac_ext
4631 cat >>conftest.$ac_ext <<_ACEOF
4632 /* end confdefs.h.  */
4633
4634 int
4635 main ()
4636 {
4637
4638   ;
4639   return 0;
4640 }
4641 _ACEOF
4642 rm -f conftest.$ac_objext
4643 if { (ac_try="$ac_compile"
4644 case "(($ac_try" in
4645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4646   *) ac_try_echo=$ac_try;;
4647 esac
4648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4649   (eval "$ac_compile") 2>conftest.er1
4650   ac_status=$?
4651   grep -v '^ *+' conftest.er1 >conftest.err
4652   rm -f conftest.er1
4653   cat conftest.err >&5
4654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4655   (exit $ac_status); } && {
4656          test -z "$ac_c_werror_flag" ||
4657          test ! -s conftest.err
4658        } && test -s conftest.$ac_objext; then
4659   ac_cv_prog_cc_g=yes
4660 else
4661   echo "$as_me: failed program was:" >&5
4662 sed 's/^/| /' conftest.$ac_ext >&5
4663
4664         CFLAGS=""
4665       cat >conftest.$ac_ext <<_ACEOF
4666 /* confdefs.h.  */
4667 _ACEOF
4668 cat confdefs.h >>conftest.$ac_ext
4669 cat >>conftest.$ac_ext <<_ACEOF
4670 /* end confdefs.h.  */
4671
4672 int
4673 main ()
4674 {
4675
4676   ;
4677   return 0;
4678 }
4679 _ACEOF
4680 rm -f conftest.$ac_objext
4681 if { (ac_try="$ac_compile"
4682 case "(($ac_try" in
4683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4684   *) ac_try_echo=$ac_try;;
4685 esac
4686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4687   (eval "$ac_compile") 2>conftest.er1
4688   ac_status=$?
4689   grep -v '^ *+' conftest.er1 >conftest.err
4690   rm -f conftest.er1
4691   cat conftest.err >&5
4692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4693   (exit $ac_status); } && {
4694          test -z "$ac_c_werror_flag" ||
4695          test ! -s conftest.err
4696        } && test -s conftest.$ac_objext; then
4697   :
4698 else
4699   echo "$as_me: failed program was:" >&5
4700 sed 's/^/| /' conftest.$ac_ext >&5
4701
4702         ac_c_werror_flag=$ac_save_c_werror_flag
4703          CFLAGS="-g"
4704          cat >conftest.$ac_ext <<_ACEOF
4705 /* confdefs.h.  */
4706 _ACEOF
4707 cat confdefs.h >>conftest.$ac_ext
4708 cat >>conftest.$ac_ext <<_ACEOF
4709 /* end confdefs.h.  */
4710
4711 int
4712 main ()
4713 {
4714
4715   ;
4716   return 0;
4717 }
4718 _ACEOF
4719 rm -f conftest.$ac_objext
4720 if { (ac_try="$ac_compile"
4721 case "(($ac_try" in
4722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4723   *) ac_try_echo=$ac_try;;
4724 esac
4725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4726   (eval "$ac_compile") 2>conftest.er1
4727   ac_status=$?
4728   grep -v '^ *+' conftest.er1 >conftest.err
4729   rm -f conftest.er1
4730   cat conftest.err >&5
4731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4732   (exit $ac_status); } && {
4733          test -z "$ac_c_werror_flag" ||
4734          test ! -s conftest.err
4735        } && test -s conftest.$ac_objext; then
4736   ac_cv_prog_cc_g=yes
4737 else
4738   echo "$as_me: failed program was:" >&5
4739 sed 's/^/| /' conftest.$ac_ext >&5
4740
4741
4742 fi
4743
4744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4745 fi
4746
4747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4748 fi
4749
4750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4751    ac_c_werror_flag=$ac_save_c_werror_flag
4752 fi
4753 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4754 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4755 if test "$ac_test_CFLAGS" = set; then
4756   CFLAGS=$ac_save_CFLAGS
4757 elif test $ac_cv_prog_cc_g = yes; then
4758   if test "$GCC" = yes; then
4759     CFLAGS="-g -O2"
4760   else
4761     CFLAGS="-g"
4762   fi
4763 else
4764   if test "$GCC" = yes; then
4765     CFLAGS="-O2"
4766   else
4767     CFLAGS=
4768   fi
4769 fi
4770 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4771 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4772 if test "${ac_cv_prog_cc_c89+set}" = set; then
4773   echo $ECHO_N "(cached) $ECHO_C" >&6
4774 else
4775   ac_cv_prog_cc_c89=no
4776 ac_save_CC=$CC
4777 cat >conftest.$ac_ext <<_ACEOF
4778 /* confdefs.h.  */
4779 _ACEOF
4780 cat confdefs.h >>conftest.$ac_ext
4781 cat >>conftest.$ac_ext <<_ACEOF
4782 /* end confdefs.h.  */
4783 #include <stdarg.h>
4784 #include <stdio.h>
4785 #include <sys/types.h>
4786 #include <sys/stat.h>
4787 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4788 struct buf { int x; };
4789 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4790 static char *e (p, i)
4791      char **p;
4792      int i;
4793 {
4794   return p[i];
4795 }
4796 static char *f (char * (*g) (char **, int), char **p, ...)
4797 {
4798   char *s;
4799   va_list v;
4800   va_start (v,p);
4801   s = g (p, va_arg (v,int));
4802   va_end (v);
4803   return s;
4804 }
4805
4806 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4807    function prototypes and stuff, but not '\xHH' hex character constants.
4808    These don't provoke an error unfortunately, instead are silently treated
4809    as 'x'.  The following induces an error, until -std is added to get
4810    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4811    array size at least.  It's necessary to write '\x00'==0 to get something
4812    that's true only with -std.  */
4813 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4814
4815 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4816    inside strings and character constants.  */
4817 #define FOO(x) 'x'
4818 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4819
4820 int test (int i, double x);
4821 struct s1 {int (*f) (int a);};
4822 struct s2 {int (*f) (double a);};
4823 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4824 int argc;
4825 char **argv;
4826 int
4827 main ()
4828 {
4829 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4830   ;
4831   return 0;
4832 }
4833 _ACEOF
4834 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4835         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4836 do
4837   CC="$ac_save_CC $ac_arg"
4838   rm -f conftest.$ac_objext
4839 if { (ac_try="$ac_compile"
4840 case "(($ac_try" in
4841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4842   *) ac_try_echo=$ac_try;;
4843 esac
4844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4845   (eval "$ac_compile") 2>conftest.er1
4846   ac_status=$?
4847   grep -v '^ *+' conftest.er1 >conftest.err
4848   rm -f conftest.er1
4849   cat conftest.err >&5
4850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4851   (exit $ac_status); } && {
4852          test -z "$ac_c_werror_flag" ||
4853          test ! -s conftest.err
4854        } && test -s conftest.$ac_objext; then
4855   ac_cv_prog_cc_c89=$ac_arg
4856 else
4857   echo "$as_me: failed program was:" >&5
4858 sed 's/^/| /' conftest.$ac_ext >&5
4859
4860
4861 fi
4862
4863 rm -f core conftest.err conftest.$ac_objext
4864   test "x$ac_cv_prog_cc_c89" != "xno" && break
4865 done
4866 rm -f conftest.$ac_ext
4867 CC=$ac_save_CC
4868
4869 fi
4870 # AC_CACHE_VAL
4871 case "x$ac_cv_prog_cc_c89" in
4872   x)
4873     { echo "$as_me:$LINENO: result: none needed" >&5
4874 echo "${ECHO_T}none needed" >&6; } ;;
4875   xno)
4876     { echo "$as_me:$LINENO: result: unsupported" >&5
4877 echo "${ECHO_T}unsupported" >&6; } ;;
4878   *)
4879     CC="$CC $ac_cv_prog_cc_c89"
4880     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4881 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4882 esac
4883
4884
4885 ac_ext=c
4886 ac_cpp='$CPP $CPPFLAGS'
4887 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4888 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4889 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4890
4891
4892 { echo "$as_me:$LINENO: checking for library containing strerror" >&5
4893 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
4894 if test "${ac_cv_search_strerror+set}" = set; then
4895   echo $ECHO_N "(cached) $ECHO_C" >&6
4896 else
4897   ac_func_search_save_LIBS=$LIBS
4898 cat >conftest.$ac_ext <<_ACEOF
4899 /* confdefs.h.  */
4900 _ACEOF
4901 cat confdefs.h >>conftest.$ac_ext
4902 cat >>conftest.$ac_ext <<_ACEOF
4903 /* end confdefs.h.  */
4904
4905 /* Override any GCC internal prototype to avoid an error.
4906    Use char because int might match the return type of a GCC
4907    builtin and then its argument prototype would still apply.  */
4908 #ifdef __cplusplus
4909 extern "C"
4910 #endif
4911 char strerror ();
4912 int
4913 main ()
4914 {
4915 return strerror ();
4916   ;
4917   return 0;
4918 }
4919 _ACEOF
4920 for ac_lib in '' cposix; do
4921   if test -z "$ac_lib"; then
4922     ac_res="none required"
4923   else
4924     ac_res=-l$ac_lib
4925     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4926   fi
4927   rm -f conftest.$ac_objext conftest$ac_exeext
4928 if { (ac_try="$ac_link"
4929 case "(($ac_try" in
4930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4931   *) ac_try_echo=$ac_try;;
4932 esac
4933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4934   (eval "$ac_link") 2>conftest.er1
4935   ac_status=$?
4936   grep -v '^ *+' conftest.er1 >conftest.err
4937   rm -f conftest.er1
4938   cat conftest.err >&5
4939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4940   (exit $ac_status); } && {
4941          test -z "$ac_c_werror_flag" ||
4942          test ! -s conftest.err
4943        } && test -s conftest$ac_exeext &&
4944        $as_test_x conftest$ac_exeext; then
4945   ac_cv_search_strerror=$ac_res
4946 else
4947   echo "$as_me: failed program was:" >&5
4948 sed 's/^/| /' conftest.$ac_ext >&5
4949
4950
4951 fi
4952
4953 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4954       conftest$ac_exeext
4955   if test "${ac_cv_search_strerror+set}" = set; then
4956   break
4957 fi
4958 done
4959 if test "${ac_cv_search_strerror+set}" = set; then
4960   :
4961 else
4962   ac_cv_search_strerror=no
4963 fi
4964 rm conftest.$ac_ext
4965 LIBS=$ac_func_search_save_LIBS
4966 fi
4967 { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
4968 echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
4969 ac_res=$ac_cv_search_strerror
4970 if test "$ac_res" != no; then
4971   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4972
4973 fi
4974
4975 ac_ext=c
4976 ac_cpp='$CPP $CPPFLAGS'
4977 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4978 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4979 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4980 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4981 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4982 # On Suns, sometimes $CPP names a directory.
4983 if test -n "$CPP" && test -d "$CPP"; then
4984   CPP=
4985 fi
4986 if test -z "$CPP"; then
4987   if test "${ac_cv_prog_CPP+set}" = set; then
4988   echo $ECHO_N "(cached) $ECHO_C" >&6
4989 else
4990       # Double quotes because CPP needs to be expanded
4991     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4992     do
4993       ac_preproc_ok=false
4994 for ac_c_preproc_warn_flag in '' yes
4995 do
4996   # Use a header file that comes with gcc, so configuring glibc
4997   # with a fresh cross-compiler works.
4998   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4999   # <limits.h> exists even on freestanding compilers.
5000   # On the NeXT, cc -E runs the code through the compiler's parser,
5001   # not just through cpp. "Syntax error" is here to catch this case.
5002   cat >conftest.$ac_ext <<_ACEOF
5003 /* confdefs.h.  */
5004 _ACEOF
5005 cat confdefs.h >>conftest.$ac_ext
5006 cat >>conftest.$ac_ext <<_ACEOF
5007 /* end confdefs.h.  */
5008 #ifdef __STDC__
5009 # include <limits.h>
5010 #else
5011 # include <assert.h>
5012 #endif
5013                      Syntax error
5014 _ACEOF
5015 if { (ac_try="$ac_cpp conftest.$ac_ext"
5016 case "(($ac_try" in
5017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5018   *) ac_try_echo=$ac_try;;
5019 esac
5020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5021   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5022   ac_status=$?
5023   grep -v '^ *+' conftest.er1 >conftest.err
5024   rm -f conftest.er1
5025   cat conftest.err >&5
5026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5027   (exit $ac_status); } >/dev/null && {
5028          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5029          test ! -s conftest.err
5030        }; then
5031   :
5032 else
5033   echo "$as_me: failed program was:" >&5
5034 sed 's/^/| /' conftest.$ac_ext >&5
5035
5036   # Broken: fails on valid input.
5037 continue
5038 fi
5039
5040 rm -f conftest.err conftest.$ac_ext
5041
5042   # OK, works on sane cases.  Now check whether nonexistent headers
5043   # can be detected and how.
5044   cat >conftest.$ac_ext <<_ACEOF
5045 /* confdefs.h.  */
5046 _ACEOF
5047 cat confdefs.h >>conftest.$ac_ext
5048 cat >>conftest.$ac_ext <<_ACEOF
5049 /* end confdefs.h.  */
5050 #include <ac_nonexistent.h>
5051 _ACEOF
5052 if { (ac_try="$ac_cpp conftest.$ac_ext"
5053 case "(($ac_try" in
5054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5055   *) ac_try_echo=$ac_try;;
5056 esac
5057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5058   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5059   ac_status=$?
5060   grep -v '^ *+' conftest.er1 >conftest.err
5061   rm -f conftest.er1
5062   cat conftest.err >&5
5063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5064   (exit $ac_status); } >/dev/null && {
5065          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5066          test ! -s conftest.err
5067        }; then
5068   # Broken: success on invalid input.
5069 continue
5070 else
5071   echo "$as_me: failed program was:" >&5
5072 sed 's/^/| /' conftest.$ac_ext >&5
5073
5074   # Passes both tests.
5075 ac_preproc_ok=:
5076 break
5077 fi
5078
5079 rm -f conftest.err conftest.$ac_ext
5080
5081 done
5082 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5083 rm -f conftest.err conftest.$ac_ext
5084 if $ac_preproc_ok; then
5085   break
5086 fi
5087
5088     done
5089     ac_cv_prog_CPP=$CPP
5090
5091 fi
5092   CPP=$ac_cv_prog_CPP
5093 else
5094   ac_cv_prog_CPP=$CPP
5095 fi
5096 { echo "$as_me:$LINENO: result: $CPP" >&5
5097 echo "${ECHO_T}$CPP" >&6; }
5098 ac_preproc_ok=false
5099 for ac_c_preproc_warn_flag in '' yes
5100 do
5101   # Use a header file that comes with gcc, so configuring glibc
5102   # with a fresh cross-compiler works.
5103   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5104   # <limits.h> exists even on freestanding compilers.
5105   # On the NeXT, cc -E runs the code through the compiler's parser,
5106   # not just through cpp. "Syntax error" is here to catch this case.
5107   cat >conftest.$ac_ext <<_ACEOF
5108 /* confdefs.h.  */
5109 _ACEOF
5110 cat confdefs.h >>conftest.$ac_ext
5111 cat >>conftest.$ac_ext <<_ACEOF
5112 /* end confdefs.h.  */
5113 #ifdef __STDC__
5114 # include <limits.h>
5115 #else
5116 # include <assert.h>
5117 #endif
5118                      Syntax error
5119 _ACEOF
5120 if { (ac_try="$ac_cpp conftest.$ac_ext"
5121 case "(($ac_try" in
5122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5123   *) ac_try_echo=$ac_try;;
5124 esac
5125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5126   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5127   ac_status=$?
5128   grep -v '^ *+' conftest.er1 >conftest.err
5129   rm -f conftest.er1
5130   cat conftest.err >&5
5131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5132   (exit $ac_status); } >/dev/null && {
5133          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5134          test ! -s conftest.err
5135        }; then
5136   :
5137 else
5138   echo "$as_me: failed program was:" >&5
5139 sed 's/^/| /' conftest.$ac_ext >&5
5140
5141   # Broken: fails on valid input.
5142 continue
5143 fi
5144
5145 rm -f conftest.err conftest.$ac_ext
5146
5147   # OK, works on sane cases.  Now check whether nonexistent headers
5148   # can be detected and how.
5149   cat >conftest.$ac_ext <<_ACEOF
5150 /* confdefs.h.  */
5151 _ACEOF
5152 cat confdefs.h >>conftest.$ac_ext
5153 cat >>conftest.$ac_ext <<_ACEOF
5154 /* end confdefs.h.  */
5155 #include <ac_nonexistent.h>
5156 _ACEOF
5157 if { (ac_try="$ac_cpp conftest.$ac_ext"
5158 case "(($ac_try" in
5159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5160   *) ac_try_echo=$ac_try;;
5161 esac
5162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5163   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5164   ac_status=$?
5165   grep -v '^ *+' conftest.er1 >conftest.err
5166   rm -f conftest.er1
5167   cat conftest.err >&5
5168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5169   (exit $ac_status); } >/dev/null && {
5170          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5171          test ! -s conftest.err
5172        }; then
5173   # Broken: success on invalid input.
5174 continue
5175 else
5176   echo "$as_me: failed program was:" >&5
5177 sed 's/^/| /' conftest.$ac_ext >&5
5178
5179   # Passes both tests.
5180 ac_preproc_ok=:
5181 break
5182 fi
5183
5184 rm -f conftest.err conftest.$ac_ext
5185
5186 done
5187 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5188 rm -f conftest.err conftest.$ac_ext
5189 if $ac_preproc_ok; then
5190   :
5191 else
5192   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5193 See \`config.log' for more details." >&5
5194 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5195 See \`config.log' for more details." >&2;}
5196    { (exit 1); exit 1; }; }
5197 fi
5198
5199 ac_ext=c
5200 ac_cpp='$CPP $CPPFLAGS'
5201 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5202 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5203 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5204
5205
5206 ac_aux_dir=
5207 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
5208   if test -f "$ac_dir/install-sh"; then
5209     ac_aux_dir=$ac_dir
5210     ac_install_sh="$ac_aux_dir/install-sh -c"
5211     break
5212   elif test -f "$ac_dir/install.sh"; then
5213     ac_aux_dir=$ac_dir
5214     ac_install_sh="$ac_aux_dir/install.sh -c"
5215     break
5216   elif test -f "$ac_dir/shtool"; then
5217     ac_aux_dir=$ac_dir
5218     ac_install_sh="$ac_aux_dir/shtool install -c"
5219     break
5220   fi
5221 done
5222 if test -z "$ac_aux_dir"; then
5223   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
5224 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
5225    { (exit 1); exit 1; }; }
5226 fi
5227
5228 # These three variables are undocumented and unsupported,
5229 # and are intended to be withdrawn in a future Autoconf release.
5230 # They can cause serious problems if a builder's source tree is in a directory
5231 # whose full name contains unusual characters.
5232 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
5233 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
5234 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
5235
5236
5237 # Make sure we can run config.sub.
5238 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5239   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5240 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5241    { (exit 1); exit 1; }; }
5242
5243 { echo "$as_me:$LINENO: checking build system type" >&5
5244 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5245 if test "${ac_cv_build+set}" = set; then
5246   echo $ECHO_N "(cached) $ECHO_C" >&6
5247 else
5248   ac_build_alias=$build_alias
5249 test "x$ac_build_alias" = x &&
5250   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5251 test "x$ac_build_alias" = x &&
5252   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5253 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5254    { (exit 1); exit 1; }; }
5255 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5256   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5257 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5258    { (exit 1); exit 1; }; }
5259
5260 fi
5261 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5262 echo "${ECHO_T}$ac_cv_build" >&6; }
5263 case $ac_cv_build in
5264 *-*-*) ;;
5265 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5266 echo "$as_me: error: invalid value of canonical build" >&2;}
5267    { (exit 1); exit 1; }; };;
5268 esac
5269 build=$ac_cv_build
5270 ac_save_IFS=$IFS; IFS='-'
5271 set x $ac_cv_build
5272 shift
5273 build_cpu=$1
5274 build_vendor=$2
5275 shift; shift
5276 # Remember, the first character of IFS is used to create $*,
5277 # except with old shells:
5278 build_os=$*
5279 IFS=$ac_save_IFS
5280 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5281
5282
5283 { echo "$as_me:$LINENO: checking host system type" >&5
5284 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5285 if test "${ac_cv_host+set}" = set; then
5286   echo $ECHO_N "(cached) $ECHO_C" >&6
5287 else
5288   if test "x$host_alias" = x; then
5289   ac_cv_host=$ac_cv_build
5290 else
5291   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5292     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5293 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5294    { (exit 1); exit 1; }; }
5295 fi
5296
5297 fi
5298 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5299 echo "${ECHO_T}$ac_cv_host" >&6; }
5300 case $ac_cv_host in
5301 *-*-*) ;;
5302 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5303 echo "$as_me: error: invalid value of canonical host" >&2;}
5304    { (exit 1); exit 1; }; };;
5305 esac
5306 host=$ac_cv_host
5307 ac_save_IFS=$IFS; IFS='-'
5308 set x $ac_cv_host
5309 shift
5310 host_cpu=$1
5311 host_vendor=$2
5312 shift; shift
5313 # Remember, the first character of IFS is used to create $*,
5314 # except with old shells:
5315 host_os=$*
5316 IFS=$ac_save_IFS
5317 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5318
5319
5320 { echo "$as_me:$LINENO: checking target system type" >&5
5321 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
5322 if test "${ac_cv_target+set}" = set; then
5323   echo $ECHO_N "(cached) $ECHO_C" >&6
5324 else
5325   if test "x$target_alias" = x; then
5326   ac_cv_target=$ac_cv_host
5327 else
5328   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
5329     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
5330 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
5331    { (exit 1); exit 1; }; }
5332 fi
5333
5334 fi
5335 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
5336 echo "${ECHO_T}$ac_cv_target" >&6; }
5337 case $ac_cv_target in
5338 *-*-*) ;;
5339 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
5340 echo "$as_me: error: invalid value of canonical target" >&2;}
5341    { (exit 1); exit 1; }; };;
5342 esac
5343 target=$ac_cv_target
5344 ac_save_IFS=$IFS; IFS='-'
5345 set x $ac_cv_target
5346 shift
5347 target_cpu=$1
5348 target_vendor=$2
5349 shift; shift
5350 # Remember, the first character of IFS is used to create $*,
5351 # except with old shells:
5352 target_os=$*
5353 IFS=$ac_save_IFS
5354 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
5355
5356
5357 # The aliases save the names the user supplied, while $host etc.
5358 # will get canonicalized.
5359 test -n "$target_alias" &&
5360   test "$program_prefix$program_suffix$program_transform_name" = \
5361     NONENONEs,x,x, &&
5362   program_prefix=${target_alias}-
5363 # Check whether --enable-static was given.
5364 if test "${enable_static+set}" = set; then
5365   enableval=$enable_static; p=${PACKAGE-default}
5366     case $enableval in
5367     yes) enable_static=yes ;;
5368     no) enable_static=no ;;
5369     *)
5370      enable_static=no
5371       # Look at the argument we got.  We use all the common list separators.
5372       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5373       for pkg in $enableval; do
5374         IFS="$lt_save_ifs"
5375         if test "X$pkg" = "X$p"; then
5376           enable_static=yes
5377         fi
5378       done
5379       IFS="$lt_save_ifs"
5380       ;;
5381     esac
5382 else
5383   enable_static=no
5384 fi
5385
5386
5387
5388 # Check whether --enable-shared was given.
5389 if test "${enable_shared+set}" = set; then
5390   enableval=$enable_shared; p=${PACKAGE-default}
5391     case $enableval in
5392     yes) enable_shared=yes ;;
5393     no) enable_shared=no ;;
5394     *)
5395       enable_shared=no
5396       # Look at the argument we got.  We use all the common list separators.
5397       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5398       for pkg in $enableval; do
5399         IFS="$lt_save_ifs"
5400         if test "X$pkg" = "X$p"; then
5401           enable_shared=yes
5402         fi
5403       done
5404       IFS="$lt_save_ifs"
5405       ;;
5406     esac
5407 else
5408   enable_shared=yes
5409 fi
5410
5411
5412 # Check whether --enable-fast-install was given.
5413 if test "${enable_fast_install+set}" = set; then
5414   enableval=$enable_fast_install; p=${PACKAGE-default}
5415     case $enableval in
5416     yes) enable_fast_install=yes ;;
5417     no) enable_fast_install=no ;;
5418     *)
5419       enable_fast_install=no
5420       # Look at the argument we got.  We use all the common list separators.
5421       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5422       for pkg in $enableval; do
5423         IFS="$lt_save_ifs"
5424         if test "X$pkg" = "X$p"; then
5425           enable_fast_install=yes
5426         fi
5427       done
5428       IFS="$lt_save_ifs"
5429       ;;
5430     esac
5431 else
5432   enable_fast_install=yes
5433 fi
5434
5435
5436 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5437 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5438 if test "${lt_cv_path_SED+set}" = set; then
5439   echo $ECHO_N "(cached) $ECHO_C" >&6
5440 else
5441   # Loop through the user's path and test for sed and gsed.
5442 # Then use that list of sed's as ones to test for truncation.
5443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5444 for as_dir in $PATH
5445 do
5446   IFS=$as_save_IFS
5447   test -z "$as_dir" && as_dir=.
5448   for lt_ac_prog in sed gsed; do
5449     for ac_exec_ext in '' $ac_executable_extensions; do
5450       if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
5451         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5452       fi
5453     done
5454   done
5455 done
5456 IFS=$as_save_IFS
5457 lt_ac_max=0
5458 lt_ac_count=0
5459 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5460 # along with /bin/sed that truncates output.
5461 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5462   test ! -f $lt_ac_sed && continue
5463   cat /dev/null > conftest.in
5464   lt_ac_count=0
5465   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5466   # Check for GNU sed and select it if it is found.
5467   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5468     lt_cv_path_SED=$lt_ac_sed
5469     break
5470   fi
5471   while true; do
5472     cat conftest.in conftest.in >conftest.tmp
5473     mv conftest.tmp conftest.in
5474     cp conftest.in conftest.nl
5475     echo >>conftest.nl
5476     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5477     cmp -s conftest.out conftest.nl || break
5478     # 10000 chars as input seems more than enough
5479     test $lt_ac_count -gt 10 && break
5480     lt_ac_count=`expr $lt_ac_count + 1`
5481     if test $lt_ac_count -gt $lt_ac_max; then
5482       lt_ac_max=$lt_ac_count
5483       lt_cv_path_SED=$lt_ac_sed
5484     fi
5485   done
5486 done
5487
5488 fi
5489
5490 SED=$lt_cv_path_SED
5491
5492 { echo "$as_me:$LINENO: result: $SED" >&5
5493 echo "${ECHO_T}$SED" >&6; }
5494
5495 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5496 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5497 if test "${ac_cv_path_GREP+set}" = set; then
5498   echo $ECHO_N "(cached) $ECHO_C" >&6
5499 else
5500   # Extract the first word of "grep ggrep" to use in msg output
5501 if test -z "$GREP"; then
5502 set dummy grep ggrep; ac_prog_name=$2
5503 if test "${ac_cv_path_GREP+set}" = set; then
5504   echo $ECHO_N "(cached) $ECHO_C" >&6
5505 else
5506   ac_path_GREP_found=false
5507 # Loop through the user's path and test for each of PROGNAME-LIST
5508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5509 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5510 do
5511   IFS=$as_save_IFS
5512   test -z "$as_dir" && as_dir=.
5513   for ac_prog in grep ggrep; do
5514   for ac_exec_ext in '' $ac_executable_extensions; do
5515     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5516     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5517     # Check for GNU ac_path_GREP and select it if it is found.
5518   # Check for GNU $ac_path_GREP
5519 case `"$ac_path_GREP" --version 2>&1` in
5520 *GNU*)
5521   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5522 *)
5523   ac_count=0
5524   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5525   while :
5526   do
5527     cat "conftest.in" "conftest.in" >"conftest.tmp"
5528     mv "conftest.tmp" "conftest.in"
5529     cp "conftest.in" "conftest.nl"
5530     echo 'GREP' >> "conftest.nl"
5531     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5532     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5533     ac_count=`expr $ac_count + 1`
5534     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5535       # Best one so far, save it but keep looking for a better one
5536       ac_cv_path_GREP="$ac_path_GREP"
5537       ac_path_GREP_max=$ac_count
5538     fi
5539     # 10*(2^10) chars as input seems more than enough
5540     test $ac_count -gt 10 && break
5541   done
5542   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5543 esac
5544
5545
5546     $ac_path_GREP_found && break 3
5547   done
5548 done
5549
5550 done
5551 IFS=$as_save_IFS
5552
5553
5554 fi
5555
5556 GREP="$ac_cv_path_GREP"
5557 if test -z "$GREP"; then
5558   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5559 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5560    { (exit 1); exit 1; }; }
5561 fi
5562
5563 else
5564   ac_cv_path_GREP=$GREP
5565 fi
5566
5567
5568 fi
5569 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5570 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5571  GREP="$ac_cv_path_GREP"
5572
5573
5574 { echo "$as_me:$LINENO: checking for egrep" >&5
5575 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5576 if test "${ac_cv_path_EGREP+set}" = set; then
5577   echo $ECHO_N "(cached) $ECHO_C" >&6
5578 else
5579   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5580    then ac_cv_path_EGREP="$GREP -E"
5581    else
5582      # Extract the first word of "egrep" to use in msg output
5583 if test -z "$EGREP"; then
5584 set dummy egrep; ac_prog_name=$2
5585 if test "${ac_cv_path_EGREP+set}" = set; then
5586   echo $ECHO_N "(cached) $ECHO_C" >&6
5587 else
5588   ac_path_EGREP_found=false
5589 # Loop through the user's path and test for each of PROGNAME-LIST
5590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5591 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5592 do
5593   IFS=$as_save_IFS
5594   test -z "$as_dir" && as_dir=.
5595   for ac_prog in egrep; do
5596   for ac_exec_ext in '' $ac_executable_extensions; do
5597     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5598     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5599     # Check for GNU ac_path_EGREP and select it if it is found.
5600   # Check for GNU $ac_path_EGREP
5601 case `"$ac_path_EGREP" --version 2>&1` in
5602 *GNU*)
5603   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5604 *)
5605   ac_count=0
5606   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5607   while :
5608   do
5609     cat "conftest.in" "conftest.in" >"conftest.tmp"
5610     mv "conftest.tmp" "conftest.in"
5611     cp "conftest.in" "conftest.nl"
5612     echo 'EGREP' >> "conftest.nl"
5613     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5614     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5615     ac_count=`expr $ac_count + 1`
5616     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5617       # Best one so far, save it but keep looking for a better one
5618       ac_cv_path_EGREP="$ac_path_EGREP"
5619       ac_path_EGREP_max=$ac_count
5620     fi
5621     # 10*(2^10) chars as input seems more than enough
5622     test $ac_count -gt 10 && break
5623   done
5624   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5625 esac
5626
5627
5628     $ac_path_EGREP_found && break 3
5629   done
5630 done
5631
5632 done
5633 IFS=$as_save_IFS
5634
5635
5636 fi
5637
5638 EGREP="$ac_cv_path_EGREP"
5639 if test -z "$EGREP"; then
5640   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5641 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5642    { (exit 1); exit 1; }; }
5643 fi
5644
5645 else
5646   ac_cv_path_EGREP=$EGREP
5647 fi
5648
5649
5650    fi
5651 fi
5652 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5653 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5654  EGREP="$ac_cv_path_EGREP"
5655
5656
5657
5658 # Check whether --with-gnu-ld was given.
5659 if test "${with_gnu_ld+set}" = set; then
5660   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5661 else
5662   with_gnu_ld=no
5663 fi
5664
5665 ac_prog=ld
5666 if test "$GCC" = yes; then
5667   # Check if gcc -print-prog-name=ld gives a path.
5668   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5669 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5670   case $host in
5671   *-*-mingw*)
5672     # gcc leaves a trailing carriage return which upsets mingw
5673     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5674   *)
5675     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5676   esac
5677   case $ac_prog in
5678     # Accept absolute paths.
5679     [\\/]* | ?:[\\/]*)
5680       re_direlt='/[^/][^/]*/\.\./'
5681       # Canonicalize the pathname of ld
5682       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5683       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5684         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5685       done
5686       test -z "$LD" && LD="$ac_prog"
5687       ;;
5688   "")
5689     # If it fails, then pretend we aren't using GCC.
5690     ac_prog=ld
5691     ;;
5692   *)
5693     # If it is relative, then search for the first ld in PATH.
5694     with_gnu_ld=unknown
5695     ;;
5696   esac
5697 elif test "$with_gnu_ld" = yes; then
5698   { echo "$as_me:$LINENO: checking for GNU ld" >&5
5699 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5700 else
5701   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5702 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5703 fi
5704 if test "${lt_cv_path_LD+set}" = set; then
5705   echo $ECHO_N "(cached) $ECHO_C" >&6
5706 else
5707   if test -z "$LD"; then
5708   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5709   for ac_dir in $PATH; do
5710     IFS="$lt_save_ifs"
5711     test -z "$ac_dir" && ac_dir=.
5712     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5713       lt_cv_path_LD="$ac_dir/$ac_prog"
5714       # Check to see if the program is GNU ld.  I'd rather use --version,
5715       # but apparently some variants of GNU ld only accept -v.
5716       # Break only if it was the GNU/non-GNU ld that we prefer.
5717       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5718       *GNU* | *'with BFD'*)
5719         test "$with_gnu_ld" != no && break
5720         ;;
5721       *)
5722         test "$with_gnu_ld" != yes && break
5723         ;;
5724       esac
5725     fi
5726   done
5727   IFS="$lt_save_ifs"
5728 else
5729   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5730 fi
5731 fi
5732
5733 LD="$lt_cv_path_LD"
5734 if test -n "$LD"; then
5735   { echo "$as_me:$LINENO: result: $LD" >&5
5736 echo "${ECHO_T}$LD" >&6; }
5737 else
5738   { echo "$as_me:$LINENO: result: no" >&5
5739 echo "${ECHO_T}no" >&6; }
5740 fi
5741 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5742 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5743    { (exit 1); exit 1; }; }
5744 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5745 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5746 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5747   echo $ECHO_N "(cached) $ECHO_C" >&6
5748 else
5749   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5750 case `$LD -v 2>&1 </dev/null` in
5751 *GNU* | *'with BFD'*)
5752   lt_cv_prog_gnu_ld=yes
5753   ;;
5754 *)
5755   lt_cv_prog_gnu_ld=no
5756   ;;
5757 esac
5758 fi
5759 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5760 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5761 with_gnu_ld=$lt_cv_prog_gnu_ld
5762
5763
5764 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5765 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
5766 if test "${lt_cv_ld_reload_flag+set}" = set; then
5767   echo $ECHO_N "(cached) $ECHO_C" >&6
5768 else
5769   lt_cv_ld_reload_flag='-r'
5770 fi
5771 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5772 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
5773 reload_flag=$lt_cv_ld_reload_flag
5774 case $reload_flag in
5775 "" | " "*) ;;
5776 *) reload_flag=" $reload_flag" ;;
5777 esac
5778 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5779 case $host_os in
5780   darwin*)
5781     if test "$GCC" = yes; then
5782       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5783     else
5784       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5785     fi
5786     ;;
5787 esac
5788
5789 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5790 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5791 if test "${lt_cv_path_NM+set}" = set; then
5792   echo $ECHO_N "(cached) $ECHO_C" >&6
5793 else
5794   if test -n "$NM"; then
5795   # Let the user override the test.
5796   lt_cv_path_NM="$NM"
5797 else
5798   lt_nm_to_check="${ac_tool_prefix}nm"
5799   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5800     lt_nm_to_check="$lt_nm_to_check nm"
5801   fi
5802   for lt_tmp_nm in $lt_nm_to_check; do
5803     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5804     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5805       IFS="$lt_save_ifs"
5806       test -z "$ac_dir" && ac_dir=.
5807       tmp_nm="$ac_dir/$lt_tmp_nm"
5808       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5809         # Check to see if the nm accepts a BSD-compat flag.
5810         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5811         #   nm: unknown option "B" ignored
5812         # Tru64's nm complains that /dev/null is an invalid object file
5813         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5814         */dev/null* | *'Invalid file or object type'*)
5815           lt_cv_path_NM="$tmp_nm -B"
5816           break
5817           ;;
5818         *)
5819           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5820           */dev/null*)
5821             lt_cv_path_NM="$tmp_nm -p"
5822             break
5823             ;;
5824           *)
5825             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5826             continue # so that we can try to find one that supports BSD flags
5827             ;;
5828           esac
5829           ;;
5830         esac
5831       fi
5832     done
5833     IFS="$lt_save_ifs"
5834   done
5835   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5836 fi
5837 fi
5838 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5839 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5840 NM="$lt_cv_path_NM"
5841
5842 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5843 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5844 LN_S=$as_ln_s
5845 if test "$LN_S" = "ln -s"; then
5846   { echo "$as_me:$LINENO: result: yes" >&5
5847 echo "${ECHO_T}yes" >&6; }
5848 else
5849   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5850 echo "${ECHO_T}no, using $LN_S" >&6; }
5851 fi
5852
5853 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5854 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
5855 if test "${lt_cv_deplibs_check_method+set}" = set; then
5856   echo $ECHO_N "(cached) $ECHO_C" >&6
5857 else
5858   lt_cv_file_magic_cmd='$MAGIC_CMD'
5859 lt_cv_file_magic_test_file=
5860 lt_cv_deplibs_check_method='unknown'
5861 # Need to set the preceding variable on all platforms that support
5862 # interlibrary dependencies.
5863 # 'none' -- dependencies not supported.
5864 # `unknown' -- same as none, but documents that we really don't know.
5865 # 'pass_all' -- all dependencies passed with no checks.
5866 # 'test_compile' -- check by making test program.
5867 # 'file_magic [[regex]]' -- check by looking for files in library path
5868 # which responds to the $file_magic_cmd with a given extended regex.
5869 # If you have `file' or equivalent on your system and you're not sure
5870 # whether `pass_all' will *always* work, you probably want this one.
5871
5872 case $host_os in
5873 aix4* | aix5*)
5874   lt_cv_deplibs_check_method=pass_all
5875   ;;
5876
5877 beos*)
5878   lt_cv_deplibs_check_method=pass_all
5879   ;;
5880
5881 bsdi[45]*)
5882   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5883   lt_cv_file_magic_cmd='/usr/bin/file -L'
5884   lt_cv_file_magic_test_file=/shlib/libc.so
5885   ;;
5886
5887 cygwin*)
5888   # func_win32_libid is a shell function defined in ltmain.sh
5889   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5890   lt_cv_file_magic_cmd='func_win32_libid'
5891   ;;
5892
5893 mingw* | pw32*)
5894   # Base MSYS/MinGW do not provide the 'file' command needed by
5895   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5896   # unless we find 'file', for example because we are cross-compiling.
5897   if ( file / ) >/dev/null 2>&1; then
5898     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5899     lt_cv_file_magic_cmd='func_win32_libid'
5900   else
5901     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5902     lt_cv_file_magic_cmd='$OBJDUMP -f'
5903   fi
5904   ;;
5905
5906 darwin* | rhapsody*)
5907   lt_cv_deplibs_check_method=pass_all
5908   ;;
5909
5910 freebsd* | dragonfly*)
5911   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5912     case $host_cpu in
5913     i*86 )
5914       # Not sure whether the presence of OpenBSD here was a mistake.
5915       # Let's accept both of them until this is cleared up.
5916       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5917       lt_cv_file_magic_cmd=/usr/bin/file
5918       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5919       ;;
5920     esac
5921   else
5922     lt_cv_deplibs_check_method=pass_all
5923   fi
5924   ;;
5925
5926 gnu*)
5927   lt_cv_deplibs_check_method=pass_all
5928   ;;
5929
5930 hpux10.20* | hpux11*)
5931   lt_cv_file_magic_cmd=/usr/bin/file
5932   case $host_cpu in
5933   ia64*)
5934     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5935     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5936     ;;
5937   hppa*64*)
5938     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]'
5939     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5940     ;;
5941   *)
5942     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5943     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5944     ;;
5945   esac
5946   ;;
5947
5948 interix[3-9]*)
5949   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5950   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5951   ;;
5952
5953 irix5* | irix6* | nonstopux*)
5954   case $LD in
5955   *-32|*"-32 ") libmagic=32-bit;;
5956   *-n32|*"-n32 ") libmagic=N32;;
5957   *-64|*"-64 ") libmagic=64-bit;;
5958   *) libmagic=never-match;;
5959   esac
5960   lt_cv_deplibs_check_method=pass_all
5961   ;;
5962
5963 # This must be Linux ELF.
5964 linux* | k*bsd*-gnu)
5965   lt_cv_deplibs_check_method=pass_all
5966   ;;
5967
5968 netbsd*)
5969   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5970     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5971   else
5972     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5973   fi
5974   ;;
5975
5976 newos6*)
5977   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5978   lt_cv_file_magic_cmd=/usr/bin/file
5979   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5980   ;;
5981
5982 nto-qnx*)
5983   lt_cv_deplibs_check_method=unknown
5984   ;;
5985
5986 openbsd*)
5987   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5988     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5989   else
5990     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5991   fi
5992   ;;
5993
5994 osf3* | osf4* | osf5*)
5995   lt_cv_deplibs_check_method=pass_all
5996   ;;
5997
5998 rdos*)
5999   lt_cv_deplibs_check_method=pass_all
6000   ;;
6001
6002 solaris*)
6003   lt_cv_deplibs_check_method=pass_all
6004   ;;
6005
6006 sysv4 | sysv4.3*)
6007   case $host_vendor in
6008   motorola)
6009     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]'
6010     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6011     ;;
6012   ncr)
6013     lt_cv_deplibs_check_method=pass_all
6014     ;;
6015   sequent)
6016     lt_cv_file_magic_cmd='/bin/file'
6017     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6018     ;;
6019   sni)
6020     lt_cv_file_magic_cmd='/bin/file'
6021     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6022     lt_cv_file_magic_test_file=/lib/libc.so
6023     ;;
6024   siemens)
6025     lt_cv_deplibs_check_method=pass_all
6026     ;;
6027   pc)
6028     lt_cv_deplibs_check_method=pass_all
6029     ;;
6030   esac
6031   ;;
6032
6033 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6034   lt_cv_deplibs_check_method=pass_all
6035   ;;
6036 esac
6037
6038 fi
6039 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6040 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6041 file_magic_cmd=$lt_cv_file_magic_cmd
6042 deplibs_check_method=$lt_cv_deplibs_check_method
6043 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6044
6045
6046
6047
6048 # If no C compiler was specified, use CC.
6049 LTCC=${LTCC-"$CC"}
6050
6051 # If no C compiler flags were specified, use CFLAGS.
6052 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6053
6054 # Allow CC to be a program name with arguments.
6055 compiler=$CC
6056
6057 # Check whether --enable-libtool-lock was given.
6058 if test "${enable_libtool_lock+set}" = set; then
6059   enableval=$enable_libtool_lock;
6060 fi
6061
6062 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6063
6064 # Some flags need to be propagated to the compiler or linker for good
6065 # libtool support.
6066 case $host in
6067 ia64-*-hpux*)
6068   # Find out which ABI we are using.
6069   echo 'int i;' > conftest.$ac_ext
6070   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6071   (eval $ac_compile) 2>&5
6072   ac_status=$?
6073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6074   (exit $ac_status); }; then
6075     case `/usr/bin/file conftest.$ac_objext` in
6076     *ELF-32*)
6077       HPUX_IA64_MODE="32"
6078       ;;
6079     *ELF-64*)
6080       HPUX_IA64_MODE="64"
6081       ;;
6082     esac
6083   fi
6084   rm -rf conftest*
6085   ;;
6086 *-*-irix6*)
6087   # Find out which ABI we are using.
6088   echo '#line 6088 "configure"' > conftest.$ac_ext
6089   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6090   (eval $ac_compile) 2>&5
6091   ac_status=$?
6092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6093   (exit $ac_status); }; then
6094    if test "$lt_cv_prog_gnu_ld" = yes; then
6095     case `/usr/bin/file conftest.$ac_objext` in
6096     *32-bit*)
6097       LD="${LD-ld} -melf32bsmip"
6098       ;;
6099     *N32*)
6100       LD="${LD-ld} -melf32bmipn32"
6101       ;;
6102     *64-bit*)
6103       LD="${LD-ld} -melf64bmip"
6104       ;;
6105     esac
6106    else
6107     case `/usr/bin/file conftest.$ac_objext` in
6108     *32-bit*)
6109       LD="${LD-ld} -32"
6110       ;;
6111     *N32*)
6112       LD="${LD-ld} -n32"
6113       ;;
6114     *64-bit*)
6115       LD="${LD-ld} -64"
6116       ;;
6117     esac
6118    fi
6119   fi
6120   rm -rf conftest*
6121   ;;
6122
6123 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6124 s390*-*linux*|sparc*-*linux*)
6125   # Find out which ABI we are using.
6126   echo 'int i;' > conftest.$ac_ext
6127   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6128   (eval $ac_compile) 2>&5
6129   ac_status=$?
6130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6131   (exit $ac_status); }; then
6132     case `/usr/bin/file conftest.o` in
6133     *32-bit*)
6134       case $host in
6135         x86_64-*kfreebsd*-gnu)
6136           LD="${LD-ld} -m elf_i386_fbsd"
6137           ;;
6138         x86_64-*linux*)
6139           LD="${LD-ld} -m elf_i386"
6140           ;;
6141         ppc64-*linux*|powerpc64-*linux*)
6142           LD="${LD-ld} -m elf32ppclinux"
6143           ;;
6144         s390x-*linux*)
6145           LD="${LD-ld} -m elf_s390"
6146           ;;
6147         sparc64-*linux*)
6148           LD="${LD-ld} -m elf32_sparc"
6149           ;;
6150       esac
6151       ;;
6152     *64-bit*)
6153       case $host in
6154         x86_64-*kfreebsd*-gnu)
6155           LD="${LD-ld} -m elf_x86_64_fbsd"
6156           ;;
6157         x86_64-*linux*)
6158           LD="${LD-ld} -m elf_x86_64"
6159           ;;
6160         ppc*-*linux*|powerpc*-*linux*)
6161           LD="${LD-ld} -m elf64ppc"
6162           ;;
6163         s390*-*linux*)
6164           LD="${LD-ld} -m elf64_s390"
6165           ;;
6166         sparc*-*linux*)
6167           LD="${LD-ld} -m elf64_sparc"
6168           ;;
6169       esac
6170       ;;
6171     esac
6172   fi
6173   rm -rf conftest*
6174   ;;
6175
6176 *-*-sco3.2v5*)
6177   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6178   SAVE_CFLAGS="$CFLAGS"
6179   CFLAGS="$CFLAGS -belf"
6180   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6181 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
6182 if test "${lt_cv_cc_needs_belf+set}" = set; then
6183   echo $ECHO_N "(cached) $ECHO_C" >&6
6184 else
6185   ac_ext=c
6186 ac_cpp='$CPP $CPPFLAGS'
6187 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6188 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6189 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6190
6191      cat >conftest.$ac_ext <<_ACEOF
6192 /* confdefs.h.  */
6193 _ACEOF
6194 cat confdefs.h >>conftest.$ac_ext
6195 cat >>conftest.$ac_ext <<_ACEOF
6196 /* end confdefs.h.  */
6197
6198 int
6199 main ()
6200 {
6201
6202   ;
6203   return 0;
6204 }
6205 _ACEOF
6206 rm -f conftest.$ac_objext conftest$ac_exeext
6207 if { (ac_try="$ac_link"
6208 case "(($ac_try" in
6209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6210   *) ac_try_echo=$ac_try;;
6211 esac
6212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6213   (eval "$ac_link") 2>conftest.er1
6214   ac_status=$?
6215   grep -v '^ *+' conftest.er1 >conftest.err
6216   rm -f conftest.er1
6217   cat conftest.err >&5
6218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6219   (exit $ac_status); } && {
6220          test -z "$ac_c_werror_flag" ||
6221          test ! -s conftest.err
6222        } && test -s conftest$ac_exeext &&
6223        $as_test_x conftest$ac_exeext; then
6224   lt_cv_cc_needs_belf=yes
6225 else
6226   echo "$as_me: failed program was:" >&5
6227 sed 's/^/| /' conftest.$ac_ext >&5
6228
6229         lt_cv_cc_needs_belf=no
6230 fi
6231
6232 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6233       conftest$ac_exeext conftest.$ac_ext
6234      ac_ext=c
6235 ac_cpp='$CPP $CPPFLAGS'
6236 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6237 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6238 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6239
6240 fi
6241 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6242 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
6243   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6244     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6245     CFLAGS="$SAVE_CFLAGS"
6246   fi
6247   ;;
6248 sparc*-*solaris*)
6249   # Find out which ABI we are using.
6250   echo 'int i;' > conftest.$ac_ext
6251   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6252   (eval $ac_compile) 2>&5
6253   ac_status=$?
6254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6255   (exit $ac_status); }; then
6256     case `/usr/bin/file conftest.o` in
6257     *64-bit*)
6258       case $lt_cv_prog_gnu_ld in
6259       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6260       *)    LD="${LD-ld} -64" ;;
6261       esac
6262       ;;
6263     esac
6264   fi
6265   rm -rf conftest*
6266   ;;
6267
6268
6269 esac
6270
6271 need_locks="$enable_libtool_lock"
6272
6273
6274
6275 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6276 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6277 if test "${ac_cv_header_stdc+set}" = set; then
6278   echo $ECHO_N "(cached) $ECHO_C" >&6
6279 else
6280   cat >conftest.$ac_ext <<_ACEOF
6281 /* confdefs.h.  */
6282 _ACEOF
6283 cat confdefs.h >>conftest.$ac_ext
6284 cat >>conftest.$ac_ext <<_ACEOF
6285 /* end confdefs.h.  */
6286 #include <stdlib.h>
6287 #include <stdarg.h>
6288 #include <string.h>
6289 #include <float.h>
6290
6291 int
6292 main ()
6293 {
6294
6295   ;
6296   return 0;
6297 }
6298 _ACEOF
6299 rm -f conftest.$ac_objext
6300 if { (ac_try="$ac_compile"
6301 case "(($ac_try" in
6302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6303   *) ac_try_echo=$ac_try;;
6304 esac
6305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6306   (eval "$ac_compile") 2>conftest.er1
6307   ac_status=$?
6308   grep -v '^ *+' conftest.er1 >conftest.err
6309   rm -f conftest.er1
6310   cat conftest.err >&5
6311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6312   (exit $ac_status); } && {
6313          test -z "$ac_c_werror_flag" ||
6314          test ! -s conftest.err
6315        } && test -s conftest.$ac_objext; then
6316   ac_cv_header_stdc=yes
6317 else
6318   echo "$as_me: failed program was:" >&5
6319 sed 's/^/| /' conftest.$ac_ext >&5
6320
6321         ac_cv_header_stdc=no
6322 fi
6323
6324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6325
6326 if test $ac_cv_header_stdc = yes; then
6327   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6328   cat >conftest.$ac_ext <<_ACEOF
6329 /* confdefs.h.  */
6330 _ACEOF
6331 cat confdefs.h >>conftest.$ac_ext
6332 cat >>conftest.$ac_ext <<_ACEOF
6333 /* end confdefs.h.  */
6334 #include <string.h>
6335
6336 _ACEOF
6337 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6338   $EGREP "memchr" >/dev/null 2>&1; then
6339   :
6340 else
6341   ac_cv_header_stdc=no
6342 fi
6343 rm -f conftest*
6344
6345 fi
6346
6347 if test $ac_cv_header_stdc = yes; then
6348   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6349   cat >conftest.$ac_ext <<_ACEOF
6350 /* confdefs.h.  */
6351 _ACEOF
6352 cat confdefs.h >>conftest.$ac_ext
6353 cat >>conftest.$ac_ext <<_ACEOF
6354 /* end confdefs.h.  */
6355 #include <stdlib.h>
6356
6357 _ACEOF
6358 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6359   $EGREP "free" >/dev/null 2>&1; then
6360   :
6361 else
6362   ac_cv_header_stdc=no
6363 fi
6364 rm -f conftest*
6365
6366 fi
6367
6368 if test $ac_cv_header_stdc = yes; then
6369   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6370   if test "$cross_compiling" = yes; then
6371   :
6372 else
6373   cat >conftest.$ac_ext <<_ACEOF
6374 /* confdefs.h.  */
6375 _ACEOF
6376 cat confdefs.h >>conftest.$ac_ext
6377 cat >>conftest.$ac_ext <<_ACEOF
6378 /* end confdefs.h.  */
6379 #include <ctype.h>
6380 #include <stdlib.h>
6381 #if ((' ' & 0x0FF) == 0x020)
6382 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6383 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6384 #else
6385 # define ISLOWER(c) \
6386                    (('a' <= (c) && (c) <= 'i') \
6387                      || ('j' <= (c) && (c) <= 'r') \
6388                      || ('s' <= (c) && (c) <= 'z'))
6389 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6390 #endif
6391
6392 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6393 int
6394 main ()
6395 {
6396   int i;
6397   for (i = 0; i < 256; i++)
6398     if (XOR (islower (i), ISLOWER (i))
6399         || toupper (i) != TOUPPER (i))
6400       return 2;
6401   return 0;
6402 }
6403 _ACEOF
6404 rm -f conftest$ac_exeext
6405 if { (ac_try="$ac_link"
6406 case "(($ac_try" in
6407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6408   *) ac_try_echo=$ac_try;;
6409 esac
6410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6411   (eval "$ac_link") 2>&5
6412   ac_status=$?
6413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6414   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6415   { (case "(($ac_try" in
6416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6417   *) ac_try_echo=$ac_try;;
6418 esac
6419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6420   (eval "$ac_try") 2>&5
6421   ac_status=$?
6422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6423   (exit $ac_status); }; }; then
6424   :
6425 else
6426   echo "$as_me: program exited with status $ac_status" >&5
6427 echo "$as_me: failed program was:" >&5
6428 sed 's/^/| /' conftest.$ac_ext >&5
6429
6430 ( exit $ac_status )
6431 ac_cv_header_stdc=no
6432 fi
6433 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6434 fi
6435
6436
6437 fi
6438 fi
6439 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6440 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6441 if test $ac_cv_header_stdc = yes; then
6442
6443 cat >>confdefs.h <<\_ACEOF
6444 #define STDC_HEADERS 1
6445 _ACEOF
6446
6447 fi
6448
6449 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6460                   inttypes.h stdint.h unistd.h
6461 do
6462 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6463 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6464 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6465 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6466   echo $ECHO_N "(cached) $ECHO_C" >&6
6467 else
6468   cat >conftest.$ac_ext <<_ACEOF
6469 /* confdefs.h.  */
6470 _ACEOF
6471 cat confdefs.h >>conftest.$ac_ext
6472 cat >>conftest.$ac_ext <<_ACEOF
6473 /* end confdefs.h.  */
6474 $ac_includes_default
6475
6476 #include <$ac_header>
6477 _ACEOF
6478 rm -f conftest.$ac_objext
6479 if { (ac_try="$ac_compile"
6480 case "(($ac_try" in
6481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6482   *) ac_try_echo=$ac_try;;
6483 esac
6484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6485   (eval "$ac_compile") 2>conftest.er1
6486   ac_status=$?
6487   grep -v '^ *+' conftest.er1 >conftest.err
6488   rm -f conftest.er1
6489   cat conftest.err >&5
6490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6491   (exit $ac_status); } && {
6492          test -z "$ac_c_werror_flag" ||
6493          test ! -s conftest.err
6494        } && test -s conftest.$ac_objext; then
6495   eval "$as_ac_Header=yes"
6496 else
6497   echo "$as_me: failed program was:" >&5
6498 sed 's/^/| /' conftest.$ac_ext >&5
6499
6500         eval "$as_ac_Header=no"
6501 fi
6502
6503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6504 fi
6505 ac_res=`eval echo '${'$as_ac_Header'}'`
6506                { echo "$as_me:$LINENO: result: $ac_res" >&5
6507 echo "${ECHO_T}$ac_res" >&6; }
6508 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6509   cat >>confdefs.h <<_ACEOF
6510 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6511 _ACEOF
6512
6513 fi
6514
6515 done
6516
6517
6518
6519 for ac_header in dlfcn.h
6520 do
6521 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6522 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6523   { echo "$as_me:$LINENO: checking for $ac_header" >&5
6524 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6525 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6526   echo $ECHO_N "(cached) $ECHO_C" >&6
6527 fi
6528 ac_res=`eval echo '${'$as_ac_Header'}'`
6529                { echo "$as_me:$LINENO: result: $ac_res" >&5
6530 echo "${ECHO_T}$ac_res" >&6; }
6531 else
6532   # Is the header compilable?
6533 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6534 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6535 cat >conftest.$ac_ext <<_ACEOF
6536 /* confdefs.h.  */
6537 _ACEOF
6538 cat confdefs.h >>conftest.$ac_ext
6539 cat >>conftest.$ac_ext <<_ACEOF
6540 /* end confdefs.h.  */
6541 $ac_includes_default
6542 #include <$ac_header>
6543 _ACEOF
6544 rm -f conftest.$ac_objext
6545 if { (ac_try="$ac_compile"
6546 case "(($ac_try" in
6547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6548   *) ac_try_echo=$ac_try;;
6549 esac
6550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6551   (eval "$ac_compile") 2>conftest.er1
6552   ac_status=$?
6553   grep -v '^ *+' conftest.er1 >conftest.err
6554   rm -f conftest.er1
6555   cat conftest.err >&5
6556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6557   (exit $ac_status); } && {
6558          test -z "$ac_c_werror_flag" ||
6559          test ! -s conftest.err
6560        } && test -s conftest.$ac_objext; then
6561   ac_header_compiler=yes
6562 else
6563   echo "$as_me: failed program was:" >&5
6564 sed 's/^/| /' conftest.$ac_ext >&5
6565
6566         ac_header_compiler=no
6567 fi
6568
6569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6570 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6571 echo "${ECHO_T}$ac_header_compiler" >&6; }
6572
6573 # Is the header present?
6574 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6575 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6576 cat >conftest.$ac_ext <<_ACEOF
6577 /* confdefs.h.  */
6578 _ACEOF
6579 cat confdefs.h >>conftest.$ac_ext
6580 cat >>conftest.$ac_ext <<_ACEOF
6581 /* end confdefs.h.  */
6582 #include <$ac_header>
6583 _ACEOF
6584 if { (ac_try="$ac_cpp conftest.$ac_ext"
6585 case "(($ac_try" in
6586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6587   *) ac_try_echo=$ac_try;;
6588 esac
6589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6590   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6591   ac_status=$?
6592   grep -v '^ *+' conftest.er1 >conftest.err
6593   rm -f conftest.er1
6594   cat conftest.err >&5
6595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6596   (exit $ac_status); } >/dev/null && {
6597          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6598          test ! -s conftest.err
6599        }; then
6600   ac_header_preproc=yes
6601 else
6602   echo "$as_me: failed program was:" >&5
6603 sed 's/^/| /' conftest.$ac_ext >&5
6604
6605   ac_header_preproc=no
6606 fi
6607
6608 rm -f conftest.err conftest.$ac_ext
6609 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6610 echo "${ECHO_T}$ac_header_preproc" >&6; }
6611
6612 # So?  What about this header?
6613 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6614   yes:no: )
6615     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6616 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6617     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6618 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6619     ac_header_preproc=yes
6620     ;;
6621   no:yes:* )
6622     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6623 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6624     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6625 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6626     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6627 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6628     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6629 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6630     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6631 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6632     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6633 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6634
6635     ;;
6636 esac
6637 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6638 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6639 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6640   echo $ECHO_N "(cached) $ECHO_C" >&6
6641 else
6642   eval "$as_ac_Header=\$ac_header_preproc"
6643 fi
6644 ac_res=`eval echo '${'$as_ac_Header'}'`
6645                { echo "$as_me:$LINENO: result: $ac_res" >&5
6646 echo "${ECHO_T}$ac_res" >&6; }
6647
6648 fi
6649 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6650   cat >>confdefs.h <<_ACEOF
6651 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6652 _ACEOF
6653
6654 fi
6655
6656 done
6657
6658
6659 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6660
6661 # find the maximum length of command line arguments
6662 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6663 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6664 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6665   echo $ECHO_N "(cached) $ECHO_C" >&6
6666 else
6667     i=0
6668   teststring="ABCD"
6669
6670   case $build_os in
6671   msdosdjgpp*)
6672     # On DJGPP, this test can blow up pretty badly due to problems in libc
6673     # (any single argument exceeding 2000 bytes causes a buffer overrun
6674     # during glob expansion).  Even if it were fixed, the result of this
6675     # check would be larger than it should be.
6676     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6677     ;;
6678
6679   gnu*)
6680     # Under GNU Hurd, this test is not required because there is
6681     # no limit to the length of command line arguments.
6682     # Libtool will interpret -1 as no limit whatsoever
6683     lt_cv_sys_max_cmd_len=-1;
6684     ;;
6685
6686   cygwin* | mingw*)
6687     # On Win9x/ME, this test blows up -- it succeeds, but takes
6688     # about 5 minutes as the teststring grows exponentially.
6689     # Worse, since 9x/ME are not pre-emptively multitasking,
6690     # you end up with a "frozen" computer, even though with patience
6691     # the test eventually succeeds (with a max line length of 256k).
6692     # Instead, let's just punt: use the minimum linelength reported by
6693     # all of the supported platforms: 8192 (on NT/2K/XP).
6694     lt_cv_sys_max_cmd_len=8192;
6695     ;;
6696
6697   amigaos*)
6698     # On AmigaOS with pdksh, this test takes hours, literally.
6699     # So we just punt and use a minimum line length of 8192.
6700     lt_cv_sys_max_cmd_len=8192;
6701     ;;
6702
6703   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6704     # This has been around since 386BSD, at least.  Likely further.
6705     if test -x /sbin/sysctl; then
6706       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6707     elif test -x /usr/sbin/sysctl; then
6708       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6709     else
6710       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6711     fi
6712     # And add a safety zone
6713     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6714     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6715     ;;
6716
6717   interix*)
6718     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6719     lt_cv_sys_max_cmd_len=196608
6720     ;;
6721
6722   osf*)
6723     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6724     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6725     # nice to cause kernel panics so lets avoid the loop below.
6726     # First set a reasonable default.
6727     lt_cv_sys_max_cmd_len=16384
6728     #
6729     if test -x /sbin/sysconfig; then
6730       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6731         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6732       esac
6733     fi
6734     ;;
6735   sco3.2v5*)
6736     lt_cv_sys_max_cmd_len=102400
6737     ;;
6738   sysv5* | sco5v6* | sysv4.2uw2*)
6739     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6740     if test -n "$kargmax"; then
6741       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6742     else
6743       lt_cv_sys_max_cmd_len=32768
6744     fi
6745     ;;
6746   *)
6747     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6748     if test -n "$lt_cv_sys_max_cmd_len"; then
6749       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6750       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6751     else
6752       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6753       while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6754                = "XX$teststring") >/dev/null 2>&1 &&
6755               new_result=`expr "X$teststring" : ".*" 2>&1` &&
6756               lt_cv_sys_max_cmd_len=$new_result &&
6757               test $i != 17 # 1/2 MB should be enough
6758       do
6759         i=`expr $i + 1`
6760         teststring=$teststring$teststring
6761       done
6762       teststring=
6763       # Add a significant safety factor because C++ compilers can tack on massive
6764       # amounts of additional arguments before passing them to the linker.
6765       # It appears as though 1/2 is a usable value.
6766       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6767     fi
6768     ;;
6769   esac
6770
6771 fi
6772
6773 if test -n $lt_cv_sys_max_cmd_len ; then
6774   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6775 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6776 else
6777   { echo "$as_me:$LINENO: result: none" >&5
6778 echo "${ECHO_T}none" >&6; }
6779 fi
6780
6781
6782
6783
6784
6785 # Check for command to grab the raw symbol name followed by C symbol from nm.
6786 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6787 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6788 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6789   echo $ECHO_N "(cached) $ECHO_C" >&6
6790 else
6791
6792 # These are sane defaults that work on at least a few old systems.
6793 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6794
6795 # Character class describing NM global symbol codes.
6796 symcode='[BCDEGRST]'
6797
6798 # Regexp to match symbols that can be accessed directly from C.
6799 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6800
6801 # Transform an extracted symbol line into a proper C declaration
6802 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6803
6804 # Transform an extracted symbol line into symbol name and symbol address
6805 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'"
6806
6807 # Define system-specific variables.
6808 case $host_os in
6809 aix*)
6810   symcode='[BCDT]'
6811   ;;
6812 cygwin* | mingw* | pw32*)
6813   symcode='[ABCDGISTW]'
6814   ;;
6815 hpux*) # Its linker distinguishes data from code symbols
6816   if test "$host_cpu" = ia64; then
6817     symcode='[ABCDEGRST]'
6818   fi
6819   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6820   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'"
6821   ;;
6822 linux* | k*bsd*-gnu)
6823   if test "$host_cpu" = ia64; then
6824     symcode='[ABCDGIRSTW]'
6825     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6826     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'"
6827   fi
6828   ;;
6829 irix* | nonstopux*)
6830   symcode='[BCDEGRST]'
6831   ;;
6832 osf*)
6833   symcode='[BCDEGQRST]'
6834   ;;
6835 solaris*)
6836   symcode='[BDRT]'
6837   ;;
6838 sco3.2v5*)
6839   symcode='[DT]'
6840   ;;
6841 sysv4.2uw2*)
6842   symcode='[DT]'
6843   ;;
6844 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6845   symcode='[ABDT]'
6846   ;;
6847 sysv4)
6848   symcode='[DFNSTU]'
6849   ;;
6850 esac
6851
6852 # Handle CRLF in mingw tool chain
6853 opt_cr=
6854 case $build_os in
6855 mingw*)
6856   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6857   ;;
6858 esac
6859
6860 # If we're using GNU nm, then use its standard symbol codes.
6861 case `$NM -V 2>&1` in
6862 *GNU* | *'with BFD'*)
6863   symcode='[ABCDGIRSTW]' ;;
6864 esac
6865
6866 # Try without a prefix undercore, then with it.
6867 for ac_symprfx in "" "_"; do
6868
6869   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6870   symxfrm="\\1 $ac_symprfx\\2 \\2"
6871
6872   # Write the raw and C identifiers.
6873   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6874
6875   # Check to see that the pipe works correctly.
6876   pipe_works=no
6877
6878   rm -f conftest*
6879   cat > conftest.$ac_ext <<EOF
6880 #ifdef __cplusplus
6881 extern "C" {
6882 #endif
6883 char nm_test_var;
6884 void nm_test_func(){}
6885 #ifdef __cplusplus
6886 }
6887 #endif
6888 int main(){nm_test_var='a';nm_test_func();return(0);}
6889 EOF
6890
6891   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6892   (eval $ac_compile) 2>&5
6893   ac_status=$?
6894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6895   (exit $ac_status); }; then
6896     # Now try to grab the symbols.
6897     nlist=conftest.nm
6898     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6899   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6900   ac_status=$?
6901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6902   (exit $ac_status); } && test -s "$nlist"; then
6903       # Try sorting and uniquifying the output.
6904       if sort "$nlist" | uniq > "$nlist"T; then
6905         mv -f "$nlist"T "$nlist"
6906       else
6907         rm -f "$nlist"T
6908       fi
6909
6910       # Make sure that we snagged all the symbols we need.
6911       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6912         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6913           cat <<EOF > conftest.$ac_ext
6914 #ifdef __cplusplus
6915 extern "C" {
6916 #endif
6917
6918 EOF
6919           # Now generate the symbol file.
6920           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6921
6922           cat <<EOF >> conftest.$ac_ext
6923 #if defined (__STDC__) && __STDC__
6924 # define lt_ptr_t void *
6925 #else
6926 # define lt_ptr_t char *
6927 # define const
6928 #endif
6929
6930 /* The mapping between symbol names and symbols. */
6931 const struct {
6932   const char *name;
6933   lt_ptr_t address;
6934 }
6935 lt_preloaded_symbols[] =
6936 {
6937 EOF
6938           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6939           cat <<\EOF >> conftest.$ac_ext
6940   {0, (lt_ptr_t) 0}
6941 };
6942
6943 #ifdef __cplusplus
6944 }
6945 #endif
6946 EOF
6947           # Now try linking the two files.
6948           mv conftest.$ac_objext conftstm.$ac_objext
6949           lt_save_LIBS="$LIBS"
6950           lt_save_CFLAGS="$CFLAGS"
6951           LIBS="conftstm.$ac_objext"
6952           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6953           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6954   (eval $ac_link) 2>&5
6955   ac_status=$?
6956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6957   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6958             pipe_works=yes
6959           fi
6960           LIBS="$lt_save_LIBS"
6961           CFLAGS="$lt_save_CFLAGS"
6962         else
6963           echo "cannot find nm_test_func in $nlist" >&5
6964         fi
6965       else
6966         echo "cannot find nm_test_var in $nlist" >&5
6967       fi
6968     else
6969       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6970     fi
6971   else
6972     echo "$progname: failed program was:" >&5
6973     cat conftest.$ac_ext >&5
6974   fi
6975   rm -f conftest* conftst*
6976
6977   # Do not use the global_symbol_pipe unless it works.
6978   if test "$pipe_works" = yes; then
6979     break
6980   else
6981     lt_cv_sys_global_symbol_pipe=
6982   fi
6983 done
6984
6985 fi
6986
6987 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6988   lt_cv_sys_global_symbol_to_cdecl=
6989 fi
6990 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6991   { echo "$as_me:$LINENO: result: failed" >&5
6992 echo "${ECHO_T}failed" >&6; }
6993 else
6994   { echo "$as_me:$LINENO: result: ok" >&5
6995 echo "${ECHO_T}ok" >&6; }
6996 fi
6997
6998 { echo "$as_me:$LINENO: checking for objdir" >&5
6999 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
7000 if test "${lt_cv_objdir+set}" = set; then
7001   echo $ECHO_N "(cached) $ECHO_C" >&6
7002 else
7003   rm -f .libs 2>/dev/null
7004 mkdir .libs 2>/dev/null
7005 if test -d .libs; then
7006   lt_cv_objdir=.libs
7007 else
7008   # MS-DOS does not allow filenames that begin with a dot.
7009   lt_cv_objdir=_libs
7010 fi
7011 rmdir .libs 2>/dev/null
7012 fi
7013 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7014 echo "${ECHO_T}$lt_cv_objdir" >&6; }
7015 objdir=$lt_cv_objdir
7016
7017
7018
7019
7020
7021 case $host_os in
7022 aix3*)
7023   # AIX sometimes has problems with the GCC collect2 program.  For some
7024   # reason, if we set the COLLECT_NAMES environment variable, the problems
7025   # vanish in a puff of smoke.
7026   if test "X${COLLECT_NAMES+set}" != Xset; then
7027     COLLECT_NAMES=
7028     export COLLECT_NAMES
7029   fi
7030   ;;
7031 esac
7032
7033 # Sed substitution that helps us do robust quoting.  It backslashifies
7034 # metacharacters that are still active within double-quoted strings.
7035 Xsed='sed -e 1s/^X//'
7036 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7037
7038 # Same as above, but do not quote variable references.
7039 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7040
7041 # Sed substitution to delay expansion of an escaped shell variable in a
7042 # double_quote_subst'ed string.
7043 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7044
7045 # Sed substitution to avoid accidental globbing in evaled expressions
7046 no_glob_subst='s/\*/\\\*/g'
7047
7048 # Constants:
7049 rm="rm -f"
7050
7051 # Global variables:
7052 default_ofile=libtool
7053 can_build_shared=yes
7054
7055 # All known linkers require a `.a' archive for static linking (except MSVC,
7056 # which needs '.lib').
7057 libext=a
7058 ltmain="$ac_aux_dir/ltmain.sh"
7059 ofile="$default_ofile"
7060 with_gnu_ld="$lt_cv_prog_gnu_ld"
7061
7062 if test -n "$ac_tool_prefix"; then
7063   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7064 set dummy ${ac_tool_prefix}ar; ac_word=$2
7065 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7066 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7067 if test "${ac_cv_prog_AR+set}" = set; then
7068   echo $ECHO_N "(cached) $ECHO_C" >&6
7069 else
7070   if test -n "$AR"; then
7071   ac_cv_prog_AR="$AR" # Let the user override the test.
7072 else
7073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7074 for as_dir in $PATH
7075 do
7076   IFS=$as_save_IFS
7077   test -z "$as_dir" && as_dir=.
7078   for ac_exec_ext in '' $ac_executable_extensions; do
7079   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7080     ac_cv_prog_AR="${ac_tool_prefix}ar"
7081     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7082     break 2
7083   fi
7084 done
7085 done
7086 IFS=$as_save_IFS
7087
7088 fi
7089 fi
7090 AR=$ac_cv_prog_AR
7091 if test -n "$AR"; then
7092   { echo "$as_me:$LINENO: result: $AR" >&5
7093 echo "${ECHO_T}$AR" >&6; }
7094 else
7095   { echo "$as_me:$LINENO: result: no" >&5
7096 echo "${ECHO_T}no" >&6; }
7097 fi
7098
7099
7100 fi
7101 if test -z "$ac_cv_prog_AR"; then
7102   ac_ct_AR=$AR
7103   # Extract the first word of "ar", so it can be a program name with args.
7104 set dummy ar; ac_word=$2
7105 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7107 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7108   echo $ECHO_N "(cached) $ECHO_C" >&6
7109 else
7110   if test -n "$ac_ct_AR"; then
7111   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7112 else
7113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7114 for as_dir in $PATH
7115 do
7116   IFS=$as_save_IFS
7117   test -z "$as_dir" && as_dir=.
7118   for ac_exec_ext in '' $ac_executable_extensions; do
7119   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7120     ac_cv_prog_ac_ct_AR="ar"
7121     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7122     break 2
7123   fi
7124 done
7125 done
7126 IFS=$as_save_IFS
7127
7128 fi
7129 fi
7130 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7131 if test -n "$ac_ct_AR"; then
7132   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7133 echo "${ECHO_T}$ac_ct_AR" >&6; }
7134 else
7135   { echo "$as_me:$LINENO: result: no" >&5
7136 echo "${ECHO_T}no" >&6; }
7137 fi
7138
7139   if test "x$ac_ct_AR" = x; then
7140     AR="false"
7141   else
7142     case $cross_compiling:$ac_tool_warned in
7143 yes:)
7144 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7145 whose name does not start with the host triplet.  If you think this
7146 configuration is useful to you, please write to autoconf@gnu.org." >&5
7147 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7148 whose name does not start with the host triplet.  If you think this
7149 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7150 ac_tool_warned=yes ;;
7151 esac
7152     AR=$ac_ct_AR
7153   fi
7154 else
7155   AR="$ac_cv_prog_AR"
7156 fi
7157
7158 if test -n "$ac_tool_prefix"; then
7159   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7160 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7161 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7162 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7163 if test "${ac_cv_prog_RANLIB+set}" = set; then
7164   echo $ECHO_N "(cached) $ECHO_C" >&6
7165 else
7166   if test -n "$RANLIB"; then
7167   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7168 else
7169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7170 for as_dir in $PATH
7171 do
7172   IFS=$as_save_IFS
7173   test -z "$as_dir" && as_dir=.
7174   for ac_exec_ext in '' $ac_executable_extensions; do
7175   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7176     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7177     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7178     break 2
7179   fi
7180 done
7181 done
7182 IFS=$as_save_IFS
7183
7184 fi
7185 fi
7186 RANLIB=$ac_cv_prog_RANLIB
7187 if test -n "$RANLIB"; then
7188   { echo "$as_me:$LINENO: result: $RANLIB" >&5
7189 echo "${ECHO_T}$RANLIB" >&6; }
7190 else
7191   { echo "$as_me:$LINENO: result: no" >&5
7192 echo "${ECHO_T}no" >&6; }
7193 fi
7194
7195
7196 fi
7197 if test -z "$ac_cv_prog_RANLIB"; then
7198   ac_ct_RANLIB=$RANLIB
7199   # Extract the first word of "ranlib", so it can be a program name with args.
7200 set dummy ranlib; ac_word=$2
7201 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7202 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7203 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7204   echo $ECHO_N "(cached) $ECHO_C" >&6
7205 else
7206   if test -n "$ac_ct_RANLIB"; then
7207   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7208 else
7209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7210 for as_dir in $PATH
7211 do
7212   IFS=$as_save_IFS
7213   test -z "$as_dir" && as_dir=.
7214   for ac_exec_ext in '' $ac_executable_extensions; do
7215   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7216     ac_cv_prog_ac_ct_RANLIB="ranlib"
7217     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7218     break 2
7219   fi
7220 done
7221 done
7222 IFS=$as_save_IFS
7223
7224 fi
7225 fi
7226 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7227 if test -n "$ac_ct_RANLIB"; then
7228   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7229 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7230 else
7231   { echo "$as_me:$LINENO: result: no" >&5
7232 echo "${ECHO_T}no" >&6; }
7233 fi
7234
7235   if test "x$ac_ct_RANLIB" = x; then
7236     RANLIB=":"
7237   else
7238     case $cross_compiling:$ac_tool_warned in
7239 yes:)
7240 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7241 whose name does not start with the host triplet.  If you think this
7242 configuration is useful to you, please write to autoconf@gnu.org." >&5
7243 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7244 whose name does not start with the host triplet.  If you think this
7245 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7246 ac_tool_warned=yes ;;
7247 esac
7248     RANLIB=$ac_ct_RANLIB
7249   fi
7250 else
7251   RANLIB="$ac_cv_prog_RANLIB"
7252 fi
7253
7254 if test -n "$ac_tool_prefix"; then
7255   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7256 set dummy ${ac_tool_prefix}strip; ac_word=$2
7257 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7258 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7259 if test "${ac_cv_prog_STRIP+set}" = set; then
7260   echo $ECHO_N "(cached) $ECHO_C" >&6
7261 else
7262   if test -n "$STRIP"; then
7263   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7264 else
7265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7266 for as_dir in $PATH
7267 do
7268   IFS=$as_save_IFS
7269   test -z "$as_dir" && as_dir=.
7270   for ac_exec_ext in '' $ac_executable_extensions; do
7271   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7272     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7273     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7274     break 2
7275   fi
7276 done
7277 done
7278 IFS=$as_save_IFS
7279
7280 fi
7281 fi
7282 STRIP=$ac_cv_prog_STRIP
7283 if test -n "$STRIP"; then
7284   { echo "$as_me:$LINENO: result: $STRIP" >&5
7285 echo "${ECHO_T}$STRIP" >&6; }
7286 else
7287   { echo "$as_me:$LINENO: result: no" >&5
7288 echo "${ECHO_T}no" >&6; }
7289 fi
7290
7291
7292 fi
7293 if test -z "$ac_cv_prog_STRIP"; then
7294   ac_ct_STRIP=$STRIP
7295   # Extract the first word of "strip", so it can be a program name with args.
7296 set dummy strip; ac_word=$2
7297 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7298 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7299 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7300   echo $ECHO_N "(cached) $ECHO_C" >&6
7301 else
7302   if test -n "$ac_ct_STRIP"; then
7303   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7304 else
7305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7306 for as_dir in $PATH
7307 do
7308   IFS=$as_save_IFS
7309   test -z "$as_dir" && as_dir=.
7310   for ac_exec_ext in '' $ac_executable_extensions; do
7311   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7312     ac_cv_prog_ac_ct_STRIP="strip"
7313     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7314     break 2
7315   fi
7316 done
7317 done
7318 IFS=$as_save_IFS
7319
7320 fi
7321 fi
7322 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7323 if test -n "$ac_ct_STRIP"; then
7324   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7325 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7326 else
7327   { echo "$as_me:$LINENO: result: no" >&5
7328 echo "${ECHO_T}no" >&6; }
7329 fi
7330
7331   if test "x$ac_ct_STRIP" = x; then
7332     STRIP=":"
7333   else
7334     case $cross_compiling:$ac_tool_warned in
7335 yes:)
7336 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7337 whose name does not start with the host triplet.  If you think this
7338 configuration is useful to you, please write to autoconf@gnu.org." >&5
7339 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7340 whose name does not start with the host triplet.  If you think this
7341 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7342 ac_tool_warned=yes ;;
7343 esac
7344     STRIP=$ac_ct_STRIP
7345   fi
7346 else
7347   STRIP="$ac_cv_prog_STRIP"
7348 fi
7349
7350
7351 old_CC="$CC"
7352 old_CFLAGS="$CFLAGS"
7353
7354 # Set sane defaults for various variables
7355 test -z "$AR" && AR=ar
7356 test -z "$AR_FLAGS" && AR_FLAGS=cru
7357 test -z "$AS" && AS=as
7358 test -z "$CC" && CC=cc
7359 test -z "$LTCC" && LTCC=$CC
7360 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7361 test -z "$DLLTOOL" && DLLTOOL=dlltool
7362 test -z "$LD" && LD=ld
7363 test -z "$LN_S" && LN_S="ln -s"
7364 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7365 test -z "$NM" && NM=nm
7366 test -z "$SED" && SED=sed
7367 test -z "$OBJDUMP" && OBJDUMP=objdump
7368 test -z "$RANLIB" && RANLIB=:
7369 test -z "$STRIP" && STRIP=:
7370 test -z "$ac_objext" && ac_objext=o
7371
7372 # Determine commands to create old-style static archives.
7373 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7374 old_postinstall_cmds='chmod 644 $oldlib'
7375 old_postuninstall_cmds=
7376
7377 if test -n "$RANLIB"; then
7378   case $host_os in
7379   openbsd*)
7380     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7381     ;;
7382   *)
7383     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7384     ;;
7385   esac
7386   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7387 fi
7388
7389 for cc_temp in $compiler""; do
7390   case $cc_temp in
7391     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7392     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7393     \-*) ;;
7394     *) break;;
7395   esac
7396 done
7397 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7398
7399
7400 # Only perform the check for file, if the check method requires it
7401 case $deplibs_check_method in
7402 file_magic*)
7403   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7404     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7405 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7406 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7407   echo $ECHO_N "(cached) $ECHO_C" >&6
7408 else
7409   case $MAGIC_CMD in
7410 [\\/*] |  ?:[\\/]*)
7411   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7412   ;;
7413 *)
7414   lt_save_MAGIC_CMD="$MAGIC_CMD"
7415   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7416   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7417   for ac_dir in $ac_dummy; do
7418     IFS="$lt_save_ifs"
7419     test -z "$ac_dir" && ac_dir=.
7420     if test -f $ac_dir/${ac_tool_prefix}file; then
7421       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7422       if test -n "$file_magic_test_file"; then
7423         case $deplibs_check_method in
7424         "file_magic "*)
7425           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7426           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7427           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7428             $EGREP "$file_magic_regex" > /dev/null; then
7429             :
7430           else
7431             cat <<EOF 1>&2
7432
7433 *** Warning: the command libtool uses to detect shared libraries,
7434 *** $file_magic_cmd, produces output that libtool cannot recognize.
7435 *** The result is that libtool may fail to recognize shared libraries
7436 *** as such.  This will affect the creation of libtool libraries that
7437 *** depend on shared libraries, but programs linked with such libtool
7438 *** libraries will work regardless of this problem.  Nevertheless, you
7439 *** may want to report the problem to your system manager and/or to
7440 *** bug-libtool@gnu.org
7441
7442 EOF
7443           fi ;;
7444         esac
7445       fi
7446       break
7447     fi
7448   done
7449   IFS="$lt_save_ifs"
7450   MAGIC_CMD="$lt_save_MAGIC_CMD"
7451   ;;
7452 esac
7453 fi
7454
7455 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7456 if test -n "$MAGIC_CMD"; then
7457   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7458 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7459 else
7460   { echo "$as_me:$LINENO: result: no" >&5
7461 echo "${ECHO_T}no" >&6; }
7462 fi
7463
7464 if test -z "$lt_cv_path_MAGIC_CMD"; then
7465   if test -n "$ac_tool_prefix"; then
7466     { echo "$as_me:$LINENO: checking for file" >&5
7467 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7468 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7469   echo $ECHO_N "(cached) $ECHO_C" >&6
7470 else
7471   case $MAGIC_CMD in
7472 [\\/*] |  ?:[\\/]*)
7473   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7474   ;;
7475 *)
7476   lt_save_MAGIC_CMD="$MAGIC_CMD"
7477   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7478   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7479   for ac_dir in $ac_dummy; do
7480     IFS="$lt_save_ifs"
7481     test -z "$ac_dir" && ac_dir=.
7482     if test -f $ac_dir/file; then
7483       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7484       if test -n "$file_magic_test_file"; then
7485         case $deplibs_check_method in
7486         "file_magic "*)
7487           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7488           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7489           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7490             $EGREP "$file_magic_regex" > /dev/null; then
7491             :
7492           else
7493             cat <<EOF 1>&2
7494
7495 *** Warning: the command libtool uses to detect shared libraries,
7496 *** $file_magic_cmd, produces output that libtool cannot recognize.
7497 *** The result is that libtool may fail to recognize shared libraries
7498 *** as such.  This will affect the creation of libtool libraries that
7499 *** depend on shared libraries, but programs linked with such libtool
7500 *** libraries will work regardless of this problem.  Nevertheless, you
7501 *** may want to report the problem to your system manager and/or to
7502 *** bug-libtool@gnu.org
7503
7504 EOF
7505           fi ;;
7506         esac
7507       fi
7508       break
7509     fi
7510   done
7511   IFS="$lt_save_ifs"
7512   MAGIC_CMD="$lt_save_MAGIC_CMD"
7513   ;;
7514 esac
7515 fi
7516
7517 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7518 if test -n "$MAGIC_CMD"; then
7519   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7520 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7521 else
7522   { echo "$as_me:$LINENO: result: no" >&5
7523 echo "${ECHO_T}no" >&6; }
7524 fi
7525
7526   else
7527     MAGIC_CMD=:
7528   fi
7529 fi
7530
7531   fi
7532   ;;
7533 esac
7534
7535 enable_dlopen=no
7536 enable_win32_dll=no
7537
7538 # Check whether --enable-libtool-lock was given.
7539 if test "${enable_libtool_lock+set}" = set; then
7540   enableval=$enable_libtool_lock;
7541 fi
7542
7543 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7544
7545
7546 # Check whether --with-pic was given.
7547 if test "${with_pic+set}" = set; then
7548   withval=$with_pic; pic_mode="$withval"
7549 else
7550   pic_mode=default
7551 fi
7552
7553 test -z "$pic_mode" && pic_mode=default
7554
7555 # Use C for the default configuration in the libtool script
7556 tagname=
7557 lt_save_CC="$CC"
7558 ac_ext=c
7559 ac_cpp='$CPP $CPPFLAGS'
7560 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7561 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7562 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7563
7564
7565 # Source file extension for C test sources.
7566 ac_ext=c
7567
7568 # Object file extension for compiled C test sources.
7569 objext=o
7570 objext=$objext
7571
7572 # Code to be used in simple compile tests
7573 lt_simple_compile_test_code="int some_variable = 0;"
7574
7575 # Code to be used in simple link tests
7576 lt_simple_link_test_code='int main(){return(0);}'
7577
7578
7579 # If no C compiler was specified, use CC.
7580 LTCC=${LTCC-"$CC"}
7581
7582 # If no C compiler flags were specified, use CFLAGS.
7583 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7584
7585 # Allow CC to be a program name with arguments.
7586 compiler=$CC
7587
7588
7589 # save warnings/boilerplate of simple test code
7590 ac_outfile=conftest.$ac_objext
7591 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7592 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7593 _lt_compiler_boilerplate=`cat conftest.err`
7594 $rm conftest*
7595
7596 ac_outfile=conftest.$ac_objext
7597 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7598 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7599 _lt_linker_boilerplate=`cat conftest.err`
7600 $rm conftest*
7601
7602
7603 ## CAVEAT EMPTOR:
7604 ## There is no encapsulation within the following macros, do not change
7605 ## the running order or otherwise move them around unless you know exactly
7606 ## what you are doing...
7607
7608 lt_prog_compiler_no_builtin_flag=
7609
7610 if test "$GCC" = yes; then
7611   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7612
7613
7614 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7615 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7616 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7617   echo $ECHO_N "(cached) $ECHO_C" >&6
7618 else
7619   lt_cv_prog_compiler_rtti_exceptions=no
7620   ac_outfile=conftest.$ac_objext
7621    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7622    lt_compiler_flag="-fno-rtti -fno-exceptions"
7623    # Insert the option either (1) after the last *FLAGS variable, or
7624    # (2) before a word containing "conftest.", or (3) at the end.
7625    # Note that $ac_compile itself does not contain backslashes and begins
7626    # with a dollar sign (not a hyphen), so the echo should work correctly.
7627    # The option is referenced via a variable to avoid confusing sed.
7628    lt_compile=`echo "$ac_compile" | $SED \
7629    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7630    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7631    -e 's:$: $lt_compiler_flag:'`
7632    (eval echo "\"\$as_me:7632: $lt_compile\"" >&5)
7633    (eval "$lt_compile" 2>conftest.err)
7634    ac_status=$?
7635    cat conftest.err >&5
7636    echo "$as_me:7636: \$? = $ac_status" >&5
7637    if (exit $ac_status) && test -s "$ac_outfile"; then
7638      # The compiler can only warn and ignore the option if not recognized
7639      # So say no if there are warnings other than the usual output.
7640      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7641      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7642      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7643        lt_cv_prog_compiler_rtti_exceptions=yes
7644      fi
7645    fi
7646    $rm conftest*
7647
7648 fi
7649 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7650 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7651
7652 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7653     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7654 else
7655     :
7656 fi
7657
7658 fi
7659
7660 lt_prog_compiler_wl=
7661 lt_prog_compiler_pic=
7662 lt_prog_compiler_static=
7663
7664 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7665 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7666
7667   if test "$GCC" = yes; then
7668     lt_prog_compiler_wl='-Wl,'
7669     lt_prog_compiler_static='-static'
7670
7671     case $host_os in
7672       aix*)
7673       # All AIX code is PIC.
7674       if test "$host_cpu" = ia64; then
7675         # AIX 5 now supports IA64 processor
7676         lt_prog_compiler_static='-Bstatic'
7677       fi
7678       ;;
7679
7680     amigaos*)
7681       # FIXME: we need at least 68020 code to build shared libraries, but
7682       # adding the `-m68020' flag to GCC prevents building anything better,
7683       # like `-m68040'.
7684       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7685       ;;
7686
7687     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7688       # PIC is the default for these OSes.
7689       ;;
7690
7691     mingw* | cygwin* | pw32* | os2*)
7692       # This hack is so that the source file can tell whether it is being
7693       # built for inclusion in a dll (and should export symbols for example).
7694       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7695       # (--disable-auto-import) libraries
7696       lt_prog_compiler_pic='-DDLL_EXPORT'
7697       ;;
7698
7699     darwin* | rhapsody*)
7700       # PIC is the default on this platform
7701       # Common symbols not allowed in MH_DYLIB files
7702       lt_prog_compiler_pic='-fno-common'
7703       ;;
7704
7705     interix[3-9]*)
7706       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7707       # Instead, we relocate shared libraries at runtime.
7708       ;;
7709
7710     msdosdjgpp*)
7711       # Just because we use GCC doesn't mean we suddenly get shared libraries
7712       # on systems that don't support them.
7713       lt_prog_compiler_can_build_shared=no
7714       enable_shared=no
7715       ;;
7716
7717     sysv4*MP*)
7718       if test -d /usr/nec; then
7719         lt_prog_compiler_pic=-Kconform_pic
7720       fi
7721       ;;
7722
7723     hpux*)
7724       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7725       # not for PA HP-UX.
7726       case $host_cpu in
7727       hppa*64*|ia64*)
7728         # +Z the default
7729         ;;
7730       *)
7731         lt_prog_compiler_pic='-fPIC'
7732         ;;
7733       esac
7734       ;;
7735
7736     *)
7737       lt_prog_compiler_pic='-fPIC'
7738       ;;
7739     esac
7740   else
7741     # PORTME Check for flag to pass linker flags through the system compiler.
7742     case $host_os in
7743     aix*)
7744       lt_prog_compiler_wl='-Wl,'
7745       if test "$host_cpu" = ia64; then
7746         # AIX 5 now supports IA64 processor
7747         lt_prog_compiler_static='-Bstatic'
7748       else
7749         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7750       fi
7751       ;;
7752       darwin*)
7753         # PIC is the default on this platform
7754         # Common symbols not allowed in MH_DYLIB files
7755        case $cc_basename in
7756          xlc*)
7757          lt_prog_compiler_pic='-qnocommon'
7758          lt_prog_compiler_wl='-Wl,'
7759          ;;
7760        esac
7761        ;;
7762
7763     mingw* | cygwin* | pw32* | os2*)
7764       # This hack is so that the source file can tell whether it is being
7765       # built for inclusion in a dll (and should export symbols for example).
7766       lt_prog_compiler_pic='-DDLL_EXPORT'
7767       ;;
7768
7769     hpux9* | hpux10* | hpux11*)
7770       lt_prog_compiler_wl='-Wl,'
7771       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7772       # not for PA HP-UX.
7773       case $host_cpu in
7774       hppa*64*|ia64*)
7775         # +Z the default
7776         ;;
7777       *)
7778         lt_prog_compiler_pic='+Z'
7779         ;;
7780       esac
7781       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7782       lt_prog_compiler_static='${wl}-a ${wl}archive'
7783       ;;
7784
7785     irix5* | irix6* | nonstopux*)
7786       lt_prog_compiler_wl='-Wl,'
7787       # PIC (with -KPIC) is the default.
7788       lt_prog_compiler_static='-non_shared'
7789       ;;
7790
7791     newsos6)
7792       lt_prog_compiler_pic='-KPIC'
7793       lt_prog_compiler_static='-Bstatic'
7794       ;;
7795
7796     linux* | k*bsd*-gnu)
7797       case $cc_basename in
7798       icc* | ecc*)
7799         lt_prog_compiler_wl='-Wl,'
7800         lt_prog_compiler_pic='-KPIC'
7801         lt_prog_compiler_static='-static'
7802         ;;
7803       pgcc* | pgf77* | pgf90* | pgf95*)
7804         # Portland Group compilers (*not* the Pentium gcc compiler,
7805         # which looks to be a dead project)
7806         lt_prog_compiler_wl='-Wl,'
7807         lt_prog_compiler_pic='-fpic'
7808         lt_prog_compiler_static='-Bstatic'
7809         ;;
7810       ccc*)
7811         lt_prog_compiler_wl='-Wl,'
7812         # All Alpha code is PIC.
7813         lt_prog_compiler_static='-non_shared'
7814         ;;
7815       *)
7816         case `$CC -V 2>&1 | sed 5q` in
7817         *Sun\ C*)
7818           # Sun C 5.9
7819           lt_prog_compiler_pic='-KPIC'
7820           lt_prog_compiler_static='-Bstatic'
7821           lt_prog_compiler_wl='-Wl,'
7822           ;;
7823         *Sun\ F*)
7824           # Sun Fortran 8.3 passes all unrecognized flags to the linker
7825           lt_prog_compiler_pic='-KPIC'
7826           lt_prog_compiler_static='-Bstatic'
7827           lt_prog_compiler_wl=''
7828           ;;
7829         esac
7830         ;;
7831       esac
7832       ;;
7833
7834     osf3* | osf4* | osf5*)
7835       lt_prog_compiler_wl='-Wl,'
7836       # All OSF/1 code is PIC.
7837       lt_prog_compiler_static='-non_shared'
7838       ;;
7839
7840     rdos*)
7841       lt_prog_compiler_static='-non_shared'
7842       ;;
7843
7844     solaris*)
7845       lt_prog_compiler_pic='-KPIC'
7846       lt_prog_compiler_static='-Bstatic'
7847       case $cc_basename in
7848       f77* | f90* | f95*)
7849         lt_prog_compiler_wl='-Qoption ld ';;
7850       *)
7851         lt_prog_compiler_wl='-Wl,';;
7852       esac
7853       ;;
7854
7855     sunos4*)
7856       lt_prog_compiler_wl='-Qoption ld '
7857       lt_prog_compiler_pic='-PIC'
7858       lt_prog_compiler_static='-Bstatic'
7859       ;;
7860
7861     sysv4 | sysv4.2uw2* | sysv4.3*)
7862       lt_prog_compiler_wl='-Wl,'
7863       lt_prog_compiler_pic='-KPIC'
7864       lt_prog_compiler_static='-Bstatic'
7865       ;;
7866
7867     sysv4*MP*)
7868       if test -d /usr/nec ;then
7869         lt_prog_compiler_pic='-Kconform_pic'
7870         lt_prog_compiler_static='-Bstatic'
7871       fi
7872       ;;
7873
7874     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7875       lt_prog_compiler_wl='-Wl,'
7876       lt_prog_compiler_pic='-KPIC'
7877       lt_prog_compiler_static='-Bstatic'
7878       ;;
7879
7880     unicos*)
7881       lt_prog_compiler_wl='-Wl,'
7882       lt_prog_compiler_can_build_shared=no
7883       ;;
7884
7885     uts4*)
7886       lt_prog_compiler_pic='-pic'
7887       lt_prog_compiler_static='-Bstatic'
7888       ;;
7889
7890     *)
7891       lt_prog_compiler_can_build_shared=no
7892       ;;
7893     esac
7894   fi
7895
7896 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7897 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7898
7899 #
7900 # Check to make sure the PIC flag actually works.
7901 #
7902 if test -n "$lt_prog_compiler_pic"; then
7903
7904 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7905 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7906 if test "${lt_prog_compiler_pic_works+set}" = set; then
7907   echo $ECHO_N "(cached) $ECHO_C" >&6
7908 else
7909   lt_prog_compiler_pic_works=no
7910   ac_outfile=conftest.$ac_objext
7911    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7912    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7913    # Insert the option either (1) after the last *FLAGS variable, or
7914    # (2) before a word containing "conftest.", or (3) at the end.
7915    # Note that $ac_compile itself does not contain backslashes and begins
7916    # with a dollar sign (not a hyphen), so the echo should work correctly.
7917    # The option is referenced via a variable to avoid confusing sed.
7918    lt_compile=`echo "$ac_compile" | $SED \
7919    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7920    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7921    -e 's:$: $lt_compiler_flag:'`
7922    (eval echo "\"\$as_me:7922: $lt_compile\"" >&5)
7923    (eval "$lt_compile" 2>conftest.err)
7924    ac_status=$?
7925    cat conftest.err >&5
7926    echo "$as_me:7926: \$? = $ac_status" >&5
7927    if (exit $ac_status) && test -s "$ac_outfile"; then
7928      # The compiler can only warn and ignore the option if not recognized
7929      # So say no if there are warnings other than the usual output.
7930      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7931      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7932      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7933        lt_prog_compiler_pic_works=yes
7934      fi
7935    fi
7936    $rm conftest*
7937
7938 fi
7939 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7940 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7941
7942 if test x"$lt_prog_compiler_pic_works" = xyes; then
7943     case $lt_prog_compiler_pic in
7944      "" | " "*) ;;
7945      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7946      esac
7947 else
7948     lt_prog_compiler_pic=
7949      lt_prog_compiler_can_build_shared=no
7950 fi
7951
7952 fi
7953 case $host_os in
7954   # For platforms which do not support PIC, -DPIC is meaningless:
7955   *djgpp*)
7956     lt_prog_compiler_pic=
7957     ;;
7958   *)
7959     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7960     ;;
7961 esac
7962
7963 #
7964 # Check to make sure the static flag actually works.
7965 #
7966 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7967 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7968 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7969 if test "${lt_prog_compiler_static_works+set}" = set; then
7970   echo $ECHO_N "(cached) $ECHO_C" >&6
7971 else
7972   lt_prog_compiler_static_works=no
7973    save_LDFLAGS="$LDFLAGS"
7974    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7975    echo "$lt_simple_link_test_code" > conftest.$ac_ext
7976    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7977      # The linker can only warn and ignore the option if not recognized
7978      # So say no if there are warnings
7979      if test -s conftest.err; then
7980        # Append any errors to the config.log.
7981        cat conftest.err 1>&5
7982        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7983        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7984        if diff conftest.exp conftest.er2 >/dev/null; then
7985          lt_prog_compiler_static_works=yes
7986        fi
7987      else
7988        lt_prog_compiler_static_works=yes
7989      fi
7990    fi
7991    $rm conftest*
7992    LDFLAGS="$save_LDFLAGS"
7993
7994 fi
7995 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7996 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7997
7998 if test x"$lt_prog_compiler_static_works" = xyes; then
7999     :
8000 else
8001     lt_prog_compiler_static=
8002 fi
8003
8004
8005 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8006 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8007 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8008   echo $ECHO_N "(cached) $ECHO_C" >&6
8009 else
8010   lt_cv_prog_compiler_c_o=no
8011    $rm -r conftest 2>/dev/null
8012    mkdir conftest
8013    cd conftest
8014    mkdir out
8015    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8016
8017    lt_compiler_flag="-o out/conftest2.$ac_objext"
8018    # Insert the option either (1) after the last *FLAGS variable, or
8019    # (2) before a word containing "conftest.", or (3) at the end.
8020    # Note that $ac_compile itself does not contain backslashes and begins
8021    # with a dollar sign (not a hyphen), so the echo should work correctly.
8022    lt_compile=`echo "$ac_compile" | $SED \
8023    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8024    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8025    -e 's:$: $lt_compiler_flag:'`
8026    (eval echo "\"\$as_me:8026: $lt_compile\"" >&5)
8027    (eval "$lt_compile" 2>out/conftest.err)
8028    ac_status=$?
8029    cat out/conftest.err >&5
8030    echo "$as_me:8030: \$? = $ac_status" >&5
8031    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8032    then
8033      # The compiler can only warn and ignore the option if not recognized
8034      # So say no if there are warnings
8035      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8036      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8037      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8038        lt_cv_prog_compiler_c_o=yes
8039      fi
8040    fi
8041    chmod u+w . 2>&5
8042    $rm conftest*
8043    # SGI C++ compiler will create directory out/ii_files/ for
8044    # template instantiation
8045    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8046    $rm out/* && rmdir out
8047    cd ..
8048    rmdir conftest
8049    $rm conftest*
8050
8051 fi
8052 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8053 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8054
8055
8056 hard_links="nottested"
8057 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8058   # do not overwrite the value of need_locks provided by the user
8059   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8060 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8061   hard_links=yes
8062   $rm conftest*
8063   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8064   touch conftest.a
8065   ln conftest.a conftest.b 2>&5 || hard_links=no
8066   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8067   { echo "$as_me:$LINENO: result: $hard_links" >&5
8068 echo "${ECHO_T}$hard_links" >&6; }
8069   if test "$hard_links" = no; then
8070     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8071 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8072     need_locks=warn
8073   fi
8074 else
8075   need_locks=no
8076 fi
8077
8078 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8079 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8080
8081   runpath_var=
8082   allow_undefined_flag=
8083   enable_shared_with_static_runtimes=no
8084   archive_cmds=
8085   archive_expsym_cmds=
8086   old_archive_From_new_cmds=
8087   old_archive_from_expsyms_cmds=
8088   export_dynamic_flag_spec=
8089   whole_archive_flag_spec=
8090   thread_safe_flag_spec=
8091   hardcode_libdir_flag_spec=
8092   hardcode_libdir_flag_spec_ld=
8093   hardcode_libdir_separator=
8094   hardcode_direct=no
8095   hardcode_minus_L=no
8096   hardcode_shlibpath_var=unsupported
8097   link_all_deplibs=unknown
8098   hardcode_automatic=no
8099   module_cmds=
8100   module_expsym_cmds=
8101   always_export_symbols=no
8102   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8103   # include_expsyms should be a list of space-separated symbols to be *always*
8104   # included in the symbol list
8105   include_expsyms=
8106   # exclude_expsyms can be an extended regexp of symbols to exclude
8107   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8108   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8109   # as well as any symbol that contains `d'.
8110   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8111   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8112   # platforms (ab)use it in PIC code, but their linkers get confused if
8113   # the symbol is explicitly referenced.  Since portable code cannot
8114   # rely on this symbol name, it's probably fine to never include it in
8115   # preloaded symbol tables.
8116   extract_expsyms_cmds=
8117   # Just being paranoid about ensuring that cc_basename is set.
8118   for cc_temp in $compiler""; do
8119   case $cc_temp in
8120     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8121     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8122     \-*) ;;
8123     *) break;;
8124   esac
8125 done
8126 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8127
8128   case $host_os in
8129   cygwin* | mingw* | pw32*)
8130     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8131     # When not using gcc, we currently assume that we are using
8132     # Microsoft Visual C++.
8133     if test "$GCC" != yes; then
8134       with_gnu_ld=no
8135     fi
8136     ;;
8137   interix*)
8138     # we just hope/assume this is gcc and not c89 (= MSVC++)
8139     with_gnu_ld=yes
8140     ;;
8141   openbsd*)
8142     with_gnu_ld=no
8143     ;;
8144   esac
8145
8146   ld_shlibs=yes
8147   if test "$with_gnu_ld" = yes; then
8148     # If archive_cmds runs LD, not CC, wlarc should be empty
8149     wlarc='${wl}'
8150
8151     # Set some defaults for GNU ld with shared library support. These
8152     # are reset later if shared libraries are not supported. Putting them
8153     # here allows them to be overridden if necessary.
8154     runpath_var=LD_RUN_PATH
8155     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8156     export_dynamic_flag_spec='${wl}--export-dynamic'
8157     # ancient GNU ld didn't support --whole-archive et. al.
8158     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8159         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8160       else
8161         whole_archive_flag_spec=
8162     fi
8163     supports_anon_versioning=no
8164     case `$LD -v 2>/dev/null` in
8165       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8166       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8167       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8168       *\ 2.11.*) ;; # other 2.11 versions
8169       *) supports_anon_versioning=yes ;;
8170     esac
8171
8172     # See if GNU ld supports shared libraries.
8173     case $host_os in
8174     aix3* | aix4* | aix5*)
8175       # On AIX/PPC, the GNU linker is very broken
8176       if test "$host_cpu" != ia64; then
8177         ld_shlibs=no
8178         cat <<EOF 1>&2
8179
8180 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8181 *** to be unable to reliably create shared libraries on AIX.
8182 *** Therefore, libtool is disabling shared libraries support.  If you
8183 *** really care for shared libraries, you may want to modify your PATH
8184 *** so that a non-GNU linker is found, and then restart.
8185
8186 EOF
8187       fi
8188       ;;
8189
8190     amigaos*)
8191       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)'
8192       hardcode_libdir_flag_spec='-L$libdir'
8193       hardcode_minus_L=yes
8194
8195       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8196       # that the semantics of dynamic libraries on AmigaOS, at least up
8197       # to version 4, is to share data among multiple programs linked
8198       # with the same dynamic library.  Since this doesn't match the
8199       # behavior of shared libraries on other platforms, we can't use
8200       # them.
8201       ld_shlibs=no
8202       ;;
8203
8204     beos*)
8205       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8206         allow_undefined_flag=unsupported
8207         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8208         # support --undefined.  This deserves some investigation.  FIXME
8209         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8210       else
8211         ld_shlibs=no
8212       fi
8213       ;;
8214
8215     cygwin* | mingw* | pw32*)
8216       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8217       # as there is no search path for DLLs.
8218       hardcode_libdir_flag_spec='-L$libdir'
8219       allow_undefined_flag=unsupported
8220       always_export_symbols=no
8221       enable_shared_with_static_runtimes=yes
8222       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8223
8224       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8225         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8226         # If the export-symbols file already is a .def file (1st line
8227         # is EXPORTS), use it as is; otherwise, prepend...
8228         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8229           cp $export_symbols $output_objdir/$soname.def;
8230         else
8231           echo EXPORTS > $output_objdir/$soname.def;
8232           cat $export_symbols >> $output_objdir/$soname.def;
8233         fi~
8234         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8235       else
8236         ld_shlibs=no
8237       fi
8238       ;;
8239
8240     interix[3-9]*)
8241       hardcode_direct=no
8242       hardcode_shlibpath_var=no
8243       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8244       export_dynamic_flag_spec='${wl}-E'
8245       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8246       # Instead, shared libraries are loaded at an image base (0x10000000 by
8247       # default) and relocated if they conflict, which is a slow very memory
8248       # consuming and fragmenting process.  To avoid this, we pick a random,
8249       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8250       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8251       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8252       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'
8253       ;;
8254
8255     gnu* | linux* | k*bsd*-gnu)
8256       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8257         tmp_addflag=
8258         case $cc_basename,$host_cpu in
8259         pgcc*)                          # Portland Group C compiler
8260           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'
8261           tmp_addflag=' $pic_flag'
8262           ;;
8263         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8264           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'
8265           tmp_addflag=' $pic_flag -Mnomain' ;;
8266         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8267           tmp_addflag=' -i_dynamic' ;;
8268         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8269           tmp_addflag=' -i_dynamic -nofor_main' ;;
8270         ifc* | ifort*)                  # Intel Fortran compiler
8271           tmp_addflag=' -nofor_main' ;;
8272         esac
8273         case `$CC -V 2>&1 | sed 5q` in
8274         *Sun\ C*)                       # Sun C 5.9
8275           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8276           tmp_sharedflag='-G' ;;
8277         *Sun\ F*)                       # Sun Fortran 8.3
8278           tmp_sharedflag='-G' ;;
8279         *)
8280           tmp_sharedflag='-shared' ;;
8281         esac
8282         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8283
8284         if test $supports_anon_versioning = yes; then
8285           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8286   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8287   $echo "local: *; };" >> $output_objdir/$libname.ver~
8288           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8289         fi
8290       else
8291         ld_shlibs=no
8292       fi
8293       ;;
8294
8295     netbsd*)
8296       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8297         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8298         wlarc=
8299       else
8300         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8301         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8302       fi
8303       ;;
8304
8305     solaris*)
8306       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8307         ld_shlibs=no
8308         cat <<EOF 1>&2
8309
8310 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8311 *** create shared libraries on Solaris systems.  Therefore, libtool
8312 *** is disabling shared libraries support.  We urge you to upgrade GNU
8313 *** binutils to release 2.9.1 or newer.  Another option is to modify
8314 *** your PATH or compiler configuration so that the native linker is
8315 *** used, and then restart.
8316
8317 EOF
8318       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8319         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8320         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8321       else
8322         ld_shlibs=no
8323       fi
8324       ;;
8325
8326     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8327       case `$LD -v 2>&1` in
8328         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8329         ld_shlibs=no
8330         cat <<_LT_EOF 1>&2
8331
8332 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8333 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8334 *** is disabling shared libraries support.  We urge you to upgrade GNU
8335 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8336 *** your PATH or compiler configuration so that the native linker is
8337 *** used, and then restart.
8338
8339 _LT_EOF
8340         ;;
8341         *)
8342           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8343             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8344             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8345             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8346           else
8347             ld_shlibs=no
8348           fi
8349         ;;
8350       esac
8351       ;;
8352
8353     sunos4*)
8354       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8355       wlarc=
8356       hardcode_direct=yes
8357       hardcode_shlibpath_var=no
8358       ;;
8359
8360     *)
8361       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8362         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8363         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8364       else
8365         ld_shlibs=no
8366       fi
8367       ;;
8368     esac
8369
8370     if test "$ld_shlibs" = no; then
8371       runpath_var=
8372       hardcode_libdir_flag_spec=
8373       export_dynamic_flag_spec=
8374       whole_archive_flag_spec=
8375     fi
8376   else
8377     # PORTME fill in a description of your system's linker (not GNU ld)
8378     case $host_os in
8379     aix3*)
8380       allow_undefined_flag=unsupported
8381       always_export_symbols=yes
8382       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'
8383       # Note: this linker hardcodes the directories in LIBPATH if there
8384       # are no directories specified by -L.
8385       hardcode_minus_L=yes
8386       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8387         # Neither direct hardcoding nor static linking is supported with a
8388         # broken collect2.
8389         hardcode_direct=unsupported
8390       fi
8391       ;;
8392
8393     aix4* | aix5*)
8394       if test "$host_cpu" = ia64; then
8395         # On IA64, the linker does run time linking by default, so we don't
8396         # have to do anything special.
8397         aix_use_runtimelinking=no
8398         exp_sym_flag='-Bexport'
8399         no_entry_flag=""
8400       else
8401         # If we're using GNU nm, then we don't want the "-C" option.
8402         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8403         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8404           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'
8405         else
8406           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'
8407         fi
8408         aix_use_runtimelinking=no
8409
8410         # Test if we are trying to use run time linking or normal
8411         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8412         # need to do runtime linking.
8413         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8414           for ld_flag in $LDFLAGS; do
8415           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8416             aix_use_runtimelinking=yes
8417             break
8418           fi
8419           done
8420           ;;
8421         esac
8422
8423         exp_sym_flag='-bexport'
8424         no_entry_flag='-bnoentry'
8425       fi
8426
8427       # When large executables or shared objects are built, AIX ld can
8428       # have problems creating the table of contents.  If linking a library
8429       # or program results in "error TOC overflow" add -mminimal-toc to
8430       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8431       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8432
8433       archive_cmds=''
8434       hardcode_direct=yes
8435       hardcode_libdir_separator=':'
8436       link_all_deplibs=yes
8437
8438       if test "$GCC" = yes; then
8439         case $host_os in aix4.[012]|aix4.[012].*)
8440         # We only want to do this on AIX 4.2 and lower, the check
8441         # below for broken collect2 doesn't work under 4.3+
8442           collect2name=`${CC} -print-prog-name=collect2`
8443           if test -f "$collect2name" && \
8444            strings "$collect2name" | grep resolve_lib_name >/dev/null
8445           then
8446           # We have reworked collect2
8447           :
8448           else
8449           # We have old collect2
8450           hardcode_direct=unsupported
8451           # It fails to find uninstalled libraries when the uninstalled
8452           # path is not listed in the libpath.  Setting hardcode_minus_L
8453           # to unsupported forces relinking
8454           hardcode_minus_L=yes
8455           hardcode_libdir_flag_spec='-L$libdir'
8456           hardcode_libdir_separator=
8457           fi
8458           ;;
8459         esac
8460         shared_flag='-shared'
8461         if test "$aix_use_runtimelinking" = yes; then
8462           shared_flag="$shared_flag "'${wl}-G'
8463         fi
8464       else
8465         # not using gcc
8466         if test "$host_cpu" = ia64; then
8467         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8468         # chokes on -Wl,-G. The following line is correct:
8469           shared_flag='-G'
8470         else
8471           if test "$aix_use_runtimelinking" = yes; then
8472             shared_flag='${wl}-G'
8473           else
8474             shared_flag='${wl}-bM:SRE'
8475           fi
8476         fi
8477       fi
8478
8479       # It seems that -bexpall does not export symbols beginning with
8480       # underscore (_), so it is better to generate a list of symbols to export.
8481       always_export_symbols=yes
8482       if test "$aix_use_runtimelinking" = yes; then
8483         # Warning - without using the other runtime loading flags (-brtl),
8484         # -berok will link without error, but may produce a broken library.
8485         allow_undefined_flag='-berok'
8486        # Determine the default libpath from the value encoded in an empty executable.
8487        cat >conftest.$ac_ext <<_ACEOF
8488 /* confdefs.h.  */
8489 _ACEOF
8490 cat confdefs.h >>conftest.$ac_ext
8491 cat >>conftest.$ac_ext <<_ACEOF
8492 /* end confdefs.h.  */
8493
8494 int
8495 main ()
8496 {
8497
8498   ;
8499   return 0;
8500 }
8501 _ACEOF
8502 rm -f conftest.$ac_objext conftest$ac_exeext
8503 if { (ac_try="$ac_link"
8504 case "(($ac_try" in
8505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8506   *) ac_try_echo=$ac_try;;
8507 esac
8508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8509   (eval "$ac_link") 2>conftest.er1
8510   ac_status=$?
8511   grep -v '^ *+' conftest.er1 >conftest.err
8512   rm -f conftest.er1
8513   cat conftest.err >&5
8514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8515   (exit $ac_status); } && {
8516          test -z "$ac_c_werror_flag" ||
8517          test ! -s conftest.err
8518        } && test -s conftest$ac_exeext &&
8519        $as_test_x conftest$ac_exeext; then
8520
8521 lt_aix_libpath_sed='
8522     /Import File Strings/,/^$/ {
8523         /^0/ {
8524             s/^0  *\(.*\)$/\1/
8525             p
8526         }
8527     }'
8528 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8529 # Check for a 64-bit object if we didn't find anything.
8530 if test -z "$aix_libpath"; then
8531   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8532 fi
8533 else
8534   echo "$as_me: failed program was:" >&5
8535 sed 's/^/| /' conftest.$ac_ext >&5
8536
8537
8538 fi
8539
8540 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8541       conftest$ac_exeext conftest.$ac_ext
8542 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8543
8544        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8545         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"
8546        else
8547         if test "$host_cpu" = ia64; then
8548           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8549           allow_undefined_flag="-z nodefs"
8550           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"
8551         else
8552          # Determine the default libpath from the value encoded in an empty executable.
8553          cat >conftest.$ac_ext <<_ACEOF
8554 /* confdefs.h.  */
8555 _ACEOF
8556 cat confdefs.h >>conftest.$ac_ext
8557 cat >>conftest.$ac_ext <<_ACEOF
8558 /* end confdefs.h.  */
8559
8560 int
8561 main ()
8562 {
8563
8564   ;
8565   return 0;
8566 }
8567 _ACEOF
8568 rm -f conftest.$ac_objext conftest$ac_exeext
8569 if { (ac_try="$ac_link"
8570 case "(($ac_try" in
8571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8572   *) ac_try_echo=$ac_try;;
8573 esac
8574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8575   (eval "$ac_link") 2>conftest.er1
8576   ac_status=$?
8577   grep -v '^ *+' conftest.er1 >conftest.err
8578   rm -f conftest.er1
8579   cat conftest.err >&5
8580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8581   (exit $ac_status); } && {
8582          test -z "$ac_c_werror_flag" ||
8583          test ! -s conftest.err
8584        } && test -s conftest$ac_exeext &&
8585        $as_test_x conftest$ac_exeext; then
8586
8587 lt_aix_libpath_sed='
8588     /Import File Strings/,/^$/ {
8589         /^0/ {
8590             s/^0  *\(.*\)$/\1/
8591             p
8592         }
8593     }'
8594 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8595 # Check for a 64-bit object if we didn't find anything.
8596 if test -z "$aix_libpath"; then
8597   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8598 fi
8599 else
8600   echo "$as_me: failed program was:" >&5
8601 sed 's/^/| /' conftest.$ac_ext >&5
8602
8603
8604 fi
8605
8606 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8607       conftest$ac_exeext conftest.$ac_ext
8608 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8609
8610          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8611           # Warning - without using the other run time loading flags,
8612           # -berok will link without error, but may produce a broken library.
8613           no_undefined_flag=' ${wl}-bernotok'
8614           allow_undefined_flag=' ${wl}-berok'
8615           # Exported symbols can be pulled into shared objects from archives
8616           whole_archive_flag_spec='$convenience'
8617           archive_cmds_need_lc=yes
8618           # This is similar to how AIX traditionally builds its shared libraries.
8619           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'
8620         fi
8621       fi
8622       ;;
8623
8624     amigaos*)
8625       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)'
8626       hardcode_libdir_flag_spec='-L$libdir'
8627       hardcode_minus_L=yes
8628       # see comment about different semantics on the GNU ld section
8629       ld_shlibs=no
8630       ;;
8631
8632     bsdi[45]*)
8633       export_dynamic_flag_spec=-rdynamic
8634       ;;
8635
8636     cygwin* | mingw* | pw32*)
8637       # When not using gcc, we currently assume that we are using
8638       # Microsoft Visual C++.
8639       # hardcode_libdir_flag_spec is actually meaningless, as there is
8640       # no search path for DLLs.
8641       hardcode_libdir_flag_spec=' '
8642       allow_undefined_flag=unsupported
8643       # Tell ltmain to make .lib files, not .a files.
8644       libext=lib
8645       # Tell ltmain to make .dll files, not .so files.
8646       shrext_cmds=".dll"
8647       # FIXME: Setting linknames here is a bad hack.
8648       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8649       # The linker will automatically build a .lib file if we build a DLL.
8650       old_archive_From_new_cmds='true'
8651       # FIXME: Should let the user specify the lib program.
8652       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8653       fix_srcfile_path='`cygpath -w "$srcfile"`'
8654       enable_shared_with_static_runtimes=yes
8655       ;;
8656
8657     darwin* | rhapsody*)
8658       case $host_os in
8659         rhapsody* | darwin1.[012])
8660          allow_undefined_flag='${wl}-undefined ${wl}suppress'
8661          ;;
8662        *) # Darwin 1.3 on
8663          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8664            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8665          else
8666            case ${MACOSX_DEPLOYMENT_TARGET} in
8667              10.[012])
8668                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8669                ;;
8670              10.*)
8671                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8672                ;;
8673            esac
8674          fi
8675          ;;
8676       esac
8677       archive_cmds_need_lc=no
8678       hardcode_direct=no
8679       hardcode_automatic=yes
8680       hardcode_shlibpath_var=unsupported
8681       whole_archive_flag_spec=''
8682       link_all_deplibs=yes
8683     if test "$GCC" = yes ; then
8684         output_verbose_link_cmd='echo'
8685         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8686       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8687       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8688       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}'
8689       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}'
8690     else
8691       case $cc_basename in
8692         xlc*)
8693          output_verbose_link_cmd='echo'
8694          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8695          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8696           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8697          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8698           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}'
8699           ;;
8700        *)
8701          ld_shlibs=no
8702           ;;
8703       esac
8704     fi
8705       ;;
8706
8707     dgux*)
8708       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8709       hardcode_libdir_flag_spec='-L$libdir'
8710       hardcode_shlibpath_var=no
8711       ;;
8712
8713     freebsd1*)
8714       ld_shlibs=no
8715       ;;
8716
8717     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8718     # support.  Future versions do this automatically, but an explicit c++rt0.o
8719     # does not break anything, and helps significantly (at the cost of a little
8720     # extra space).
8721     freebsd2.2*)
8722       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8723       hardcode_libdir_flag_spec='-R$libdir'
8724       hardcode_direct=yes
8725       hardcode_shlibpath_var=no
8726       ;;
8727
8728     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8729     freebsd2*)
8730       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8731       hardcode_direct=yes
8732       hardcode_minus_L=yes
8733       hardcode_shlibpath_var=no
8734       ;;
8735
8736     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8737     freebsd* | dragonfly*)
8738       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8739       hardcode_libdir_flag_spec='-R$libdir'
8740       hardcode_direct=yes
8741       hardcode_shlibpath_var=no
8742       ;;
8743
8744     hpux9*)
8745       if test "$GCC" = yes; then
8746         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'
8747       else
8748         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'
8749       fi
8750       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8751       hardcode_libdir_separator=:
8752       hardcode_direct=yes
8753
8754       # hardcode_minus_L: Not really in the search PATH,
8755       # but as the default location of the library.
8756       hardcode_minus_L=yes
8757       export_dynamic_flag_spec='${wl}-E'
8758       ;;
8759
8760     hpux10*)
8761       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8762         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8763       else
8764         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8765       fi
8766       if test "$with_gnu_ld" = no; then
8767         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8768         hardcode_libdir_separator=:
8769
8770         hardcode_direct=yes
8771         export_dynamic_flag_spec='${wl}-E'
8772
8773         # hardcode_minus_L: Not really in the search PATH,
8774         # but as the default location of the library.
8775         hardcode_minus_L=yes
8776       fi
8777       ;;
8778
8779     hpux11*)
8780       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8781         case $host_cpu in
8782         hppa*64*)
8783           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8784           ;;
8785         ia64*)
8786           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8787           ;;
8788         *)
8789           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8790           ;;
8791         esac
8792       else
8793         case $host_cpu in
8794         hppa*64*)
8795           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8796           ;;
8797         ia64*)
8798           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8799           ;;
8800         *)
8801           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8802           ;;
8803         esac
8804       fi
8805       if test "$with_gnu_ld" = no; then
8806         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8807         hardcode_libdir_separator=:
8808
8809         case $host_cpu in
8810         hppa*64*|ia64*)
8811           hardcode_libdir_flag_spec_ld='+b $libdir'
8812           hardcode_direct=no
8813           hardcode_shlibpath_var=no
8814           ;;
8815         *)
8816           hardcode_direct=yes
8817           export_dynamic_flag_spec='${wl}-E'
8818
8819           # hardcode_minus_L: Not really in the search PATH,
8820           # but as the default location of the library.
8821           hardcode_minus_L=yes
8822           ;;
8823         esac
8824       fi
8825       ;;
8826
8827     irix5* | irix6* | nonstopux*)
8828       if test "$GCC" = yes; then
8829         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'
8830       else
8831         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'
8832         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8833       fi
8834       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8835       hardcode_libdir_separator=:
8836       link_all_deplibs=yes
8837       ;;
8838
8839     netbsd*)
8840       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8841         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8842       else
8843         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8844       fi
8845       hardcode_libdir_flag_spec='-R$libdir'
8846       hardcode_direct=yes
8847       hardcode_shlibpath_var=no
8848       ;;
8849
8850     newsos6)
8851       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8852       hardcode_direct=yes
8853       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8854       hardcode_libdir_separator=:
8855       hardcode_shlibpath_var=no
8856       ;;
8857
8858     openbsd*)
8859       if test -f /usr/libexec/ld.so; then
8860         hardcode_direct=yes
8861         hardcode_shlibpath_var=no
8862         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8863           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8864           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8865           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8866           export_dynamic_flag_spec='${wl}-E'
8867         else
8868           case $host_os in
8869            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8870              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8871              hardcode_libdir_flag_spec='-R$libdir'
8872              ;;
8873            *)
8874              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8875              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8876              ;;
8877           esac
8878         fi
8879       else
8880         ld_shlibs=no
8881       fi
8882       ;;
8883
8884     os2*)
8885       hardcode_libdir_flag_spec='-L$libdir'
8886       hardcode_minus_L=yes
8887       allow_undefined_flag=unsupported
8888       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'
8889       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8890       ;;
8891
8892     osf3*)
8893       if test "$GCC" = yes; then
8894         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8895         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'
8896       else
8897         allow_undefined_flag=' -expect_unresolved \*'
8898         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'
8899       fi
8900       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8901       hardcode_libdir_separator=:
8902       ;;
8903
8904     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8905       if test "$GCC" = yes; then
8906         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8907         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'
8908         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8909       else
8910         allow_undefined_flag=' -expect_unresolved \*'
8911         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'
8912         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8913         $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'
8914
8915         # Both c and cxx compiler support -rpath directly
8916         hardcode_libdir_flag_spec='-rpath $libdir'
8917       fi
8918       hardcode_libdir_separator=:
8919       ;;
8920
8921     solaris*)
8922       no_undefined_flag=' -z text'
8923       if test "$GCC" = yes; then
8924         wlarc='${wl}'
8925         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8926         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8927           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8928       else
8929         wlarc=''
8930         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8931         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8932         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8933       fi
8934       hardcode_libdir_flag_spec='-R$libdir'
8935       hardcode_shlibpath_var=no
8936       case $host_os in
8937       solaris2.[0-5] | solaris2.[0-5].*) ;;
8938       *)
8939         # The compiler driver will combine and reorder linker options,
8940         # but understands `-z linker_flag'.  GCC discards it without `$wl',
8941         # but is careful enough not to reorder.
8942         # Supported since Solaris 2.6 (maybe 2.5.1?)
8943         if test "$GCC" = yes; then
8944           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8945         else
8946           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8947         fi
8948         ;;
8949       esac
8950       link_all_deplibs=yes
8951       ;;
8952
8953     sunos4*)
8954       if test "x$host_vendor" = xsequent; then
8955         # Use $CC to link under sequent, because it throws in some extra .o
8956         # files that make .init and .fini sections work.
8957         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8958       else
8959         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8960       fi
8961       hardcode_libdir_flag_spec='-L$libdir'
8962       hardcode_direct=yes
8963       hardcode_minus_L=yes
8964       hardcode_shlibpath_var=no
8965       ;;
8966
8967     sysv4)
8968       case $host_vendor in
8969         sni)
8970           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8971           hardcode_direct=yes # is this really true???
8972         ;;
8973         siemens)
8974           ## LD is ld it makes a PLAMLIB
8975           ## CC just makes a GrossModule.
8976           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8977           reload_cmds='$CC -r -o $output$reload_objs'
8978           hardcode_direct=no
8979         ;;
8980         motorola)
8981           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8982           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8983         ;;
8984       esac
8985       runpath_var='LD_RUN_PATH'
8986       hardcode_shlibpath_var=no
8987       ;;
8988
8989     sysv4.3*)
8990       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8991       hardcode_shlibpath_var=no
8992       export_dynamic_flag_spec='-Bexport'
8993       ;;
8994
8995     sysv4*MP*)
8996       if test -d /usr/nec; then
8997         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8998         hardcode_shlibpath_var=no
8999         runpath_var=LD_RUN_PATH
9000         hardcode_runpath_var=yes
9001         ld_shlibs=yes
9002       fi
9003       ;;
9004
9005     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9006       no_undefined_flag='${wl}-z,text'
9007       archive_cmds_need_lc=no
9008       hardcode_shlibpath_var=no
9009       runpath_var='LD_RUN_PATH'
9010
9011       if test "$GCC" = yes; then
9012         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9013         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9014       else
9015         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9016         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9017       fi
9018       ;;
9019
9020     sysv5* | sco3.2v5* | sco5v6*)
9021       # Note: We can NOT use -z defs as we might desire, because we do not
9022       # link with -lc, and that would cause any symbols used from libc to
9023       # always be unresolved, which means just about no library would
9024       # ever link correctly.  If we're not using GNU ld we use -z text
9025       # though, which does catch some bad symbols but isn't as heavy-handed
9026       # as -z defs.
9027       no_undefined_flag='${wl}-z,text'
9028       allow_undefined_flag='${wl}-z,nodefs'
9029       archive_cmds_need_lc=no
9030       hardcode_shlibpath_var=no
9031       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9032       hardcode_libdir_separator=':'
9033       link_all_deplibs=yes
9034       export_dynamic_flag_spec='${wl}-Bexport'
9035       runpath_var='LD_RUN_PATH'
9036
9037       if test "$GCC" = yes; then
9038         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9039         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9040       else
9041         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9042         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9043       fi
9044       ;;
9045
9046     uts4*)
9047       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9048       hardcode_libdir_flag_spec='-L$libdir'
9049       hardcode_shlibpath_var=no
9050       ;;
9051
9052     *)
9053       ld_shlibs=no
9054       ;;
9055     esac
9056   fi
9057
9058 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9059 echo "${ECHO_T}$ld_shlibs" >&6; }
9060 test "$ld_shlibs" = no && can_build_shared=no
9061
9062 #
9063 # Do we need to explicitly link libc?
9064 #
9065 case "x$archive_cmds_need_lc" in
9066 x|xyes)
9067   # Assume -lc should be added
9068   archive_cmds_need_lc=yes
9069
9070   if test "$enable_shared" = yes && test "$GCC" = yes; then
9071     case $archive_cmds in
9072     *'~'*)
9073       # FIXME: we may have to deal with multi-command sequences.
9074       ;;
9075     '$CC '*)
9076       # Test whether the compiler implicitly links with -lc since on some
9077       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9078       # to ld, don't add -lc before -lgcc.
9079       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9080 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9081       $rm conftest*
9082       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9083
9084       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9085   (eval $ac_compile) 2>&5
9086   ac_status=$?
9087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9088   (exit $ac_status); } 2>conftest.err; then
9089         soname=conftest
9090         lib=conftest
9091         libobjs=conftest.$ac_objext
9092         deplibs=
9093         wl=$lt_prog_compiler_wl
9094         pic_flag=$lt_prog_compiler_pic
9095         compiler_flags=-v
9096         linker_flags=-v
9097         verstring=
9098         output_objdir=.
9099         libname=conftest
9100         lt_save_allow_undefined_flag=$allow_undefined_flag
9101         allow_undefined_flag=
9102         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9103   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9104   ac_status=$?
9105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9106   (exit $ac_status); }
9107         then
9108           archive_cmds_need_lc=no
9109         else
9110           archive_cmds_need_lc=yes
9111         fi
9112         allow_undefined_flag=$lt_save_allow_undefined_flag
9113       else
9114         cat conftest.err 1>&5
9115       fi
9116       $rm conftest*
9117       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9118 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9119       ;;
9120     esac
9121   fi
9122   ;;
9123 esac
9124
9125 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9126 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9127 library_names_spec=
9128 libname_spec='lib$name'
9129 soname_spec=
9130 shrext_cmds=".so"
9131 postinstall_cmds=
9132 postuninstall_cmds=
9133 finish_cmds=
9134 finish_eval=
9135 shlibpath_var=
9136 shlibpath_overrides_runpath=unknown
9137 version_type=none
9138 dynamic_linker="$host_os ld.so"
9139 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9140
9141 if test "$GCC" = yes; then
9142   case $host_os in
9143     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9144     *) lt_awk_arg="/^libraries:/" ;;
9145   esac
9146   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9147   if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9148     # if the path contains ";" then we assume it to be the separator
9149     # otherwise default to the standard path separator (i.e. ":") - it is
9150     # assumed that no part of a normal pathname contains ";" but that should
9151     # okay in the real world where ";" in dirpaths is itself problematic.
9152     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9153   else
9154     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9155   fi
9156   # Ok, now we have the path, separated by spaces, we can step through it
9157   # and add multilib dir if necessary.
9158   lt_tmp_lt_search_path_spec=
9159   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9160   for lt_sys_path in $lt_search_path_spec; do
9161     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9162       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9163     else
9164       test -d "$lt_sys_path" && \
9165         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9166     fi
9167   done
9168   lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9169 BEGIN {RS=" "; FS="/|\n";} {
9170   lt_foo="";
9171   lt_count=0;
9172   for (lt_i = NF; lt_i > 0; lt_i--) {
9173     if ($lt_i != "" && $lt_i != ".") {
9174       if ($lt_i == "..") {
9175         lt_count++;
9176       } else {
9177         if (lt_count == 0) {
9178           lt_foo="/" $lt_i lt_foo;
9179         } else {
9180           lt_count--;
9181         }
9182       }
9183     }
9184   }
9185   if (lt_foo != "") { lt_freq[lt_foo]++; }
9186   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9187 }'`
9188   sys_lib_search_path_spec=`echo $lt_search_path_spec`
9189 else
9190   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9191 fi
9192 need_lib_prefix=no
9193 hardcode_into_libs=no
9194
9195 # when you set need_version to no, make sure it does not cause -set_version
9196 # flags to be left without arguments
9197 need_version=no
9198
9199 case $host_os in
9200 aix3*)
9201   version_type=linux
9202   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9203   shlibpath_var=LIBPATH
9204
9205   # AIX 3 has no versioning support, so we append a major version to the name.
9206   soname_spec='${libname}${release}${shared_ext}$major'
9207   ;;
9208
9209 aix4* | aix5*)
9210   version_type=linux
9211   need_lib_prefix=no
9212   need_version=no
9213   hardcode_into_libs=yes
9214   if test "$host_cpu" = ia64; then
9215     # AIX 5 supports IA64
9216     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9217     shlibpath_var=LD_LIBRARY_PATH
9218   else
9219     # With GCC up to 2.95.x, collect2 would create an import file
9220     # for dependence libraries.  The import file would start with
9221     # the line `#! .'.  This would cause the generated library to
9222     # depend on `.', always an invalid library.  This was fixed in
9223     # development snapshots of GCC prior to 3.0.
9224     case $host_os in
9225       aix4 | aix4.[01] | aix4.[01].*)
9226       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9227            echo ' yes '
9228            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9229         :
9230       else
9231         can_build_shared=no
9232       fi
9233       ;;
9234     esac
9235     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9236     # soname into executable. Probably we can add versioning support to
9237     # collect2, so additional links can be useful in future.
9238     if test "$aix_use_runtimelinking" = yes; then
9239       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9240       # instead of lib<name>.a to let people know that these are not
9241       # typical AIX shared libraries.
9242       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9243     else
9244       # We preserve .a as extension for shared libraries through AIX4.2
9245       # and later when we are not doing run time linking.
9246       library_names_spec='${libname}${release}.a $libname.a'
9247       soname_spec='${libname}${release}${shared_ext}$major'
9248     fi
9249     shlibpath_var=LIBPATH
9250   fi
9251   ;;
9252
9253 amigaos*)
9254   library_names_spec='$libname.ixlibrary $libname.a'
9255   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9256   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'
9257   ;;
9258
9259 beos*)
9260   library_names_spec='${libname}${shared_ext}'
9261   dynamic_linker="$host_os ld.so"
9262   shlibpath_var=LIBRARY_PATH
9263   ;;
9264
9265 bsdi[45]*)
9266   version_type=linux
9267   need_version=no
9268   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9269   soname_spec='${libname}${release}${shared_ext}$major'
9270   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9271   shlibpath_var=LD_LIBRARY_PATH
9272   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9273   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9274   # the default ld.so.conf also contains /usr/contrib/lib and
9275   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9276   # libtool to hard-code these into programs
9277   ;;
9278
9279 cygwin* | mingw* | pw32*)
9280   version_type=windows
9281   shrext_cmds=".dll"
9282   need_version=no
9283   need_lib_prefix=no
9284
9285   case $GCC,$host_os in
9286   yes,cygwin* | yes,mingw* | yes,pw32*)
9287     library_names_spec='$libname.dll.a'
9288     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9289     postinstall_cmds='base_file=`basename \${file}`~
9290       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9291       dldir=$destdir/`dirname \$dlpath`~
9292       test -d \$dldir || mkdir -p \$dldir~
9293       $install_prog $dir/$dlname \$dldir/$dlname~
9294       chmod a+x \$dldir/$dlname'
9295     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9296       dlpath=$dir/\$dldll~
9297        $rm \$dlpath'
9298     shlibpath_overrides_runpath=yes
9299
9300     case $host_os in
9301     cygwin*)
9302       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9303       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9304       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9305       ;;
9306     mingw*)
9307       # MinGW DLLs use traditional 'lib' prefix
9308       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9309       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9310       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9311         # It is most probably a Windows format PATH printed by
9312         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9313         # path with ; separators, and with drive letters. We can handle the
9314         # drive letters (cygwin fileutils understands them), so leave them,
9315         # especially as we might pass files found there to a mingw objdump,
9316         # which wouldn't understand a cygwinified path. Ahh.
9317         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9318       else
9319         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9320       fi
9321       ;;
9322     pw32*)
9323       # pw32 DLLs use 'pw' prefix rather than 'lib'
9324       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9325       ;;
9326     esac
9327     ;;
9328
9329   *)
9330     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9331     ;;
9332   esac
9333   dynamic_linker='Win32 ld.exe'
9334   # FIXME: first we should search . and the directory the executable is in
9335   shlibpath_var=PATH
9336   ;;
9337
9338 darwin* | rhapsody*)
9339   dynamic_linker="$host_os dyld"
9340   version_type=darwin
9341   need_lib_prefix=no
9342   need_version=no
9343   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9344   soname_spec='${libname}${release}${major}$shared_ext'
9345   shlibpath_overrides_runpath=yes
9346   shlibpath_var=DYLD_LIBRARY_PATH
9347   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9348
9349   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9350   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9351   ;;
9352
9353 dgux*)
9354   version_type=linux
9355   need_lib_prefix=no
9356   need_version=no
9357   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9358   soname_spec='${libname}${release}${shared_ext}$major'
9359   shlibpath_var=LD_LIBRARY_PATH
9360   ;;
9361
9362 freebsd1*)
9363   dynamic_linker=no
9364   ;;
9365
9366 freebsd* | dragonfly*)
9367   # DragonFly does not have aout.  When/if they implement a new
9368   # versioning mechanism, adjust this.
9369   if test -x /usr/bin/objformat; then
9370     objformat=`/usr/bin/objformat`
9371   else
9372     case $host_os in
9373     freebsd[123]*) objformat=aout ;;
9374     *) objformat=elf ;;
9375     esac
9376   fi
9377   version_type=freebsd-$objformat
9378   case $version_type in
9379     freebsd-elf*)
9380       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9381       need_version=no
9382       need_lib_prefix=no
9383       ;;
9384     freebsd-*)
9385       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9386       need_version=no
9387       ;;
9388   esac
9389   shlibpath_var=LD_LIBRARY_PATH
9390   case $host_os in
9391   freebsd2*)
9392     shlibpath_overrides_runpath=yes
9393     ;;
9394   freebsd3.[01]* | freebsdelf3.[01]*)
9395     shlibpath_overrides_runpath=yes
9396     hardcode_into_libs=yes
9397     ;;
9398   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9399   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9400     shlibpath_overrides_runpath=no
9401     hardcode_into_libs=yes
9402     ;;
9403   *) # from 4.6 on, and DragonFly
9404     shlibpath_overrides_runpath=yes
9405     hardcode_into_libs=yes
9406     ;;
9407   esac
9408   ;;
9409
9410 gnu*)
9411   version_type=linux
9412   need_lib_prefix=no
9413   need_version=no
9414   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9415   soname_spec='${libname}${release}${shared_ext}$major'
9416   shlibpath_var=LD_LIBRARY_PATH
9417   hardcode_into_libs=yes
9418   ;;
9419
9420 hpux9* | hpux10* | hpux11*)
9421   # Give a soname corresponding to the major version so that dld.sl refuses to
9422   # link against other versions.
9423   version_type=sunos
9424   need_lib_prefix=no
9425   need_version=no
9426   case $host_cpu in
9427   ia64*)
9428     shrext_cmds='.so'
9429     hardcode_into_libs=yes
9430     dynamic_linker="$host_os dld.so"
9431     shlibpath_var=LD_LIBRARY_PATH
9432     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9433     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9434     soname_spec='${libname}${release}${shared_ext}$major'
9435     if test "X$HPUX_IA64_MODE" = X32; then
9436       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9437     else
9438       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9439     fi
9440     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9441     ;;
9442    hppa*64*)
9443      shrext_cmds='.sl'
9444      hardcode_into_libs=yes
9445      dynamic_linker="$host_os dld.sl"
9446      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9447      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9448      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9449      soname_spec='${libname}${release}${shared_ext}$major'
9450      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9451      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9452      ;;
9453    *)
9454     shrext_cmds='.sl'
9455     dynamic_linker="$host_os dld.sl"
9456     shlibpath_var=SHLIB_PATH
9457     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9458     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9459     soname_spec='${libname}${release}${shared_ext}$major'
9460     ;;
9461   esac
9462   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9463   postinstall_cmds='chmod 555 $lib'
9464   ;;
9465
9466 interix[3-9]*)
9467   version_type=linux
9468   need_lib_prefix=no
9469   need_version=no
9470   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9471   soname_spec='${libname}${release}${shared_ext}$major'
9472   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9473   shlibpath_var=LD_LIBRARY_PATH
9474   shlibpath_overrides_runpath=no
9475   hardcode_into_libs=yes
9476   ;;
9477
9478 irix5* | irix6* | nonstopux*)
9479   case $host_os in
9480     nonstopux*) version_type=nonstopux ;;
9481     *)
9482         if test "$lt_cv_prog_gnu_ld" = yes; then
9483                 version_type=linux
9484         else
9485                 version_type=irix
9486         fi ;;
9487   esac
9488   need_lib_prefix=no
9489   need_version=no
9490   soname_spec='${libname}${release}${shared_ext}$major'
9491   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9492   case $host_os in
9493   irix5* | nonstopux*)
9494     libsuff= shlibsuff=
9495     ;;
9496   *)
9497     case $LD in # libtool.m4 will add one of these switches to LD
9498     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9499       libsuff= shlibsuff= libmagic=32-bit;;
9500     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9501       libsuff=32 shlibsuff=N32 libmagic=N32;;
9502     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9503       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9504     *) libsuff= shlibsuff= libmagic=never-match;;
9505     esac
9506     ;;
9507   esac
9508   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9509   shlibpath_overrides_runpath=no
9510   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9511   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9512   hardcode_into_libs=yes
9513   ;;
9514
9515 # No shared lib support for Linux oldld, aout, or coff.
9516 linux*oldld* | linux*aout* | linux*coff*)
9517   dynamic_linker=no
9518   ;;
9519
9520 # This must be Linux ELF.
9521 linux* | k*bsd*-gnu)
9522   version_type=linux
9523   need_lib_prefix=no
9524   need_version=no
9525   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9526   soname_spec='${libname}${release}${shared_ext}$major'
9527   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9528   shlibpath_var=LD_LIBRARY_PATH
9529   shlibpath_overrides_runpath=no
9530   # This implies no fast_install, which is unacceptable.
9531   # Some rework will be needed to allow for fast_install
9532   # before this can be enabled.
9533   hardcode_into_libs=yes
9534
9535   # Append ld.so.conf contents to the search path
9536   if test -f /etc/ld.so.conf; then
9537     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9538     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9539   fi
9540
9541   # We used to test for /lib/ld.so.1 and disable shared libraries on
9542   # powerpc, because MkLinux only supported shared libraries with the
9543   # GNU dynamic linker.  Since this was broken with cross compilers,
9544   # most powerpc-linux boxes support dynamic linking these days and
9545   # people can always --disable-shared, the test was removed, and we
9546   # assume the GNU/Linux dynamic linker is in use.
9547   dynamic_linker='GNU/Linux ld.so'
9548   ;;
9549
9550 netbsd*)
9551   version_type=sunos
9552   need_lib_prefix=no
9553   need_version=no
9554   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9555     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9556     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9557     dynamic_linker='NetBSD (a.out) ld.so'
9558   else
9559     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9560     soname_spec='${libname}${release}${shared_ext}$major'
9561     dynamic_linker='NetBSD ld.elf_so'
9562   fi
9563   shlibpath_var=LD_LIBRARY_PATH
9564   shlibpath_overrides_runpath=yes
9565   hardcode_into_libs=yes
9566   ;;
9567
9568 newsos6)
9569   version_type=linux
9570   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9571   shlibpath_var=LD_LIBRARY_PATH
9572   shlibpath_overrides_runpath=yes
9573   ;;
9574
9575 nto-qnx*)
9576   version_type=linux
9577   need_lib_prefix=no
9578   need_version=no
9579   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9580   soname_spec='${libname}${release}${shared_ext}$major'
9581   shlibpath_var=LD_LIBRARY_PATH
9582   shlibpath_overrides_runpath=yes
9583   ;;
9584
9585 openbsd*)
9586   version_type=sunos
9587   sys_lib_dlsearch_path_spec="/usr/lib"
9588   need_lib_prefix=no
9589   need_version=no
9590   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9591   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9592   shlibpath_var=LD_LIBRARY_PATH
9593   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9594     case $host_os in
9595       openbsd2.[89] | openbsd2.[89].*)
9596         shlibpath_overrides_runpath=no
9597         ;;
9598       *)
9599         shlibpath_overrides_runpath=yes
9600         ;;
9601       esac
9602   else
9603     shlibpath_overrides_runpath=yes
9604   fi
9605   ;;
9606
9607 os2*)
9608   libname_spec='$name'
9609   shrext_cmds=".dll"
9610   need_lib_prefix=no
9611   library_names_spec='$libname${shared_ext} $libname.a'
9612   dynamic_linker='OS/2 ld.exe'
9613   shlibpath_var=LIBPATH
9614   ;;
9615
9616 osf3* | osf4* | osf5*)
9617   version_type=osf
9618   need_lib_prefix=no
9619   need_version=no
9620   soname_spec='${libname}${release}${shared_ext}$major'
9621   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9622   shlibpath_var=LD_LIBRARY_PATH
9623   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9624   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9625   ;;
9626
9627 rdos*)
9628   dynamic_linker=no
9629   ;;
9630
9631 solaris*)
9632   version_type=linux
9633   need_lib_prefix=no
9634   need_version=no
9635   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9636   soname_spec='${libname}${release}${shared_ext}$major'
9637   shlibpath_var=LD_LIBRARY_PATH
9638   shlibpath_overrides_runpath=yes
9639   hardcode_into_libs=yes
9640   # ldd complains unless libraries are executable
9641   postinstall_cmds='chmod +x $lib'
9642   ;;
9643
9644 sunos4*)
9645   version_type=sunos
9646   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9647   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9648   shlibpath_var=LD_LIBRARY_PATH
9649   shlibpath_overrides_runpath=yes
9650   if test "$with_gnu_ld" = yes; then
9651     need_lib_prefix=no
9652   fi
9653   need_version=no
9654   ;;
9655
9656 sysv4 | sysv4.3*)
9657   version_type=linux
9658   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9659   soname_spec='${libname}${release}${shared_ext}$major'
9660   shlibpath_var=LD_LIBRARY_PATH
9661   case $host_vendor in
9662     sni)
9663       shlibpath_overrides_runpath=no
9664       need_lib_prefix=no
9665       export_dynamic_flag_spec='${wl}-Blargedynsym'
9666       runpath_var=LD_RUN_PATH
9667       ;;
9668     siemens)
9669       need_lib_prefix=no
9670       ;;
9671     motorola)
9672       need_lib_prefix=no
9673       need_version=no
9674       shlibpath_overrides_runpath=no
9675       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9676       ;;
9677   esac
9678   ;;
9679
9680 sysv4*MP*)
9681   if test -d /usr/nec ;then
9682     version_type=linux
9683     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9684     soname_spec='$libname${shared_ext}.$major'
9685     shlibpath_var=LD_LIBRARY_PATH
9686   fi
9687   ;;
9688
9689 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9690   version_type=freebsd-elf
9691   need_lib_prefix=no
9692   need_version=no
9693   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9694   soname_spec='${libname}${release}${shared_ext}$major'
9695   shlibpath_var=LD_LIBRARY_PATH
9696   hardcode_into_libs=yes
9697   if test "$with_gnu_ld" = yes; then
9698     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9699     shlibpath_overrides_runpath=no
9700   else
9701     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9702     shlibpath_overrides_runpath=yes
9703     case $host_os in
9704       sco3.2v5*)
9705         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9706         ;;
9707     esac
9708   fi
9709   sys_lib_dlsearch_path_spec='/usr/lib'
9710   ;;
9711
9712 uts4*)
9713   version_type=linux
9714   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9715   soname_spec='${libname}${release}${shared_ext}$major'
9716   shlibpath_var=LD_LIBRARY_PATH
9717   ;;
9718
9719 *)
9720   dynamic_linker=no
9721   ;;
9722 esac
9723 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9724 echo "${ECHO_T}$dynamic_linker" >&6; }
9725 test "$dynamic_linker" = no && can_build_shared=no
9726
9727 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9728 if test "$GCC" = yes; then
9729   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9730 fi
9731
9732 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9733 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9734 hardcode_action=
9735 if test -n "$hardcode_libdir_flag_spec" || \
9736    test -n "$runpath_var" || \
9737    test "X$hardcode_automatic" = "Xyes" ; then
9738
9739   # We can hardcode non-existent directories.
9740   if test "$hardcode_direct" != no &&
9741      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9742      # have to relink, otherwise we might link with an installed library
9743      # when we should be linking with a yet-to-be-installed one
9744      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9745      test "$hardcode_minus_L" != no; then
9746     # Linking always hardcodes the temporary library directory.
9747     hardcode_action=relink
9748   else
9749     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9750     hardcode_action=immediate
9751   fi
9752 else
9753   # We cannot hardcode anything, or else we can only hardcode existing
9754   # directories.
9755   hardcode_action=unsupported
9756 fi
9757 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9758 echo "${ECHO_T}$hardcode_action" >&6; }
9759
9760 if test "$hardcode_action" = relink; then
9761   # Fast installation is not supported
9762   enable_fast_install=no
9763 elif test "$shlibpath_overrides_runpath" = yes ||
9764      test "$enable_shared" = no; then
9765   # Fast installation is not necessary
9766   enable_fast_install=needless
9767 fi
9768
9769 striplib=
9770 old_striplib=
9771 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9772 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9773 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9774   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9775   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9776   { echo "$as_me:$LINENO: result: yes" >&5
9777 echo "${ECHO_T}yes" >&6; }
9778 else
9779 # FIXME - insert some real tests, host_os isn't really good enough
9780   case $host_os in
9781    darwin*)
9782        if test -n "$STRIP" ; then
9783          striplib="$STRIP -x"
9784          old_striplib="$STRIP -S"
9785          { echo "$as_me:$LINENO: result: yes" >&5
9786 echo "${ECHO_T}yes" >&6; }
9787        else
9788   { echo "$as_me:$LINENO: result: no" >&5
9789 echo "${ECHO_T}no" >&6; }
9790 fi
9791        ;;
9792    *)
9793   { echo "$as_me:$LINENO: result: no" >&5
9794 echo "${ECHO_T}no" >&6; }
9795     ;;
9796   esac
9797 fi
9798
9799 if test "x$enable_dlopen" != xyes; then
9800   enable_dlopen=unknown
9801   enable_dlopen_self=unknown
9802   enable_dlopen_self_static=unknown
9803 else
9804   lt_cv_dlopen=no
9805   lt_cv_dlopen_libs=
9806
9807   case $host_os in
9808   beos*)
9809     lt_cv_dlopen="load_add_on"
9810     lt_cv_dlopen_libs=
9811     lt_cv_dlopen_self=yes
9812     ;;
9813
9814   mingw* | pw32*)
9815     lt_cv_dlopen="LoadLibrary"
9816     lt_cv_dlopen_libs=
9817    ;;
9818
9819   cygwin*)
9820     lt_cv_dlopen="dlopen"
9821     lt_cv_dlopen_libs=
9822    ;;
9823
9824   darwin*)
9825   # if libdl is installed we need to link against it
9826     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9827 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9828 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9829   echo $ECHO_N "(cached) $ECHO_C" >&6
9830 else
9831   ac_check_lib_save_LIBS=$LIBS
9832 LIBS="-ldl  $LIBS"
9833 cat >conftest.$ac_ext <<_ACEOF
9834 /* confdefs.h.  */
9835 _ACEOF
9836 cat confdefs.h >>conftest.$ac_ext
9837 cat >>conftest.$ac_ext <<_ACEOF
9838 /* end confdefs.h.  */
9839
9840 /* Override any GCC internal prototype to avoid an error.
9841    Use char because int might match the return type of a GCC
9842    builtin and then its argument prototype would still apply.  */
9843 #ifdef __cplusplus
9844 extern "C"
9845 #endif
9846 char dlopen ();
9847 int
9848 main ()
9849 {
9850 return dlopen ();
9851   ;
9852   return 0;
9853 }
9854 _ACEOF
9855 rm -f conftest.$ac_objext conftest$ac_exeext
9856 if { (ac_try="$ac_link"
9857 case "(($ac_try" in
9858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9859   *) ac_try_echo=$ac_try;;
9860 esac
9861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9862   (eval "$ac_link") 2>conftest.er1
9863   ac_status=$?
9864   grep -v '^ *+' conftest.er1 >conftest.err
9865   rm -f conftest.er1
9866   cat conftest.err >&5
9867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9868   (exit $ac_status); } && {
9869          test -z "$ac_c_werror_flag" ||
9870          test ! -s conftest.err
9871        } && test -s conftest$ac_exeext &&
9872        $as_test_x conftest$ac_exeext; then
9873   ac_cv_lib_dl_dlopen=yes
9874 else
9875   echo "$as_me: failed program was:" >&5
9876 sed 's/^/| /' conftest.$ac_ext >&5
9877
9878         ac_cv_lib_dl_dlopen=no
9879 fi
9880
9881 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9882       conftest$ac_exeext conftest.$ac_ext
9883 LIBS=$ac_check_lib_save_LIBS
9884 fi
9885 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9886 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9887 if test $ac_cv_lib_dl_dlopen = yes; then
9888   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9889 else
9890
9891     lt_cv_dlopen="dyld"
9892     lt_cv_dlopen_libs=
9893     lt_cv_dlopen_self=yes
9894
9895 fi
9896
9897    ;;
9898
9899   *)
9900     { echo "$as_me:$LINENO: checking for shl_load" >&5
9901 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9902 if test "${ac_cv_func_shl_load+set}" = set; then
9903   echo $ECHO_N "(cached) $ECHO_C" >&6
9904 else
9905   cat >conftest.$ac_ext <<_ACEOF
9906 /* confdefs.h.  */
9907 _ACEOF
9908 cat confdefs.h >>conftest.$ac_ext
9909 cat >>conftest.$ac_ext <<_ACEOF
9910 /* end confdefs.h.  */
9911 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9912    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9913 #define shl_load innocuous_shl_load
9914
9915 /* System header to define __stub macros and hopefully few prototypes,
9916     which can conflict with char shl_load (); below.
9917     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9918     <limits.h> exists even on freestanding compilers.  */
9919
9920 #ifdef __STDC__
9921 # include <limits.h>
9922 #else
9923 # include <assert.h>
9924 #endif
9925
9926 #undef shl_load
9927
9928 /* Override any GCC internal prototype to avoid an error.
9929    Use char because int might match the return type of a GCC
9930    builtin and then its argument prototype would still apply.  */
9931 #ifdef __cplusplus
9932 extern "C"
9933 #endif
9934 char shl_load ();
9935 /* The GNU C library defines this for functions which it implements
9936     to always fail with ENOSYS.  Some functions are actually named
9937     something starting with __ and the normal name is an alias.  */
9938 #if defined __stub_shl_load || defined __stub___shl_load
9939 choke me
9940 #endif
9941
9942 int
9943 main ()
9944 {
9945 return shl_load ();
9946   ;
9947   return 0;
9948 }
9949 _ACEOF
9950 rm -f conftest.$ac_objext conftest$ac_exeext
9951 if { (ac_try="$ac_link"
9952 case "(($ac_try" in
9953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9954   *) ac_try_echo=$ac_try;;
9955 esac
9956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9957   (eval "$ac_link") 2>conftest.er1
9958   ac_status=$?
9959   grep -v '^ *+' conftest.er1 >conftest.err
9960   rm -f conftest.er1
9961   cat conftest.err >&5
9962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9963   (exit $ac_status); } && {
9964          test -z "$ac_c_werror_flag" ||
9965          test ! -s conftest.err
9966        } && test -s conftest$ac_exeext &&
9967        $as_test_x conftest$ac_exeext; then
9968   ac_cv_func_shl_load=yes
9969 else
9970   echo "$as_me: failed program was:" >&5
9971 sed 's/^/| /' conftest.$ac_ext >&5
9972
9973         ac_cv_func_shl_load=no
9974 fi
9975
9976 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9977       conftest$ac_exeext conftest.$ac_ext
9978 fi
9979 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9980 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9981 if test $ac_cv_func_shl_load = yes; then
9982   lt_cv_dlopen="shl_load"
9983 else
9984   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9985 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9986 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9987   echo $ECHO_N "(cached) $ECHO_C" >&6
9988 else
9989   ac_check_lib_save_LIBS=$LIBS
9990 LIBS="-ldld  $LIBS"
9991 cat >conftest.$ac_ext <<_ACEOF
9992 /* confdefs.h.  */
9993 _ACEOF
9994 cat confdefs.h >>conftest.$ac_ext
9995 cat >>conftest.$ac_ext <<_ACEOF
9996 /* end confdefs.h.  */
9997
9998 /* Override any GCC internal prototype to avoid an error.
9999    Use char because int might match the return type of a GCC
10000    builtin and then its argument prototype would still apply.  */
10001 #ifdef __cplusplus
10002 extern "C"
10003 #endif
10004 char shl_load ();
10005 int
10006 main ()
10007 {
10008 return shl_load ();
10009   ;
10010   return 0;
10011 }
10012 _ACEOF
10013 rm -f conftest.$ac_objext conftest$ac_exeext
10014 if { (ac_try="$ac_link"
10015 case "(($ac_try" in
10016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10017   *) ac_try_echo=$ac_try;;
10018 esac
10019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10020   (eval "$ac_link") 2>conftest.er1
10021   ac_status=$?
10022   grep -v '^ *+' conftest.er1 >conftest.err
10023   rm -f conftest.er1
10024   cat conftest.err >&5
10025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10026   (exit $ac_status); } && {
10027          test -z "$ac_c_werror_flag" ||
10028          test ! -s conftest.err
10029        } && test -s conftest$ac_exeext &&
10030        $as_test_x conftest$ac_exeext; then
10031   ac_cv_lib_dld_shl_load=yes
10032 else
10033   echo "$as_me: failed program was:" >&5
10034 sed 's/^/| /' conftest.$ac_ext >&5
10035
10036         ac_cv_lib_dld_shl_load=no
10037 fi
10038
10039 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10040       conftest$ac_exeext conftest.$ac_ext
10041 LIBS=$ac_check_lib_save_LIBS
10042 fi
10043 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10044 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10045 if test $ac_cv_lib_dld_shl_load = yes; then
10046   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10047 else
10048   { echo "$as_me:$LINENO: checking for dlopen" >&5
10049 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10050 if test "${ac_cv_func_dlopen+set}" = set; then
10051   echo $ECHO_N "(cached) $ECHO_C" >&6
10052 else
10053   cat >conftest.$ac_ext <<_ACEOF
10054 /* confdefs.h.  */
10055 _ACEOF
10056 cat confdefs.h >>conftest.$ac_ext
10057 cat >>conftest.$ac_ext <<_ACEOF
10058 /* end confdefs.h.  */
10059 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10060    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10061 #define dlopen innocuous_dlopen
10062
10063 /* System header to define __stub macros and hopefully few prototypes,
10064     which can conflict with char dlopen (); below.
10065     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10066     <limits.h> exists even on freestanding compilers.  */
10067
10068 #ifdef __STDC__
10069 # include <limits.h>
10070 #else
10071 # include <assert.h>
10072 #endif
10073
10074 #undef dlopen
10075
10076 /* Override any GCC internal prototype to avoid an error.
10077    Use char because int might match the return type of a GCC
10078    builtin and then its argument prototype would still apply.  */
10079 #ifdef __cplusplus
10080 extern "C"
10081 #endif
10082 char dlopen ();
10083 /* The GNU C library defines this for functions which it implements
10084     to always fail with ENOSYS.  Some functions are actually named
10085     something starting with __ and the normal name is an alias.  */
10086 #if defined __stub_dlopen || defined __stub___dlopen
10087 choke me
10088 #endif
10089
10090 int
10091 main ()
10092 {
10093 return dlopen ();
10094   ;
10095   return 0;
10096 }
10097 _ACEOF
10098 rm -f conftest.$ac_objext conftest$ac_exeext
10099 if { (ac_try="$ac_link"
10100 case "(($ac_try" in
10101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10102   *) ac_try_echo=$ac_try;;
10103 esac
10104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10105   (eval "$ac_link") 2>conftest.er1
10106   ac_status=$?
10107   grep -v '^ *+' conftest.er1 >conftest.err
10108   rm -f conftest.er1
10109   cat conftest.err >&5
10110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10111   (exit $ac_status); } && {
10112          test -z "$ac_c_werror_flag" ||
10113          test ! -s conftest.err
10114        } && test -s conftest$ac_exeext &&
10115        $as_test_x conftest$ac_exeext; then
10116   ac_cv_func_dlopen=yes
10117 else
10118   echo "$as_me: failed program was:" >&5
10119 sed 's/^/| /' conftest.$ac_ext >&5
10120
10121         ac_cv_func_dlopen=no
10122 fi
10123
10124 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10125       conftest$ac_exeext conftest.$ac_ext
10126 fi
10127 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10128 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10129 if test $ac_cv_func_dlopen = yes; then
10130   lt_cv_dlopen="dlopen"
10131 else
10132   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10133 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10134 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10135   echo $ECHO_N "(cached) $ECHO_C" >&6
10136 else
10137   ac_check_lib_save_LIBS=$LIBS
10138 LIBS="-ldl  $LIBS"
10139 cat >conftest.$ac_ext <<_ACEOF
10140 /* confdefs.h.  */
10141 _ACEOF
10142 cat confdefs.h >>conftest.$ac_ext
10143 cat >>conftest.$ac_ext <<_ACEOF
10144 /* end confdefs.h.  */
10145
10146 /* Override any GCC internal prototype to avoid an error.
10147    Use char because int might match the return type of a GCC
10148    builtin and then its argument prototype would still apply.  */
10149 #ifdef __cplusplus
10150 extern "C"
10151 #endif
10152 char dlopen ();
10153 int
10154 main ()
10155 {
10156 return dlopen ();
10157   ;
10158   return 0;
10159 }
10160 _ACEOF
10161 rm -f conftest.$ac_objext conftest$ac_exeext
10162 if { (ac_try="$ac_link"
10163 case "(($ac_try" in
10164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10165   *) ac_try_echo=$ac_try;;
10166 esac
10167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10168   (eval "$ac_link") 2>conftest.er1
10169   ac_status=$?
10170   grep -v '^ *+' conftest.er1 >conftest.err
10171   rm -f conftest.er1
10172   cat conftest.err >&5
10173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10174   (exit $ac_status); } && {
10175          test -z "$ac_c_werror_flag" ||
10176          test ! -s conftest.err
10177        } && test -s conftest$ac_exeext &&
10178        $as_test_x conftest$ac_exeext; then
10179   ac_cv_lib_dl_dlopen=yes
10180 else
10181   echo "$as_me: failed program was:" >&5
10182 sed 's/^/| /' conftest.$ac_ext >&5
10183
10184         ac_cv_lib_dl_dlopen=no
10185 fi
10186
10187 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10188       conftest$ac_exeext conftest.$ac_ext
10189 LIBS=$ac_check_lib_save_LIBS
10190 fi
10191 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10192 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10193 if test $ac_cv_lib_dl_dlopen = yes; then
10194   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10195 else
10196   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10197 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10198 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10199   echo $ECHO_N "(cached) $ECHO_C" >&6
10200 else
10201   ac_check_lib_save_LIBS=$LIBS
10202 LIBS="-lsvld  $LIBS"
10203 cat >conftest.$ac_ext <<_ACEOF
10204 /* confdefs.h.  */
10205 _ACEOF
10206 cat confdefs.h >>conftest.$ac_ext
10207 cat >>conftest.$ac_ext <<_ACEOF
10208 /* end confdefs.h.  */
10209
10210 /* Override any GCC internal prototype to avoid an error.
10211    Use char because int might match the return type of a GCC
10212    builtin and then its argument prototype would still apply.  */
10213 #ifdef __cplusplus
10214 extern "C"
10215 #endif
10216 char dlopen ();
10217 int
10218 main ()
10219 {
10220 return dlopen ();
10221   ;
10222   return 0;
10223 }
10224 _ACEOF
10225 rm -f conftest.$ac_objext conftest$ac_exeext
10226 if { (ac_try="$ac_link"
10227 case "(($ac_try" in
10228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10229   *) ac_try_echo=$ac_try;;
10230 esac
10231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10232   (eval "$ac_link") 2>conftest.er1
10233   ac_status=$?
10234   grep -v '^ *+' conftest.er1 >conftest.err
10235   rm -f conftest.er1
10236   cat conftest.err >&5
10237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10238   (exit $ac_status); } && {
10239          test -z "$ac_c_werror_flag" ||
10240          test ! -s conftest.err
10241        } && test -s conftest$ac_exeext &&
10242        $as_test_x conftest$ac_exeext; then
10243   ac_cv_lib_svld_dlopen=yes
10244 else
10245   echo "$as_me: failed program was:" >&5
10246 sed 's/^/| /' conftest.$ac_ext >&5
10247
10248         ac_cv_lib_svld_dlopen=no
10249 fi
10250
10251 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10252       conftest$ac_exeext conftest.$ac_ext
10253 LIBS=$ac_check_lib_save_LIBS
10254 fi
10255 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10256 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10257 if test $ac_cv_lib_svld_dlopen = yes; then
10258   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10259 else
10260   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10261 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10262 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10263   echo $ECHO_N "(cached) $ECHO_C" >&6
10264 else
10265   ac_check_lib_save_LIBS=$LIBS
10266 LIBS="-ldld  $LIBS"
10267 cat >conftest.$ac_ext <<_ACEOF
10268 /* confdefs.h.  */
10269 _ACEOF
10270 cat confdefs.h >>conftest.$ac_ext
10271 cat >>conftest.$ac_ext <<_ACEOF
10272 /* end confdefs.h.  */
10273
10274 /* Override any GCC internal prototype to avoid an error.
10275    Use char because int might match the return type of a GCC
10276    builtin and then its argument prototype would still apply.  */
10277 #ifdef __cplusplus
10278 extern "C"
10279 #endif
10280 char dld_link ();
10281 int
10282 main ()
10283 {
10284 return dld_link ();
10285   ;
10286   return 0;
10287 }
10288 _ACEOF
10289 rm -f conftest.$ac_objext conftest$ac_exeext
10290 if { (ac_try="$ac_link"
10291 case "(($ac_try" in
10292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10293   *) ac_try_echo=$ac_try;;
10294 esac
10295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10296   (eval "$ac_link") 2>conftest.er1
10297   ac_status=$?
10298   grep -v '^ *+' conftest.er1 >conftest.err
10299   rm -f conftest.er1
10300   cat conftest.err >&5
10301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10302   (exit $ac_status); } && {
10303          test -z "$ac_c_werror_flag" ||
10304          test ! -s conftest.err
10305        } && test -s conftest$ac_exeext &&
10306        $as_test_x conftest$ac_exeext; then
10307   ac_cv_lib_dld_dld_link=yes
10308 else
10309   echo "$as_me: failed program was:" >&5
10310 sed 's/^/| /' conftest.$ac_ext >&5
10311
10312         ac_cv_lib_dld_dld_link=no
10313 fi
10314
10315 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10316       conftest$ac_exeext conftest.$ac_ext
10317 LIBS=$ac_check_lib_save_LIBS
10318 fi
10319 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10320 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10321 if test $ac_cv_lib_dld_dld_link = yes; then
10322   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10323 fi
10324
10325
10326 fi
10327
10328
10329 fi
10330
10331
10332 fi
10333
10334
10335 fi
10336
10337
10338 fi
10339
10340     ;;
10341   esac
10342
10343   if test "x$lt_cv_dlopen" != xno; then
10344     enable_dlopen=yes
10345   else
10346     enable_dlopen=no
10347   fi
10348
10349   case $lt_cv_dlopen in
10350   dlopen)
10351     save_CPPFLAGS="$CPPFLAGS"
10352     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10353
10354     save_LDFLAGS="$LDFLAGS"
10355     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10356
10357     save_LIBS="$LIBS"
10358     LIBS="$lt_cv_dlopen_libs $LIBS"
10359
10360     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10361 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10362 if test "${lt_cv_dlopen_self+set}" = set; then
10363   echo $ECHO_N "(cached) $ECHO_C" >&6
10364 else
10365           if test "$cross_compiling" = yes; then :
10366   lt_cv_dlopen_self=cross
10367 else
10368   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10369   lt_status=$lt_dlunknown
10370   cat > conftest.$ac_ext <<EOF
10371 #line 10371 "configure"
10372 #include "confdefs.h"
10373
10374 #if HAVE_DLFCN_H
10375 #include <dlfcn.h>
10376 #endif
10377
10378 #include <stdio.h>
10379
10380 #ifdef RTLD_GLOBAL
10381 #  define LT_DLGLOBAL           RTLD_GLOBAL
10382 #else
10383 #  ifdef DL_GLOBAL
10384 #    define LT_DLGLOBAL         DL_GLOBAL
10385 #  else
10386 #    define LT_DLGLOBAL         0
10387 #  endif
10388 #endif
10389
10390 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10391    find out it does not work in some platform. */
10392 #ifndef LT_DLLAZY_OR_NOW
10393 #  ifdef RTLD_LAZY
10394 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10395 #  else
10396 #    ifdef DL_LAZY
10397 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10398 #    else
10399 #      ifdef RTLD_NOW
10400 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10401 #      else
10402 #        ifdef DL_NOW
10403 #          define LT_DLLAZY_OR_NOW      DL_NOW
10404 #        else
10405 #          define LT_DLLAZY_OR_NOW      0
10406 #        endif
10407 #      endif
10408 #    endif
10409 #  endif
10410 #endif
10411
10412 #ifdef __cplusplus
10413 extern "C" void exit (int);
10414 #endif
10415
10416 void fnord() { int i=42;}
10417 int main ()
10418 {
10419   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10420   int status = $lt_dlunknown;
10421
10422   if (self)
10423     {
10424       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10425       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10426       /* dlclose (self); */
10427     }
10428   else
10429     puts (dlerror ());
10430
10431     exit (status);
10432 }
10433 EOF
10434   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10435   (eval $ac_link) 2>&5
10436   ac_status=$?
10437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10438   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10439     (./conftest; exit; ) >&5 2>/dev/null
10440     lt_status=$?
10441     case x$lt_status in
10442       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10443       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10444       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10445     esac
10446   else :
10447     # compilation failed
10448     lt_cv_dlopen_self=no
10449   fi
10450 fi
10451 rm -fr conftest*
10452
10453
10454 fi
10455 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10456 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10457
10458     if test "x$lt_cv_dlopen_self" = xyes; then
10459       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10460       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10461 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10462 if test "${lt_cv_dlopen_self_static+set}" = set; then
10463   echo $ECHO_N "(cached) $ECHO_C" >&6
10464 else
10465           if test "$cross_compiling" = yes; then :
10466   lt_cv_dlopen_self_static=cross
10467 else
10468   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10469   lt_status=$lt_dlunknown
10470   cat > conftest.$ac_ext <<EOF
10471 #line 10471 "configure"
10472 #include "confdefs.h"
10473
10474 #if HAVE_DLFCN_H
10475 #include <dlfcn.h>
10476 #endif
10477
10478 #include <stdio.h>
10479
10480 #ifdef RTLD_GLOBAL
10481 #  define LT_DLGLOBAL           RTLD_GLOBAL
10482 #else
10483 #  ifdef DL_GLOBAL
10484 #    define LT_DLGLOBAL         DL_GLOBAL
10485 #  else
10486 #    define LT_DLGLOBAL         0
10487 #  endif
10488 #endif
10489
10490 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10491    find out it does not work in some platform. */
10492 #ifndef LT_DLLAZY_OR_NOW
10493 #  ifdef RTLD_LAZY
10494 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10495 #  else
10496 #    ifdef DL_LAZY
10497 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10498 #    else
10499 #      ifdef RTLD_NOW
10500 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10501 #      else
10502 #        ifdef DL_NOW
10503 #          define LT_DLLAZY_OR_NOW      DL_NOW
10504 #        else
10505 #          define LT_DLLAZY_OR_NOW      0
10506 #        endif
10507 #      endif
10508 #    endif
10509 #  endif
10510 #endif
10511
10512 #ifdef __cplusplus
10513 extern "C" void exit (int);
10514 #endif
10515
10516 void fnord() { int i=42;}
10517 int main ()
10518 {
10519   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10520   int status = $lt_dlunknown;
10521
10522   if (self)
10523     {
10524       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10525       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10526       /* dlclose (self); */
10527     }
10528   else
10529     puts (dlerror ());
10530
10531     exit (status);
10532 }
10533 EOF
10534   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10535   (eval $ac_link) 2>&5
10536   ac_status=$?
10537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10538   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10539     (./conftest; exit; ) >&5 2>/dev/null
10540     lt_status=$?
10541     case x$lt_status in
10542       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10543       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10544       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10545     esac
10546   else :
10547     # compilation failed
10548     lt_cv_dlopen_self_static=no
10549   fi
10550 fi
10551 rm -fr conftest*
10552
10553
10554 fi
10555 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10556 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10557     fi
10558
10559     CPPFLAGS="$save_CPPFLAGS"
10560     LDFLAGS="$save_LDFLAGS"
10561     LIBS="$save_LIBS"
10562     ;;
10563   esac
10564
10565   case $lt_cv_dlopen_self in
10566   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10567   *) enable_dlopen_self=unknown ;;
10568   esac
10569
10570   case $lt_cv_dlopen_self_static in
10571   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10572   *) enable_dlopen_self_static=unknown ;;
10573   esac
10574 fi
10575
10576
10577 # Report which library types will actually be built
10578 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10579 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10580 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10581 echo "${ECHO_T}$can_build_shared" >&6; }
10582
10583 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10584 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10585 test "$can_build_shared" = "no" && enable_shared=no
10586
10587 # On AIX, shared libraries and static libraries use the same namespace, and
10588 # are all built from PIC.
10589 case $host_os in
10590 aix3*)
10591   test "$enable_shared" = yes && enable_static=no
10592   if test -n "$RANLIB"; then
10593     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10594     postinstall_cmds='$RANLIB $lib'
10595   fi
10596   ;;
10597
10598 aix4* | aix5*)
10599   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10600     test "$enable_shared" = yes && enable_static=no
10601   fi
10602     ;;
10603 esac
10604 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10605 echo "${ECHO_T}$enable_shared" >&6; }
10606
10607 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10608 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10609 # Make sure either enable_shared or enable_static is yes.
10610 test "$enable_shared" = yes || enable_static=yes
10611 { echo "$as_me:$LINENO: result: $enable_static" >&5
10612 echo "${ECHO_T}$enable_static" >&6; }
10613
10614 # The else clause should only fire when bootstrapping the
10615 # libtool distribution, otherwise you forgot to ship ltmain.sh
10616 # with your package, and you will get complaints that there are
10617 # no rules to generate ltmain.sh.
10618 if test -f "$ltmain"; then
10619   # See if we are running on zsh, and set the options which allow our commands through
10620   # without removal of \ escapes.
10621   if test -n "${ZSH_VERSION+set}" ; then
10622     setopt NO_GLOB_SUBST
10623   fi
10624   # Now quote all the things that may contain metacharacters while being
10625   # careful not to overquote the AC_SUBSTed values.  We take copies of the
10626   # variables and quote the copies for generation of the libtool script.
10627   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10628     SED SHELL STRIP \
10629     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10630     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10631     deplibs_check_method reload_flag reload_cmds need_locks \
10632     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10633     lt_cv_sys_global_symbol_to_c_name_address \
10634     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10635     old_postinstall_cmds old_postuninstall_cmds \
10636     compiler \
10637     CC \
10638     LD \
10639     lt_prog_compiler_wl \
10640     lt_prog_compiler_pic \
10641     lt_prog_compiler_static \
10642     lt_prog_compiler_no_builtin_flag \
10643     export_dynamic_flag_spec \
10644     thread_safe_flag_spec \
10645     whole_archive_flag_spec \
10646     enable_shared_with_static_runtimes \
10647     old_archive_cmds \
10648     old_archive_from_new_cmds \
10649     predep_objects \
10650     postdep_objects \
10651     predeps \
10652     postdeps \
10653     compiler_lib_search_path \
10654     archive_cmds \
10655     archive_expsym_cmds \
10656     postinstall_cmds \
10657     postuninstall_cmds \
10658     old_archive_from_expsyms_cmds \
10659     allow_undefined_flag \
10660     no_undefined_flag \
10661     export_symbols_cmds \
10662     hardcode_libdir_flag_spec \
10663     hardcode_libdir_flag_spec_ld \
10664     hardcode_libdir_separator \
10665     hardcode_automatic \
10666     module_cmds \
10667     module_expsym_cmds \
10668     lt_cv_prog_compiler_c_o \
10669     fix_srcfile_path \
10670     exclude_expsyms \
10671     include_expsyms; do
10672
10673     case $var in
10674     old_archive_cmds | \
10675     old_archive_from_new_cmds | \
10676     archive_cmds | \
10677     archive_expsym_cmds | \
10678     module_cmds | \
10679     module_expsym_cmds | \
10680     old_archive_from_expsyms_cmds | \
10681     export_symbols_cmds | \
10682     extract_expsyms_cmds | reload_cmds | finish_cmds | \
10683     postinstall_cmds | postuninstall_cmds | \
10684     old_postinstall_cmds | old_postuninstall_cmds | \
10685     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10686       # Double-quote double-evaled strings.
10687       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10688       ;;
10689     *)
10690       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10691       ;;
10692     esac
10693   done
10694
10695   case $lt_echo in
10696   *'\$0 --fallback-echo"')
10697     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10698     ;;
10699   esac
10700
10701 cfgfile="${ofile}T"
10702   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10703   $rm -f "$cfgfile"
10704   { echo "$as_me:$LINENO: creating $ofile" >&5
10705 echo "$as_me: creating $ofile" >&6;}
10706
10707   cat <<__EOF__ >> "$cfgfile"
10708 #! $SHELL
10709
10710 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10711 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10712 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10713 #
10714 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
10715 # Free Software Foundation, Inc.
10716 #
10717 # This file is part of GNU Libtool:
10718 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10719 #
10720 # This program is free software; you can redistribute it and/or modify
10721 # it under the terms of the GNU General Public License as published by
10722 # the Free Software Foundation; either version 2 of the License, or
10723 # (at your option) any later version.
10724 #
10725 # This program is distributed in the hope that it will be useful, but
10726 # WITHOUT ANY WARRANTY; without even the implied warranty of
10727 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10728 # General Public License for more details.
10729 #
10730 # You should have received a copy of the GNU General Public License
10731 # along with this program; if not, write to the Free Software
10732 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10733 #
10734 # As a special exception to the GNU General Public License, if you
10735 # distribute this file as part of a program that contains a
10736 # configuration script generated by Autoconf, you may include it under
10737 # the same distribution terms that you use for the rest of that program.
10738
10739 # A sed program that does not truncate output.
10740 SED=$lt_SED
10741
10742 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10743 Xsed="$SED -e 1s/^X//"
10744
10745 # The HP-UX ksh and POSIX shell print the target directory to stdout
10746 # if CDPATH is set.
10747 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10748
10749 # The names of the tagged configurations supported by this script.
10750 available_tags=
10751
10752 # ### BEGIN LIBTOOL CONFIG
10753
10754 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10755
10756 # Shell to use when invoking shell scripts.
10757 SHELL=$lt_SHELL
10758
10759 # Whether or not to build shared libraries.
10760 build_libtool_libs=$enable_shared
10761
10762 # Whether or not to build static libraries.
10763 build_old_libs=$enable_static
10764
10765 # Whether or not to add -lc for building shared libraries.
10766 build_libtool_need_lc=$archive_cmds_need_lc
10767
10768 # Whether or not to disallow shared libs when runtime libs are static
10769 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10770
10771 # Whether or not to optimize for fast installation.
10772 fast_install=$enable_fast_install
10773
10774 # The host system.
10775 host_alias=$host_alias
10776 host=$host
10777 host_os=$host_os
10778
10779 # The build system.
10780 build_alias=$build_alias
10781 build=$build
10782 build_os=$build_os
10783
10784 # An echo program that does not interpret backslashes.
10785 echo=$lt_echo
10786
10787 # The archiver.
10788 AR=$lt_AR
10789 AR_FLAGS=$lt_AR_FLAGS
10790
10791 # A C compiler.
10792 LTCC=$lt_LTCC
10793
10794 # LTCC compiler flags.
10795 LTCFLAGS=$lt_LTCFLAGS
10796
10797 # A language-specific compiler.
10798 CC=$lt_compiler
10799
10800 # Is the compiler the GNU C compiler?
10801 with_gcc=$GCC
10802
10803 # An ERE matcher.
10804 EGREP=$lt_EGREP
10805
10806 # The linker used to build libraries.
10807 LD=$lt_LD
10808
10809 # Whether we need hard or soft links.
10810 LN_S=$lt_LN_S
10811
10812 # A BSD-compatible nm program.
10813 NM=$lt_NM
10814
10815 # A symbol stripping program
10816 STRIP=$lt_STRIP
10817
10818 # Used to examine libraries when file_magic_cmd begins "file"
10819 MAGIC_CMD=$MAGIC_CMD
10820
10821 # Used on cygwin: DLL creation program.
10822 DLLTOOL="$DLLTOOL"
10823
10824 # Used on cygwin: object dumper.
10825 OBJDUMP="$OBJDUMP"
10826
10827 # Used on cygwin: assembler.
10828 AS="$AS"
10829
10830 # The name of the directory that contains temporary libtool files.
10831 objdir=$objdir
10832
10833 # How to create reloadable object files.
10834 reload_flag=$lt_reload_flag
10835 reload_cmds=$lt_reload_cmds
10836
10837 # How to pass a linker flag through the compiler.
10838 wl=$lt_lt_prog_compiler_wl
10839
10840 # Object file suffix (normally "o").
10841 objext="$ac_objext"
10842
10843 # Old archive suffix (normally "a").
10844 libext="$libext"
10845
10846 # Shared library suffix (normally ".so").
10847 shrext_cmds='$shrext_cmds'
10848
10849 # Executable file suffix (normally "").
10850 exeext="$exeext"
10851
10852 # Additional compiler flags for building library objects.
10853 pic_flag=$lt_lt_prog_compiler_pic
10854 pic_mode=$pic_mode
10855
10856 # What is the maximum length of a command?
10857 max_cmd_len=$lt_cv_sys_max_cmd_len
10858
10859 # Does compiler simultaneously support -c and -o options?
10860 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10861
10862 # Must we lock files when doing compilation?
10863 need_locks=$lt_need_locks
10864
10865 # Do we need the lib prefix for modules?
10866 need_lib_prefix=$need_lib_prefix
10867
10868 # Do we need a version for libraries?
10869 need_version=$need_version
10870
10871 # Whether dlopen is supported.
10872 dlopen_support=$enable_dlopen
10873
10874 # Whether dlopen of programs is supported.
10875 dlopen_self=$enable_dlopen_self
10876
10877 # Whether dlopen of statically linked programs is supported.
10878 dlopen_self_static=$enable_dlopen_self_static
10879
10880 # Compiler flag to prevent dynamic linking.
10881 link_static_flag=$lt_lt_prog_compiler_static
10882
10883 # Compiler flag to turn off builtin functions.
10884 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10885
10886 # Compiler flag to allow reflexive dlopens.
10887 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10888
10889 # Compiler flag to generate shared objects directly from archives.
10890 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10891
10892 # Compiler flag to generate thread-safe objects.
10893 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10894
10895 # Library versioning type.
10896 version_type=$version_type
10897
10898 # Format of library name prefix.
10899 libname_spec=$lt_libname_spec
10900
10901 # List of archive names.  First name is the real one, the rest are links.
10902 # The last name is the one that the linker finds with -lNAME.
10903 library_names_spec=$lt_library_names_spec
10904
10905 # The coded name of the library, if different from the real name.
10906 soname_spec=$lt_soname_spec
10907
10908 # Commands used to build and install an old-style archive.
10909 RANLIB=$lt_RANLIB
10910 old_archive_cmds=$lt_old_archive_cmds
10911 old_postinstall_cmds=$lt_old_postinstall_cmds
10912 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10913
10914 # Create an old-style archive from a shared archive.
10915 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10916
10917 # Create a temporary old-style archive to link instead of a shared archive.
10918 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10919
10920 # Commands used to build and install a shared archive.
10921 archive_cmds=$lt_archive_cmds
10922 archive_expsym_cmds=$lt_archive_expsym_cmds
10923 postinstall_cmds=$lt_postinstall_cmds
10924 postuninstall_cmds=$lt_postuninstall_cmds
10925
10926 # Commands used to build a loadable module (assumed same as above if empty)
10927 module_cmds=$lt_module_cmds
10928 module_expsym_cmds=$lt_module_expsym_cmds
10929
10930 # Commands to strip libraries.
10931 old_striplib=$lt_old_striplib
10932 striplib=$lt_striplib
10933
10934 # Dependencies to place before the objects being linked to create a
10935 # shared library.
10936 predep_objects=$lt_predep_objects
10937
10938 # Dependencies to place after the objects being linked to create a
10939 # shared library.
10940 postdep_objects=$lt_postdep_objects
10941
10942 # Dependencies to place before the objects being linked to create a
10943 # shared library.
10944 predeps=$lt_predeps
10945
10946 # Dependencies to place after the objects being linked to create a
10947 # shared library.
10948 postdeps=$lt_postdeps
10949
10950 # The library search path used internally by the compiler when linking
10951 # a shared library.
10952 compiler_lib_search_path=$lt_compiler_lib_search_path
10953
10954 # Method to check whether dependent libraries are shared objects.
10955 deplibs_check_method=$lt_deplibs_check_method
10956
10957 # Command to use when deplibs_check_method == file_magic.
10958 file_magic_cmd=$lt_file_magic_cmd
10959
10960 # Flag that allows shared libraries with undefined symbols to be built.
10961 allow_undefined_flag=$lt_allow_undefined_flag
10962
10963 # Flag that forces no undefined symbols.
10964 no_undefined_flag=$lt_no_undefined_flag
10965
10966 # Commands used to finish a libtool library installation in a directory.
10967 finish_cmds=$lt_finish_cmds
10968
10969 # Same as above, but a single script fragment to be evaled but not shown.
10970 finish_eval=$lt_finish_eval
10971
10972 # Take the output of nm and produce a listing of raw symbols and C names.
10973 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10974
10975 # Transform the output of nm in a proper C declaration
10976 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10977
10978 # Transform the output of nm in a C name address pair
10979 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10980
10981 # This is the shared library runtime path variable.
10982 runpath_var=$runpath_var
10983
10984 # This is the shared library path variable.
10985 shlibpath_var=$shlibpath_var
10986
10987 # Is shlibpath searched before the hard-coded library search path?
10988 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10989
10990 # How to hardcode a shared library path into an executable.
10991 hardcode_action=$hardcode_action
10992
10993 # Whether we should hardcode library paths into libraries.
10994 hardcode_into_libs=$hardcode_into_libs
10995
10996 # Flag to hardcode \$libdir into a binary during linking.
10997 # This must work even if \$libdir does not exist.
10998 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10999
11000 # If ld is used when linking, flag to hardcode \$libdir into
11001 # a binary during linking. This must work even if \$libdir does
11002 # not exist.
11003 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11004
11005 # Whether we need a single -rpath flag with a separated argument.
11006 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11007
11008 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11009 # resulting binary.
11010 hardcode_direct=$hardcode_direct
11011
11012 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11013 # resulting binary.
11014 hardcode_minus_L=$hardcode_minus_L
11015
11016 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11017 # the resulting binary.
11018 hardcode_shlibpath_var=$hardcode_shlibpath_var
11019
11020 # Set to yes if building a shared library automatically hardcodes DIR into the library
11021 # and all subsequent libraries and executables linked against it.
11022 hardcode_automatic=$hardcode_automatic
11023
11024 # Variables whose values should be saved in libtool wrapper scripts and
11025 # restored at relink time.
11026 variables_saved_for_relink="$variables_saved_for_relink"
11027
11028 # Whether libtool must link a program against all its dependency libraries.
11029 link_all_deplibs=$link_all_deplibs
11030
11031 # Compile-time system search path for libraries
11032 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11033
11034 # Run-time system search path for libraries
11035 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11036
11037 # Fix the shell variable \$srcfile for the compiler.
11038 fix_srcfile_path=$lt_fix_srcfile_path
11039
11040 # Set to yes if exported symbols are required.
11041 always_export_symbols=$always_export_symbols
11042
11043 # The commands to list exported symbols.
11044 export_symbols_cmds=$lt_export_symbols_cmds
11045
11046 # The commands to extract the exported symbol list from a shared archive.
11047 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11048
11049 # Symbols that should not be listed in the preloaded symbols.
11050 exclude_expsyms=$lt_exclude_expsyms
11051
11052 # Symbols that must always be exported.
11053 include_expsyms=$lt_include_expsyms
11054
11055 # ### END LIBTOOL CONFIG
11056
11057 __EOF__
11058
11059
11060   case $host_os in
11061   aix3*)
11062     cat <<\EOF >> "$cfgfile"
11063
11064 # AIX sometimes has problems with the GCC collect2 program.  For some
11065 # reason, if we set the COLLECT_NAMES environment variable, the problems
11066 # vanish in a puff of smoke.
11067 if test "X${COLLECT_NAMES+set}" != Xset; then
11068   COLLECT_NAMES=
11069   export COLLECT_NAMES
11070 fi
11071 EOF
11072     ;;
11073   esac
11074
11075   # We use sed instead of cat because bash on DJGPP gets confused if
11076   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11077   # text mode, it properly converts lines to CR/LF.  This bash problem
11078   # is reportedly fixed, but why not run on old versions too?
11079   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11080
11081   mv -f "$cfgfile" "$ofile" || \
11082     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11083   chmod +x "$ofile"
11084
11085 else
11086   # If there is no Makefile yet, we rely on a make rule to execute
11087   # `config.status --recheck' to rerun these tests and create the
11088   # libtool script then.
11089   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11090   if test -f "$ltmain_in"; then
11091     test -f Makefile && make "$ltmain"
11092   fi
11093 fi
11094
11095
11096 ac_ext=c
11097 ac_cpp='$CPP $CPPFLAGS'
11098 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11099 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11100 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11101
11102 CC="$lt_save_CC"
11103
11104
11105
11106 # This can be used to rebuild libtool when needed
11107 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
11108
11109 # Always use our own libtool.
11110 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11111
11112 # Prevent multiple expansion
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123 if test "$enable_shared" = "no"; then
11124     with_noexec=no
11125 else
11126     eval _shrext="$shrext_cmds"
11127 fi
11128 { echo "$as_me:$LINENO: checking path to sudo_noexec.so" >&5
11129 echo $ECHO_N "checking path to sudo_noexec.so... $ECHO_C" >&6; }
11130
11131 # Check whether --with-noexec was given.
11132 if test "${with_noexec+set}" = set; then
11133   withval=$with_noexec; case $with_noexec in
11134     yes)        with_noexec="$libexecdir/sudo_noexec$_shrext"
11135                 ;;
11136     no)         ;;
11137     *)          ;;
11138 esac
11139 else
11140   with_noexec="$libexecdir/sudo_noexec$_shrext"
11141 fi
11142
11143 { echo "$as_me:$LINENO: result: $with_noexec" >&5
11144 echo "${ECHO_T}$with_noexec" >&6; }
11145 NOEXECDIR="`echo $with_noexec|sed 's:^\(.*\)/[^/]*:\1:'`"
11146
11147 if test "$with_devel" = "yes" -a -n "$GCC"; then
11148     CFLAGS="${CFLAGS} -Wall"
11149 fi
11150
11151 # Extract the first word of "uname", so it can be a program name with args.
11152 set dummy uname; ac_word=$2
11153 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11154 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11155 if test "${ac_cv_prog_UNAMEPROG+set}" = set; then
11156   echo $ECHO_N "(cached) $ECHO_C" >&6
11157 else
11158   if test -n "$UNAMEPROG"; then
11159   ac_cv_prog_UNAMEPROG="$UNAMEPROG" # Let the user override the test.
11160 else
11161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11162 for as_dir in $PATH
11163 do
11164   IFS=$as_save_IFS
11165   test -z "$as_dir" && as_dir=.
11166   for ac_exec_ext in '' $ac_executable_extensions; do
11167   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11168     ac_cv_prog_UNAMEPROG="uname"
11169     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11170     break 2
11171   fi
11172 done
11173 done
11174 IFS=$as_save_IFS
11175
11176 fi
11177 fi
11178 UNAMEPROG=$ac_cv_prog_UNAMEPROG
11179 if test -n "$UNAMEPROG"; then
11180   { echo "$as_me:$LINENO: result: $UNAMEPROG" >&5
11181 echo "${ECHO_T}$UNAMEPROG" >&6; }
11182 else
11183   { echo "$as_me:$LINENO: result: no" >&5
11184 echo "${ECHO_T}no" >&6; }
11185 fi
11186
11187
11188 # Extract the first word of "tr", so it can be a program name with args.
11189 set dummy tr; ac_word=$2
11190 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11191 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11192 if test "${ac_cv_prog_TRPROG+set}" = set; then
11193   echo $ECHO_N "(cached) $ECHO_C" >&6
11194 else
11195   if test -n "$TRPROG"; then
11196   ac_cv_prog_TRPROG="$TRPROG" # Let the user override the test.
11197 else
11198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11199 for as_dir in $PATH
11200 do
11201   IFS=$as_save_IFS
11202   test -z "$as_dir" && as_dir=.
11203   for ac_exec_ext in '' $ac_executable_extensions; do
11204   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11205     ac_cv_prog_TRPROG="tr"
11206     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11207     break 2
11208   fi
11209 done
11210 done
11211 IFS=$as_save_IFS
11212
11213 fi
11214 fi
11215 TRPROG=$ac_cv_prog_TRPROG
11216 if test -n "$TRPROG"; then
11217   { echo "$as_me:$LINENO: result: $TRPROG" >&5
11218 echo "${ECHO_T}$TRPROG" >&6; }
11219 else
11220   { echo "$as_me:$LINENO: result: no" >&5
11221 echo "${ECHO_T}no" >&6; }
11222 fi
11223
11224
11225 # Extract the first word of "nroff", so it can be a program name with args.
11226 set dummy nroff; ac_word=$2
11227 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11229 if test "${ac_cv_prog_NROFFPROG+set}" = set; then
11230   echo $ECHO_N "(cached) $ECHO_C" >&6
11231 else
11232   if test -n "$NROFFPROG"; then
11233   ac_cv_prog_NROFFPROG="$NROFFPROG" # Let the user override the test.
11234 else
11235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11236 for as_dir in $PATH
11237 do
11238   IFS=$as_save_IFS
11239   test -z "$as_dir" && as_dir=.
11240   for ac_exec_ext in '' $ac_executable_extensions; do
11241   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11242     ac_cv_prog_NROFFPROG="nroff"
11243     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11244     break 2
11245   fi
11246 done
11247 done
11248 IFS=$as_save_IFS
11249
11250 fi
11251 fi
11252 NROFFPROG=$ac_cv_prog_NROFFPROG
11253 if test -n "$NROFFPROG"; then
11254   { echo "$as_me:$LINENO: result: $NROFFPROG" >&5
11255 echo "${ECHO_T}$NROFFPROG" >&6; }
11256 else
11257   { echo "$as_me:$LINENO: result: no" >&5
11258 echo "${ECHO_T}no" >&6; }
11259 fi
11260
11261
11262 if test -z "$NROFFPROG"; then
11263     MANTYPE="cat"
11264     mansrcdir='$(srcdir)'
11265 fi
11266
11267 if test -n "$sudo_cv_prev_host"; then
11268     if test "$sudo_cv_prev_host" != "$host"; then
11269         { { echo "$as_me:$LINENO: error: config.cache was created on a different host; remove it and re-run configure." >&5
11270 echo "$as_me: error: config.cache was created on a different host; remove it and re-run configure." >&2;}
11271    { (exit 1); exit 1; }; }
11272     else
11273         { echo "$as_me:$LINENO: checking previous host type" >&5
11274 echo $ECHO_N "checking previous host type... $ECHO_C" >&6; }
11275         if test "${sudo_cv_prev_host+set}" = set; then
11276   echo $ECHO_N "(cached) $ECHO_C" >&6
11277 else
11278   sudo_cv_prev_host="$host"
11279 fi
11280
11281         { echo "$as_me:$LINENO: result: $sudo_cv_prev_host" >&5
11282 echo "${ECHO_T}$sudo_cv_prev_host" >&6; }
11283     fi
11284 else
11285     # this will produce no output since there is no cached value
11286     if test "${sudo_cv_prev_host+set}" = set; then
11287   echo $ECHO_N "(cached) $ECHO_C" >&6
11288 else
11289   sudo_cv_prev_host="$host"
11290 fi
11291
11292 fi
11293
11294 if test -n "$host_os"; then
11295     OS=`echo $host_os | sed 's/[0-9].*//'`
11296     OSREV=`echo $host_os | sed 's/^[^0-9\.]*\([0-9\.]*\).*$/\1/'`
11297     OSMAJOR=`echo $OSREV | sed 's/\..*$//'`
11298 else
11299     OS="unknown"
11300     OSREV=0
11301     OSMAJOR=0
11302 fi
11303
11304 case "$host" in
11305     *-*-sunos4*)
11306                 # getcwd(3) opens a pipe to getpwd(1)!?!
11307                 BROKEN_GETCWD=1
11308
11309                 # system headers lack prototypes but gcc helps...
11310                 if test -n "$GCC"; then
11311                     OSDEFS="${OSDEFS} -D__USE_FIXED_PROTOTYPES__"
11312                 fi
11313
11314                 shadow_funcs="getpwanam issecure"
11315                 ;;
11316     *-*-solaris2*)
11317                 # To get the crypt(3) prototype (so we pass -Wall)
11318                 OSDEFS="${OSDEFS} -D__EXTENSIONS__"
11319                 # AFS support needs -lucb
11320                 if test "$with_AFS" = "yes"; then
11321                     AFS_LIBS="-lc -lucb"
11322                 fi
11323                 : ${mansectsu='1m'}
11324                 : ${mansectform='4'}
11325                 : ${with_rpath='yes'}
11326                 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
11327                 ;;
11328     *-*-aix*)
11329                 # To get all prototypes (so we pass -Wall)
11330                 OSDEFS="${OSDEFS} -D_XOPEN_EXTENDED_SOURCE -D_ALL_SOURCE"
11331                 SUDO_LDFLAGS="${SUDO_LDFLAGS} -Wl,-bI:\$(srcdir)/aixcrypt.exp"
11332                 if test X"$with_blibpath" != X"no"; then
11333                     { echo "$as_me:$LINENO: checking if linker accepts -Wl,-blibpath" >&5
11334 echo $ECHO_N "checking if linker accepts -Wl,-blibpath... $ECHO_C" >&6; }
11335                     O_LDFLAGS="$LDFLAGS"
11336                     LDFLAGS="$O_LDFLAGS -Wl,-blibpath:/usr/lib:/lib"
11337                     cat >conftest.$ac_ext <<_ACEOF
11338 /* confdefs.h.  */
11339 _ACEOF
11340 cat confdefs.h >>conftest.$ac_ext
11341 cat >>conftest.$ac_ext <<_ACEOF
11342 /* end confdefs.h.  */
11343
11344 int
11345 main ()
11346 {
11347
11348   ;
11349   return 0;
11350 }
11351 _ACEOF
11352 rm -f conftest.$ac_objext conftest$ac_exeext
11353 if { (ac_try="$ac_link"
11354 case "(($ac_try" in
11355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11356   *) ac_try_echo=$ac_try;;
11357 esac
11358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11359   (eval "$ac_link") 2>conftest.er1
11360   ac_status=$?
11361   grep -v '^ *+' conftest.er1 >conftest.err
11362   rm -f conftest.er1
11363   cat conftest.err >&5
11364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11365   (exit $ac_status); } && {
11366          test -z "$ac_c_werror_flag" ||
11367          test ! -s conftest.err
11368        } && test -s conftest$ac_exeext &&
11369        $as_test_x conftest$ac_exeext; then
11370
11371                         if test -n "$with_blibpath" -a "$with_blibpath" != "yes"; then
11372                             blibpath="$with_blibpath"
11373                         elif test -n "$GCC"; then
11374                             blibpath="/usr/lib:/lib:/usr/local/lib"
11375                         else
11376                             blibpath="/usr/lib:/lib"
11377                         fi
11378                         { echo "$as_me:$LINENO: result: yes" >&5
11379 echo "${ECHO_T}yes" >&6; }
11380
11381 else
11382   echo "$as_me: failed program was:" >&5
11383 sed 's/^/| /' conftest.$ac_ext >&5
11384
11385         { echo "$as_me:$LINENO: result: no" >&5
11386 echo "${ECHO_T}no" >&6; }
11387 fi
11388
11389 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11390       conftest$ac_exeext conftest.$ac_ext
11391                 fi
11392                 LDFLAGS="$O_LDFLAGS"
11393
11394                 # Use authenticate(3) as the default authentication method
11395                 if test X"$with_aixauth" = X""; then
11396
11397 for ac_func in authenticate
11398 do
11399 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11400 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11401 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11402 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11403   echo $ECHO_N "(cached) $ECHO_C" >&6
11404 else
11405   cat >conftest.$ac_ext <<_ACEOF
11406 /* confdefs.h.  */
11407 _ACEOF
11408 cat confdefs.h >>conftest.$ac_ext
11409 cat >>conftest.$ac_ext <<_ACEOF
11410 /* end confdefs.h.  */
11411 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11412    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11413 #define $ac_func innocuous_$ac_func
11414
11415 /* System header to define __stub macros and hopefully few prototypes,
11416     which can conflict with char $ac_func (); below.
11417     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11418     <limits.h> exists even on freestanding compilers.  */
11419
11420 #ifdef __STDC__
11421 # include <limits.h>
11422 #else
11423 # include <assert.h>
11424 #endif
11425
11426 #undef $ac_func
11427
11428 /* Override any GCC internal prototype to avoid an error.
11429    Use char because int might match the return type of a GCC
11430    builtin and then its argument prototype would still apply.  */
11431 #ifdef __cplusplus
11432 extern "C"
11433 #endif
11434 char $ac_func ();
11435 /* The GNU C library defines this for functions which it implements
11436     to always fail with ENOSYS.  Some functions are actually named
11437     something starting with __ and the normal name is an alias.  */
11438 #if defined __stub_$ac_func || defined __stub___$ac_func
11439 choke me
11440 #endif
11441
11442 int
11443 main ()
11444 {
11445 return $ac_func ();
11446   ;
11447   return 0;
11448 }
11449 _ACEOF
11450 rm -f conftest.$ac_objext conftest$ac_exeext
11451 if { (ac_try="$ac_link"
11452 case "(($ac_try" in
11453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11454   *) ac_try_echo=$ac_try;;
11455 esac
11456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11457   (eval "$ac_link") 2>conftest.er1
11458   ac_status=$?
11459   grep -v '^ *+' conftest.er1 >conftest.err
11460   rm -f conftest.er1
11461   cat conftest.err >&5
11462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11463   (exit $ac_status); } && {
11464          test -z "$ac_c_werror_flag" ||
11465          test ! -s conftest.err
11466        } && test -s conftest$ac_exeext &&
11467        $as_test_x conftest$ac_exeext; then
11468   eval "$as_ac_var=yes"
11469 else
11470   echo "$as_me: failed program was:" >&5
11471 sed 's/^/| /' conftest.$ac_ext >&5
11472
11473         eval "$as_ac_var=no"
11474 fi
11475
11476 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11477       conftest$ac_exeext conftest.$ac_ext
11478 fi
11479 ac_res=`eval echo '${'$as_ac_var'}'`
11480                { echo "$as_me:$LINENO: result: $ac_res" >&5
11481 echo "${ECHO_T}$ac_res" >&6; }
11482 if test `eval echo '${'$as_ac_var'}'` = yes; then
11483   cat >>confdefs.h <<_ACEOF
11484 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11485 _ACEOF
11486  AUTH_EXCL_DEF="AIX_AUTH"
11487 fi
11488 done
11489
11490                 fi
11491                 ;;
11492     *-*-hiuxmpp*)
11493                 : ${mansectsu='1m'}
11494                 : ${mansectform='4'}
11495                 ;;
11496     *-*-hpux*)
11497                 # AFS support needs -lBSD
11498                 if test "$with_AFS" = "yes"; then
11499                     AFS_LIBS="-lc -lBSD"
11500                 fi
11501                 : ${mansectsu='1m'}
11502                 : ${mansectform='4'}
11503
11504                 case "$host" in
11505                         *-*-hpux1-8.*)
11506                             cat >>confdefs.h <<\_ACEOF
11507 #define BROKEN_SYSLOG 1
11508 _ACEOF
11509
11510
11511                             # Not sure if setuid binaries are safe in < 9.x
11512                             if test -n "$GCC"; then
11513                                 SUDO_LDFLAGS="${SUDO_LDFLAGS} -static"
11514                             else
11515                                 SUDO_LDFLAGS="${SUDO_LDFLAGS} -Wl,-a,archive"
11516                             fi
11517                         ;;
11518                         *-*-hpux9.*)
11519                             cat >>confdefs.h <<\_ACEOF
11520 #define BROKEN_SYSLOG 1
11521 _ACEOF
11522
11523
11524                             shadow_funcs="getspwuid"
11525
11526                             # DCE support (requires ANSI C compiler)
11527                             if test "$with_DCE" = "yes"; then
11528                                 # order of libs in 9.X is important. -lc_r must be last
11529                                 SUDO_LIBS="${SUDO_LIBS} -ldce -lM -lc_r"
11530                                 LIBS="${LIBS} -ldce -lM -lc_r"
11531                                 CPPFLAGS="${CPPFLAGS} -D_REENTRANT -I/usr/include/reentrant"
11532                             fi
11533                         ;;
11534                         *-*-hpux10.*)
11535                             shadow_funcs="getprpwnam iscomsec"
11536                             shadow_libs="-lsec"
11537                         ;;
11538                         *)
11539                             shadow_funcs="getspnam iscomsec"
11540                             shadow_libs="-lsec"
11541                             test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
11542                         ;;
11543                 esac
11544                 ;;
11545     *-dec-osf*)
11546                 # ignore envariables wrt dynamic lib path
11547                 SUDO_LDFLAGS="${SUDO_LDFLAGS} -Wl,-no_library_replacement"
11548
11549                 : ${CHECKSIA='true'}
11550                 { echo "$as_me:$LINENO: checking whether to disable sia support on Digital UNIX" >&5
11551 echo $ECHO_N "checking whether to disable sia support on Digital UNIX... $ECHO_C" >&6; }
11552                 # Check whether --enable-sia was given.
11553 if test "${enable_sia+set}" = set; then
11554   enableval=$enable_sia;  case "$enableval" in
11555                     yes)        { echo "$as_me:$LINENO: result: no" >&5
11556 echo "${ECHO_T}no" >&6; }
11557                                 CHECKSIA=true
11558                                 ;;
11559                     no)         { echo "$as_me:$LINENO: result: yes" >&5
11560 echo "${ECHO_T}yes" >&6; }
11561                                 CHECKSIA=false
11562                                 ;;
11563                     *)          { echo "$as_me:$LINENO: result: no" >&5
11564 echo "${ECHO_T}no" >&6; }
11565                                 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-sia: $enableval" >&5
11566 echo "$as_me: WARNING: Ignoring unknown argument to --enable-sia: $enableval" >&2;}
11567                                 ;;
11568                   esac
11569
11570 else
11571   { echo "$as_me:$LINENO: result: no" >&5
11572 echo "${ECHO_T}no" >&6; }
11573 fi
11574
11575
11576                 shadow_funcs="getprpwnam dispcrypt"
11577                 # OSF/1 4.x and higher need -ldb too
11578                 if test $OSMAJOR -lt 4; then
11579                     shadow_libs="-lsecurity -laud -lm"
11580                 else
11581                     shadow_libs="-lsecurity -ldb -laud -lm"
11582                 fi
11583
11584                 # use SIA by default, if we have it
11585                 test "$CHECKSIA" = "true" && AUTH_EXCL_DEF="SIA"
11586
11587                 #
11588                 # Some versions of Digital Unix ship with a broken
11589                 # copy of prot.h, which we need for shadow passwords.
11590                 # XXX - make should remove this as part of distclean
11591                 #
11592                 { echo "$as_me:$LINENO: checking for broken prot.h" >&5
11593 echo $ECHO_N "checking for broken prot.h... $ECHO_C" >&6; }
11594                 cat >conftest.$ac_ext <<_ACEOF
11595 /* confdefs.h.  */
11596 _ACEOF
11597 cat confdefs.h >>conftest.$ac_ext
11598 cat >>conftest.$ac_ext <<_ACEOF
11599 /* end confdefs.h.  */
11600
11601 #include <sys/types.h>
11602 #include <sys/security.h>
11603 #include <prot.h>
11604
11605 int
11606 main ()
11607 {
11608 exit(0);
11609   ;
11610   return 0;
11611 }
11612 _ACEOF
11613 rm -f conftest.$ac_objext
11614 if { (ac_try="$ac_compile"
11615 case "(($ac_try" in
11616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11617   *) ac_try_echo=$ac_try;;
11618 esac
11619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11620   (eval "$ac_compile") 2>conftest.er1
11621   ac_status=$?
11622   grep -v '^ *+' conftest.er1 >conftest.err
11623   rm -f conftest.er1
11624   cat conftest.err >&5
11625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11626   (exit $ac_status); } && {
11627          test -z "$ac_c_werror_flag" ||
11628          test ! -s conftest.err
11629        } && test -s conftest.$ac_objext; then
11630   { echo "$as_me:$LINENO: result: no" >&5
11631 echo "${ECHO_T}no" >&6; }
11632 else
11633   echo "$as_me: failed program was:" >&5
11634 sed 's/^/| /' conftest.$ac_ext >&5
11635
11636         { echo "$as_me:$LINENO: result: yes, fixing locally" >&5
11637 echo "${ECHO_T}yes, fixing locally" >&6; }
11638                 sed 's:<acl.h>:<sys/acl.h>:g' < /usr/include/prot.h > prot.h
11639
11640 fi
11641
11642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11643                 : ${mansectsu='8'}
11644                 : ${mansectform='4'}
11645                 ;;
11646     *-*-irix*)
11647                 OSDEFS="${OSDEFS} -D_BSD_TYPES"
11648                 if test -z "$NROFFPROG"; then
11649                     MAN_POSTINSTALL='   /bin/rm -f $(mandirsu)/sudo.$(mansectsu).z $(mandirsu)/visudo.$(mansectsu).z $(mandirform)/sudoers.$(mansectform).z ; /usr/bin/pack $(mandirsu)/sudo.$(mansectsu) $(mandirsu)/visudo.$(mansectsu) $(mandirform)/sudoers.$(mansectform)'
11650                     if test "$prefix" = "/usr/local" -a "$mandir" = '$(prefix)/man'; then
11651                         if test -d /usr/share/catman/local; then
11652                             mandir="/usr/share/catman/local"
11653                         else
11654                             mandir="/usr/catman/local"
11655                         fi
11656                     fi
11657                 else
11658                     if test "$prefix" = "/usr/local" -a "$mandir" = '$(prefix)/man'; then
11659                         if test -d "/usr/share/man/local"; then
11660                             mandir="/usr/share/man/local"
11661                         else
11662                             mandir="/usr/man/local"
11663                         fi
11664                     fi
11665                 fi
11666                 # IRIX <= 4 needs -lsun
11667                 if test "$OSMAJOR" -le 4; then
11668                     { echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
11669 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6; }
11670 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
11671   echo $ECHO_N "(cached) $ECHO_C" >&6
11672 else
11673   ac_check_lib_save_LIBS=$LIBS
11674 LIBS="-lsun  $LIBS"
11675 cat >conftest.$ac_ext <<_ACEOF
11676 /* confdefs.h.  */
11677 _ACEOF
11678 cat confdefs.h >>conftest.$ac_ext
11679 cat >>conftest.$ac_ext <<_ACEOF
11680 /* end confdefs.h.  */
11681
11682 /* Override any GCC internal prototype to avoid an error.
11683    Use char because int might match the return type of a GCC
11684    builtin and then its argument prototype would still apply.  */
11685 #ifdef __cplusplus
11686 extern "C"
11687 #endif
11688 char getpwnam ();
11689 int
11690 main ()
11691 {
11692 return getpwnam ();
11693   ;
11694   return 0;
11695 }
11696 _ACEOF
11697 rm -f conftest.$ac_objext conftest$ac_exeext
11698 if { (ac_try="$ac_link"
11699 case "(($ac_try" in
11700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11701   *) ac_try_echo=$ac_try;;
11702 esac
11703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11704   (eval "$ac_link") 2>conftest.er1
11705   ac_status=$?
11706   grep -v '^ *+' conftest.er1 >conftest.err
11707   rm -f conftest.er1
11708   cat conftest.err >&5
11709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11710   (exit $ac_status); } && {
11711          test -z "$ac_c_werror_flag" ||
11712          test ! -s conftest.err
11713        } && test -s conftest$ac_exeext &&
11714        $as_test_x conftest$ac_exeext; then
11715   ac_cv_lib_sun_getpwnam=yes
11716 else
11717   echo "$as_me: failed program was:" >&5
11718 sed 's/^/| /' conftest.$ac_ext >&5
11719
11720         ac_cv_lib_sun_getpwnam=no
11721 fi
11722
11723 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11724       conftest$ac_exeext conftest.$ac_ext
11725 LIBS=$ac_check_lib_save_LIBS
11726 fi
11727 { echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
11728 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6; }
11729 if test $ac_cv_lib_sun_getpwnam = yes; then
11730   LIBS="${LIBS} -lsun"
11731 fi
11732
11733                 fi
11734                 : ${mansectsu='1m'}
11735                 : ${mansectform='4'}
11736                 ;;
11737     *-*-linux*)
11738                 OSDEFS="${OSDEFS} -D_GNU_SOURCE"
11739                 # Some Linux versions need to link with -lshadow
11740                 shadow_funcs="getspnam"
11741                 shadow_libs_optional="-lshadow"
11742                 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
11743                 ;;
11744     *-convex-bsd*)
11745                 OSDEFS="${OSDEFS} -D_CONVEX_SOURCE"
11746                 if test -z "$GCC"; then
11747                     CFLAGS="${CFLAGS} -D__STDC__"
11748                 fi
11749
11750                 shadow_defs="-D_AUDIT -D_ACL -DSecureWare"
11751                 shadow_funcs="getprpwnam"
11752                 shadow_libs="-lprot"
11753                 ;;
11754     *-*-ultrix*)
11755                 OS="ultrix"
11756                 shadow_funcs="getauthuid"
11757                 shadow_libs="-lauth"
11758                 ;;
11759     *-*-riscos*)
11760                 LIBS="${LIBS} -lsun -lbsd"
11761                 CPPFLAGS="${CPPFLAGS} -I/usr/include -I/usr/include/bsd"
11762                 OSDEFS="${OSDEFS} -D_MIPS"
11763                 : ${mansectsu='1m'}
11764                 : ${mansectform='4'}
11765                 ;;
11766     *-*-isc*)
11767                 OSDEFS="${OSDEFS} -D_ISC"
11768                 LIB_CRYPT=1
11769                 SUDO_LIBS="${SUDO_LIBS} -lcrypt"
11770                 LIBS="${LIBS} -lcrypt"
11771
11772                 shadow_funcs="getspnam"
11773                 shadow_libs="-lsec"
11774
11775                 : ${mansectsu='1m'}
11776                 : ${mansectform='4'}
11777                 ;;
11778     *-*-sco*|*-sco-*)
11779                 shadow_funcs="getprpwnam"
11780                 shadow_libs="-lprot -lx"
11781                 : ${mansectsu='1m'}
11782                 : ${mansectform='4'}
11783                 ;;
11784     m88k-motorola-sysv*)
11785                 # motorolla's cc (a variant of gcc) does -O but not -O2
11786                 CFLAGS=`echo $CFLAGS | sed 's/-O2/-O/g'`
11787                 : ${mansectsu='1m'}
11788                 : ${mansectform='4'}
11789                 ;;
11790     *-sequent-sysv*)
11791                 shadow_funcs="getspnam"
11792                 shadow_libs="-lsec"
11793                 : ${mansectsu='1m'}
11794                 : ${mansectform='4'}
11795                 : ${with_rpath='yes'}
11796                 ;;
11797     *-ncr-sysv4*|*-ncr-sysvr4*)
11798                 { echo "$as_me:$LINENO: checking for strcasecmp in -lc89" >&5
11799 echo $ECHO_N "checking for strcasecmp in -lc89... $ECHO_C" >&6; }
11800 if test "${ac_cv_lib_c89_strcasecmp+set}" = set; then
11801   echo $ECHO_N "(cached) $ECHO_C" >&6
11802 else
11803   ac_check_lib_save_LIBS=$LIBS
11804 LIBS="-lc89  $LIBS"
11805 cat >conftest.$ac_ext <<_ACEOF
11806 /* confdefs.h.  */
11807 _ACEOF
11808 cat confdefs.h >>conftest.$ac_ext
11809 cat >>conftest.$ac_ext <<_ACEOF
11810 /* end confdefs.h.  */
11811
11812 /* Override any GCC internal prototype to avoid an error.
11813    Use char because int might match the return type of a GCC
11814    builtin and then its argument prototype would still apply.  */
11815 #ifdef __cplusplus
11816 extern "C"
11817 #endif
11818 char strcasecmp ();
11819 int
11820 main ()
11821 {
11822 return strcasecmp ();
11823   ;
11824   return 0;
11825 }
11826 _ACEOF
11827 rm -f conftest.$ac_objext conftest$ac_exeext
11828 if { (ac_try="$ac_link"
11829 case "(($ac_try" in
11830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11831   *) ac_try_echo=$ac_try;;
11832 esac
11833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11834   (eval "$ac_link") 2>conftest.er1
11835   ac_status=$?
11836   grep -v '^ *+' conftest.er1 >conftest.err
11837   rm -f conftest.er1
11838   cat conftest.err >&5
11839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11840   (exit $ac_status); } && {
11841          test -z "$ac_c_werror_flag" ||
11842          test ! -s conftest.err
11843        } && test -s conftest$ac_exeext &&
11844        $as_test_x conftest$ac_exeext; then
11845   ac_cv_lib_c89_strcasecmp=yes
11846 else
11847   echo "$as_me: failed program was:" >&5
11848 sed 's/^/| /' conftest.$ac_ext >&5
11849
11850         ac_cv_lib_c89_strcasecmp=no
11851 fi
11852
11853 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11854       conftest$ac_exeext conftest.$ac_ext
11855 LIBS=$ac_check_lib_save_LIBS
11856 fi
11857 { echo "$as_me:$LINENO: result: $ac_cv_lib_c89_strcasecmp" >&5
11858 echo "${ECHO_T}$ac_cv_lib_c89_strcasecmp" >&6; }
11859 if test $ac_cv_lib_c89_strcasecmp = yes; then
11860   cat >>confdefs.h <<\_ACEOF
11861 #define HAVE_STRCASECMP 1
11862 _ACEOF
11863  LIBS="${LIBS} -lc89"; ac_cv_func_strcasecmp=yes
11864 fi
11865
11866                 : ${mansectsu='1m'}
11867                 : ${mansectform='4'}
11868                 : ${with_rpath='yes'}
11869                 ;;
11870     *-ccur-sysv4*|*-ccur-sysvr4*)
11871                 LIBS="${LIBS} -lgen"
11872                 SUDO_LIBS="${SUDO_LIBS} -lgen"
11873                 : ${mansectsu='1m'}
11874                 : ${mansectform='4'}
11875                 : ${with_rpath='yes'}
11876                 ;;
11877     *-*-bsdi*)
11878                 SKIP_SETREUID=yes
11879                 # Use shlicc for BSD/OS [23].x unless asked to do otherwise
11880                 if test "${with_CC+set}" != set -a "$ac_cv_prog_CC" = gcc; then
11881                     case "$OSMAJOR" in
11882                         2|3)    { echo "$as_me:$LINENO: using shlicc as CC" >&5
11883 echo "$as_me: using shlicc as CC" >&6;}
11884                                 ac_cv_prog_CC=shlicc
11885                                 CC="$ac_cv_prog_CC"
11886                                 ;;
11887                     esac
11888                 fi
11889                 # Check for newer BSD auth API (just check for >= 3.0?)
11890                 if test -z "$with_bsdauth"; then
11891
11892 for ac_func in auth_challenge
11893 do
11894 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11895 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11896 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11897 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11898   echo $ECHO_N "(cached) $ECHO_C" >&6
11899 else
11900   cat >conftest.$ac_ext <<_ACEOF
11901 /* confdefs.h.  */
11902 _ACEOF
11903 cat confdefs.h >>conftest.$ac_ext
11904 cat >>conftest.$ac_ext <<_ACEOF
11905 /* end confdefs.h.  */
11906 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11907    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11908 #define $ac_func innocuous_$ac_func
11909
11910 /* System header to define __stub macros and hopefully few prototypes,
11911     which can conflict with char $ac_func (); below.
11912     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11913     <limits.h> exists even on freestanding compilers.  */
11914
11915 #ifdef __STDC__
11916 # include <limits.h>
11917 #else
11918 # include <assert.h>
11919 #endif
11920
11921 #undef $ac_func
11922
11923 /* Override any GCC internal prototype to avoid an error.
11924    Use char because int might match the return type of a GCC
11925    builtin and then its argument prototype would still apply.  */
11926 #ifdef __cplusplus
11927 extern "C"
11928 #endif
11929 char $ac_func ();
11930 /* The GNU C library defines this for functions which it implements
11931     to always fail with ENOSYS.  Some functions are actually named
11932     something starting with __ and the normal name is an alias.  */
11933 #if defined __stub_$ac_func || defined __stub___$ac_func
11934 choke me
11935 #endif
11936
11937 int
11938 main ()
11939 {
11940 return $ac_func ();
11941   ;
11942   return 0;
11943 }
11944 _ACEOF
11945 rm -f conftest.$ac_objext conftest$ac_exeext
11946 if { (ac_try="$ac_link"
11947 case "(($ac_try" in
11948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11949   *) ac_try_echo=$ac_try;;
11950 esac
11951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11952   (eval "$ac_link") 2>conftest.er1
11953   ac_status=$?
11954   grep -v '^ *+' conftest.er1 >conftest.err
11955   rm -f conftest.er1
11956   cat conftest.err >&5
11957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11958   (exit $ac_status); } && {
11959          test -z "$ac_c_werror_flag" ||
11960          test ! -s conftest.err
11961        } && test -s conftest$ac_exeext &&
11962        $as_test_x conftest$ac_exeext; then
11963   eval "$as_ac_var=yes"
11964 else
11965   echo "$as_me: failed program was:" >&5
11966 sed 's/^/| /' conftest.$ac_ext >&5
11967
11968         eval "$as_ac_var=no"
11969 fi
11970
11971 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11972       conftest$ac_exeext conftest.$ac_ext
11973 fi
11974 ac_res=`eval echo '${'$as_ac_var'}'`
11975                { echo "$as_me:$LINENO: result: $ac_res" >&5
11976 echo "${ECHO_T}$ac_res" >&6; }
11977 if test `eval echo '${'$as_ac_var'}'` = yes; then
11978   cat >>confdefs.h <<_ACEOF
11979 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11980 _ACEOF
11981  AUTH_EXCL_DEF="BSD_AUTH"
11982 fi
11983 done
11984
11985                 fi
11986                 ;;
11987     *-*-freebsd*)
11988                 # FreeBSD has a real setreuid(2) starting with 2.1 and
11989                 # backported to 2.0.5.  We just take 2.1 and above...
11990                 case "$OSREV" in
11991                 0.*|1.*|2.0*)
11992                     SKIP_SETREUID=yes
11993                     ;;
11994                 esac
11995                 if test "$with_skey" = "yes"; then
11996                      SUDO_LIBS="${SUDO_LIBS} -lmd"
11997                 fi
11998                 CHECKSHADOW="false"
11999                 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
12000                 : ${with_logincap='maybe'}
12001                 ;;
12002     *-*-*openbsd*)
12003                 # OpenBSD has a real setreuid(2) starting with 3.3 but
12004                 # we will use setreuid(2) instead.
12005                 SKIP_SETREUID=yes
12006                 CHECKSHADOW="false"
12007                 # OpenBSD >= 3.0 supports BSD auth
12008                 if test -z "$with_bsdauth"; then
12009                     case "$OSREV" in
12010                     0-2.*)
12011                         ;;
12012                     *)
12013                         AUTH_EXCL_DEF="BSD_AUTH"
12014                         ;;
12015                     esac
12016                 fi
12017                 : ${with_logincap='maybe'}
12018                 ;;
12019     *-*-*netbsd*)
12020                 # NetBSD has a real setreuid(2) starting with 1.3.2
12021                 case "$OSREV" in
12022                 0.9*|1.012*|1.3|1.3.1)
12023                     SKIP_SETREUID=yes
12024                     ;;
12025                 esac
12026                 CHECKSHADOW="false"
12027                 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
12028                 : ${with_logincap='maybe'}
12029                 ;;
12030     *-*-dragonfly*)
12031                 if test "$with_skey" = "yes"; then
12032                      SUDO_LIBS="${SUDO_LIBS} -lmd"
12033                 fi
12034                 CHECKSHADOW="false"
12035                 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
12036                 : ${with_logincap='yes'}
12037                 ;;
12038     *-*-*bsd*)
12039                 CHECKSHADOW="false"
12040                 ;;
12041     *-*-darwin*)
12042                 SKIP_SETREUID=yes
12043                 CHECKSHADOW="false"
12044                 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
12045                 : ${with_logincap='yes'}
12046                 ;;
12047     *-*-nextstep*)
12048                 # lockf() on is broken on the NeXT -- use flock instead
12049                 ac_cv_func_lockf=no
12050                 ac_cv_func_flock=yes
12051                 ;;
12052     *-*-*sysv4*)
12053                 : ${mansectsu='1m'}
12054                 : ${mansectform='4'}
12055                 : ${with_rpath='yes'}
12056                 ;;
12057     *-*-sysv*)
12058                 : ${mansectsu='1m'}
12059                 : ${mansectform='4'}
12060                 ;;
12061     *-gnu*)
12062                 OSDEFS="${OSDEFS} -D_GNU_SOURCE"
12063                 ;;
12064 esac
12065
12066 AUTH_REG=${AUTH_REG# }
12067 AUTH_EXCL=${AUTH_EXCL# }
12068 if test -n "$AUTH_EXCL"; then
12069     set -- $AUTH_EXCL
12070     if test $# != 1; then
12071         { { echo "$as_me:$LINENO: error: More than one mutually exclusive authentication method specified: $AUTH_EXCL" >&5
12072 echo "$as_me: error: More than one mutually exclusive authentication method specified: $AUTH_EXCL" >&2;}
12073    { (exit 1); exit 1; }; }
12074     fi
12075     if test -n "$AUTH_REG"; then
12076         { { echo "$as_me:$LINENO: error: Cannot mix mutually exclusive ($AUTH_EXCL) and regular ($AUTH_REG) authentication methods" >&5
12077 echo "$as_me: error: Cannot mix mutually exclusive ($AUTH_EXCL) and regular ($AUTH_REG) authentication methods" >&2;}
12078    { (exit 1); exit 1; }; }
12079     fi
12080 fi
12081 if test X"${with_skey}${with_opie}" = X"yesyes"; then
12082     { { echo "$as_me:$LINENO: error: \"cannot use both S/Key and OPIE\"" >&5
12083 echo "$as_me: error: \"cannot use both S/Key and OPIE\"" >&2;}
12084    { (exit 1); exit 1; }; }
12085 fi
12086
12087 : ${mansectsu='8'}
12088 : ${mansectform='5'}
12089
12090 if test -n "$with_libpath"; then
12091     for i in ${with_libpath}; do
12092
12093     if test X"$with_rpath" = X"yes"; then
12094         LDFLAGS="${LDFLAGS} -L$i -R$i"
12095     else
12096         LDFLAGS="${LDFLAGS} -L$i"
12097     fi
12098     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
12099         blibpath_add="${blibpath_add}:$i"
12100     fi
12101
12102     done
12103 fi
12104 if test -n "$with_libraries"; then
12105     for i in ${with_libraries}; do
12106         case $i in
12107             -l*)        ;;
12108             *.a)        ;;
12109             *.o)        ;;
12110             *)  i="-l${i}";;
12111         esac
12112         LIBS="${LIBS} ${i}"
12113     done
12114 fi
12115
12116 if test $ac_cv_c_compiler_gnu = yes; then
12117     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
12118 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
12119 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
12120   echo $ECHO_N "(cached) $ECHO_C" >&6
12121 else
12122     ac_pattern="Autoconf.*'x'"
12123   cat >conftest.$ac_ext <<_ACEOF
12124 /* confdefs.h.  */
12125 _ACEOF
12126 cat confdefs.h >>conftest.$ac_ext
12127 cat >>conftest.$ac_ext <<_ACEOF
12128 /* end confdefs.h.  */
12129 #include <sgtty.h>
12130 Autoconf TIOCGETP
12131 _ACEOF
12132 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12133   $EGREP "$ac_pattern" >/dev/null 2>&1; then
12134   ac_cv_prog_gcc_traditional=yes
12135 else
12136   ac_cv_prog_gcc_traditional=no
12137 fi
12138 rm -f conftest*
12139
12140
12141   if test $ac_cv_prog_gcc_traditional = no; then
12142     cat >conftest.$ac_ext <<_ACEOF
12143 /* confdefs.h.  */
12144 _ACEOF
12145 cat confdefs.h >>conftest.$ac_ext
12146 cat >>conftest.$ac_ext <<_ACEOF
12147 /* end confdefs.h.  */
12148 #include <termio.h>
12149 Autoconf TCGETA
12150 _ACEOF
12151 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12152   $EGREP "$ac_pattern" >/dev/null 2>&1; then
12153   ac_cv_prog_gcc_traditional=yes
12154 fi
12155 rm -f conftest*
12156
12157   fi
12158 fi
12159 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
12160 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
12161   if test $ac_cv_prog_gcc_traditional = yes; then
12162     CC="$CC -traditional"
12163   fi
12164 fi
12165
12166 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
12167 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
12168 if test "${ac_cv_c_const+set}" = set; then
12169   echo $ECHO_N "(cached) $ECHO_C" >&6
12170 else
12171   cat >conftest.$ac_ext <<_ACEOF
12172 /* confdefs.h.  */
12173 _ACEOF
12174 cat confdefs.h >>conftest.$ac_ext
12175 cat >>conftest.$ac_ext <<_ACEOF
12176 /* end confdefs.h.  */
12177
12178 int
12179 main ()
12180 {
12181 /* FIXME: Include the comments suggested by Paul. */
12182 #ifndef __cplusplus
12183   /* Ultrix mips cc rejects this.  */
12184   typedef int charset[2];
12185   const charset cs;
12186   /* SunOS 4.1.1 cc rejects this.  */
12187   char const *const *pcpcc;
12188   char **ppc;
12189   /* NEC SVR4.0.2 mips cc rejects this.  */
12190   struct point {int x, y;};
12191   static struct point const zero = {0,0};
12192   /* AIX XL C 1.02.0.0 rejects this.
12193      It does not let you subtract one const X* pointer from another in
12194      an arm of an if-expression whose if-part is not a constant
12195      expression */
12196   const char *g = "string";
12197   pcpcc = &g + (g ? g-g : 0);
12198   /* HPUX 7.0 cc rejects these. */
12199   ++pcpcc;
12200   ppc = (char**) pcpcc;
12201   pcpcc = (char const *const *) ppc;
12202   { /* SCO 3.2v4 cc rejects this.  */
12203     char *t;
12204     char const *s = 0 ? (char *) 0 : (char const *) 0;
12205
12206     *t++ = 0;
12207     if (s) return 0;
12208   }
12209   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
12210     int x[] = {25, 17};
12211     const int *foo = &x[0];
12212     ++foo;
12213   }
12214   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12215     typedef const int *iptr;
12216     iptr p = 0;
12217     ++p;
12218   }
12219   { /* AIX XL C 1.02.0.0 rejects this saying
12220        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12221     struct s { int j; const int *ap[3]; };
12222     struct s *b; b->j = 5;
12223   }
12224   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12225     const int foo = 10;
12226     if (!foo) return 0;
12227   }
12228   return !cs[0] && !zero.x;
12229 #endif
12230
12231   ;
12232   return 0;
12233 }
12234 _ACEOF
12235 rm -f conftest.$ac_objext
12236 if { (ac_try="$ac_compile"
12237 case "(($ac_try" in
12238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12239   *) ac_try_echo=$ac_try;;
12240 esac
12241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12242   (eval "$ac_compile") 2>conftest.er1
12243   ac_status=$?
12244   grep -v '^ *+' conftest.er1 >conftest.err
12245   rm -f conftest.er1
12246   cat conftest.err >&5
12247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12248   (exit $ac_status); } && {
12249          test -z "$ac_c_werror_flag" ||
12250          test ! -s conftest.err
12251        } && test -s conftest.$ac_objext; then
12252   ac_cv_c_const=yes
12253 else
12254   echo "$as_me: failed program was:" >&5
12255 sed 's/^/| /' conftest.$ac_ext >&5
12256
12257         ac_cv_c_const=no
12258 fi
12259
12260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12261 fi
12262 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
12263 echo "${ECHO_T}$ac_cv_c_const" >&6; }
12264 if test $ac_cv_c_const = no; then
12265
12266 cat >>confdefs.h <<\_ACEOF
12267 #define const
12268 _ACEOF
12269
12270 fi
12271
12272 { echo "$as_me:$LINENO: checking for working volatile" >&5
12273 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
12274 if test "${ac_cv_c_volatile+set}" = set; then
12275   echo $ECHO_N "(cached) $ECHO_C" >&6
12276 else
12277   cat >conftest.$ac_ext <<_ACEOF
12278 /* confdefs.h.  */
12279 _ACEOF
12280 cat confdefs.h >>conftest.$ac_ext
12281 cat >>conftest.$ac_ext <<_ACEOF
12282 /* end confdefs.h.  */
12283
12284 int
12285 main ()
12286 {
12287
12288 volatile int x;
12289 int * volatile y = (int *) 0;
12290 return !x && !y;
12291   ;
12292   return 0;
12293 }
12294 _ACEOF
12295 rm -f conftest.$ac_objext
12296 if { (ac_try="$ac_compile"
12297 case "(($ac_try" in
12298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12299   *) ac_try_echo=$ac_try;;
12300 esac
12301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12302   (eval "$ac_compile") 2>conftest.er1
12303   ac_status=$?
12304   grep -v '^ *+' conftest.er1 >conftest.err
12305   rm -f conftest.er1
12306   cat conftest.err >&5
12307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12308   (exit $ac_status); } && {
12309          test -z "$ac_c_werror_flag" ||
12310          test ! -s conftest.err
12311        } && test -s conftest.$ac_objext; then
12312   ac_cv_c_volatile=yes
12313 else
12314   echo "$as_me: failed program was:" >&5
12315 sed 's/^/| /' conftest.$ac_ext >&5
12316
12317         ac_cv_c_volatile=no
12318 fi
12319
12320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12321 fi
12322 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
12323 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
12324 if test $ac_cv_c_volatile = no; then
12325
12326 cat >>confdefs.h <<\_ACEOF
12327 #define volatile
12328 _ACEOF
12329
12330 fi
12331
12332 for ac_prog in 'bison -y' byacc
12333 do
12334   # Extract the first word of "$ac_prog", so it can be a program name with args.
12335 set dummy $ac_prog; ac_word=$2
12336 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12337 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12338 if test "${ac_cv_prog_YACC+set}" = set; then
12339   echo $ECHO_N "(cached) $ECHO_C" >&6
12340 else
12341   if test -n "$YACC"; then
12342   ac_cv_prog_YACC="$YACC" # Let the user override the test.
12343 else
12344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12345 for as_dir in $PATH
12346 do
12347   IFS=$as_save_IFS
12348   test -z "$as_dir" && as_dir=.
12349   for ac_exec_ext in '' $ac_executable_extensions; do
12350   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12351     ac_cv_prog_YACC="$ac_prog"
12352     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12353     break 2
12354   fi
12355 done
12356 done
12357 IFS=$as_save_IFS
12358
12359 fi
12360 fi
12361 YACC=$ac_cv_prog_YACC
12362 if test -n "$YACC"; then
12363   { echo "$as_me:$LINENO: result: $YACC" >&5
12364 echo "${ECHO_T}$YACC" >&6; }
12365 else
12366   { echo "$as_me:$LINENO: result: no" >&5
12367 echo "${ECHO_T}no" >&6; }
12368 fi
12369
12370
12371   test -n "$YACC" && break
12372 done
12373 test -n "$YACC" || YACC="yacc"
12374
12375 { echo "$as_me:$LINENO: checking for mv" >&5
12376 echo $ECHO_N "checking for mv... $ECHO_C" >&6; }
12377 if test -f "/usr/bin/mv"; then
12378     { echo "$as_me:$LINENO: result: /usr/bin/mv" >&5
12379 echo "${ECHO_T}/usr/bin/mv" >&6; }
12380     cat >>confdefs.h <<\EOF
12381 #define _PATH_MV "/usr/bin/mv"
12382 EOF
12383
12384 elif test -f "/bin/mv"; then
12385     { echo "$as_me:$LINENO: result: /bin/mv" >&5
12386 echo "${ECHO_T}/bin/mv" >&6; }
12387     cat >>confdefs.h <<\EOF
12388 #define _PATH_MV "/bin/mv"
12389 EOF
12390
12391 elif test -f "/usr/ucb/mv"; then
12392     { echo "$as_me:$LINENO: result: /usr/ucb/mv" >&5
12393 echo "${ECHO_T}/usr/ucb/mv" >&6; }
12394     cat >>confdefs.h <<\EOF
12395 #define _PATH_MV "/usr/ucb/mv"
12396 EOF
12397
12398 elif test -f "/usr/sbin/mv"; then
12399     { echo "$as_me:$LINENO: result: /usr/sbin/mv" >&5
12400 echo "${ECHO_T}/usr/sbin/mv" >&6; }
12401     cat >>confdefs.h <<\EOF
12402 #define _PATH_MV "/usr/sbin/mv"
12403 EOF
12404
12405 else
12406     { echo "$as_me:$LINENO: result: not found" >&5
12407 echo "${ECHO_T}not found" >&6; }
12408 fi
12409
12410 { echo "$as_me:$LINENO: checking for bourne shell" >&5
12411 echo $ECHO_N "checking for bourne shell... $ECHO_C" >&6; }
12412 if test -f "/bin/sh"; then
12413     { echo "$as_me:$LINENO: result: /bin/sh" >&5
12414 echo "${ECHO_T}/bin/sh" >&6; }
12415     cat >>confdefs.h <<\EOF
12416 #define _PATH_BSHELL "/bin/sh"
12417 EOF
12418
12419 elif test -f "/usr/bin/sh"; then
12420     { echo "$as_me:$LINENO: result: /usr/bin/sh" >&5
12421 echo "${ECHO_T}/usr/bin/sh" >&6; }
12422     cat >>confdefs.h <<\EOF
12423 #define _PATH_BSHELL "/usr/bin/sh"
12424 EOF
12425
12426 elif test -f "/sbin/sh"; then
12427     { echo "$as_me:$LINENO: result: /sbin/sh" >&5
12428 echo "${ECHO_T}/sbin/sh" >&6; }
12429     cat >>confdefs.h <<\EOF
12430 #define _PATH_BSHELL "/sbin/sh"
12431 EOF
12432
12433 elif test -f "/usr/sbin/sh"; then
12434     { echo "$as_me:$LINENO: result: /usr/sbin/sh" >&5
12435 echo "${ECHO_T}/usr/sbin/sh" >&6; }
12436     cat >>confdefs.h <<\EOF
12437 #define _PATH_BSHELL "/usr/sbin/sh"
12438 EOF
12439
12440 elif test -f "/bin/ksh"; then
12441     { echo "$as_me:$LINENO: result: /bin/ksh" >&5
12442 echo "${ECHO_T}/bin/ksh" >&6; }
12443     cat >>confdefs.h <<\EOF
12444 #define _PATH_BSHELL "/bin/ksh"
12445 EOF
12446
12447 elif test -f "/usr/bin/ksh"; then
12448     { echo "$as_me:$LINENO: result: /usr/bin/ksh" >&5
12449 echo "${ECHO_T}/usr/bin/ksh" >&6; }
12450     cat >>confdefs.h <<\EOF
12451 #define _PATH_BSHELL "/usr/bin/ksh"
12452 EOF
12453
12454 elif test -f "/bin/bash"; then
12455     { echo "$as_me:$LINENO: result: /bin/bash" >&5
12456 echo "${ECHO_T}/bin/bash" >&6; }
12457     cat >>confdefs.h <<\EOF
12458 #define _PATH_BSHELL "/bin/bash"
12459 EOF
12460
12461 elif test -f "/usr/bin/bash"; then
12462     { echo "$as_me:$LINENO: result: /usr/bin/bash" >&5
12463 echo "${ECHO_T}/usr/bin/bash" >&6; }
12464     cat >>confdefs.h <<\EOF
12465 #define _PATH_BSHELL "/usr/bin/bash"
12466 EOF
12467
12468 else
12469     { echo "$as_me:$LINENO: result: not found" >&5
12470 echo "${ECHO_T}not found" >&6; }
12471 fi
12472
12473 if test -z "$with_sendmail"; then
12474     { echo "$as_me:$LINENO: checking for sendmail" >&5
12475 echo $ECHO_N "checking for sendmail... $ECHO_C" >&6; }
12476 if test -f "/usr/sbin/sendmail"; then
12477     { echo "$as_me:$LINENO: result: /usr/sbin/sendmail" >&5
12478 echo "${ECHO_T}/usr/sbin/sendmail" >&6; }
12479     cat >>confdefs.h <<\EOF
12480 #define _PATH_SUDO_SENDMAIL "/usr/sbin/sendmail"
12481 EOF
12482
12483 elif test -f "/usr/lib/sendmail"; then
12484     { echo "$as_me:$LINENO: result: /usr/lib/sendmail" >&5
12485 echo "${ECHO_T}/usr/lib/sendmail" >&6; }
12486     cat >>confdefs.h <<\EOF
12487 #define _PATH_SUDO_SENDMAIL "/usr/lib/sendmail"
12488 EOF
12489
12490 elif test -f "/usr/etc/sendmail"; then
12491     { echo "$as_me:$LINENO: result: /usr/etc/sendmail" >&5
12492 echo "${ECHO_T}/usr/etc/sendmail" >&6; }
12493     cat >>confdefs.h <<\EOF
12494 #define _PATH_SUDO_SENDMAIL "/usr/etc/sendmail"
12495 EOF
12496
12497 elif test -f "/usr/ucblib/sendmail"; then
12498     { echo "$as_me:$LINENO: result: /usr/ucblib/sendmail" >&5
12499 echo "${ECHO_T}/usr/ucblib/sendmail" >&6; }
12500     cat >>confdefs.h <<\EOF
12501 #define _PATH_SUDO_SENDMAIL "/usr/ucblib/sendmail"
12502 EOF
12503
12504 elif test -f "/usr/local/lib/sendmail"; then
12505     { echo "$as_me:$LINENO: result: /usr/local/lib/sendmail" >&5
12506 echo "${ECHO_T}/usr/local/lib/sendmail" >&6; }
12507     cat >>confdefs.h <<\EOF
12508 #define _PATH_SUDO_SENDMAIL "/usr/local/lib/sendmail"
12509 EOF
12510
12511 elif test -f "/usr/local/bin/sendmail"; then
12512     { echo "$as_me:$LINENO: result: /usr/local/bin/sendmail" >&5
12513 echo "${ECHO_T}/usr/local/bin/sendmail" >&6; }
12514     cat >>confdefs.h <<\EOF
12515 #define _PATH_SUDO_SENDMAIL "/usr/local/bin/sendmail"
12516 EOF
12517
12518 else
12519     { echo "$as_me:$LINENO: result: not found" >&5
12520 echo "${ECHO_T}not found" >&6; }
12521 fi
12522
12523 fi
12524 if test -z "$with_editor"; then
12525     { echo "$as_me:$LINENO: checking for vi" >&5
12526 echo $ECHO_N "checking for vi... $ECHO_C" >&6; }
12527 if test -f "/usr/bin/vi"; then
12528     { echo "$as_me:$LINENO: result: /usr/bin/vi" >&5
12529 echo "${ECHO_T}/usr/bin/vi" >&6; }
12530     cat >>confdefs.h <<\EOF
12531 #define _PATH_VI "/usr/bin/vi"
12532 EOF
12533
12534 elif test -f "/usr/ucb/vi"; then
12535     { echo "$as_me:$LINENO: result: /usr/ucb/vi" >&5
12536 echo "${ECHO_T}/usr/ucb/vi" >&6; }
12537     cat >>confdefs.h <<\EOF
12538 #define _PATH_VI "/usr/ucb/vi"
12539 EOF
12540
12541 elif test -f "/usr/bsd/vi"; then
12542     { echo "$as_me:$LINENO: result: /usr/bsd/vi" >&5
12543 echo "${ECHO_T}/usr/bsd/vi" >&6; }
12544     cat >>confdefs.h <<\EOF
12545 #define _PATH_VI "/usr/bsd/vi"
12546 EOF
12547
12548 elif test -f "/bin/vi"; then
12549     { echo "$as_me:$LINENO: result: /bin/vi" >&5
12550 echo "${ECHO_T}/bin/vi" >&6; }
12551     cat >>confdefs.h <<\EOF
12552 #define _PATH_VI "/bin/vi"
12553 EOF
12554
12555 elif test -f "/usr/local/bin/vi"; then
12556     { echo "$as_me:$LINENO: result: /usr/local/bin/vi" >&5
12557 echo "${ECHO_T}/usr/local/bin/vi" >&6; }
12558     cat >>confdefs.h <<\EOF
12559 #define _PATH_VI "/usr/local/bin/vi"
12560 EOF
12561
12562 else
12563     { echo "$as_me:$LINENO: result: not found" >&5
12564 echo "${ECHO_T}not found" >&6; }
12565 fi
12566
12567 fi
12568 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
12569 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
12570 if test "${ac_cv_header_stdc+set}" = set; then
12571   echo $ECHO_N "(cached) $ECHO_C" >&6
12572 else
12573   cat >conftest.$ac_ext <<_ACEOF
12574 /* confdefs.h.  */
12575 _ACEOF
12576 cat confdefs.h >>conftest.$ac_ext
12577 cat >>conftest.$ac_ext <<_ACEOF
12578 /* end confdefs.h.  */
12579 #include <stdlib.h>
12580 #include <stdarg.h>
12581 #include <string.h>
12582 #include <float.h>
12583
12584 int
12585 main ()
12586 {
12587
12588   ;
12589   return 0;
12590 }
12591 _ACEOF
12592 rm -f conftest.$ac_objext
12593 if { (ac_try="$ac_compile"
12594 case "(($ac_try" in
12595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12596   *) ac_try_echo=$ac_try;;
12597 esac
12598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12599   (eval "$ac_compile") 2>conftest.er1
12600   ac_status=$?
12601   grep -v '^ *+' conftest.er1 >conftest.err
12602   rm -f conftest.er1
12603   cat conftest.err >&5
12604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12605   (exit $ac_status); } && {
12606          test -z "$ac_c_werror_flag" ||
12607          test ! -s conftest.err
12608        } && test -s conftest.$ac_objext; then
12609   ac_cv_header_stdc=yes
12610 else
12611   echo "$as_me: failed program was:" >&5
12612 sed 's/^/| /' conftest.$ac_ext >&5
12613
12614         ac_cv_header_stdc=no
12615 fi
12616
12617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12618
12619 if test $ac_cv_header_stdc = yes; then
12620   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12621   cat >conftest.$ac_ext <<_ACEOF
12622 /* confdefs.h.  */
12623 _ACEOF
12624 cat confdefs.h >>conftest.$ac_ext
12625 cat >>conftest.$ac_ext <<_ACEOF
12626 /* end confdefs.h.  */
12627 #include <string.h>
12628
12629 _ACEOF
12630 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12631   $EGREP "memchr" >/dev/null 2>&1; then
12632   :
12633 else
12634   ac_cv_header_stdc=no
12635 fi
12636 rm -f conftest*
12637
12638 fi
12639
12640 if test $ac_cv_header_stdc = yes; then
12641   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12642   cat >conftest.$ac_ext <<_ACEOF
12643 /* confdefs.h.  */
12644 _ACEOF
12645 cat confdefs.h >>conftest.$ac_ext
12646 cat >>conftest.$ac_ext <<_ACEOF
12647 /* end confdefs.h.  */
12648 #include <stdlib.h>
12649
12650 _ACEOF
12651 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12652   $EGREP "free" >/dev/null 2>&1; then
12653   :
12654 else
12655   ac_cv_header_stdc=no
12656 fi
12657 rm -f conftest*
12658
12659 fi
12660
12661 if test $ac_cv_header_stdc = yes; then
12662   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12663   if test "$cross_compiling" = yes; then
12664   :
12665 else
12666   cat >conftest.$ac_ext <<_ACEOF
12667 /* confdefs.h.  */
12668 _ACEOF
12669 cat confdefs.h >>conftest.$ac_ext
12670 cat >>conftest.$ac_ext <<_ACEOF
12671 /* end confdefs.h.  */
12672 #include <ctype.h>
12673 #include <stdlib.h>
12674 #if ((' ' & 0x0FF) == 0x020)
12675 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12676 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12677 #else
12678 # define ISLOWER(c) \
12679                    (('a' <= (c) && (c) <= 'i') \
12680                      || ('j' <= (c) && (c) <= 'r') \
12681                      || ('s' <= (c) && (c) <= 'z'))
12682 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12683 #endif
12684
12685 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12686 int
12687 main ()
12688 {
12689   int i;
12690   for (i = 0; i < 256; i++)
12691     if (XOR (islower (i), ISLOWER (i))
12692         || toupper (i) != TOUPPER (i))
12693       return 2;
12694   return 0;
12695 }
12696 _ACEOF
12697 rm -f conftest$ac_exeext
12698 if { (ac_try="$ac_link"
12699 case "(($ac_try" in
12700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12701   *) ac_try_echo=$ac_try;;
12702 esac
12703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12704   (eval "$ac_link") 2>&5
12705   ac_status=$?
12706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12707   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12708   { (case "(($ac_try" in
12709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12710   *) ac_try_echo=$ac_try;;
12711 esac
12712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12713   (eval "$ac_try") 2>&5
12714   ac_status=$?
12715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12716   (exit $ac_status); }; }; then
12717   :
12718 else
12719   echo "$as_me: program exited with status $ac_status" >&5
12720 echo "$as_me: failed program was:" >&5
12721 sed 's/^/| /' conftest.$ac_ext >&5
12722
12723 ( exit $ac_status )
12724 ac_cv_header_stdc=no
12725 fi
12726 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12727 fi
12728
12729
12730 fi
12731 fi
12732 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
12733 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
12734 if test $ac_cv_header_stdc = yes; then
12735
12736 cat >>confdefs.h <<\_ACEOF
12737 #define STDC_HEADERS 1
12738 _ACEOF
12739
12740 fi
12741
12742
12743
12744
12745
12746
12747 ac_header_dirent=no
12748 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
12749   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
12750 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
12751 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
12752 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12753   echo $ECHO_N "(cached) $ECHO_C" >&6
12754 else
12755   cat >conftest.$ac_ext <<_ACEOF
12756 /* confdefs.h.  */
12757 _ACEOF
12758 cat confdefs.h >>conftest.$ac_ext
12759 cat >>conftest.$ac_ext <<_ACEOF
12760 /* end confdefs.h.  */
12761 #include <sys/types.h>
12762 #include <$ac_hdr>
12763
12764 int
12765 main ()
12766 {
12767 if ((DIR *) 0)
12768 return 0;
12769   ;
12770   return 0;
12771 }
12772 _ACEOF
12773 rm -f conftest.$ac_objext
12774 if { (ac_try="$ac_compile"
12775 case "(($ac_try" in
12776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12777   *) ac_try_echo=$ac_try;;
12778 esac
12779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12780   (eval "$ac_compile") 2>conftest.er1
12781   ac_status=$?
12782   grep -v '^ *+' conftest.er1 >conftest.err
12783   rm -f conftest.er1
12784   cat conftest.err >&5
12785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12786   (exit $ac_status); } && {
12787          test -z "$ac_c_werror_flag" ||
12788          test ! -s conftest.err
12789        } && test -s conftest.$ac_objext; then
12790   eval "$as_ac_Header=yes"
12791 else
12792   echo "$as_me: failed program was:" >&5
12793 sed 's/^/| /' conftest.$ac_ext >&5
12794
12795         eval "$as_ac_Header=no"
12796 fi
12797
12798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12799 fi
12800 ac_res=`eval echo '${'$as_ac_Header'}'`
12801                { echo "$as_me:$LINENO: result: $ac_res" >&5
12802 echo "${ECHO_T}$ac_res" >&6; }
12803 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12804   cat >>confdefs.h <<_ACEOF
12805 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
12806 _ACEOF
12807
12808 ac_header_dirent=$ac_hdr; break
12809 fi
12810
12811 done
12812 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
12813 if test $ac_header_dirent = dirent.h; then
12814   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
12815 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
12816 if test "${ac_cv_search_opendir+set}" = set; then
12817   echo $ECHO_N "(cached) $ECHO_C" >&6
12818 else
12819   ac_func_search_save_LIBS=$LIBS
12820 cat >conftest.$ac_ext <<_ACEOF
12821 /* confdefs.h.  */
12822 _ACEOF
12823 cat confdefs.h >>conftest.$ac_ext
12824 cat >>conftest.$ac_ext <<_ACEOF
12825 /* end confdefs.h.  */
12826
12827 /* Override any GCC internal prototype to avoid an error.
12828    Use char because int might match the return type of a GCC
12829    builtin and then its argument prototype would still apply.  */
12830 #ifdef __cplusplus
12831 extern "C"
12832 #endif
12833 char opendir ();
12834 int
12835 main ()
12836 {
12837 return opendir ();
12838   ;
12839   return 0;
12840 }
12841 _ACEOF
12842 for ac_lib in '' dir; do
12843   if test -z "$ac_lib"; then
12844     ac_res="none required"
12845   else
12846     ac_res=-l$ac_lib
12847     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12848   fi
12849   rm -f conftest.$ac_objext conftest$ac_exeext
12850 if { (ac_try="$ac_link"
12851 case "(($ac_try" in
12852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12853   *) ac_try_echo=$ac_try;;
12854 esac
12855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12856   (eval "$ac_link") 2>conftest.er1
12857   ac_status=$?
12858   grep -v '^ *+' conftest.er1 >conftest.err
12859   rm -f conftest.er1
12860   cat conftest.err >&5
12861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12862   (exit $ac_status); } && {
12863          test -z "$ac_c_werror_flag" ||
12864          test ! -s conftest.err
12865        } && test -s conftest$ac_exeext &&
12866        $as_test_x conftest$ac_exeext; then
12867   ac_cv_search_opendir=$ac_res
12868 else
12869   echo "$as_me: failed program was:" >&5
12870 sed 's/^/| /' conftest.$ac_ext >&5
12871
12872
12873 fi
12874
12875 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12876       conftest$ac_exeext
12877   if test "${ac_cv_search_opendir+set}" = set; then
12878   break
12879 fi
12880 done
12881 if test "${ac_cv_search_opendir+set}" = set; then
12882   :
12883 else
12884   ac_cv_search_opendir=no
12885 fi
12886 rm conftest.$ac_ext
12887 LIBS=$ac_func_search_save_LIBS
12888 fi
12889 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
12890 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
12891 ac_res=$ac_cv_search_opendir
12892 if test "$ac_res" != no; then
12893   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12894
12895 fi
12896
12897 else
12898   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
12899 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
12900 if test "${ac_cv_search_opendir+set}" = set; then
12901   echo $ECHO_N "(cached) $ECHO_C" >&6
12902 else
12903   ac_func_search_save_LIBS=$LIBS
12904 cat >conftest.$ac_ext <<_ACEOF
12905 /* confdefs.h.  */
12906 _ACEOF
12907 cat confdefs.h >>conftest.$ac_ext
12908 cat >>conftest.$ac_ext <<_ACEOF
12909 /* end confdefs.h.  */
12910
12911 /* Override any GCC internal prototype to avoid an error.
12912    Use char because int might match the return type of a GCC
12913    builtin and then its argument prototype would still apply.  */
12914 #ifdef __cplusplus
12915 extern "C"
12916 #endif
12917 char opendir ();
12918 int
12919 main ()
12920 {
12921 return opendir ();
12922   ;
12923   return 0;
12924 }
12925 _ACEOF
12926 for ac_lib in '' x; do
12927   if test -z "$ac_lib"; then
12928     ac_res="none required"
12929   else
12930     ac_res=-l$ac_lib
12931     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12932   fi
12933   rm -f conftest.$ac_objext conftest$ac_exeext
12934 if { (ac_try="$ac_link"
12935 case "(($ac_try" in
12936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12937   *) ac_try_echo=$ac_try;;
12938 esac
12939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12940   (eval "$ac_link") 2>conftest.er1
12941   ac_status=$?
12942   grep -v '^ *+' conftest.er1 >conftest.err
12943   rm -f conftest.er1
12944   cat conftest.err >&5
12945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12946   (exit $ac_status); } && {
12947          test -z "$ac_c_werror_flag" ||
12948          test ! -s conftest.err
12949        } && test -s conftest$ac_exeext &&
12950        $as_test_x conftest$ac_exeext; then
12951   ac_cv_search_opendir=$ac_res
12952 else
12953   echo "$as_me: failed program was:" >&5
12954 sed 's/^/| /' conftest.$ac_ext >&5
12955
12956
12957 fi
12958
12959 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12960       conftest$ac_exeext
12961   if test "${ac_cv_search_opendir+set}" = set; then
12962   break
12963 fi
12964 done
12965 if test "${ac_cv_search_opendir+set}" = set; then
12966   :
12967 else
12968   ac_cv_search_opendir=no
12969 fi
12970 rm conftest.$ac_ext
12971 LIBS=$ac_func_search_save_LIBS
12972 fi
12973 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
12974 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
12975 ac_res=$ac_cv_search_opendir
12976 if test "$ac_res" != no; then
12977   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12978
12979 fi
12980
12981 fi
12982
12983 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
12984 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
12985 if test "${ac_cv_header_time+set}" = set; then
12986   echo $ECHO_N "(cached) $ECHO_C" >&6
12987 else
12988   cat >conftest.$ac_ext <<_ACEOF
12989 /* confdefs.h.  */
12990 _ACEOF
12991 cat confdefs.h >>conftest.$ac_ext
12992 cat >>conftest.$ac_ext <<_ACEOF
12993 /* end confdefs.h.  */
12994 #include <sys/types.h>
12995 #include <sys/time.h>
12996 #include <time.h>
12997
12998 int
12999 main ()
13000 {
13001 if ((struct tm *) 0)
13002 return 0;
13003   ;
13004   return 0;
13005 }
13006 _ACEOF
13007 rm -f conftest.$ac_objext
13008 if { (ac_try="$ac_compile"
13009 case "(($ac_try" in
13010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13011   *) ac_try_echo=$ac_try;;
13012 esac
13013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13014   (eval "$ac_compile") 2>conftest.er1
13015   ac_status=$?
13016   grep -v '^ *+' conftest.er1 >conftest.err
13017   rm -f conftest.er1
13018   cat conftest.err >&5
13019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13020   (exit $ac_status); } && {
13021          test -z "$ac_c_werror_flag" ||
13022          test ! -s conftest.err
13023        } && test -s conftest.$ac_objext; then
13024   ac_cv_header_time=yes
13025 else
13026   echo "$as_me: failed program was:" >&5
13027 sed 's/^/| /' conftest.$ac_ext >&5
13028
13029         ac_cv_header_time=no
13030 fi
13031
13032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13033 fi
13034 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
13035 echo "${ECHO_T}$ac_cv_header_time" >&6; }
13036 if test $ac_cv_header_time = yes; then
13037
13038 cat >>confdefs.h <<\_ACEOF
13039 #define TIME_WITH_SYS_TIME 1
13040 _ACEOF
13041
13042 fi
13043
13044
13045
13046
13047
13048
13049
13050
13051 for ac_header in malloc.h paths.h utime.h netgroup.h sys/sockio.h sys/bsdtypes.h sys/select.h
13052 do
13053 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13054 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13055   { echo "$as_me:$LINENO: checking for $ac_header" >&5
13056 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13057 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13058   echo $ECHO_N "(cached) $ECHO_C" >&6
13059 fi
13060 ac_res=`eval echo '${'$as_ac_Header'}'`
13061                { echo "$as_me:$LINENO: result: $ac_res" >&5
13062 echo "${ECHO_T}$ac_res" >&6; }
13063 else
13064   # Is the header compilable?
13065 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13066 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13067 cat >conftest.$ac_ext <<_ACEOF
13068 /* confdefs.h.  */
13069 _ACEOF
13070 cat confdefs.h >>conftest.$ac_ext
13071 cat >>conftest.$ac_ext <<_ACEOF
13072 /* end confdefs.h.  */
13073 $ac_includes_default
13074 #include <$ac_header>
13075 _ACEOF
13076 rm -f conftest.$ac_objext
13077 if { (ac_try="$ac_compile"
13078 case "(($ac_try" in
13079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13080   *) ac_try_echo=$ac_try;;
13081 esac
13082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13083   (eval "$ac_compile") 2>conftest.er1
13084   ac_status=$?
13085   grep -v '^ *+' conftest.er1 >conftest.err
13086   rm -f conftest.er1
13087   cat conftest.err >&5
13088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13089   (exit $ac_status); } && {
13090          test -z "$ac_c_werror_flag" ||
13091          test ! -s conftest.err
13092        } && test -s conftest.$ac_objext; then
13093   ac_header_compiler=yes
13094 else
13095   echo "$as_me: failed program was:" >&5
13096 sed 's/^/| /' conftest.$ac_ext >&5
13097
13098         ac_header_compiler=no
13099 fi
13100
13101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13102 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13103 echo "${ECHO_T}$ac_header_compiler" >&6; }
13104
13105 # Is the header present?
13106 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13107 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13108 cat >conftest.$ac_ext <<_ACEOF
13109 /* confdefs.h.  */
13110 _ACEOF
13111 cat confdefs.h >>conftest.$ac_ext
13112 cat >>conftest.$ac_ext <<_ACEOF
13113 /* end confdefs.h.  */
13114 #include <$ac_header>
13115 _ACEOF
13116 if { (ac_try="$ac_cpp conftest.$ac_ext"
13117 case "(($ac_try" in
13118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13119   *) ac_try_echo=$ac_try;;
13120 esac
13121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13122   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13123   ac_status=$?
13124   grep -v '^ *+' conftest.er1 >conftest.err
13125   rm -f conftest.er1
13126   cat conftest.err >&5
13127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13128   (exit $ac_status); } >/dev/null && {
13129          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13130          test ! -s conftest.err
13131        }; then
13132   ac_header_preproc=yes
13133 else
13134   echo "$as_me: failed program was:" >&5
13135 sed 's/^/| /' conftest.$ac_ext >&5
13136
13137   ac_header_preproc=no
13138 fi
13139
13140 rm -f conftest.err conftest.$ac_ext
13141 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13142 echo "${ECHO_T}$ac_header_preproc" >&6; }
13143
13144 # So?  What about this header?
13145 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13146   yes:no: )
13147     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13148 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13149     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13150 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13151     ac_header_preproc=yes
13152     ;;
13153   no:yes:* )
13154     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13155 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13156     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13157 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13158     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13159 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13160     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13161 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13162     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13163 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13164     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13165 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13166
13167     ;;
13168 esac
13169 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13170 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13171 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13172   echo $ECHO_N "(cached) $ECHO_C" >&6
13173 else
13174   eval "$as_ac_Header=\$ac_header_preproc"
13175 fi
13176 ac_res=`eval echo '${'$as_ac_Header'}'`
13177                { echo "$as_me:$LINENO: result: $ac_res" >&5
13178 echo "${ECHO_T}$ac_res" >&6; }
13179
13180 fi
13181 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13182   cat >>confdefs.h <<_ACEOF
13183 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13184 _ACEOF
13185
13186 fi
13187
13188 done
13189
13190
13191 for ac_header in err.h
13192 do
13193 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13194 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13195   { echo "$as_me:$LINENO: checking for $ac_header" >&5
13196 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13197 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13198   echo $ECHO_N "(cached) $ECHO_C" >&6
13199 fi
13200 ac_res=`eval echo '${'$as_ac_Header'}'`
13201                { echo "$as_me:$LINENO: result: $ac_res" >&5
13202 echo "${ECHO_T}$ac_res" >&6; }
13203 else
13204   # Is the header compilable?
13205 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13206 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13207 cat >conftest.$ac_ext <<_ACEOF
13208 /* confdefs.h.  */
13209 _ACEOF
13210 cat confdefs.h >>conftest.$ac_ext
13211 cat >>conftest.$ac_ext <<_ACEOF
13212 /* end confdefs.h.  */
13213 $ac_includes_default
13214 #include <$ac_header>
13215 _ACEOF
13216 rm -f conftest.$ac_objext
13217 if { (ac_try="$ac_compile"
13218 case "(($ac_try" in
13219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13220   *) ac_try_echo=$ac_try;;
13221 esac
13222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13223   (eval "$ac_compile") 2>conftest.er1
13224   ac_status=$?
13225   grep -v '^ *+' conftest.er1 >conftest.err
13226   rm -f conftest.er1
13227   cat conftest.err >&5
13228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13229   (exit $ac_status); } && {
13230          test -z "$ac_c_werror_flag" ||
13231          test ! -s conftest.err
13232        } && test -s conftest.$ac_objext; then
13233   ac_header_compiler=yes
13234 else
13235   echo "$as_me: failed program was:" >&5
13236 sed 's/^/| /' conftest.$ac_ext >&5
13237
13238         ac_header_compiler=no
13239 fi
13240
13241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13242 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13243 echo "${ECHO_T}$ac_header_compiler" >&6; }
13244
13245 # Is the header present?
13246 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13247 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13248 cat >conftest.$ac_ext <<_ACEOF
13249 /* confdefs.h.  */
13250 _ACEOF
13251 cat confdefs.h >>conftest.$ac_ext
13252 cat >>conftest.$ac_ext <<_ACEOF
13253 /* end confdefs.h.  */
13254 #include <$ac_header>
13255 _ACEOF
13256 if { (ac_try="$ac_cpp conftest.$ac_ext"
13257 case "(($ac_try" in
13258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13259   *) ac_try_echo=$ac_try;;
13260 esac
13261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13262   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13263   ac_status=$?
13264   grep -v '^ *+' conftest.er1 >conftest.err
13265   rm -f conftest.er1
13266   cat conftest.err >&5
13267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13268   (exit $ac_status); } >/dev/null && {
13269          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13270          test ! -s conftest.err
13271        }; then
13272   ac_header_preproc=yes
13273 else
13274   echo "$as_me: failed program was:" >&5
13275 sed 's/^/| /' conftest.$ac_ext >&5
13276
13277   ac_header_preproc=no
13278 fi
13279
13280 rm -f conftest.err conftest.$ac_ext
13281 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13282 echo "${ECHO_T}$ac_header_preproc" >&6; }
13283
13284 # So?  What about this header?
13285 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13286   yes:no: )
13287     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13288 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13289     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13290 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13291     ac_header_preproc=yes
13292     ;;
13293   no:yes:* )
13294     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13295 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13296     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13297 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13298     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13299 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13300     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13301 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13302     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13303 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13304     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13305 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13306
13307     ;;
13308 esac
13309 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13310 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13311 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13312   echo $ECHO_N "(cached) $ECHO_C" >&6
13313 else
13314   eval "$as_ac_Header=\$ac_header_preproc"
13315 fi
13316 ac_res=`eval echo '${'$as_ac_Header'}'`
13317                { echo "$as_me:$LINENO: result: $ac_res" >&5
13318 echo "${ECHO_T}$ac_res" >&6; }
13319
13320 fi
13321 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13322   cat >>confdefs.h <<_ACEOF
13323 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13324 _ACEOF
13325
13326 else
13327   case " $LIBOBJS " in
13328   *" err.$ac_objext "* ) ;;
13329   *) LIBOBJS="$LIBOBJS err.$ac_objext"
13330  ;;
13331 esac
13332
13333 fi
13334
13335 done
13336
13337 if test "$OS" != "ultrix"; then
13338     { echo "$as_me:$LINENO: checking POSIX termios" >&5
13339 echo $ECHO_N "checking POSIX termios... $ECHO_C" >&6; }
13340 if test "${ac_cv_sys_posix_termios+set}" = set; then
13341   echo $ECHO_N "(cached) $ECHO_C" >&6
13342 else
13343   cat >conftest.$ac_ext <<_ACEOF
13344 /* confdefs.h.  */
13345 _ACEOF
13346 cat confdefs.h >>conftest.$ac_ext
13347 cat >>conftest.$ac_ext <<_ACEOF
13348 /* end confdefs.h.  */
13349 #include <sys/types.h>
13350 #include <unistd.h>
13351 #include <termios.h>
13352
13353 int
13354 main ()
13355 {
13356 /* SunOS 4.0.3 has termios.h but not the library calls.  */
13357    tcgetattr(0, 0);
13358   ;
13359   return 0;
13360 }
13361 _ACEOF
13362 rm -f conftest.$ac_objext conftest$ac_exeext
13363 if { (ac_try="$ac_link"
13364 case "(($ac_try" in
13365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13366   *) ac_try_echo=$ac_try;;
13367 esac
13368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13369   (eval "$ac_link") 2>conftest.er1
13370   ac_status=$?
13371   grep -v '^ *+' conftest.er1 >conftest.err
13372   rm -f conftest.er1
13373   cat conftest.err >&5
13374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13375   (exit $ac_status); } && {
13376          test -z "$ac_c_werror_flag" ||
13377          test ! -s conftest.err
13378        } && test -s conftest$ac_exeext &&
13379        $as_test_x conftest$ac_exeext; then
13380   ac_cv_sys_posix_termios=yes
13381 else
13382   echo "$as_me: failed program was:" >&5
13383 sed 's/^/| /' conftest.$ac_ext >&5
13384
13385         ac_cv_sys_posix_termios=no
13386 fi
13387
13388 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13389       conftest$ac_exeext conftest.$ac_ext
13390 fi
13391 { echo "$as_me:$LINENO: result: $ac_cv_sys_posix_termios" >&5
13392 echo "${ECHO_T}$ac_cv_sys_posix_termios" >&6; }
13393
13394     if test "$ac_cv_sys_posix_termios" = "yes"; then
13395         cat >>confdefs.h <<\_ACEOF
13396 #define HAVE_TERMIOS_H 1
13397 _ACEOF
13398
13399     else
13400
13401 for ac_header in termio.h
13402 do
13403 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13404 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13405   { echo "$as_me:$LINENO: checking for $ac_header" >&5
13406 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13407 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13408   echo $ECHO_N "(cached) $ECHO_C" >&6
13409 fi
13410 ac_res=`eval echo '${'$as_ac_Header'}'`
13411                { echo "$as_me:$LINENO: result: $ac_res" >&5
13412 echo "${ECHO_T}$ac_res" >&6; }
13413 else
13414   # Is the header compilable?
13415 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13416 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13417 cat >conftest.$ac_ext <<_ACEOF
13418 /* confdefs.h.  */
13419 _ACEOF
13420 cat confdefs.h >>conftest.$ac_ext
13421 cat >>conftest.$ac_ext <<_ACEOF
13422 /* end confdefs.h.  */
13423 $ac_includes_default
13424 #include <$ac_header>
13425 _ACEOF
13426 rm -f conftest.$ac_objext
13427 if { (ac_try="$ac_compile"
13428 case "(($ac_try" in
13429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13430   *) ac_try_echo=$ac_try;;
13431 esac
13432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13433   (eval "$ac_compile") 2>conftest.er1
13434   ac_status=$?
13435   grep -v '^ *+' conftest.er1 >conftest.err
13436   rm -f conftest.er1
13437   cat conftest.err >&5
13438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13439   (exit $ac_status); } && {
13440          test -z "$ac_c_werror_flag" ||
13441          test ! -s conftest.err
13442        } && test -s conftest.$ac_objext; then
13443   ac_header_compiler=yes
13444 else
13445   echo "$as_me: failed program was:" >&5
13446 sed 's/^/| /' conftest.$ac_ext >&5
13447
13448         ac_header_compiler=no
13449 fi
13450
13451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13452 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13453 echo "${ECHO_T}$ac_header_compiler" >&6; }
13454
13455 # Is the header present?
13456 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13457 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13458 cat >conftest.$ac_ext <<_ACEOF
13459 /* confdefs.h.  */
13460 _ACEOF
13461 cat confdefs.h >>conftest.$ac_ext
13462 cat >>conftest.$ac_ext <<_ACEOF
13463 /* end confdefs.h.  */
13464 #include <$ac_header>
13465 _ACEOF
13466 if { (ac_try="$ac_cpp conftest.$ac_ext"
13467 case "(($ac_try" in
13468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13469   *) ac_try_echo=$ac_try;;
13470 esac
13471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13472   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13473   ac_status=$?
13474   grep -v '^ *+' conftest.er1 >conftest.err
13475   rm -f conftest.er1
13476   cat conftest.err >&5
13477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13478   (exit $ac_status); } >/dev/null && {
13479          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13480          test ! -s conftest.err
13481        }; then
13482   ac_header_preproc=yes
13483 else
13484   echo "$as_me: failed program was:" >&5
13485 sed 's/^/| /' conftest.$ac_ext >&5
13486
13487   ac_header_preproc=no
13488 fi
13489
13490 rm -f conftest.err conftest.$ac_ext
13491 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13492 echo "${ECHO_T}$ac_header_preproc" >&6; }
13493
13494 # So?  What about this header?
13495 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13496   yes:no: )
13497     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13498 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13499     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13500 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13501     ac_header_preproc=yes
13502     ;;
13503   no:yes:* )
13504     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13505 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13506     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13507 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13508     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13509 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13510     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13511 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13512     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13513 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13514     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13515 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13516
13517     ;;
13518 esac
13519 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13520 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13521 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13522   echo $ECHO_N "(cached) $ECHO_C" >&6
13523 else
13524   eval "$as_ac_Header=\$ac_header_preproc"
13525 fi
13526 ac_res=`eval echo '${'$as_ac_Header'}'`
13527                { echo "$as_me:$LINENO: result: $ac_res" >&5
13528 echo "${ECHO_T}$ac_res" >&6; }
13529
13530 fi
13531 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13532   cat >>confdefs.h <<_ACEOF
13533 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13534 _ACEOF
13535
13536 fi
13537
13538 done
13539
13540     fi
13541 fi
13542 if test ${with_logincap-'no'} != "no"; then
13543
13544 for ac_header in login_cap.h
13545 do
13546 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13547 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13548   { echo "$as_me:$LINENO: checking for $ac_header" >&5
13549 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13550 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13551   echo $ECHO_N "(cached) $ECHO_C" >&6
13552 fi
13553 ac_res=`eval echo '${'$as_ac_Header'}'`
13554                { echo "$as_me:$LINENO: result: $ac_res" >&5
13555 echo "${ECHO_T}$ac_res" >&6; }
13556 else
13557   # Is the header compilable?
13558 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13559 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13560 cat >conftest.$ac_ext <<_ACEOF
13561 /* confdefs.h.  */
13562 _ACEOF
13563 cat confdefs.h >>conftest.$ac_ext
13564 cat >>conftest.$ac_ext <<_ACEOF
13565 /* end confdefs.h.  */
13566 $ac_includes_default
13567 #include <$ac_header>
13568 _ACEOF
13569 rm -f conftest.$ac_objext
13570 if { (ac_try="$ac_compile"
13571 case "(($ac_try" in
13572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13573   *) ac_try_echo=$ac_try;;
13574 esac
13575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13576   (eval "$ac_compile") 2>conftest.er1
13577   ac_status=$?
13578   grep -v '^ *+' conftest.er1 >conftest.err
13579   rm -f conftest.er1
13580   cat conftest.err >&5
13581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13582   (exit $ac_status); } && {
13583          test -z "$ac_c_werror_flag" ||
13584          test ! -s conftest.err
13585        } && test -s conftest.$ac_objext; then
13586   ac_header_compiler=yes
13587 else
13588   echo "$as_me: failed program was:" >&5
13589 sed 's/^/| /' conftest.$ac_ext >&5
13590
13591         ac_header_compiler=no
13592 fi
13593
13594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13595 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13596 echo "${ECHO_T}$ac_header_compiler" >&6; }
13597
13598 # Is the header present?
13599 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13600 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13601 cat >conftest.$ac_ext <<_ACEOF
13602 /* confdefs.h.  */
13603 _ACEOF
13604 cat confdefs.h >>conftest.$ac_ext
13605 cat >>conftest.$ac_ext <<_ACEOF
13606 /* end confdefs.h.  */
13607 #include <$ac_header>
13608 _ACEOF
13609 if { (ac_try="$ac_cpp conftest.$ac_ext"
13610 case "(($ac_try" in
13611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13612   *) ac_try_echo=$ac_try;;
13613 esac
13614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13615   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13616   ac_status=$?
13617   grep -v '^ *+' conftest.er1 >conftest.err
13618   rm -f conftest.er1
13619   cat conftest.err >&5
13620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13621   (exit $ac_status); } >/dev/null && {
13622          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13623          test ! -s conftest.err
13624        }; then
13625   ac_header_preproc=yes
13626 else
13627   echo "$as_me: failed program was:" >&5
13628 sed 's/^/| /' conftest.$ac_ext >&5
13629
13630   ac_header_preproc=no
13631 fi
13632
13633 rm -f conftest.err conftest.$ac_ext
13634 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13635 echo "${ECHO_T}$ac_header_preproc" >&6; }
13636
13637 # So?  What about this header?
13638 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13639   yes:no: )
13640     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13641 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13642     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13643 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13644     ac_header_preproc=yes
13645     ;;
13646   no:yes:* )
13647     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13648 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13649     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13650 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13651     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13652 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13653     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13654 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13655     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13656 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13657     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13658 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13659
13660     ;;
13661 esac
13662 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13663 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13664 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13665   echo $ECHO_N "(cached) $ECHO_C" >&6
13666 else
13667   eval "$as_ac_Header=\$ac_header_preproc"
13668 fi
13669 ac_res=`eval echo '${'$as_ac_Header'}'`
13670                { echo "$as_me:$LINENO: result: $ac_res" >&5
13671 echo "${ECHO_T}$ac_res" >&6; }
13672
13673 fi
13674 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13675   cat >>confdefs.h <<_ACEOF
13676 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13677 _ACEOF
13678
13679         case "$OS" in
13680             freebsd|netbsd)     SUDO_LIBS="${SUDO_LIBS} -lutil"
13681             ;;
13682         esac
13683
13684 fi
13685
13686 done
13687
13688 fi
13689 if test ${with_project-'no'} != "no"; then
13690     if test "${ac_cv_header_project_h+set}" = set; then
13691   { echo "$as_me:$LINENO: checking for project.h" >&5
13692 echo $ECHO_N "checking for project.h... $ECHO_C" >&6; }
13693 if test "${ac_cv_header_project_h+set}" = set; then
13694   echo $ECHO_N "(cached) $ECHO_C" >&6
13695 fi
13696 { echo "$as_me:$LINENO: result: $ac_cv_header_project_h" >&5
13697 echo "${ECHO_T}$ac_cv_header_project_h" >&6; }
13698 else
13699   # Is the header compilable?
13700 { echo "$as_me:$LINENO: checking project.h usability" >&5
13701 echo $ECHO_N "checking project.h usability... $ECHO_C" >&6; }
13702 cat >conftest.$ac_ext <<_ACEOF
13703 /* confdefs.h.  */
13704 _ACEOF
13705 cat confdefs.h >>conftest.$ac_ext
13706 cat >>conftest.$ac_ext <<_ACEOF
13707 /* end confdefs.h.  */
13708 $ac_includes_default
13709 #include <project.h>
13710 _ACEOF
13711 rm -f conftest.$ac_objext
13712 if { (ac_try="$ac_compile"
13713 case "(($ac_try" in
13714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13715   *) ac_try_echo=$ac_try;;
13716 esac
13717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13718   (eval "$ac_compile") 2>conftest.er1
13719   ac_status=$?
13720   grep -v '^ *+' conftest.er1 >conftest.err
13721   rm -f conftest.er1
13722   cat conftest.err >&5
13723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13724   (exit $ac_status); } && {
13725          test -z "$ac_c_werror_flag" ||
13726          test ! -s conftest.err
13727        } && test -s conftest.$ac_objext; then
13728   ac_header_compiler=yes
13729 else
13730   echo "$as_me: failed program was:" >&5
13731 sed 's/^/| /' conftest.$ac_ext >&5
13732
13733         ac_header_compiler=no
13734 fi
13735
13736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13737 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13738 echo "${ECHO_T}$ac_header_compiler" >&6; }
13739
13740 # Is the header present?
13741 { echo "$as_me:$LINENO: checking project.h presence" >&5
13742 echo $ECHO_N "checking project.h presence... $ECHO_C" >&6; }
13743 cat >conftest.$ac_ext <<_ACEOF
13744 /* confdefs.h.  */
13745 _ACEOF
13746 cat confdefs.h >>conftest.$ac_ext
13747 cat >>conftest.$ac_ext <<_ACEOF
13748 /* end confdefs.h.  */
13749 #include <project.h>
13750 _ACEOF
13751 if { (ac_try="$ac_cpp conftest.$ac_ext"
13752 case "(($ac_try" in
13753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13754   *) ac_try_echo=$ac_try;;
13755 esac
13756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13757   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13758   ac_status=$?
13759   grep -v '^ *+' conftest.er1 >conftest.err
13760   rm -f conftest.er1
13761   cat conftest.err >&5
13762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13763   (exit $ac_status); } >/dev/null && {
13764          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13765          test ! -s conftest.err
13766        }; then
13767   ac_header_preproc=yes
13768 else
13769   echo "$as_me: failed program was:" >&5
13770 sed 's/^/| /' conftest.$ac_ext >&5
13771
13772   ac_header_preproc=no
13773 fi
13774
13775 rm -f conftest.err conftest.$ac_ext
13776 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13777 echo "${ECHO_T}$ac_header_preproc" >&6; }
13778
13779 # So?  What about this header?
13780 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13781   yes:no: )
13782     { echo "$as_me:$LINENO: WARNING: project.h: accepted by the compiler, rejected by the preprocessor!" >&5
13783 echo "$as_me: WARNING: project.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13784     { echo "$as_me:$LINENO: WARNING: project.h: proceeding with the compiler's result" >&5
13785 echo "$as_me: WARNING: project.h: proceeding with the compiler's result" >&2;}
13786     ac_header_preproc=yes
13787     ;;
13788   no:yes:* )
13789     { echo "$as_me:$LINENO: WARNING: project.h: present but cannot be compiled" >&5
13790 echo "$as_me: WARNING: project.h: present but cannot be compiled" >&2;}
13791     { echo "$as_me:$LINENO: WARNING: project.h:     check for missing prerequisite headers?" >&5
13792 echo "$as_me: WARNING: project.h:     check for missing prerequisite headers?" >&2;}
13793     { echo "$as_me:$LINENO: WARNING: project.h: see the Autoconf documentation" >&5
13794 echo "$as_me: WARNING: project.h: see the Autoconf documentation" >&2;}
13795     { echo "$as_me:$LINENO: WARNING: project.h:     section \"Present But Cannot Be Compiled\"" >&5
13796 echo "$as_me: WARNING: project.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13797     { echo "$as_me:$LINENO: WARNING: project.h: proceeding with the preprocessor's result" >&5
13798 echo "$as_me: WARNING: project.h: proceeding with the preprocessor's result" >&2;}
13799     { echo "$as_me:$LINENO: WARNING: project.h: in the future, the compiler will take precedence" >&5
13800 echo "$as_me: WARNING: project.h: in the future, the compiler will take precedence" >&2;}
13801
13802     ;;
13803 esac
13804 { echo "$as_me:$LINENO: checking for project.h" >&5
13805 echo $ECHO_N "checking for project.h... $ECHO_C" >&6; }
13806 if test "${ac_cv_header_project_h+set}" = set; then
13807   echo $ECHO_N "(cached) $ECHO_C" >&6
13808 else
13809   ac_cv_header_project_h=$ac_header_preproc
13810 fi
13811 { echo "$as_me:$LINENO: result: $ac_cv_header_project_h" >&5
13812 echo "${ECHO_T}$ac_cv_header_project_h" >&6; }
13813
13814 fi
13815 if test $ac_cv_header_project_h = yes; then
13816   cat >>confdefs.h <<\_ACEOF
13817 #define HAVE_PROJECT_H 1
13818 _ACEOF
13819
13820         SUDO_LIBS="${SUDO_LIBS} -lproject"
13821 else
13822   -
13823 fi
13824
13825
13826 fi
13827 { echo "$as_me:$LINENO: checking for mode_t" >&5
13828 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
13829 if test "${ac_cv_type_mode_t+set}" = set; then
13830   echo $ECHO_N "(cached) $ECHO_C" >&6
13831 else
13832   cat >conftest.$ac_ext <<_ACEOF
13833 /* confdefs.h.  */
13834 _ACEOF
13835 cat confdefs.h >>conftest.$ac_ext
13836 cat >>conftest.$ac_ext <<_ACEOF
13837 /* end confdefs.h.  */
13838 $ac_includes_default
13839 typedef mode_t ac__type_new_;
13840 int
13841 main ()
13842 {
13843 if ((ac__type_new_ *) 0)
13844   return 0;
13845 if (sizeof (ac__type_new_))
13846   return 0;
13847   ;
13848   return 0;
13849 }
13850 _ACEOF
13851 rm -f conftest.$ac_objext
13852 if { (ac_try="$ac_compile"
13853 case "(($ac_try" in
13854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13855   *) ac_try_echo=$ac_try;;
13856 esac
13857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13858   (eval "$ac_compile") 2>conftest.er1
13859   ac_status=$?
13860   grep -v '^ *+' conftest.er1 >conftest.err
13861   rm -f conftest.er1
13862   cat conftest.err >&5
13863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13864   (exit $ac_status); } && {
13865          test -z "$ac_c_werror_flag" ||
13866          test ! -s conftest.err
13867        } && test -s conftest.$ac_objext; then
13868   ac_cv_type_mode_t=yes
13869 else
13870   echo "$as_me: failed program was:" >&5
13871 sed 's/^/| /' conftest.$ac_ext >&5
13872
13873         ac_cv_type_mode_t=no
13874 fi
13875
13876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13877 fi
13878 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
13879 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
13880 if test $ac_cv_type_mode_t = yes; then
13881   :
13882 else
13883
13884 cat >>confdefs.h <<_ACEOF
13885 #define mode_t int
13886 _ACEOF
13887
13888 fi
13889
13890 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
13891 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
13892 if test "${ac_cv_type_uid_t+set}" = set; then
13893   echo $ECHO_N "(cached) $ECHO_C" >&6
13894 else
13895   cat >conftest.$ac_ext <<_ACEOF
13896 /* confdefs.h.  */
13897 _ACEOF
13898 cat confdefs.h >>conftest.$ac_ext
13899 cat >>conftest.$ac_ext <<_ACEOF
13900 /* end confdefs.h.  */
13901 #include <sys/types.h>
13902
13903 _ACEOF
13904 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13905   $EGREP "uid_t" >/dev/null 2>&1; then
13906   ac_cv_type_uid_t=yes
13907 else
13908   ac_cv_type_uid_t=no
13909 fi
13910 rm -f conftest*
13911
13912 fi
13913 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
13914 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
13915 if test $ac_cv_type_uid_t = no; then
13916
13917 cat >>confdefs.h <<\_ACEOF
13918 #define uid_t int
13919 _ACEOF
13920
13921
13922 cat >>confdefs.h <<\_ACEOF
13923 #define gid_t int
13924 _ACEOF
13925
13926 fi
13927
13928 { echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
13929 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6; }
13930 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
13931   echo $ECHO_N "(cached) $ECHO_C" >&6
13932 else
13933   cat >conftest.$ac_ext <<_ACEOF
13934 /* confdefs.h.  */
13935 _ACEOF
13936 cat confdefs.h >>conftest.$ac_ext
13937 cat >>conftest.$ac_ext <<_ACEOF
13938 /* end confdefs.h.  */
13939 #include <sys/types.h>
13940 #include <signal.h>
13941
13942 typedef sig_atomic_t ac__type_new_;
13943 int
13944 main ()
13945 {
13946 if ((ac__type_new_ *) 0)
13947   return 0;
13948 if (sizeof (ac__type_new_))
13949   return 0;
13950   ;
13951   return 0;
13952 }
13953 _ACEOF
13954 rm -f conftest.$ac_objext
13955 if { (ac_try="$ac_compile"
13956 case "(($ac_try" in
13957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13958   *) ac_try_echo=$ac_try;;
13959 esac
13960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13961   (eval "$ac_compile") 2>conftest.er1
13962   ac_status=$?
13963   grep -v '^ *+' conftest.er1 >conftest.err
13964   rm -f conftest.er1
13965   cat conftest.err >&5
13966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13967   (exit $ac_status); } && {
13968          test -z "$ac_c_werror_flag" ||
13969          test ! -s conftest.err
13970        } && test -s conftest.$ac_objext; then
13971   ac_cv_type_sig_atomic_t=yes
13972 else
13973   echo "$as_me: failed program was:" >&5
13974 sed 's/^/| /' conftest.$ac_ext >&5
13975
13976         ac_cv_type_sig_atomic_t=no
13977 fi
13978
13979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13980 fi
13981 { echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
13982 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6; }
13983 if test $ac_cv_type_sig_atomic_t = yes; then
13984
13985 cat >>confdefs.h <<_ACEOF
13986 #define HAVE_SIG_ATOMIC_T 1
13987 _ACEOF
13988
13989
13990 else
13991   cat >>confdefs.h <<\_ACEOF
13992 #define sig_atomic_t int
13993 _ACEOF
13994
13995 fi
13996
13997 { echo "$as_me:$LINENO: checking for sigaction_t" >&5
13998 echo $ECHO_N "checking for sigaction_t... $ECHO_C" >&6; }
13999 if test "${ac_cv_type_sigaction_t+set}" = set; then
14000   echo $ECHO_N "(cached) $ECHO_C" >&6
14001 else
14002   cat >conftest.$ac_ext <<_ACEOF
14003 /* confdefs.h.  */
14004 _ACEOF
14005 cat confdefs.h >>conftest.$ac_ext
14006 cat >>conftest.$ac_ext <<_ACEOF
14007 /* end confdefs.h.  */
14008 #include <sys/types.h>
14009 #include <signal.h>
14010
14011 typedef sigaction_t ac__type_new_;
14012 int
14013 main ()
14014 {
14015 if ((ac__type_new_ *) 0)
14016   return 0;
14017 if (sizeof (ac__type_new_))
14018   return 0;
14019   ;
14020   return 0;
14021 }
14022 _ACEOF
14023 rm -f conftest.$ac_objext
14024 if { (ac_try="$ac_compile"
14025 case "(($ac_try" in
14026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14027   *) ac_try_echo=$ac_try;;
14028 esac
14029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14030   (eval "$ac_compile") 2>conftest.er1
14031   ac_status=$?
14032   grep -v '^ *+' conftest.er1 >conftest.err
14033   rm -f conftest.er1
14034   cat conftest.err >&5
14035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14036   (exit $ac_status); } && {
14037          test -z "$ac_c_werror_flag" ||
14038          test ! -s conftest.err
14039        } && test -s conftest.$ac_objext; then
14040   ac_cv_type_sigaction_t=yes
14041 else
14042   echo "$as_me: failed program was:" >&5
14043 sed 's/^/| /' conftest.$ac_ext >&5
14044
14045         ac_cv_type_sigaction_t=no
14046 fi
14047
14048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14049 fi
14050 { echo "$as_me:$LINENO: result: $ac_cv_type_sigaction_t" >&5
14051 echo "${ECHO_T}$ac_cv_type_sigaction_t" >&6; }
14052 if test $ac_cv_type_sigaction_t = yes; then
14053
14054 cat >>confdefs.h <<_ACEOF
14055 #define HAVE_SIGACTION_T 1
14056 _ACEOF
14057
14058 cat >>confdefs.h <<\_ACEOF
14059 #define HAVE_SIGACTION_T 1
14060 _ACEOF
14061
14062 fi
14063
14064 { echo "$as_me:$LINENO: checking for struct timespec" >&5
14065 echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6; }
14066 if test "${ac_cv_type_struct_timespec+set}" = set; then
14067   echo $ECHO_N "(cached) $ECHO_C" >&6
14068 else
14069   cat >conftest.$ac_ext <<_ACEOF
14070 /* confdefs.h.  */
14071 _ACEOF
14072 cat confdefs.h >>conftest.$ac_ext
14073 cat >>conftest.$ac_ext <<_ACEOF
14074 /* end confdefs.h.  */
14075 #include <sys/types.h>
14076 #if TIME_WITH_SYS_TIME
14077 # include <sys/time.h>
14078 #endif
14079 #include <time.h>
14080
14081 typedef struct timespec ac__type_new_;
14082 int
14083 main ()
14084 {
14085 if ((ac__type_new_ *) 0)
14086   return 0;
14087 if (sizeof (ac__type_new_))
14088   return 0;
14089   ;
14090   return 0;
14091 }
14092 _ACEOF
14093 rm -f conftest.$ac_objext
14094 if { (ac_try="$ac_compile"
14095 case "(($ac_try" in
14096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14097   *) ac_try_echo=$ac_try;;
14098 esac
14099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14100   (eval "$ac_compile") 2>conftest.er1
14101   ac_status=$?
14102   grep -v '^ *+' conftest.er1 >conftest.err
14103   rm -f conftest.er1
14104   cat conftest.err >&5
14105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14106   (exit $ac_status); } && {
14107          test -z "$ac_c_werror_flag" ||
14108          test ! -s conftest.err
14109        } && test -s conftest.$ac_objext; then
14110   ac_cv_type_struct_timespec=yes
14111 else
14112   echo "$as_me: failed program was:" >&5
14113 sed 's/^/| /' conftest.$ac_ext >&5
14114
14115         ac_cv_type_struct_timespec=no
14116 fi
14117
14118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14119 fi
14120 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_timespec" >&5
14121 echo "${ECHO_T}$ac_cv_type_struct_timespec" >&6; }
14122 if test $ac_cv_type_struct_timespec = yes; then
14123   cat >>confdefs.h <<\_ACEOF
14124 #define HAVE_TIMESPEC 1
14125 _ACEOF
14126
14127 fi
14128
14129 { echo "$as_me:$LINENO: checking for struct in6_addr" >&5
14130 echo $ECHO_N "checking for struct in6_addr... $ECHO_C" >&6; }
14131 if test "${ac_cv_type_struct_in6_addr+set}" = set; then
14132   echo $ECHO_N "(cached) $ECHO_C" >&6
14133 else
14134   cat >conftest.$ac_ext <<_ACEOF
14135 /* confdefs.h.  */
14136 _ACEOF
14137 cat confdefs.h >>conftest.$ac_ext
14138 cat >>conftest.$ac_ext <<_ACEOF
14139 /* end confdefs.h.  */
14140 #include <sys/types.h>
14141 #include <netinet/in.h>
14142
14143 typedef struct in6_addr ac__type_new_;
14144 int
14145 main ()
14146 {
14147 if ((ac__type_new_ *) 0)
14148   return 0;
14149 if (sizeof (ac__type_new_))
14150   return 0;
14151   ;
14152   return 0;
14153 }
14154 _ACEOF
14155 rm -f conftest.$ac_objext
14156 if { (ac_try="$ac_compile"
14157 case "(($ac_try" in
14158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14159   *) ac_try_echo=$ac_try;;
14160 esac
14161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14162   (eval "$ac_compile") 2>conftest.er1
14163   ac_status=$?
14164   grep -v '^ *+' conftest.er1 >conftest.err
14165   rm -f conftest.er1
14166   cat conftest.err >&5
14167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14168   (exit $ac_status); } && {
14169          test -z "$ac_c_werror_flag" ||
14170          test ! -s conftest.err
14171        } && test -s conftest.$ac_objext; then
14172   ac_cv_type_struct_in6_addr=yes
14173 else
14174   echo "$as_me: failed program was:" >&5
14175 sed 's/^/| /' conftest.$ac_ext >&5
14176
14177         ac_cv_type_struct_in6_addr=no
14178 fi
14179
14180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14181 fi
14182 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_in6_addr" >&5
14183 echo "${ECHO_T}$ac_cv_type_struct_in6_addr" >&6; }
14184 if test $ac_cv_type_struct_in6_addr = yes; then
14185
14186 cat >>confdefs.h <<_ACEOF
14187 #define HAVE_STRUCT_IN6_ADDR 1
14188 _ACEOF
14189
14190 cat >>confdefs.h <<\_ACEOF
14191 #define HAVE_IN6_ADDR 1
14192 _ACEOF
14193
14194 fi
14195
14196 { echo "$as_me:$LINENO: checking for size_t" >&5
14197 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
14198 if test "${sudo_cv_type_size_t+set}" = set; then
14199   echo $ECHO_N "(cached) $ECHO_C" >&6
14200 else
14201   cat >conftest.$ac_ext <<_ACEOF
14202 /* confdefs.h.  */
14203 _ACEOF
14204 cat confdefs.h >>conftest.$ac_ext
14205 cat >>conftest.$ac_ext <<_ACEOF
14206 /* end confdefs.h.  */
14207 #include <sys/types.h>
14208 #include <stdio.h>
14209 #if STDC_HEADERS
14210 #include <stdlib.h>
14211 #endif
14212 #if HAVE_UNISTD_H
14213 #include <unistd.h>
14214 #endif
14215 _ACEOF
14216 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14217   $EGREP "size_t" >/dev/null 2>&1; then
14218   sudo_cv_type_size_t=yes
14219 else
14220   sudo_cv_type_size_t=no
14221 fi
14222 rm -f conftest*
14223
14224 fi
14225 { echo "$as_me:$LINENO: result: $sudo_cv_type_size_t" >&5
14226 echo "${ECHO_T}$sudo_cv_type_size_t" >&6; }
14227 if test $sudo_cv_type_size_t = no; then
14228
14229 cat >>confdefs.h <<\_ACEOF
14230 #define size_t int
14231 _ACEOF
14232
14233 fi
14234
14235 { echo "$as_me:$LINENO: checking for ssize_t" >&5
14236 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
14237 if test "${sudo_cv_type_ssize_t+set}" = set; then
14238   echo $ECHO_N "(cached) $ECHO_C" >&6
14239 else
14240   cat >conftest.$ac_ext <<_ACEOF
14241 /* confdefs.h.  */
14242 _ACEOF
14243 cat confdefs.h >>conftest.$ac_ext
14244 cat >>conftest.$ac_ext <<_ACEOF
14245 /* end confdefs.h.  */
14246 #include <sys/types.h>
14247 #include <stdio.h>
14248 #if STDC_HEADERS
14249 #include <stdlib.h>
14250 #endif
14251 #if HAVE_UNISTD_H
14252 #include <unistd.h>
14253 #endif
14254 _ACEOF
14255 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14256   $EGREP "ssize_t" >/dev/null 2>&1; then
14257   sudo_cv_type_ssize_t=yes
14258 else
14259   sudo_cv_type_ssize_t=no
14260 fi
14261 rm -f conftest*
14262
14263 fi
14264 { echo "$as_me:$LINENO: result: $sudo_cv_type_ssize_t" >&5
14265 echo "${ECHO_T}$sudo_cv_type_ssize_t" >&6; }
14266 if test $sudo_cv_type_ssize_t = no; then
14267
14268 cat >>confdefs.h <<\_ACEOF
14269 #define ssize_t int
14270 _ACEOF
14271
14272 fi
14273
14274 { echo "$as_me:$LINENO: checking for dev_t" >&5
14275 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
14276 if test "${sudo_cv_type_dev_t+set}" = set; then
14277   echo $ECHO_N "(cached) $ECHO_C" >&6
14278 else
14279   cat >conftest.$ac_ext <<_ACEOF
14280 /* confdefs.h.  */
14281 _ACEOF
14282 cat confdefs.h >>conftest.$ac_ext
14283 cat >>conftest.$ac_ext <<_ACEOF
14284 /* end confdefs.h.  */
14285 #include <sys/types.h>
14286 #include <stdio.h>
14287 #if STDC_HEADERS
14288 #include <stdlib.h>
14289 #endif
14290 #if HAVE_UNISTD_H
14291 #include <unistd.h>
14292 #endif
14293 _ACEOF
14294 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14295   $EGREP "dev_t" >/dev/null 2>&1; then
14296   sudo_cv_type_dev_t=yes
14297 else
14298   sudo_cv_type_dev_t=no
14299 fi
14300 rm -f conftest*
14301
14302 fi
14303 { echo "$as_me:$LINENO: result: $sudo_cv_type_dev_t" >&5
14304 echo "${ECHO_T}$sudo_cv_type_dev_t" >&6; }
14305 if test $sudo_cv_type_dev_t = no; then
14306
14307 cat >>confdefs.h <<\_ACEOF
14308 #define dev_t int
14309 _ACEOF
14310
14311 fi
14312
14313 { echo "$as_me:$LINENO: checking for ino_t" >&5
14314 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
14315 if test "${sudo_cv_type_ino_t+set}" = set; then
14316   echo $ECHO_N "(cached) $ECHO_C" >&6
14317 else
14318   cat >conftest.$ac_ext <<_ACEOF
14319 /* confdefs.h.  */
14320 _ACEOF
14321 cat confdefs.h >>conftest.$ac_ext
14322 cat >>conftest.$ac_ext <<_ACEOF
14323 /* end confdefs.h.  */
14324 #include <sys/types.h>
14325 #include <stdio.h>
14326 #if STDC_HEADERS
14327 #include <stdlib.h>
14328 #endif
14329 #if HAVE_UNISTD_H
14330 #include <unistd.h>
14331 #endif
14332 _ACEOF
14333 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14334   $EGREP "ino_t" >/dev/null 2>&1; then
14335   sudo_cv_type_ino_t=yes
14336 else
14337   sudo_cv_type_ino_t=no
14338 fi
14339 rm -f conftest*
14340
14341 fi
14342 { echo "$as_me:$LINENO: result: $sudo_cv_type_ino_t" >&5
14343 echo "${ECHO_T}$sudo_cv_type_ino_t" >&6; }
14344 if test $sudo_cv_type_ino_t = no; then
14345
14346 cat >>confdefs.h <<\_ACEOF
14347 #define ino_t unsigned int
14348 _ACEOF
14349
14350 fi
14351
14352 { echo "$as_me:$LINENO: checking for full void implementation" >&5
14353 echo $ECHO_N "checking for full void implementation... $ECHO_C" >&6; }
14354 cat >conftest.$ac_ext <<_ACEOF
14355 /* confdefs.h.  */
14356 _ACEOF
14357 cat confdefs.h >>conftest.$ac_ext
14358 cat >>conftest.$ac_ext <<_ACEOF
14359 /* end confdefs.h.  */
14360
14361 int
14362 main ()
14363 {
14364 void *foo;
14365 foo = (void *)0; (void *)"test";
14366   ;
14367   return 0;
14368 }
14369 _ACEOF
14370 rm -f conftest.$ac_objext
14371 if { (ac_try="$ac_compile"
14372 case "(($ac_try" in
14373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14374   *) ac_try_echo=$ac_try;;
14375 esac
14376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14377   (eval "$ac_compile") 2>conftest.er1
14378   ac_status=$?
14379   grep -v '^ *+' conftest.er1 >conftest.err
14380   rm -f conftest.er1
14381   cat conftest.err >&5
14382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14383   (exit $ac_status); } && {
14384          test -z "$ac_c_werror_flag" ||
14385          test ! -s conftest.err
14386        } && test -s conftest.$ac_objext; then
14387
14388 cat >>confdefs.h <<\_ACEOF
14389 #define VOID void
14390 _ACEOF
14391
14392 { echo "$as_me:$LINENO: result: yes" >&5
14393 echo "${ECHO_T}yes" >&6; }
14394 else
14395   echo "$as_me: failed program was:" >&5
14396 sed 's/^/| /' conftest.$ac_ext >&5
14397
14398         cat >>confdefs.h <<\_ACEOF
14399 #define VOID char
14400 _ACEOF
14401
14402 { echo "$as_me:$LINENO: result: no" >&5
14403 echo "${ECHO_T}no" >&6; }
14404 fi
14405
14406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14407
14408 { echo "$as_me:$LINENO: checking max length of uid_t" >&5
14409 echo $ECHO_N "checking max length of uid_t... $ECHO_C" >&6; }
14410 if test "${sudo_cv_uid_t_len+set}" = set; then
14411   echo $ECHO_N "(cached) $ECHO_C" >&6
14412 else
14413   rm -f conftestdata
14414 if test "$cross_compiling" = yes; then
14415   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14416 See \`config.log' for more details." >&5
14417 echo "$as_me: error: cannot run test program while cross compiling
14418 See \`config.log' for more details." >&2;}
14419    { (exit 1); exit 1; }; }
14420 else
14421   cat >conftest.$ac_ext <<_ACEOF
14422 /* confdefs.h.  */
14423 _ACEOF
14424 cat confdefs.h >>conftest.$ac_ext
14425 cat >>conftest.$ac_ext <<_ACEOF
14426 /* end confdefs.h.  */
14427 #include <stdio.h>
14428 #include <pwd.h>
14429 #include <limits.h>
14430 #include <sys/types.h>
14431 #include <sys/param.h>
14432 main() {
14433   FILE *f;
14434   char b[1024];
14435   uid_t u = (uid_t) -1;
14436
14437   if ((f = fopen("conftestdata", "w")) == NULL)
14438     exit(1);
14439
14440   (void) sprintf(b, "%lu", (unsigned long) u);
14441   (void) fprintf(f, "%d\n", strlen(b));
14442   (void) fclose(f);
14443   exit(0);
14444 }
14445 _ACEOF
14446 rm -f conftest$ac_exeext
14447 if { (ac_try="$ac_link"
14448 case "(($ac_try" in
14449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14450   *) ac_try_echo=$ac_try;;
14451 esac
14452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14453   (eval "$ac_link") 2>&5
14454   ac_status=$?
14455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14456   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14457   { (case "(($ac_try" in
14458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14459   *) ac_try_echo=$ac_try;;
14460 esac
14461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14462   (eval "$ac_try") 2>&5
14463   ac_status=$?
14464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14465   (exit $ac_status); }; }; then
14466   sudo_cv_uid_t_len=`cat conftestdata`
14467 else
14468   echo "$as_me: program exited with status $ac_status" >&5
14469 echo "$as_me: failed program was:" >&5
14470 sed 's/^/| /' conftest.$ac_ext >&5
14471
14472 ( exit $ac_status )
14473 sudo_cv_uid_t_len=10
14474 fi
14475 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14476 fi
14477
14478
14479
14480 fi
14481
14482 rm -f conftestdata
14483 { echo "$as_me:$LINENO: result: $sudo_cv_uid_t_len" >&5
14484 echo "${ECHO_T}$sudo_cv_uid_t_len" >&6; }
14485
14486 cat >>confdefs.h <<_ACEOF
14487 #define MAX_UID_T_LEN $sudo_cv_uid_t_len
14488 _ACEOF
14489
14490
14491 { echo "$as_me:$LINENO: checking for long long" >&5
14492 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
14493 if test "${ac_cv_type_long_long+set}" = set; then
14494   echo $ECHO_N "(cached) $ECHO_C" >&6
14495 else
14496   cat >conftest.$ac_ext <<_ACEOF
14497 /* confdefs.h.  */
14498 _ACEOF
14499 cat confdefs.h >>conftest.$ac_ext
14500 cat >>conftest.$ac_ext <<_ACEOF
14501 /* end confdefs.h.  */
14502 $ac_includes_default
14503 typedef long long ac__type_new_;
14504 int
14505 main ()
14506 {
14507 if ((ac__type_new_ *) 0)
14508   return 0;
14509 if (sizeof (ac__type_new_))
14510   return 0;
14511   ;
14512   return 0;
14513 }
14514 _ACEOF
14515 rm -f conftest.$ac_objext
14516 if { (ac_try="$ac_compile"
14517 case "(($ac_try" in
14518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14519   *) ac_try_echo=$ac_try;;
14520 esac
14521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14522   (eval "$ac_compile") 2>conftest.er1
14523   ac_status=$?
14524   grep -v '^ *+' conftest.er1 >conftest.err
14525   rm -f conftest.er1
14526   cat conftest.err >&5
14527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14528   (exit $ac_status); } && {
14529          test -z "$ac_c_werror_flag" ||
14530          test ! -s conftest.err
14531        } && test -s conftest.$ac_objext; then
14532   ac_cv_type_long_long=yes
14533 else
14534   echo "$as_me: failed program was:" >&5
14535 sed 's/^/| /' conftest.$ac_ext >&5
14536
14537         ac_cv_type_long_long=no
14538 fi
14539
14540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14541 fi
14542 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
14543 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
14544 if test $ac_cv_type_long_long = yes; then
14545
14546 cat >>confdefs.h <<_ACEOF
14547 #define HAVE_LONG_LONG 1
14548 _ACEOF
14549
14550
14551 cat >>confdefs.h <<\_ACEOF
14552 #define HAVE_LONG_LONG 1
14553 _ACEOF
14554
14555 { echo "$as_me:$LINENO: checking for long and long long equivalence" >&5
14556 echo $ECHO_N "checking for long and long long equivalence... $ECHO_C" >&6; }
14557 if test "${sudo_cv_type_long_is_quad+set}" = set; then
14558   echo $ECHO_N "(cached) $ECHO_C" >&6
14559 else
14560   if test "$cross_compiling" = yes; then
14561   sudo_cv_type_long_is_quad=no
14562 else
14563   cat >conftest.$ac_ext <<_ACEOF
14564 /* confdefs.h.  */
14565 _ACEOF
14566 cat confdefs.h >>conftest.$ac_ext
14567 cat >>conftest.$ac_ext <<_ACEOF
14568 /* end confdefs.h.  */
14569
14570 main() {
14571 if (sizeof(long long) == sizeof(long)) exit(0);
14572 else exit(1);
14573 }
14574 _ACEOF
14575 rm -f conftest$ac_exeext
14576 if { (ac_try="$ac_link"
14577 case "(($ac_try" in
14578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14579   *) ac_try_echo=$ac_try;;
14580 esac
14581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14582   (eval "$ac_link") 2>&5
14583   ac_status=$?
14584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14585   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14586   { (case "(($ac_try" in
14587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14588   *) ac_try_echo=$ac_try;;
14589 esac
14590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14591   (eval "$ac_try") 2>&5
14592   ac_status=$?
14593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14594   (exit $ac_status); }; }; then
14595   sudo_cv_type_long_is_quad=yes
14596 else
14597   echo "$as_me: program exited with status $ac_status" >&5
14598 echo "$as_me: failed program was:" >&5
14599 sed 's/^/| /' conftest.$ac_ext >&5
14600
14601 ( exit $ac_status )
14602 sudo_cv_type_long_is_quad=no
14603 fi
14604 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14605 fi
14606
14607
14608 rm -f core core.* *.core
14609 fi
14610 { echo "$as_me:$LINENO: result: $sudo_cv_type_long_is_quad" >&5
14611 echo "${ECHO_T}$sudo_cv_type_long_is_quad" >&6; }
14612 if test $sudo_cv_type_long_is_quad = yes; then
14613
14614 cat >>confdefs.h <<\_ACEOF
14615 #define LONG_IS_QUAD 1
14616 _ACEOF
14617
14618 fi
14619
14620 fi
14621
14622 { echo "$as_me:$LINENO: checking for sa_len field in struct sockaddr" >&5
14623 echo $ECHO_N "checking for sa_len field in struct sockaddr... $ECHO_C" >&6; }
14624 if test "${sudo_cv_sock_sa_len+set}" = set; then
14625   echo $ECHO_N "(cached) $ECHO_C" >&6
14626 else
14627   if test "$cross_compiling" = yes; then
14628   sudo_cv_sock_sa_len=no
14629 else
14630   cat >conftest.$ac_ext <<_ACEOF
14631 /* confdefs.h.  */
14632 _ACEOF
14633 cat confdefs.h >>conftest.$ac_ext
14634 cat >>conftest.$ac_ext <<_ACEOF
14635 /* end confdefs.h.  */
14636 #include <sys/types.h>
14637 #include <sys/socket.h>
14638 main() {
14639 struct sockaddr s;
14640 s.sa_len = 0;
14641 exit(0);
14642 }
14643 _ACEOF
14644 rm -f conftest$ac_exeext
14645 if { (ac_try="$ac_link"
14646 case "(($ac_try" in
14647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14648   *) ac_try_echo=$ac_try;;
14649 esac
14650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14651   (eval "$ac_link") 2>&5
14652   ac_status=$?
14653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14654   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14655   { (case "(($ac_try" in
14656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14657   *) ac_try_echo=$ac_try;;
14658 esac
14659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14660   (eval "$ac_try") 2>&5
14661   ac_status=$?
14662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14663   (exit $ac_status); }; }; then
14664   sudo_cv_sock_sa_len=yes
14665 else
14666   echo "$as_me: program exited with status $ac_status" >&5
14667 echo "$as_me: failed program was:" >&5
14668 sed 's/^/| /' conftest.$ac_ext >&5
14669
14670 ( exit $ac_status )
14671 sudo_cv_sock_sa_len=no
14672 fi
14673 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14674 fi
14675
14676
14677 rm -f core core.* *.core
14678 fi
14679 { echo "$as_me:$LINENO: result: $sudo_cv_sock_sa_len" >&5
14680 echo "${ECHO_T}$sudo_cv_sock_sa_len" >&6; }
14681 if test $sudo_cv_sock_sa_len = yes; then
14682
14683 cat >>confdefs.h <<\_ACEOF
14684 #define HAVE_SA_LEN 1
14685 _ACEOF
14686
14687 fi
14688
14689 case "$DEFS" in
14690     *"RETSIGTYPE"*)     ;;
14691     *)                  { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
14692 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
14693 if test "${ac_cv_type_signal+set}" = set; then
14694   echo $ECHO_N "(cached) $ECHO_C" >&6
14695 else
14696   cat >conftest.$ac_ext <<_ACEOF
14697 /* confdefs.h.  */
14698 _ACEOF
14699 cat confdefs.h >>conftest.$ac_ext
14700 cat >>conftest.$ac_ext <<_ACEOF
14701 /* end confdefs.h.  */
14702 #include <sys/types.h>
14703 #include <signal.h>
14704
14705 int
14706 main ()
14707 {
14708 return *(signal (0, 0)) (0) == 1;
14709   ;
14710   return 0;
14711 }
14712 _ACEOF
14713 rm -f conftest.$ac_objext
14714 if { (ac_try="$ac_compile"
14715 case "(($ac_try" in
14716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14717   *) ac_try_echo=$ac_try;;
14718 esac
14719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14720   (eval "$ac_compile") 2>conftest.er1
14721   ac_status=$?
14722   grep -v '^ *+' conftest.er1 >conftest.err
14723   rm -f conftest.er1
14724   cat conftest.err >&5
14725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14726   (exit $ac_status); } && {
14727          test -z "$ac_c_werror_flag" ||
14728          test ! -s conftest.err
14729        } && test -s conftest.$ac_objext; then
14730   ac_cv_type_signal=int
14731 else
14732   echo "$as_me: failed program was:" >&5
14733 sed 's/^/| /' conftest.$ac_ext >&5
14734
14735         ac_cv_type_signal=void
14736 fi
14737
14738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14739 fi
14740 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
14741 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
14742
14743 cat >>confdefs.h <<_ACEOF
14744 #define RETSIGTYPE $ac_cv_type_signal
14745 _ACEOF
14746
14747 ;;
14748 esac
14749 { echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
14750 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6; }
14751 if test "${ac_cv_type_getgroups+set}" = set; then
14752   echo $ECHO_N "(cached) $ECHO_C" >&6
14753 else
14754   if test "$cross_compiling" = yes; then
14755   ac_cv_type_getgroups=cross
14756 else
14757   cat >conftest.$ac_ext <<_ACEOF
14758 /* confdefs.h.  */
14759 _ACEOF
14760 cat confdefs.h >>conftest.$ac_ext
14761 cat >>conftest.$ac_ext <<_ACEOF
14762 /* end confdefs.h.  */
14763 /* Thanks to Mike Rendell for this test.  */
14764 $ac_includes_default
14765 #define NGID 256
14766 #undef MAX
14767 #define MAX(x, y) ((x) > (y) ? (x) : (y))
14768
14769 int
14770 main ()
14771 {
14772   gid_t gidset[NGID];
14773   int i, n;
14774   union { gid_t gval; long int lval; }  val;
14775
14776   val.lval = -1;
14777   for (i = 0; i < NGID; i++)
14778     gidset[i] = val.gval;
14779   n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
14780                  gidset);
14781   /* Exit non-zero if getgroups seems to require an array of ints.  This
14782      happens when gid_t is short int but getgroups modifies an array
14783      of ints.  */
14784   return n > 0 && gidset[n] != val.gval;
14785 }
14786 _ACEOF
14787 rm -f conftest$ac_exeext
14788 if { (ac_try="$ac_link"
14789 case "(($ac_try" in
14790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14791   *) ac_try_echo=$ac_try;;
14792 esac
14793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14794   (eval "$ac_link") 2>&5
14795   ac_status=$?
14796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14797   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14798   { (case "(($ac_try" in
14799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14800   *) ac_try_echo=$ac_try;;
14801 esac
14802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14803   (eval "$ac_try") 2>&5
14804   ac_status=$?
14805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14806   (exit $ac_status); }; }; then
14807   ac_cv_type_getgroups=gid_t
14808 else
14809   echo "$as_me: program exited with status $ac_status" >&5
14810 echo "$as_me: failed program was:" >&5
14811 sed 's/^/| /' conftest.$ac_ext >&5
14812
14813 ( exit $ac_status )
14814 ac_cv_type_getgroups=int
14815 fi
14816 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14817 fi
14818
14819
14820 if test $ac_cv_type_getgroups = cross; then
14821         cat >conftest.$ac_ext <<_ACEOF
14822 /* confdefs.h.  */
14823 _ACEOF
14824 cat confdefs.h >>conftest.$ac_ext
14825 cat >>conftest.$ac_ext <<_ACEOF
14826 /* end confdefs.h.  */
14827 #include <unistd.h>
14828
14829 _ACEOF
14830 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14831   $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
14832   ac_cv_type_getgroups=gid_t
14833 else
14834   ac_cv_type_getgroups=int
14835 fi
14836 rm -f conftest*
14837
14838 fi
14839 fi
14840 { echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
14841 echo "${ECHO_T}$ac_cv_type_getgroups" >&6; }
14842
14843 cat >>confdefs.h <<_ACEOF
14844 #define GETGROUPS_T $ac_cv_type_getgroups
14845 _ACEOF
14846
14847
14848 { echo "$as_me:$LINENO: checking for size_t" >&5
14849 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
14850 if test "${ac_cv_type_size_t+set}" = set; then
14851   echo $ECHO_N "(cached) $ECHO_C" >&6
14852 else
14853   cat >conftest.$ac_ext <<_ACEOF
14854 /* confdefs.h.  */
14855 _ACEOF
14856 cat confdefs.h >>conftest.$ac_ext
14857 cat >>conftest.$ac_ext <<_ACEOF
14858 /* end confdefs.h.  */
14859 $ac_includes_default
14860 typedef size_t ac__type_new_;
14861 int
14862 main ()
14863 {
14864 if ((ac__type_new_ *) 0)
14865   return 0;
14866 if (sizeof (ac__type_new_))
14867   return 0;
14868   ;
14869   return 0;
14870 }
14871 _ACEOF
14872 rm -f conftest.$ac_objext
14873 if { (ac_try="$ac_compile"
14874 case "(($ac_try" in
14875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14876   *) ac_try_echo=$ac_try;;
14877 esac
14878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14879   (eval "$ac_compile") 2>conftest.er1
14880   ac_status=$?
14881   grep -v '^ *+' conftest.er1 >conftest.err
14882   rm -f conftest.er1
14883   cat conftest.err >&5
14884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14885   (exit $ac_status); } && {
14886          test -z "$ac_c_werror_flag" ||
14887          test ! -s conftest.err
14888        } && test -s conftest.$ac_objext; then
14889   ac_cv_type_size_t=yes
14890 else
14891   echo "$as_me: failed program was:" >&5
14892 sed 's/^/| /' conftest.$ac_ext >&5
14893
14894         ac_cv_type_size_t=no
14895 fi
14896
14897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14898 fi
14899 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
14900 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
14901 if test $ac_cv_type_size_t = yes; then
14902   :
14903 else
14904
14905 cat >>confdefs.h <<_ACEOF
14906 #define size_t unsigned int
14907 _ACEOF
14908
14909 fi
14910
14911 { echo "$as_me:$LINENO: checking for getgroups" >&5
14912 echo $ECHO_N "checking for getgroups... $ECHO_C" >&6; }
14913 if test "${ac_cv_func_getgroups+set}" = set; then
14914   echo $ECHO_N "(cached) $ECHO_C" >&6
14915 else
14916   cat >conftest.$ac_ext <<_ACEOF
14917 /* confdefs.h.  */
14918 _ACEOF
14919 cat confdefs.h >>conftest.$ac_ext
14920 cat >>conftest.$ac_ext <<_ACEOF
14921 /* end confdefs.h.  */
14922 /* Define getgroups to an innocuous variant, in case <limits.h> declares getgroups.
14923    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14924 #define getgroups innocuous_getgroups
14925
14926 /* System header to define __stub macros and hopefully few prototypes,
14927     which can conflict with char getgroups (); below.
14928     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14929     <limits.h> exists even on freestanding compilers.  */
14930
14931 #ifdef __STDC__
14932 # include <limits.h>
14933 #else
14934 # include <assert.h>
14935 #endif
14936
14937 #undef getgroups
14938
14939 /* Override any GCC internal prototype to avoid an error.
14940    Use char because int might match the return type of a GCC
14941    builtin and then its argument prototype would still apply.  */
14942 #ifdef __cplusplus
14943 extern "C"
14944 #endif
14945 char getgroups ();
14946 /* The GNU C library defines this for functions which it implements
14947     to always fail with ENOSYS.  Some functions are actually named
14948     something starting with __ and the normal name is an alias.  */
14949 #if defined __stub_getgroups || defined __stub___getgroups
14950 choke me
14951 #endif
14952
14953 int
14954 main ()
14955 {
14956 return getgroups ();
14957   ;
14958   return 0;
14959 }
14960 _ACEOF
14961 rm -f conftest.$ac_objext conftest$ac_exeext
14962 if { (ac_try="$ac_link"
14963 case "(($ac_try" in
14964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14965   *) ac_try_echo=$ac_try;;
14966 esac
14967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14968   (eval "$ac_link") 2>conftest.er1
14969   ac_status=$?
14970   grep -v '^ *+' conftest.er1 >conftest.err
14971   rm -f conftest.er1
14972   cat conftest.err >&5
14973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14974   (exit $ac_status); } && {
14975          test -z "$ac_c_werror_flag" ||
14976          test ! -s conftest.err
14977        } && test -s conftest$ac_exeext &&
14978        $as_test_x conftest$ac_exeext; then
14979   ac_cv_func_getgroups=yes
14980 else
14981   echo "$as_me: failed program was:" >&5
14982 sed 's/^/| /' conftest.$ac_ext >&5
14983
14984         ac_cv_func_getgroups=no
14985 fi
14986
14987 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14988       conftest$ac_exeext conftest.$ac_ext
14989 fi
14990 { echo "$as_me:$LINENO: result: $ac_cv_func_getgroups" >&5
14991 echo "${ECHO_T}$ac_cv_func_getgroups" >&6; }
14992
14993
14994 # If we don't yet have getgroups, see if it's in -lbsd.
14995 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
14996 ac_save_LIBS=$LIBS
14997 if test $ac_cv_func_getgroups = no; then
14998   { echo "$as_me:$LINENO: checking for getgroups in -lbsd" >&5
14999 echo $ECHO_N "checking for getgroups in -lbsd... $ECHO_C" >&6; }
15000 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then
15001   echo $ECHO_N "(cached) $ECHO_C" >&6
15002 else
15003   ac_check_lib_save_LIBS=$LIBS
15004 LIBS="-lbsd  $LIBS"
15005 cat >conftest.$ac_ext <<_ACEOF
15006 /* confdefs.h.  */
15007 _ACEOF
15008 cat confdefs.h >>conftest.$ac_ext
15009 cat >>conftest.$ac_ext <<_ACEOF
15010 /* end confdefs.h.  */
15011
15012 /* Override any GCC internal prototype to avoid an error.
15013    Use char because int might match the return type of a GCC
15014    builtin and then its argument prototype would still apply.  */
15015 #ifdef __cplusplus
15016 extern "C"
15017 #endif
15018 char getgroups ();
15019 int
15020 main ()
15021 {
15022 return getgroups ();
15023   ;
15024   return 0;
15025 }
15026 _ACEOF
15027 rm -f conftest.$ac_objext conftest$ac_exeext
15028 if { (ac_try="$ac_link"
15029 case "(($ac_try" in
15030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15031   *) ac_try_echo=$ac_try;;
15032 esac
15033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15034   (eval "$ac_link") 2>conftest.er1
15035   ac_status=$?
15036   grep -v '^ *+' conftest.er1 >conftest.err
15037   rm -f conftest.er1
15038   cat conftest.err >&5
15039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15040   (exit $ac_status); } && {
15041          test -z "$ac_c_werror_flag" ||
15042          test ! -s conftest.err
15043        } && test -s conftest$ac_exeext &&
15044        $as_test_x conftest$ac_exeext; then
15045   ac_cv_lib_bsd_getgroups=yes
15046 else
15047   echo "$as_me: failed program was:" >&5
15048 sed 's/^/| /' conftest.$ac_ext >&5
15049
15050         ac_cv_lib_bsd_getgroups=no
15051 fi
15052
15053 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15054       conftest$ac_exeext conftest.$ac_ext
15055 LIBS=$ac_check_lib_save_LIBS
15056 fi
15057 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_getgroups" >&5
15058 echo "${ECHO_T}$ac_cv_lib_bsd_getgroups" >&6; }
15059 if test $ac_cv_lib_bsd_getgroups = yes; then
15060   GETGROUPS_LIB=-lbsd
15061 fi
15062
15063 fi
15064
15065 # Run the program to test the functionality of the system-supplied
15066 # getgroups function only if there is such a function.
15067 if test $ac_cv_func_getgroups = yes; then
15068   { echo "$as_me:$LINENO: checking for working getgroups" >&5
15069 echo $ECHO_N "checking for working getgroups... $ECHO_C" >&6; }
15070 if test "${ac_cv_func_getgroups_works+set}" = set; then
15071   echo $ECHO_N "(cached) $ECHO_C" >&6
15072 else
15073   if test "$cross_compiling" = yes; then
15074   ac_cv_func_getgroups_works=no
15075 else
15076   cat >conftest.$ac_ext <<_ACEOF
15077 /* confdefs.h.  */
15078 _ACEOF
15079 cat confdefs.h >>conftest.$ac_ext
15080 cat >>conftest.$ac_ext <<_ACEOF
15081 /* end confdefs.h.  */
15082 $ac_includes_default
15083 int
15084 main ()
15085 {
15086 /* On Ultrix 4.3, getgroups (0, 0) always fails.  */
15087        return getgroups (0, 0) == -1;
15088   ;
15089   return 0;
15090 }
15091 _ACEOF
15092 rm -f conftest$ac_exeext
15093 if { (ac_try="$ac_link"
15094 case "(($ac_try" in
15095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15096   *) ac_try_echo=$ac_try;;
15097 esac
15098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15099   (eval "$ac_link") 2>&5
15100   ac_status=$?
15101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15102   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15103   { (case "(($ac_try" in
15104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15105   *) ac_try_echo=$ac_try;;
15106 esac
15107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15108   (eval "$ac_try") 2>&5
15109   ac_status=$?
15110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15111   (exit $ac_status); }; }; then
15112   ac_cv_func_getgroups_works=yes
15113 else
15114   echo "$as_me: program exited with status $ac_status" >&5
15115 echo "$as_me: failed program was:" >&5
15116 sed 's/^/| /' conftest.$ac_ext >&5
15117
15118 ( exit $ac_status )
15119 ac_cv_func_getgroups_works=no
15120 fi
15121 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15122 fi
15123
15124
15125
15126 fi
15127 { echo "$as_me:$LINENO: result: $ac_cv_func_getgroups_works" >&5
15128 echo "${ECHO_T}$ac_cv_func_getgroups_works" >&6; }
15129   if test $ac_cv_func_getgroups_works = yes; then
15130
15131 cat >>confdefs.h <<\_ACEOF
15132 #define HAVE_GETGROUPS 1
15133 _ACEOF
15134
15135   fi
15136 fi
15137 LIBS=$ac_save_LIBS
15138
15139
15140
15141
15142
15143
15144
15145
15146
15147
15148
15149
15150
15151
15152
15153
15154 for ac_func in strchr strrchr memchr memcpy memset sysconf tzset \
15155                strftime setrlimit initgroups getgroups fstat gettimeofday \
15156                setlocale getaddrinfo
15157 do
15158 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15159 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15160 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15161 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15162   echo $ECHO_N "(cached) $ECHO_C" >&6
15163 else
15164   cat >conftest.$ac_ext <<_ACEOF
15165 /* confdefs.h.  */
15166 _ACEOF
15167 cat confdefs.h >>conftest.$ac_ext
15168 cat >>conftest.$ac_ext <<_ACEOF
15169 /* end confdefs.h.  */
15170 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15171    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15172 #define $ac_func innocuous_$ac_func
15173
15174 /* System header to define __stub macros and hopefully few prototypes,
15175     which can conflict with char $ac_func (); below.
15176     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15177     <limits.h> exists even on freestanding compilers.  */
15178
15179 #ifdef __STDC__
15180 # include <limits.h>
15181 #else
15182 # include <assert.h>
15183 #endif
15184
15185 #undef $ac_func
15186
15187 /* Override any GCC internal prototype to avoid an error.
15188    Use char because int might match the return type of a GCC
15189    builtin and then its argument prototype would still apply.  */
15190 #ifdef __cplusplus
15191 extern "C"
15192 #endif
15193 char $ac_func ();
15194 /* The GNU C library defines this for functions which it implements
15195     to always fail with ENOSYS.  Some functions are actually named
15196     something starting with __ and the normal name is an alias.  */
15197 #if defined __stub_$ac_func || defined __stub___$ac_func
15198 choke me
15199 #endif
15200
15201 int
15202 main ()
15203 {
15204 return $ac_func ();
15205   ;
15206   return 0;
15207 }
15208 _ACEOF
15209 rm -f conftest.$ac_objext conftest$ac_exeext
15210 if { (ac_try="$ac_link"
15211 case "(($ac_try" in
15212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15213   *) ac_try_echo=$ac_try;;
15214 esac
15215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15216   (eval "$ac_link") 2>conftest.er1
15217   ac_status=$?
15218   grep -v '^ *+' conftest.er1 >conftest.err
15219   rm -f conftest.er1
15220   cat conftest.err >&5
15221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15222   (exit $ac_status); } && {
15223          test -z "$ac_c_werror_flag" ||
15224          test ! -s conftest.err
15225        } && test -s conftest$ac_exeext &&
15226        $as_test_x conftest$ac_exeext; then
15227   eval "$as_ac_var=yes"
15228 else
15229   echo "$as_me: failed program was:" >&5
15230 sed 's/^/| /' conftest.$ac_ext >&5
15231
15232         eval "$as_ac_var=no"
15233 fi
15234
15235 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15236       conftest$ac_exeext conftest.$ac_ext
15237 fi
15238 ac_res=`eval echo '${'$as_ac_var'}'`
15239                { echo "$as_me:$LINENO: result: $ac_res" >&5
15240 echo "${ECHO_T}$ac_res" >&6; }
15241 if test `eval echo '${'$as_ac_var'}'` = yes; then
15242   cat >>confdefs.h <<_ACEOF
15243 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15244 _ACEOF
15245
15246 fi
15247 done
15248
15249 if test -z "$SKIP_SETRESUID"; then
15250
15251 for ac_func in setresuid
15252 do
15253 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15254 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15255 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15256 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15257   echo $ECHO_N "(cached) $ECHO_C" >&6
15258 else
15259   cat >conftest.$ac_ext <<_ACEOF
15260 /* confdefs.h.  */
15261 _ACEOF
15262 cat confdefs.h >>conftest.$ac_ext
15263 cat >>conftest.$ac_ext <<_ACEOF
15264 /* end confdefs.h.  */
15265 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15266    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15267 #define $ac_func innocuous_$ac_func
15268
15269 /* System header to define __stub macros and hopefully few prototypes,
15270     which can conflict with char $ac_func (); below.
15271     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15272     <limits.h> exists even on freestanding compilers.  */
15273
15274 #ifdef __STDC__
15275 # include <limits.h>
15276 #else
15277 # include <assert.h>
15278 #endif
15279
15280 #undef $ac_func
15281
15282 /* Override any GCC internal prototype to avoid an error.
15283    Use char because int might match the return type of a GCC
15284    builtin and then its argument prototype would still apply.  */
15285 #ifdef __cplusplus
15286 extern "C"
15287 #endif
15288 char $ac_func ();
15289 /* The GNU C library defines this for functions which it implements
15290     to always fail with ENOSYS.  Some functions are actually named
15291     something starting with __ and the normal name is an alias.  */
15292 #if defined __stub_$ac_func || defined __stub___$ac_func
15293 choke me
15294 #endif
15295
15296 int
15297 main ()
15298 {
15299 return $ac_func ();
15300   ;
15301   return 0;
15302 }
15303 _ACEOF
15304 rm -f conftest.$ac_objext conftest$ac_exeext
15305 if { (ac_try="$ac_link"
15306 case "(($ac_try" in
15307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15308   *) ac_try_echo=$ac_try;;
15309 esac
15310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15311   (eval "$ac_link") 2>conftest.er1
15312   ac_status=$?
15313   grep -v '^ *+' conftest.er1 >conftest.err
15314   rm -f conftest.er1
15315   cat conftest.err >&5
15316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15317   (exit $ac_status); } && {
15318          test -z "$ac_c_werror_flag" ||
15319          test ! -s conftest.err
15320        } && test -s conftest$ac_exeext &&
15321        $as_test_x conftest$ac_exeext; then
15322   eval "$as_ac_var=yes"
15323 else
15324   echo "$as_me: failed program was:" >&5
15325 sed 's/^/| /' conftest.$ac_ext >&5
15326
15327         eval "$as_ac_var=no"
15328 fi
15329
15330 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15331       conftest$ac_exeext conftest.$ac_ext
15332 fi
15333 ac_res=`eval echo '${'$as_ac_var'}'`
15334                { echo "$as_me:$LINENO: result: $ac_res" >&5
15335 echo "${ECHO_T}$ac_res" >&6; }
15336 if test `eval echo '${'$as_ac_var'}'` = yes; then
15337   cat >>confdefs.h <<_ACEOF
15338 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15339 _ACEOF
15340  SKIP_SETREUID=yes
15341 fi
15342 done
15343
15344 fi
15345 if test -z "$SKIP_SETREUID"; then
15346
15347 for ac_func in setreuid
15348 do
15349 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15350 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15351 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15352 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15353   echo $ECHO_N "(cached) $ECHO_C" >&6
15354 else
15355   cat >conftest.$ac_ext <<_ACEOF
15356 /* confdefs.h.  */
15357 _ACEOF
15358 cat confdefs.h >>conftest.$ac_ext
15359 cat >>conftest.$ac_ext <<_ACEOF
15360 /* end confdefs.h.  */
15361 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15362    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15363 #define $ac_func innocuous_$ac_func
15364
15365 /* System header to define __stub macros and hopefully few prototypes,
15366     which can conflict with char $ac_func (); below.
15367     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15368     <limits.h> exists even on freestanding compilers.  */
15369
15370 #ifdef __STDC__
15371 # include <limits.h>
15372 #else
15373 # include <assert.h>
15374 #endif
15375
15376 #undef $ac_func
15377
15378 /* Override any GCC internal prototype to avoid an error.
15379    Use char because int might match the return type of a GCC
15380    builtin and then its argument prototype would still apply.  */
15381 #ifdef __cplusplus
15382 extern "C"
15383 #endif
15384 char $ac_func ();
15385 /* The GNU C library defines this for functions which it implements
15386     to always fail with ENOSYS.  Some functions are actually named
15387     something starting with __ and the normal name is an alias.  */
15388 #if defined __stub_$ac_func || defined __stub___$ac_func
15389 choke me
15390 #endif
15391
15392 int
15393 main ()
15394 {
15395 return $ac_func ();
15396   ;
15397   return 0;
15398 }
15399 _ACEOF
15400 rm -f conftest.$ac_objext conftest$ac_exeext
15401 if { (ac_try="$ac_link"
15402 case "(($ac_try" in
15403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15404   *) ac_try_echo=$ac_try;;
15405 esac
15406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15407   (eval "$ac_link") 2>conftest.er1
15408   ac_status=$?
15409   grep -v '^ *+' conftest.er1 >conftest.err
15410   rm -f conftest.er1
15411   cat conftest.err >&5
15412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15413   (exit $ac_status); } && {
15414          test -z "$ac_c_werror_flag" ||
15415          test ! -s conftest.err
15416        } && test -s conftest$ac_exeext &&
15417        $as_test_x conftest$ac_exeext; then
15418   eval "$as_ac_var=yes"
15419 else
15420   echo "$as_me: failed program was:" >&5
15421 sed 's/^/| /' conftest.$ac_ext >&5
15422
15423         eval "$as_ac_var=no"
15424 fi
15425
15426 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15427       conftest$ac_exeext conftest.$ac_ext
15428 fi
15429 ac_res=`eval echo '${'$as_ac_var'}'`
15430                { echo "$as_me:$LINENO: result: $ac_res" >&5
15431 echo "${ECHO_T}$ac_res" >&6; }
15432 if test `eval echo '${'$as_ac_var'}'` = yes; then
15433   cat >>confdefs.h <<_ACEOF
15434 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15435 _ACEOF
15436  SKIP_SETEUID=yes
15437 fi
15438 done
15439
15440 fi
15441 if test -z "$SKIP_SETEUID"; then
15442
15443 for ac_func in seteuid
15444 do
15445 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15446 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15447 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15448 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15449   echo $ECHO_N "(cached) $ECHO_C" >&6
15450 else
15451   cat >conftest.$ac_ext <<_ACEOF
15452 /* confdefs.h.  */
15453 _ACEOF
15454 cat confdefs.h >>conftest.$ac_ext
15455 cat >>conftest.$ac_ext <<_ACEOF
15456 /* end confdefs.h.  */
15457 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15458    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15459 #define $ac_func innocuous_$ac_func
15460
15461 /* System header to define __stub macros and hopefully few prototypes,
15462     which can conflict with char $ac_func (); below.
15463     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15464     <limits.h> exists even on freestanding compilers.  */
15465
15466 #ifdef __STDC__
15467 # include <limits.h>
15468 #else
15469 # include <assert.h>
15470 #endif
15471
15472 #undef $ac_func
15473
15474 /* Override any GCC internal prototype to avoid an error.
15475    Use char because int might match the return type of a GCC
15476    builtin and then its argument prototype would still apply.  */
15477 #ifdef __cplusplus
15478 extern "C"
15479 #endif
15480 char $ac_func ();
15481 /* The GNU C library defines this for functions which it implements
15482     to always fail with ENOSYS.  Some functions are actually named
15483     something starting with __ and the normal name is an alias.  */
15484 #if defined __stub_$ac_func || defined __stub___$ac_func
15485 choke me
15486 #endif
15487
15488 int
15489 main ()
15490 {
15491 return $ac_func ();
15492   ;
15493   return 0;
15494 }
15495 _ACEOF
15496 rm -f conftest.$ac_objext conftest$ac_exeext
15497 if { (ac_try="$ac_link"
15498 case "(($ac_try" in
15499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15500   *) ac_try_echo=$ac_try;;
15501 esac
15502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15503   (eval "$ac_link") 2>conftest.er1
15504   ac_status=$?
15505   grep -v '^ *+' conftest.er1 >conftest.err
15506   rm -f conftest.er1
15507   cat conftest.err >&5
15508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15509   (exit $ac_status); } && {
15510          test -z "$ac_c_werror_flag" ||
15511          test ! -s conftest.err
15512        } && test -s conftest$ac_exeext &&
15513        $as_test_x conftest$ac_exeext; then
15514   eval "$as_ac_var=yes"
15515 else
15516   echo "$as_me: failed program was:" >&5
15517 sed 's/^/| /' conftest.$ac_ext >&5
15518
15519         eval "$as_ac_var=no"
15520 fi
15521
15522 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15523       conftest$ac_exeext conftest.$ac_ext
15524 fi
15525 ac_res=`eval echo '${'$as_ac_var'}'`
15526                { echo "$as_me:$LINENO: result: $ac_res" >&5
15527 echo "${ECHO_T}$ac_res" >&6; }
15528 if test `eval echo '${'$as_ac_var'}'` = yes; then
15529   cat >>confdefs.h <<_ACEOF
15530 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15531 _ACEOF
15532
15533 fi
15534 done
15535
15536 fi
15537 if test X"$with_interfaces" != X"no"; then
15538
15539 for ac_func in getifaddrs
15540 do
15541 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15542 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15543 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15544 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15545   echo $ECHO_N "(cached) $ECHO_C" >&6
15546 else
15547   cat >conftest.$ac_ext <<_ACEOF
15548 /* confdefs.h.  */
15549 _ACEOF
15550 cat confdefs.h >>conftest.$ac_ext
15551 cat >>conftest.$ac_ext <<_ACEOF
15552 /* end confdefs.h.  */
15553 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15554    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15555 #define $ac_func innocuous_$ac_func
15556
15557 /* System header to define __stub macros and hopefully few prototypes,
15558     which can conflict with char $ac_func (); below.
15559     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15560     <limits.h> exists even on freestanding compilers.  */
15561
15562 #ifdef __STDC__
15563 # include <limits.h>
15564 #else
15565 # include <assert.h>
15566 #endif
15567
15568 #undef $ac_func
15569
15570 /* Override any GCC internal prototype to avoid an error.
15571    Use char because int might match the return type of a GCC
15572    builtin and then its argument prototype would still apply.  */
15573 #ifdef __cplusplus
15574 extern "C"
15575 #endif
15576 char $ac_func ();
15577 /* The GNU C library defines this for functions which it implements
15578     to always fail with ENOSYS.  Some functions are actually named
15579     something starting with __ and the normal name is an alias.  */
15580 #if defined __stub_$ac_func || defined __stub___$ac_func
15581 choke me
15582 #endif
15583
15584 int
15585 main ()
15586 {
15587 return $ac_func ();
15588   ;
15589   return 0;
15590 }
15591 _ACEOF
15592 rm -f conftest.$ac_objext conftest$ac_exeext
15593 if { (ac_try="$ac_link"
15594 case "(($ac_try" in
15595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15596   *) ac_try_echo=$ac_try;;
15597 esac
15598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15599   (eval "$ac_link") 2>conftest.er1
15600   ac_status=$?
15601   grep -v '^ *+' conftest.er1 >conftest.err
15602   rm -f conftest.er1
15603   cat conftest.err >&5
15604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15605   (exit $ac_status); } && {
15606          test -z "$ac_c_werror_flag" ||
15607          test ! -s conftest.err
15608        } && test -s conftest$ac_exeext &&
15609        $as_test_x conftest$ac_exeext; then
15610   eval "$as_ac_var=yes"
15611 else
15612   echo "$as_me: failed program was:" >&5
15613 sed 's/^/| /' conftest.$ac_ext >&5
15614
15615         eval "$as_ac_var=no"
15616 fi
15617
15618 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15619       conftest$ac_exeext conftest.$ac_ext
15620 fi
15621 ac_res=`eval echo '${'$as_ac_var'}'`
15622                { echo "$as_me:$LINENO: result: $ac_res" >&5
15623 echo "${ECHO_T}$ac_res" >&6; }
15624 if test `eval echo '${'$as_ac_var'}'` = yes; then
15625   cat >>confdefs.h <<_ACEOF
15626 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15627 _ACEOF
15628
15629 for ac_func in freeifaddrs
15630 do
15631 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15632 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15633 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15634 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15635   echo $ECHO_N "(cached) $ECHO_C" >&6
15636 else
15637   cat >conftest.$ac_ext <<_ACEOF
15638 /* confdefs.h.  */
15639 _ACEOF
15640 cat confdefs.h >>conftest.$ac_ext
15641 cat >>conftest.$ac_ext <<_ACEOF
15642 /* end confdefs.h.  */
15643 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15644    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15645 #define $ac_func innocuous_$ac_func
15646
15647 /* System header to define __stub macros and hopefully few prototypes,
15648     which can conflict with char $ac_func (); below.
15649     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15650     <limits.h> exists even on freestanding compilers.  */
15651
15652 #ifdef __STDC__
15653 # include <limits.h>
15654 #else
15655 # include <assert.h>
15656 #endif
15657
15658 #undef $ac_func
15659
15660 /* Override any GCC internal prototype to avoid an error.
15661    Use char because int might match the return type of a GCC
15662    builtin and then its argument prototype would still apply.  */
15663 #ifdef __cplusplus
15664 extern "C"
15665 #endif
15666 char $ac_func ();
15667 /* The GNU C library defines this for functions which it implements
15668     to always fail with ENOSYS.  Some functions are actually named
15669     something starting with __ and the normal name is an alias.  */
15670 #if defined __stub_$ac_func || defined __stub___$ac_func
15671 choke me
15672 #endif
15673
15674 int
15675 main ()
15676 {
15677 return $ac_func ();
15678   ;
15679   return 0;
15680 }
15681 _ACEOF
15682 rm -f conftest.$ac_objext conftest$ac_exeext
15683 if { (ac_try="$ac_link"
15684 case "(($ac_try" in
15685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15686   *) ac_try_echo=$ac_try;;
15687 esac
15688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15689   (eval "$ac_link") 2>conftest.er1
15690   ac_status=$?
15691   grep -v '^ *+' conftest.er1 >conftest.err
15692   rm -f conftest.er1
15693   cat conftest.err >&5
15694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15695   (exit $ac_status); } && {
15696          test -z "$ac_c_werror_flag" ||
15697          test ! -s conftest.err
15698        } && test -s conftest$ac_exeext &&
15699        $as_test_x conftest$ac_exeext; then
15700   eval "$as_ac_var=yes"
15701 else
15702   echo "$as_me: failed program was:" >&5
15703 sed 's/^/| /' conftest.$ac_ext >&5
15704
15705         eval "$as_ac_var=no"
15706 fi
15707
15708 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15709       conftest$ac_exeext conftest.$ac_ext
15710 fi
15711 ac_res=`eval echo '${'$as_ac_var'}'`
15712                { echo "$as_me:$LINENO: result: $ac_res" >&5
15713 echo "${ECHO_T}$ac_res" >&6; }
15714 if test `eval echo '${'$as_ac_var'}'` = yes; then
15715   cat >>confdefs.h <<_ACEOF
15716 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15717 _ACEOF
15718
15719 fi
15720 done
15721
15722 fi
15723 done
15724
15725 fi
15726 if test -z "$BROKEN_GETCWD"; then
15727
15728 for ac_func in getcwd
15729 do
15730 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15731 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15732 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15733 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15734   echo $ECHO_N "(cached) $ECHO_C" >&6
15735 else
15736   cat >conftest.$ac_ext <<_ACEOF
15737 /* confdefs.h.  */
15738 _ACEOF
15739 cat confdefs.h >>conftest.$ac_ext
15740 cat >>conftest.$ac_ext <<_ACEOF
15741 /* end confdefs.h.  */
15742 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15743    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15744 #define $ac_func innocuous_$ac_func
15745
15746 /* System header to define __stub macros and hopefully few prototypes,
15747     which can conflict with char $ac_func (); below.
15748     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15749     <limits.h> exists even on freestanding compilers.  */
15750
15751 #ifdef __STDC__
15752 # include <limits.h>
15753 #else
15754 # include <assert.h>
15755 #endif
15756
15757 #undef $ac_func
15758
15759 /* Override any GCC internal prototype to avoid an error.
15760    Use char because int might match the return type of a GCC
15761    builtin and then its argument prototype would still apply.  */
15762 #ifdef __cplusplus
15763 extern "C"
15764 #endif
15765 char $ac_func ();
15766 /* The GNU C library defines this for functions which it implements
15767     to always fail with ENOSYS.  Some functions are actually named
15768     something starting with __ and the normal name is an alias.  */
15769 #if defined __stub_$ac_func || defined __stub___$ac_func
15770 choke me
15771 #endif
15772
15773 int
15774 main ()
15775 {
15776 return $ac_func ();
15777   ;
15778   return 0;
15779 }
15780 _ACEOF
15781 rm -f conftest.$ac_objext conftest$ac_exeext
15782 if { (ac_try="$ac_link"
15783 case "(($ac_try" in
15784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15785   *) ac_try_echo=$ac_try;;
15786 esac
15787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15788   (eval "$ac_link") 2>conftest.er1
15789   ac_status=$?
15790   grep -v '^ *+' conftest.er1 >conftest.err
15791   rm -f conftest.er1
15792   cat conftest.err >&5
15793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15794   (exit $ac_status); } && {
15795          test -z "$ac_c_werror_flag" ||
15796          test ! -s conftest.err
15797        } && test -s conftest$ac_exeext &&
15798        $as_test_x conftest$ac_exeext; then
15799   eval "$as_ac_var=yes"
15800 else
15801   echo "$as_me: failed program was:" >&5
15802 sed 's/^/| /' conftest.$ac_ext >&5
15803
15804         eval "$as_ac_var=no"
15805 fi
15806
15807 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15808       conftest$ac_exeext conftest.$ac_ext
15809 fi
15810 ac_res=`eval echo '${'$as_ac_var'}'`
15811                { echo "$as_me:$LINENO: result: $ac_res" >&5
15812 echo "${ECHO_T}$ac_res" >&6; }
15813 if test `eval echo '${'$as_ac_var'}'` = yes; then
15814   cat >>confdefs.h <<_ACEOF
15815 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15816 _ACEOF
15817
15818 else
15819   case " $LIBOBJS " in
15820   *" $ac_func.$ac_objext "* ) ;;
15821   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
15822  ;;
15823 esac
15824
15825 fi
15826 done
15827
15828
15829 fi
15830
15831 for ac_func in glob
15832 do
15833 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15834 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15835 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15836 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15837   echo $ECHO_N "(cached) $ECHO_C" >&6
15838 else
15839   cat >conftest.$ac_ext <<_ACEOF
15840 /* confdefs.h.  */
15841 _ACEOF
15842 cat confdefs.h >>conftest.$ac_ext
15843 cat >>conftest.$ac_ext <<_ACEOF
15844 /* end confdefs.h.  */
15845 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15846    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15847 #define $ac_func innocuous_$ac_func
15848
15849 /* System header to define __stub macros and hopefully few prototypes,
15850     which can conflict with char $ac_func (); below.
15851     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15852     <limits.h> exists even on freestanding compilers.  */
15853
15854 #ifdef __STDC__
15855 # include <limits.h>
15856 #else
15857 # include <assert.h>
15858 #endif
15859
15860 #undef $ac_func
15861
15862 /* Override any GCC internal prototype to avoid an error.
15863    Use char because int might match the return type of a GCC
15864    builtin and then its argument prototype would still apply.  */
15865 #ifdef __cplusplus
15866 extern "C"
15867 #endif
15868 char $ac_func ();
15869 /* The GNU C library defines this for functions which it implements
15870     to always fail with ENOSYS.  Some functions are actually named
15871     something starting with __ and the normal name is an alias.  */
15872 #if defined __stub_$ac_func || defined __stub___$ac_func
15873 choke me
15874 #endif
15875
15876 int
15877 main ()
15878 {
15879 return $ac_func ();
15880   ;
15881   return 0;
15882 }
15883 _ACEOF
15884 rm -f conftest.$ac_objext conftest$ac_exeext
15885 if { (ac_try="$ac_link"
15886 case "(($ac_try" in
15887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15888   *) ac_try_echo=$ac_try;;
15889 esac
15890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15891   (eval "$ac_link") 2>conftest.er1
15892   ac_status=$?
15893   grep -v '^ *+' conftest.er1 >conftest.err
15894   rm -f conftest.er1
15895   cat conftest.err >&5
15896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15897   (exit $ac_status); } && {
15898          test -z "$ac_c_werror_flag" ||
15899          test ! -s conftest.err
15900        } && test -s conftest$ac_exeext &&
15901        $as_test_x conftest$ac_exeext; then
15902   eval "$as_ac_var=yes"
15903 else
15904   echo "$as_me: failed program was:" >&5
15905 sed 's/^/| /' conftest.$ac_ext >&5
15906
15907         eval "$as_ac_var=no"
15908 fi
15909
15910 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15911       conftest$ac_exeext conftest.$ac_ext
15912 fi
15913 ac_res=`eval echo '${'$as_ac_var'}'`
15914                { echo "$as_me:$LINENO: result: $ac_res" >&5
15915 echo "${ECHO_T}$ac_res" >&6; }
15916 if test `eval echo '${'$as_ac_var'}'` = yes; then
15917   cat >>confdefs.h <<_ACEOF
15918 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15919 _ACEOF
15920  { echo "$as_me:$LINENO: checking for GLOB_BRACE and GLOB_TILDE in glob.h" >&5
15921 echo $ECHO_N "checking for GLOB_BRACE and GLOB_TILDE in glob.h... $ECHO_C" >&6; }
15922 cat >conftest.$ac_ext <<_ACEOF
15923 /* confdefs.h.  */
15924 _ACEOF
15925 cat confdefs.h >>conftest.$ac_ext
15926 cat >>conftest.$ac_ext <<_ACEOF
15927 /* end confdefs.h.  */
15928 #include <glob.h>
15929 int
15930 main ()
15931 {
15932 int i = GLOB_BRACE | GLOB_TILDE; (void)i;
15933   ;
15934   return 0;
15935 }
15936 _ACEOF
15937 rm -f conftest.$ac_objext
15938 if { (ac_try="$ac_compile"
15939 case "(($ac_try" in
15940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15941   *) ac_try_echo=$ac_try;;
15942 esac
15943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15944   (eval "$ac_compile") 2>conftest.er1
15945   ac_status=$?
15946   grep -v '^ *+' conftest.er1 >conftest.err
15947   rm -f conftest.er1
15948   cat conftest.err >&5
15949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15950   (exit $ac_status); } && {
15951          test -z "$ac_c_werror_flag" ||
15952          test ! -s conftest.err
15953        } && test -s conftest.$ac_objext; then
15954   cat >>confdefs.h <<\_ACEOF
15955 #define HAVE_EXTENDED_GLOB 1
15956 _ACEOF
15957
15958     { echo "$as_me:$LINENO: result: yes" >&5
15959 echo "${ECHO_T}yes" >&6; }
15960 else
15961   echo "$as_me: failed program was:" >&5
15962 sed 's/^/| /' conftest.$ac_ext >&5
15963
15964         case " $LIBOBJS " in
15965   *" glob.$ac_objext "* ) ;;
15966   *) LIBOBJS="$LIBOBJS glob.$ac_objext"
15967  ;;
15968 esac
15969
15970     { echo "$as_me:$LINENO: result: no" >&5
15971 echo "${ECHO_T}no" >&6; }
15972 fi
15973
15974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15975 else
15976   case " $LIBOBJS " in
15977   *" glob.$ac_objext "* ) ;;
15978   *) LIBOBJS="$LIBOBJS glob.$ac_objext"
15979  ;;
15980 esac
15981
15982 fi
15983 done
15984
15985
15986
15987 for ac_func in lockf flock
15988 do
15989 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15990 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15991 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15992 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15993   echo $ECHO_N "(cached) $ECHO_C" >&6
15994 else
15995   cat >conftest.$ac_ext <<_ACEOF
15996 /* confdefs.h.  */
15997 _ACEOF
15998 cat confdefs.h >>conftest.$ac_ext
15999 cat >>conftest.$ac_ext <<_ACEOF
16000 /* end confdefs.h.  */
16001 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16002    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16003 #define $ac_func innocuous_$ac_func
16004
16005 /* System header to define __stub macros and hopefully few prototypes,
16006     which can conflict with char $ac_func (); below.
16007     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16008     <limits.h> exists even on freestanding compilers.  */
16009
16010 #ifdef __STDC__
16011 # include <limits.h>
16012 #else
16013 # include <assert.h>
16014 #endif
16015
16016 #undef $ac_func
16017
16018 /* Override any GCC internal prototype to avoid an error.
16019    Use char because int might match the return type of a GCC
16020    builtin and then its argument prototype would still apply.  */
16021 #ifdef __cplusplus
16022 extern "C"
16023 #endif
16024 char $ac_func ();
16025 /* The GNU C library defines this for functions which it implements
16026     to always fail with ENOSYS.  Some functions are actually named
16027     something starting with __ and the normal name is an alias.  */
16028 #if defined __stub_$ac_func || defined __stub___$ac_func
16029 choke me
16030 #endif
16031
16032 int
16033 main ()
16034 {
16035 return $ac_func ();
16036   ;
16037   return 0;
16038 }
16039 _ACEOF
16040 rm -f conftest.$ac_objext conftest$ac_exeext
16041 if { (ac_try="$ac_link"
16042 case "(($ac_try" in
16043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16044   *) ac_try_echo=$ac_try;;
16045 esac
16046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16047   (eval "$ac_link") 2>conftest.er1
16048   ac_status=$?
16049   grep -v '^ *+' conftest.er1 >conftest.err
16050   rm -f conftest.er1
16051   cat conftest.err >&5
16052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16053   (exit $ac_status); } && {
16054          test -z "$ac_c_werror_flag" ||
16055          test ! -s conftest.err
16056        } && test -s conftest$ac_exeext &&
16057        $as_test_x conftest$ac_exeext; then
16058   eval "$as_ac_var=yes"
16059 else
16060   echo "$as_me: failed program was:" >&5
16061 sed 's/^/| /' conftest.$ac_ext >&5
16062
16063         eval "$as_ac_var=no"
16064 fi
16065
16066 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16067       conftest$ac_exeext conftest.$ac_ext
16068 fi
16069 ac_res=`eval echo '${'$as_ac_var'}'`
16070                { echo "$as_me:$LINENO: result: $ac_res" >&5
16071 echo "${ECHO_T}$ac_res" >&6; }
16072 if test `eval echo '${'$as_ac_var'}'` = yes; then
16073   cat >>confdefs.h <<_ACEOF
16074 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16075 _ACEOF
16076  break
16077 fi
16078 done
16079
16080
16081
16082 for ac_func in waitpid wait3
16083 do
16084 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16085 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16086 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16087 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16088   echo $ECHO_N "(cached) $ECHO_C" >&6
16089 else
16090   cat >conftest.$ac_ext <<_ACEOF
16091 /* confdefs.h.  */
16092 _ACEOF
16093 cat confdefs.h >>conftest.$ac_ext
16094 cat >>conftest.$ac_ext <<_ACEOF
16095 /* end confdefs.h.  */
16096 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16097    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16098 #define $ac_func innocuous_$ac_func
16099
16100 /* System header to define __stub macros and hopefully few prototypes,
16101     which can conflict with char $ac_func (); below.
16102     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16103     <limits.h> exists even on freestanding compilers.  */
16104
16105 #ifdef __STDC__
16106 # include <limits.h>
16107 #else
16108 # include <assert.h>
16109 #endif
16110
16111 #undef $ac_func
16112
16113 /* Override any GCC internal prototype to avoid an error.
16114    Use char because int might match the return type of a GCC
16115    builtin and then its argument prototype would still apply.  */
16116 #ifdef __cplusplus
16117 extern "C"
16118 #endif
16119 char $ac_func ();
16120 /* The GNU C library defines this for functions which it implements
16121     to always fail with ENOSYS.  Some functions are actually named
16122     something starting with __ and the normal name is an alias.  */
16123 #if defined __stub_$ac_func || defined __stub___$ac_func
16124 choke me
16125 #endif
16126
16127 int
16128 main ()
16129 {
16130 return $ac_func ();
16131   ;
16132   return 0;
16133 }
16134 _ACEOF
16135 rm -f conftest.$ac_objext conftest$ac_exeext
16136 if { (ac_try="$ac_link"
16137 case "(($ac_try" in
16138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16139   *) ac_try_echo=$ac_try;;
16140 esac
16141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16142   (eval "$ac_link") 2>conftest.er1
16143   ac_status=$?
16144   grep -v '^ *+' conftest.er1 >conftest.err
16145   rm -f conftest.er1
16146   cat conftest.err >&5
16147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16148   (exit $ac_status); } && {
16149          test -z "$ac_c_werror_flag" ||
16150          test ! -s conftest.err
16151        } && test -s conftest$ac_exeext &&
16152        $as_test_x conftest$ac_exeext; then
16153   eval "$as_ac_var=yes"
16154 else
16155   echo "$as_me: failed program was:" >&5
16156 sed 's/^/| /' conftest.$ac_ext >&5
16157
16158         eval "$as_ac_var=no"
16159 fi
16160
16161 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16162       conftest$ac_exeext conftest.$ac_ext
16163 fi
16164 ac_res=`eval echo '${'$as_ac_var'}'`
16165                { echo "$as_me:$LINENO: result: $ac_res" >&5
16166 echo "${ECHO_T}$ac_res" >&6; }
16167 if test `eval echo '${'$as_ac_var'}'` = yes; then
16168   cat >>confdefs.h <<_ACEOF
16169 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16170 _ACEOF
16171  break
16172 fi
16173 done
16174
16175
16176
16177 for ac_func in innetgr _innetgr
16178 do
16179 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16180 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16181 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16182 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16183   echo $ECHO_N "(cached) $ECHO_C" >&6
16184 else
16185   cat >conftest.$ac_ext <<_ACEOF
16186 /* confdefs.h.  */
16187 _ACEOF
16188 cat confdefs.h >>conftest.$ac_ext
16189 cat >>conftest.$ac_ext <<_ACEOF
16190 /* end confdefs.h.  */
16191 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16192    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16193 #define $ac_func innocuous_$ac_func
16194
16195 /* System header to define __stub macros and hopefully few prototypes,
16196     which can conflict with char $ac_func (); below.
16197     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16198     <limits.h> exists even on freestanding compilers.  */
16199
16200 #ifdef __STDC__
16201 # include <limits.h>
16202 #else
16203 # include <assert.h>
16204 #endif
16205
16206 #undef $ac_func
16207
16208 /* Override any GCC internal prototype to avoid an error.
16209    Use char because int might match the return type of a GCC
16210    builtin and then its argument prototype would still apply.  */
16211 #ifdef __cplusplus
16212 extern "C"
16213 #endif
16214 char $ac_func ();
16215 /* The GNU C library defines this for functions which it implements
16216     to always fail with ENOSYS.  Some functions are actually named
16217     something starting with __ and the normal name is an alias.  */
16218 #if defined __stub_$ac_func || defined __stub___$ac_func
16219 choke me
16220 #endif
16221
16222 int
16223 main ()
16224 {
16225 return $ac_func ();
16226   ;
16227   return 0;
16228 }
16229 _ACEOF
16230 rm -f conftest.$ac_objext conftest$ac_exeext
16231 if { (ac_try="$ac_link"
16232 case "(($ac_try" in
16233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16234   *) ac_try_echo=$ac_try;;
16235 esac
16236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16237   (eval "$ac_link") 2>conftest.er1
16238   ac_status=$?
16239   grep -v '^ *+' conftest.er1 >conftest.err
16240   rm -f conftest.er1
16241   cat conftest.err >&5
16242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16243   (exit $ac_status); } && {
16244          test -z "$ac_c_werror_flag" ||
16245          test ! -s conftest.err
16246        } && test -s conftest$ac_exeext &&
16247        $as_test_x conftest$ac_exeext; then
16248   eval "$as_ac_var=yes"
16249 else
16250   echo "$as_me: failed program was:" >&5
16251 sed 's/^/| /' conftest.$ac_ext >&5
16252
16253         eval "$as_ac_var=no"
16254 fi
16255
16256 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16257       conftest$ac_exeext conftest.$ac_ext
16258 fi
16259 ac_res=`eval echo '${'$as_ac_var'}'`
16260                { echo "$as_me:$LINENO: result: $ac_res" >&5
16261 echo "${ECHO_T}$ac_res" >&6; }
16262 if test `eval echo '${'$as_ac_var'}'` = yes; then
16263   cat >>confdefs.h <<_ACEOF
16264 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16265 _ACEOF
16266
16267 for ac_func in getdomainname
16268 do
16269 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16270 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16271 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16272 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16273   echo $ECHO_N "(cached) $ECHO_C" >&6
16274 else
16275   cat >conftest.$ac_ext <<_ACEOF
16276 /* confdefs.h.  */
16277 _ACEOF
16278 cat confdefs.h >>conftest.$ac_ext
16279 cat >>conftest.$ac_ext <<_ACEOF
16280 /* end confdefs.h.  */
16281 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16282    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16283 #define $ac_func innocuous_$ac_func
16284
16285 /* System header to define __stub macros and hopefully few prototypes,
16286     which can conflict with char $ac_func (); below.
16287     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16288     <limits.h> exists even on freestanding compilers.  */
16289
16290 #ifdef __STDC__
16291 # include <limits.h>
16292 #else
16293 # include <assert.h>
16294 #endif
16295
16296 #undef $ac_func
16297
16298 /* Override any GCC internal prototype to avoid an error.
16299    Use char because int might match the return type of a GCC
16300    builtin and then its argument prototype would still apply.  */
16301 #ifdef __cplusplus
16302 extern "C"
16303 #endif
16304 char $ac_func ();
16305 /* The GNU C library defines this for functions which it implements
16306     to always fail with ENOSYS.  Some functions are actually named
16307     something starting with __ and the normal name is an alias.  */
16308 #if defined __stub_$ac_func || defined __stub___$ac_func
16309 choke me
16310 #endif
16311
16312 int
16313 main ()
16314 {
16315 return $ac_func ();
16316   ;
16317   return 0;
16318 }
16319 _ACEOF
16320 rm -f conftest.$ac_objext conftest$ac_exeext
16321 if { (ac_try="$ac_link"
16322 case "(($ac_try" in
16323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16324   *) ac_try_echo=$ac_try;;
16325 esac
16326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16327   (eval "$ac_link") 2>conftest.er1
16328   ac_status=$?
16329   grep -v '^ *+' conftest.er1 >conftest.err
16330   rm -f conftest.er1
16331   cat conftest.err >&5
16332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16333   (exit $ac_status); } && {
16334          test -z "$ac_c_werror_flag" ||
16335          test ! -s conftest.err
16336        } && test -s conftest$ac_exeext &&
16337        $as_test_x conftest$ac_exeext; then
16338   eval "$as_ac_var=yes"
16339 else
16340   echo "$as_me: failed program was:" >&5
16341 sed 's/^/| /' conftest.$ac_ext >&5
16342
16343         eval "$as_ac_var=no"
16344 fi
16345
16346 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16347       conftest$ac_exeext conftest.$ac_ext
16348 fi
16349 ac_res=`eval echo '${'$as_ac_var'}'`
16350                { echo "$as_me:$LINENO: result: $ac_res" >&5
16351 echo "${ECHO_T}$ac_res" >&6; }
16352 if test `eval echo '${'$as_ac_var'}'` = yes; then
16353   cat >>confdefs.h <<_ACEOF
16354 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16355 _ACEOF
16356
16357 fi
16358 done
16359  break
16360 fi
16361 done
16362
16363
16364 for ac_func in lsearch
16365 do
16366 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16367 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16368 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16369 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16370   echo $ECHO_N "(cached) $ECHO_C" >&6
16371 else
16372   cat >conftest.$ac_ext <<_ACEOF
16373 /* confdefs.h.  */
16374 _ACEOF
16375 cat confdefs.h >>conftest.$ac_ext
16376 cat >>conftest.$ac_ext <<_ACEOF
16377 /* end confdefs.h.  */
16378 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16379    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16380 #define $ac_func innocuous_$ac_func
16381
16382 /* System header to define __stub macros and hopefully few prototypes,
16383     which can conflict with char $ac_func (); below.
16384     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16385     <limits.h> exists even on freestanding compilers.  */
16386
16387 #ifdef __STDC__
16388 # include <limits.h>
16389 #else
16390 # include <assert.h>
16391 #endif
16392
16393 #undef $ac_func
16394
16395 /* Override any GCC internal prototype to avoid an error.
16396    Use char because int might match the return type of a GCC
16397    builtin and then its argument prototype would still apply.  */
16398 #ifdef __cplusplus
16399 extern "C"
16400 #endif
16401 char $ac_func ();
16402 /* The GNU C library defines this for functions which it implements
16403     to always fail with ENOSYS.  Some functions are actually named
16404     something starting with __ and the normal name is an alias.  */
16405 #if defined __stub_$ac_func || defined __stub___$ac_func
16406 choke me
16407 #endif
16408
16409 int
16410 main ()
16411 {
16412 return $ac_func ();
16413   ;
16414   return 0;
16415 }
16416 _ACEOF
16417 rm -f conftest.$ac_objext conftest$ac_exeext
16418 if { (ac_try="$ac_link"
16419 case "(($ac_try" in
16420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16421   *) ac_try_echo=$ac_try;;
16422 esac
16423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16424   (eval "$ac_link") 2>conftest.er1
16425   ac_status=$?
16426   grep -v '^ *+' conftest.er1 >conftest.err
16427   rm -f conftest.er1
16428   cat conftest.err >&5
16429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16430   (exit $ac_status); } && {
16431          test -z "$ac_c_werror_flag" ||
16432          test ! -s conftest.err
16433        } && test -s conftest$ac_exeext &&
16434        $as_test_x conftest$ac_exeext; then
16435   eval "$as_ac_var=yes"
16436 else
16437   echo "$as_me: failed program was:" >&5
16438 sed 's/^/| /' conftest.$ac_ext >&5
16439
16440         eval "$as_ac_var=no"
16441 fi
16442
16443 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16444       conftest$ac_exeext conftest.$ac_ext
16445 fi
16446 ac_res=`eval echo '${'$as_ac_var'}'`
16447                { echo "$as_me:$LINENO: result: $ac_res" >&5
16448 echo "${ECHO_T}$ac_res" >&6; }
16449 if test `eval echo '${'$as_ac_var'}'` = yes; then
16450   cat >>confdefs.h <<_ACEOF
16451 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16452 _ACEOF
16453
16454 else
16455   { echo "$as_me:$LINENO: checking for lsearch in -lcompat" >&5
16456 echo $ECHO_N "checking for lsearch in -lcompat... $ECHO_C" >&6; }
16457 if test "${ac_cv_lib_compat_lsearch+set}" = set; then
16458   echo $ECHO_N "(cached) $ECHO_C" >&6
16459 else
16460   ac_check_lib_save_LIBS=$LIBS
16461 LIBS="-lcompat  $LIBS"
16462 cat >conftest.$ac_ext <<_ACEOF
16463 /* confdefs.h.  */
16464 _ACEOF
16465 cat confdefs.h >>conftest.$ac_ext
16466 cat >>conftest.$ac_ext <<_ACEOF
16467 /* end confdefs.h.  */
16468
16469 /* Override any GCC internal prototype to avoid an error.
16470    Use char because int might match the return type of a GCC
16471    builtin and then its argument prototype would still apply.  */
16472 #ifdef __cplusplus
16473 extern "C"
16474 #endif
16475 char lsearch ();
16476 int
16477 main ()
16478 {
16479 return lsearch ();
16480   ;
16481   return 0;
16482 }
16483 _ACEOF
16484 rm -f conftest.$ac_objext conftest$ac_exeext
16485 if { (ac_try="$ac_link"
16486 case "(($ac_try" in
16487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16488   *) ac_try_echo=$ac_try;;
16489 esac
16490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16491   (eval "$ac_link") 2>conftest.er1
16492   ac_status=$?
16493   grep -v '^ *+' conftest.er1 >conftest.err
16494   rm -f conftest.er1
16495   cat conftest.err >&5
16496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16497   (exit $ac_status); } && {
16498          test -z "$ac_c_werror_flag" ||
16499          test ! -s conftest.err
16500        } && test -s conftest$ac_exeext &&
16501        $as_test_x conftest$ac_exeext; then
16502   ac_cv_lib_compat_lsearch=yes
16503 else
16504   echo "$as_me: failed program was:" >&5
16505 sed 's/^/| /' conftest.$ac_ext >&5
16506
16507         ac_cv_lib_compat_lsearch=no
16508 fi
16509
16510 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16511       conftest$ac_exeext conftest.$ac_ext
16512 LIBS=$ac_check_lib_save_LIBS
16513 fi
16514 { echo "$as_me:$LINENO: result: $ac_cv_lib_compat_lsearch" >&5
16515 echo "${ECHO_T}$ac_cv_lib_compat_lsearch" >&6; }
16516 if test $ac_cv_lib_compat_lsearch = yes; then
16517   { echo "$as_me:$LINENO: checking for search.h" >&5
16518 echo $ECHO_N "checking for search.h... $ECHO_C" >&6; }
16519 if test "${ac_cv_header_search_h+set}" = set; then
16520   echo $ECHO_N "(cached) $ECHO_C" >&6
16521 else
16522   cat >conftest.$ac_ext <<_ACEOF
16523 /* confdefs.h.  */
16524 _ACEOF
16525 cat confdefs.h >>conftest.$ac_ext
16526 cat >>conftest.$ac_ext <<_ACEOF
16527 /* end confdefs.h.  */
16528 #include <search.h>
16529 _ACEOF
16530 if { (ac_try="$ac_cpp conftest.$ac_ext"
16531 case "(($ac_try" in
16532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16533   *) ac_try_echo=$ac_try;;
16534 esac
16535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16536   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16537   ac_status=$?
16538   grep -v '^ *+' conftest.er1 >conftest.err
16539   rm -f conftest.er1
16540   cat conftest.err >&5
16541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16542   (exit $ac_status); } >/dev/null && {
16543          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16544          test ! -s conftest.err
16545        }; then
16546   ac_cv_header_search_h=yes
16547 else
16548   echo "$as_me: failed program was:" >&5
16549 sed 's/^/| /' conftest.$ac_ext >&5
16550
16551   ac_cv_header_search_h=no
16552 fi
16553
16554 rm -f conftest.err conftest.$ac_ext
16555 fi
16556 { echo "$as_me:$LINENO: result: $ac_cv_header_search_h" >&5
16557 echo "${ECHO_T}$ac_cv_header_search_h" >&6; }
16558 if test $ac_cv_header_search_h = yes; then
16559   cat >>confdefs.h <<\_ACEOF
16560 #define HAVE_LSEARCH 1
16561 _ACEOF
16562  LIBS="${LIBS} -lcompat"
16563 else
16564   case " $LIBOBJS " in
16565   *" lsearch.$ac_objext "* ) ;;
16566   *) LIBOBJS="$LIBOBJS lsearch.$ac_objext"
16567  ;;
16568 esac
16569
16570 fi
16571
16572
16573 else
16574   case " $LIBOBJS " in
16575   *" lsearch.$ac_objext "* ) ;;
16576   *) LIBOBJS="$LIBOBJS lsearch.$ac_objext"
16577  ;;
16578 esac
16579
16580 fi
16581
16582 fi
16583 done
16584
16585
16586 for ac_func in utimes
16587 do
16588 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16589 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16590 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16591 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16592   echo $ECHO_N "(cached) $ECHO_C" >&6
16593 else
16594   cat >conftest.$ac_ext <<_ACEOF
16595 /* confdefs.h.  */
16596 _ACEOF
16597 cat confdefs.h >>conftest.$ac_ext
16598 cat >>conftest.$ac_ext <<_ACEOF
16599 /* end confdefs.h.  */
16600 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16601    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16602 #define $ac_func innocuous_$ac_func
16603
16604 /* System header to define __stub macros and hopefully few prototypes,
16605     which can conflict with char $ac_func (); below.
16606     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16607     <limits.h> exists even on freestanding compilers.  */
16608
16609 #ifdef __STDC__
16610 # include <limits.h>
16611 #else
16612 # include <assert.h>
16613 #endif
16614
16615 #undef $ac_func
16616
16617 /* Override any GCC internal prototype to avoid an error.
16618    Use char because int might match the return type of a GCC
16619    builtin and then its argument prototype would still apply.  */
16620 #ifdef __cplusplus
16621 extern "C"
16622 #endif
16623 char $ac_func ();
16624 /* The GNU C library defines this for functions which it implements
16625     to always fail with ENOSYS.  Some functions are actually named
16626     something starting with __ and the normal name is an alias.  */
16627 #if defined __stub_$ac_func || defined __stub___$ac_func
16628 choke me
16629 #endif
16630
16631 int
16632 main ()
16633 {
16634 return $ac_func ();
16635   ;
16636   return 0;
16637 }
16638 _ACEOF
16639 rm -f conftest.$ac_objext conftest$ac_exeext
16640 if { (ac_try="$ac_link"
16641 case "(($ac_try" in
16642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16643   *) ac_try_echo=$ac_try;;
16644 esac
16645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16646   (eval "$ac_link") 2>conftest.er1
16647   ac_status=$?
16648   grep -v '^ *+' conftest.er1 >conftest.err
16649   rm -f conftest.er1
16650   cat conftest.err >&5
16651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16652   (exit $ac_status); } && {
16653          test -z "$ac_c_werror_flag" ||
16654          test ! -s conftest.err
16655        } && test -s conftest$ac_exeext &&
16656        $as_test_x conftest$ac_exeext; then
16657   eval "$as_ac_var=yes"
16658 else
16659   echo "$as_me: failed program was:" >&5
16660 sed 's/^/| /' conftest.$ac_ext >&5
16661
16662         eval "$as_ac_var=no"
16663 fi
16664
16665 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16666       conftest$ac_exeext conftest.$ac_ext
16667 fi
16668 ac_res=`eval echo '${'$as_ac_var'}'`
16669                { echo "$as_me:$LINENO: result: $ac_res" >&5
16670 echo "${ECHO_T}$ac_res" >&6; }
16671 if test `eval echo '${'$as_ac_var'}'` = yes; then
16672   cat >>confdefs.h <<_ACEOF
16673 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16674 _ACEOF
16675
16676
16677 for ac_func in futimes futimesat
16678 do
16679 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16680 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16681 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16682 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16683   echo $ECHO_N "(cached) $ECHO_C" >&6
16684 else
16685   cat >conftest.$ac_ext <<_ACEOF
16686 /* confdefs.h.  */
16687 _ACEOF
16688 cat confdefs.h >>conftest.$ac_ext
16689 cat >>conftest.$ac_ext <<_ACEOF
16690 /* end confdefs.h.  */
16691 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16692    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16693 #define $ac_func innocuous_$ac_func
16694
16695 /* System header to define __stub macros and hopefully few prototypes,
16696     which can conflict with char $ac_func (); below.
16697     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16698     <limits.h> exists even on freestanding compilers.  */
16699
16700 #ifdef __STDC__
16701 # include <limits.h>
16702 #else
16703 # include <assert.h>
16704 #endif
16705
16706 #undef $ac_func
16707
16708 /* Override any GCC internal prototype to avoid an error.
16709    Use char because int might match the return type of a GCC
16710    builtin and then its argument prototype would still apply.  */
16711 #ifdef __cplusplus
16712 extern "C"
16713 #endif
16714 char $ac_func ();
16715 /* The GNU C library defines this for functions which it implements
16716     to always fail with ENOSYS.  Some functions are actually named
16717     something starting with __ and the normal name is an alias.  */
16718 #if defined __stub_$ac_func || defined __stub___$ac_func
16719 choke me
16720 #endif
16721
16722 int
16723 main ()
16724 {
16725 return $ac_func ();
16726   ;
16727   return 0;
16728 }
16729 _ACEOF
16730 rm -f conftest.$ac_objext conftest$ac_exeext
16731 if { (ac_try="$ac_link"
16732 case "(($ac_try" in
16733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16734   *) ac_try_echo=$ac_try;;
16735 esac
16736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16737   (eval "$ac_link") 2>conftest.er1
16738   ac_status=$?
16739   grep -v '^ *+' conftest.er1 >conftest.err
16740   rm -f conftest.er1
16741   cat conftest.err >&5
16742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16743   (exit $ac_status); } && {
16744          test -z "$ac_c_werror_flag" ||
16745          test ! -s conftest.err
16746        } && test -s conftest$ac_exeext &&
16747        $as_test_x conftest$ac_exeext; then
16748   eval "$as_ac_var=yes"
16749 else
16750   echo "$as_me: failed program was:" >&5
16751 sed 's/^/| /' conftest.$ac_ext >&5
16752
16753         eval "$as_ac_var=no"
16754 fi
16755
16756 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16757       conftest$ac_exeext conftest.$ac_ext
16758 fi
16759 ac_res=`eval echo '${'$as_ac_var'}'`
16760                { echo "$as_me:$LINENO: result: $ac_res" >&5
16761 echo "${ECHO_T}$ac_res" >&6; }
16762 if test `eval echo '${'$as_ac_var'}'` = yes; then
16763   cat >>confdefs.h <<_ACEOF
16764 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16765 _ACEOF
16766  break
16767 fi
16768 done
16769
16770 else
16771
16772 for ac_func in futime
16773 do
16774 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16775 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16776 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16777 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16778   echo $ECHO_N "(cached) $ECHO_C" >&6
16779 else
16780   cat >conftest.$ac_ext <<_ACEOF
16781 /* confdefs.h.  */
16782 _ACEOF
16783 cat confdefs.h >>conftest.$ac_ext
16784 cat >>conftest.$ac_ext <<_ACEOF
16785 /* end confdefs.h.  */
16786 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16787    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16788 #define $ac_func innocuous_$ac_func
16789
16790 /* System header to define __stub macros and hopefully few prototypes,
16791     which can conflict with char $ac_func (); below.
16792     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16793     <limits.h> exists even on freestanding compilers.  */
16794
16795 #ifdef __STDC__
16796 # include <limits.h>
16797 #else
16798 # include <assert.h>
16799 #endif
16800
16801 #undef $ac_func
16802
16803 /* Override any GCC internal prototype to avoid an error.
16804    Use char because int might match the return type of a GCC
16805    builtin and then its argument prototype would still apply.  */
16806 #ifdef __cplusplus
16807 extern "C"
16808 #endif
16809 char $ac_func ();
16810 /* The GNU C library defines this for functions which it implements
16811     to always fail with ENOSYS.  Some functions are actually named
16812     something starting with __ and the normal name is an alias.  */
16813 #if defined __stub_$ac_func || defined __stub___$ac_func
16814 choke me
16815 #endif
16816
16817 int
16818 main ()
16819 {
16820 return $ac_func ();
16821   ;
16822   return 0;
16823 }
16824 _ACEOF
16825 rm -f conftest.$ac_objext conftest$ac_exeext
16826 if { (ac_try="$ac_link"
16827 case "(($ac_try" in
16828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16829   *) ac_try_echo=$ac_try;;
16830 esac
16831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16832   (eval "$ac_link") 2>conftest.er1
16833   ac_status=$?
16834   grep -v '^ *+' conftest.er1 >conftest.err
16835   rm -f conftest.er1
16836   cat conftest.err >&5
16837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16838   (exit $ac_status); } && {
16839          test -z "$ac_c_werror_flag" ||
16840          test ! -s conftest.err
16841        } && test -s conftest$ac_exeext &&
16842        $as_test_x conftest$ac_exeext; then
16843   eval "$as_ac_var=yes"
16844 else
16845   echo "$as_me: failed program was:" >&5
16846 sed 's/^/| /' conftest.$ac_ext >&5
16847
16848         eval "$as_ac_var=no"
16849 fi
16850
16851 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16852       conftest$ac_exeext conftest.$ac_ext
16853 fi
16854 ac_res=`eval echo '${'$as_ac_var'}'`
16855                { echo "$as_me:$LINENO: result: $ac_res" >&5
16856 echo "${ECHO_T}$ac_res" >&6; }
16857 if test `eval echo '${'$as_ac_var'}'` = yes; then
16858   cat >>confdefs.h <<_ACEOF
16859 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16860 _ACEOF
16861
16862 fi
16863 done
16864  case " $LIBOBJS " in
16865   *" utimes.$ac_objext "* ) ;;
16866   *) LIBOBJS="$LIBOBJS utimes.$ac_objext"
16867  ;;
16868 esac
16869
16870 fi
16871 done
16872
16873 { echo "$as_me:$LINENO: checking for working fnmatch with FNM_CASEFOLD" >&5
16874 echo $ECHO_N "checking for working fnmatch with FNM_CASEFOLD... $ECHO_C" >&6; }
16875 if test "${sudo_cv_func_fnmatch+set}" = set; then
16876   echo $ECHO_N "(cached) $ECHO_C" >&6
16877 else
16878   rm -f conftestdata; > conftestdata
16879 if test "$cross_compiling" = yes; then
16880   sudo_cv_func_fnmatch=no
16881 else
16882   cat >conftest.$ac_ext <<_ACEOF
16883 /* confdefs.h.  */
16884 _ACEOF
16885 cat confdefs.h >>conftest.$ac_ext
16886 cat >>conftest.$ac_ext <<_ACEOF
16887 /* end confdefs.h.  */
16888 #include <fnmatch.h>
16889 main() { exit(fnmatch("/*/bin/echo *", "/usr/bin/echo just a test", FNM_CASEFOLD)); }
16890 _ACEOF
16891 rm -f conftest$ac_exeext
16892 if { (ac_try="$ac_link"
16893 case "(($ac_try" in
16894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16895   *) ac_try_echo=$ac_try;;
16896 esac
16897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16898   (eval "$ac_link") 2>&5
16899   ac_status=$?
16900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16901   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16902   { (case "(($ac_try" in
16903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16904   *) ac_try_echo=$ac_try;;
16905 esac
16906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16907   (eval "$ac_try") 2>&5
16908   ac_status=$?
16909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16910   (exit $ac_status); }; }; then
16911   sudo_cv_func_fnmatch=yes
16912 else
16913   echo "$as_me: program exited with status $ac_status" >&5
16914 echo "$as_me: failed program was:" >&5
16915 sed 's/^/| /' conftest.$ac_ext >&5
16916
16917 ( exit $ac_status )
16918 sudo_cv_func_fnmatch=no
16919 fi
16920 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16921 fi
16922
16923
16924 rm -f core core.* *.core
16925 fi
16926
16927 { echo "$as_me:$LINENO: result: $sudo_cv_func_fnmatch" >&5
16928 echo "${ECHO_T}$sudo_cv_func_fnmatch" >&6; }
16929 if test $sudo_cv_func_fnmatch = yes; then
16930   cat >>confdefs.h <<\_ACEOF
16931 #define HAVE_FNMATCH 1
16932 _ACEOF
16933
16934 else
16935   case " $LIBOBJS " in
16936   *" fnmatch.$ac_objext "* ) ;;
16937   *) LIBOBJS="$LIBOBJS fnmatch.$ac_objext"
16938  ;;
16939 esac
16940
16941 fi
16942
16943 { echo "$as_me:$LINENO: checking for isblank" >&5
16944 echo $ECHO_N "checking for isblank... $ECHO_C" >&6; }
16945 if test "${sudo_cv_func_isblank+set}" = set; then
16946   echo $ECHO_N "(cached) $ECHO_C" >&6
16947 else
16948   cat >conftest.$ac_ext <<_ACEOF
16949 /* confdefs.h.  */
16950 _ACEOF
16951 cat confdefs.h >>conftest.$ac_ext
16952 cat >>conftest.$ac_ext <<_ACEOF
16953 /* end confdefs.h.  */
16954 #include <ctype.h>
16955 int
16956 main ()
16957 {
16958 return (isblank('a'));
16959   ;
16960   return 0;
16961 }
16962 _ACEOF
16963 rm -f conftest.$ac_objext conftest$ac_exeext
16964 if { (ac_try="$ac_link"
16965 case "(($ac_try" in
16966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16967   *) ac_try_echo=$ac_try;;
16968 esac
16969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16970   (eval "$ac_link") 2>conftest.er1
16971   ac_status=$?
16972   grep -v '^ *+' conftest.er1 >conftest.err
16973   rm -f conftest.er1
16974   cat conftest.err >&5
16975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16976   (exit $ac_status); } && {
16977          test -z "$ac_c_werror_flag" ||
16978          test ! -s conftest.err
16979        } && test -s conftest$ac_exeext &&
16980        $as_test_x conftest$ac_exeext; then
16981   sudo_cv_func_isblank=yes
16982 else
16983   echo "$as_me: failed program was:" >&5
16984 sed 's/^/| /' conftest.$ac_ext >&5
16985
16986         sudo_cv_func_isblank=no
16987 fi
16988
16989 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16990       conftest$ac_exeext conftest.$ac_ext
16991 fi
16992 { echo "$as_me:$LINENO: result: $sudo_cv_func_isblank" >&5
16993 echo "${ECHO_T}$sudo_cv_func_isblank" >&6; }
16994
16995   if test "$sudo_cv_func_isblank" = "yes"; then
16996
16997 cat >>confdefs.h <<\_ACEOF
16998 #define HAVE_ISBLANK 1
16999 _ACEOF
17000
17001   fi
17002
17003
17004
17005
17006
17007
17008
17009 for ac_func in memrchr strerror strcasecmp sigaction strlcpy strlcat
17010 do
17011 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17012 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17013 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17014 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17015   echo $ECHO_N "(cached) $ECHO_C" >&6
17016 else
17017   cat >conftest.$ac_ext <<_ACEOF
17018 /* confdefs.h.  */
17019 _ACEOF
17020 cat confdefs.h >>conftest.$ac_ext
17021 cat >>conftest.$ac_ext <<_ACEOF
17022 /* end confdefs.h.  */
17023 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17024    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17025 #define $ac_func innocuous_$ac_func
17026
17027 /* System header to define __stub macros and hopefully few prototypes,
17028     which can conflict with char $ac_func (); below.
17029     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17030     <limits.h> exists even on freestanding compilers.  */
17031
17032 #ifdef __STDC__
17033 # include <limits.h>
17034 #else
17035 # include <assert.h>
17036 #endif
17037
17038 #undef $ac_func
17039
17040 /* Override any GCC internal prototype to avoid an error.
17041    Use char because int might match the return type of a GCC
17042    builtin and then its argument prototype would still apply.  */
17043 #ifdef __cplusplus
17044 extern "C"
17045 #endif
17046 char $ac_func ();
17047 /* The GNU C library defines this for functions which it implements
17048     to always fail with ENOSYS.  Some functions are actually named
17049     something starting with __ and the normal name is an alias.  */
17050 #if defined __stub_$ac_func || defined __stub___$ac_func
17051 choke me
17052 #endif
17053
17054 int
17055 main ()
17056 {
17057 return $ac_func ();
17058   ;
17059   return 0;
17060 }
17061 _ACEOF
17062 rm -f conftest.$ac_objext conftest$ac_exeext
17063 if { (ac_try="$ac_link"
17064 case "(($ac_try" in
17065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17066   *) ac_try_echo=$ac_try;;
17067 esac
17068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17069   (eval "$ac_link") 2>conftest.er1
17070   ac_status=$?
17071   grep -v '^ *+' conftest.er1 >conftest.err
17072   rm -f conftest.er1
17073   cat conftest.err >&5
17074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17075   (exit $ac_status); } && {
17076          test -z "$ac_c_werror_flag" ||
17077          test ! -s conftest.err
17078        } && test -s conftest$ac_exeext &&
17079        $as_test_x conftest$ac_exeext; then
17080   eval "$as_ac_var=yes"
17081 else
17082   echo "$as_me: failed program was:" >&5
17083 sed 's/^/| /' conftest.$ac_ext >&5
17084
17085         eval "$as_ac_var=no"
17086 fi
17087
17088 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17089       conftest$ac_exeext conftest.$ac_ext
17090 fi
17091 ac_res=`eval echo '${'$as_ac_var'}'`
17092                { echo "$as_me:$LINENO: result: $ac_res" >&5
17093 echo "${ECHO_T}$ac_res" >&6; }
17094 if test `eval echo '${'$as_ac_var'}'` = yes; then
17095   cat >>confdefs.h <<_ACEOF
17096 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17097 _ACEOF
17098
17099 else
17100   case " $LIBOBJS " in
17101   *" $ac_func.$ac_objext "* ) ;;
17102   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
17103  ;;
17104 esac
17105
17106 fi
17107 done
17108
17109
17110
17111 for ac_func in closefrom
17112 do
17113 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17114 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17115 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17116 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17117   echo $ECHO_N "(cached) $ECHO_C" >&6
17118 else
17119   cat >conftest.$ac_ext <<_ACEOF
17120 /* confdefs.h.  */
17121 _ACEOF
17122 cat confdefs.h >>conftest.$ac_ext
17123 cat >>conftest.$ac_ext <<_ACEOF
17124 /* end confdefs.h.  */
17125 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17126    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17127 #define $ac_func innocuous_$ac_func
17128
17129 /* System header to define __stub macros and hopefully few prototypes,
17130     which can conflict with char $ac_func (); below.
17131     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17132     <limits.h> exists even on freestanding compilers.  */
17133
17134 #ifdef __STDC__
17135 # include <limits.h>
17136 #else
17137 # include <assert.h>
17138 #endif
17139
17140 #undef $ac_func
17141
17142 /* Override any GCC internal prototype to avoid an error.
17143    Use char because int might match the return type of a GCC
17144    builtin and then its argument prototype would still apply.  */
17145 #ifdef __cplusplus
17146 extern "C"
17147 #endif
17148 char $ac_func ();
17149 /* The GNU C library defines this for functions which it implements
17150     to always fail with ENOSYS.  Some functions are actually named
17151     something starting with __ and the normal name is an alias.  */
17152 #if defined __stub_$ac_func || defined __stub___$ac_func
17153 choke me
17154 #endif
17155
17156 int
17157 main ()
17158 {
17159 return $ac_func ();
17160   ;
17161   return 0;
17162 }
17163 _ACEOF
17164 rm -f conftest.$ac_objext conftest$ac_exeext
17165 if { (ac_try="$ac_link"
17166 case "(($ac_try" in
17167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17168   *) ac_try_echo=$ac_try;;
17169 esac
17170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17171   (eval "$ac_link") 2>conftest.er1
17172   ac_status=$?
17173   grep -v '^ *+' conftest.er1 >conftest.err
17174   rm -f conftest.er1
17175   cat conftest.err >&5
17176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17177   (exit $ac_status); } && {
17178          test -z "$ac_c_werror_flag" ||
17179          test ! -s conftest.err
17180        } && test -s conftest$ac_exeext &&
17181        $as_test_x conftest$ac_exeext; then
17182   eval "$as_ac_var=yes"
17183 else
17184   echo "$as_me: failed program was:" >&5
17185 sed 's/^/| /' conftest.$ac_ext >&5
17186
17187         eval "$as_ac_var=no"
17188 fi
17189
17190 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17191       conftest$ac_exeext conftest.$ac_ext
17192 fi
17193 ac_res=`eval echo '${'$as_ac_var'}'`
17194                { echo "$as_me:$LINENO: result: $ac_res" >&5
17195 echo "${ECHO_T}$ac_res" >&6; }
17196 if test `eval echo '${'$as_ac_var'}'` = yes; then
17197   cat >>confdefs.h <<_ACEOF
17198 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17199 _ACEOF
17200
17201 else
17202   case " $LIBOBJS " in
17203   *" closefrom.$ac_objext "* ) ;;
17204   *) LIBOBJS="$LIBOBJS closefrom.$ac_objext"
17205  ;;
17206 esac
17207
17208     { echo "$as_me:$LINENO: checking whether F_CLOSEM is declared" >&5
17209 echo $ECHO_N "checking whether F_CLOSEM is declared... $ECHO_C" >&6; }
17210 if test "${ac_cv_have_decl_F_CLOSEM+set}" = set; then
17211   echo $ECHO_N "(cached) $ECHO_C" >&6
17212 else
17213   cat >conftest.$ac_ext <<_ACEOF
17214 /* confdefs.h.  */
17215 _ACEOF
17216 cat confdefs.h >>conftest.$ac_ext
17217 cat >>conftest.$ac_ext <<_ACEOF
17218 /* end confdefs.h.  */
17219  #include <limits.h>
17220           #include <fcntl.h>
17221
17222 int
17223 main ()
17224 {
17225 #ifndef F_CLOSEM
17226   (void) F_CLOSEM;
17227 #endif
17228
17229   ;
17230   return 0;
17231 }
17232 _ACEOF
17233 rm -f conftest.$ac_objext
17234 if { (ac_try="$ac_compile"
17235 case "(($ac_try" in
17236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17237   *) ac_try_echo=$ac_try;;
17238 esac
17239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17240   (eval "$ac_compile") 2>conftest.er1
17241   ac_status=$?
17242   grep -v '^ *+' conftest.er1 >conftest.err
17243   rm -f conftest.er1
17244   cat conftest.err >&5
17245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17246   (exit $ac_status); } && {
17247          test -z "$ac_c_werror_flag" ||
17248          test ! -s conftest.err
17249        } && test -s conftest.$ac_objext; then
17250   ac_cv_have_decl_F_CLOSEM=yes
17251 else
17252   echo "$as_me: failed program was:" >&5
17253 sed 's/^/| /' conftest.$ac_ext >&5
17254
17255         ac_cv_have_decl_F_CLOSEM=no
17256 fi
17257
17258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17259 fi
17260 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_CLOSEM" >&5
17261 echo "${ECHO_T}$ac_cv_have_decl_F_CLOSEM" >&6; }
17262 if test $ac_cv_have_decl_F_CLOSEM = yes; then
17263   cat >>confdefs.h <<\_ACEOF
17264 #define HAVE_FCNTL_CLOSEM 1
17265 _ACEOF
17266
17267 fi
17268
17269
17270 fi
17271 done
17272
17273
17274 for ac_func in mkstemp
17275 do
17276 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17277 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17278 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17279 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17280   echo $ECHO_N "(cached) $ECHO_C" >&6
17281 else
17282   cat >conftest.$ac_ext <<_ACEOF
17283 /* confdefs.h.  */
17284 _ACEOF
17285 cat confdefs.h >>conftest.$ac_ext
17286 cat >>conftest.$ac_ext <<_ACEOF
17287 /* end confdefs.h.  */
17288 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17289    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17290 #define $ac_func innocuous_$ac_func
17291
17292 /* System header to define __stub macros and hopefully few prototypes,
17293     which can conflict with char $ac_func (); below.
17294     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17295     <limits.h> exists even on freestanding compilers.  */
17296
17297 #ifdef __STDC__
17298 # include <limits.h>
17299 #else
17300 # include <assert.h>
17301 #endif
17302
17303 #undef $ac_func
17304
17305 /* Override any GCC internal prototype to avoid an error.
17306    Use char because int might match the return type of a GCC
17307    builtin and then its argument prototype would still apply.  */
17308 #ifdef __cplusplus
17309 extern "C"
17310 #endif
17311 char $ac_func ();
17312 /* The GNU C library defines this for functions which it implements
17313     to always fail with ENOSYS.  Some functions are actually named
17314     something starting with __ and the normal name is an alias.  */
17315 #if defined __stub_$ac_func || defined __stub___$ac_func
17316 choke me
17317 #endif
17318
17319 int
17320 main ()
17321 {
17322 return $ac_func ();
17323   ;
17324   return 0;
17325 }
17326 _ACEOF
17327 rm -f conftest.$ac_objext conftest$ac_exeext
17328 if { (ac_try="$ac_link"
17329 case "(($ac_try" in
17330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17331   *) ac_try_echo=$ac_try;;
17332 esac
17333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17334   (eval "$ac_link") 2>conftest.er1
17335   ac_status=$?
17336   grep -v '^ *+' conftest.er1 >conftest.err
17337   rm -f conftest.er1
17338   cat conftest.err >&5
17339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17340   (exit $ac_status); } && {
17341          test -z "$ac_c_werror_flag" ||
17342          test ! -s conftest.err
17343        } && test -s conftest$ac_exeext &&
17344        $as_test_x conftest$ac_exeext; then
17345   eval "$as_ac_var=yes"
17346 else
17347   echo "$as_me: failed program was:" >&5
17348 sed 's/^/| /' conftest.$ac_ext >&5
17349
17350         eval "$as_ac_var=no"
17351 fi
17352
17353 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17354       conftest$ac_exeext conftest.$ac_ext
17355 fi
17356 ac_res=`eval echo '${'$as_ac_var'}'`
17357                { echo "$as_me:$LINENO: result: $ac_res" >&5
17358 echo "${ECHO_T}$ac_res" >&6; }
17359 if test `eval echo '${'$as_ac_var'}'` = yes; then
17360   cat >>confdefs.h <<_ACEOF
17361 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17362 _ACEOF
17363
17364 else
17365   SUDO_OBJS="${SUDO_OBJS} mkstemp.o"
17366
17367
17368 for ac_func in random lrand48
17369 do
17370 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17371 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17372 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17373 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17374   echo $ECHO_N "(cached) $ECHO_C" >&6
17375 else
17376   cat >conftest.$ac_ext <<_ACEOF
17377 /* confdefs.h.  */
17378 _ACEOF
17379 cat confdefs.h >>conftest.$ac_ext
17380 cat >>conftest.$ac_ext <<_ACEOF
17381 /* end confdefs.h.  */
17382 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17383    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17384 #define $ac_func innocuous_$ac_func
17385
17386 /* System header to define __stub macros and hopefully few prototypes,
17387     which can conflict with char $ac_func (); below.
17388     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17389     <limits.h> exists even on freestanding compilers.  */
17390
17391 #ifdef __STDC__
17392 # include <limits.h>
17393 #else
17394 # include <assert.h>
17395 #endif
17396
17397 #undef $ac_func
17398
17399 /* Override any GCC internal prototype to avoid an error.
17400    Use char because int might match the return type of a GCC
17401    builtin and then its argument prototype would still apply.  */
17402 #ifdef __cplusplus
17403 extern "C"
17404 #endif
17405 char $ac_func ();
17406 /* The GNU C library defines this for functions which it implements
17407     to always fail with ENOSYS.  Some functions are actually named
17408     something starting with __ and the normal name is an alias.  */
17409 #if defined __stub_$ac_func || defined __stub___$ac_func
17410 choke me
17411 #endif
17412
17413 int
17414 main ()
17415 {
17416 return $ac_func ();
17417   ;
17418   return 0;
17419 }
17420 _ACEOF
17421 rm -f conftest.$ac_objext conftest$ac_exeext
17422 if { (ac_try="$ac_link"
17423 case "(($ac_try" in
17424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17425   *) ac_try_echo=$ac_try;;
17426 esac
17427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17428   (eval "$ac_link") 2>conftest.er1
17429   ac_status=$?
17430   grep -v '^ *+' conftest.er1 >conftest.err
17431   rm -f conftest.er1
17432   cat conftest.err >&5
17433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17434   (exit $ac_status); } && {
17435          test -z "$ac_c_werror_flag" ||
17436          test ! -s conftest.err
17437        } && test -s conftest$ac_exeext &&
17438        $as_test_x conftest$ac_exeext; then
17439   eval "$as_ac_var=yes"
17440 else
17441   echo "$as_me: failed program was:" >&5
17442 sed 's/^/| /' conftest.$ac_ext >&5
17443
17444         eval "$as_ac_var=no"
17445 fi
17446
17447 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17448       conftest$ac_exeext conftest.$ac_ext
17449 fi
17450 ac_res=`eval echo '${'$as_ac_var'}'`
17451                { echo "$as_me:$LINENO: result: $ac_res" >&5
17452 echo "${ECHO_T}$ac_res" >&6; }
17453 if test `eval echo '${'$as_ac_var'}'` = yes; then
17454   cat >>confdefs.h <<_ACEOF
17455 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17456 _ACEOF
17457  break
17458 fi
17459 done
17460
17461
17462 fi
17463 done
17464
17465
17466
17467
17468
17469 for ac_func in snprintf vsnprintf asprintf vasprintf
17470 do
17471 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17472 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17473 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17474 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17475   echo $ECHO_N "(cached) $ECHO_C" >&6
17476 else
17477   cat >conftest.$ac_ext <<_ACEOF
17478 /* confdefs.h.  */
17479 _ACEOF
17480 cat confdefs.h >>conftest.$ac_ext
17481 cat >>conftest.$ac_ext <<_ACEOF
17482 /* end confdefs.h.  */
17483 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17484    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17485 #define $ac_func innocuous_$ac_func
17486
17487 /* System header to define __stub macros and hopefully few prototypes,
17488     which can conflict with char $ac_func (); below.
17489     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17490     <limits.h> exists even on freestanding compilers.  */
17491
17492 #ifdef __STDC__
17493 # include <limits.h>
17494 #else
17495 # include <assert.h>
17496 #endif
17497
17498 #undef $ac_func
17499
17500 /* Override any GCC internal prototype to avoid an error.
17501    Use char because int might match the return type of a GCC
17502    builtin and then its argument prototype would still apply.  */
17503 #ifdef __cplusplus
17504 extern "C"
17505 #endif
17506 char $ac_func ();
17507 /* The GNU C library defines this for functions which it implements
17508     to always fail with ENOSYS.  Some functions are actually named
17509     something starting with __ and the normal name is an alias.  */
17510 #if defined __stub_$ac_func || defined __stub___$ac_func
17511 choke me
17512 #endif
17513
17514 int
17515 main ()
17516 {
17517 return $ac_func ();
17518   ;
17519   return 0;
17520 }
17521 _ACEOF
17522 rm -f conftest.$ac_objext conftest$ac_exeext
17523 if { (ac_try="$ac_link"
17524 case "(($ac_try" in
17525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17526   *) ac_try_echo=$ac_try;;
17527 esac
17528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17529   (eval "$ac_link") 2>conftest.er1
17530   ac_status=$?
17531   grep -v '^ *+' conftest.er1 >conftest.err
17532   rm -f conftest.er1
17533   cat conftest.err >&5
17534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17535   (exit $ac_status); } && {
17536          test -z "$ac_c_werror_flag" ||
17537          test ! -s conftest.err
17538        } && test -s conftest$ac_exeext &&
17539        $as_test_x conftest$ac_exeext; then
17540   eval "$as_ac_var=yes"
17541 else
17542   echo "$as_me: failed program was:" >&5
17543 sed 's/^/| /' conftest.$ac_ext >&5
17544
17545         eval "$as_ac_var=no"
17546 fi
17547
17548 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17549       conftest$ac_exeext conftest.$ac_ext
17550 fi
17551 ac_res=`eval echo '${'$as_ac_var'}'`
17552                { echo "$as_me:$LINENO: result: $ac_res" >&5
17553 echo "${ECHO_T}$ac_res" >&6; }
17554 if test `eval echo '${'$as_ac_var'}'` = yes; then
17555   cat >>confdefs.h <<_ACEOF
17556 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17557 _ACEOF
17558
17559 else
17560   NEED_SNPRINTF=1
17561 fi
17562 done
17563
17564 if test X"$ac_cv_type_struct_timespec" != X"no"; then
17565     { echo "$as_me:$LINENO: checking for struct stat.st_mtim" >&5
17566 echo $ECHO_N "checking for struct stat.st_mtim... $ECHO_C" >&6; }
17567 if test "${ac_cv_member_struct_stat_st_mtim+set}" = set; then
17568   echo $ECHO_N "(cached) $ECHO_C" >&6
17569 else
17570   cat >conftest.$ac_ext <<_ACEOF
17571 /* confdefs.h.  */
17572 _ACEOF
17573 cat confdefs.h >>conftest.$ac_ext
17574 cat >>conftest.$ac_ext <<_ACEOF
17575 /* end confdefs.h.  */
17576 $ac_includes_default
17577 int
17578 main ()
17579 {
17580 static struct stat ac_aggr;
17581 if (ac_aggr.st_mtim)
17582 return 0;
17583   ;
17584   return 0;
17585 }
17586 _ACEOF
17587 rm -f conftest.$ac_objext
17588 if { (ac_try="$ac_compile"
17589 case "(($ac_try" in
17590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17591   *) ac_try_echo=$ac_try;;
17592 esac
17593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17594   (eval "$ac_compile") 2>conftest.er1
17595   ac_status=$?
17596   grep -v '^ *+' conftest.er1 >conftest.err
17597   rm -f conftest.er1
17598   cat conftest.err >&5
17599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17600   (exit $ac_status); } && {
17601          test -z "$ac_c_werror_flag" ||
17602          test ! -s conftest.err
17603        } && test -s conftest.$ac_objext; then
17604   ac_cv_member_struct_stat_st_mtim=yes
17605 else
17606   echo "$as_me: failed program was:" >&5
17607 sed 's/^/| /' conftest.$ac_ext >&5
17608
17609         cat >conftest.$ac_ext <<_ACEOF
17610 /* confdefs.h.  */
17611 _ACEOF
17612 cat confdefs.h >>conftest.$ac_ext
17613 cat >>conftest.$ac_ext <<_ACEOF
17614 /* end confdefs.h.  */
17615 $ac_includes_default
17616 int
17617 main ()
17618 {
17619 static struct stat ac_aggr;
17620 if (sizeof ac_aggr.st_mtim)
17621 return 0;
17622   ;
17623   return 0;
17624 }
17625 _ACEOF
17626 rm -f conftest.$ac_objext
17627 if { (ac_try="$ac_compile"
17628 case "(($ac_try" in
17629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17630   *) ac_try_echo=$ac_try;;
17631 esac
17632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17633   (eval "$ac_compile") 2>conftest.er1
17634   ac_status=$?
17635   grep -v '^ *+' conftest.er1 >conftest.err
17636   rm -f conftest.er1
17637   cat conftest.err >&5
17638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17639   (exit $ac_status); } && {
17640          test -z "$ac_c_werror_flag" ||
17641          test ! -s conftest.err
17642        } && test -s conftest.$ac_objext; then
17643   ac_cv_member_struct_stat_st_mtim=yes
17644 else
17645   echo "$as_me: failed program was:" >&5
17646 sed 's/^/| /' conftest.$ac_ext >&5
17647
17648         ac_cv_member_struct_stat_st_mtim=no
17649 fi
17650
17651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17652 fi
17653
17654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17655 fi
17656 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_mtim" >&5
17657 echo "${ECHO_T}$ac_cv_member_struct_stat_st_mtim" >&6; }
17658 if test $ac_cv_member_struct_stat_st_mtim = yes; then
17659   cat >>confdefs.h <<\_ACEOF
17660 #define HAVE_ST_MTIM 1
17661 _ACEOF
17662
17663         { echo "$as_me:$LINENO: checking for struct stat.st_mtim.st__tim" >&5
17664 echo $ECHO_N "checking for struct stat.st_mtim.st__tim... $ECHO_C" >&6; }
17665 if test "${ac_cv_member_struct_stat_st_mtim_st__tim+set}" = set; then
17666   echo $ECHO_N "(cached) $ECHO_C" >&6
17667 else
17668   cat >conftest.$ac_ext <<_ACEOF
17669 /* confdefs.h.  */
17670 _ACEOF
17671 cat confdefs.h >>conftest.$ac_ext
17672 cat >>conftest.$ac_ext <<_ACEOF
17673 /* end confdefs.h.  */
17674 $ac_includes_default
17675 int
17676 main ()
17677 {
17678 static struct stat ac_aggr;
17679 if (ac_aggr.st_mtim.st__tim)
17680 return 0;
17681   ;
17682   return 0;
17683 }
17684 _ACEOF
17685 rm -f conftest.$ac_objext
17686 if { (ac_try="$ac_compile"
17687 case "(($ac_try" in
17688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17689   *) ac_try_echo=$ac_try;;
17690 esac
17691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17692   (eval "$ac_compile") 2>conftest.er1
17693   ac_status=$?
17694   grep -v '^ *+' conftest.er1 >conftest.err
17695   rm -f conftest.er1
17696   cat conftest.err >&5
17697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17698   (exit $ac_status); } && {
17699          test -z "$ac_c_werror_flag" ||
17700          test ! -s conftest.err
17701        } && test -s conftest.$ac_objext; then
17702   ac_cv_member_struct_stat_st_mtim_st__tim=yes
17703 else
17704   echo "$as_me: failed program was:" >&5
17705 sed 's/^/| /' conftest.$ac_ext >&5
17706
17707         cat >conftest.$ac_ext <<_ACEOF
17708 /* confdefs.h.  */
17709 _ACEOF
17710 cat confdefs.h >>conftest.$ac_ext
17711 cat >>conftest.$ac_ext <<_ACEOF
17712 /* end confdefs.h.  */
17713 $ac_includes_default
17714 int
17715 main ()
17716 {
17717 static struct stat ac_aggr;
17718 if (sizeof ac_aggr.st_mtim.st__tim)
17719 return 0;
17720   ;
17721   return 0;
17722 }
17723 _ACEOF
17724 rm -f conftest.$ac_objext
17725 if { (ac_try="$ac_compile"
17726 case "(($ac_try" in
17727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17728   *) ac_try_echo=$ac_try;;
17729 esac
17730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17731   (eval "$ac_compile") 2>conftest.er1
17732   ac_status=$?
17733   grep -v '^ *+' conftest.er1 >conftest.err
17734   rm -f conftest.er1
17735   cat conftest.err >&5
17736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17737   (exit $ac_status); } && {
17738          test -z "$ac_c_werror_flag" ||
17739          test ! -s conftest.err
17740        } && test -s conftest.$ac_objext; then
17741   ac_cv_member_struct_stat_st_mtim_st__tim=yes
17742 else
17743   echo "$as_me: failed program was:" >&5
17744 sed 's/^/| /' conftest.$ac_ext >&5
17745
17746         ac_cv_member_struct_stat_st_mtim_st__tim=no
17747 fi
17748
17749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17750 fi
17751
17752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17753 fi
17754 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_mtim_st__tim" >&5
17755 echo "${ECHO_T}$ac_cv_member_struct_stat_st_mtim_st__tim" >&6; }
17756 if test $ac_cv_member_struct_stat_st_mtim_st__tim = yes; then
17757   cat >>confdefs.h <<\_ACEOF
17758 #define HAVE_ST__TIM 1
17759 _ACEOF
17760
17761 fi
17762
17763 else
17764   { echo "$as_me:$LINENO: checking for struct stat.st_mtimespec" >&5
17765 echo $ECHO_N "checking for struct stat.st_mtimespec... $ECHO_C" >&6; }
17766 if test "${ac_cv_member_struct_stat_st_mtimespec+set}" = set; then
17767   echo $ECHO_N "(cached) $ECHO_C" >&6
17768 else
17769   cat >conftest.$ac_ext <<_ACEOF
17770 /* confdefs.h.  */
17771 _ACEOF
17772 cat confdefs.h >>conftest.$ac_ext
17773 cat >>conftest.$ac_ext <<_ACEOF
17774 /* end confdefs.h.  */
17775 $ac_includes_default
17776 int
17777 main ()
17778 {
17779 static struct stat ac_aggr;
17780 if (ac_aggr.st_mtimespec)
17781 return 0;
17782   ;
17783   return 0;
17784 }
17785 _ACEOF
17786 rm -f conftest.$ac_objext
17787 if { (ac_try="$ac_compile"
17788 case "(($ac_try" in
17789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17790   *) ac_try_echo=$ac_try;;
17791 esac
17792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17793   (eval "$ac_compile") 2>conftest.er1
17794   ac_status=$?
17795   grep -v '^ *+' conftest.er1 >conftest.err
17796   rm -f conftest.er1
17797   cat conftest.err >&5
17798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17799   (exit $ac_status); } && {
17800          test -z "$ac_c_werror_flag" ||
17801          test ! -s conftest.err
17802        } && test -s conftest.$ac_objext; then
17803   ac_cv_member_struct_stat_st_mtimespec=yes
17804 else
17805   echo "$as_me: failed program was:" >&5
17806 sed 's/^/| /' conftest.$ac_ext >&5
17807
17808         cat >conftest.$ac_ext <<_ACEOF
17809 /* confdefs.h.  */
17810 _ACEOF
17811 cat confdefs.h >>conftest.$ac_ext
17812 cat >>conftest.$ac_ext <<_ACEOF
17813 /* end confdefs.h.  */
17814 $ac_includes_default
17815 int
17816 main ()
17817 {
17818 static struct stat ac_aggr;
17819 if (sizeof ac_aggr.st_mtimespec)
17820 return 0;
17821   ;
17822   return 0;
17823 }
17824 _ACEOF
17825 rm -f conftest.$ac_objext
17826 if { (ac_try="$ac_compile"
17827 case "(($ac_try" in
17828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17829   *) ac_try_echo=$ac_try;;
17830 esac
17831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17832   (eval "$ac_compile") 2>conftest.er1
17833   ac_status=$?
17834   grep -v '^ *+' conftest.er1 >conftest.err
17835   rm -f conftest.er1
17836   cat conftest.err >&5
17837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17838   (exit $ac_status); } && {
17839          test -z "$ac_c_werror_flag" ||
17840          test ! -s conftest.err
17841        } && test -s conftest.$ac_objext; then
17842   ac_cv_member_struct_stat_st_mtimespec=yes
17843 else
17844   echo "$as_me: failed program was:" >&5
17845 sed 's/^/| /' conftest.$ac_ext >&5
17846
17847         ac_cv_member_struct_stat_st_mtimespec=no
17848 fi
17849
17850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17851 fi
17852
17853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17854 fi
17855 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_mtimespec" >&5
17856 echo "${ECHO_T}$ac_cv_member_struct_stat_st_mtimespec" >&6; }
17857 if test $ac_cv_member_struct_stat_st_mtimespec = yes; then
17858   cat >>confdefs.h <<\_ACEOF
17859 #define HAVE_ST_MTIMESPEC 1
17860 _ACEOF
17861
17862 fi
17863
17864 fi
17865
17866     { echo "$as_me:$LINENO: checking for two-parameter timespecsub" >&5
17867 echo $ECHO_N "checking for two-parameter timespecsub... $ECHO_C" >&6; }
17868     cat >conftest.$ac_ext <<_ACEOF
17869 /* confdefs.h.  */
17870 _ACEOF
17871 cat confdefs.h >>conftest.$ac_ext
17872 cat >>conftest.$ac_ext <<_ACEOF
17873 /* end confdefs.h.  */
17874 #include <sys/types.h>
17875 #include <sys/time.h>
17876 int
17877 main ()
17878 {
17879 struct timespec ts1, ts2;
17880 ts1.tv_sec = 1; ts1.tv_nsec = 0; ts2.tv_sec = 0; ts2.tv_nsec = 0;
17881 #ifndef timespecsub
17882 #error missing timespecsub
17883 #endif
17884 timespecsub(&ts1, &ts2);
17885   ;
17886   return 0;
17887 }
17888 _ACEOF
17889 rm -f conftest.$ac_objext
17890 if { (ac_try="$ac_compile"
17891 case "(($ac_try" in
17892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17893   *) ac_try_echo=$ac_try;;
17894 esac
17895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17896   (eval "$ac_compile") 2>conftest.er1
17897   ac_status=$?
17898   grep -v '^ *+' conftest.er1 >conftest.err
17899   rm -f conftest.er1
17900   cat conftest.err >&5
17901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17902   (exit $ac_status); } && {
17903          test -z "$ac_c_werror_flag" ||
17904          test ! -s conftest.err
17905        } && test -s conftest.$ac_objext; then
17906   cat >>confdefs.h <<\_ACEOF
17907 #define HAVE_TIMESPECSUB2 1
17908 _ACEOF
17909
17910     { echo "$as_me:$LINENO: result: yes" >&5
17911 echo "${ECHO_T}yes" >&6; }
17912 else
17913   echo "$as_me: failed program was:" >&5
17914 sed 's/^/| /' conftest.$ac_ext >&5
17915
17916         { echo "$as_me:$LINENO: result: no" >&5
17917 echo "${ECHO_T}no" >&6; }
17918 fi
17919
17920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17921 fi
17922 cat >conftest.$ac_ext <<_ACEOF
17923 /* confdefs.h.  */
17924 _ACEOF
17925 cat confdefs.h >>conftest.$ac_ext
17926 cat >>conftest.$ac_ext <<_ACEOF
17927 /* end confdefs.h.  */
17928 #include <sys/types.h>
17929 #include <$ac_header_dirent>
17930 int
17931 main ()
17932 {
17933 DIR *d; (void)dirfd(d);
17934   ;
17935   return 0;
17936 }
17937 _ACEOF
17938 rm -f conftest.$ac_objext conftest$ac_exeext
17939 if { (ac_try="$ac_link"
17940 case "(($ac_try" in
17941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17942   *) ac_try_echo=$ac_try;;
17943 esac
17944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17945   (eval "$ac_link") 2>conftest.er1
17946   ac_status=$?
17947   grep -v '^ *+' conftest.er1 >conftest.err
17948   rm -f conftest.er1
17949   cat conftest.err >&5
17950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17951   (exit $ac_status); } && {
17952          test -z "$ac_c_werror_flag" ||
17953          test ! -s conftest.err
17954        } && test -s conftest$ac_exeext &&
17955        $as_test_x conftest$ac_exeext; then
17956   cat >>confdefs.h <<\_ACEOF
17957 #define HAVE_DIRFD 1
17958 _ACEOF
17959
17960 else
17961   echo "$as_me: failed program was:" >&5
17962 sed 's/^/| /' conftest.$ac_ext >&5
17963
17964         cat >conftest.$ac_ext <<_ACEOF
17965 /* confdefs.h.  */
17966 _ACEOF
17967 cat confdefs.h >>conftest.$ac_ext
17968 cat >>conftest.$ac_ext <<_ACEOF
17969 /* end confdefs.h.  */
17970 #include <sys/types.h>
17971 #include <$ac_header_dirent>
17972 int
17973 main ()
17974 {
17975 DIR d; memset(&d, 0, sizeof(d)); return(d.dd_fd);
17976   ;
17977   return 0;
17978 }
17979 _ACEOF
17980 rm -f conftest.$ac_objext conftest$ac_exeext
17981 if { (ac_try="$ac_link"
17982 case "(($ac_try" in
17983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17984   *) ac_try_echo=$ac_try;;
17985 esac
17986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17987   (eval "$ac_link") 2>conftest.er1
17988   ac_status=$?
17989   grep -v '^ *+' conftest.er1 >conftest.err
17990   rm -f conftest.er1
17991   cat conftest.err >&5
17992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17993   (exit $ac_status); } && {
17994          test -z "$ac_c_werror_flag" ||
17995          test ! -s conftest.err
17996        } && test -s conftest$ac_exeext &&
17997        $as_test_x conftest$ac_exeext; then
17998   cat >>confdefs.h <<\_ACEOF
17999 #define HAVE_DD_FD 1
18000 _ACEOF
18001
18002 else
18003   echo "$as_me: failed program was:" >&5
18004 sed 's/^/| /' conftest.$ac_ext >&5
18005
18006
18007 fi
18008
18009 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18010       conftest$ac_exeext conftest.$ac_ext
18011 fi
18012
18013 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18014       conftest$ac_exeext conftest.$ac_ext
18015 if test -n "$NEED_SNPRINTF"; then
18016     case " $LIBOBJS " in
18017   *" snprintf.$ac_objext "* ) ;;
18018   *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
18019  ;;
18020 esac
18021
18022 fi
18023 { echo "$as_me:$LINENO: checking for socket" >&5
18024 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
18025 if test "${ac_cv_func_socket+set}" = set; then
18026   echo $ECHO_N "(cached) $ECHO_C" >&6
18027 else
18028   cat >conftest.$ac_ext <<_ACEOF
18029 /* confdefs.h.  */
18030 _ACEOF
18031 cat confdefs.h >>conftest.$ac_ext
18032 cat >>conftest.$ac_ext <<_ACEOF
18033 /* end confdefs.h.  */
18034 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
18035    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18036 #define socket innocuous_socket
18037
18038 /* System header to define __stub macros and hopefully few prototypes,
18039     which can conflict with char socket (); below.
18040     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18041     <limits.h> exists even on freestanding compilers.  */
18042
18043 #ifdef __STDC__
18044 # include <limits.h>
18045 #else
18046 # include <assert.h>
18047 #endif
18048
18049 #undef socket
18050
18051 /* Override any GCC internal prototype to avoid an error.
18052    Use char because int might match the return type of a GCC
18053    builtin and then its argument prototype would still apply.  */
18054 #ifdef __cplusplus
18055 extern "C"
18056 #endif
18057 char socket ();
18058 /* The GNU C library defines this for functions which it implements
18059     to always fail with ENOSYS.  Some functions are actually named
18060     something starting with __ and the normal name is an alias.  */
18061 #if defined __stub_socket || defined __stub___socket
18062 choke me
18063 #endif
18064
18065 int
18066 main ()
18067 {
18068 return socket ();
18069   ;
18070   return 0;
18071 }
18072 _ACEOF
18073 rm -f conftest.$ac_objext conftest$ac_exeext
18074 if { (ac_try="$ac_link"
18075 case "(($ac_try" in
18076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18077   *) ac_try_echo=$ac_try;;
18078 esac
18079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18080   (eval "$ac_link") 2>conftest.er1
18081   ac_status=$?
18082   grep -v '^ *+' conftest.er1 >conftest.err
18083   rm -f conftest.er1
18084   cat conftest.err >&5
18085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18086   (exit $ac_status); } && {
18087          test -z "$ac_c_werror_flag" ||
18088          test ! -s conftest.err
18089        } && test -s conftest$ac_exeext &&
18090        $as_test_x conftest$ac_exeext; then
18091   ac_cv_func_socket=yes
18092 else
18093   echo "$as_me: failed program was:" >&5
18094 sed 's/^/| /' conftest.$ac_ext >&5
18095
18096         ac_cv_func_socket=no
18097 fi
18098
18099 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18100       conftest$ac_exeext conftest.$ac_ext
18101 fi
18102 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
18103 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
18104 if test $ac_cv_func_socket = yes; then
18105   :
18106 else
18107   { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
18108 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
18109 if test "${ac_cv_lib_socket_socket+set}" = set; then
18110   echo $ECHO_N "(cached) $ECHO_C" >&6
18111 else
18112   ac_check_lib_save_LIBS=$LIBS
18113 LIBS="-lsocket  $LIBS"
18114 cat >conftest.$ac_ext <<_ACEOF
18115 /* confdefs.h.  */
18116 _ACEOF
18117 cat confdefs.h >>conftest.$ac_ext
18118 cat >>conftest.$ac_ext <<_ACEOF
18119 /* end confdefs.h.  */
18120
18121 /* Override any GCC internal prototype to avoid an error.
18122    Use char because int might match the return type of a GCC
18123    builtin and then its argument prototype would still apply.  */
18124 #ifdef __cplusplus
18125 extern "C"
18126 #endif
18127 char socket ();
18128 int
18129 main ()
18130 {
18131 return socket ();
18132   ;
18133   return 0;
18134 }
18135 _ACEOF
18136 rm -f conftest.$ac_objext conftest$ac_exeext
18137 if { (ac_try="$ac_link"
18138 case "(($ac_try" in
18139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18140   *) ac_try_echo=$ac_try;;
18141 esac
18142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18143   (eval "$ac_link") 2>conftest.er1
18144   ac_status=$?
18145   grep -v '^ *+' conftest.er1 >conftest.err
18146   rm -f conftest.er1
18147   cat conftest.err >&5
18148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18149   (exit $ac_status); } && {
18150          test -z "$ac_c_werror_flag" ||
18151          test ! -s conftest.err
18152        } && test -s conftest$ac_exeext &&
18153        $as_test_x conftest$ac_exeext; then
18154   ac_cv_lib_socket_socket=yes
18155 else
18156   echo "$as_me: failed program was:" >&5
18157 sed 's/^/| /' conftest.$ac_ext >&5
18158
18159         ac_cv_lib_socket_socket=no
18160 fi
18161
18162 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18163       conftest$ac_exeext conftest.$ac_ext
18164 LIBS=$ac_check_lib_save_LIBS
18165 fi
18166 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
18167 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
18168 if test $ac_cv_lib_socket_socket = yes; then
18169   NET_LIBS="${NET_LIBS} -lsocket"; LIBS="${LIBS} -lsocket"
18170 else
18171   { echo "$as_me:$LINENO: checking for socket in -linet" >&5
18172 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
18173 if test "${ac_cv_lib_inet_socket+set}" = set; then
18174   echo $ECHO_N "(cached) $ECHO_C" >&6
18175 else
18176   ac_check_lib_save_LIBS=$LIBS
18177 LIBS="-linet  $LIBS"
18178 cat >conftest.$ac_ext <<_ACEOF
18179 /* confdefs.h.  */
18180 _ACEOF
18181 cat confdefs.h >>conftest.$ac_ext
18182 cat >>conftest.$ac_ext <<_ACEOF
18183 /* end confdefs.h.  */
18184
18185 /* Override any GCC internal prototype to avoid an error.
18186    Use char because int might match the return type of a GCC
18187    builtin and then its argument prototype would still apply.  */
18188 #ifdef __cplusplus
18189 extern "C"
18190 #endif
18191 char socket ();
18192 int
18193 main ()
18194 {
18195 return socket ();
18196   ;
18197   return 0;
18198 }
18199 _ACEOF
18200 rm -f conftest.$ac_objext conftest$ac_exeext
18201 if { (ac_try="$ac_link"
18202 case "(($ac_try" in
18203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18204   *) ac_try_echo=$ac_try;;
18205 esac
18206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18207   (eval "$ac_link") 2>conftest.er1
18208   ac_status=$?
18209   grep -v '^ *+' conftest.er1 >conftest.err
18210   rm -f conftest.er1
18211   cat conftest.err >&5
18212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18213   (exit $ac_status); } && {
18214          test -z "$ac_c_werror_flag" ||
18215          test ! -s conftest.err
18216        } && test -s conftest$ac_exeext &&
18217        $as_test_x conftest$ac_exeext; then
18218   ac_cv_lib_inet_socket=yes
18219 else
18220   echo "$as_me: failed program was:" >&5
18221 sed 's/^/| /' conftest.$ac_ext >&5
18222
18223         ac_cv_lib_inet_socket=no
18224 fi
18225
18226 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18227       conftest$ac_exeext conftest.$ac_ext
18228 LIBS=$ac_check_lib_save_LIBS
18229 fi
18230 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
18231 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
18232 if test $ac_cv_lib_inet_socket = yes; then
18233   NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
18234 else
18235   { echo "$as_me:$LINENO: WARNING: unable to find socket() trying -lsocket -lnsl" >&5
18236 echo "$as_me: WARNING: unable to find socket() trying -lsocket -lnsl" >&2;}
18237 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
18238 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
18239 if test "${ac_cv_lib_socket_socket+set}" = set; then
18240   echo $ECHO_N "(cached) $ECHO_C" >&6
18241 else
18242   ac_check_lib_save_LIBS=$LIBS
18243 LIBS="-lsocket -lnsl $LIBS"
18244 cat >conftest.$ac_ext <<_ACEOF
18245 /* confdefs.h.  */
18246 _ACEOF
18247 cat confdefs.h >>conftest.$ac_ext
18248 cat >>conftest.$ac_ext <<_ACEOF
18249 /* end confdefs.h.  */
18250
18251 /* Override any GCC internal prototype to avoid an error.
18252    Use char because int might match the return type of a GCC
18253    builtin and then its argument prototype would still apply.  */
18254 #ifdef __cplusplus
18255 extern "C"
18256 #endif
18257 char socket ();
18258 int
18259 main ()
18260 {
18261 return socket ();
18262   ;
18263   return 0;
18264 }
18265 _ACEOF
18266 rm -f conftest.$ac_objext conftest$ac_exeext
18267 if { (ac_try="$ac_link"
18268 case "(($ac_try" in
18269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18270   *) ac_try_echo=$ac_try;;
18271 esac
18272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18273   (eval "$ac_link") 2>conftest.er1
18274   ac_status=$?
18275   grep -v '^ *+' conftest.er1 >conftest.err
18276   rm -f conftest.er1
18277   cat conftest.err >&5
18278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18279   (exit $ac_status); } && {
18280          test -z "$ac_c_werror_flag" ||
18281          test ! -s conftest.err
18282        } && test -s conftest$ac_exeext &&
18283        $as_test_x conftest$ac_exeext; then
18284   ac_cv_lib_socket_socket=yes
18285 else
18286   echo "$as_me: failed program was:" >&5
18287 sed 's/^/| /' conftest.$ac_ext >&5
18288
18289         ac_cv_lib_socket_socket=no
18290 fi
18291
18292 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18293       conftest$ac_exeext conftest.$ac_ext
18294 LIBS=$ac_check_lib_save_LIBS
18295 fi
18296 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
18297 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
18298 if test $ac_cv_lib_socket_socket = yes; then
18299   NET_LIBS="${NET_LIBS} -lsocket -lnsl"; LIBS="${LIBS} -lsocket -lnsl"
18300 fi
18301
18302 fi
18303
18304 fi
18305
18306 fi
18307
18308 { echo "$as_me:$LINENO: checking for inet_addr" >&5
18309 echo $ECHO_N "checking for inet_addr... $ECHO_C" >&6; }
18310 if test "${ac_cv_func_inet_addr+set}" = set; then
18311   echo $ECHO_N "(cached) $ECHO_C" >&6
18312 else
18313   cat >conftest.$ac_ext <<_ACEOF
18314 /* confdefs.h.  */
18315 _ACEOF
18316 cat confdefs.h >>conftest.$ac_ext
18317 cat >>conftest.$ac_ext <<_ACEOF
18318 /* end confdefs.h.  */
18319 /* Define inet_addr to an innocuous variant, in case <limits.h> declares inet_addr.
18320    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18321 #define inet_addr innocuous_inet_addr
18322
18323 /* System header to define __stub macros and hopefully few prototypes,
18324     which can conflict with char inet_addr (); below.
18325     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18326     <limits.h> exists even on freestanding compilers.  */
18327
18328 #ifdef __STDC__
18329 # include <limits.h>
18330 #else
18331 # include <assert.h>
18332 #endif
18333
18334 #undef inet_addr
18335
18336 /* Override any GCC internal prototype to avoid an error.
18337    Use char because int might match the return type of a GCC
18338    builtin and then its argument prototype would still apply.  */
18339 #ifdef __cplusplus
18340 extern "C"
18341 #endif
18342 char inet_addr ();
18343 /* The GNU C library defines this for functions which it implements
18344     to always fail with ENOSYS.  Some functions are actually named
18345     something starting with __ and the normal name is an alias.  */
18346 #if defined __stub_inet_addr || defined __stub___inet_addr
18347 choke me
18348 #endif
18349
18350 int
18351 main ()
18352 {
18353 return inet_addr ();
18354   ;
18355   return 0;
18356 }
18357 _ACEOF
18358 rm -f conftest.$ac_objext conftest$ac_exeext
18359 if { (ac_try="$ac_link"
18360 case "(($ac_try" in
18361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18362   *) ac_try_echo=$ac_try;;
18363 esac
18364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18365   (eval "$ac_link") 2>conftest.er1
18366   ac_status=$?
18367   grep -v '^ *+' conftest.er1 >conftest.err
18368   rm -f conftest.er1
18369   cat conftest.err >&5
18370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18371   (exit $ac_status); } && {
18372          test -z "$ac_c_werror_flag" ||
18373          test ! -s conftest.err
18374        } && test -s conftest$ac_exeext &&
18375        $as_test_x conftest$ac_exeext; then
18376   ac_cv_func_inet_addr=yes
18377 else
18378   echo "$as_me: failed program was:" >&5
18379 sed 's/^/| /' conftest.$ac_ext >&5
18380
18381         ac_cv_func_inet_addr=no
18382 fi
18383
18384 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18385       conftest$ac_exeext conftest.$ac_ext
18386 fi
18387 { echo "$as_me:$LINENO: result: $ac_cv_func_inet_addr" >&5
18388 echo "${ECHO_T}$ac_cv_func_inet_addr" >&6; }
18389 if test $ac_cv_func_inet_addr = yes; then
18390   :
18391 else
18392   { echo "$as_me:$LINENO: checking for __inet_addr" >&5
18393 echo $ECHO_N "checking for __inet_addr... $ECHO_C" >&6; }
18394 if test "${ac_cv_func___inet_addr+set}" = set; then
18395   echo $ECHO_N "(cached) $ECHO_C" >&6
18396 else
18397   cat >conftest.$ac_ext <<_ACEOF
18398 /* confdefs.h.  */
18399 _ACEOF
18400 cat confdefs.h >>conftest.$ac_ext
18401 cat >>conftest.$ac_ext <<_ACEOF
18402 /* end confdefs.h.  */
18403 /* Define __inet_addr to an innocuous variant, in case <limits.h> declares __inet_addr.
18404    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18405 #define __inet_addr innocuous___inet_addr
18406
18407 /* System header to define __stub macros and hopefully few prototypes,
18408     which can conflict with char __inet_addr (); below.
18409     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18410     <limits.h> exists even on freestanding compilers.  */
18411
18412 #ifdef __STDC__
18413 # include <limits.h>
18414 #else
18415 # include <assert.h>
18416 #endif
18417
18418 #undef __inet_addr
18419
18420 /* Override any GCC internal prototype to avoid an error.
18421    Use char because int might match the return type of a GCC
18422    builtin and then its argument prototype would still apply.  */
18423 #ifdef __cplusplus
18424 extern "C"
18425 #endif
18426 char __inet_addr ();
18427 /* The GNU C library defines this for functions which it implements
18428     to always fail with ENOSYS.  Some functions are actually named
18429     something starting with __ and the normal name is an alias.  */
18430 #if defined __stub___inet_addr || defined __stub_____inet_addr
18431 choke me
18432 #endif
18433
18434 int
18435 main ()
18436 {
18437 return __inet_addr ();
18438   ;
18439   return 0;
18440 }
18441 _ACEOF
18442 rm -f conftest.$ac_objext conftest$ac_exeext
18443 if { (ac_try="$ac_link"
18444 case "(($ac_try" in
18445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18446   *) ac_try_echo=$ac_try;;
18447 esac
18448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18449   (eval "$ac_link") 2>conftest.er1
18450   ac_status=$?
18451   grep -v '^ *+' conftest.er1 >conftest.err
18452   rm -f conftest.er1
18453   cat conftest.err >&5
18454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18455   (exit $ac_status); } && {
18456          test -z "$ac_c_werror_flag" ||
18457          test ! -s conftest.err
18458        } && test -s conftest$ac_exeext &&
18459        $as_test_x conftest$ac_exeext; then
18460   ac_cv_func___inet_addr=yes
18461 else
18462   echo "$as_me: failed program was:" >&5
18463 sed 's/^/| /' conftest.$ac_ext >&5
18464
18465         ac_cv_func___inet_addr=no
18466 fi
18467
18468 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18469       conftest$ac_exeext conftest.$ac_ext
18470 fi
18471 { echo "$as_me:$LINENO: result: $ac_cv_func___inet_addr" >&5
18472 echo "${ECHO_T}$ac_cv_func___inet_addr" >&6; }
18473 if test $ac_cv_func___inet_addr = yes; then
18474   :
18475 else
18476   { echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
18477 echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6; }
18478 if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
18479   echo $ECHO_N "(cached) $ECHO_C" >&6
18480 else
18481   ac_check_lib_save_LIBS=$LIBS
18482 LIBS="-lnsl  $LIBS"
18483 cat >conftest.$ac_ext <<_ACEOF
18484 /* confdefs.h.  */
18485 _ACEOF
18486 cat confdefs.h >>conftest.$ac_ext
18487 cat >>conftest.$ac_ext <<_ACEOF
18488 /* end confdefs.h.  */
18489
18490 /* Override any GCC internal prototype to avoid an error.
18491    Use char because int might match the return type of a GCC
18492    builtin and then its argument prototype would still apply.  */
18493 #ifdef __cplusplus
18494 extern "C"
18495 #endif
18496 char inet_addr ();
18497 int
18498 main ()
18499 {
18500 return inet_addr ();
18501   ;
18502   return 0;
18503 }
18504 _ACEOF
18505 rm -f conftest.$ac_objext conftest$ac_exeext
18506 if { (ac_try="$ac_link"
18507 case "(($ac_try" in
18508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18509   *) ac_try_echo=$ac_try;;
18510 esac
18511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18512   (eval "$ac_link") 2>conftest.er1
18513   ac_status=$?
18514   grep -v '^ *+' conftest.er1 >conftest.err
18515   rm -f conftest.er1
18516   cat conftest.err >&5
18517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18518   (exit $ac_status); } && {
18519          test -z "$ac_c_werror_flag" ||
18520          test ! -s conftest.err
18521        } && test -s conftest$ac_exeext &&
18522        $as_test_x conftest$ac_exeext; then
18523   ac_cv_lib_nsl_inet_addr=yes
18524 else
18525   echo "$as_me: failed program was:" >&5
18526 sed 's/^/| /' conftest.$ac_ext >&5
18527
18528         ac_cv_lib_nsl_inet_addr=no
18529 fi
18530
18531 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18532       conftest$ac_exeext conftest.$ac_ext
18533 LIBS=$ac_check_lib_save_LIBS
18534 fi
18535 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
18536 echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6; }
18537 if test $ac_cv_lib_nsl_inet_addr = yes; then
18538   NET_LIBS="${NET_LIBS} -lnsl"; LIBS="${LIBS} -lnsl"
18539 else
18540   { echo "$as_me:$LINENO: checking for inet_addr in -linet" >&5
18541 echo $ECHO_N "checking for inet_addr in -linet... $ECHO_C" >&6; }
18542 if test "${ac_cv_lib_inet_inet_addr+set}" = set; then
18543   echo $ECHO_N "(cached) $ECHO_C" >&6
18544 else
18545   ac_check_lib_save_LIBS=$LIBS
18546 LIBS="-linet  $LIBS"
18547 cat >conftest.$ac_ext <<_ACEOF
18548 /* confdefs.h.  */
18549 _ACEOF
18550 cat confdefs.h >>conftest.$ac_ext
18551 cat >>conftest.$ac_ext <<_ACEOF
18552 /* end confdefs.h.  */
18553
18554 /* Override any GCC internal prototype to avoid an error.
18555    Use char because int might match the return type of a GCC
18556    builtin and then its argument prototype would still apply.  */
18557 #ifdef __cplusplus
18558 extern "C"
18559 #endif
18560 char inet_addr ();
18561 int
18562 main ()
18563 {
18564 return inet_addr ();
18565   ;
18566   return 0;
18567 }
18568 _ACEOF
18569 rm -f conftest.$ac_objext conftest$ac_exeext
18570 if { (ac_try="$ac_link"
18571 case "(($ac_try" in
18572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18573   *) ac_try_echo=$ac_try;;
18574 esac
18575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18576   (eval "$ac_link") 2>conftest.er1
18577   ac_status=$?
18578   grep -v '^ *+' conftest.er1 >conftest.err
18579   rm -f conftest.er1
18580   cat conftest.err >&5
18581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18582   (exit $ac_status); } && {
18583          test -z "$ac_c_werror_flag" ||
18584          test ! -s conftest.err
18585        } && test -s conftest$ac_exeext &&
18586        $as_test_x conftest$ac_exeext; then
18587   ac_cv_lib_inet_inet_addr=yes
18588 else
18589   echo "$as_me: failed program was:" >&5
18590 sed 's/^/| /' conftest.$ac_ext >&5
18591
18592         ac_cv_lib_inet_inet_addr=no
18593 fi
18594
18595 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18596       conftest$ac_exeext conftest.$ac_ext
18597 LIBS=$ac_check_lib_save_LIBS
18598 fi
18599 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_inet_addr" >&5
18600 echo "${ECHO_T}$ac_cv_lib_inet_inet_addr" >&6; }
18601 if test $ac_cv_lib_inet_inet_addr = yes; then
18602   NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
18603 else
18604   { echo "$as_me:$LINENO: WARNING: unable to find inet_addr() trying -lsocket -lnsl" >&5
18605 echo "$as_me: WARNING: unable to find inet_addr() trying -lsocket -lnsl" >&2;}
18606 { echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
18607 echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6; }
18608 if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
18609   echo $ECHO_N "(cached) $ECHO_C" >&6
18610 else
18611   ac_check_lib_save_LIBS=$LIBS
18612 LIBS="-lsocket -lnsl $LIBS"
18613 cat >conftest.$ac_ext <<_ACEOF
18614 /* confdefs.h.  */
18615 _ACEOF
18616 cat confdefs.h >>conftest.$ac_ext
18617 cat >>conftest.$ac_ext <<_ACEOF
18618 /* end confdefs.h.  */
18619
18620 /* Override any GCC internal prototype to avoid an error.
18621    Use char because int might match the return type of a GCC
18622    builtin and then its argument prototype would still apply.  */
18623 #ifdef __cplusplus
18624 extern "C"
18625 #endif
18626 char inet_addr ();
18627 int
18628 main ()
18629 {
18630 return inet_addr ();
18631   ;
18632   return 0;
18633 }
18634 _ACEOF
18635 rm -f conftest.$ac_objext conftest$ac_exeext
18636 if { (ac_try="$ac_link"
18637 case "(($ac_try" in
18638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18639   *) ac_try_echo=$ac_try;;
18640 esac
18641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18642   (eval "$ac_link") 2>conftest.er1
18643   ac_status=$?
18644   grep -v '^ *+' conftest.er1 >conftest.err
18645   rm -f conftest.er1
18646   cat conftest.err >&5
18647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18648   (exit $ac_status); } && {
18649          test -z "$ac_c_werror_flag" ||
18650          test ! -s conftest.err
18651        } && test -s conftest$ac_exeext &&
18652        $as_test_x conftest$ac_exeext; then
18653   ac_cv_lib_socket_inet_addr=yes
18654 else
18655   echo "$as_me: failed program was:" >&5
18656 sed 's/^/| /' conftest.$ac_ext >&5
18657
18658         ac_cv_lib_socket_inet_addr=no
18659 fi
18660
18661 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18662       conftest$ac_exeext conftest.$ac_ext
18663 LIBS=$ac_check_lib_save_LIBS
18664 fi
18665 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
18666 echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6; }
18667 if test $ac_cv_lib_socket_inet_addr = yes; then
18668   NET_LIBS="${NET_LIBS} -lsocket -lnsl"; LIBS="${LIBS} -lsocket -lnsl"
18669 fi
18670
18671 fi
18672
18673 fi
18674
18675 fi
18676
18677 fi
18678
18679 { echo "$as_me:$LINENO: checking for syslog" >&5
18680 echo $ECHO_N "checking for syslog... $ECHO_C" >&6; }
18681 if test "${ac_cv_func_syslog+set}" = set; then
18682   echo $ECHO_N "(cached) $ECHO_C" >&6
18683 else
18684   cat >conftest.$ac_ext <<_ACEOF
18685 /* confdefs.h.  */
18686 _ACEOF
18687 cat confdefs.h >>conftest.$ac_ext
18688 cat >>conftest.$ac_ext <<_ACEOF
18689 /* end confdefs.h.  */
18690 /* Define syslog to an innocuous variant, in case <limits.h> declares syslog.
18691    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18692 #define syslog innocuous_syslog
18693
18694 /* System header to define __stub macros and hopefully few prototypes,
18695     which can conflict with char syslog (); below.
18696     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18697     <limits.h> exists even on freestanding compilers.  */
18698
18699 #ifdef __STDC__
18700 # include <limits.h>
18701 #else
18702 # include <assert.h>
18703 #endif
18704
18705 #undef syslog
18706
18707 /* Override any GCC internal prototype to avoid an error.
18708    Use char because int might match the return type of a GCC
18709    builtin and then its argument prototype would still apply.  */
18710 #ifdef __cplusplus
18711 extern "C"
18712 #endif
18713 char syslog ();
18714 /* The GNU C library defines this for functions which it implements
18715     to always fail with ENOSYS.  Some functions are actually named
18716     something starting with __ and the normal name is an alias.  */
18717 #if defined __stub_syslog || defined __stub___syslog
18718 choke me
18719 #endif
18720
18721 int
18722 main ()
18723 {
18724 return syslog ();
18725   ;
18726   return 0;
18727 }
18728 _ACEOF
18729 rm -f conftest.$ac_objext conftest$ac_exeext
18730 if { (ac_try="$ac_link"
18731 case "(($ac_try" in
18732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18733   *) ac_try_echo=$ac_try;;
18734 esac
18735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18736   (eval "$ac_link") 2>conftest.er1
18737   ac_status=$?
18738   grep -v '^ *+' conftest.er1 >conftest.err
18739   rm -f conftest.er1
18740   cat conftest.err >&5
18741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18742   (exit $ac_status); } && {
18743          test -z "$ac_c_werror_flag" ||
18744          test ! -s conftest.err
18745        } && test -s conftest$ac_exeext &&
18746        $as_test_x conftest$ac_exeext; then
18747   ac_cv_func_syslog=yes
18748 else
18749   echo "$as_me: failed program was:" >&5
18750 sed 's/^/| /' conftest.$ac_ext >&5
18751
18752         ac_cv_func_syslog=no
18753 fi
18754
18755 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18756       conftest$ac_exeext conftest.$ac_ext
18757 fi
18758 { echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
18759 echo "${ECHO_T}$ac_cv_func_syslog" >&6; }
18760 if test $ac_cv_func_syslog = yes; then
18761   :
18762 else
18763   { echo "$as_me:$LINENO: checking for syslog in -lsocket" >&5
18764 echo $ECHO_N "checking for syslog in -lsocket... $ECHO_C" >&6; }
18765 if test "${ac_cv_lib_socket_syslog+set}" = set; then
18766   echo $ECHO_N "(cached) $ECHO_C" >&6
18767 else
18768   ac_check_lib_save_LIBS=$LIBS
18769 LIBS="-lsocket  $LIBS"
18770 cat >conftest.$ac_ext <<_ACEOF
18771 /* confdefs.h.  */
18772 _ACEOF
18773 cat confdefs.h >>conftest.$ac_ext
18774 cat >>conftest.$ac_ext <<_ACEOF
18775 /* end confdefs.h.  */
18776
18777 /* Override any GCC internal prototype to avoid an error.
18778    Use char because int might match the return type of a GCC
18779    builtin and then its argument prototype would still apply.  */
18780 #ifdef __cplusplus
18781 extern "C"
18782 #endif
18783 char syslog ();
18784 int
18785 main ()
18786 {
18787 return syslog ();
18788   ;
18789   return 0;
18790 }
18791 _ACEOF
18792 rm -f conftest.$ac_objext conftest$ac_exeext
18793 if { (ac_try="$ac_link"
18794 case "(($ac_try" in
18795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18796   *) ac_try_echo=$ac_try;;
18797 esac
18798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18799   (eval "$ac_link") 2>conftest.er1
18800   ac_status=$?
18801   grep -v '^ *+' conftest.er1 >conftest.err
18802   rm -f conftest.er1
18803   cat conftest.err >&5
18804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18805   (exit $ac_status); } && {
18806          test -z "$ac_c_werror_flag" ||
18807          test ! -s conftest.err
18808        } && test -s conftest$ac_exeext &&
18809        $as_test_x conftest$ac_exeext; then
18810   ac_cv_lib_socket_syslog=yes
18811 else
18812   echo "$as_me: failed program was:" >&5
18813 sed 's/^/| /' conftest.$ac_ext >&5
18814
18815         ac_cv_lib_socket_syslog=no
18816 fi
18817
18818 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18819       conftest$ac_exeext conftest.$ac_ext
18820 LIBS=$ac_check_lib_save_LIBS
18821 fi
18822 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_syslog" >&5
18823 echo "${ECHO_T}$ac_cv_lib_socket_syslog" >&6; }
18824 if test $ac_cv_lib_socket_syslog = yes; then
18825   NET_LIBS="${NET_LIBS} -lsocket"; LIBS="${LIBS} -lsocket"
18826 else
18827   { echo "$as_me:$LINENO: checking for syslog in -lnsl" >&5
18828 echo $ECHO_N "checking for syslog in -lnsl... $ECHO_C" >&6; }
18829 if test "${ac_cv_lib_nsl_syslog+set}" = set; then
18830   echo $ECHO_N "(cached) $ECHO_C" >&6
18831 else
18832   ac_check_lib_save_LIBS=$LIBS
18833 LIBS="-lnsl  $LIBS"
18834 cat >conftest.$ac_ext <<_ACEOF
18835 /* confdefs.h.  */
18836 _ACEOF
18837 cat confdefs.h >>conftest.$ac_ext
18838 cat >>conftest.$ac_ext <<_ACEOF
18839 /* end confdefs.h.  */
18840
18841 /* Override any GCC internal prototype to avoid an error.
18842    Use char because int might match the return type of a GCC
18843    builtin and then its argument prototype would still apply.  */
18844 #ifdef __cplusplus
18845 extern "C"
18846 #endif
18847 char syslog ();
18848 int
18849 main ()
18850 {
18851 return syslog ();
18852   ;
18853   return 0;
18854 }
18855 _ACEOF
18856 rm -f conftest.$ac_objext conftest$ac_exeext
18857 if { (ac_try="$ac_link"
18858 case "(($ac_try" in
18859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18860   *) ac_try_echo=$ac_try;;
18861 esac
18862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18863   (eval "$ac_link") 2>conftest.er1
18864   ac_status=$?
18865   grep -v '^ *+' conftest.er1 >conftest.err
18866   rm -f conftest.er1
18867   cat conftest.err >&5
18868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18869   (exit $ac_status); } && {
18870          test -z "$ac_c_werror_flag" ||
18871          test ! -s conftest.err
18872        } && test -s conftest$ac_exeext &&
18873        $as_test_x conftest$ac_exeext; then
18874   ac_cv_lib_nsl_syslog=yes
18875 else
18876   echo "$as_me: failed program was:" >&5
18877 sed 's/^/| /' conftest.$ac_ext >&5
18878
18879         ac_cv_lib_nsl_syslog=no
18880 fi
18881
18882 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18883       conftest$ac_exeext conftest.$ac_ext
18884 LIBS=$ac_check_lib_save_LIBS
18885 fi
18886 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_syslog" >&5
18887 echo "${ECHO_T}$ac_cv_lib_nsl_syslog" >&6; }
18888 if test $ac_cv_lib_nsl_syslog = yes; then
18889   NET_LIBS="${NET_LIBS} -lnsl"; LIBS="${LIBS} -lnsl"
18890 else
18891   { echo "$as_me:$LINENO: checking for syslog in -linet" >&5
18892 echo $ECHO_N "checking for syslog in -linet... $ECHO_C" >&6; }
18893 if test "${ac_cv_lib_inet_syslog+set}" = set; then
18894   echo $ECHO_N "(cached) $ECHO_C" >&6
18895 else
18896   ac_check_lib_save_LIBS=$LIBS
18897 LIBS="-linet  $LIBS"
18898 cat >conftest.$ac_ext <<_ACEOF
18899 /* confdefs.h.  */
18900 _ACEOF
18901 cat confdefs.h >>conftest.$ac_ext
18902 cat >>conftest.$ac_ext <<_ACEOF
18903 /* end confdefs.h.  */
18904
18905 /* Override any GCC internal prototype to avoid an error.
18906    Use char because int might match the return type of a GCC
18907    builtin and then its argument prototype would still apply.  */
18908 #ifdef __cplusplus
18909 extern "C"
18910 #endif
18911 char syslog ();
18912 int
18913 main ()
18914 {
18915 return syslog ();
18916   ;
18917   return 0;
18918 }
18919 _ACEOF
18920 rm -f conftest.$ac_objext conftest$ac_exeext
18921 if { (ac_try="$ac_link"
18922 case "(($ac_try" in
18923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18924   *) ac_try_echo=$ac_try;;
18925 esac
18926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18927   (eval "$ac_link") 2>conftest.er1
18928   ac_status=$?
18929   grep -v '^ *+' conftest.er1 >conftest.err
18930   rm -f conftest.er1
18931   cat conftest.err >&5
18932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18933   (exit $ac_status); } && {
18934          test -z "$ac_c_werror_flag" ||
18935          test ! -s conftest.err
18936        } && test -s conftest$ac_exeext &&
18937        $as_test_x conftest$ac_exeext; then
18938   ac_cv_lib_inet_syslog=yes
18939 else
18940   echo "$as_me: failed program was:" >&5
18941 sed 's/^/| /' conftest.$ac_ext >&5
18942
18943         ac_cv_lib_inet_syslog=no
18944 fi
18945
18946 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18947       conftest$ac_exeext conftest.$ac_ext
18948 LIBS=$ac_check_lib_save_LIBS
18949 fi
18950 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_syslog" >&5
18951 echo "${ECHO_T}$ac_cv_lib_inet_syslog" >&6; }
18952 if test $ac_cv_lib_inet_syslog = yes; then
18953   NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
18954 fi
18955
18956 fi
18957
18958 fi
18959
18960 fi
18961
18962 if test "$with_DCE" = "yes" -o "$ac_cv_prog_YACC" = "bison -y"; then
18963     # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
18964 # for constant arguments.  Useless!
18965 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
18966 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
18967 if test "${ac_cv_working_alloca_h+set}" = set; then
18968   echo $ECHO_N "(cached) $ECHO_C" >&6
18969 else
18970   cat >conftest.$ac_ext <<_ACEOF
18971 /* confdefs.h.  */
18972 _ACEOF
18973 cat confdefs.h >>conftest.$ac_ext
18974 cat >>conftest.$ac_ext <<_ACEOF
18975 /* end confdefs.h.  */
18976 #include <alloca.h>
18977 int
18978 main ()
18979 {
18980 char *p = (char *) alloca (2 * sizeof (int));
18981                           if (p) return 0;
18982   ;
18983   return 0;
18984 }
18985 _ACEOF
18986 rm -f conftest.$ac_objext conftest$ac_exeext
18987 if { (ac_try="$ac_link"
18988 case "(($ac_try" in
18989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18990   *) ac_try_echo=$ac_try;;
18991 esac
18992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18993   (eval "$ac_link") 2>conftest.er1
18994   ac_status=$?
18995   grep -v '^ *+' conftest.er1 >conftest.err
18996   rm -f conftest.er1
18997   cat conftest.err >&5
18998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18999   (exit $ac_status); } && {
19000          test -z "$ac_c_werror_flag" ||
19001          test ! -s conftest.err
19002        } && test -s conftest$ac_exeext &&
19003        $as_test_x conftest$ac_exeext; then
19004   ac_cv_working_alloca_h=yes
19005 else
19006   echo "$as_me: failed program was:" >&5
19007 sed 's/^/| /' conftest.$ac_ext >&5
19008
19009         ac_cv_working_alloca_h=no
19010 fi
19011
19012 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19013       conftest$ac_exeext conftest.$ac_ext
19014 fi
19015 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
19016 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
19017 if test $ac_cv_working_alloca_h = yes; then
19018
19019 cat >>confdefs.h <<\_ACEOF
19020 #define HAVE_ALLOCA_H 1
19021 _ACEOF
19022
19023 fi
19024
19025 { echo "$as_me:$LINENO: checking for alloca" >&5
19026 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
19027 if test "${ac_cv_func_alloca_works+set}" = set; then
19028   echo $ECHO_N "(cached) $ECHO_C" >&6
19029 else
19030   cat >conftest.$ac_ext <<_ACEOF
19031 /* confdefs.h.  */
19032 _ACEOF
19033 cat confdefs.h >>conftest.$ac_ext
19034 cat >>conftest.$ac_ext <<_ACEOF
19035 /* end confdefs.h.  */
19036 #ifdef __GNUC__
19037 # define alloca __builtin_alloca
19038 #else
19039 # ifdef _MSC_VER
19040 #  include <malloc.h>
19041 #  define alloca _alloca
19042 # else
19043 #  ifdef HAVE_ALLOCA_H
19044 #   include <alloca.h>
19045 #  else
19046 #   ifdef _AIX
19047  #pragma alloca
19048 #   else
19049 #    ifndef alloca /* predefined by HP cc +Olibcalls */
19050 char *alloca ();
19051 #    endif
19052 #   endif
19053 #  endif
19054 # endif
19055 #endif
19056
19057 int
19058 main ()
19059 {
19060 char *p = (char *) alloca (1);
19061                                     if (p) return 0;
19062   ;
19063   return 0;
19064 }
19065 _ACEOF
19066 rm -f conftest.$ac_objext conftest$ac_exeext
19067 if { (ac_try="$ac_link"
19068 case "(($ac_try" in
19069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19070   *) ac_try_echo=$ac_try;;
19071 esac
19072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19073   (eval "$ac_link") 2>conftest.er1
19074   ac_status=$?
19075   grep -v '^ *+' conftest.er1 >conftest.err
19076   rm -f conftest.er1
19077   cat conftest.err >&5
19078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19079   (exit $ac_status); } && {
19080          test -z "$ac_c_werror_flag" ||
19081          test ! -s conftest.err
19082        } && test -s conftest$ac_exeext &&
19083        $as_test_x conftest$ac_exeext; then
19084   ac_cv_func_alloca_works=yes
19085 else
19086   echo "$as_me: failed program was:" >&5
19087 sed 's/^/| /' conftest.$ac_ext >&5
19088
19089         ac_cv_func_alloca_works=no
19090 fi
19091
19092 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19093       conftest$ac_exeext conftest.$ac_ext
19094 fi
19095 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
19096 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
19097
19098 if test $ac_cv_func_alloca_works = yes; then
19099
19100 cat >>confdefs.h <<\_ACEOF
19101 #define HAVE_ALLOCA 1
19102 _ACEOF
19103
19104 else
19105   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19106 # that cause trouble.  Some versions do not even contain alloca or
19107 # contain a buggy version.  If you still want to use their alloca,
19108 # use ar to extract alloca.o from them instead of compiling alloca.c.
19109
19110 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
19111
19112 cat >>confdefs.h <<\_ACEOF
19113 #define C_ALLOCA 1
19114 _ACEOF
19115
19116
19117 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
19118 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
19119 if test "${ac_cv_os_cray+set}" = set; then
19120   echo $ECHO_N "(cached) $ECHO_C" >&6
19121 else
19122   cat >conftest.$ac_ext <<_ACEOF
19123 /* confdefs.h.  */
19124 _ACEOF
19125 cat confdefs.h >>conftest.$ac_ext
19126 cat >>conftest.$ac_ext <<_ACEOF
19127 /* end confdefs.h.  */
19128 #if defined CRAY && ! defined CRAY2
19129 webecray
19130 #else
19131 wenotbecray
19132 #endif
19133
19134 _ACEOF
19135 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19136   $EGREP "webecray" >/dev/null 2>&1; then
19137   ac_cv_os_cray=yes
19138 else
19139   ac_cv_os_cray=no
19140 fi
19141 rm -f conftest*
19142
19143 fi
19144 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
19145 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
19146 if test $ac_cv_os_cray = yes; then
19147   for ac_func in _getb67 GETB67 getb67; do
19148     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19149 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19150 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19151 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19152   echo $ECHO_N "(cached) $ECHO_C" >&6
19153 else
19154   cat >conftest.$ac_ext <<_ACEOF
19155 /* confdefs.h.  */
19156 _ACEOF
19157 cat confdefs.h >>conftest.$ac_ext
19158 cat >>conftest.$ac_ext <<_ACEOF
19159 /* end confdefs.h.  */
19160 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19161    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19162 #define $ac_func innocuous_$ac_func
19163
19164 /* System header to define __stub macros and hopefully few prototypes,
19165     which can conflict with char $ac_func (); below.
19166     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19167     <limits.h> exists even on freestanding compilers.  */
19168
19169 #ifdef __STDC__
19170 # include <limits.h>
19171 #else
19172 # include <assert.h>
19173 #endif
19174
19175 #undef $ac_func
19176
19177 /* Override any GCC internal prototype to avoid an error.
19178    Use char because int might match the return type of a GCC
19179    builtin and then its argument prototype would still apply.  */
19180 #ifdef __cplusplus
19181 extern "C"
19182 #endif
19183 char $ac_func ();
19184 /* The GNU C library defines this for functions which it implements
19185     to always fail with ENOSYS.  Some functions are actually named
19186     something starting with __ and the normal name is an alias.  */
19187 #if defined __stub_$ac_func || defined __stub___$ac_func
19188 choke me
19189 #endif
19190
19191 int
19192 main ()
19193 {
19194 return $ac_func ();
19195   ;
19196   return 0;
19197 }
19198 _ACEOF
19199 rm -f conftest.$ac_objext conftest$ac_exeext
19200 if { (ac_try="$ac_link"
19201 case "(($ac_try" in
19202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19203   *) ac_try_echo=$ac_try;;
19204 esac
19205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19206   (eval "$ac_link") 2>conftest.er1
19207   ac_status=$?
19208   grep -v '^ *+' conftest.er1 >conftest.err
19209   rm -f conftest.er1
19210   cat conftest.err >&5
19211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19212   (exit $ac_status); } && {
19213          test -z "$ac_c_werror_flag" ||
19214          test ! -s conftest.err
19215        } && test -s conftest$ac_exeext &&
19216        $as_test_x conftest$ac_exeext; then
19217   eval "$as_ac_var=yes"
19218 else
19219   echo "$as_me: failed program was:" >&5
19220 sed 's/^/| /' conftest.$ac_ext >&5
19221
19222         eval "$as_ac_var=no"
19223 fi
19224
19225 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19226       conftest$ac_exeext conftest.$ac_ext
19227 fi
19228 ac_res=`eval echo '${'$as_ac_var'}'`
19229                { echo "$as_me:$LINENO: result: $ac_res" >&5
19230 echo "${ECHO_T}$ac_res" >&6; }
19231 if test `eval echo '${'$as_ac_var'}'` = yes; then
19232
19233 cat >>confdefs.h <<_ACEOF
19234 #define CRAY_STACKSEG_END $ac_func
19235 _ACEOF
19236
19237     break
19238 fi
19239
19240   done
19241 fi
19242
19243 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
19244 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
19245 if test "${ac_cv_c_stack_direction+set}" = set; then
19246   echo $ECHO_N "(cached) $ECHO_C" >&6
19247 else
19248   if test "$cross_compiling" = yes; then
19249   ac_cv_c_stack_direction=0
19250 else
19251   cat >conftest.$ac_ext <<_ACEOF
19252 /* confdefs.h.  */
19253 _ACEOF
19254 cat confdefs.h >>conftest.$ac_ext
19255 cat >>conftest.$ac_ext <<_ACEOF
19256 /* end confdefs.h.  */
19257 $ac_includes_default
19258 int
19259 find_stack_direction ()
19260 {
19261   static char *addr = 0;
19262   auto char dummy;
19263   if (addr == 0)
19264     {
19265       addr = &dummy;
19266       return find_stack_direction ();
19267     }
19268   else
19269     return (&dummy > addr) ? 1 : -1;
19270 }
19271
19272 int
19273 main ()
19274 {
19275   return find_stack_direction () < 0;
19276 }
19277 _ACEOF
19278 rm -f conftest$ac_exeext
19279 if { (ac_try="$ac_link"
19280 case "(($ac_try" in
19281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19282   *) ac_try_echo=$ac_try;;
19283 esac
19284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19285   (eval "$ac_link") 2>&5
19286   ac_status=$?
19287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19288   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19289   { (case "(($ac_try" in
19290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19291   *) ac_try_echo=$ac_try;;
19292 esac
19293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19294   (eval "$ac_try") 2>&5
19295   ac_status=$?
19296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19297   (exit $ac_status); }; }; then
19298   ac_cv_c_stack_direction=1
19299 else
19300   echo "$as_me: program exited with status $ac_status" >&5
19301 echo "$as_me: failed program was:" >&5
19302 sed 's/^/| /' conftest.$ac_ext >&5
19303
19304 ( exit $ac_status )
19305 ac_cv_c_stack_direction=-1
19306 fi
19307 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19308 fi
19309
19310
19311 fi
19312 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
19313 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
19314
19315 cat >>confdefs.h <<_ACEOF
19316 #define STACK_DIRECTION $ac_cv_c_stack_direction
19317 _ACEOF
19318
19319
19320 fi
19321
19322 fi
19323
19324 for ac_func in getprogname
19325 do
19326 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19327 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19328 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19329 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19330   echo $ECHO_N "(cached) $ECHO_C" >&6
19331 else
19332   cat >conftest.$ac_ext <<_ACEOF
19333 /* confdefs.h.  */
19334 _ACEOF
19335 cat confdefs.h >>conftest.$ac_ext
19336 cat >>conftest.$ac_ext <<_ACEOF
19337 /* end confdefs.h.  */
19338 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19339    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19340 #define $ac_func innocuous_$ac_func
19341
19342 /* System header to define __stub macros and hopefully few prototypes,
19343     which can conflict with char $ac_func (); below.
19344     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19345     <limits.h> exists even on freestanding compilers.  */
19346
19347 #ifdef __STDC__
19348 # include <limits.h>
19349 #else
19350 # include <assert.h>
19351 #endif
19352
19353 #undef $ac_func
19354
19355 /* Override any GCC internal prototype to avoid an error.
19356    Use char because int might match the return type of a GCC
19357    builtin and then its argument prototype would still apply.  */
19358 #ifdef __cplusplus
19359 extern "C"
19360 #endif
19361 char $ac_func ();
19362 /* The GNU C library defines this for functions which it implements
19363     to always fail with ENOSYS.  Some functions are actually named
19364     something starting with __ and the normal name is an alias.  */
19365 #if defined __stub_$ac_func || defined __stub___$ac_func
19366 choke me
19367 #endif
19368
19369 int
19370 main ()
19371 {
19372 return $ac_func ();
19373   ;
19374   return 0;
19375 }
19376 _ACEOF
19377 rm -f conftest.$ac_objext conftest$ac_exeext
19378 if { (ac_try="$ac_link"
19379 case "(($ac_try" in
19380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19381   *) ac_try_echo=$ac_try;;
19382 esac
19383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19384   (eval "$ac_link") 2>conftest.er1
19385   ac_status=$?
19386   grep -v '^ *+' conftest.er1 >conftest.err
19387   rm -f conftest.er1
19388   cat conftest.err >&5
19389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19390   (exit $ac_status); } && {
19391          test -z "$ac_c_werror_flag" ||
19392          test ! -s conftest.err
19393        } && test -s conftest$ac_exeext &&
19394        $as_test_x conftest$ac_exeext; then
19395   eval "$as_ac_var=yes"
19396 else
19397   echo "$as_me: failed program was:" >&5
19398 sed 's/^/| /' conftest.$ac_ext >&5
19399
19400         eval "$as_ac_var=no"
19401 fi
19402
19403 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19404       conftest$ac_exeext conftest.$ac_ext
19405 fi
19406 ac_res=`eval echo '${'$as_ac_var'}'`
19407                { echo "$as_me:$LINENO: result: $ac_res" >&5
19408 echo "${ECHO_T}$ac_res" >&6; }
19409 if test `eval echo '${'$as_ac_var'}'` = yes; then
19410   cat >>confdefs.h <<_ACEOF
19411 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19412 _ACEOF
19413
19414 else
19415
19416     { echo "$as_me:$LINENO: checking for __progname" >&5
19417 echo $ECHO_N "checking for __progname... $ECHO_C" >&6; }
19418     if test "${sudo_cv___progname+set}" = set; then
19419   echo $ECHO_N "(cached) $ECHO_C" >&6
19420 else
19421
19422     cat >conftest.$ac_ext <<_ACEOF
19423 /* confdefs.h.  */
19424 _ACEOF
19425 cat confdefs.h >>conftest.$ac_ext
19426 cat >>conftest.$ac_ext <<_ACEOF
19427 /* end confdefs.h.  */
19428
19429 int
19430 main ()
19431 {
19432 extern char *__progname; (void)puts(__progname);
19433   ;
19434   return 0;
19435 }
19436 _ACEOF
19437 rm -f conftest.$ac_objext conftest$ac_exeext
19438 if { (ac_try="$ac_link"
19439 case "(($ac_try" in
19440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19441   *) ac_try_echo=$ac_try;;
19442 esac
19443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19444   (eval "$ac_link") 2>conftest.er1
19445   ac_status=$?
19446   grep -v '^ *+' conftest.er1 >conftest.err
19447   rm -f conftest.er1
19448   cat conftest.err >&5
19449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19450   (exit $ac_status); } && {
19451          test -z "$ac_c_werror_flag" ||
19452          test ! -s conftest.err
19453        } && test -s conftest$ac_exeext &&
19454        $as_test_x conftest$ac_exeext; then
19455   sudo_cv___progname=yes
19456 else
19457   echo "$as_me: failed program was:" >&5
19458 sed 's/^/| /' conftest.$ac_ext >&5
19459
19460         sudo_cv___progname=no
19461 fi
19462
19463 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19464       conftest$ac_exeext conftest.$ac_ext
19465 fi
19466
19467     if test "$sudo_cv___progname" = "yes"; then
19468         cat >>confdefs.h <<\_ACEOF
19469 #define HAVE___PROGNAME 1
19470 _ACEOF
19471
19472     else
19473         case " $LIBOBJS " in
19474   *" getprogname.$ac_objext "* ) ;;
19475   *) LIBOBJS="$LIBOBJS getprogname.$ac_objext"
19476  ;;
19477 esac
19478
19479     fi
19480     { echo "$as_me:$LINENO: result: $sudo_cv___progname" >&5
19481 echo "${ECHO_T}$sudo_cv___progname" >&6; }
19482
19483 fi
19484 done
19485
19486
19487
19488 if test -z "${AUTH_EXCL}${AUTH_REG}" -a -n "$AUTH_EXCL_DEF"; then
19489     for auth in $AUTH_EXCL_DEF; do
19490         case $auth in
19491             AIX_AUTH)   with_aixauth=maybe;;
19492             BSD_AUTH)   with_bsdauth=maybe;;
19493             PAM)        with_pam=maybe;;
19494             SIA)        CHECKSIA=true;;
19495         esac
19496     done
19497 fi
19498
19499 if test ${with_pam-"no"} != "no"; then
19500                 { echo "$as_me:$LINENO: checking for main in -ldl" >&5
19501 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6; }
19502 if test "${ac_cv_lib_dl_main+set}" = set; then
19503   echo $ECHO_N "(cached) $ECHO_C" >&6
19504 else
19505   ac_check_lib_save_LIBS=$LIBS
19506 LIBS="-ldl  $LIBS"
19507 cat >conftest.$ac_ext <<_ACEOF
19508 /* confdefs.h.  */
19509 _ACEOF
19510 cat confdefs.h >>conftest.$ac_ext
19511 cat >>conftest.$ac_ext <<_ACEOF
19512 /* end confdefs.h.  */
19513
19514
19515 int
19516 main ()
19517 {
19518 return main ();
19519   ;
19520   return 0;
19521 }
19522 _ACEOF
19523 rm -f conftest.$ac_objext conftest$ac_exeext
19524 if { (ac_try="$ac_link"
19525 case "(($ac_try" in
19526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19527   *) ac_try_echo=$ac_try;;
19528 esac
19529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19530   (eval "$ac_link") 2>conftest.er1
19531   ac_status=$?
19532   grep -v '^ *+' conftest.er1 >conftest.err
19533   rm -f conftest.er1
19534   cat conftest.err >&5
19535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19536   (exit $ac_status); } && {
19537          test -z "$ac_c_werror_flag" ||
19538          test ! -s conftest.err
19539        } && test -s conftest$ac_exeext &&
19540        $as_test_x conftest$ac_exeext; then
19541   ac_cv_lib_dl_main=yes
19542 else
19543   echo "$as_me: failed program was:" >&5
19544 sed 's/^/| /' conftest.$ac_ext >&5
19545
19546         ac_cv_lib_dl_main=no
19547 fi
19548
19549 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19550       conftest$ac_exeext conftest.$ac_ext
19551 LIBS=$ac_check_lib_save_LIBS
19552 fi
19553 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
19554 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6; }
19555 if test $ac_cv_lib_dl_main = yes; then
19556   SUDO_LIBS="${SUDO_LIBS} -lpam -ldl"
19557 else
19558   SUDO_LIBS="${SUDO_LIBS} -lpam"
19559 fi
19560
19561     ac_cv_lib_dl=ac_cv_lib_dl_main
19562
19563
19564
19565 for ac_header in security/pam_appl.h pam/pam_appl.h
19566 do
19567 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19568 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19569   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19570 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19571 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19572   echo $ECHO_N "(cached) $ECHO_C" >&6
19573 fi
19574 ac_res=`eval echo '${'$as_ac_Header'}'`
19575                { echo "$as_me:$LINENO: result: $ac_res" >&5
19576 echo "${ECHO_T}$ac_res" >&6; }
19577 else
19578   # Is the header compilable?
19579 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19580 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19581 cat >conftest.$ac_ext <<_ACEOF
19582 /* confdefs.h.  */
19583 _ACEOF
19584 cat confdefs.h >>conftest.$ac_ext
19585 cat >>conftest.$ac_ext <<_ACEOF
19586 /* end confdefs.h.  */
19587 $ac_includes_default
19588 #include <$ac_header>
19589 _ACEOF
19590 rm -f conftest.$ac_objext
19591 if { (ac_try="$ac_compile"
19592 case "(($ac_try" in
19593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19594   *) ac_try_echo=$ac_try;;
19595 esac
19596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19597   (eval "$ac_compile") 2>conftest.er1
19598   ac_status=$?
19599   grep -v '^ *+' conftest.er1 >conftest.err
19600   rm -f conftest.er1
19601   cat conftest.err >&5
19602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19603   (exit $ac_status); } && {
19604          test -z "$ac_c_werror_flag" ||
19605          test ! -s conftest.err
19606        } && test -s conftest.$ac_objext; then
19607   ac_header_compiler=yes
19608 else
19609   echo "$as_me: failed program was:" >&5
19610 sed 's/^/| /' conftest.$ac_ext >&5
19611
19612         ac_header_compiler=no
19613 fi
19614
19615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19616 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19617 echo "${ECHO_T}$ac_header_compiler" >&6; }
19618
19619 # Is the header present?
19620 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19621 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19622 cat >conftest.$ac_ext <<_ACEOF
19623 /* confdefs.h.  */
19624 _ACEOF
19625 cat confdefs.h >>conftest.$ac_ext
19626 cat >>conftest.$ac_ext <<_ACEOF
19627 /* end confdefs.h.  */
19628 #include <$ac_header>
19629 _ACEOF
19630 if { (ac_try="$ac_cpp conftest.$ac_ext"
19631 case "(($ac_try" in
19632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19633   *) ac_try_echo=$ac_try;;
19634 esac
19635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19636   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19637   ac_status=$?
19638   grep -v '^ *+' conftest.er1 >conftest.err
19639   rm -f conftest.er1
19640   cat conftest.err >&5
19641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19642   (exit $ac_status); } >/dev/null && {
19643          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19644          test ! -s conftest.err
19645        }; then
19646   ac_header_preproc=yes
19647 else
19648   echo "$as_me: failed program was:" >&5
19649 sed 's/^/| /' conftest.$ac_ext >&5
19650
19651   ac_header_preproc=no
19652 fi
19653
19654 rm -f conftest.err conftest.$ac_ext
19655 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19656 echo "${ECHO_T}$ac_header_preproc" >&6; }
19657
19658 # So?  What about this header?
19659 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19660   yes:no: )
19661     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19662 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19663     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19664 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19665     ac_header_preproc=yes
19666     ;;
19667   no:yes:* )
19668     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19669 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19670     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19671 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19672     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19673 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19674     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19675 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19676     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19677 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19678     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19679 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19680
19681     ;;
19682 esac
19683 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19684 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19685 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19686   echo $ECHO_N "(cached) $ECHO_C" >&6
19687 else
19688   eval "$as_ac_Header=\$ac_header_preproc"
19689 fi
19690 ac_res=`eval echo '${'$as_ac_Header'}'`
19691                { echo "$as_me:$LINENO: result: $ac_res" >&5
19692 echo "${ECHO_T}$ac_res" >&6; }
19693
19694 fi
19695 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19696   cat >>confdefs.h <<_ACEOF
19697 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19698 _ACEOF
19699  with_pam=yes; break
19700 fi
19701
19702 done
19703
19704     if test "$with_pam" = "yes"; then
19705         cat >>confdefs.h <<\_ACEOF
19706 #define HAVE_PAM 1
19707 _ACEOF
19708
19709         AUTH_OBJS="$AUTH_OBJS pam.o";
19710         AUTH_EXCL=PAM
19711         { echo "$as_me:$LINENO: checking whether to use PAM session support" >&5
19712 echo $ECHO_N "checking whether to use PAM session support... $ECHO_C" >&6; }
19713         # Check whether --enable-pam_session was given.
19714 if test "${enable_pam_session+set}" = set; then
19715   enableval=$enable_pam_session;  case "$enableval" in
19716                 yes)    { echo "$as_me:$LINENO: result: yes" >&5
19717 echo "${ECHO_T}yes" >&6; }
19718                         ;;
19719                 no)             { echo "$as_me:$LINENO: result: no" >&5
19720 echo "${ECHO_T}no" >&6; }
19721                             cat >>confdefs.h <<\_ACEOF
19722 #define NO_PAM_SESSION 1
19723 _ACEOF
19724
19725                             ;;
19726                 *)              { echo "$as_me:$LINENO: result: no" >&5
19727 echo "${ECHO_T}no" >&6; }
19728                             { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-pam-session: $enableval" >&5
19729 echo "$as_me: WARNING: Ignoring unknown argument to --enable-pam-session: $enableval" >&2;}
19730                             ;;
19731             esac
19732 else
19733   { echo "$as_me:$LINENO: result: yes" >&5
19734 echo "${ECHO_T}yes" >&6; }
19735 fi
19736
19737         case $host in
19738             *-*-linux*|*-*-solaris*)
19739
19740 for ac_func in dgettext
19741 do
19742 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19743 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19744 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19745 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19746   echo $ECHO_N "(cached) $ECHO_C" >&6
19747 else
19748   cat >conftest.$ac_ext <<_ACEOF
19749 /* confdefs.h.  */
19750 _ACEOF
19751 cat confdefs.h >>conftest.$ac_ext
19752 cat >>conftest.$ac_ext <<_ACEOF
19753 /* end confdefs.h.  */
19754 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19755    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19756 #define $ac_func innocuous_$ac_func
19757
19758 /* System header to define __stub macros and hopefully few prototypes,
19759     which can conflict with char $ac_func (); below.
19760     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19761     <limits.h> exists even on freestanding compilers.  */
19762
19763 #ifdef __STDC__
19764 # include <limits.h>
19765 #else
19766 # include <assert.h>
19767 #endif
19768
19769 #undef $ac_func
19770
19771 /* Override any GCC internal prototype to avoid an error.
19772    Use char because int might match the return type of a GCC
19773    builtin and then its argument prototype would still apply.  */
19774 #ifdef __cplusplus
19775 extern "C"
19776 #endif
19777 char $ac_func ();
19778 /* The GNU C library defines this for functions which it implements
19779     to always fail with ENOSYS.  Some functions are actually named
19780     something starting with __ and the normal name is an alias.  */
19781 #if defined __stub_$ac_func || defined __stub___$ac_func
19782 choke me
19783 #endif
19784
19785 int
19786 main ()
19787 {
19788 return $ac_func ();
19789   ;
19790   return 0;
19791 }
19792 _ACEOF
19793 rm -f conftest.$ac_objext conftest$ac_exeext
19794 if { (ac_try="$ac_link"
19795 case "(($ac_try" in
19796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19797   *) ac_try_echo=$ac_try;;
19798 esac
19799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19800   (eval "$ac_link") 2>conftest.er1
19801   ac_status=$?
19802   grep -v '^ *+' conftest.er1 >conftest.err
19803   rm -f conftest.er1
19804   cat conftest.err >&5
19805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19806   (exit $ac_status); } && {
19807          test -z "$ac_c_werror_flag" ||
19808          test ! -s conftest.err
19809        } && test -s conftest$ac_exeext &&
19810        $as_test_x conftest$ac_exeext; then
19811   eval "$as_ac_var=yes"
19812 else
19813   echo "$as_me: failed program was:" >&5
19814 sed 's/^/| /' conftest.$ac_ext >&5
19815
19816         eval "$as_ac_var=no"
19817 fi
19818
19819 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19820       conftest$ac_exeext conftest.$ac_ext
19821 fi
19822 ac_res=`eval echo '${'$as_ac_var'}'`
19823                { echo "$as_me:$LINENO: result: $ac_res" >&5
19824 echo "${ECHO_T}$ac_res" >&6; }
19825 if test `eval echo '${'$as_ac_var'}'` = yes; then
19826   cat >>confdefs.h <<_ACEOF
19827 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19828 _ACEOF
19829
19830 else
19831   { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
19832 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
19833 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
19834   echo $ECHO_N "(cached) $ECHO_C" >&6
19835 else
19836   ac_check_lib_save_LIBS=$LIBS
19837 LIBS="-lintl  $LIBS"
19838 cat >conftest.$ac_ext <<_ACEOF
19839 /* confdefs.h.  */
19840 _ACEOF
19841 cat confdefs.h >>conftest.$ac_ext
19842 cat >>conftest.$ac_ext <<_ACEOF
19843 /* end confdefs.h.  */
19844
19845 /* Override any GCC internal prototype to avoid an error.
19846    Use char because int might match the return type of a GCC
19847    builtin and then its argument prototype would still apply.  */
19848 #ifdef __cplusplus
19849 extern "C"
19850 #endif
19851 char dgettext ();
19852 int
19853 main ()
19854 {
19855 return dgettext ();
19856   ;
19857   return 0;
19858 }
19859 _ACEOF
19860 rm -f conftest.$ac_objext conftest$ac_exeext
19861 if { (ac_try="$ac_link"
19862 case "(($ac_try" in
19863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19864   *) ac_try_echo=$ac_try;;
19865 esac
19866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19867   (eval "$ac_link") 2>conftest.er1
19868   ac_status=$?
19869   grep -v '^ *+' conftest.er1 >conftest.err
19870   rm -f conftest.er1
19871   cat conftest.err >&5
19872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19873   (exit $ac_status); } && {
19874          test -z "$ac_c_werror_flag" ||
19875          test ! -s conftest.err
19876        } && test -s conftest$ac_exeext &&
19877        $as_test_x conftest$ac_exeext; then
19878   ac_cv_lib_intl_dgettext=yes
19879 else
19880   echo "$as_me: failed program was:" >&5
19881 sed 's/^/| /' conftest.$ac_ext >&5
19882
19883         ac_cv_lib_intl_dgettext=no
19884 fi
19885
19886 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19887       conftest$ac_exeext conftest.$ac_ext
19888 LIBS=$ac_check_lib_save_LIBS
19889 fi
19890 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
19891 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
19892 if test $ac_cv_lib_intl_dgettext = yes; then
19893   LIBS="${LIBS} -lintl"
19894                         cat >>confdefs.h <<\_ACEOF
19895 #define HAVE_DGETTEXT 1
19896 _ACEOF
19897
19898 fi
19899
19900 fi
19901 done
19902
19903                     ;;
19904         esac
19905     fi
19906 fi
19907
19908 if test ${with_aixauth-'no'} != "no"; then
19909     if test X"$with_aixauth" != X"maybe" -o X"$AUTH_EXCL" = X""; then
19910         { echo "$as_me:$LINENO: using AIX general authentication" >&5
19911 echo "$as_me: using AIX general authentication" >&6;}
19912         cat >>confdefs.h <<\_ACEOF
19913 #define HAVE_AIXAUTH 1
19914 _ACEOF
19915
19916         AUTH_OBJS="$AUTH_OBJS aix_auth.o";
19917         SUDO_LIBS="${SUDO_LIBS} -ls"
19918         AUTH_EXCL=AIX_AUTH
19919     fi
19920 fi
19921
19922 if test ${with_bsdauth-'no'} != "no"; then
19923     if test "${ac_cv_header_bsd_auth_h+set}" = set; then
19924   { echo "$as_me:$LINENO: checking for bsd_auth.h" >&5
19925 echo $ECHO_N "checking for bsd_auth.h... $ECHO_C" >&6; }
19926 if test "${ac_cv_header_bsd_auth_h+set}" = set; then
19927   echo $ECHO_N "(cached) $ECHO_C" >&6
19928 fi
19929 { echo "$as_me:$LINENO: result: $ac_cv_header_bsd_auth_h" >&5
19930 echo "${ECHO_T}$ac_cv_header_bsd_auth_h" >&6; }
19931 else
19932   # Is the header compilable?
19933 { echo "$as_me:$LINENO: checking bsd_auth.h usability" >&5
19934 echo $ECHO_N "checking bsd_auth.h usability... $ECHO_C" >&6; }
19935 cat >conftest.$ac_ext <<_ACEOF
19936 /* confdefs.h.  */
19937 _ACEOF
19938 cat confdefs.h >>conftest.$ac_ext
19939 cat >>conftest.$ac_ext <<_ACEOF
19940 /* end confdefs.h.  */
19941 $ac_includes_default
19942 #include <bsd_auth.h>
19943 _ACEOF
19944 rm -f conftest.$ac_objext
19945 if { (ac_try="$ac_compile"
19946 case "(($ac_try" in
19947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19948   *) ac_try_echo=$ac_try;;
19949 esac
19950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19951   (eval "$ac_compile") 2>conftest.er1
19952   ac_status=$?
19953   grep -v '^ *+' conftest.er1 >conftest.err
19954   rm -f conftest.er1
19955   cat conftest.err >&5
19956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19957   (exit $ac_status); } && {
19958          test -z "$ac_c_werror_flag" ||
19959          test ! -s conftest.err
19960        } && test -s conftest.$ac_objext; then
19961   ac_header_compiler=yes
19962 else
19963   echo "$as_me: failed program was:" >&5
19964 sed 's/^/| /' conftest.$ac_ext >&5
19965
19966         ac_header_compiler=no
19967 fi
19968
19969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19970 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19971 echo "${ECHO_T}$ac_header_compiler" >&6; }
19972
19973 # Is the header present?
19974 { echo "$as_me:$LINENO: checking bsd_auth.h presence" >&5
19975 echo $ECHO_N "checking bsd_auth.h presence... $ECHO_C" >&6; }
19976 cat >conftest.$ac_ext <<_ACEOF
19977 /* confdefs.h.  */
19978 _ACEOF
19979 cat confdefs.h >>conftest.$ac_ext
19980 cat >>conftest.$ac_ext <<_ACEOF
19981 /* end confdefs.h.  */
19982 #include <bsd_auth.h>
19983 _ACEOF
19984 if { (ac_try="$ac_cpp conftest.$ac_ext"
19985 case "(($ac_try" in
19986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19987   *) ac_try_echo=$ac_try;;
19988 esac
19989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19990   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19991   ac_status=$?
19992   grep -v '^ *+' conftest.er1 >conftest.err
19993   rm -f conftest.er1
19994   cat conftest.err >&5
19995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19996   (exit $ac_status); } >/dev/null && {
19997          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19998          test ! -s conftest.err
19999        }; then
20000   ac_header_preproc=yes
20001 else
20002   echo "$as_me: failed program was:" >&5
20003 sed 's/^/| /' conftest.$ac_ext >&5
20004
20005   ac_header_preproc=no
20006 fi
20007
20008 rm -f conftest.err conftest.$ac_ext
20009 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20010 echo "${ECHO_T}$ac_header_preproc" >&6; }
20011
20012 # So?  What about this header?
20013 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20014   yes:no: )
20015     { echo "$as_me:$LINENO: WARNING: bsd_auth.h: accepted by the compiler, rejected by the preprocessor!" >&5
20016 echo "$as_me: WARNING: bsd_auth.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20017     { echo "$as_me:$LINENO: WARNING: bsd_auth.h: proceeding with the compiler's result" >&5
20018 echo "$as_me: WARNING: bsd_auth.h: proceeding with the compiler's result" >&2;}
20019     ac_header_preproc=yes
20020     ;;
20021   no:yes:* )
20022     { echo "$as_me:$LINENO: WARNING: bsd_auth.h: present but cannot be compiled" >&5
20023 echo "$as_me: WARNING: bsd_auth.h: present but cannot be compiled" >&2;}
20024     { echo "$as_me:$LINENO: WARNING: bsd_auth.h:     check for missing prerequisite headers?" >&5
20025 echo "$as_me: WARNING: bsd_auth.h:     check for missing prerequisite headers?" >&2;}
20026     { echo "$as_me:$LINENO: WARNING: bsd_auth.h: see the Autoconf documentation" >&5
20027 echo "$as_me: WARNING: bsd_auth.h: see the Autoconf documentation" >&2;}
20028     { echo "$as_me:$LINENO: WARNING: bsd_auth.h:     section \"Present But Cannot Be Compiled\"" >&5
20029 echo "$as_me: WARNING: bsd_auth.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20030     { echo "$as_me:$LINENO: WARNING: bsd_auth.h: proceeding with the preprocessor's result" >&5
20031 echo "$as_me: WARNING: bsd_auth.h: proceeding with the preprocessor's result" >&2;}
20032     { echo "$as_me:$LINENO: WARNING: bsd_auth.h: in the future, the compiler will take precedence" >&5
20033 echo "$as_me: WARNING: bsd_auth.h: in the future, the compiler will take precedence" >&2;}
20034
20035     ;;
20036 esac
20037 { echo "$as_me:$LINENO: checking for bsd_auth.h" >&5
20038 echo $ECHO_N "checking for bsd_auth.h... $ECHO_C" >&6; }
20039 if test "${ac_cv_header_bsd_auth_h+set}" = set; then
20040   echo $ECHO_N "(cached) $ECHO_C" >&6
20041 else
20042   ac_cv_header_bsd_auth_h=$ac_header_preproc
20043 fi
20044 { echo "$as_me:$LINENO: result: $ac_cv_header_bsd_auth_h" >&5
20045 echo "${ECHO_T}$ac_cv_header_bsd_auth_h" >&6; }
20046
20047 fi
20048 if test $ac_cv_header_bsd_auth_h = yes; then
20049   cat >>confdefs.h <<\_ACEOF
20050 #define HAVE_BSD_AUTH_H 1
20051 _ACEOF
20052
20053         AUTH_OBJS="$AUTH_OBJS bsdauth.o"
20054         BSDAUTH_USAGE='[-a auth_type] '
20055         AUTH_EXCL=BSD_AUTH
20056 else
20057   { { echo "$as_me:$LINENO: error: BSD authentication was specified but bsd_auth.h could not be found" >&5
20058 echo "$as_me: error: BSD authentication was specified but bsd_auth.h could not be found" >&2;}
20059    { (exit 1); exit 1; }; }
20060 fi
20061
20062
20063 fi
20064
20065 if test ${CHECKSIA-'false'} = "true"; then
20066
20067 for ac_func in sia_ses_init
20068 do
20069 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20070 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20071 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20072 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20073   echo $ECHO_N "(cached) $ECHO_C" >&6
20074 else
20075   cat >conftest.$ac_ext <<_ACEOF
20076 /* confdefs.h.  */
20077 _ACEOF
20078 cat confdefs.h >>conftest.$ac_ext
20079 cat >>conftest.$ac_ext <<_ACEOF
20080 /* end confdefs.h.  */
20081 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20082    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20083 #define $ac_func innocuous_$ac_func
20084
20085 /* System header to define __stub macros and hopefully few prototypes,
20086     which can conflict with char $ac_func (); below.
20087     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20088     <limits.h> exists even on freestanding compilers.  */
20089
20090 #ifdef __STDC__
20091 # include <limits.h>
20092 #else
20093 # include <assert.h>
20094 #endif
20095
20096 #undef $ac_func
20097
20098 /* Override any GCC internal prototype to avoid an error.
20099    Use char because int might match the return type of a GCC
20100    builtin and then its argument prototype would still apply.  */
20101 #ifdef __cplusplus
20102 extern "C"
20103 #endif
20104 char $ac_func ();
20105 /* The GNU C library defines this for functions which it implements
20106     to always fail with ENOSYS.  Some functions are actually named
20107     something starting with __ and the normal name is an alias.  */
20108 #if defined __stub_$ac_func || defined __stub___$ac_func
20109 choke me
20110 #endif
20111
20112 int
20113 main ()
20114 {
20115 return $ac_func ();
20116   ;
20117   return 0;
20118 }
20119 _ACEOF
20120 rm -f conftest.$ac_objext conftest$ac_exeext
20121 if { (ac_try="$ac_link"
20122 case "(($ac_try" in
20123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20124   *) ac_try_echo=$ac_try;;
20125 esac
20126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20127   (eval "$ac_link") 2>conftest.er1
20128   ac_status=$?
20129   grep -v '^ *+' conftest.er1 >conftest.err
20130   rm -f conftest.er1
20131   cat conftest.err >&5
20132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20133   (exit $ac_status); } && {
20134          test -z "$ac_c_werror_flag" ||
20135          test ! -s conftest.err
20136        } && test -s conftest$ac_exeext &&
20137        $as_test_x conftest$ac_exeext; then
20138   eval "$as_ac_var=yes"
20139 else
20140   echo "$as_me: failed program was:" >&5
20141 sed 's/^/| /' conftest.$ac_ext >&5
20142
20143         eval "$as_ac_var=no"
20144 fi
20145
20146 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20147       conftest$ac_exeext conftest.$ac_ext
20148 fi
20149 ac_res=`eval echo '${'$as_ac_var'}'`
20150                { echo "$as_me:$LINENO: result: $ac_res" >&5
20151 echo "${ECHO_T}$ac_res" >&6; }
20152 if test `eval echo '${'$as_ac_var'}'` = yes; then
20153   cat >>confdefs.h <<_ACEOF
20154 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20155 _ACEOF
20156  found=true
20157 else
20158   found=false
20159 fi
20160 done
20161
20162     if test "$found" = "true"; then
20163         AUTH_EXCL=SIA
20164         AUTH_OBJS="$AUTH_OBJS sia.o"
20165     fi
20166 fi
20167
20168 if test ${with_fwtk-'no'} != "no"; then
20169     if test "$with_fwtk" != "yes"; then
20170
20171     if test X"$with_rpath" = X"yes"; then
20172         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_fwtk} -R${with_fwtk}"
20173     else
20174         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_fwtk}"
20175     fi
20176     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
20177         blibpath_add="${blibpath_add}:${with_fwtk}"
20178     fi
20179
20180         CPPFLAGS="${CPPFLAGS} -I${with_fwtk}"
20181         with_fwtk=yes
20182     fi
20183     SUDO_LIBS="${SUDO_LIBS} -lauth -lfwall"
20184     AUTH_OBJS="$AUTH_OBJS fwtk.o"
20185 fi
20186
20187 if test ${with_SecurID-'no'} != "no"; then
20188     if test "$with_SecurID" != "yes"; then
20189         :
20190     elif test -d /usr/ace/examples; then
20191         with_SecurID=/usr/ace/examples
20192     else
20193         with_SecurID=/usr/ace
20194     fi
20195     CPPFLAGS="${CPPFLAGS} -I${with_SecurID}"
20196     _LDFLAGS="${LDFLAGS}"
20197
20198     if test X"$with_rpath" = X"yes"; then
20199         LDFLAGS="${LDFLAGS} -L${with_SecurID} -R${with_SecurID}"
20200     else
20201         LDFLAGS="${LDFLAGS} -L${with_SecurID}"
20202     fi
20203     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
20204         blibpath_add="${blibpath_add}:${with_SecurID}"
20205     fi
20206
20207     #
20208     # Determine whether to use the new or old SecurID API
20209     #
20210     { echo "$as_me:$LINENO: checking for SD_Init in -laceclnt" >&5
20211 echo $ECHO_N "checking for SD_Init in -laceclnt... $ECHO_C" >&6; }
20212 if test "${ac_cv_lib_aceclnt_SD_Init+set}" = set; then
20213   echo $ECHO_N "(cached) $ECHO_C" >&6
20214 else
20215   ac_check_lib_save_LIBS=$LIBS
20216 LIBS="-laceclnt
20217             -lpthread
20218
20219      $LIBS"
20220 cat >conftest.$ac_ext <<_ACEOF
20221 /* confdefs.h.  */
20222 _ACEOF
20223 cat confdefs.h >>conftest.$ac_ext
20224 cat >>conftest.$ac_ext <<_ACEOF
20225 /* end confdefs.h.  */
20226
20227 /* Override any GCC internal prototype to avoid an error.
20228    Use char because int might match the return type of a GCC
20229    builtin and then its argument prototype would still apply.  */
20230 #ifdef __cplusplus
20231 extern "C"
20232 #endif
20233 char SD_Init ();
20234 int
20235 main ()
20236 {
20237 return SD_Init ();
20238   ;
20239   return 0;
20240 }
20241 _ACEOF
20242 rm -f conftest.$ac_objext conftest$ac_exeext
20243 if { (ac_try="$ac_link"
20244 case "(($ac_try" in
20245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20246   *) ac_try_echo=$ac_try;;
20247 esac
20248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20249   (eval "$ac_link") 2>conftest.er1
20250   ac_status=$?
20251   grep -v '^ *+' conftest.er1 >conftest.err
20252   rm -f conftest.er1
20253   cat conftest.err >&5
20254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20255   (exit $ac_status); } && {
20256          test -z "$ac_c_werror_flag" ||
20257          test ! -s conftest.err
20258        } && test -s conftest$ac_exeext &&
20259        $as_test_x conftest$ac_exeext; then
20260   ac_cv_lib_aceclnt_SD_Init=yes
20261 else
20262   echo "$as_me: failed program was:" >&5
20263 sed 's/^/| /' conftest.$ac_ext >&5
20264
20265         ac_cv_lib_aceclnt_SD_Init=no
20266 fi
20267
20268 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20269       conftest$ac_exeext conftest.$ac_ext
20270 LIBS=$ac_check_lib_save_LIBS
20271 fi
20272 { echo "$as_me:$LINENO: result: $ac_cv_lib_aceclnt_SD_Init" >&5
20273 echo "${ECHO_T}$ac_cv_lib_aceclnt_SD_Init" >&6; }
20274 if test $ac_cv_lib_aceclnt_SD_Init = yes; then
20275
20276             AUTH_OBJS="$AUTH_OBJS securid5.o";
20277             SUDO_LIBS="${SUDO_LIBS} -laceclnt -lpthread"
20278
20279
20280
20281     if test X"$with_rpath" = X"yes"; then
20282         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_SecurID} -R${with_SecurID}"
20283     else
20284         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_SecurID}"
20285     fi
20286     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
20287         blibpath_add="${blibpath_add}:${with_SecurID}"
20288     fi
20289
20290
20291 else
20292
20293             AUTH_OBJS="$AUTH_OBJS securid.o";
20294             SUDO_LIBS="${SUDO_LIBS} ${with_SecurID}/sdiclient.a"
20295
20296 fi
20297
20298     LDFLAGS="${_LDFLAGS}"
20299 fi
20300
20301
20302 if test -z "${AUTH_EXCL}" -a -n "$AUTH_DEF"; then
20303     for auth in $AUTH_DEF; do
20304         case $auth in
20305             passwd)     : ${with_passwd='maybe'};;
20306         esac
20307     done
20308 fi
20309
20310 if test ${with_kerb4-'no'} != "no"; then
20311     cat >>confdefs.h <<\_ACEOF
20312 #define HAVE_KERB4 1
20313 _ACEOF
20314
20315                 O_LDFLAGS="$LDFLAGS"
20316     if test "$with_kerb4" = "yes"; then
20317         found=no
20318         O_CPPFLAGS="$CPPFLAGS"
20319         for dir in "" "kerberosIV/" "krb4/" "kerberos4/" "kerberosv4/"; do
20320             CPPFLAGS="$O_CPPFLAGS -I/usr/include/${dir}"
20321             cat >conftest.$ac_ext <<_ACEOF
20322 #include <krb.h>
20323 _ACEOF
20324 if { (ac_try="$ac_cpp conftest.$ac_ext"
20325 case "(($ac_try" in
20326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20327   *) ac_try_echo=$ac_try;;
20328 esac
20329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20330   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20331   ac_status=$?
20332   grep -v '^ *+' conftest.er1 >conftest.err
20333   rm -f conftest.er1
20334   cat conftest.err >&5
20335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20336   (exit $ac_status); } >/dev/null && {
20337          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20338          test ! -s conftest.err
20339        }; then
20340   found=yes; break
20341 else
20342   echo "$as_me: failed program was:" >&5
20343 sed 's/^/| /' conftest.$ac_ext >&5
20344
20345
20346 fi
20347
20348 rm -f conftest.err conftest.$ac_ext
20349         done
20350         test X"$found" = X"no" && CPPFLAGS="$O_CPPFLAGS"
20351     else
20352
20353     if test X"$with_rpath" = X"yes"; then
20354         LDFLAGS="${LDFLAGS} -L${with_kerb4}/lib -R${with_kerb4}/lib"
20355     else
20356         LDFLAGS="${LDFLAGS} -L${with_kerb4}/lib"
20357     fi
20358     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
20359         blibpath_add="${blibpath_add}:${with_kerb4}/lib"
20360     fi
20361
20362
20363     if test X"$with_rpath" = X"yes"; then
20364         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb4}/lib -R${with_kerb4}/lib"
20365     else
20366         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb4}/lib"
20367     fi
20368     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
20369         blibpath_add="${blibpath_add}:${with_kerb4}/lib"
20370     fi
20371
20372         CPPFLAGS="$CPPFLAGS -I${with_kerb4}/include"
20373         if test "${ac_cv_header_krb_h+set}" = set; then
20374   { echo "$as_me:$LINENO: checking for krb.h" >&5
20375 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6; }
20376 if test "${ac_cv_header_krb_h+set}" = set; then
20377   echo $ECHO_N "(cached) $ECHO_C" >&6
20378 fi
20379 { echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
20380 echo "${ECHO_T}$ac_cv_header_krb_h" >&6; }
20381 else
20382   # Is the header compilable?
20383 { echo "$as_me:$LINENO: checking krb.h usability" >&5
20384 echo $ECHO_N "checking krb.h usability... $ECHO_C" >&6; }
20385 cat >conftest.$ac_ext <<_ACEOF
20386 /* confdefs.h.  */
20387 _ACEOF
20388 cat confdefs.h >>conftest.$ac_ext
20389 cat >>conftest.$ac_ext <<_ACEOF
20390 /* end confdefs.h.  */
20391 $ac_includes_default
20392 #include <krb.h>
20393 _ACEOF
20394 rm -f conftest.$ac_objext
20395 if { (ac_try="$ac_compile"
20396 case "(($ac_try" in
20397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20398   *) ac_try_echo=$ac_try;;
20399 esac
20400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20401   (eval "$ac_compile") 2>conftest.er1
20402   ac_status=$?
20403   grep -v '^ *+' conftest.er1 >conftest.err
20404   rm -f conftest.er1
20405   cat conftest.err >&5
20406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20407   (exit $ac_status); } && {
20408          test -z "$ac_c_werror_flag" ||
20409          test ! -s conftest.err
20410        } && test -s conftest.$ac_objext; then
20411   ac_header_compiler=yes
20412 else
20413   echo "$as_me: failed program was:" >&5
20414 sed 's/^/| /' conftest.$ac_ext >&5
20415
20416         ac_header_compiler=no
20417 fi
20418
20419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20420 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20421 echo "${ECHO_T}$ac_header_compiler" >&6; }
20422
20423 # Is the header present?
20424 { echo "$as_me:$LINENO: checking krb.h presence" >&5
20425 echo $ECHO_N "checking krb.h presence... $ECHO_C" >&6; }
20426 cat >conftest.$ac_ext <<_ACEOF
20427 /* confdefs.h.  */
20428 _ACEOF
20429 cat confdefs.h >>conftest.$ac_ext
20430 cat >>conftest.$ac_ext <<_ACEOF
20431 /* end confdefs.h.  */
20432 #include <krb.h>
20433 _ACEOF
20434 if { (ac_try="$ac_cpp conftest.$ac_ext"
20435 case "(($ac_try" in
20436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20437   *) ac_try_echo=$ac_try;;
20438 esac
20439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20440   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20441   ac_status=$?
20442   grep -v '^ *+' conftest.er1 >conftest.err
20443   rm -f conftest.er1
20444   cat conftest.err >&5
20445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20446   (exit $ac_status); } >/dev/null && {
20447          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20448          test ! -s conftest.err
20449        }; then
20450   ac_header_preproc=yes
20451 else
20452   echo "$as_me: failed program was:" >&5
20453 sed 's/^/| /' conftest.$ac_ext >&5
20454
20455   ac_header_preproc=no
20456 fi
20457
20458 rm -f conftest.err conftest.$ac_ext
20459 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20460 echo "${ECHO_T}$ac_header_preproc" >&6; }
20461
20462 # So?  What about this header?
20463 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20464   yes:no: )
20465     { echo "$as_me:$LINENO: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&5
20466 echo "$as_me: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20467     { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the compiler's result" >&5
20468 echo "$as_me: WARNING: krb.h: proceeding with the compiler's result" >&2;}
20469     ac_header_preproc=yes
20470     ;;
20471   no:yes:* )
20472     { echo "$as_me:$LINENO: WARNING: krb.h: present but cannot be compiled" >&5
20473 echo "$as_me: WARNING: krb.h: present but cannot be compiled" >&2;}
20474     { echo "$as_me:$LINENO: WARNING: krb.h:     check for missing prerequisite headers?" >&5
20475 echo "$as_me: WARNING: krb.h:     check for missing prerequisite headers?" >&2;}
20476     { echo "$as_me:$LINENO: WARNING: krb.h: see the Autoconf documentation" >&5
20477 echo "$as_me: WARNING: krb.h: see the Autoconf documentation" >&2;}
20478     { echo "$as_me:$LINENO: WARNING: krb.h:     section \"Present But Cannot Be Compiled\"" >&5
20479 echo "$as_me: WARNING: krb.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20480     { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
20481 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;}
20482     { echo "$as_me:$LINENO: WARNING: krb.h: in the future, the compiler will take precedence" >&5
20483 echo "$as_me: WARNING: krb.h: in the future, the compiler will take precedence" >&2;}
20484
20485     ;;
20486 esac
20487 { echo "$as_me:$LINENO: checking for krb.h" >&5
20488 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6; }
20489 if test "${ac_cv_header_krb_h+set}" = set; then
20490   echo $ECHO_N "(cached) $ECHO_C" >&6
20491 else
20492   ac_cv_header_krb_h=$ac_header_preproc
20493 fi
20494 { echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
20495 echo "${ECHO_T}$ac_cv_header_krb_h" >&6; }
20496
20497 fi
20498 if test $ac_cv_header_krb_h = yes; then
20499   found=yes
20500 else
20501   found=no
20502 fi
20503
20504
20505     fi
20506     if test X"$found" = X"no"; then
20507         { echo "$as_me:$LINENO: WARNING: Unable to locate Kerberos IV include files, you will have to edit the Makefile and add -I/path/to/krb/includes to CPPFLAGS" >&5
20508 echo "$as_me: WARNING: Unable to locate Kerberos IV include files, you will have to edit the Makefile and add -I/path/to/krb/includes to CPPFLAGS" >&2;}
20509     fi
20510
20511                 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
20512 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6; }
20513 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
20514   echo $ECHO_N "(cached) $ECHO_C" >&6
20515 else
20516   ac_check_lib_save_LIBS=$LIBS
20517 LIBS="-ldes  $LIBS"
20518 cat >conftest.$ac_ext <<_ACEOF
20519 /* confdefs.h.  */
20520 _ACEOF
20521 cat confdefs.h >>conftest.$ac_ext
20522 cat >>conftest.$ac_ext <<_ACEOF
20523 /* end confdefs.h.  */
20524
20525 /* Override any GCC internal prototype to avoid an error.
20526    Use char because int might match the return type of a GCC
20527    builtin and then its argument prototype would still apply.  */
20528 #ifdef __cplusplus
20529 extern "C"
20530 #endif
20531 char des_cbc_encrypt ();
20532 int
20533 main ()
20534 {
20535 return des_cbc_encrypt ();
20536   ;
20537   return 0;
20538 }
20539 _ACEOF
20540 rm -f conftest.$ac_objext conftest$ac_exeext
20541 if { (ac_try="$ac_link"
20542 case "(($ac_try" in
20543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20544   *) ac_try_echo=$ac_try;;
20545 esac
20546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20547   (eval "$ac_link") 2>conftest.er1
20548   ac_status=$?
20549   grep -v '^ *+' conftest.er1 >conftest.err
20550   rm -f conftest.er1
20551   cat conftest.err >&5
20552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20553   (exit $ac_status); } && {
20554          test -z "$ac_c_werror_flag" ||
20555          test ! -s conftest.err
20556        } && test -s conftest$ac_exeext &&
20557        $as_test_x conftest$ac_exeext; then
20558   ac_cv_lib_des_des_cbc_encrypt=yes
20559 else
20560   echo "$as_me: failed program was:" >&5
20561 sed 's/^/| /' conftest.$ac_ext >&5
20562
20563         ac_cv_lib_des_des_cbc_encrypt=no
20564 fi
20565
20566 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20567       conftest$ac_exeext conftest.$ac_ext
20568 LIBS=$ac_check_lib_save_LIBS
20569 fi
20570 { echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
20571 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
20572 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
20573   K4LIBS="-ldes"
20574 else
20575
20576         { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
20577 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6; }
20578 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
20579   echo $ECHO_N "(cached) $ECHO_C" >&6
20580 else
20581   ac_check_lib_save_LIBS=$LIBS
20582 LIBS="-ldes425  $LIBS"
20583 cat >conftest.$ac_ext <<_ACEOF
20584 /* confdefs.h.  */
20585 _ACEOF
20586 cat confdefs.h >>conftest.$ac_ext
20587 cat >>conftest.$ac_ext <<_ACEOF
20588 /* end confdefs.h.  */
20589
20590 /* Override any GCC internal prototype to avoid an error.
20591    Use char because int might match the return type of a GCC
20592    builtin and then its argument prototype would still apply.  */
20593 #ifdef __cplusplus
20594 extern "C"
20595 #endif
20596 char des_cbc_encrypt ();
20597 int
20598 main ()
20599 {
20600 return des_cbc_encrypt ();
20601   ;
20602   return 0;
20603 }
20604 _ACEOF
20605 rm -f conftest.$ac_objext conftest$ac_exeext
20606 if { (ac_try="$ac_link"
20607 case "(($ac_try" in
20608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20609   *) ac_try_echo=$ac_try;;
20610 esac
20611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20612   (eval "$ac_link") 2>conftest.er1
20613   ac_status=$?
20614   grep -v '^ *+' conftest.er1 >conftest.err
20615   rm -f conftest.er1
20616   cat conftest.err >&5
20617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20618   (exit $ac_status); } && {
20619          test -z "$ac_c_werror_flag" ||
20620          test ! -s conftest.err
20621        } && test -s conftest$ac_exeext &&
20622        $as_test_x conftest$ac_exeext; then
20623   ac_cv_lib_des425_des_cbc_encrypt=yes
20624 else
20625   echo "$as_me: failed program was:" >&5
20626 sed 's/^/| /' conftest.$ac_ext >&5
20627
20628         ac_cv_lib_des425_des_cbc_encrypt=no
20629 fi
20630
20631 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20632       conftest$ac_exeext conftest.$ac_ext
20633 LIBS=$ac_check_lib_save_LIBS
20634 fi
20635 { echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
20636 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
20637 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
20638   K4LIBS="-ldes425"
20639 else
20640   K4LIBS=""
20641 fi
20642
20643
20644 fi
20645
20646                 { echo "$as_me:$LINENO: checking whether we are using KTH Kerberos IV" >&5
20647 echo $ECHO_N "checking whether we are using KTH Kerberos IV... $ECHO_C" >&6; }
20648     cat >conftest.$ac_ext <<_ACEOF
20649 /* confdefs.h.  */
20650 _ACEOF
20651 cat confdefs.h >>conftest.$ac_ext
20652 cat >>conftest.$ac_ext <<_ACEOF
20653 /* end confdefs.h.  */
20654 #include <krb.h>
20655 int
20656 main ()
20657 {
20658 const char *tmp = krb4_version;
20659   ;
20660   return 0;
20661 }
20662 _ACEOF
20663 rm -f conftest.$ac_objext
20664 if { (ac_try="$ac_compile"
20665 case "(($ac_try" in
20666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20667   *) ac_try_echo=$ac_try;;
20668 esac
20669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20670   (eval "$ac_compile") 2>conftest.er1
20671   ac_status=$?
20672   grep -v '^ *+' conftest.er1 >conftest.err
20673   rm -f conftest.er1
20674   cat conftest.err >&5
20675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20676   (exit $ac_status); } && {
20677          test -z "$ac_c_werror_flag" ||
20678          test ! -s conftest.err
20679        } && test -s conftest.$ac_objext; then
20680
20681             { echo "$as_me:$LINENO: result: yes" >&5
20682 echo "${ECHO_T}yes" >&6; }
20683             K4LIBS="${K4LIBS} -lcom_err"
20684             { echo "$as_me:$LINENO: checking for main in -lroken" >&5
20685 echo $ECHO_N "checking for main in -lroken... $ECHO_C" >&6; }
20686 if test "${ac_cv_lib_roken_main+set}" = set; then
20687   echo $ECHO_N "(cached) $ECHO_C" >&6
20688 else
20689   ac_check_lib_save_LIBS=$LIBS
20690 LIBS="-lroken  $LIBS"
20691 cat >conftest.$ac_ext <<_ACEOF
20692 /* confdefs.h.  */
20693 _ACEOF
20694 cat confdefs.h >>conftest.$ac_ext
20695 cat >>conftest.$ac_ext <<_ACEOF
20696 /* end confdefs.h.  */
20697
20698
20699 int
20700 main ()
20701 {
20702 return main ();
20703   ;
20704   return 0;
20705 }
20706 _ACEOF
20707 rm -f conftest.$ac_objext conftest$ac_exeext
20708 if { (ac_try="$ac_link"
20709 case "(($ac_try" in
20710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20711   *) ac_try_echo=$ac_try;;
20712 esac
20713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20714   (eval "$ac_link") 2>conftest.er1
20715   ac_status=$?
20716   grep -v '^ *+' conftest.er1 >conftest.err
20717   rm -f conftest.er1
20718   cat conftest.err >&5
20719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20720   (exit $ac_status); } && {
20721          test -z "$ac_c_werror_flag" ||
20722          test ! -s conftest.err
20723        } && test -s conftest$ac_exeext &&
20724        $as_test_x conftest$ac_exeext; then
20725   ac_cv_lib_roken_main=yes
20726 else
20727   echo "$as_me: failed program was:" >&5
20728 sed 's/^/| /' conftest.$ac_ext >&5
20729
20730         ac_cv_lib_roken_main=no
20731 fi
20732
20733 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20734       conftest$ac_exeext conftest.$ac_ext
20735 LIBS=$ac_check_lib_save_LIBS
20736 fi
20737 { echo "$as_me:$LINENO: result: $ac_cv_lib_roken_main" >&5
20738 echo "${ECHO_T}$ac_cv_lib_roken_main" >&6; }
20739 if test $ac_cv_lib_roken_main = yes; then
20740   K4LIBS="${K4LIBS} -lroken"
20741 fi
20742
20743
20744 else
20745   echo "$as_me: failed program was:" >&5
20746 sed 's/^/| /' conftest.$ac_ext >&5
20747
20748
20749             { echo "$as_me:$LINENO: result: no" >&5
20750 echo "${ECHO_T}no" >&6; }
20751
20752
20753 fi
20754
20755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20756                 { echo "$as_me:$LINENO: checking for main in -lkrb" >&5
20757 echo $ECHO_N "checking for main in -lkrb... $ECHO_C" >&6; }
20758 if test "${ac_cv_lib_krb_main+set}" = set; then
20759   echo $ECHO_N "(cached) $ECHO_C" >&6
20760 else
20761   ac_check_lib_save_LIBS=$LIBS
20762 LIBS="-lkrb $K4LIBS $LIBS"
20763 cat >conftest.$ac_ext <<_ACEOF
20764 /* confdefs.h.  */
20765 _ACEOF
20766 cat confdefs.h >>conftest.$ac_ext
20767 cat >>conftest.$ac_ext <<_ACEOF
20768 /* end confdefs.h.  */
20769
20770
20771 int
20772 main ()
20773 {
20774 return main ();
20775   ;
20776   return 0;
20777 }
20778 _ACEOF
20779 rm -f conftest.$ac_objext conftest$ac_exeext
20780 if { (ac_try="$ac_link"
20781 case "(($ac_try" in
20782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20783   *) ac_try_echo=$ac_try;;
20784 esac
20785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20786   (eval "$ac_link") 2>conftest.er1
20787   ac_status=$?
20788   grep -v '^ *+' conftest.er1 >conftest.err
20789   rm -f conftest.er1
20790   cat conftest.err >&5
20791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20792   (exit $ac_status); } && {
20793          test -z "$ac_c_werror_flag" ||
20794          test ! -s conftest.err
20795        } && test -s conftest$ac_exeext &&
20796        $as_test_x conftest$ac_exeext; then
20797   ac_cv_lib_krb_main=yes
20798 else
20799   echo "$as_me: failed program was:" >&5
20800 sed 's/^/| /' conftest.$ac_ext >&5
20801
20802         ac_cv_lib_krb_main=no
20803 fi
20804
20805 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20806       conftest$ac_exeext conftest.$ac_ext
20807 LIBS=$ac_check_lib_save_LIBS
20808 fi
20809 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb_main" >&5
20810 echo "${ECHO_T}$ac_cv_lib_krb_main" >&6; }
20811 if test $ac_cv_lib_krb_main = yes; then
20812   K4LIBS="-lkrb $K4LIBS"
20813 else
20814
20815         { echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
20816 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6; }
20817 if test "${ac_cv_lib_krb4_main+set}" = set; then
20818   echo $ECHO_N "(cached) $ECHO_C" >&6
20819 else
20820   ac_check_lib_save_LIBS=$LIBS
20821 LIBS="-lkrb4 $K4LIBS $LIBS"
20822 cat >conftest.$ac_ext <<_ACEOF
20823 /* confdefs.h.  */
20824 _ACEOF
20825 cat confdefs.h >>conftest.$ac_ext
20826 cat >>conftest.$ac_ext <<_ACEOF
20827 /* end confdefs.h.  */
20828
20829
20830 int
20831 main ()
20832 {
20833 return main ();
20834   ;
20835   return 0;
20836 }
20837 _ACEOF
20838 rm -f conftest.$ac_objext conftest$ac_exeext
20839 if { (ac_try="$ac_link"
20840 case "(($ac_try" in
20841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20842   *) ac_try_echo=$ac_try;;
20843 esac
20844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20845   (eval "$ac_link") 2>conftest.er1
20846   ac_status=$?
20847   grep -v '^ *+' conftest.er1 >conftest.err
20848   rm -f conftest.er1
20849   cat conftest.err >&5
20850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20851   (exit $ac_status); } && {
20852          test -z "$ac_c_werror_flag" ||
20853          test ! -s conftest.err
20854        } && test -s conftest$ac_exeext &&
20855        $as_test_x conftest$ac_exeext; then
20856   ac_cv_lib_krb4_main=yes
20857 else
20858   echo "$as_me: failed program was:" >&5
20859 sed 's/^/| /' conftest.$ac_ext >&5
20860
20861         ac_cv_lib_krb4_main=no
20862 fi
20863
20864 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20865       conftest$ac_exeext conftest.$ac_ext
20866 LIBS=$ac_check_lib_save_LIBS
20867 fi
20868 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
20869 echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6; }
20870 if test $ac_cv_lib_krb4_main = yes; then
20871   K4LIBS="-lkrb4 $K4LIBS"
20872 else
20873   K4LIBS="-lkrb $K4LIBS"
20874             { echo "$as_me:$LINENO: WARNING: Unable to locate Kerberos IV libraries, you will have to edit the Makefile and add -L/path/to/krb/libs to SUDO_LDFLAGS and possibly add Kerberos libs to SUDO_LIBS" >&5
20875 echo "$as_me: WARNING: Unable to locate Kerberos IV libraries, you will have to edit the Makefile and add -L/path/to/krb/libs to SUDO_LDFLAGS and possibly add Kerberos libs to SUDO_LIBS" >&2;}
20876
20877 fi
20878
20879
20880 fi
20881
20882     LDFLAGS="$O_LDFLAGS"
20883     SUDO_LIBS="${SUDO_LIBS} $K4LIBS"
20884     AUTH_OBJS="$AUTH_OBJS kerb4.o"
20885 fi
20886
20887 if test ${with_kerb5-'no'} != "no"; then
20888     # Extract the first word of "krb5-config", so it can be a program name with args.
20889 set dummy krb5-config; ac_word=$2
20890 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20891 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20892 if test "${ac_cv_prog_KRB5CONFIG+set}" = set; then
20893   echo $ECHO_N "(cached) $ECHO_C" >&6
20894 else
20895   if test -n "$KRB5CONFIG"; then
20896   ac_cv_prog_KRB5CONFIG="$KRB5CONFIG" # Let the user override the test.
20897 else
20898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20899 for as_dir in $PATH
20900 do
20901   IFS=$as_save_IFS
20902   test -z "$as_dir" && as_dir=.
20903   for ac_exec_ext in '' $ac_executable_extensions; do
20904   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20905     ac_cv_prog_KRB5CONFIG="yes"
20906     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20907     break 2
20908   fi
20909 done
20910 done
20911 IFS=$as_save_IFS
20912
20913   test -z "$ac_cv_prog_KRB5CONFIG" && ac_cv_prog_KRB5CONFIG=""""
20914 fi
20915 fi
20916 KRB5CONFIG=$ac_cv_prog_KRB5CONFIG
20917 if test -n "$KRB5CONFIG"; then
20918   { echo "$as_me:$LINENO: result: $KRB5CONFIG" >&5
20919 echo "${ECHO_T}$KRB5CONFIG" >&6; }
20920 else
20921   { echo "$as_me:$LINENO: result: no" >&5
20922 echo "${ECHO_T}no" >&6; }
20923 fi
20924
20925
20926     if test -n "$KRB5CONFIG"; then
20927         cat >>confdefs.h <<\_ACEOF
20928 #define HAVE_KERB5 1
20929 _ACEOF
20930
20931         AUTH_OBJS="$AUTH_OBJS kerb5.o"
20932         CPPFLAGS="$CPPFLAGS `krb5-config --cflags`"
20933         SUDO_LIBS="$SUDO_LIBS `krb5-config --libs`"
20934                                 { echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5
20935 echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6; }
20936         cat >conftest.$ac_ext <<_ACEOF
20937 /* confdefs.h.  */
20938 _ACEOF
20939 cat confdefs.h >>conftest.$ac_ext
20940 cat >>conftest.$ac_ext <<_ACEOF
20941 /* end confdefs.h.  */
20942 #include <krb5.h>
20943 int
20944 main ()
20945 {
20946 const char *tmp = heimdal_version;
20947   ;
20948   return 0;
20949 }
20950 _ACEOF
20951 rm -f conftest.$ac_objext
20952 if { (ac_try="$ac_compile"
20953 case "(($ac_try" in
20954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20955   *) ac_try_echo=$ac_try;;
20956 esac
20957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20958   (eval "$ac_compile") 2>conftest.er1
20959   ac_status=$?
20960   grep -v '^ *+' conftest.er1 >conftest.err
20961   rm -f conftest.er1
20962   cat conftest.err >&5
20963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20964   (exit $ac_status); } && {
20965          test -z "$ac_c_werror_flag" ||
20966          test ! -s conftest.err
20967        } && test -s conftest.$ac_objext; then
20968
20969                 { echo "$as_me:$LINENO: result: yes" >&5
20970 echo "${ECHO_T}yes" >&6; }
20971                 cat >>confdefs.h <<\_ACEOF
20972 #define HAVE_HEIMDAL 1
20973 _ACEOF
20974
20975
20976 else
20977   echo "$as_me: failed program was:" >&5
20978 sed 's/^/| /' conftest.$ac_ext >&5
20979
20980
20981                 { echo "$as_me:$LINENO: result: no" >&5
20982 echo "${ECHO_T}no" >&6; }
20983
20984
20985 fi
20986
20987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20988     fi
20989 fi
20990 if test ${with_kerb5-'no'} != "no" -a -z "$KRB5CONFIG"; then
20991     cat >>confdefs.h <<\_ACEOF
20992 #define HAVE_KERB5 1
20993 _ACEOF
20994
20995                 if test "$with_kerb5" = "yes"; then
20996         found=no
20997         O_CPPFLAGS="$CPPFLAGS"
20998         for dir in "" "kerberosV/" "krb5/" "kerberos5/" "kerberosv5/"; do
20999             CPPFLAGS="$O_CPPFLAGS -I/usr/include/${dir}"
21000             cat >conftest.$ac_ext <<_ACEOF
21001 #include <krb5.h>
21002 _ACEOF
21003 if { (ac_try="$ac_cpp conftest.$ac_ext"
21004 case "(($ac_try" in
21005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21006   *) ac_try_echo=$ac_try;;
21007 esac
21008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21009   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21010   ac_status=$?
21011   grep -v '^ *+' conftest.er1 >conftest.err
21012   rm -f conftest.er1
21013   cat conftest.err >&5
21014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21015   (exit $ac_status); } >/dev/null && {
21016          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21017          test ! -s conftest.err
21018        }; then
21019   found=yes; break
21020 else
21021   echo "$as_me: failed program was:" >&5
21022 sed 's/^/| /' conftest.$ac_ext >&5
21023
21024
21025 fi
21026
21027 rm -f conftest.err conftest.$ac_ext
21028         done
21029         if test X"$found" = X"no"; then
21030             CPPFLAGS="$O_CPPFLAGS"
21031             { echo "$as_me:$LINENO: WARNING: Unable to locate Kerberos V include files, you will have to edit the Makefile and add -I/path/to/krb/includes to CPPFLAGS" >&5
21032 echo "$as_me: WARNING: Unable to locate Kerberos V include files, you will have to edit the Makefile and add -I/path/to/krb/includes to CPPFLAGS" >&2;}
21033         fi
21034     else
21035
21036     if test X"$with_rpath" = X"yes"; then
21037         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb5}/lib -R${with_kerb5}/lib"
21038     else
21039         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb5}/lib"
21040     fi
21041     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
21042         blibpath_add="${blibpath_add}:${with_kerb5}/lib"
21043     fi
21044
21045         CPPFLAGS="$CPPFLAGS -I${with_kerb5}/include"
21046     fi
21047
21048                 { echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5
21049 echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6; }
21050     cat >conftest.$ac_ext <<_ACEOF
21051 /* confdefs.h.  */
21052 _ACEOF
21053 cat confdefs.h >>conftest.$ac_ext
21054 cat >>conftest.$ac_ext <<_ACEOF
21055 /* end confdefs.h.  */
21056 #include <krb5.h>
21057 int
21058 main ()
21059 {
21060 const char *tmp = heimdal_version;
21061   ;
21062   return 0;
21063 }
21064 _ACEOF
21065 rm -f conftest.$ac_objext
21066 if { (ac_try="$ac_compile"
21067 case "(($ac_try" in
21068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21069   *) ac_try_echo=$ac_try;;
21070 esac
21071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21072   (eval "$ac_compile") 2>conftest.er1
21073   ac_status=$?
21074   grep -v '^ *+' conftest.er1 >conftest.err
21075   rm -f conftest.er1
21076   cat conftest.err >&5
21077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21078   (exit $ac_status); } && {
21079          test -z "$ac_c_werror_flag" ||
21080          test ! -s conftest.err
21081        } && test -s conftest.$ac_objext; then
21082
21083             { echo "$as_me:$LINENO: result: yes" >&5
21084 echo "${ECHO_T}yes" >&6; }
21085             cat >>confdefs.h <<\_ACEOF
21086 #define HAVE_HEIMDAL 1
21087 _ACEOF
21088
21089             SUDO_LIBS="${SUDO_LIBS} -lkrb5 -lcrypto -ldes -lcom_err -lasn1"
21090             { echo "$as_me:$LINENO: checking for main in -lroken" >&5
21091 echo $ECHO_N "checking for main in -lroken... $ECHO_C" >&6; }
21092 if test "${ac_cv_lib_roken_main+set}" = set; then
21093   echo $ECHO_N "(cached) $ECHO_C" >&6
21094 else
21095   ac_check_lib_save_LIBS=$LIBS
21096 LIBS="-lroken  $LIBS"
21097 cat >conftest.$ac_ext <<_ACEOF
21098 /* confdefs.h.  */
21099 _ACEOF
21100 cat confdefs.h >>conftest.$ac_ext
21101 cat >>conftest.$ac_ext <<_ACEOF
21102 /* end confdefs.h.  */
21103
21104
21105 int
21106 main ()
21107 {
21108 return main ();
21109   ;
21110   return 0;
21111 }
21112 _ACEOF
21113 rm -f conftest.$ac_objext conftest$ac_exeext
21114 if { (ac_try="$ac_link"
21115 case "(($ac_try" in
21116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21117   *) ac_try_echo=$ac_try;;
21118 esac
21119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21120   (eval "$ac_link") 2>conftest.er1
21121   ac_status=$?
21122   grep -v '^ *+' conftest.er1 >conftest.err
21123   rm -f conftest.er1
21124   cat conftest.err >&5
21125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21126   (exit $ac_status); } && {
21127          test -z "$ac_c_werror_flag" ||
21128          test ! -s conftest.err
21129        } && test -s conftest$ac_exeext &&
21130        $as_test_x conftest$ac_exeext; then
21131   ac_cv_lib_roken_main=yes
21132 else
21133   echo "$as_me: failed program was:" >&5
21134 sed 's/^/| /' conftest.$ac_ext >&5
21135
21136         ac_cv_lib_roken_main=no
21137 fi
21138
21139 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21140       conftest$ac_exeext conftest.$ac_ext
21141 LIBS=$ac_check_lib_save_LIBS
21142 fi
21143 { echo "$as_me:$LINENO: result: $ac_cv_lib_roken_main" >&5
21144 echo "${ECHO_T}$ac_cv_lib_roken_main" >&6; }
21145 if test $ac_cv_lib_roken_main = yes; then
21146   SUDO_LIBS="${SUDO_LIBS} -lroken"
21147 fi
21148
21149
21150 else
21151   echo "$as_me: failed program was:" >&5
21152 sed 's/^/| /' conftest.$ac_ext >&5
21153
21154
21155             { echo "$as_me:$LINENO: result: no" >&5
21156 echo "${ECHO_T}no" >&6; }
21157             SUDO_LIBS="${SUDO_LIBS} -lkrb5 -lk5crypto -lcom_err"
21158             { echo "$as_me:$LINENO: checking for main in -lkrb5support" >&5
21159 echo $ECHO_N "checking for main in -lkrb5support... $ECHO_C" >&6; }
21160 if test "${ac_cv_lib_krb5support_main+set}" = set; then
21161   echo $ECHO_N "(cached) $ECHO_C" >&6
21162 else
21163   ac_check_lib_save_LIBS=$LIBS
21164 LIBS="-lkrb5support  $LIBS"
21165 cat >conftest.$ac_ext <<_ACEOF
21166 /* confdefs.h.  */
21167 _ACEOF
21168 cat confdefs.h >>conftest.$ac_ext
21169 cat >>conftest.$ac_ext <<_ACEOF
21170 /* end confdefs.h.  */
21171
21172
21173 int
21174 main ()
21175 {
21176 return main ();
21177   ;
21178   return 0;
21179 }
21180 _ACEOF
21181 rm -f conftest.$ac_objext conftest$ac_exeext
21182 if { (ac_try="$ac_link"
21183 case "(($ac_try" in
21184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21185   *) ac_try_echo=$ac_try;;
21186 esac
21187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21188   (eval "$ac_link") 2>conftest.er1
21189   ac_status=$?
21190   grep -v '^ *+' conftest.er1 >conftest.err
21191   rm -f conftest.er1
21192   cat conftest.err >&5
21193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21194   (exit $ac_status); } && {
21195          test -z "$ac_c_werror_flag" ||
21196          test ! -s conftest.err
21197        } && test -s conftest$ac_exeext &&
21198        $as_test_x conftest$ac_exeext; then
21199   ac_cv_lib_krb5support_main=yes
21200 else
21201   echo "$as_me: failed program was:" >&5
21202 sed 's/^/| /' conftest.$ac_ext >&5
21203
21204         ac_cv_lib_krb5support_main=no
21205 fi
21206
21207 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21208       conftest$ac_exeext conftest.$ac_ext
21209 LIBS=$ac_check_lib_save_LIBS
21210 fi
21211 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb5support_main" >&5
21212 echo "${ECHO_T}$ac_cv_lib_krb5support_main" >&6; }
21213 if test $ac_cv_lib_krb5support_main = yes; then
21214   SUDO_LIBS="${SUDO_LIBS} -lkrb5support,"
21215 fi
21216
21217
21218 fi
21219
21220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21221     AUTH_OBJS="$AUTH_OBJS kerb5.o"
21222     _LIBS="$LIBS"
21223     LIBS="${LIBS} ${SUDO_LIBS}"
21224
21225
21226 for ac_func in krb5_verify_user krb5_init_secure_context
21227 do
21228 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21229 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21230 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21231 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21232   echo $ECHO_N "(cached) $ECHO_C" >&6
21233 else
21234   cat >conftest.$ac_ext <<_ACEOF
21235 /* confdefs.h.  */
21236 _ACEOF
21237 cat confdefs.h >>conftest.$ac_ext
21238 cat >>conftest.$ac_ext <<_ACEOF
21239 /* end confdefs.h.  */
21240 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21241    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21242 #define $ac_func innocuous_$ac_func
21243
21244 /* System header to define __stub macros and hopefully few prototypes,
21245     which can conflict with char $ac_func (); below.
21246     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21247     <limits.h> exists even on freestanding compilers.  */
21248
21249 #ifdef __STDC__
21250 # include <limits.h>
21251 #else
21252 # include <assert.h>
21253 #endif
21254
21255 #undef $ac_func
21256
21257 /* Override any GCC internal prototype to avoid an error.
21258    Use char because int might match the return type of a GCC
21259    builtin and then its argument prototype would still apply.  */
21260 #ifdef __cplusplus
21261 extern "C"
21262 #endif
21263 char $ac_func ();
21264 /* The GNU C library defines this for functions which it implements
21265     to always fail with ENOSYS.  Some functions are actually named
21266     something starting with __ and the normal name is an alias.  */
21267 #if defined __stub_$ac_func || defined __stub___$ac_func
21268 choke me
21269 #endif
21270
21271 int
21272 main ()
21273 {
21274 return $ac_func ();
21275   ;
21276   return 0;
21277 }
21278 _ACEOF
21279 rm -f conftest.$ac_objext conftest$ac_exeext
21280 if { (ac_try="$ac_link"
21281 case "(($ac_try" in
21282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21283   *) ac_try_echo=$ac_try;;
21284 esac
21285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21286   (eval "$ac_link") 2>conftest.er1
21287   ac_status=$?
21288   grep -v '^ *+' conftest.er1 >conftest.err
21289   rm -f conftest.er1
21290   cat conftest.err >&5
21291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21292   (exit $ac_status); } && {
21293          test -z "$ac_c_werror_flag" ||
21294          test ! -s conftest.err
21295        } && test -s conftest$ac_exeext &&
21296        $as_test_x conftest$ac_exeext; then
21297   eval "$as_ac_var=yes"
21298 else
21299   echo "$as_me: failed program was:" >&5
21300 sed 's/^/| /' conftest.$ac_ext >&5
21301
21302         eval "$as_ac_var=no"
21303 fi
21304
21305 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21306       conftest$ac_exeext conftest.$ac_ext
21307 fi
21308 ac_res=`eval echo '${'$as_ac_var'}'`
21309                { echo "$as_me:$LINENO: result: $ac_res" >&5
21310 echo "${ECHO_T}$ac_res" >&6; }
21311 if test `eval echo '${'$as_ac_var'}'` = yes; then
21312   cat >>confdefs.h <<_ACEOF
21313 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21314 _ACEOF
21315
21316 fi
21317 done
21318
21319     LIBS="$_LIBS"
21320 fi
21321
21322 if test ${with_AFS-'no'} = "yes"; then
21323
21324     # looks like the "standard" place for AFS libs is /usr/afsws/lib
21325     AFSLIBDIRS="/usr/lib/afs /usr/afsws/lib /usr/afsws/lib/afs"
21326     for i in $AFSLIBDIRS; do
21327         if test -d ${i}; then
21328
21329     if test X"$with_rpath" = X"yes"; then
21330         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L$i -R$i"
21331     else
21332         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L$i"
21333     fi
21334     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
21335         blibpath_add="${blibpath_add}:$i"
21336     fi
21337
21338             FOUND_AFSLIBDIR=true
21339         fi
21340     done
21341     if test -z "$FOUND_AFSLIBDIR"; then
21342         { echo "$as_me:$LINENO: WARNING: Unable to locate AFS libraries, you will have to edit the Makefile and add -L/path/to/afs/libs to SUDO_LDFLAGS or rerun configure with the --with-libpath options." >&5
21343 echo "$as_me: WARNING: Unable to locate AFS libraries, you will have to edit the Makefile and add -L/path/to/afs/libs to SUDO_LDFLAGS or rerun configure with the --with-libpath options." >&2;}
21344     fi
21345
21346     # Order is important here.  Note that we build AFS_LIBS from right to left
21347     # since AFS_LIBS may be initialized with BSD compat libs that must go last
21348     AFS_LIBS="-laudit ${AFS_LIBS}"
21349     for i in $AFSLIBDIRS; do
21350         if test -f ${i}/util.a; then
21351             AFS_LIBS="${i}/util.a ${AFS_LIBS}"
21352             FOUND_UTIL_A=true
21353             break;
21354         fi
21355     done
21356     if test -z "$FOUND_UTIL_A"; then
21357         AFS_LIBS="-lutil ${AFS_LIBS}"
21358     fi
21359     AFS_LIBS="-lkauth -lprot -lubik -lauth -lrxkad -lsys -ldes -lrx -llwp -lcom_err ${AFS_LIBS}"
21360
21361     # AFS includes may live in /usr/include on some machines...
21362     for i in /usr/afsws/include; do
21363         if test -d ${i}; then
21364             CPPFLAGS="${CPPFLAGS} -I${i}"
21365             FOUND_AFSINCDIR=true
21366         fi
21367     done
21368
21369     if test -z "$FOUND_AFSLIBDIR"; then
21370         { echo "$as_me:$LINENO: WARNING: Unable to locate AFS include dir, you may have to edit the Makefile and add -I/path/to/afs/includes to CPPFLAGS or rerun configure with the --with-incpath options." >&5
21371 echo "$as_me: WARNING: Unable to locate AFS include dir, you may have to edit the Makefile and add -I/path/to/afs/includes to CPPFLAGS or rerun configure with the --with-incpath options." >&2;}
21372     fi
21373
21374     AUTH_OBJS="$AUTH_OBJS afs.o"
21375 fi
21376
21377 if test ${with_DCE-'no'} = "yes"; then
21378     DCE_OBJS="${DCE_OBJS} dce_pwent.o"
21379     SUDO_LIBS="${SUDO_LIBS} -ldce"
21380     AUTH_OBJS="$AUTH_OBJS dce.o"
21381 fi
21382
21383 if test ${with_skey-'no'} = "yes"; then
21384     O_LDFLAGS="$LDFLAGS"
21385     if test "$with_skey" != "yes"; then
21386         CPPFLAGS="${CPPFLAGS} -I${with_skey}/include"
21387
21388     if test X"$with_rpath" = X"yes"; then
21389         LDFLAGS="${LDFLAGS} -L${with_skey}/lib -R${with_skey}/lib"
21390     else
21391         LDFLAGS="${LDFLAGS} -L${with_skey}/lib"
21392     fi
21393     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
21394         blibpath_add="${blibpath_add}:${with_skey}/lib"
21395     fi
21396
21397
21398     if test X"$with_rpath" = X"yes"; then
21399         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_skey}/lib -R${with_skey}/lib"
21400     else
21401         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_skey}/lib"
21402     fi
21403     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
21404         blibpath_add="${blibpath_add}:${with_skey}/lib"
21405     fi
21406
21407         cat >conftest.$ac_ext <<_ACEOF
21408 #include <skey.h>
21409 _ACEOF
21410 if { (ac_try="$ac_cpp conftest.$ac_ext"
21411 case "(($ac_try" in
21412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21413   *) ac_try_echo=$ac_try;;
21414 esac
21415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21416   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21417   ac_status=$?
21418   grep -v '^ *+' conftest.er1 >conftest.err
21419   rm -f conftest.er1
21420   cat conftest.err >&5
21421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21422   (exit $ac_status); } >/dev/null && {
21423          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21424          test ! -s conftest.err
21425        }; then
21426   found=yes
21427 else
21428   echo "$as_me: failed program was:" >&5
21429 sed 's/^/| /' conftest.$ac_ext >&5
21430
21431   found=no
21432 fi
21433
21434 rm -f conftest.err conftest.$ac_ext
21435     else
21436         found=no
21437         O_CPPFLAGS="$CPPFLAGS"
21438         for dir in "" "/usr/local" "/usr/contrib"; do
21439             test -n "$dir" && CPPFLAGS="$O_CPPFLAGS -I${dir}/include"
21440             cat >conftest.$ac_ext <<_ACEOF
21441 #include <skey.h>
21442 _ACEOF
21443 if { (ac_try="$ac_cpp conftest.$ac_ext"
21444 case "(($ac_try" in
21445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21446   *) ac_try_echo=$ac_try;;
21447 esac
21448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21449   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21450   ac_status=$?
21451   grep -v '^ *+' conftest.er1 >conftest.err
21452   rm -f conftest.er1
21453   cat conftest.err >&5
21454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21455   (exit $ac_status); } >/dev/null && {
21456          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21457          test ! -s conftest.err
21458        }; then
21459   found=yes; break
21460 else
21461   echo "$as_me: failed program was:" >&5
21462 sed 's/^/| /' conftest.$ac_ext >&5
21463
21464
21465 fi
21466
21467 rm -f conftest.err conftest.$ac_ext
21468         done
21469         if test "$found" = "no" -o -z "$dir"; then
21470             CPPFLAGS="$O_CPPFLAGS"
21471         else
21472
21473     if test X"$with_rpath" = X"yes"; then
21474         LDFLAGS="${LDFLAGS} -L${dir}/lib -R${dir}/lib"
21475     else
21476         LDFLAGS="${LDFLAGS} -L${dir}/lib"
21477     fi
21478     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
21479         blibpath_add="${blibpath_add}:${dir}/lib"
21480     fi
21481
21482
21483     if test X"$with_rpath" = X"yes"; then
21484         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib -R${dir}/lib"
21485     else
21486         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib"
21487     fi
21488     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
21489         blibpath_add="${blibpath_add}:${dir}/lib"
21490     fi
21491
21492         fi
21493     fi
21494     if test "$found" = "no"; then
21495         { echo "$as_me:$LINENO: WARNING: Unable to locate skey.h, you will have to edit the Makefile and add -I/path/to/skey/includes to CPPFLAGS" >&5
21496 echo "$as_me: WARNING: Unable to locate skey.h, you will have to edit the Makefile and add -I/path/to/skey/includes to CPPFLAGS" >&2;}
21497     fi
21498     { echo "$as_me:$LINENO: checking for main in -lskey" >&5
21499 echo $ECHO_N "checking for main in -lskey... $ECHO_C" >&6; }
21500 if test "${ac_cv_lib_skey_main+set}" = set; then
21501   echo $ECHO_N "(cached) $ECHO_C" >&6
21502 else
21503   ac_check_lib_save_LIBS=$LIBS
21504 LIBS="-lskey  $LIBS"
21505 cat >conftest.$ac_ext <<_ACEOF
21506 /* confdefs.h.  */
21507 _ACEOF
21508 cat confdefs.h >>conftest.$ac_ext
21509 cat >>conftest.$ac_ext <<_ACEOF
21510 /* end confdefs.h.  */
21511
21512
21513 int
21514 main ()
21515 {
21516 return main ();
21517   ;
21518   return 0;
21519 }
21520 _ACEOF
21521 rm -f conftest.$ac_objext conftest$ac_exeext
21522 if { (ac_try="$ac_link"
21523 case "(($ac_try" in
21524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21525   *) ac_try_echo=$ac_try;;
21526 esac
21527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21528   (eval "$ac_link") 2>conftest.er1
21529   ac_status=$?
21530   grep -v '^ *+' conftest.er1 >conftest.err
21531   rm -f conftest.er1
21532   cat conftest.err >&5
21533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21534   (exit $ac_status); } && {
21535          test -z "$ac_c_werror_flag" ||
21536          test ! -s conftest.err
21537        } && test -s conftest$ac_exeext &&
21538        $as_test_x conftest$ac_exeext; then
21539   ac_cv_lib_skey_main=yes
21540 else
21541   echo "$as_me: failed program was:" >&5
21542 sed 's/^/| /' conftest.$ac_ext >&5
21543
21544         ac_cv_lib_skey_main=no
21545 fi
21546
21547 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21548       conftest$ac_exeext conftest.$ac_ext
21549 LIBS=$ac_check_lib_save_LIBS
21550 fi
21551 { echo "$as_me:$LINENO: result: $ac_cv_lib_skey_main" >&5
21552 echo "${ECHO_T}$ac_cv_lib_skey_main" >&6; }
21553 if test $ac_cv_lib_skey_main = yes; then
21554   found=yes
21555 else
21556   { echo "$as_me:$LINENO: WARNING: Unable to locate libskey.a, you will have to edit the Makefile and add -L/path/to/skey/lib to SUDO_LDFLAGS" >&5
21557 echo "$as_me: WARNING: Unable to locate libskey.a, you will have to edit the Makefile and add -L/path/to/skey/lib to SUDO_LDFLAGS" >&2;}
21558 fi
21559
21560     { echo "$as_me:$LINENO: checking for skeyaccess in -lskey" >&5
21561 echo $ECHO_N "checking for skeyaccess in -lskey... $ECHO_C" >&6; }
21562 if test "${ac_cv_lib_skey_skeyaccess+set}" = set; then
21563   echo $ECHO_N "(cached) $ECHO_C" >&6
21564 else
21565   ac_check_lib_save_LIBS=$LIBS
21566 LIBS="-lskey  $LIBS"
21567 cat >conftest.$ac_ext <<_ACEOF
21568 /* confdefs.h.  */
21569 _ACEOF
21570 cat confdefs.h >>conftest.$ac_ext
21571 cat >>conftest.$ac_ext <<_ACEOF
21572 /* end confdefs.h.  */
21573
21574 /* Override any GCC internal prototype to avoid an error.
21575    Use char because int might match the return type of a GCC
21576    builtin and then its argument prototype would still apply.  */
21577 #ifdef __cplusplus
21578 extern "C"
21579 #endif
21580 char skeyaccess ();
21581 int
21582 main ()
21583 {
21584 return skeyaccess ();
21585   ;
21586   return 0;
21587 }
21588 _ACEOF
21589 rm -f conftest.$ac_objext conftest$ac_exeext
21590 if { (ac_try="$ac_link"
21591 case "(($ac_try" in
21592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21593   *) ac_try_echo=$ac_try;;
21594 esac
21595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21596   (eval "$ac_link") 2>conftest.er1
21597   ac_status=$?
21598   grep -v '^ *+' conftest.er1 >conftest.err
21599   rm -f conftest.er1
21600   cat conftest.err >&5
21601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21602   (exit $ac_status); } && {
21603          test -z "$ac_c_werror_flag" ||
21604          test ! -s conftest.err
21605        } && test -s conftest$ac_exeext &&
21606        $as_test_x conftest$ac_exeext; then
21607   ac_cv_lib_skey_skeyaccess=yes
21608 else
21609   echo "$as_me: failed program was:" >&5
21610 sed 's/^/| /' conftest.$ac_ext >&5
21611
21612         ac_cv_lib_skey_skeyaccess=no
21613 fi
21614
21615 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21616       conftest$ac_exeext conftest.$ac_ext
21617 LIBS=$ac_check_lib_save_LIBS
21618 fi
21619 { echo "$as_me:$LINENO: result: $ac_cv_lib_skey_skeyaccess" >&5
21620 echo "${ECHO_T}$ac_cv_lib_skey_skeyaccess" >&6; }
21621 if test $ac_cv_lib_skey_skeyaccess = yes; then
21622   cat >>confdefs.h <<\_ACEOF
21623 #define HAVE_SKEYACCESS 1
21624 _ACEOF
21625
21626 fi
21627
21628     LDFLAGS="$O_LDFLAGS"
21629     SUDO_LIBS="${SUDO_LIBS} -lskey"
21630     AUTH_OBJS="$AUTH_OBJS rfc1938.o"
21631 fi
21632
21633 if test ${with_opie-'no'} = "yes"; then
21634     O_LDFLAGS="$LDFLAGS"
21635     if test "$with_opie" != "yes"; then
21636         CPPFLAGS="${CPPFLAGS} -I${with_opie}/include"
21637
21638     if test X"$with_rpath" = X"yes"; then
21639         LDFLAGS="${LDFLAGS} -L${with_opie}/lib -R${with_opie}/lib"
21640     else
21641         LDFLAGS="${LDFLAGS} -L${with_opie}/lib"
21642     fi
21643     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
21644         blibpath_add="${blibpath_add}:${with_opie}/lib"
21645     fi
21646
21647
21648     if test X"$with_rpath" = X"yes"; then
21649         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_opie}/lib -R${with_opie}/lib"
21650     else
21651         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_opie}/lib"
21652     fi
21653     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
21654         blibpath_add="${blibpath_add}:${with_opie}/lib"
21655     fi
21656
21657         cat >conftest.$ac_ext <<_ACEOF
21658 #include <opie.h>
21659 _ACEOF
21660 if { (ac_try="$ac_cpp conftest.$ac_ext"
21661 case "(($ac_try" in
21662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21663   *) ac_try_echo=$ac_try;;
21664 esac
21665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21666   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21667   ac_status=$?
21668   grep -v '^ *+' conftest.er1 >conftest.err
21669   rm -f conftest.er1
21670   cat conftest.err >&5
21671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21672   (exit $ac_status); } >/dev/null && {
21673          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21674          test ! -s conftest.err
21675        }; then
21676   found=yes
21677 else
21678   echo "$as_me: failed program was:" >&5
21679 sed 's/^/| /' conftest.$ac_ext >&5
21680
21681   found=no
21682 fi
21683
21684 rm -f conftest.err conftest.$ac_ext
21685     else
21686         found=no
21687         O_CPPFLAGS="$CPPFLAGS"
21688         for dir in "" "/usr/local" "/usr/contrib"; do
21689             test -n "$dir" && CPPFLAGS="$O_CPPFLAGS -I${dir}/include"
21690             cat >conftest.$ac_ext <<_ACEOF
21691 #include <opie.h>
21692 _ACEOF
21693 if { (ac_try="$ac_cpp conftest.$ac_ext"
21694 case "(($ac_try" in
21695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21696   *) ac_try_echo=$ac_try;;
21697 esac
21698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21699   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21700   ac_status=$?
21701   grep -v '^ *+' conftest.er1 >conftest.err
21702   rm -f conftest.er1
21703   cat conftest.err >&5
21704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21705   (exit $ac_status); } >/dev/null && {
21706          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21707          test ! -s conftest.err
21708        }; then
21709   found=yes; break
21710 else
21711   echo "$as_me: failed program was:" >&5
21712 sed 's/^/| /' conftest.$ac_ext >&5
21713
21714
21715 fi
21716
21717 rm -f conftest.err conftest.$ac_ext
21718         done
21719         if test "$found" = "no" -o -z "$dir"; then
21720             CPPFLAGS="$O_CPPFLAGS"
21721         else
21722
21723     if test X"$with_rpath" = X"yes"; then
21724         LDFLAGS="${LDFLAGS} -L${dir}/lib -R${dir}/lib"
21725     else
21726         LDFLAGS="${LDFLAGS} -L${dir}/lib"
21727     fi
21728     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
21729         blibpath_add="${blibpath_add}:${dir}/lib"
21730     fi
21731
21732
21733     if test X"$with_rpath" = X"yes"; then
21734         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib -R${dir}/lib"
21735     else
21736         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib"
21737     fi
21738     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
21739         blibpath_add="${blibpath_add}:${dir}/lib"
21740     fi
21741
21742         fi
21743     fi
21744     if test "$found" = "no"; then
21745         { echo "$as_me:$LINENO: WARNING: Unable to locate opie.h, you will have to edit the Makefile and add -I/path/to/opie/includes to CPPFLAGS" >&5
21746 echo "$as_me: WARNING: Unable to locate opie.h, you will have to edit the Makefile and add -I/path/to/opie/includes to CPPFLAGS" >&2;}
21747     fi
21748     { echo "$as_me:$LINENO: checking for main in -lopie" >&5
21749 echo $ECHO_N "checking for main in -lopie... $ECHO_C" >&6; }
21750 if test "${ac_cv_lib_opie_main+set}" = set; then
21751   echo $ECHO_N "(cached) $ECHO_C" >&6
21752 else
21753   ac_check_lib_save_LIBS=$LIBS
21754 LIBS="-lopie  $LIBS"
21755 cat >conftest.$ac_ext <<_ACEOF
21756 /* confdefs.h.  */
21757 _ACEOF
21758 cat confdefs.h >>conftest.$ac_ext
21759 cat >>conftest.$ac_ext <<_ACEOF
21760 /* end confdefs.h.  */
21761
21762
21763 int
21764 main ()
21765 {
21766 return main ();
21767   ;
21768   return 0;
21769 }
21770 _ACEOF
21771 rm -f conftest.$ac_objext conftest$ac_exeext
21772 if { (ac_try="$ac_link"
21773 case "(($ac_try" in
21774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21775   *) ac_try_echo=$ac_try;;
21776 esac
21777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21778   (eval "$ac_link") 2>conftest.er1
21779   ac_status=$?
21780   grep -v '^ *+' conftest.er1 >conftest.err
21781   rm -f conftest.er1
21782   cat conftest.err >&5
21783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21784   (exit $ac_status); } && {
21785          test -z "$ac_c_werror_flag" ||
21786          test ! -s conftest.err
21787        } && test -s conftest$ac_exeext &&
21788        $as_test_x conftest$ac_exeext; then
21789   ac_cv_lib_opie_main=yes
21790 else
21791   echo "$as_me: failed program was:" >&5
21792 sed 's/^/| /' conftest.$ac_ext >&5
21793
21794         ac_cv_lib_opie_main=no
21795 fi
21796
21797 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21798       conftest$ac_exeext conftest.$ac_ext
21799 LIBS=$ac_check_lib_save_LIBS
21800 fi
21801 { echo "$as_me:$LINENO: result: $ac_cv_lib_opie_main" >&5
21802 echo "${ECHO_T}$ac_cv_lib_opie_main" >&6; }
21803 if test $ac_cv_lib_opie_main = yes; then
21804   found=yes
21805 else
21806   { echo "$as_me:$LINENO: WARNING: Unable to locate libopie.a, you will have to edit the Makefile and add -L/path/to/opie/lib to SUDO_LDFLAGS" >&5
21807 echo "$as_me: WARNING: Unable to locate libopie.a, you will have to edit the Makefile and add -L/path/to/opie/lib to SUDO_LDFLAGS" >&2;}
21808 fi
21809
21810     LDFLAGS="$O_LDFLAGS"
21811     SUDO_LIBS="${SUDO_LIBS} -lopie"
21812     AUTH_OBJS="$AUTH_OBJS rfc1938.o"
21813 fi
21814
21815 if test ${with_passwd-'no'} != "no"; then
21816                 if test -z "$LIB_CRYPT" -a "$with_passwd" != "no"; then
21817         { echo "$as_me:$LINENO: checking for library containing crypt" >&5
21818 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6; }
21819 if test "${ac_cv_search_crypt+set}" = set; then
21820   echo $ECHO_N "(cached) $ECHO_C" >&6
21821 else
21822   ac_func_search_save_LIBS=$LIBS
21823 cat >conftest.$ac_ext <<_ACEOF
21824 /* confdefs.h.  */
21825 _ACEOF
21826 cat confdefs.h >>conftest.$ac_ext
21827 cat >>conftest.$ac_ext <<_ACEOF
21828 /* end confdefs.h.  */
21829
21830 /* Override any GCC internal prototype to avoid an error.
21831    Use char because int might match the return type of a GCC
21832    builtin and then its argument prototype would still apply.  */
21833 #ifdef __cplusplus
21834 extern "C"
21835 #endif
21836 char crypt ();
21837 int
21838 main ()
21839 {
21840 return crypt ();
21841   ;
21842   return 0;
21843 }
21844 _ACEOF
21845 for ac_lib in '' crypt crypt_d ufc; do
21846   if test -z "$ac_lib"; then
21847     ac_res="none required"
21848   else
21849     ac_res=-l$ac_lib
21850     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21851   fi
21852   rm -f conftest.$ac_objext conftest$ac_exeext
21853 if { (ac_try="$ac_link"
21854 case "(($ac_try" in
21855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21856   *) ac_try_echo=$ac_try;;
21857 esac
21858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21859   (eval "$ac_link") 2>conftest.er1
21860   ac_status=$?
21861   grep -v '^ *+' conftest.er1 >conftest.err
21862   rm -f conftest.er1
21863   cat conftest.err >&5
21864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21865   (exit $ac_status); } && {
21866          test -z "$ac_c_werror_flag" ||
21867          test ! -s conftest.err
21868        } && test -s conftest$ac_exeext &&
21869        $as_test_x conftest$ac_exeext; then
21870   ac_cv_search_crypt=$ac_res
21871 else
21872   echo "$as_me: failed program was:" >&5
21873 sed 's/^/| /' conftest.$ac_ext >&5
21874
21875
21876 fi
21877
21878 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21879       conftest$ac_exeext
21880   if test "${ac_cv_search_crypt+set}" = set; then
21881   break
21882 fi
21883 done
21884 if test "${ac_cv_search_crypt+set}" = set; then
21885   :
21886 else
21887   ac_cv_search_crypt=no
21888 fi
21889 rm conftest.$ac_ext
21890 LIBS=$ac_func_search_save_LIBS
21891 fi
21892 { echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
21893 echo "${ECHO_T}$ac_cv_search_crypt" >&6; }
21894 ac_res=$ac_cv_search_crypt
21895 if test "$ac_res" != no; then
21896   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21897   test -n "$ac_lib" && SUDO_LIBS="${SUDO_LIBS} $ac_res"
21898 fi
21899
21900     fi
21901
21902     if test "$CHECKSHADOW" = "true" -a -n "$shadow_funcs"; then
21903         _LIBS="$LIBS"
21904         LIBS="$LIBS $shadow_libs"
21905         found=no
21906
21907 for ac_func in $shadow_funcs
21908 do
21909 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21910 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21911 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21912 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21913   echo $ECHO_N "(cached) $ECHO_C" >&6
21914 else
21915   cat >conftest.$ac_ext <<_ACEOF
21916 /* confdefs.h.  */
21917 _ACEOF
21918 cat confdefs.h >>conftest.$ac_ext
21919 cat >>conftest.$ac_ext <<_ACEOF
21920 /* end confdefs.h.  */
21921 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21922    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21923 #define $ac_func innocuous_$ac_func
21924
21925 /* System header to define __stub macros and hopefully few prototypes,
21926     which can conflict with char $ac_func (); below.
21927     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21928     <limits.h> exists even on freestanding compilers.  */
21929
21930 #ifdef __STDC__
21931 # include <limits.h>
21932 #else
21933 # include <assert.h>
21934 #endif
21935
21936 #undef $ac_func
21937
21938 /* Override any GCC internal prototype to avoid an error.
21939    Use char because int might match the return type of a GCC
21940    builtin and then its argument prototype would still apply.  */
21941 #ifdef __cplusplus
21942 extern "C"
21943 #endif
21944 char $ac_func ();
21945 /* The GNU C library defines this for functions which it implements
21946     to always fail with ENOSYS.  Some functions are actually named
21947     something starting with __ and the normal name is an alias.  */
21948 #if defined __stub_$ac_func || defined __stub___$ac_func
21949 choke me
21950 #endif
21951
21952 int
21953 main ()
21954 {
21955 return $ac_func ();
21956   ;
21957   return 0;
21958 }
21959 _ACEOF
21960 rm -f conftest.$ac_objext conftest$ac_exeext
21961 if { (ac_try="$ac_link"
21962 case "(($ac_try" in
21963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21964   *) ac_try_echo=$ac_try;;
21965 esac
21966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21967   (eval "$ac_link") 2>conftest.er1
21968   ac_status=$?
21969   grep -v '^ *+' conftest.er1 >conftest.err
21970   rm -f conftest.er1
21971   cat conftest.err >&5
21972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21973   (exit $ac_status); } && {
21974          test -z "$ac_c_werror_flag" ||
21975          test ! -s conftest.err
21976        } && test -s conftest$ac_exeext &&
21977        $as_test_x conftest$ac_exeext; then
21978   eval "$as_ac_var=yes"
21979 else
21980   echo "$as_me: failed program was:" >&5
21981 sed 's/^/| /' conftest.$ac_ext >&5
21982
21983         eval "$as_ac_var=no"
21984 fi
21985
21986 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21987       conftest$ac_exeext conftest.$ac_ext
21988 fi
21989 ac_res=`eval echo '${'$as_ac_var'}'`
21990                { echo "$as_me:$LINENO: result: $ac_res" >&5
21991 echo "${ECHO_T}$ac_res" >&6; }
21992 if test `eval echo '${'$as_ac_var'}'` = yes; then
21993   cat >>confdefs.h <<_ACEOF
21994 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21995 _ACEOF
21996  found=yes
21997 fi
21998 done
21999
22000         if test "$found" = "yes"; then
22001             SUDO_LIBS="$SUDO_LIBS $shadow_libs"
22002         elif test -n "$shadow_libs_optional"; then
22003             LIBS="$LIBS $shadow_libs_optional"
22004
22005 for ac_func in $shadow_funcs
22006 do
22007 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22008 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22009 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22010 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22011   echo $ECHO_N "(cached) $ECHO_C" >&6
22012 else
22013   cat >conftest.$ac_ext <<_ACEOF
22014 /* confdefs.h.  */
22015 _ACEOF
22016 cat confdefs.h >>conftest.$ac_ext
22017 cat >>conftest.$ac_ext <<_ACEOF
22018 /* end confdefs.h.  */
22019 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22020    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22021 #define $ac_func innocuous_$ac_func
22022
22023 /* System header to define __stub macros and hopefully few prototypes,
22024     which can conflict with char $ac_func (); below.
22025     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22026     <limits.h> exists even on freestanding compilers.  */
22027
22028 #ifdef __STDC__
22029 # include <limits.h>
22030 #else
22031 # include <assert.h>
22032 #endif
22033
22034 #undef $ac_func
22035
22036 /* Override any GCC internal prototype to avoid an error.
22037    Use char because int might match the return type of a GCC
22038    builtin and then its argument prototype would still apply.  */
22039 #ifdef __cplusplus
22040 extern "C"
22041 #endif
22042 char $ac_func ();
22043 /* The GNU C library defines this for functions which it implements
22044     to always fail with ENOSYS.  Some functions are actually named
22045     something starting with __ and the normal name is an alias.  */
22046 #if defined __stub_$ac_func || defined __stub___$ac_func
22047 choke me
22048 #endif
22049
22050 int
22051 main ()
22052 {
22053 return $ac_func ();
22054   ;
22055   return 0;
22056 }
22057 _ACEOF
22058 rm -f conftest.$ac_objext conftest$ac_exeext
22059 if { (ac_try="$ac_link"
22060 case "(($ac_try" in
22061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22062   *) ac_try_echo=$ac_try;;
22063 esac
22064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22065   (eval "$ac_link") 2>conftest.er1
22066   ac_status=$?
22067   grep -v '^ *+' conftest.er1 >conftest.err
22068   rm -f conftest.er1
22069   cat conftest.err >&5
22070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22071   (exit $ac_status); } && {
22072          test -z "$ac_c_werror_flag" ||
22073          test ! -s conftest.err
22074        } && test -s conftest$ac_exeext &&
22075        $as_test_x conftest$ac_exeext; then
22076   eval "$as_ac_var=yes"
22077 else
22078   echo "$as_me: failed program was:" >&5
22079 sed 's/^/| /' conftest.$ac_ext >&5
22080
22081         eval "$as_ac_var=no"
22082 fi
22083
22084 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22085       conftest$ac_exeext conftest.$ac_ext
22086 fi
22087 ac_res=`eval echo '${'$as_ac_var'}'`
22088                { echo "$as_me:$LINENO: result: $ac_res" >&5
22089 echo "${ECHO_T}$ac_res" >&6; }
22090 if test `eval echo '${'$as_ac_var'}'` = yes; then
22091   cat >>confdefs.h <<_ACEOF
22092 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22093 _ACEOF
22094  found=yes
22095 fi
22096 done
22097
22098             if test "$found" = "yes"; then
22099                 SUDO_LIBS="$SUDO_LIBS $shadow_libs $shadow_libs_optional"
22100             fi
22101         fi
22102         if test "$found" = "yes"; then
22103             case "$shadow_funcs" in
22104                 *getprpwnam*) SECUREWARE=1;;
22105             esac
22106             test -n "$shadow_defs" && OSDEFS="${OSDEFS} $shadow_defs"
22107         else
22108             LIBS="$_LIBS"
22109         fi
22110         CHECKSHADOW=false
22111     fi
22112     if test "$CHECKSHADOW" = "true"; then
22113         { echo "$as_me:$LINENO: checking for library containing getspnam" >&5
22114 echo $ECHO_N "checking for library containing getspnam... $ECHO_C" >&6; }
22115 if test "${ac_cv_search_getspnam+set}" = set; then
22116   echo $ECHO_N "(cached) $ECHO_C" >&6
22117 else
22118   ac_func_search_save_LIBS=$LIBS
22119 cat >conftest.$ac_ext <<_ACEOF
22120 /* confdefs.h.  */
22121 _ACEOF
22122 cat confdefs.h >>conftest.$ac_ext
22123 cat >>conftest.$ac_ext <<_ACEOF
22124 /* end confdefs.h.  */
22125
22126 /* Override any GCC internal prototype to avoid an error.
22127    Use char because int might match the return type of a GCC
22128    builtin and then its argument prototype would still apply.  */
22129 #ifdef __cplusplus
22130 extern "C"
22131 #endif
22132 char getspnam ();
22133 int
22134 main ()
22135 {
22136 return getspnam ();
22137   ;
22138   return 0;
22139 }
22140 _ACEOF
22141 for ac_lib in '' gen; do
22142   if test -z "$ac_lib"; then
22143     ac_res="none required"
22144   else
22145     ac_res=-l$ac_lib
22146     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22147   fi
22148   rm -f conftest.$ac_objext conftest$ac_exeext
22149 if { (ac_try="$ac_link"
22150 case "(($ac_try" in
22151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22152   *) ac_try_echo=$ac_try;;
22153 esac
22154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22155   (eval "$ac_link") 2>conftest.er1
22156   ac_status=$?
22157   grep -v '^ *+' conftest.er1 >conftest.err
22158   rm -f conftest.er1
22159   cat conftest.err >&5
22160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22161   (exit $ac_status); } && {
22162          test -z "$ac_c_werror_flag" ||
22163          test ! -s conftest.err
22164        } && test -s conftest$ac_exeext &&
22165        $as_test_x conftest$ac_exeext; then
22166   ac_cv_search_getspnam=$ac_res
22167 else
22168   echo "$as_me: failed program was:" >&5
22169 sed 's/^/| /' conftest.$ac_ext >&5
22170
22171
22172 fi
22173
22174 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22175       conftest$ac_exeext
22176   if test "${ac_cv_search_getspnam+set}" = set; then
22177   break
22178 fi
22179 done
22180 if test "${ac_cv_search_getspnam+set}" = set; then
22181   :
22182 else
22183   ac_cv_search_getspnam=no
22184 fi
22185 rm conftest.$ac_ext
22186 LIBS=$ac_func_search_save_LIBS
22187 fi
22188 { echo "$as_me:$LINENO: result: $ac_cv_search_getspnam" >&5
22189 echo "${ECHO_T}$ac_cv_search_getspnam" >&6; }
22190 ac_res=$ac_cv_search_getspnam
22191 if test "$ac_res" != no; then
22192   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22193   cat >>confdefs.h <<\_ACEOF
22194 #define HAVE_GETSPNAM 1
22195 _ACEOF
22196  CHECKSHADOW=false; test -n "$ac_lib" && SUDO_LIBS="${SUDO_LIBS} $ac_res"
22197 fi
22198
22199     fi
22200     if test "$CHECKSHADOW" = "true"; then
22201         { echo "$as_me:$LINENO: checking for library containing getprpwnam" >&5
22202 echo $ECHO_N "checking for library containing getprpwnam... $ECHO_C" >&6; }
22203 if test "${ac_cv_search_getprpwnam+set}" = set; then
22204   echo $ECHO_N "(cached) $ECHO_C" >&6
22205 else
22206   ac_func_search_save_LIBS=$LIBS
22207 cat >conftest.$ac_ext <<_ACEOF
22208 /* confdefs.h.  */
22209 _ACEOF
22210 cat confdefs.h >>conftest.$ac_ext
22211 cat >>conftest.$ac_ext <<_ACEOF
22212 /* end confdefs.h.  */
22213
22214 /* Override any GCC internal prototype to avoid an error.
22215    Use char because int might match the return type of a GCC
22216    builtin and then its argument prototype would still apply.  */
22217 #ifdef __cplusplus
22218 extern "C"
22219 #endif
22220 char getprpwnam ();
22221 int
22222 main ()
22223 {
22224 return getprpwnam ();
22225   ;
22226   return 0;
22227 }
22228 _ACEOF
22229 for ac_lib in '' sec security prot; do
22230   if test -z "$ac_lib"; then
22231     ac_res="none required"
22232   else
22233     ac_res=-l$ac_lib
22234     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22235   fi
22236   rm -f conftest.$ac_objext conftest$ac_exeext
22237 if { (ac_try="$ac_link"
22238 case "(($ac_try" in
22239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22240   *) ac_try_echo=$ac_try;;
22241 esac
22242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22243   (eval "$ac_link") 2>conftest.er1
22244   ac_status=$?
22245   grep -v '^ *+' conftest.er1 >conftest.err
22246   rm -f conftest.er1
22247   cat conftest.err >&5
22248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22249   (exit $ac_status); } && {
22250          test -z "$ac_c_werror_flag" ||
22251          test ! -s conftest.err
22252        } && test -s conftest$ac_exeext &&
22253        $as_test_x conftest$ac_exeext; then
22254   ac_cv_search_getprpwnam=$ac_res
22255 else
22256   echo "$as_me: failed program was:" >&5
22257 sed 's/^/| /' conftest.$ac_ext >&5
22258
22259
22260 fi
22261
22262 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22263       conftest$ac_exeext
22264   if test "${ac_cv_search_getprpwnam+set}" = set; then
22265   break
22266 fi
22267 done
22268 if test "${ac_cv_search_getprpwnam+set}" = set; then
22269   :
22270 else
22271   ac_cv_search_getprpwnam=no
22272 fi
22273 rm conftest.$ac_ext
22274 LIBS=$ac_func_search_save_LIBS
22275 fi
22276 { echo "$as_me:$LINENO: result: $ac_cv_search_getprpwnam" >&5
22277 echo "${ECHO_T}$ac_cv_search_getprpwnam" >&6; }
22278 ac_res=$ac_cv_search_getprpwnam
22279 if test "$ac_res" != no; then
22280   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22281   cat >>confdefs.h <<\_ACEOF
22282 #define HAVE_GETPRPWNAM 1
22283 _ACEOF
22284  CHECKSHADOW=false; SECUREWARE=1; test -n "$ac_lib" && SUDO_LIBS="${SUDO_LIBS} $ac_res"
22285 fi
22286
22287     fi
22288     if test -n "$SECUREWARE"; then
22289
22290
22291
22292 for ac_func in bigcrypt set_auth_parameters initprivs
22293 do
22294 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22295 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22296 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22297 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22298   echo $ECHO_N "(cached) $ECHO_C" >&6
22299 else
22300   cat >conftest.$ac_ext <<_ACEOF
22301 /* confdefs.h.  */
22302 _ACEOF
22303 cat confdefs.h >>conftest.$ac_ext
22304 cat >>conftest.$ac_ext <<_ACEOF
22305 /* end confdefs.h.  */
22306 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22307    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22308 #define $ac_func innocuous_$ac_func
22309
22310 /* System header to define __stub macros and hopefully few prototypes,
22311     which can conflict with char $ac_func (); below.
22312     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22313     <limits.h> exists even on freestanding compilers.  */
22314
22315 #ifdef __STDC__
22316 # include <limits.h>
22317 #else
22318 # include <assert.h>
22319 #endif
22320
22321 #undef $ac_func
22322
22323 /* Override any GCC internal prototype to avoid an error.
22324    Use char because int might match the return type of a GCC
22325    builtin and then its argument prototype would still apply.  */
22326 #ifdef __cplusplus
22327 extern "C"
22328 #endif
22329 char $ac_func ();
22330 /* The GNU C library defines this for functions which it implements
22331     to always fail with ENOSYS.  Some functions are actually named
22332     something starting with __ and the normal name is an alias.  */
22333 #if defined __stub_$ac_func || defined __stub___$ac_func
22334 choke me
22335 #endif
22336
22337 int
22338 main ()
22339 {
22340 return $ac_func ();
22341   ;
22342   return 0;
22343 }
22344 _ACEOF
22345 rm -f conftest.$ac_objext conftest$ac_exeext
22346 if { (ac_try="$ac_link"
22347 case "(($ac_try" in
22348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22349   *) ac_try_echo=$ac_try;;
22350 esac
22351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22352   (eval "$ac_link") 2>conftest.er1
22353   ac_status=$?
22354   grep -v '^ *+' conftest.er1 >conftest.err
22355   rm -f conftest.er1
22356   cat conftest.err >&5
22357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22358   (exit $ac_status); } && {
22359          test -z "$ac_c_werror_flag" ||
22360          test ! -s conftest.err
22361        } && test -s conftest$ac_exeext &&
22362        $as_test_x conftest$ac_exeext; then
22363   eval "$as_ac_var=yes"
22364 else
22365   echo "$as_me: failed program was:" >&5
22366 sed 's/^/| /' conftest.$ac_ext >&5
22367
22368         eval "$as_ac_var=no"
22369 fi
22370
22371 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22372       conftest$ac_exeext conftest.$ac_ext
22373 fi
22374 ac_res=`eval echo '${'$as_ac_var'}'`
22375                { echo "$as_me:$LINENO: result: $ac_res" >&5
22376 echo "${ECHO_T}$ac_res" >&6; }
22377 if test `eval echo '${'$as_ac_var'}'` = yes; then
22378   cat >>confdefs.h <<_ACEOF
22379 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22380 _ACEOF
22381
22382 fi
22383 done
22384
22385         AUTH_OBJS="$AUTH_OBJS secureware.o"
22386     fi
22387 fi
22388
22389 if test ${with_ldap-'no'} != "no"; then
22390     _LDFLAGS="$LDFLAGS"
22391     if test "$with_ldap" != "yes"; then
22392
22393     if test X"$with_rpath" = X"yes"; then
22394         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_ldap}/lib -R${with_ldap}/lib"
22395     else
22396         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_ldap}/lib"
22397     fi
22398     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
22399         blibpath_add="${blibpath_add}:${with_ldap}/lib"
22400     fi
22401
22402
22403     if test X"$with_rpath" = X"yes"; then
22404         LDFLAGS="${LDFLAGS} -L${with_ldap}/lib -R${with_ldap}/lib"
22405     else
22406         LDFLAGS="${LDFLAGS} -L${with_ldap}/lib"
22407     fi
22408     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
22409         blibpath_add="${blibpath_add}:${with_ldap}/lib"
22410     fi
22411
22412         CPPFLAGS="${CPPFLAGS} -I${with_ldap}/include"
22413         with_ldap=yes
22414     fi
22415     SUDO_OBJS="${SUDO_OBJS} ldap.o"
22416
22417     { echo "$as_me:$LINENO: checking for LDAP libraries" >&5
22418 echo $ECHO_N "checking for LDAP libraries... $ECHO_C" >&6; }
22419     LDAP_LIBS=""
22420     _LIBS="$LIBS"
22421     found=no
22422     for l in -lldap -llber '-lssl -lcrypto'; do
22423         LIBS="${LIBS} $l"
22424         LDAP_LIBS="${LDAP_LIBS} $l"
22425         cat >conftest.$ac_ext <<_ACEOF
22426 /* confdefs.h.  */
22427 _ACEOF
22428 cat confdefs.h >>conftest.$ac_ext
22429 cat >>conftest.$ac_ext <<_ACEOF
22430 /* end confdefs.h.  */
22431 #include <sys/types.h>
22432         #include <lber.h>
22433         #include <ldap.h>
22434 int
22435 main ()
22436 {
22437 (void)ldap_init(0, 0)
22438   ;
22439   return 0;
22440 }
22441 _ACEOF
22442 rm -f conftest.$ac_objext conftest$ac_exeext
22443 if { (ac_try="$ac_link"
22444 case "(($ac_try" in
22445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22446   *) ac_try_echo=$ac_try;;
22447 esac
22448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22449   (eval "$ac_link") 2>conftest.er1
22450   ac_status=$?
22451   grep -v '^ *+' conftest.er1 >conftest.err
22452   rm -f conftest.er1
22453   cat conftest.err >&5
22454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22455   (exit $ac_status); } && {
22456          test -z "$ac_c_werror_flag" ||
22457          test ! -s conftest.err
22458        } && test -s conftest$ac_exeext &&
22459        $as_test_x conftest$ac_exeext; then
22460   found=yes; break
22461 else
22462   echo "$as_me: failed program was:" >&5
22463 sed 's/^/| /' conftest.$ac_ext >&5
22464
22465
22466 fi
22467
22468 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22469       conftest$ac_exeext conftest.$ac_ext
22470     done
22471         if test "$found" = "no"; then
22472         LDAP_LIBS=" -lldap"
22473         { echo "$as_me:$LINENO: result: not found, using -lldap" >&5
22474 echo "${ECHO_T}not found, using -lldap" >&6; }
22475     else
22476         { echo "$as_me:$LINENO: result: $LDAP_LIBS" >&5
22477 echo "${ECHO_T}$LDAP_LIBS" >&6; }
22478     fi
22479         { echo "$as_me:$LINENO: checking whether lber.h is needed" >&5
22480 echo $ECHO_N "checking whether lber.h is needed... $ECHO_C" >&6; }
22481     cat >conftest.$ac_ext <<_ACEOF
22482 /* confdefs.h.  */
22483 _ACEOF
22484 cat confdefs.h >>conftest.$ac_ext
22485 cat >>conftest.$ac_ext <<_ACEOF
22486 /* end confdefs.h.  */
22487 #include <sys/types.h>
22488     #include <ldap.h>
22489 int
22490 main ()
22491 {
22492 (void)ldap_init(0, 0)
22493   ;
22494   return 0;
22495 }
22496 _ACEOF
22497 rm -f conftest.$ac_objext conftest$ac_exeext
22498 if { (ac_try="$ac_link"
22499 case "(($ac_try" in
22500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22501   *) ac_try_echo=$ac_try;;
22502 esac
22503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22504   (eval "$ac_link") 2>conftest.er1
22505   ac_status=$?
22506   grep -v '^ *+' conftest.er1 >conftest.err
22507   rm -f conftest.er1
22508   cat conftest.err >&5
22509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22510   (exit $ac_status); } && {
22511          test -z "$ac_c_werror_flag" ||
22512          test ! -s conftest.err
22513        } && test -s conftest$ac_exeext &&
22514        $as_test_x conftest$ac_exeext; then
22515   { echo "$as_me:$LINENO: result: no" >&5
22516 echo "${ECHO_T}no" >&6; }
22517 else
22518   echo "$as_me: failed program was:" >&5
22519 sed 's/^/| /' conftest.$ac_ext >&5
22520
22521
22522     { echo "$as_me:$LINENO: result: yes" >&5
22523 echo "${ECHO_T}yes" >&6; }
22524     cat >>confdefs.h <<\_ACEOF
22525 #define HAVE_LBER_H 1
22526 _ACEOF
22527
22528 fi
22529
22530 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22531       conftest$ac_exeext conftest.$ac_ext
22532
22533
22534
22535
22536 for ac_func in ldap_initialize ldap_start_tls_s ldapssl_init
22537 do
22538 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22539 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22540 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22541 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22542   echo $ECHO_N "(cached) $ECHO_C" >&6
22543 else
22544   cat >conftest.$ac_ext <<_ACEOF
22545 /* confdefs.h.  */
22546 _ACEOF
22547 cat confdefs.h >>conftest.$ac_ext
22548 cat >>conftest.$ac_ext <<_ACEOF
22549 /* end confdefs.h.  */
22550 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22551    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22552 #define $ac_func innocuous_$ac_func
22553
22554 /* System header to define __stub macros and hopefully few prototypes,
22555     which can conflict with char $ac_func (); below.
22556     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22557     <limits.h> exists even on freestanding compilers.  */
22558
22559 #ifdef __STDC__
22560 # include <limits.h>
22561 #else
22562 # include <assert.h>
22563 #endif
22564
22565 #undef $ac_func
22566
22567 /* Override any GCC internal prototype to avoid an error.
22568    Use char because int might match the return type of a GCC
22569    builtin and then its argument prototype would still apply.  */
22570 #ifdef __cplusplus
22571 extern "C"
22572 #endif
22573 char $ac_func ();
22574 /* The GNU C library defines this for functions which it implements
22575     to always fail with ENOSYS.  Some functions are actually named
22576     something starting with __ and the normal name is an alias.  */
22577 #if defined __stub_$ac_func || defined __stub___$ac_func
22578 choke me
22579 #endif
22580
22581 int
22582 main ()
22583 {
22584 return $ac_func ();
22585   ;
22586   return 0;
22587 }
22588 _ACEOF
22589 rm -f conftest.$ac_objext conftest$ac_exeext
22590 if { (ac_try="$ac_link"
22591 case "(($ac_try" in
22592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22593   *) ac_try_echo=$ac_try;;
22594 esac
22595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22596   (eval "$ac_link") 2>conftest.er1
22597   ac_status=$?
22598   grep -v '^ *+' conftest.er1 >conftest.err
22599   rm -f conftest.er1
22600   cat conftest.err >&5
22601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22602   (exit $ac_status); } && {
22603          test -z "$ac_c_werror_flag" ||
22604          test ! -s conftest.err
22605        } && test -s conftest$ac_exeext &&
22606        $as_test_x conftest$ac_exeext; then
22607   eval "$as_ac_var=yes"
22608 else
22609   echo "$as_me: failed program was:" >&5
22610 sed 's/^/| /' conftest.$ac_ext >&5
22611
22612         eval "$as_ac_var=no"
22613 fi
22614
22615 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22616       conftest$ac_exeext conftest.$ac_ext
22617 fi
22618 ac_res=`eval echo '${'$as_ac_var'}'`
22619                { echo "$as_me:$LINENO: result: $ac_res" >&5
22620 echo "${ECHO_T}$ac_res" >&6; }
22621 if test `eval echo '${'$as_ac_var'}'` = yes; then
22622   cat >>confdefs.h <<_ACEOF
22623 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22624 _ACEOF
22625
22626 fi
22627 done
22628
22629
22630     SUDO_LIBS="${SUDO_LIBS}${LDAP_LIBS}"
22631     LIBS="$_LIBS"
22632     LDFLAGS="$_LDFLAGS"
22633     # XXX - OpenLDAP has deprecated ldap_get_values()
22634     CPPFLAGS="${CPPFLAGS} -DLDAP_DEPRECATED"
22635 fi
22636
22637 if test -n "$blibpath"; then
22638     if test -n "$blibpath_add"; then
22639         SUDO_LDFLAGS="$SUDO_LDFLAGS -Wl,-blibpath:${blibpath}${blibpath_add}"
22640     elif test -n "$with_blibpath" -a "$with_blibpath" != "yes"; then
22641         SUDO_LDFLAGS="$SUDO_LDFLAGS -Wl,-blibpath:${blibpath}"
22642     fi
22643 fi
22644
22645 { echo "$as_me:$LINENO: checking for log file location" >&5
22646 echo $ECHO_N "checking for log file location... $ECHO_C" >&6; }
22647 if test -n "$with_logpath"; then
22648     { echo "$as_me:$LINENO: result: $with_logpath" >&5
22649 echo "${ECHO_T}$with_logpath" >&6; }
22650     cat >>confdefs.h <<EOF
22651 #define _PATH_SUDO_LOGFILE "$with_logpath"
22652 EOF
22653
22654 elif test -d "/var/log"; then
22655     { echo "$as_me:$LINENO: result: /var/log/sudo.log" >&5
22656 echo "${ECHO_T}/var/log/sudo.log" >&6; }
22657     cat >>confdefs.h <<\EOF
22658 #define _PATH_SUDO_LOGFILE "/var/log/sudo.log"
22659 EOF
22660
22661 elif test -d "/var/adm"; then
22662     { echo "$as_me:$LINENO: result: /var/adm/sudo.log" >&5
22663 echo "${ECHO_T}/var/adm/sudo.log" >&6; }
22664     cat >>confdefs.h <<\EOF
22665 #define _PATH_SUDO_LOGFILE "/var/adm/sudo.log"
22666 EOF
22667
22668 elif test -d "/usr/adm"; then
22669     { echo "$as_me:$LINENO: result: /usr/adm/sudo.log" >&5
22670 echo "${ECHO_T}/usr/adm/sudo.log" >&6; }
22671     cat >>confdefs.h <<\EOF
22672 #define _PATH_SUDO_LOGFILE "/usr/adm/sudo.log"
22673 EOF
22674
22675 else
22676     { echo "$as_me:$LINENO: result: unknown" >&5
22677 echo "${ECHO_T}unknown" >&6; }
22678 fi
22679
22680 { echo "$as_me:$LINENO: checking for timestamp file location" >&5
22681 echo $ECHO_N "checking for timestamp file location... $ECHO_C" >&6; }
22682 if test -n "$with_timedir"; then
22683     { echo "$as_me:$LINENO: result: $with_timedir" >&5
22684 echo "${ECHO_T}$with_timedir" >&6; }
22685     cat >>confdefs.h <<EOF
22686 #define _PATH_SUDO_TIMEDIR "$with_timedir"
22687 EOF
22688
22689     timedir="$with_timedir"
22690 elif test -d "/var/run"; then
22691     { echo "$as_me:$LINENO: result: /var/run/sudo" >&5
22692 echo "${ECHO_T}/var/run/sudo" >&6; }
22693     cat >>confdefs.h <<\EOF
22694 #define _PATH_SUDO_TIMEDIR "/var/run/sudo"
22695 EOF
22696
22697     timedir="/var/run/sudo"
22698 elif test -d "/var/adm"; then
22699     { echo "$as_me:$LINENO: result: /var/adm/sudo" >&5
22700 echo "${ECHO_T}/var/adm/sudo" >&6; }
22701     cat >>confdefs.h <<\EOF
22702 #define _PATH_SUDO_TIMEDIR "/var/adm/sudo"
22703 EOF
22704
22705     timedir="/var/adm/sudo"
22706 else
22707     { echo "$as_me:$LINENO: result: /usr/adm/sudo" >&5
22708 echo "${ECHO_T}/usr/adm/sudo" >&6; }
22709     cat >>confdefs.h <<\EOF
22710 #define _PATH_SUDO_TIMEDIR "/usr/adm/sudo"
22711 EOF
22712
22713     timedir="/usr/adm/sudo"
22714 fi
22715
22716
22717 case "$with_passwd" in
22718 yes|maybe)
22719     AUTH_OBJS="$AUTH_OBJS passwd.o"
22720     ;;
22721 *)
22722     cat >>confdefs.h <<\_ACEOF
22723 #define WITHOUT_PASSWD 1
22724 _ACEOF
22725
22726     if test -z "$AUTH_OBJS"; then
22727         { { echo "$as_me:$LINENO: error: no authentication methods defined." >&5
22728 echo "$as_me: error: no authentication methods defined." >&2;}
22729    { (exit 1); exit 1; }; }
22730     fi
22731     ;;
22732 esac
22733 AUTH_OBJS=${AUTH_OBJS# }
22734 _AUTH=`echo "$AUTH_OBJS" | sed 's/\.o//g'`
22735 { echo "$as_me:$LINENO: using the following authentication methods: $_AUTH" >&5
22736 echo "$as_me: using the following authentication methods: $_AUTH" >&6;}
22737
22738 if test -n "$LIBS"; then
22739     L="$LIBS"
22740     LIBS=
22741     for l in ${L}; do
22742         dupe=0
22743         for sl in ${SUDO_LIBS} ${NET_LIBS}; do
22744             test $l = $sl && dupe=1
22745         done
22746         test $dupe = 0 && LIBS="${LIBS} $l"
22747     done
22748 fi
22749
22750 test "$exec_prefix" = "NONE" && exec_prefix='$(prefix)'
22751
22752 if test "$with_noexec" != "no"; then
22753     PROGS="${PROGS} sudo_noexec.la"
22754     INSTALL_NOEXEC="install-noexec"
22755
22756     oexec_prefix="$exec_prefix"
22757     if test "$exec_prefix" = '$(prefix)'; then
22758         if test "$prefix" = "NONE"; then
22759             exec_prefix="$ac_default_prefix"
22760         else
22761             exec_prefix="$prefix"
22762         fi
22763     fi
22764     eval noexec_file="$with_noexec"
22765
22766 cat >>confdefs.h <<_ACEOF
22767 #define _PATH_SUDO_NOEXEC "$noexec_file"
22768 _ACEOF
22769
22770     exec_prefix="$oexec_prefix"
22771 fi
22772
22773 ac_config_files="$ac_config_files Makefile sudo.man visudo.man sudoers.man"
22774
22775 cat >confcache <<\_ACEOF
22776 # This file is a shell script that caches the results of configure
22777 # tests run on this system so they can be shared between configure
22778 # scripts and configure runs, see configure's option --config-cache.
22779 # It is not useful on other systems.  If it contains results you don't
22780 # want to keep, you may remove or edit it.
22781 #
22782 # config.status only pays attention to the cache file if you give it
22783 # the --recheck option to rerun configure.
22784 #
22785 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22786 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22787 # following values.
22788
22789 _ACEOF
22790
22791 # The following way of writing the cache mishandles newlines in values,
22792 # but we know of no workaround that is simple, portable, and efficient.
22793 # So, we kill variables containing newlines.
22794 # Ultrix sh set writes to stderr and can't be redirected directly,
22795 # and sets the high bit in the cache file unless we assign to the vars.
22796 (
22797   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22798     eval ac_val=\$$ac_var
22799     case $ac_val in #(
22800     *${as_nl}*)
22801       case $ac_var in #(
22802       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22803 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22804       esac
22805       case $ac_var in #(
22806       _ | IFS | as_nl) ;; #(
22807       *) $as_unset $ac_var ;;
22808       esac ;;
22809     esac
22810   done
22811
22812   (set) 2>&1 |
22813     case $as_nl`(ac_space=' '; set) 2>&1` in #(
22814     *${as_nl}ac_space=\ *)
22815       # `set' does not quote correctly, so add quotes (double-quote
22816       # substitution turns \\\\ into \\, and sed turns \\ into \).
22817       sed -n \
22818         "s/'/'\\\\''/g;
22819           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22820       ;; #(
22821     *)
22822       # `set' quotes correctly as required by POSIX, so do not add quotes.
22823       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22824       ;;
22825     esac |
22826     sort
22827 ) |
22828   sed '
22829      /^ac_cv_env_/b end
22830      t clear
22831      :clear
22832      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22833      t end
22834      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22835      :end' >>confcache
22836 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22837   if test -w "$cache_file"; then
22838     test "x$cache_file" != "x/dev/null" &&
22839       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22840 echo "$as_me: updating cache $cache_file" >&6;}
22841     cat confcache >$cache_file
22842   else
22843     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22844 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22845   fi
22846 fi
22847 rm -f confcache
22848
22849 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22850 # Let make expand exec_prefix.
22851 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22852
22853 DEFS=-DHAVE_CONFIG_H
22854
22855 ac_libobjs=
22856 ac_ltlibobjs=
22857 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22858   # 1. Remove the extension, and $U if already installed.
22859   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22860   ac_i=`echo "$ac_i" | sed "$ac_script"`
22861   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
22862   #    will be set to the directory where LIBOBJS objects are built.
22863   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22864   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22865 done
22866 LIBOBJS=$ac_libobjs
22867
22868 LTLIBOBJS=$ac_ltlibobjs
22869
22870
22871
22872 : ${CONFIG_STATUS=./config.status}
22873 ac_clean_files_save=$ac_clean_files
22874 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22875 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22876 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22877 cat >$CONFIG_STATUS <<_ACEOF
22878 #! $SHELL
22879 # Generated by $as_me.
22880 # Run this file to recreate the current configuration.
22881 # Compiler output produced by configure, useful for debugging
22882 # configure, is in config.log if it exists.
22883
22884 debug=false
22885 ac_cs_recheck=false
22886 ac_cs_silent=false
22887 SHELL=\${CONFIG_SHELL-$SHELL}
22888 _ACEOF
22889
22890 cat >>$CONFIG_STATUS <<\_ACEOF
22891 ## --------------------- ##
22892 ## M4sh Initialization.  ##
22893 ## --------------------- ##
22894
22895 # Be more Bourne compatible
22896 DUALCASE=1; export DUALCASE # for MKS sh
22897 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22898   emulate sh
22899   NULLCMD=:
22900   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22901   # is contrary to our usage.  Disable this feature.
22902   alias -g '${1+"$@"}'='"$@"'
22903   setopt NO_GLOB_SUBST
22904 else
22905   case `(set -o) 2>/dev/null` in
22906   *posix*) set -o posix ;;
22907 esac
22908
22909 fi
22910
22911
22912
22913
22914 # PATH needs CR
22915 # Avoid depending upon Character Ranges.
22916 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22917 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22918 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22919 as_cr_digits='0123456789'
22920 as_cr_alnum=$as_cr_Letters$as_cr_digits
22921
22922 # The user is always right.
22923 if test "${PATH_SEPARATOR+set}" != set; then
22924   echo "#! /bin/sh" >conf$$.sh
22925   echo  "exit 0"   >>conf$$.sh
22926   chmod +x conf$$.sh
22927   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22928     PATH_SEPARATOR=';'
22929   else
22930     PATH_SEPARATOR=:
22931   fi
22932   rm -f conf$$.sh
22933 fi
22934
22935 # Support unset when possible.
22936 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22937   as_unset=unset
22938 else
22939   as_unset=false
22940 fi
22941
22942
22943 # IFS
22944 # We need space, tab and new line, in precisely that order.  Quoting is
22945 # there to prevent editors from complaining about space-tab.
22946 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22947 # splitting by setting IFS to empty value.)
22948 as_nl='
22949 '
22950 IFS=" ""        $as_nl"
22951
22952 # Find who we are.  Look in the path if we contain no directory separator.
22953 case $0 in
22954   *[\\/]* ) as_myself=$0 ;;
22955   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22956 for as_dir in $PATH
22957 do
22958   IFS=$as_save_IFS
22959   test -z "$as_dir" && as_dir=.
22960   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22961 done
22962 IFS=$as_save_IFS
22963
22964      ;;
22965 esac
22966 # We did not find ourselves, most probably we were run as `sh COMMAND'
22967 # in which case we are not to be found in the path.
22968 if test "x$as_myself" = x; then
22969   as_myself=$0
22970 fi
22971 if test ! -f "$as_myself"; then
22972   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22973   { (exit 1); exit 1; }
22974 fi
22975
22976 # Work around bugs in pre-3.0 UWIN ksh.
22977 for as_var in ENV MAIL MAILPATH
22978 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22979 done
22980 PS1='$ '
22981 PS2='> '
22982 PS4='+ '
22983
22984 # NLS nuisances.
22985 for as_var in \
22986   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22987   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22988   LC_TELEPHONE LC_TIME
22989 do
22990   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22991     eval $as_var=C; export $as_var
22992   else
22993     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22994   fi
22995 done
22996
22997 # Required to use basename.
22998 if expr a : '\(a\)' >/dev/null 2>&1 &&
22999    test "X`expr 00001 : '.*\(...\)'`" = X001; then
23000   as_expr=expr
23001 else
23002   as_expr=false
23003 fi
23004
23005 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23006   as_basename=basename
23007 else
23008   as_basename=false
23009 fi
23010
23011
23012 # Name of the executable.
23013 as_me=`$as_basename -- "$0" ||
23014 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23015          X"$0" : 'X\(//\)$' \| \
23016          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23017 echo X/"$0" |
23018     sed '/^.*\/\([^/][^/]*\)\/*$/{
23019             s//\1/
23020             q
23021           }
23022           /^X\/\(\/\/\)$/{
23023             s//\1/
23024             q
23025           }
23026           /^X\/\(\/\).*/{
23027             s//\1/
23028             q
23029           }
23030           s/.*/./; q'`
23031
23032 # CDPATH.
23033 $as_unset CDPATH
23034
23035
23036
23037   as_lineno_1=$LINENO
23038   as_lineno_2=$LINENO
23039   test "x$as_lineno_1" != "x$as_lineno_2" &&
23040   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
23041
23042   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23043   # uniformly replaced by the line number.  The first 'sed' inserts a
23044   # line-number line after each line using $LINENO; the second 'sed'
23045   # does the real work.  The second script uses 'N' to pair each
23046   # line-number line with the line containing $LINENO, and appends
23047   # trailing '-' during substitution so that $LINENO is not a special
23048   # case at line end.
23049   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23050   # scripts with optimization help from Paolo Bonzini.  Blame Lee
23051   # E. McMahon (1931-1989) for sed's syntax.  :-)
23052   sed -n '
23053     p
23054     /[$]LINENO/=
23055   ' <$as_myself |
23056     sed '
23057       s/[$]LINENO.*/&-/
23058       t lineno
23059       b
23060       :lineno
23061       N
23062       :loop
23063       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23064       t loop
23065       s/-\n.*//
23066     ' >$as_me.lineno &&
23067   chmod +x "$as_me.lineno" ||
23068     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23069    { (exit 1); exit 1; }; }
23070
23071   # Don't try to exec as it changes $[0], causing all sort of problems
23072   # (the dirname of $[0] is not the place where we might find the
23073   # original and so on.  Autoconf is especially sensitive to this).
23074   . "./$as_me.lineno"
23075   # Exit status is that of the last command.
23076   exit
23077 }
23078
23079
23080 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23081   as_dirname=dirname
23082 else
23083   as_dirname=false
23084 fi
23085
23086 ECHO_C= ECHO_N= ECHO_T=
23087 case `echo -n x` in
23088 -n*)
23089   case `echo 'x\c'` in
23090   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
23091   *)   ECHO_C='\c';;
23092   esac;;
23093 *)
23094   ECHO_N='-n';;
23095 esac
23096
23097 if expr a : '\(a\)' >/dev/null 2>&1 &&
23098    test "X`expr 00001 : '.*\(...\)'`" = X001; then
23099   as_expr=expr
23100 else
23101   as_expr=false
23102 fi
23103
23104 rm -f conf$$ conf$$.exe conf$$.file
23105 if test -d conf$$.dir; then
23106   rm -f conf$$.dir/conf$$.file
23107 else
23108   rm -f conf$$.dir
23109   mkdir conf$$.dir
23110 fi
23111 echo >conf$$.file
23112 if ln -s conf$$.file conf$$ 2>/dev/null; then
23113   as_ln_s='ln -s'
23114   # ... but there are two gotchas:
23115   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23116   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23117   # In both cases, we have to default to `cp -p'.
23118   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23119     as_ln_s='cp -p'
23120 elif ln conf$$.file conf$$ 2>/dev/null; then
23121   as_ln_s=ln
23122 else
23123   as_ln_s='cp -p'
23124 fi
23125 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23126 rmdir conf$$.dir 2>/dev/null
23127
23128 if mkdir -p . 2>/dev/null; then
23129   as_mkdir_p=:
23130 else
23131   test -d ./-p && rmdir ./-p
23132   as_mkdir_p=false
23133 fi
23134
23135 if test -x / >/dev/null 2>&1; then
23136   as_test_x='test -x'
23137 else
23138   if ls -dL / >/dev/null 2>&1; then
23139     as_ls_L_option=L
23140   else
23141     as_ls_L_option=
23142   fi
23143   as_test_x='
23144     eval sh -c '\''
23145       if test -d "$1"; then
23146         test -d "$1/.";
23147       else
23148         case $1 in
23149         -*)set "./$1";;
23150         esac;
23151         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
23152         ???[sx]*):;;*)false;;esac;fi
23153     '\'' sh
23154   '
23155 fi
23156 as_executable_p=$as_test_x
23157
23158 # Sed expression to map a string onto a valid CPP name.
23159 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23160
23161 # Sed expression to map a string onto a valid variable name.
23162 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23163
23164
23165 exec 6>&1
23166
23167 # Save the log message, to keep $[0] and so on meaningful, and to
23168 # report actual input values of CONFIG_FILES etc. instead of their
23169 # values after options handling.
23170 ac_log="
23171 This file was extended by sudo $as_me 1.6.9, which was
23172 generated by GNU Autoconf 2.61.  Invocation command line was
23173
23174   CONFIG_FILES    = $CONFIG_FILES
23175   CONFIG_HEADERS  = $CONFIG_HEADERS
23176   CONFIG_LINKS    = $CONFIG_LINKS
23177   CONFIG_COMMANDS = $CONFIG_COMMANDS
23178   $ $0 $@
23179
23180 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23181 "
23182
23183 _ACEOF
23184
23185 cat >>$CONFIG_STATUS <<_ACEOF
23186 # Files that config.status was made for.
23187 config_files="$ac_config_files"
23188 config_headers="$ac_config_headers"
23189
23190 _ACEOF
23191
23192 cat >>$CONFIG_STATUS <<\_ACEOF
23193 ac_cs_usage="\
23194 \`$as_me' instantiates files from templates according to the
23195 current configuration.
23196
23197 Usage: $0 [OPTIONS] [FILE]...
23198
23199   -h, --help       print this help, then exit
23200   -V, --version    print version number and configuration settings, then exit
23201   -q, --quiet      do not print progress messages
23202   -d, --debug      don't remove temporary files
23203       --recheck    update $as_me by reconfiguring in the same conditions
23204   --file=FILE[:TEMPLATE]
23205                    instantiate the configuration file FILE
23206   --header=FILE[:TEMPLATE]
23207                    instantiate the configuration header FILE
23208
23209 Configuration files:
23210 $config_files
23211
23212 Configuration headers:
23213 $config_headers
23214
23215 Report bugs to <bug-autoconf@gnu.org>."
23216
23217 _ACEOF
23218 cat >>$CONFIG_STATUS <<_ACEOF
23219 ac_cs_version="\\
23220 sudo config.status 1.6.9
23221 configured by $0, generated by GNU Autoconf 2.61,
23222   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23223
23224 Copyright (C) 2006 Free Software Foundation, Inc.
23225 This config.status script is free software; the Free Software Foundation
23226 gives unlimited permission to copy, distribute and modify it."
23227
23228 ac_pwd='$ac_pwd'
23229 srcdir='$srcdir'
23230 _ACEOF
23231
23232 cat >>$CONFIG_STATUS <<\_ACEOF
23233 # If no file are specified by the user, then we need to provide default
23234 # value.  By we need to know if files were specified by the user.
23235 ac_need_defaults=:
23236 while test $# != 0
23237 do
23238   case $1 in
23239   --*=*)
23240     ac_option=`expr "X$1" : 'X\([^=]*\)='`
23241     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23242     ac_shift=:
23243     ;;
23244   *)
23245     ac_option=$1
23246     ac_optarg=$2
23247     ac_shift=shift
23248     ;;
23249   esac
23250
23251   case $ac_option in
23252   # Handling of the options.
23253   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23254     ac_cs_recheck=: ;;
23255   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23256     echo "$ac_cs_version"; exit ;;
23257   --debug | --debu | --deb | --de | --d | -d )
23258     debug=: ;;
23259   --file | --fil | --fi | --f )
23260     $ac_shift
23261     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23262     ac_need_defaults=false;;
23263   --header | --heade | --head | --hea )
23264     $ac_shift
23265     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23266     ac_need_defaults=false;;
23267   --he | --h)
23268     # Conflict between --help and --header
23269     { echo "$as_me: error: ambiguous option: $1
23270 Try \`$0 --help' for more information." >&2
23271    { (exit 1); exit 1; }; };;
23272   --help | --hel | -h )
23273     echo "$ac_cs_usage"; exit ;;
23274   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23275   | -silent | --silent | --silen | --sile | --sil | --si | --s)
23276     ac_cs_silent=: ;;
23277
23278   # This is an error.
23279   -*) { echo "$as_me: error: unrecognized option: $1
23280 Try \`$0 --help' for more information." >&2
23281    { (exit 1); exit 1; }; } ;;
23282
23283   *) ac_config_targets="$ac_config_targets $1"
23284      ac_need_defaults=false ;;
23285
23286   esac
23287   shift
23288 done
23289
23290 ac_configure_extra_args=
23291
23292 if $ac_cs_silent; then
23293   exec 6>/dev/null
23294   ac_configure_extra_args="$ac_configure_extra_args --silent"
23295 fi
23296
23297 _ACEOF
23298 cat >>$CONFIG_STATUS <<_ACEOF
23299 if \$ac_cs_recheck; then
23300   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23301   CONFIG_SHELL=$SHELL
23302   export CONFIG_SHELL
23303   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23304 fi
23305
23306 _ACEOF
23307 cat >>$CONFIG_STATUS <<\_ACEOF
23308 exec 5>>config.log
23309 {
23310   echo
23311   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23312 ## Running $as_me. ##
23313 _ASBOX
23314   echo "$ac_log"
23315 } >&5
23316
23317 _ACEOF
23318 cat >>$CONFIG_STATUS <<_ACEOF
23319 _ACEOF
23320
23321 cat >>$CONFIG_STATUS <<\_ACEOF
23322
23323 # Handling of arguments.
23324 for ac_config_target in $ac_config_targets
23325 do
23326   case $ac_config_target in
23327     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
23328     "pathnames.h") CONFIG_HEADERS="$CONFIG_HEADERS pathnames.h" ;;
23329     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23330     "sudo.man") CONFIG_FILES="$CONFIG_FILES sudo.man" ;;
23331     "visudo.man") CONFIG_FILES="$CONFIG_FILES visudo.man" ;;
23332     "sudoers.man") CONFIG_FILES="$CONFIG_FILES sudoers.man" ;;
23333
23334   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23335 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23336    { (exit 1); exit 1; }; };;
23337   esac
23338 done
23339
23340
23341 # If the user did not use the arguments to specify the items to instantiate,
23342 # then the envvar interface is used.  Set only those that are not.
23343 # We use the long form for the default assignment because of an extremely
23344 # bizarre bug on SunOS 4.1.3.
23345 if $ac_need_defaults; then
23346   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23347   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23348 fi
23349
23350 # Have a temporary directory for convenience.  Make it in the build tree
23351 # simply because there is no reason against having it here, and in addition,
23352 # creating and moving files from /tmp can sometimes cause problems.
23353 # Hook for its removal unless debugging.
23354 # Note that there is a small window in which the directory will not be cleaned:
23355 # after its creation but before its name has been assigned to `$tmp'.
23356 $debug ||
23357 {
23358   tmp=
23359   trap 'exit_status=$?
23360   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23361 ' 0
23362   trap '{ (exit 1); exit 1; }' 1 2 13 15
23363 }
23364 # Create a (secure) tmp directory for tmp files.
23365
23366 {
23367   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23368   test -n "$tmp" && test -d "$tmp"
23369 }  ||
23370 {
23371   tmp=./conf$$-$RANDOM
23372   (umask 077 && mkdir "$tmp")
23373 } ||
23374 {
23375    echo "$me: cannot create a temporary directory in ." >&2
23376    { (exit 1); exit 1; }
23377 }
23378
23379 #
23380 # Set up the sed scripts for CONFIG_FILES section.
23381 #
23382
23383 # No need to generate the scripts if there are no CONFIG_FILES.
23384 # This happens for instance when ./config.status config.h
23385 if test -n "$CONFIG_FILES"; then
23386
23387 _ACEOF
23388
23389
23390
23391 ac_delim='%!_!# '
23392 for ac_last_try in false false false false false :; do
23393   cat >conf$$subs.sed <<_ACEOF
23394 SHELL!$SHELL$ac_delim
23395 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23396 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23397 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23398 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23399 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23400 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23401 exec_prefix!$exec_prefix$ac_delim
23402 prefix!$prefix$ac_delim
23403 program_transform_name!$program_transform_name$ac_delim
23404 bindir!$bindir$ac_delim
23405 sbindir!$sbindir$ac_delim
23406 libexecdir!$libexecdir$ac_delim
23407 datarootdir!$datarootdir$ac_delim
23408 datadir!$datadir$ac_delim
23409 sysconfdir!$sysconfdir$ac_delim
23410 sharedstatedir!$sharedstatedir$ac_delim
23411 localstatedir!$localstatedir$ac_delim
23412 includedir!$includedir$ac_delim
23413 oldincludedir!$oldincludedir$ac_delim
23414 docdir!$docdir$ac_delim
23415 infodir!$infodir$ac_delim
23416 htmldir!$htmldir$ac_delim
23417 dvidir!$dvidir$ac_delim
23418 pdfdir!$pdfdir$ac_delim
23419 psdir!$psdir$ac_delim
23420 libdir!$libdir$ac_delim
23421 localedir!$localedir$ac_delim
23422 mandir!$mandir$ac_delim
23423 DEFS!$DEFS$ac_delim
23424 ECHO_C!$ECHO_C$ac_delim
23425 ECHO_N!$ECHO_N$ac_delim
23426 ECHO_T!$ECHO_T$ac_delim
23427 LIBS!$LIBS$ac_delim
23428 build_alias!$build_alias$ac_delim
23429 host_alias!$host_alias$ac_delim
23430 target_alias!$target_alias$ac_delim
23431 LIBTOOL!$LIBTOOL$ac_delim
23432 CFLAGS!$CFLAGS$ac_delim
23433 PROGS!$PROGS$ac_delim
23434 CPPFLAGS!$CPPFLAGS$ac_delim
23435 LDFLAGS!$LDFLAGS$ac_delim
23436 SUDO_LDFLAGS!$SUDO_LDFLAGS$ac_delim
23437 SUDO_OBJS!$SUDO_OBJS$ac_delim
23438 SUDO_LIBS!$SUDO_LIBS$ac_delim
23439 NET_LIBS!$NET_LIBS$ac_delim
23440 AFS_LIBS!$AFS_LIBS$ac_delim
23441 GETGROUPS_LIB!$GETGROUPS_LIB$ac_delim
23442 OSDEFS!$OSDEFS$ac_delim
23443 AUTH_OBJS!$AUTH_OBJS$ac_delim
23444 MANTYPE!$MANTYPE$ac_delim
23445 MAN_POSTINSTALL!$MAN_POSTINSTALL$ac_delim
23446 SUDOERS_MODE!$SUDOERS_MODE$ac_delim
23447 SUDOERS_UID!$SUDOERS_UID$ac_delim
23448 SUDOERS_GID!$SUDOERS_GID$ac_delim
23449 DEV!$DEV$ac_delim
23450 mansectsu!$mansectsu$ac_delim
23451 mansectform!$mansectform$ac_delim
23452 mansrcdir!$mansrcdir$ac_delim
23453 NOEXECDIR!$NOEXECDIR$ac_delim
23454 noexec_file!$noexec_file$ac_delim
23455 INSTALL_NOEXEC!$INSTALL_NOEXEC$ac_delim
23456 DONT_LEAK_PATH_INFO!$DONT_LEAK_PATH_INFO$ac_delim
23457 timedir!$timedir$ac_delim
23458 timeout!$timeout$ac_delim
23459 password_timeout!$password_timeout$ac_delim
23460 sudo_umask!$sudo_umask$ac_delim
23461 passprompt!$passprompt$ac_delim
23462 long_otp_prompt!$long_otp_prompt$ac_delim
23463 lecture!$lecture$ac_delim
23464 logfac!$logfac$ac_delim
23465 goodpri!$goodpri$ac_delim
23466 badpri!$badpri$ac_delim
23467 loglen!$loglen$ac_delim
23468 ignore_dot!$ignore_dot$ac_delim
23469 mail_no_user!$mail_no_user$ac_delim
23470 mail_no_host!$mail_no_host$ac_delim
23471 mail_no_perms!$mail_no_perms$ac_delim
23472 mailto!$mailto$ac_delim
23473 mailsub!$mailsub$ac_delim
23474 badpass_message!$badpass_message$ac_delim
23475 fqdn!$fqdn$ac_delim
23476 runas_default!$runas_default$ac_delim
23477 env_editor!$env_editor$ac_delim
23478 passwd_tries!$passwd_tries$ac_delim
23479 tty_tickets!$tty_tickets$ac_delim
23480 insults!$insults$ac_delim
23481 root_sudo!$root_sudo$ac_delim
23482 path_info!$path_info$ac_delim
23483 EGREPPROG!$EGREPPROG$ac_delim
23484 CC!$CC$ac_delim
23485 ac_ct_CC!$ac_ct_CC$ac_delim
23486 EXEEXT!$EXEEXT$ac_delim
23487 OBJEXT!$OBJEXT$ac_delim
23488 CPP!$CPP$ac_delim
23489 build!$build$ac_delim
23490 build_cpu!$build_cpu$ac_delim
23491 _ACEOF
23492
23493   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23494     break
23495   elif $ac_last_try; then
23496     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23497 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23498    { (exit 1); exit 1; }; }
23499   else
23500     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23501   fi
23502 done
23503
23504 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23505 if test -n "$ac_eof"; then
23506   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23507   ac_eof=`expr $ac_eof + 1`
23508 fi
23509
23510 cat >>$CONFIG_STATUS <<_ACEOF
23511 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23512 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23513 _ACEOF
23514 sed '
23515 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23516 s/^/s,@/; s/!/@,|#_!!_#|/
23517 :n
23518 t n
23519 s/'"$ac_delim"'$/,g/; t
23520 s/$/\\/; p
23521 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23522 ' >>$CONFIG_STATUS <conf$$subs.sed
23523 rm -f conf$$subs.sed
23524 cat >>$CONFIG_STATUS <<_ACEOF
23525 CEOF$ac_eof
23526 _ACEOF
23527
23528
23529 ac_delim='%!_!# '
23530 for ac_last_try in false false false false false :; do
23531   cat >conf$$subs.sed <<_ACEOF
23532 build_vendor!$build_vendor$ac_delim
23533 build_os!$build_os$ac_delim
23534 host!$host$ac_delim
23535 host_cpu!$host_cpu$ac_delim
23536 host_vendor!$host_vendor$ac_delim
23537 host_os!$host_os$ac_delim
23538 target!$target$ac_delim
23539 target_cpu!$target_cpu$ac_delim
23540 target_vendor!$target_vendor$ac_delim
23541 target_os!$target_os$ac_delim
23542 SED!$SED$ac_delim
23543 GREP!$GREP$ac_delim
23544 EGREP!$EGREP$ac_delim
23545 LN_S!$LN_S$ac_delim
23546 ECHO!$ECHO$ac_delim
23547 AR!$AR$ac_delim
23548 RANLIB!$RANLIB$ac_delim
23549 STRIP!$STRIP$ac_delim
23550 UNAMEPROG!$UNAMEPROG$ac_delim
23551 TRPROG!$TRPROG$ac_delim
23552 NROFFPROG!$NROFFPROG$ac_delim
23553 YACC!$YACC$ac_delim
23554 YFLAGS!$YFLAGS$ac_delim
23555 LIBOBJS!$LIBOBJS$ac_delim
23556 ALLOCA!$ALLOCA$ac_delim
23557 KRB5CONFIG!$KRB5CONFIG$ac_delim
23558 LTLIBOBJS!$LTLIBOBJS$ac_delim
23559 _ACEOF
23560
23561   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 27; then
23562     break
23563   elif $ac_last_try; then
23564     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23565 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23566    { (exit 1); exit 1; }; }
23567   else
23568     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23569   fi
23570 done
23571
23572 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23573 if test -n "$ac_eof"; then
23574   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23575   ac_eof=`expr $ac_eof + 1`
23576 fi
23577
23578 cat >>$CONFIG_STATUS <<_ACEOF
23579 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23580 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23581 _ACEOF
23582 sed '
23583 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23584 s/^/s,@/; s/!/@,|#_!!_#|/
23585 :n
23586 t n
23587 s/'"$ac_delim"'$/,g/; t
23588 s/$/\\/; p
23589 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23590 ' >>$CONFIG_STATUS <conf$$subs.sed
23591 rm -f conf$$subs.sed
23592 cat >>$CONFIG_STATUS <<_ACEOF
23593 :end
23594 s/|#_!!_#|//g
23595 CEOF$ac_eof
23596 _ACEOF
23597
23598
23599 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23600 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23601 # trailing colons and then remove the whole line if VPATH becomes empty
23602 # (actually we leave an empty line to preserve line numbers).
23603 if test "x$srcdir" = x.; then
23604   ac_vpsub='/^[  ]*VPATH[        ]*=/{
23605 s/:*\$(srcdir):*/:/
23606 s/:*\${srcdir}:*/:/
23607 s/:*@srcdir@:*/:/
23608 s/^\([^=]*=[     ]*\):*/\1/
23609 s/:*$//
23610 s/^[^=]*=[       ]*$//
23611 }'
23612 fi
23613
23614 cat >>$CONFIG_STATUS <<\_ACEOF
23615 fi # test -n "$CONFIG_FILES"
23616
23617
23618 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS
23619 do
23620   case $ac_tag in
23621   :[FHLC]) ac_mode=$ac_tag; continue;;
23622   esac
23623   case $ac_mode$ac_tag in
23624   :[FHL]*:*);;
23625   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23626 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23627    { (exit 1); exit 1; }; };;
23628   :[FH]-) ac_tag=-:-;;
23629   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23630   esac
23631   ac_save_IFS=$IFS
23632   IFS=:
23633   set x $ac_tag
23634   IFS=$ac_save_IFS
23635   shift
23636   ac_file=$1
23637   shift
23638
23639   case $ac_mode in
23640   :L) ac_source=$1;;
23641   :[FH])
23642     ac_file_inputs=
23643     for ac_f
23644     do
23645       case $ac_f in
23646       -) ac_f="$tmp/stdin";;
23647       *) # Look for the file first in the build tree, then in the source tree
23648          # (if the path is not absolute).  The absolute path cannot be DOS-style,
23649          # because $ac_f cannot contain `:'.
23650          test -f "$ac_f" ||
23651            case $ac_f in
23652            [\\/$]*) false;;
23653            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23654            esac ||
23655            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23656 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23657    { (exit 1); exit 1; }; };;
23658       esac
23659       ac_file_inputs="$ac_file_inputs $ac_f"
23660     done
23661
23662     # Let's still pretend it is `configure' which instantiates (i.e., don't
23663     # use $as_me), people would be surprised to read:
23664     #    /* config.h.  Generated by config.status.  */
23665     configure_input="Generated from "`IFS=:
23666           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23667     if test x"$ac_file" != x-; then
23668       configure_input="$ac_file.  $configure_input"
23669       { echo "$as_me:$LINENO: creating $ac_file" >&5
23670 echo "$as_me: creating $ac_file" >&6;}
23671     fi
23672
23673     case $ac_tag in
23674     *:-:* | *:-) cat >"$tmp/stdin";;
23675     esac
23676     ;;
23677   esac
23678
23679   ac_dir=`$as_dirname -- "$ac_file" ||
23680 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23681          X"$ac_file" : 'X\(//\)[^/]' \| \
23682          X"$ac_file" : 'X\(//\)$' \| \
23683          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23684 echo X"$ac_file" |
23685     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23686             s//\1/
23687             q
23688           }
23689           /^X\(\/\/\)[^/].*/{
23690             s//\1/
23691             q
23692           }
23693           /^X\(\/\/\)$/{
23694             s//\1/
23695             q
23696           }
23697           /^X\(\/\).*/{
23698             s//\1/
23699             q
23700           }
23701           s/.*/./; q'`
23702   { as_dir="$ac_dir"
23703   case $as_dir in #(
23704   -*) as_dir=./$as_dir;;
23705   esac
23706   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23707     as_dirs=
23708     while :; do
23709       case $as_dir in #(
23710       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23711       *) as_qdir=$as_dir;;
23712       esac
23713       as_dirs="'$as_qdir' $as_dirs"
23714       as_dir=`$as_dirname -- "$as_dir" ||
23715 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23716          X"$as_dir" : 'X\(//\)[^/]' \| \
23717          X"$as_dir" : 'X\(//\)$' \| \
23718          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23719 echo X"$as_dir" |
23720     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23721             s//\1/
23722             q
23723           }
23724           /^X\(\/\/\)[^/].*/{
23725             s//\1/
23726             q
23727           }
23728           /^X\(\/\/\)$/{
23729             s//\1/
23730             q
23731           }
23732           /^X\(\/\).*/{
23733             s//\1/
23734             q
23735           }
23736           s/.*/./; q'`
23737       test -d "$as_dir" && break
23738     done
23739     test -z "$as_dirs" || eval "mkdir $as_dirs"
23740   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23741 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23742    { (exit 1); exit 1; }; }; }
23743   ac_builddir=.
23744
23745 case "$ac_dir" in
23746 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23747 *)
23748   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23749   # A ".." for each directory in $ac_dir_suffix.
23750   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23751   case $ac_top_builddir_sub in
23752   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23753   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23754   esac ;;
23755 esac
23756 ac_abs_top_builddir=$ac_pwd
23757 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23758 # for backward compatibility:
23759 ac_top_builddir=$ac_top_build_prefix
23760
23761 case $srcdir in
23762   .)  # We are building in place.
23763     ac_srcdir=.
23764     ac_top_srcdir=$ac_top_builddir_sub
23765     ac_abs_top_srcdir=$ac_pwd ;;
23766   [\\/]* | ?:[\\/]* )  # Absolute name.
23767     ac_srcdir=$srcdir$ac_dir_suffix;
23768     ac_top_srcdir=$srcdir
23769     ac_abs_top_srcdir=$srcdir ;;
23770   *) # Relative name.
23771     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23772     ac_top_srcdir=$ac_top_build_prefix$srcdir
23773     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23774 esac
23775 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23776
23777
23778   case $ac_mode in
23779   :F)
23780   #
23781   # CONFIG_FILE
23782   #
23783
23784 _ACEOF
23785
23786 cat >>$CONFIG_STATUS <<\_ACEOF
23787 # If the template does not know about datarootdir, expand it.
23788 # FIXME: This hack should be removed a few years after 2.60.
23789 ac_datarootdir_hack=; ac_datarootdir_seen=
23790
23791 case `sed -n '/datarootdir/ {
23792   p
23793   q
23794 }
23795 /@datadir@/p
23796 /@docdir@/p
23797 /@infodir@/p
23798 /@localedir@/p
23799 /@mandir@/p
23800 ' $ac_file_inputs` in
23801 *datarootdir*) ac_datarootdir_seen=yes;;
23802 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23803   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23804 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23805 _ACEOF
23806 cat >>$CONFIG_STATUS <<_ACEOF
23807   ac_datarootdir_hack='
23808   s&@datadir@&$datadir&g
23809   s&@docdir@&$docdir&g
23810   s&@infodir@&$infodir&g
23811   s&@localedir@&$localedir&g
23812   s&@mandir@&$mandir&g
23813     s&\\\${datarootdir}&$datarootdir&g' ;;
23814 esac
23815 _ACEOF
23816
23817 # Neutralize VPATH when `$srcdir' = `.'.
23818 # Shell code in configure.ac might set extrasub.
23819 # FIXME: do we really want to maintain this feature?
23820 cat >>$CONFIG_STATUS <<_ACEOF
23821   sed "$ac_vpsub
23822 $extrasub
23823 _ACEOF
23824 cat >>$CONFIG_STATUS <<\_ACEOF
23825 :t
23826 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23827 s&@configure_input@&$configure_input&;t t
23828 s&@top_builddir@&$ac_top_builddir_sub&;t t
23829 s&@srcdir@&$ac_srcdir&;t t
23830 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23831 s&@top_srcdir@&$ac_top_srcdir&;t t
23832 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23833 s&@builddir@&$ac_builddir&;t t
23834 s&@abs_builddir@&$ac_abs_builddir&;t t
23835 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23836 $ac_datarootdir_hack
23837 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
23838
23839 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23840   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23841   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23842   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23843 which seems to be undefined.  Please make sure it is defined." >&5
23844 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23845 which seems to be undefined.  Please make sure it is defined." >&2;}
23846
23847   rm -f "$tmp/stdin"
23848   case $ac_file in
23849   -) cat "$tmp/out"; rm -f "$tmp/out";;
23850   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23851   esac
23852  ;;
23853   :H)
23854   #
23855   # CONFIG_HEADER
23856   #
23857 _ACEOF
23858
23859 # Transform confdefs.h into a sed script `conftest.defines', that
23860 # substitutes the proper values into config.h.in to produce config.h.
23861 rm -f conftest.defines conftest.tail
23862 # First, append a space to every undef/define line, to ease matching.
23863 echo 's/$/ /' >conftest.defines
23864 # Then, protect against being on the right side of a sed subst, or in
23865 # an unquoted here document, in config.status.  If some macros were
23866 # called several times there might be several #defines for the same
23867 # symbol, which is useless.  But do not sort them, since the last
23868 # AC_DEFINE must be honored.
23869 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23870 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23871 # NAME is the cpp macro being defined, VALUE is the value it is being given.
23872 # PARAMS is the parameter list in the macro definition--in most cases, it's
23873 # just an empty string.
23874 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
23875 ac_dB='\\)[      (].*,\\1define\\2'
23876 ac_dC=' '
23877 ac_dD=' ,'
23878
23879 uniq confdefs.h |
23880   sed -n '
23881         t rset
23882         :rset
23883         s/^[     ]*#[    ]*define[       ][      ]*//
23884         t ok
23885         d
23886         :ok
23887         s/[\\&,]/\\&/g
23888         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23889         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23890   ' >>conftest.defines
23891
23892 # Remove the space that was appended to ease matching.
23893 # Then replace #undef with comments.  This is necessary, for
23894 # example, in the case of _POSIX_SOURCE, which is predefined and required
23895 # on some systems where configure will not decide to define it.
23896 # (The regexp can be short, since the line contains either #define or #undef.)
23897 echo 's/ $//
23898 s,^[     #]*u.*,/* & */,' >>conftest.defines
23899
23900 # Break up conftest.defines:
23901 ac_max_sed_lines=50
23902
23903 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23904 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23905 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23906 # et cetera.
23907 ac_in='$ac_file_inputs'
23908 ac_out='"$tmp/out1"'
23909 ac_nxt='"$tmp/out2"'
23910
23911 while :
23912 do
23913   # Write a here document:
23914     cat >>$CONFIG_STATUS <<_ACEOF
23915     # First, check the format of the line:
23916     cat >"\$tmp/defines.sed" <<\\CEOF
23917 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
23918 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
23919 b
23920 :def
23921 _ACEOF
23922   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23923   echo 'CEOF
23924     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23925   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23926   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23927   grep . conftest.tail >/dev/null || break
23928   rm -f conftest.defines
23929   mv conftest.tail conftest.defines
23930 done
23931 rm -f conftest.defines conftest.tail
23932
23933 echo "ac_result=$ac_in" >>$CONFIG_STATUS
23934 cat >>$CONFIG_STATUS <<\_ACEOF
23935   if test x"$ac_file" != x-; then
23936     echo "/* $configure_input  */" >"$tmp/config.h"
23937     cat "$ac_result" >>"$tmp/config.h"
23938     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
23939       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23940 echo "$as_me: $ac_file is unchanged" >&6;}
23941     else
23942       rm -f $ac_file
23943       mv "$tmp/config.h" $ac_file
23944     fi
23945   else
23946     echo "/* $configure_input  */"
23947     cat "$ac_result"
23948   fi
23949   rm -f "$tmp/out12"
23950 # Compute $ac_file's index in $config_headers.
23951 _am_stamp_count=1
23952 for _am_header in $config_headers :; do
23953   case $_am_header in
23954     $ac_file | $ac_file:* )
23955       break ;;
23956     * )
23957       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23958   esac
23959 done
23960 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
23961 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23962          X$ac_file : 'X\(//\)[^/]' \| \
23963          X$ac_file : 'X\(//\)$' \| \
23964          X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
23965 echo X$ac_file |
23966     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23967             s//\1/
23968             q
23969           }
23970           /^X\(\/\/\)[^/].*/{
23971             s//\1/
23972             q
23973           }
23974           /^X\(\/\/\)$/{
23975             s//\1/
23976             q
23977           }
23978           /^X\(\/\).*/{
23979             s//\1/
23980             q
23981           }
23982           s/.*/./; q'`/stamp-h$_am_stamp_count
23983  ;;
23984
23985
23986   esac
23987
23988 done # for ac_tag
23989
23990
23991 { (exit 0); exit 0; }
23992 _ACEOF
23993 chmod +x $CONFIG_STATUS
23994 ac_clean_files=$ac_clean_files_save
23995
23996
23997 # configure is writing to config.log, and then calls config.status.
23998 # config.status does its own redirection, appending to config.log.
23999 # Unfortunately, on DOS this fails, as config.log is still kept open
24000 # by configure, so config.status won't be able to write to it; its
24001 # output is simply discarded.  So we exec the FD to /dev/null,
24002 # effectively closing config.log, so it can be properly (re)opened and
24003 # appended to by config.status.  When coming back to configure, we
24004 # need to make the FD available again.
24005 if test "$no_create" != yes; then
24006   ac_cs_success=:
24007   ac_config_status_args=
24008   test "$silent" = yes &&
24009     ac_config_status_args="$ac_config_status_args --quiet"
24010   exec 5>/dev/null
24011   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24012   exec 5>>config.log
24013   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24014   # would make configure fail if this is the last instruction.
24015   $ac_cs_success || { (exit 1); exit 1; }
24016 fi
24017
24018
24019 if test "$with_pam" = "yes"; then
24020     case $host in
24021         *-*-linux*)
24022             { echo "$as_me:$LINENO: You will need to customize sample.pam and install it as /etc/pam.d/sudo" >&5
24023 echo "$as_me: You will need to customize sample.pam and install it as /etc/pam.d/sudo" >&6;}
24024             ;;
24025     esac
24026 fi
24027
24028
24029
24030
24031
24032
24033
24034
24035
24036
24037
24038
24039
24040
24041
24042
24043
24044
24045
24046
24047
24048
24049
24050
24051
24052
24053
24054
24055
24056
24057
24058
24059
24060
24061
24062
24063
24064
24065
24066
24067
24068
24069
24070
24071
24072
24073
24074
24075
24076
24077
24078
24079
24080
24081
24082
24083
24084
24085
24086
24087
24088
24089
24090
24091
24092
24093
24094
24095
24096
24097
24098
24099
24100
24101
24102
24103
24104
24105
24106
24107
24108
24109
24110
24111
24112
24113
24114
24115
24116
24117
24118
24119
24120
24121
24122
24123
24124
24125
24126
24127
24128
24129
24130
24131
24132
24133
24134
24135
24136
24137
24138
24139
24140
24141
24142
24143
24144
24145
24146
24147
24148
24149
24150
24151
24152
24153
24154
24155
24156
24157
24158
24159
24160
24161
24162
24163
24164
24165
24166
24167
24168
24169
24170
24171